:root {
    --bg: #000000;
    --card-bg: #1b1a1a;
    --accent: #1ff655;
    --accent-bright: #00ff41;
    --blue : #00bfff;
    --text: #ffffff;
    --border: #222;
    --font-mono: 'Space Mono', monospace;
    --red: #ff0040;
    --container-pad: 10%;
    --section-gap: 25px;
    --card-gap: 2rem;
    --inner-pad: 30px;
    --bg-footer: #1b1a1afb;
    --text-muted: #b3afaf;
}

@media (max-width: 1200px) {
    :root {
        --container-pad: 5%;
    }
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

h1 {
    margin: 1rem auto;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    -webkit-background-clip: text;
    color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    -webkit-background-clip: text;
    color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

p {
    margin-bottom: 10px;
}

strong {
    color: var(--accent);
}

.text-center {
    position: relative;
    display: flex;
    justify-items: center;
}

/* --- GRAIN EFFECT --- */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* --- NAV & BURGER MENU --- */
header {
    padding: 0 var(--container-pad);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.logo-container {
    display: flex;
    width: 100px;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}

.logo-font {
  font-family: "Bruno Ace", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
}


.logo-img {
    width: 100%;
    position: relative;
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    color: var(--accent);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-list a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text);
    transition: 0.3s;
}

.cyber-border, .cyber-border-bright, .cyber-border-neon {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.cyber-border::before, .cyber-border::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
}

.cyber-border::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.cyber-border::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.cyber-border-bright {
    border: 1px solid var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.cyber-border-hell {
    border: 1px solid var(--accent-bright);
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.4);
    padding: 0.5rem 1rem;
}

/* --- SECTIONS --- */
section {
    padding: 0 var(--container-pad);
    margin: 0 auto 50px auto;
}

div {
    border-radius: 10px;
}

article {
    border-radius: 10px;
}

.grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--card-gap);
}

.service-card, .project-card {
    padding: 40px;
    transition: 0.3s ease;
}

.service-card p, .project-card p {
    min-height: 120px;
    line-height: 1.6;
}

/* --- DATA SECTION --- */
.data-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 5%;
    padding: 40px;
    border: 1px solid var(--accent);
    overflow: hidden;
}

ul.cyber-list {
    list-style: disc;
    padding-left: 0;
    margin: 1rem 0 0 1rem;
}

.data-offer {
    font-size: 0.9rem;
    margin: 0.4rem 0;
    color: #aaa;
}
.data-offer span {
    color: var(--accent);
    font-weight: bold;
}

.window-header {
    margin-bottom: 10px;
}

.data-preview {
    min-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.excel-mockup {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    font-size: 12px;
    padding: 10px;
    margin-bottom: 22px;
}

.excel-mockup table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(10px, 1vw, 13px);
}

th {
    padding: 5px;
    background: var(--accent);
    color: #000;
}

td {
    border: 1px solid #333;
    padding: 0 10px;
    text-align: left;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 992px) {
    .data-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .data-text h2 {
        font-size: 1.4rem;
    }
    
    .cyber-list {
        font-size: 0.85rem;
    }
}

/* --- TESTIMONIALS --- */
#testimonials {
    margin-bottom: 50px;
}

.testimonial-wrapper {
    padding: 40px;
    text-align: center;
    background: var(--card-bg);
}

.testimonial-wrapper h2 {
    text-align: left;
}

.testimonial-item {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-item.active {
    display: block;
}

/* Style de l'avatar */
.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    padding: 3px;
    background: var(--accent);
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    filter: grayscale(0.5) contrast(1.2);
}

.quote {
    font-style: italic;
    color: var(--text);
    margin-bottom: 20px;
}

.author {
    color: var(--accent);
    font-weight: bold;
}

.maj {
    text-transform: uppercase;
}

.testimonial-controls {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    gap: 20px;
}

#prev-test, #next-test {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media screen and (max-width: 768px) {
    .testimonial-controls {
        flex-direction: column;
        gap: 5px;
    }

    #prev-test, #next-test {
        width: 100%;
    }
    
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BUTTONS --- */
.btn-main, .btn-submit {
    display: flex;
    font-family: var(--font-mono);
    background: var(--accent);
    color: #000;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
    border-radius: 5px;
    z-index: 5;
}

/* --- OPTIMISATION DU BOUTON SUBMIT --- */
.btn-submit {
    align-items: center;
    justify-self: center;
    width: 250px;
    position: relative;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-submit:hover, .btn-main:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

/* --- RETRO GAME --- */
#retro-game {
    display: flex;
    gap: 20px;
}

@media screen and (max-width: 768px) {
    #retro-game {
        flex-direction: column;
    }

    #retro-game article:first-child {
    width: 100%;
}

    .game-header {
        margin: 0 auto
    }
    
}


@media screen and (min-width: 768px) {
    .desktop-hidden {
        display: none;
    }
}

.pre-line {
    white-space: pre-line;
}

.game-container {
    width: 100%;
    max-width: 600px;
    background: #000;
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: fit-content;
}

#canvas-wrapper {
    width: 100%;
    height: 300px;
    position: relative;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    #mobile-controls {
        position: relative;
    }
}

#mobile-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ctrl-row {
    display: flex;
    gap: 10px;
}

.ctrl-btn {
    width: 80px;
    height: 80px;
    background: #111;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 1.2rem;
    border-radius: 5px;
    touch-action: manipulation;
}

.ctrl-btn:active {
    background: var(--accent);
    color: #000;
}

@media (min-width: 1024px) {
    #mobile-controls { 
        display: none; 
    }
}

#gameCanva {
    background: #000;
    border: 1px solid var(--border);
    width: 100%;
    height: 100%;
    display: block;
}

#game-ui {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100px;
}

#score-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: var(--font-mono);
    color: var(--accent);
}

.game-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media screen and (max-width: 768px) {
    #game-ui {
        flex-direction: column;
        height: auto;
        gap: 0;
    }
    
}

.btn-stop {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    margin-left: 10px;
}

.btn-stop:hover {
    background: var(--red);
    color: #fff;
}

.no-margin {
    margin: 0;
}

#score-board {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: bold;
}

/* --- FORM --- */

#contact form {
    display: flex;
    border-radius: 10px;
    flex-direction: column;
    gap: 1.5rem;
    padding: 40px;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 12px 15px;
    background: #050505;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    border-radius: 10px;
}

#contact input:focus,
#contact textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    background: #080808;
}

.custom-select {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.select-trigger {
    background: #000;
    color: #fff;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.select-trigger::after {
    content: "\25BC";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%); /* Centre verticalement */
    pointer-events: none;
}

.select-trigger:hover {
    border-color: var(--accent);
}

.options-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border: 1px solid #333;
    border-top: none;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    z-index: 10;
}

.options-list li {
    padding: 12px;
    color: #fff;
    border-bottom: 1px solid #111;
}

.options-list li:hover {
    background-color: var(--accent);
    color: var(--bg);
}

.custom-select.open .options-list {
    display: block;
}

#contact textarea {
    min-height: 150px;
    resize: vertical;
}

#contact ::placeholder {
    color: #afbdb8;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.consent-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    color: var(--text-muted)
}

.consent-container input {
    cursor: pointer;
    width: 20px !important;
    height: 20px;
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px var(--container-pad) 75px var(--container-pad);
}

.text-container {
    color: var(--accent-bright);
}

.hero-main-claim {
    font-size: 20px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 100px;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    margin: 2rem auto;
}

.images {
    width: 100%;
    min-height: 180px;
    border: 1px solid var(--border);
    margin-top: 1rem;
    transition: 0.3s;
    border-radius: 5px;
    overflow: hidden;
    object-fit: cover;
    object-position: top;
}

.icon {
    width: 30px;
    height: 30px;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.modify-display {
    object-position: 25%;
}

.price-tag {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: #555;
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
}
.price-tag span {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: bold;
}

/* --- TABLETTE DESIGN --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: #050505;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        border-left: 1px solid var(--accent);
    }

    .nav-list.active {
        right: 0;
    }

    .data-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-title {
        font-size: 32px;
    }

    /* Animation Burger */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

}

/* TECH GRID */
.technologies-description {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.technologies-description p {
    white-space: pre-line;
    margin-bottom: 50px;
}

.img-container {
    width: 45%;
    height: 100%;
    max-width: 350px;
}

.image-coding {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    object-fit: cover;
    object-position: center;
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.technologies-wrapper {
    padding: 40px;
}

@media (max-width: 1024px) {
    
    .mobile-hidden {
        display: none;
    }
    
}

@media (max-width: 428px ) {
    .hero-title {
        font-size: 24px;
        white-space: pre-line;
    }

    .hero-sub {
        margin-bottom: 0;
    }

    .technologies-grid {
        grid-template-columns: 1fr;
    }

    .service-card, .project-card, .data-container, .technologies-wrapper, #contact form {
        padding: 20px;
    }

    .data-preview, .excel-mockup {
        width: 100%;
        padding: 0;
    }
}
/* --- FOOTER --- */
.site-footer {
    background-color: var(--bg-footer);
    color: var(--text-main);
    padding: 60px 20px 20px;
    font-family: 'Inter', sans-serif;
    border-radius: 10px 10px 0 0;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-info h3 span {
    color: var(--text);
}

.footer-info p {
    max-width: 300px;
    color: var(--text-muted);
    line-height: 1.6;
}

.site-footer h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a, .social-icons a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover, .social-icons a:hover {
    color: var(--accent);
}

/* Réseaux sociaux */
.social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Barre de copyright */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    border-radius: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

#year {
    color: var(--text-muted);
}

.heart {
    font-size: 1.5rem;
    color: #ff4d4d;
    
}

address {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-style: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info p {
        margin: 0 auto;
    }
}

/* Merci page, mentions legales page */

.thank-you-section, .mentions-legales-section {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px var(--container-pad);
            text-align: center;
        }

        .thank-you-card, .mentions-card {
            padding: 60px;
            max-width: 600px;
            width: 100%;
        }

        .status-code, .mentions-link {
            font-size: 1.2rem;
            color: var(--accent);
            margin-bottom: 1rem;
            display: block;
        }

        .thank-you-card h1 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
        }

        .confirmation-text {
            color: var(--text-muted);
            line-height: 1.8;
            margin-bottom: 2rem;
        }

        .back-link {
            text-decoration: none;
            display: inline-block;
        }

        @media (max-width: 768px) {
            .thank-you-card { padding: 30px; }
            .thank-you-card h1 { font-size: 1.8rem; }
        }