/* ========================================
   CNTRLSHFT MEDIAS - STYLES COMPLETS
   ======================================== */

/* ========================================
   1. VARIABLES CSS
   ======================================== */

:root {
    /* Dark mode (défaut) */
    --bg: #0A0B0F;
    --surface: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text: #F5F6F7;
    --muted: rgba(245, 246, 247, 0.65);
    --accent: #4F8CFF;
    --gradient: linear-gradient(135deg, #4F8CFF, #667EEA);
    
    --max: 1320px;
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 16px;
}

/* Light mode - Contraste amélioré */
[data-theme="light"] {
    --bg: #FFFFFF;
    --surface: #F8F9FA;
    --border: #DEE2E6;
    --text: #212529;
    --muted: #6C757D;  /* Gris plus foncé pour meilleur contraste */
    --accent: #4F8CFF;
    --gradient: linear-gradient(135deg, #4F8CFF, #667EEA);
}


/* ========================================
   2. RESET & BASE
   ======================================== */

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

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;    /* Améliore le rendu des polices */
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;                      /* Empêche scroll horizontal */
}

/* Liens par défaut */
a {
    color: inherit;
    text-decoration: none;
}

/* Images responsives par défaut */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

body {
    margin: 0;
    padding-top: 70px;                         /* Espace pour le header fixe */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Transitions douces pour changement de thème */
*, *::before, *::after {
    transition: background-color 0.2s ease, 
                color 0.2s ease, 
                border-color 0.2s ease,
                box-shadow 0.2s ease,
                fill 0.2s ease,
                stroke 0.2s ease;
}

/* Désactive les transitions sur les éléments interactifs pour garder la réactivité */
button, a, input, textarea, .btn {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.2s ease,
                opacity 0.2s ease;
}

/* ========================================
   3. UTILITIES (Classes utilitaires)
   ======================================== */

/* Container centré avec largeur max */
.container {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    max-width: 100%;                         /* Empêche débordement */
    box-sizing: border-box;
}

/* Texte gris secondaire */
.muted {
    color: var(--muted);
}

/* Texte petit (labels, metadata) */
.small {
    font-size: 13px;
}

/* Texte avec gradient de marque */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* ========================================
   4. HEADER & NAVIGATION
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 13, 16, .65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(245, 246, 247, .06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .1);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    width: 100%;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    margin-right: 0;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 32px;
}

/* Logo / Branding - cliquable */
.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    transition: opacity .2s ease;
}

.brand:hover {
    opacity: .8;
}

.brand__name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--text);
}

.brand__sub {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Navigation principale (desktop) */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    font-size: 14px;
    font-weight: 400;
    color: rgba(245, 246, 247, .7);
    transition: color .2s ease;
}

.nav__link:hover {
    color: var(--text);
}

/* Navigation principale (desktop) */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    font-size: 14px;
    font-weight: 400;
    color: rgba(245, 246, 247, .7);
    transition: color .2s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav__link:hover {
    color: var(--text);
}

/* Page active - underline bleu */
.nav__link.active {
    color: var(--accent);
    font-weight: 500;
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Mobile nav - page active */
.mobile-nav a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(245, 246, 247, .8);
    transition: color .2s ease;
    width: 80%;
    margin: 0 auto 8px auto;
    box-sizing: border-box;
    text-align: left;
    position: relative;
}

.mobile-nav a.active {
    color: var(--accent);
    font-weight: 500;
}

.mobile-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

.mobile-nav a:hover {
    color: var(--text);
}

/* ========================================
   4b. THEME TOGGLE BUTTON
   ======================================== */

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(79, 140, 255, .1);
    border-color: var(--accent);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text);
    transition: all .3s ease;
}

/* Icône soleil (visible en dark mode) */
.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

/* Icône lune (visible en light mode) */
[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: block;
}

/* Wrapper mobile actions */
.header__mobile-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Desktop : toggle dans la nav, cache le mobile */
@media (min-width: 901px) {
    .theme-toggle--desktop {
        display: flex;
        margin-left: 16px;
    }
    
    .theme-toggle--mobile {
        display: none;
    }
    
    .header__mobile-actions {
        display: none;
    }
}

/* Mobile portrait et landscape : cache le desktop, montre le mobile */
@media (max-width: 900px) {
    .theme-toggle--desktop {
        display: none;
    }
    
    .theme-toggle--mobile {
        display: flex;
    }
    
    .header__mobile-actions {
        display: flex;
    }
}

/* Mobile landscape : ajuste les tailles */
@media (max-width: 900px) and (orientation: landscape) {
    .header {
        padding: 12px 0;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
    
    .burger {
        width: 36px;
        height: 36px;
    }
    
    .brand__name {
        font-size: 16px;
    }
    
    .brand__sub {
        font-size: 9px;
    }
}



/* ========================================
   5. BOUTONS
   ======================================== */

/* Bouton de base (structure commune) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;                                  /* Espace entre texte et icône */

    padding: 11px 22px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);

    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    text-decoration: none;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;                    /* Inclut padding dans largeur */
}

/* État hover générique */
.btn:hover {
    transform: translateY(-1px);               /* Léger lift */
    border-color: rgba(79, 140, 255, .30);
    background: rgba(255, 255, 255, .07);
}

/* Bouton primaire (gradient de marque) */
.btn--primary {
    border: none;
    background: var(--gradient);
    color: #0B0D10 !important;                 /* Texte foncé sur fond clair */
}

.btn--primary:hover {
    background: var(--gradient) !important;    /* Force le gradient au hover */
    filter: brightness(1.08);
    box-shadow: var(--shadow-sm);
    color: #0B0D10 !important;
}

/* Bouton ghost (secondaire, transparent) */
.btn--ghost {
    background: transparent;
    color: var(--text) !important;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .07);
    color: var(--text) !important;
}


/* ========================================
   6. BURGER MENU (Mobile) - FIX DÉFINITIF
   ======================================== */

.burger {
    display: none;
    width: 40px;                               /* Plus compact */
    height: 40px;
    background: transparent;                   /* Pas de fond */
    border: none;                              /* Pas de bordure */
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;                                  /* Espacement entre lignes */
    flex-shrink: 0;
    padding: 0;
    position: relative;
}

.burger span {
    display: block;
    height: 2px;
    width: 24px;                               /* Lignes plus longues */
    background: var(--text);                   /* Blanc pur */
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;                        /* Coins arrondis */
}

/* Animation hover sur burger */
.burger:hover span {
    background: var(--accent);                 /* Bleu au hover */
}

/* Animation quand menu ouvert (optionnel) */
.burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
    opacity: 0;
}

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

/* Container global - empêche tout débordement */
.header .container {
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Menu mobile (caché par défaut) */
.mobile-nav {
    display: none;                             /* CACHÉ par défaut (pas flex) */
    padding: 16px 0 20px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
    width: 100%;
    box-sizing: border-box;
}

/* Liens (Services, Projets) - 80% largeur, texte à gauche */
.mobile-nav a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(245, 246, 247, .8);
    transition: color .2s ease;
    width: 80%;
    margin: 0 auto 8px auto;                   /* Centre avec margin auto */
    box-sizing: border-box;
    text-align: left;
}

.mobile-nav a:hover {
    color: var(--text);
}

/* Bouton Contact - 80% largeur */
.mobile-nav .btn {
    width: 80%;
    margin: 4px auto 0 auto;                   /* Centre avec margin auto */
    padding: 12px 20px;
    justify-content: center;
    box-sizing: border-box;
}

/* Le bouton primaire dans mobile nav garde son style */
.mobile-nav .btn--primary {
    background: var(--gradient) !important;
    color: #0B0D10 !important;
    border: none;
}

@media (max-width: 900px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 24px;
        box-sizing: border-box;
    }
    
    .mobile-nav {
        margin: 0;
        width: 100%;
        /* display: none par défaut, devient block quand ouvert via JS */
    }
}

/* ========================================
   7. HERO SECTION
   ======================================== */

.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
}

/* Background glow (original avec animation subtile) */
.bg-glow {
    position: absolute;
    inset: -40px 0 auto 0;
    height: 500px;
    background:
        radial-gradient(600px 250px at 20% 40%, rgba(79, 140, 255, .12), transparent 65%),
        radial-gradient(600px 250px at 80% 35%, rgba(107, 92, 255, .10), transparent 65%);
    pointer-events: none;
    filter: blur(3px);
    opacity: .9;
    animation: breathe 12s ease-in-out infinite;  /* Animation très lente */
}

/* Animation respiration ultra-subtile */
@keyframes breathe {
    0%, 100% {
        opacity: .9;
        filter: blur(3px);
    }
    50% {
        opacity: .95;
        filter: blur(4px);
    }
}

/* Grille hero : contenu + panel latéral */
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 48px;
    align-items: start;
}

/* Petit label au-dessus du titre */
.eyebrow {
    margin: 0 0 16px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(245, 246, 247, .65);
    font-weight: 500;
}

/* Titre principal (grande taille) */
.hero__title {
    margin: 0 0 20px;
    font-size: clamp(38px, 5vw, 58px);         /* Responsive fluide */
    line-height: 1.08;                         /* Serré pour impact visuel */
    letter-spacing: -0.03em;
    font-weight: 500;
}

/* Sous-titre / description */
.hero__subtitle {
    margin: 0 0 28px;
    max-width: 58ch;                           /* Limite la largeur pour lisibilité */
    color: rgba(245, 246, 247, .65);
    font-size: 16px;
    line-height: 1.6;
}

/* Groupe de boutons CTA */
.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Wrapper pour panel + lien tarifs */
.hero__aside-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Lien secondaire sous le panel */
.hero__secondary-link {
    text-align: center;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(245, 246, 247, .65);
    transition: all .2s ease;
    padding: 4px 0;
}

.secondary-link:hover {
    color: var(--accent);
    gap: 12px;
}

.secondary-link svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.secondary-link:hover svg {
    transform: translateX(2px);
}

/* Mobile - cache le lien sur mobile (déjà dans la nav) */
@media (max-width: 900px) {
    .hero__secondary-link {
        display: none;
    }
}



/* ========================================
   8. PANEL (Carte latérale "Disponible")
   ======================================== */

.panel {
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* En-tête du panel avec status dot */
.panel__top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
}

/* Indicateur de statut (point vert/bleu) */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(79, 140, 255, .9);
    box-shadow: 0 0 0 4px rgba(79, 140, 255, .12);  /* Effet "glow" */
}

.panel__label {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(245, 246, 247, .7);
    font-weight: 600;
}

.panel__body {
    padding: 18px;
}

/* Chips / Tags (stack technique) */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.chip {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;                      /* Forme pill */
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: rgba(245, 246, 247, .85);
}

/* Fix bullet points - Stack technique et compétences */
.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-item {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: rgba(245, 246, 247, .85);
}

/* Light mode */
[data-theme="light"] .tech-item {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}



/* ========================================
   9. SECTIONS (Services, Projets, etc.)
   ======================================== */

.section {
    padding: 80px 0;
}

/* Section avec fond alternatif (légèrement différent) */
.section--alt {
    background: rgba(255, 255, 255, .015);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* En-tête de section (titre + description) */
.section__head {
    margin-bottom: 48px;
}

.section__title {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.5vw, 38px);
    letter-spacing: -0.02em;
    font-weight: 500;
}

.section__subtitle {
    margin: 0;
    color: var(--muted);
    max-width: 70ch;
    font-size: 15px;
}


/* ========================================
   10. CARDS (Services & Projets)
   ======================================== */

/* Grille de cards */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);     /* 3 colonnes par défaut */
    gap: 20px;
}

/* Variante 2 colonnes */
.cards--2col {
    grid-template-columns: repeat(2, 1fr);
}

/* Card individuelle */
.card {
    padding: 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);               /* Lift au hover */
    border-color: rgba(79, 140, 255, .25);
    background: rgba(255, 255, 255, .04);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 500;
}

.card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Card projet (avec tag et lien) */
.card--project {
    display: flex;
    flex-direction: column;
}

.card__tag {
    display: inline-block;
    width: fit-content;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(79, 140, 255, .1);
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Lien "Voir le projet →" */
.link {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    margin-top: auto;                          /* Pousse le lien en bas */
    padding-top: 12px;
    transition: color .2s ease;
}

.link:hover {
    color: var(--accent2);
}


/* ========================================
   11. TIMELINE (Process)
   ======================================== */

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
}

.timeline__item {
    display: grid;
    grid-template-columns: 60px 1fr;           /* Numéro + contenu */
    gap: 16px;
    align-items: start;
    padding: 20px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all .25s ease;
}

.timeline__item:hover {
    border-color: rgba(79, 140, 255, .2);
    background: rgba(255, 255, 255, .03);
}

/* Numéro de l'étape */
.timeline__n {
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--accent);
    font-size: 13px;
}

.timeline h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 500;
}

.timeline p {
    margin: 0;
    font-size: 14px;
}


/* ========================================
   12. CONTACT
   ======================================== */

.contact {
    display: grid;
    grid-template-columns: 1fr 1.1fr;          /* Intro + form */
    gap: 64px;
    align-items: start;
}

/* Métadonnées de contact (email, localisation) */
.contact__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0 0;
}

.contact__link {
    font-weight: 500;
    transition: color .2s ease;
}

.contact__link:hover {
    color: var(--accent);
}

.dot-sep {
    color: var(--border);
}


/* ========================================
   13. FORMULAIRE
   ======================================== */

.form {
    padding: 28px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

label {
    display: block;
    margin-bottom: 18px;
}

label span {
    display: block;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Inputs & Textarea */
input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all .2s ease;
    box-sizing: border-box;                    /* Inclut padding dans largeur */
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
}

input:focus,
textarea:focus {
    border-color: rgba(79, 140, 255, .4);
    box-shadow: 0 0 0 3px rgba(79, 140, 255, .08);
    background: rgba(255, 255, 255, .04);
}

textarea {
    resize: vertical;                          /* Redimensionnable verticalement */
}


/* ========================================
   14. FOOTER
   ======================================== */

.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer__legal {
    font-size: 13px;
    color: rgba(245, 246, 247, .6);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(245, 246, 247, .08);
    background: rgba(255, 255, 255, .02);
    transition: all .2s ease;
    white-space: nowrap;
}

.footer__legal:hover {
    color: var(--text);
    border-color: rgba(79, 140, 255, .3);
    background: rgba(79, 140, 255, .08);
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 900px) {
    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer__right {
        flex-direction: column;
        gap: 12px;
    }

    .footer__legal {
        padding: 10px 20px;
    }
}


/* ========================================
   15. ANIMATIONS (Reveal on scroll)
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Délais échelonnés pour effet cascade */
.reveal--delay {
    transition-delay: .1s;
}

.reveal--delay2 {
    transition-delay: .2s;
}


/* ========================================
   16. RESPONSIVE (Mobile & Tablet)
   ======================================== */

/* Tablets & petits écrans */
@media (max-width: 900px) {
    /* Container adapté mobile */
    .container {
        width: calc(100% - 48px);
        padding: 0 24px;
        max-width: 100%;
    }

    /* Navigation devient burger */
    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    /* Menu mobile prend toute la largeur - FIX */
    .mobile-nav {
        margin: 0 -24px;                       /* Compense padding container */
        width: calc(100% + 48px);              /* Pleine largeur écran */
        max-width: calc(100% + 48px);
    }

    /* Hero en 1 colonne */
    .hero__inner {
        grid-template-columns: 1fr;
    }

    /* Cards en 1 colonne */
    .cards,
    .cards--2col {
        grid-template-columns: 1fr;
    }

    /* Contact en 1 colonne */
    .contact {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobiles */
@media (max-width: 600px) {
    /* Container encore plus petit */
    .container {
        width: calc(100% - 32px);
        padding: 0 16px;
    }

    /* Réduction des espacements */
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0 60px;
    }

    /* Boutons en pleine largeur */
    .hero__cta {
        flex-direction: column;
        width: 100%;
    }

    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ========================================
   17. ACCESSIBILITÉ
   ======================================== */

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .btn,
    .card,
    .timeline__item {
        transition: none;
    }
}

/* Focus visible pour navigation clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ========================================
   18. BACK TO TOP (Desktop uniquement)
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(245, 246, 247, .08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(245, 246, 247, .12);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    z-index: 50;
}

.back-to-top:hover {
    background: rgba(245, 246, 247, .12);
    transform: translateY(-4px);
    border-color: rgba(79, 140, 255, .4);      /* Bordure bleue plus visible */
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, .15),         /* Ombre classique */
        0 0 32px rgba(79, 140, 255, .25);      /* Glow bleu */
}

.back-to-top.is-visible {
    display: flex;
}

/* Flèche bleue */
.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
}

/* Cache sur mobile */
@media (max-width: 900px) {
    .back-to-top {
        display: none !important;
    }
}
/* ========================================
   19. PAGE MENTIONS LÉGALES
   ======================================== */

.legal-page {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.legal-page__content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

.legal-section__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 12px;
}

.legal-section__text strong {
    color: var(--text);
    font-weight: 500;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}

.legal-list li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.legal-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Mobile */
@media (max-width: 900px) {
    .legal-page {
        padding: 100px 0 60px;
    }

    .legal-page__title {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .legal-section__title {
        font-size: 20px;
    }

    .legal-section__text {
        font-size: 14px;
    }

    .legal-list li {
        font-size: 14px;
    }
}

/* ========================================
   20. PAGE TARIFS
   ======================================== */

.pricing-page {
    position: relative;
    padding: 120px 0 80px;
    min-height: 100vh;
    overflow: hidden;
}

/* Hero tarifs */
.pricing-hero {
    position: relative;
    text-align: center;
    margin-bottom: 80px;
}

.pricing-hero__title {
    font-size: clamp(38px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 16px 0 20px;
}

.pricing-hero__subtitle {
    font-size: 16px;
    color: var(--muted);
    max-width: 50ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tableau de prix */
.pricing-main {
    position: relative;
    max-width: 900px;
    margin: 0 auto 80px;
}

.pricing-table {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.pricing-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 24px 28px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all .25s ease;
}

.pricing-row:hover {
    border-color: rgba(79, 140, 255, .25);
    background: rgba(255, 255, 255, .04);
}

.pricing-row__label h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 6px;
    color: var(--text);
}

.pricing-row__label p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.pricing-row__value {
    font-size: 15px;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
}

.pricing-row__value strong {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
}

/* Note tarifaire */
.pricing-note {
    padding: 20px 24px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: rgba(79, 140, 255, .04);
}

.pricing-note p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Tarif jour */
.day-rate-section {
    position: relative;
    max-width: 900px;
    margin: 0 auto 80px;
}

.day-rate-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-radius: var(--r-lg);
    border: 1px solid rgba(79, 140, 255, .4);
    background: linear-gradient(135deg, rgba(79, 140, 255, .08), rgba(107, 92, 255, .04));
}

.day-rate-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
}

.day-rate-card p {
    font-size: 14px;
    margin: 0;
}

.day-rate-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.price-unit {
    font-size: 16px;
    color: var(--muted);
}

/* Informations */
.info-section {
    position: relative;
    max-width: 900px;
    margin: 0 auto 80px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    padding: 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

.info-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px;
    color: var(--text);
}

.info-card p {
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* CTA Final */
.cta-section {
    position: relative;
    text-align: center;
    padding: 60px 40px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(79, 140, 255, .06), rgba(255, 255, 255, .02));
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    margin: 0 0 12px;
}

.cta-section p {
    font-size: 15px;
    margin: 0 0 28px;
}

/* Mobile */
@media (max-width: 900px) {
    .pricing-page {
        padding: 100px 0 60px;
    }

    .pricing-hero {
        margin-bottom: 60px;
    }

    .pricing-row {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .pricing-row__value {
        text-align: left;
    }

    .day-rate-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 24px;
    }

    .day-rate-card__price {
        justify-content: flex-start;
    }

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

    .cta-section {
        padding: 40px 24px;
    }
}

/* ========================================
   21. PAGE À PROPOS
   ======================================== */

.about-page {
    position: relative;
    padding: 120px 0 80px;
    min-height: 100vh;
    overflow: hidden;
}

/* Hero About */
.about-hero {
    position: relative;
    text-align: center;
    margin-bottom: 80px;
}

.about-hero__title {
    font-size: clamp(38px, 5vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 16px 0 20px;
}

.about-hero__subtitle {
    font-size: 17px;
    color: var(--muted);
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contenu About */
.about-content {
    position: relative;
    margin-bottom: 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Texte principal */
.about-main {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-block h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text);
}

.about-block p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.about-block p:last-child {
    margin-bottom: 0;
}

/* Sidebar infos */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.info-panel {
    padding: 24px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

.info-panel h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 12px;
    color: var(--text);
}

.info-panel p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.info-panel p:last-child {
    margin-bottom: 0;
}

/* Liste tech */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tech-item {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    color: rgba(245, 246, 247, .85);
}

/* CTA Contact */
.cta-section {
    position: relative;
    text-align: center;
    padding: 60px 40px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(79, 140, 255, .06), rgba(255, 255, 255, .02));
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    margin: 0 0 12px;
}

.cta-section p {
    font-size: 15px;
    margin: 0 0 28px;
}

/* Mobile */
@media (max-width: 900px) {
    .about-page {
        padding: 100px 0 60px;
    }

    .about-hero {
        margin-bottom: 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-sidebar {
        position: static;
    }

    .about-main {
        gap: 36px;
    }

    .cta-section {
        padding: 40px 24px;
    }
}

/* ========================================
   22. PAGE PROJET
   ======================================== */

.project-page {
    position: relative;
    padding: 120px 0 80px;
    min-height: 100vh;
    overflow: hidden;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    font-size: 13px;
}

.breadcrumb__link {
    color: var(--muted);
    transition: color .2s ease;
}

.breadcrumb__link:hover {
    color: var(--text);
}

.breadcrumb__sep {
    color: var(--border);
}

.breadcrumb__current {
    color: var(--text);
}

/* Hero projet */
.project-hero {
    text-align: center;
    margin-bottom: 60px;
}

.project-hero__tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.project-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(79, 140, 255, .1);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.project-hero__title {
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.project-hero__subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 70ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* Image hero */
.project-hero-image {
    margin: 0 0 80px;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.project-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Grille contenu */
.project-content {
    position: relative;
}

.project-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Colonne principale */
.project-main {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 20px;
    color: var(--text);
}

.project-section p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.project-section p:last-child {
    margin-bottom: 0;
}

/* Listes */
.project-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-list li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    padding: 12px 0 12px 28px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.project-list li:last-child {
    border-bottom: none;
}

.project-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.project-list li strong {
    color: var(--text);
    font-weight: 500;
}

/* Galerie */
.project-gallery {
    margin: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    margin: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item figcaption {
    padding: 12px 16px;
    text-align: center;
}

/* Stats */
.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
    padding: 32px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
}

/* Sidebar */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.project-info-card {
    padding: 28px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

.project-info-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 20px;
    color: var(--text);
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    margin-bottom: 6px;
}

.info-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.external-link {
    color: var(--accent);
    transition: opacity .2s ease;
}

.external-link:hover {
    opacity: .8;
}

/* Tech stack */
.tech-stack {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack .tech-item {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
    color: rgba(245, 246, 247, .85);
}

/* Services list */
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    font-size: 14px;
    color: var(--muted);
    padding: 10px 0 10px 24px;
    position: relative;
}

.services-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* Navigation projets */
.project-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin: 80px 0;
    padding: 32px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
}

.project-nav__link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: var(--r-md);
    transition: all .2s ease;
}

.project-nav__link:hover {
    background: rgba(255, 255, 255, .04);
}

.project-nav__link--prev {
    text-align: left;
}

.project-nav__link--next {
    text-align: right;
}

.project-nav__link--all {
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all .2s ease;
}

.project-nav__link--all:hover {
    border-color: var(--accent);
    background: rgba(79, 140, 255, .08);
}

.project-nav__title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

/* CTA */
.cta-section {
    position: relative;
    text-align: center;
    padding: 60px 40px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(79, 140, 255, .06), rgba(255, 255, 255, .02));
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    margin: 0 0 12px;
}

.cta-section p {
    font-size: 15px;
    margin: 0 0 28px;
}

/* Mobile */
@media (max-width: 900px) {
    .project-page {
        padding: 100px 0 60px;
    }

    .project-hero {
        margin-bottom: 40px;
    }

    .project-hero-image {
        margin-bottom: 60px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .project-sidebar {
        position: static;
    }

    .project-main {
        gap: 40px;
    }

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

    .project-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-nav {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .project-nav__link--prev,
    .project-nav__link--next {
        text-align: center;
    }

    .cta-section {
        padding: 40px 24px;
    }
}

/* ========================================
   AJUSTEMENTS LIGHT MODE
   ======================================== */

/* Glow background moins visible en light */
[data-theme="light"] .bg-glow {
    opacity: 0.15;
}

/* Cards avec ombre légère en light */
[data-theme="light"] .card,
[data-theme="light"] .panel,
[data-theme="light"] .info-panel,
[data-theme="light"] .project-info-card,
[data-theme="light"] .pricing-row,
[data-theme="light"] .day-rate-card,
[data-theme="light"] .info-card {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--border);
}

/* Boutons primaires - même bleu dans les deux modes */
[data-theme="light"] .btn--primary {
    background: #4F8CFF;
    color: #FFFFFF;
    border: 1px solid #4F8CFF;
}

[data-theme="light"] .btn--primary:hover {
    background: #3D7AE8;
    border-color: #3D7AE8;
}

/* Boutons normaux */
[data-theme="light"] .btn {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

[data-theme="light"] .btn:hover {
    background: var(--surface);
    border-color: var(--accent);
}

/* Boutons ghost */
[data-theme="light"] .btn--ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

[data-theme="light"] .btn--ghost:hover {
    background: var(--surface);
    border-color: var(--accent);
}

/* Footer boutons - bordures TOUJOURS visibles en light */
[data-theme="light"] .footer .btn,
[data-theme="light"] .footer a.btn,
[data-theme="light"] .footer .btn--ghost,
[data-theme="light"] .footer a.btn--ghost {
    border: 1px solid var(--border) !important;
    color: var(--text);
    background: transparent;
}

[data-theme="light"] .footer .btn:hover,
[data-theme="light"] .footer a.btn:hover,
[data-theme="light"] .footer .btn--ghost:hover,
[data-theme="light"] .footer a.btn--ghost:hover {
    border-color: var(--accent) !important;
    background: var(--surface);
}

/* Footer boutons primaires - gardent leur style */
[data-theme="light"] .footer .btn--primary,
[data-theme="light"] .footer a.btn--primary {
    background: #4F8CFF !important;
    color: #FFFFFF !important;
    border: 1px solid #4F8CFF !important;
}

[data-theme="light"] .footer .btn--primary:hover,
[data-theme="light"] .footer a.btn--primary:hover {
    background: #3D7AE8 !important;
    border-color: #3D7AE8 !important;
}


/* Navigation en light */
[data-theme="light"] .nav__link {
    color: #6C757D;
}

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.active {
    color: var(--text);
}

/* Burger menu en light */
[data-theme="light"] .burger span {
    background: var(--text);
}

/* Header en light */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

/* Footer en light */
[data-theme="light"] .footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--text);
}

[data-theme="light"] .footer__legal {
    color: var(--muted);
}

[data-theme="light"] .footer__legal:hover {
    color: var(--text);
}

[data-theme="light"] .footer .muted {
    color: var(--muted);
}

[data-theme="light"] .footer .brand__name {
    color: var(--text);
}

[data-theme="light"] .footer .brand__sub {
    color: var(--muted);
}

/* Texte gradient en light - plus sombre */
[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #3D7AE8, #5568D3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Chips/Tags en light */
[data-theme="light"] .chip,
[data-theme="light"] .tech-item,
[data-theme="light"] .project-tag {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

/* Eyebrow en light */
[data-theme="light"] .eyebrow {
    color: var(--accent);
}

/* Panel label en light */
[data-theme="light"] .panel__label {
    color: var(--text);
}

/* Status dot en light */
[data-theme="light"] .status-dot {
    background: #10B981;
}

/* Hero subtitle en light */
[data-theme="light"] .hero__subtitle {
    color: var(--muted);
}

/* Section subtitles en light */
[data-theme="light"] .section__subtitle,
[data-theme="light"] .pricing-hero__subtitle,
[data-theme="light"] .about-hero__subtitle,
[data-theme="light"] .project-hero__subtitle {
    color: var(--muted);
}

/* Tous les paragraphes muted en light */
[data-theme="light"] p.muted,
[data-theme="light"] .muted {
    color: var(--muted);
}

/* Dotation separator en light */
[data-theme="light"] .dot-sep {
    color: var(--border);
}

/* Contact meta en light */
[data-theme="light"] .contact__link {
    color: var(--accent);
}

[data-theme="light"] .contact__link:hover {
    color: #3D7AE8;
}

/* Formulaire en light */
[data-theme="light"] input,
[data-theme="light"] textarea {
    background: #FFFFFF;
    border-color: var(--border);
    color: var(--text);
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus {
    border-color: var(--accent);
    background: #FFFFFF;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #ADB5BD;
}

/* Timeline en light */
[data-theme="light"] .timeline__n {
    color: var(--accent);
}

[data-theme="light"] .timeline__item {
    border-bottom-color: var(--border);
}

/* Liens en light */
[data-theme="light"] .link,
[data-theme="light"] .external-link,
[data-theme="light"] .secondary-link {
    color: var(--accent);
}

[data-theme="light"] .link:hover,
[data-theme="light"] .external-link:hover,
[data-theme="light"] .secondary-link:hover {
    color: #3D7AE8;
}

/* Breadcrumb en light */
[data-theme="light"] .breadcrumb__link {
    color: var(--muted);
}

[data-theme="light"] .breadcrumb__link:hover {
    color: var(--text);
}

[data-theme="light"] .breadcrumb__current {
    color: var(--text);
}

/* Back to top en light */
[data-theme="light"] .back-to-top {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="light"] .back-to-top:hover {
    background: var(--accent);
}

[data-theme="light"] .back-to-top svg {
    fill: var(--text);
}

[data-theme="light"] .back-to-top:hover svg {
    fill: #FFFFFF;
}

/* Mobile nav en light */
[data-theme="light"] .mobile-nav {
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border);
}

[data-theme="light"] .mobile-nav a {
    color: var(--text);
}

[data-theme="light"] .mobile-nav a:hover {
    background: var(--surface);
}

/* Pricing en light */
[data-theme="light"] .pricing-row__value strong {
    color: var(--accent);
}

/* Stats en light */
[data-theme="light"] .stat-value {
    color: var(--accent);
}

/* ========================================
   PAGE 404
   ======================================== */

body:has(.error-page) {
    height: 100vh;
}

.error-page {
    position: relative;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 80px;
    overflow: hidden;
}

.error-page__content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.error-page__visual {
    margin-bottom: 32px;
}

.error-code {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    animation: glitch 3s infinite;
}

.error-code__digit {
    font-size: clamp(80px, 15vw, 140px);
    font-weight: 450;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
    animation: fadeIn 0.6s ease;
}

/* Animation glitch sur tout le 404 */
@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg) brightness(1);
    }
    91% {
        transform: translate(-3px, 2px);
        filter: hue-rotate(90deg) brightness(1.2);
    }
    92% {
        transform: translate(3px, -2px);
        filter: hue-rotate(-90deg) brightness(0.9);
    }
    93% {
        transform: translate(-2px, -3px);
        filter: hue-rotate(45deg) brightness(1.1);
    }
    94% {
        transform: translate(2px, 2px);
        filter: hue-rotate(-45deg) brightness(1);
    }
    95% {
        transform: translate(0);
        filter: hue-rotate(0deg) brightness(1);
    }
}

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

/* Message */
.error-page__message {
    margin-bottom: 40px;
}

.error-page__title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 600;
    margin: 12px 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.error-page__text {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 55ch;
}

.error-page__text .small {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.8;
}

/* Actions avec icônes */
.error-page__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.error-page__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.error-page__actions svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Quick links grid stylé */
.error-page__quick-links {
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.error-page__quick-links > p {
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
    font-weight: 600;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
}

.quick-link:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: rgba(79, 140, 255, 0.08);
    box-shadow: 0 8px 24px rgba(79, 140, 255, 0.15);
}

.quick-link svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    transition: transform 0.3s ease;
}

.quick-link:hover svg {
    transform: scale(1.1);
}

.quick-link span {
    font-size: 13px;
    font-weight: 500;
}

/* Light mode */
[data-theme="light"] .quick-link {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .quick-link:hover {
    box-shadow: 0 8px 24px rgba(79, 140, 255, 0.2);
}

/* Mobile */
@media (max-width: 600px) {
    .error-page {
        padding: 40px 0 60px;
    }

    .error-code__digit {
        font-size: 70px;
    }

    .error-page__actions {
        flex-direction: column;
        width: 100%;
    }

    .error-page__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}