        :root {
            --bg-primary: #0a0a0a;
            --bg-secondary: #111111;
            --bg-card: #1a1a1a;
            --bg-elevated: #222222;
            --bg-glass: rgba(26, 26, 26, 0.7);
            --text-primary: #ffffff;
            --text-secondary: #a0a0a0;
            --text-muted: #666666;
            /* Palette Adapei 35 (site officiel) */
            --accent: #0A6AB2;
            --accent-glow: rgba(10, 106, 178, 0.45);
            --coral: #FBBA00;
            --coral-glow: rgba(251, 186, 0, 0.42);
            --lime: var(--coral); /* alias: troisième accent (même valeur que --coral) */
            --border: #2a2a2a;
            --border-thick: 3px;
            --shadow-brutal: 6px 6px 0px var(--accent);
            --shadow-coral: 6px 6px 0px var(--coral);
            --radius-sm: 8px;
            --radius-md: 16px;
            --radius-lg: 24px;
        }

        :root[data-theme="light"] {
            --bg-primary: #f5f5f0;
            --bg-secondary: #ebebeb;
            --bg-card: #ffffff;
            --bg-elevated: #fafafa;
            --bg-glass: rgba(255, 255, 255, 0.8);
            --text-primary: #0a0a0a;
            --text-secondary: #555555;
            --text-muted: #888888;
            --border: #d0d0d0;
            --shadow-brutal: 6px 6px 0px var(--accent);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

        body {
            font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Noise texture overlay */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
            opacity: 0.03;
            pointer-events: none;
            z-index: 0;
        }

        /* Grid pattern — léger défilement */
        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background-image: 
                linear-gradient(var(--border) 1px, transparent 1px),
                linear-gradient(90deg, var(--border) 1px, transparent 1px);
            background-size: 80px 80px;
            opacity: 0.3;
            pointer-events: none;
            z-index: 0;
            animation: grid-drift 90s linear infinite;
        }

        @keyframes grid-drift {
            0% { background-position: 0 0, 0 0; }
            100% { background-position: 80px 80px, 80px 80px; }
        }

        /* Halos colorés animés (arrière-plan) */
        .bg-ambient {
            position: fixed;
            inset: 0;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }

        .bg-ambient::before,
        .bg-ambient::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            filter: blur(72px);
            opacity: 0.45;
            will-change: transform;
        }

        .bg-ambient::before {
            width: min(55vw, 520px);
            height: min(55vw, 520px);
            top: -12%;
            left: -8%;
            background: radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 70%);
            animation: blob-a 22s ease-in-out infinite;
        }

        .bg-ambient::after {
            width: min(50vw, 480px);
            height: min(50vw, 480px);
            bottom: -10%;
            right: -6%;
            background: radial-gradient(circle at 70% 70%, var(--coral-glow), transparent 70%);
            animation: blob-b 28s ease-in-out infinite;
        }

        .bg-ambient-blob {
            position: absolute;
            width: min(40vw, 360px);
            height: min(40vw, 360px);
            top: 42%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            filter: blur(64px);
            opacity: 0.22;
            background: radial-gradient(circle, rgba(251, 186, 0, 0.24), transparent 68%);
            animation: blob-c 35s ease-in-out infinite;
            will-change: transform;
        }

        @keyframes blob-a {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(8%, 12%) scale(1.08); }
            66% { transform: translate(4%, -6%) scale(0.95); }
        }

        @keyframes blob-b {
            0%, 100% { transform: translate(0, 0) scale(1.05); }
            50% { transform: translate(-10%, -8%) scale(1); }
        }

        @keyframes blob-c {
            0%, 100% { transform: translate(-50%, -50%) scale(1); }
            40% { transform: translate(-48%, -54%) scale(1.12); }
            70% { transform: translate(-52%, -47%) scale(0.92); }
        }

        :root[data-theme="light"] .bg-ambient::before,
        :root[data-theme="light"] .bg-ambient::after {
            opacity: 0.28;
        }

        :root[data-theme="light"] .bg-ambient-blob {
            opacity: 0.14;
        }

        @media (prefers-reduced-motion: reduce) {
            body::after {
                animation: none;
            }
            .bg-ambient::before,
            .bg-ambient::after,
            .bg-ambient-blob {
                animation: none !important;
            }
            .page-network-tracks {
                display: none;
            }
        }

        section, header, footer, main { position: relative; z-index: 1; }

        /* Typography */
        h1, h2, h3, h4 { 
            font-family: 'Syne', sans-serif; 
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1.1;
        }
        h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; }
        h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
        h3 { font-size: 1.5rem; }
        .mono { font-family: 'JetBrains Mono', monospace; }

        /* Skip link */
        .skip-link {
            position: absolute; left: -999px; top: auto;
            width: 1px; height: 1px; overflow: hidden;
        }
        .skip-link:focus {
            left: 1rem; top: 1rem; width: auto; height: auto;
            background: var(--accent); color: var(--bg-primary);
            padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); z-index: 2000;
            font-weight: 600;
        }

        :focus-visible { 
            outline: 3px solid var(--accent); 
            outline-offset: 3px; 
        }

        /* ===== HEADER ===== */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 0.75rem 0;
            transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
        }

        header.scrolled {
            background: var(--bg-glass);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-bottom: 2px solid var(--border);
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
        }

        nav {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1.5rem;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            text-decoration: none;
            color: var(--text-primary);
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 1.2rem;
            letter-spacing: -0.02em;
        }

        .logo-box {
            width: 40px;
            height: 40px;
            background: var(--accent);
            border: 2px solid var(--text-primary);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: var(--bg-primary);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            box-shadow: 3px 3px 0 var(--text-primary);
        }

        .logo:hover .logo-box {
            transform: translate(-2px, -2px);
            box-shadow: 5px 5px 0 var(--text-primary);
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            padding: 0.5rem 1rem;
            border-radius: var(--radius-sm);
            border: 2px solid transparent;
            transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        }

        .nav-links a:hover {
            color: var(--text-primary);
            background: var(--bg-elevated);
            border-color: var(--border);
        }

        .nav-links a.active {
            color: var(--bg-primary);
            background: var(--coral);
            border-color: var(--text-primary);
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .theme-toggle {
            width: 40px;
            height: 40px;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
            cursor: pointer;
            transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }

        .theme-toggle:hover {
            color: var(--coral);
            border-color: var(--coral);
            transform: rotate(180deg);
        }

        .mobile-menu-btn {
            display: none;
            width: 40px;
            height: 40px;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            cursor: pointer;
            font-size: 1.1rem;
            align-items: center;
            justify-content: center;
        }

        .mobile-menu-btn:focus-visible {
            outline: 3px solid var(--accent);
            outline-offset: 3px;
        }

        /* ===== HERO ===== */
        #hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 8rem 2rem 4rem;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 4rem;
            align-items: center;
            width: 100%;
        }

        .hero-content {
            position: relative;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: var(--bg-card);
            border: 2px solid var(--lime);
            border-radius: 999px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--lime);
            margin-bottom: 2rem;
            font-family: 'JetBrains Mono', monospace;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-badge::before {
            content: '';
            width: 8px;
            height: 8px;
            background: var(--lime);
            border-radius: 50%;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.3); }
        }

        .hero-title {
            margin-bottom: 1.5rem;
        }

        .hero-title .line {
            display: block;
            overflow: hidden;
        }

        .hero-title .highlight {
            color: var(--accent);
            position: relative;
            display: inline-block;
        }

        .hero-title .highlight::after {
            content: '';
            position: absolute;
            bottom: 0.1em;
            left: 0;
            width: 100%;
            height: 0.15em;
            background: var(--coral);
            transform: skewX(-15deg);
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--text-secondary);
            margin-bottom: 2.5rem;
            max-width: 500px;
            line-height: 1.7;
        }

        .hero-cta {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 2rem;
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            font-size: 1rem;
            text-decoration: none;
            border-radius: var(--radius-sm);
            border: var(--border-thick) solid var(--text-primary);
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }

        .btn-primary {
            background: var(--accent);
            color: var(--bg-primary);
            box-shadow: var(--shadow-brutal);
        }

        .btn-primary:hover {
            transform: translate(-3px, -3px);
            box-shadow: 9px 9px 0 var(--accent);
        }

        .btn-secondary {
            background: var(--bg-card);
            color: var(--text-primary);
            box-shadow: 6px 6px 0 var(--border);
        }

        .btn-secondary:hover {
            transform: translate(-3px, -3px);
            box-shadow: 9px 9px 0 var(--border);
            border-color: var(--coral);
        }

        .btn i {
            transition: transform 0.3s ease;
        }

        .btn:hover i {
            transform: translateX(4px);
        }

        /* Hero Image */
        .hero-visual {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-image-container {
            position: relative;
            width: 380px;
            height: 450px;
        }

        .hero-image-frame {
            position: absolute;
            inset: 0;
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-lg);
            transform: translate(12px, 12px);
            background: var(--coral);
        }

        .hero-image {
            position: relative;
            width: 100%;
            height: 100%;
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-lg);
            overflow: hidden;
            background: var(--bg-card);
        }

        .hero-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(20%);
            transition: all 0.5s ease;
        }

        .hero-image:hover img {
            filter: grayscale(0%);
            transform: scale(1.05);
        }

        /* Floating badges */
        .floating-badge {
            position: absolute;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 0.75rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
            font-size: 0.9rem;
            box-shadow: 4px 4px 0 var(--border);
            animation: float 4s ease-in-out infinite;
            z-index: 10;
        }

        .floating-badge.top {
            top: -1rem;
            right: -2rem;
            animation-delay: 0s;
        }

        .floating-badge.bottom {
            bottom: 2rem;
            left: -3rem;
            animation-delay: -2s;
        }

        .floating-badge i {
            color: var(--accent);
        }

        .floating-badge.coral i {
            color: var(--coral);
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-10px) rotate(2deg); }
        }

        /* ===== MARQUEE ===== */
        .marquee-section {
            padding: 2rem 0;
            background: var(--accent);
            border-top: var(--border-thick) solid var(--text-primary);
            border-bottom: var(--border-thick) solid var(--text-primary);
            overflow: hidden;
        }

        .marquee-track {
            display: flex;
            animation: marquee 30s linear infinite;
        }

        .marquee-content {
            display: flex;
            gap: 3rem;
            padding-right: 3rem;
        }

        .marquee-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            white-space: nowrap;
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--bg-primary);
        }

        .marquee-item i {
            font-size: 1.5rem;
        }

        @keyframes marquee {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* ===== STATS ===== */
        /* Réseau traits + boules — tout le viewport (fixe) */
        .page-network-tracks {
            position: fixed;
            inset: 0;
            z-index: 0;
            pointer-events: none;
            opacity: 0.5;
        }

        .page-network-tracks .stats-network-svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .page-network-tracks .stats-network-svg path {
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        /* ===== ADAPEI 35 ===== */
        #adapei {
            padding: 6rem 2rem;
            background: var(--bg-secondary);
            border-top: var(--border-thick) solid var(--text-primary);
        }

        .adapei-container {
            max-width: 1100px;
            margin: 0 auto;
        }

        .adapei-header {
            text-align: center;
            margin-bottom: 2rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .adapei-logo {
            display: block;
            width: min(100%, 520px);
            height: auto;
            margin: 1rem auto 1.35rem;
            border-radius: var(--radius-sm);
        }

        .adapei-header h2 .accent {
            color: var(--lime);
        }

        .adapei-subtitle {
            font-size: 0.95rem;
            color: var(--text-muted);
            font-weight: 600;
            margin-top: 0.5rem;
            line-height: 1.45;
        }

        .adapei-intro {
            color: var(--text-secondary);
            font-size: 1.05rem;
            line-height: 1.65;
            margin-top: 1rem;
        }

        .adapei-body {
            max-width: 800px;
            margin: 0 auto 2rem;
        }

        .adapei-presentation-text .adapei-body {
            margin: 0;
            max-width: none;
        }

        .adapei-body p {
            color: var(--text-secondary);
            font-size: 1.02rem;
            line-height: 1.7;
            margin: 0 0 1rem;
        }

        .adapei-body p:last-child {
            margin-bottom: 0;
        }

        .adapei-presentation {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(300px, min(48vw, 540px));
            gap: 2rem 2rem;
            align-items: center;
            margin-bottom: 2.25rem;
        }

        /* Logo au-dessus : la vidéo s’aligne au centre du texte uniquement (sans le logo) */
        .adapei-presentation-top {
            margin-bottom: 2rem;
            text-align: left;
        }

        .adapei-presentation-top .section-label {
            display: inline-block;
        }

        .adapei-presentation-top .adapei-logo {
            display: block;
            width: min(100%, 520px);
            height: auto;
            margin: 1rem 0 0;
            border-radius: var(--radius-sm);
        }

        .adapei-presentation-text .adapei-subtitle {
            margin-top: 0;
        }

        .adapei-video-wrap {
            margin: 0;
            position: relative;
            width: 100%;
            max-width: 540px;
            justify-self: center;
        }

        .adapei-video-title {
            font-family: 'Syne', sans-serif;
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 0.75rem;
            text-align: center;
            letter-spacing: -0.02em;
        }

        .adapei-video {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            border-radius: var(--radius-md);
            overflow: hidden;
            border: var(--border-thick) solid var(--text-primary);
            box-shadow: 6px 6px 0 var(--lime);
            background: #000;
        }

        .adapei-video iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        .adapei-video-trigger {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
            padding: 0;
            background: #000;
            cursor: pointer;
        }

        .adapei-video-trigger img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            filter: brightness(0.86);
        }

        .adapei-video-play {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 64px;
            height: 64px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background: rgba(0, 0, 0, 0.65);
            color: #fff;
            border: 2px solid rgba(255, 255, 255, 0.85);
            font-size: 1.2rem;
            transition: transform 0.2s ease, background 0.2s ease;
        }

        .adapei-video-trigger:hover .adapei-video-play,
        .adapei-video-trigger:focus-visible .adapei-video-play {
            transform: translate(-50%, -50%) scale(1.06);
            background: rgba(0, 0, 0, 0.78);
        }

        .adapei-video-caption {
            margin: 0.65rem 0 0;
            font-size: 0.82rem;
            color: var(--text-muted);
            text-align: center;
            line-height: 1.45;
        }

        @media (max-width: 900px) {
            .adapei-presentation {
                grid-template-columns: 1fr;
                align-items: stretch;
            }

            .adapei-presentation-top {
                text-align: center;
            }

            .adapei-presentation-top .adapei-logo {
                margin-left: auto;
                margin-right: auto;
            }

            .adapei-video-wrap {
                position: static;
                max-width: 640px;
                width: 100%;
                justify-self: center;
                margin-left: auto;
                margin-right: auto;
            }

            .adapei-video-title,
            .adapei-video-caption {
                text-align: center;
            }
        }

        .adapei-kpi {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 1rem;
            max-width: 920px;
            margin: 0 auto 1.75rem;
        }

        .adapei-kpi-item {
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 1.1rem 0.85rem;
            text-align: center;
            transition: transform 0.2s ease, border-color 0.2s ease;
        }

        .adapei-kpi-item:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
        }

        .adapei-kpi-value {
            font-family: 'Syne', sans-serif;
            font-size: 1.65rem;
            font-weight: 800;
            color: var(--text-primary);
            line-height: 1.15;
            margin-bottom: 0.35rem;
        }

        .adapei-kpi-label {
            font-size: 0.72rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-weight: 600;
            line-height: 1.35;
        }

        .adapei-si-note {
            max-width: 800px;
            margin: 0 auto 2.25rem;
            padding: 1rem 1.25rem;
            background: var(--bg-elevated);
            border-left: 4px solid var(--coral);
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
            font-size: 0.98rem;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .adapei-territory-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
            gap: 1.75rem 2rem;
            align-items: start;
            max-width: 1120px;
            margin: 0 auto 2rem;
        }

        .adapei-territory-layout .adapei-territory {
            max-width: none;
            margin: 0;
        }

        .adapei-territory-layout .adapei-map {
            margin: 0;
            max-width: none;
        }

        @media (min-width: 901px) {
            .adapei-territory-layout .adapei-map {
                position: sticky;
                top: 5.5rem;
            }
        }

        @media (max-width: 900px) {
            .adapei-territory-layout {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .adapei-territory-layout .adapei-map {
                position: static;
                max-width: 520px;
                margin-left: auto;
                margin-right: auto;
            }
        }

        .adapei-territory {
            max-width: 800px;
            margin: 0 auto 2rem;
            padding: 1.75rem 1.5rem;
            background: var(--bg-card);
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-md);
            box-shadow: 6px 6px 0 var(--lime);
        }

        .adapei-territory-title {
            font-family: 'Syne', sans-serif;
            font-size: 1.2rem;
            margin: 0 0 1rem;
            letter-spacing: -0.02em;
        }

        .adapei-territory p {
            color: var(--text-secondary);
            font-size: 0.98rem;
            line-height: 1.7;
            margin: 0 0 1rem;
        }

        .adapei-territory p:last-of-type {
            margin-bottom: 0;
        }

        .adapei-poles {
            margin: 1rem 0 0;
            padding: 0;
            list-style: none;
        }

        .adapei-poles li {
            position: relative;
            padding-left: 1.35rem;
            margin-bottom: 0.6rem;
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .adapei-poles li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.55em;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
        }

        .adapei-poles li:nth-child(2)::before { background: var(--coral); }
        .adapei-poles li:nth-child(3)::before { background: var(--lime); }
        .adapei-poles li:nth-child(4)::before { background: var(--text-muted); }

        .adapei-map {
            margin: 2rem auto 0;
            max-width: 920px;
        }

        .adapei-map figure {
            margin: 0;
        }

        .adapei-map img {
            width: 100%;
            height: auto;
            display: block;
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-md);
            background: var(--bg-card);
        }

        .adapei-map figcaption {
            margin-top: 0.75rem;
            font-size: 0.82rem;
            color: var(--text-secondary);
            line-height: 1.45;
            text-align: center;
        }

        .adapei-footer-note {
            max-width: 800px;
            margin: 2rem auto 0;
        }

        .adapei-footer-note p {
            color: var(--text-secondary);
            font-size: 1rem;
            line-height: 1.65;
            margin: 0;
        }

        /* ===== ABOUT ===== */
        #about {
            padding: 6rem 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .section-label {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 1rem;
        }

        .section-label::before {
            content: '';
            width: 30px;
            height: 2px;
            background: var(--accent);
        }

        .about-title {
            margin-bottom: 1.5rem;
        }

        .about-title .accent {
            color: var(--coral);
        }

        .about-text {
            color: var(--text-secondary);
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
        }

        .about-highlights {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 2rem;
        }

        .highlight-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.25rem;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            transition: all 0.3s ease;
        }

        .highlight-card:hover {
            border-color: var(--accent);
            transform: translateX(8px);
        }

        .highlight-card i {
            color: var(--accent);
            font-size: 1.2rem;
        }

        .highlight-card span {
            font-weight: 600;
        }

        /* About Card */
        .about-card {
            position: relative;
        }

        .about-card-frame {
            position: absolute;
            inset: 0;
            border: var(--border-thick) solid var(--coral);
            border-radius: var(--radius-lg);
            transform: translate(12px, 12px);
        }

        .about-card-inner {
            position: relative;
            background: var(--bg-card);
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-lg);
            padding: 2rem;
        }

        .about-card-header {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            margin-bottom: 1.5rem;
        }

        .about-avatar {
            width: 80px;
            height: 80px;
            border-radius: var(--radius-md);
            overflow: hidden;
            border: 3px solid var(--accent);
        }

        .about-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .about-card-info h3 {
            margin-bottom: 0.25rem;
        }

        .about-card-info p {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .about-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .about-tag {
            padding: 0.4rem 0.75rem;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-secondary);
            font-family: 'JetBrains Mono', monospace;
        }

        .about-cv-row {
            margin-top: 1.75rem;
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
        }

        .about-cv-row .btn-cv-preview {
            cursor: pointer;
        }

        /* Modale aperçu CV */
        .cv-modal {
            position: fixed;
            inset: 0;
            z-index: 2500;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }

        .cv-modal.is-open {
            opacity: 1;
            visibility: visible;
        }

        .cv-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            cursor: pointer;
        }

        .cv-modal-dialog {
            position: relative;
            width: min(960px, 100%);
            max-height: min(90vh, 900px);
            background: var(--bg-card);
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-md);
            box-shadow: 12px 12px 0 var(--accent);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .cv-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1rem 1.25rem;
            border-bottom: 2px solid var(--border);
            background: var(--bg-secondary);
        }

        .cv-modal-header h2 {
            font-size: 1.15rem;
            margin: 0;
        }

        .cv-modal-close {
            width: 44px;
            height: 44px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-elevated);
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            cursor: pointer;
            font-size: 1.25rem;
            transition: border-color 0.2s ease, color 0.2s ease;
        }

        .cv-modal-close:hover {
            border-color: var(--coral);
            color: var(--coral);
        }

        .cv-modal-body {
            flex: 1;
            min-height: 0;
            background: var(--bg-elevated);
        }

        .cv-modal-body iframe {
            display: block;
            width: 100%;
            height: min(75vh, 720px);
            border: none;
        }

        .cv-modal-fallback {
            padding: 1rem 1.25rem;
            font-size: 0.9rem;
            color: var(--text-secondary);
            text-align: center;
            border-top: 1px solid var(--border);
        }

        .cv-modal-fallback a {
            color: var(--accent);
            font-weight: 600;
        }

        body.cv-modal-open {
            overflow: hidden;
        }

        /* ===== SERVICES ===== */
        #services {
            padding: 6rem 2rem;
            background: var(--bg-secondary);
            border-top: var(--border-thick) solid var(--text-primary);
            border-bottom: var(--border-thick) solid var(--text-primary);
        }

        .services-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .services-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .service-card {
            background: var(--bg-card);
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-md);
            padding: 2.5rem 2rem;
            position: relative;
            transition: all 0.3s ease;
        }

        .service-card:hover {
            transform: translate(-6px, -6px);
        }

        .service-card:nth-child(1) { box-shadow: 6px 6px 0 var(--accent); }
        .service-card:nth-child(2) { box-shadow: 6px 6px 0 var(--coral); }
        .service-card:nth-child(3) { box-shadow: 6px 6px 0 var(--lime); }

        .service-card:nth-child(1):hover { box-shadow: 12px 12px 0 var(--accent); }
        .service-card:nth-child(2):hover { box-shadow: 12px 12px 0 var(--coral); }
        .service-card:nth-child(3):hover { box-shadow: 12px 12px 0 var(--lime); }

        .service-icon {
            width: 70px;
            height: 70px;
            background: var(--bg-elevated);
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin-bottom: 1.5rem;
            transition: all 0.3s ease;
        }

        .service-card:nth-child(1) .service-icon { color: var(--accent); }
        .service-card:nth-child(2) .service-icon { color: var(--coral); }
        .service-card:nth-child(3) .service-icon { color: var(--lime); }

        .service-card:hover .service-icon {
            transform: scale(1.1) rotate(-5deg);
        }

        .service-card h3 {
            margin-bottom: 1rem;
        }

        .service-card p {
            color: var(--text-secondary);
            line-height: 1.7;
        }

        /* ===== PROJECTS ===== */
        #projects,
        #realisations {
            padding: 6rem 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        #realisations {
            border-top: var(--border-thick) solid var(--text-primary);
            padding-top: 5rem;
        }

        #realisations .section-intro {
            color: var(--text-secondary);
            font-size: 0.95rem;
            max-width: 60ch;
            margin-top: 0.75rem;
            line-height: 1.6;
        }

        #realisations .project-badge {
            border-color: var(--coral);
            color: var(--coral);
        }

        .projects-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 3rem;
            flex-wrap: wrap;
            gap: 2rem;
        }

        .filters {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 0.6rem 1.25rem;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
            font-family: 'Syne', sans-serif;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .filter-btn.active {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--bg-primary);
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background: var(--bg-card);
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-md);
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
            display: block;
        }

        .project-card:hover {
            transform: translate(-6px, -6px);
            box-shadow: 12px 12px 0 var(--accent);
        }

        .project-image {
            height: 220px;
            overflow: hidden;
            position: relative;
            border-bottom: var(--border-thick) solid var(--text-primary);
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(30%);
            transition: all 0.5s ease;
        }

        .project-image img.project-logo {
            object-fit: contain;
            object-position: center;
            padding: 1rem;
            background: #ffffff;
            filter: grayscale(0%);
        }

        .project-card:hover .project-image img {
            filter: grayscale(0%);
            transform: scale(1.08);
        }

        .project-card:hover .project-image img.project-logo {
            transform: none;
        }

        .project-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            padding: 0.4rem 0.8rem;
            background: var(--bg-primary);
            border: 2px solid var(--accent);
            border-radius: var(--radius-sm);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--accent);
            text-transform: uppercase;
        }

        .project-info {
            padding: 1.75rem;
        }

        .project-info h3 {
            margin-bottom: 0.75rem;
            transition: color 0.3s ease;
        }

        .project-card:hover .project-info h3 {
            color: var(--accent);
        }

        .project-info p {
            color: var(--text-secondary);
            margin-bottom: 1.25rem;
            font-size: 0.95rem;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.25rem;
        }

        .project-tag {
            padding: 0.3rem 0.7rem;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-muted);
            font-family: 'JetBrains Mono', monospace;
            text-transform: uppercase;
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-secondary);
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .project-link::after {
            content: '→';
            transition: transform 0.3s ease;
        }

        .project-card:hover .project-link {
            color: var(--accent);
        }

        .project-card:hover .project-link::after {
            transform: translateX(5px);
        }

        /* ===== PARCOURS SCOLAIRE ===== */
        #parcours {
            padding: 6rem 2rem;
            background: var(--bg-secondary);
            border-top: var(--border-thick) solid var(--text-primary);
        }

        .parcours-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .parcours-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .parcours-timeline {
            position: relative;
            padding-left: 2.5rem;
        }

        .parcours-timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(to bottom, var(--lime), var(--accent), var(--coral));
            border-radius: 2px;
        }

        .parcours-item {
            position: relative;
            padding-bottom: 2.5rem;
        }

        .parcours-item:last-child {
            padding-bottom: 0;
        }

        .parcours-dot {
            position: absolute;
            left: -2.5rem;
            top: 0;
            width: 20px;
            height: 20px;
            background: var(--bg-primary);
            border: 4px solid var(--lime);
            border-radius: 50%;
            transform: translateX(-50%);
        }

        .parcours-item:nth-child(2) .parcours-dot { border-color: var(--accent); }
        .parcours-item:nth-child(3) .parcours-dot { border-color: var(--coral); }

        .parcours-content {
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            margin-left: 1rem;
            transition: all 0.3s ease;
        }

        .parcours-item:hover .parcours-content {
            border-color: var(--accent);
            transform: translateX(8px);
        }

        .parcours-date {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--lime);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.5rem;
        }

        .parcours-item:nth-child(2) .parcours-date { color: var(--accent); }
        .parcours-item:nth-child(3) .parcours-date { color: var(--coral); }

        .parcours-title {
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
        }

        .parcours-desc {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        /* ===== DOSSIER ===== */
        #dossier {
            padding: 6rem 2rem;
            background: var(--bg-secondary);
            border-top: var(--border-thick) solid var(--text-primary);
            border-bottom: var(--border-thick) solid var(--text-primary);
        }

        .dossier-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .dossier-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .dossier-header h2 {
            margin-bottom: 1rem;
        }

        .dossier-header h2 .accent {
            color: var(--coral);
        }

        .dossier-header > p {
            color: var(--text-secondary);
            font-size: 1.05rem;
            max-width: 560px;
            margin: 0 auto;
        }

        .dossier-note {
            text-align: center;
            color: var(--text-muted);
            font-size: 0.88rem;
            margin: 0 auto 1.75rem;
            max-width: 720px;
            line-height: 1.5;
        }

        .dossier-block {
            margin-top: 2.25rem;
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-md);
            background: var(--bg-card);
            overflow: hidden;
        }

        .dossier-block:first-of-type {
            margin-top: 0;
        }

        .dossier-block-summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.15rem 1.35rem;
            cursor: pointer;
            font-family: 'Syne', sans-serif;
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            list-style: none;
            user-select: none;
            transition: background 0.2s ease;
        }

        .dossier-block-summary::-webkit-details-marker {
            display: none;
        }

        .dossier-block-summary:hover {
            background: var(--bg-elevated);
        }

        .dossier-block-summary:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        .dossier-block-summary-title {
            text-align: left;
        }

        .dossier-block-chevron {
            flex-shrink: 0;
            font-size: 0.85rem;
            color: var(--accent);
            transition: transform 0.25s ease;
        }

        .dossier-block:not([open]) .dossier-block-chevron {
            transform: rotate(-90deg);
        }

        .dossier-block-panel {
            padding: 0 1.25rem 1.35rem;
        }

        .dossier-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.5rem;
        }

        /* === DOSSIER CARD — version moderne === */
        .dossier-card {
            display: flex;
            flex-direction: column;
            text-align: left;
            background: var(--bg-card);
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-md);
            text-decoration: none;
            color: inherit;
            transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
            position: relative;
            overflow: hidden;
            min-height: 260px;
        }

        .dossier-card:hover {
            transform: translate(-5px, -5px);
            box-shadow: 10px 10px 0 var(--accent);
            border-color: var(--accent);
        }
        .dossier-grid .dossier-card:nth-child(3n+2):hover { box-shadow: 10px 10px 0 var(--coral); border-color: var(--coral); }
        .dossier-grid .dossier-card:nth-child(3n+3):hover { box-shadow: 10px 10px 0 var(--lime); border-color: var(--lime); }

        /* Zone visuelle en haut */
        .dossier-card-visual {
            position: relative;
            width: 100%;
            height: 160px;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(10,106,178,0.18), rgba(251,186,0,0.14));
            border-bottom: 2px solid var(--text-primary);
            flex-shrink: 0;
        }
        .dossier-grid .dossier-card:nth-child(3n+2) .dossier-card-visual { background: linear-gradient(135deg, rgba(251,186,0,0.22), rgba(10,106,178,0.12)); }
        .dossier-grid .dossier-card:nth-child(3n+3) .dossier-card-visual { background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(10,106,178,0.14)); }

        /* Thumbnail full-bleed (si présent) */
        .dossier-card-thumb {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            margin: 0;
            border: 0;
            border-radius: 0;
            display: block;
            transition: transform 0.5s cubic-bezier(.2,.7,.3,1), filter 0.4s ease;
            filter: saturate(0.92);
        }
        .dossier-card:hover .dossier-card-thumb { transform: scale(1.06); filter: saturate(1.1); }

        /* Overlay dégradé sur thumbnail pour lisibilité */
        .dossier-card-visual::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
            opacity: 0;
            transition: opacity 0.35s ease;
            pointer-events: none;
        }
        .dossier-card:has(.dossier-card-thumb) .dossier-card-visual::after { opacity: 1; }

        /* Icône centrée quand pas de thumbnail */
        .dossier-card-icon {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            background: transparent;
            border: 0;
            border-radius: 0;
            color: var(--accent);
            font-size: 3rem;
            margin: 0;
            transition: transform 0.4s ease, color 0.4s ease;
            z-index: 1;
        }
        .dossier-card:has(.dossier-card-thumb) .dossier-card-icon {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            inset: auto;
            width: 40px;
            height: 40px;
            background: var(--bg-primary);
            border: 2px solid var(--text-primary);
            border-radius: var(--radius-sm);
            font-size: 0.95rem;
            color: var(--coral);
            box-shadow: 3px 3px 0 var(--text-primary);
            z-index: 2;
        }
        .dossier-card:hover .dossier-card-icon { transform: scale(1.05); }
        .dossier-card:has(.dossier-card-thumb):hover .dossier-card-icon { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--text-primary); }

        .dossier-grid .dossier-card:nth-child(3n+2) .dossier-card-icon { color: var(--coral); }
        .dossier-grid .dossier-card:nth-child(3n+3) .dossier-card-icon { color: var(--lime); }

        /* Gros numéro décoratif en filigrane */
        .dossier-card-num {
            position: absolute;
            top: 50%;
            right: -0.5rem;
            transform: translateY(-50%);
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 7rem;
            line-height: 1;
            color: var(--text-primary);
            opacity: 0.06;
            letter-spacing: -0.04em;
            pointer-events: none;
            user-select: none;
            z-index: 1;
            transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.2,.7,.3,1);
        }
        .dossier-card:hover .dossier-card-num {
            opacity: 0.14;
            transform: translateY(-50%) translateX(-4px);
        }

        /* Zone texte */
        .dossier-card-body {
            padding: 1.15rem 1.25rem 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
            flex: 1;
        }
        .dossier-card h3 {
            font-size: 1.1rem;
            margin: 0;
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.01em;
        }
        /* Masque la description redondante "X (PDF)" */
        .dossier-card p { display: none; }

        .dossier-card-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--accent);
            margin-top: auto;
            padding-top: 0.5rem;
            border-top: 1px dashed var(--border);
            transition: color 0.3s ease, gap 0.3s ease;
        }
        .dossier-card-cta::before {
            content: '\f1c1'; /* fa-file-pdf */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            font-size: 0.85rem;
        }
        .dossier-card-cta::after {
            content: '\f019'; /* fa-download */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            margin-left: auto;
            font-size: 0.85rem;
            transition: transform 0.3s ease;
        }
        .dossier-card:hover .dossier-card-cta { color: var(--text-primary); gap: 0.7rem; }
        .dossier-card:hover .dossier-card-cta::after { transform: translateY(2px); }
        .dossier-grid .dossier-card:nth-child(3n+2) .dossier-card-cta { color: var(--coral); }
        .dossier-grid .dossier-card:nth-child(3n+3) .dossier-card-cta { color: var(--lime); }

        /* ===== FOOTER ===== */
        footer {
            background: var(--bg-secondary);
            border-top: var(--border-thick) solid var(--text-primary);
            padding: 4rem 2rem 3rem;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            text-align: center;
        }

        .footer-logo {
            font-family: 'Syne', sans-serif;
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            color: var(--text-primary);
        }

        .footer-logo span {
            color: var(--accent);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .social-links a {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            color: var(--accent);
            border-color: var(--accent);
            transform: translateY(-4px);
            box-shadow: 0 6px 0 var(--accent);
        }

        .copyright {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        code {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85em;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            padding: 0.1em 0.4em;
            border-radius: 4px;
            color: var(--accent);
        }

        /* ===== FAB ===== */
        .fab {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 56px;
            height: 56px;
            background: var(--accent);
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-sm);
            color: var(--bg-primary);
            font-size: 1.2rem;
            cursor: pointer;
            z-index: 1000;
            opacity: 0;
            transform: scale(0) rotate(-180deg);
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 4px 4px 0 var(--text-primary);
        }

        .fab.visible {
            opacity: 1;
            transform: scale(1) rotate(0deg);
        }

        .fab:hover {
            transform: scale(1.1) translateY(-4px);
            box-shadow: 6px 10px 0 var(--text-primary);
        }

        /* Scroll Progress */
        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 4px;
            background: linear-gradient(90deg, var(--accent), var(--coral), var(--lime));
            z-index: 1001;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .hero-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-subtitle {
                margin-left: auto;
                margin-right: auto;
            }

            .hero-cta {
                justify-content: center;
            }

            .hero-visual {
                order: -1;
            }

            .hero-image-container {
                width: 300px;
                height: 360px;
            }

            .floating-badge {
                display: none;
            }

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

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

        }

        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: flex;
            }

            .nav-links {
                position: fixed;
                top: 72px;
                left: 0;
                width: 100%;
                background: var(--bg-glass);
                backdrop-filter: blur(16px);
                border-bottom: 2px solid var(--border);
                flex-direction: column;
                padding: 1rem;
                gap: 0.25rem;
                transform: translateY(-150%);
                transition: transform 0.3s ease;
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            }

            .nav-links.active {
                transform: translateY(0);
            }

            .nav-links a {
                width: 100%;
                text-align: center;
                padding: 0.85rem 1rem;
            }

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

            .projects-header {
                flex-direction: column;
                align-items: flex-start;
            }

            h1 {
                font-size: clamp(2.5rem, 10vw, 4rem);
            }
        }

        @media (max-width: 480px) {
            section {
                padding: 4rem 1rem;
            }

            .about-highlights {
                grid-template-columns: 1fr;
            }

            .hero-cta {
                flex-direction: column;
            }

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

            .filters {
                width: 100%;
            }

            .filter-btn {
                flex: 1;
                text-align: center;
            }
        }

        /* =======================================================
           VISUAL ENHANCEMENTS — ADN conserve (dark + Adapei)
           ======================================================= */

        /* Reveal on scroll */
        .reveal {
            opacity: 0;
            transform: translateY(28px);
            transition:
                opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
            will-change: opacity, transform;
        }
        .reveal.is-visible { opacity: 1; transform: none; }
        .reveal[data-delay="1"] { transition-delay: 0.08s; }
        .reveal[data-delay="2"] { transition-delay: 0.16s; }
        .reveal[data-delay="3"] { transition-delay: 0.24s; }
        .reveal[data-delay="4"] { transition-delay: 0.32s; }
        .reveal[data-delay="5"] { transition-delay: 0.4s; }
        @media (prefers-reduced-motion: reduce) {
            .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
        }

        /* Buttons: shimmer + lift */
        .btn { overflow: hidden; isolation: isolate; }
        .btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(120deg,
                transparent 0%,
                rgba(255, 255, 255, 0.28) 50%,
                transparent 100%);
            transform: translateX(-130%);
            transition: transform 0.75s ease;
            pointer-events: none;
            z-index: 0;
        }
        .btn:hover::before { transform: translateX(130%); }
        .btn > * { position: relative; z-index: 1; }
        .btn-primary:hover {
            box-shadow: 10px 10px 0 var(--accent), 0 0 0 2px var(--accent-glow);
        }

        /* Hero title: gradient animate sur highlight */
        .hero-title .highlight {
            background: linear-gradient(90deg,
                var(--accent) 0%,
                var(--coral) 50%,
                var(--accent) 100%);
            background-size: 200% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            animation: hue-shift 9s linear infinite;
        }
        @keyframes hue-shift {
            0%   { background-position: 0% 50%; }
            100% { background-position: 200% 50%; }
        }
        @media (prefers-reduced-motion: reduce) {
            .hero-title .highlight { animation: none; }
        }

        /* Cards: glow + tilt via CSS vars pilotes en JS */
        .project-card,
        .service-card,
        .dossier-card {
            transform-style: preserve-3d;
            will-change: transform;
            transition:
                transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-color 0.35s ease;
        }
        .project-card { position: relative; }
        .project-card::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            border-radius: inherit;
            background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%),
                rgba(10, 106, 178, 0.18),
                transparent 42%);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
        }
        .project-card:hover::after { opacity: 1; }
        .project-card:hover { border-color: var(--accent); }

        .service-card:hover { border-color: var(--accent); }
        .dossier-card:hover { border-color: var(--accent); }

        /* Scroll progress: lueur Adapei */
        .scroll-progress {
            box-shadow: 0 0 14px var(--accent-glow);
        }

        /* Header scrolled: ligne degradee sous le header */
        header.scrolled {
            position: fixed;
        }
        header.scrolled::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: -2px;
            height: 2px;
            background: linear-gradient(90deg,
                transparent,
                var(--accent) 30%,
                var(--coral) 70%,
                transparent);
            opacity: 0.85;
            pointer-events: none;
        }

        /* FAB: halo pulsant */
        .fab.visible {
            box-shadow:
                0 0 0 0 var(--accent-glow),
                4px 4px 0 var(--text-primary);
            animation: fab-pulse 2.6s ease-in-out infinite;
        }
        @keyframes fab-pulse {
            0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow), 4px 4px 0 var(--text-primary); }
            50%      { box-shadow: 0 0 0 14px rgba(10, 106, 178, 0), 4px 4px 0 var(--text-primary); }
        }
        @media (prefers-reduced-motion: reduce) {
            .fab.visible { animation: none; }
        }

        /* Filter buttons: underline anime */
        .filter-btn { position: relative; overflow: hidden; }
        .filter-btn::after {
            content: '';
            position: absolute;
            left: 12%;
            right: 12%;
            bottom: 6px;
            height: 2px;
            background: var(--accent);
            transform: scaleX(0);
            transform-origin: left center;
            transition: transform 0.35s ease;
        }
        .filter-btn:hover::after,
        .filter-btn.active::after { transform: scaleX(1); }

        /* Project image: zoom + glow cyan subtil au survol */
        .project-image::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at center,
                transparent 50%,
                rgba(0, 0, 0, 0.35) 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: 1;
            pointer-events: none;
        }
        .project-card:hover .project-image::before { opacity: 1; }

        /* Images: rendu plus net */
        img { image-rendering: auto; }

        /* =======================================================
           HERO — mini stats inline + terminal card flottante
           ======================================================= */
        .hero-stats-inline {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            margin-top: 2.25rem;
            padding: 1rem 1.25rem;
            background: var(--bg-card);
            border: 2px solid var(--border);
            border-radius: var(--radius-md);
            width: fit-content;
            box-shadow: 4px 4px 0 var(--border);
        }
        .hsi-item {
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
        }
        .hsi-num {
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 1.5rem;
            color: var(--accent);
            line-height: 1;
            letter-spacing: -0.03em;
        }
        .hsi-item:nth-child(3) .hsi-num { color: var(--coral); }
        .hsi-item:nth-child(5) .hsi-num { color: var(--lime); }
        .hsi-lbl {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }
        .hsi-sep {
            width: 1px;
            height: 28px;
            background: var(--border);
        }

        @media (max-width: 1024px) {
            .hero-stats-inline { margin-left: auto; margin-right: auto; }
        }
        @media (max-width: 480px) {
            .hero-stats-inline { gap: 0.85rem; padding: 0.85rem 1rem; }
            .hsi-num { font-size: 1.2rem; }
            .hsi-lbl { font-size: 0.65rem; }
        }

        /* Terminal card flottante dans hero */
        .hero-terminal {
            position: absolute;
            bottom: -2.5rem;
            right: -4rem;
            width: 260px;
            background: #0d1117;
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-sm);
            box-shadow: 6px 6px 0 var(--accent);
            overflow: hidden;
            z-index: 5;
            font-family: 'JetBrains Mono', monospace;
            animation: float 4s ease-in-out infinite;
            animation-delay: -1s;
        }
        .hero-terminal-head {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 0.75rem;
            background: #161b22;
            border-bottom: 1px solid #30363d;
        }
        .ht-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #30363d;
        }
        .ht-dot.red { background: #ff5f57; }
        .ht-dot.yellow { background: #febc2e; }
        .ht-dot.green { background: #28c840; }
        .ht-title {
            margin-left: auto;
            font-size: 0.7rem;
            color: #8b949e;
        }
        .hero-terminal-body {
            padding: 0.85rem 0.9rem;
            font-size: 0.75rem;
            line-height: 1.7;
            color: #c9d1d9;
        }
        .ht-prompt {
            color: var(--coral);
            font-weight: 700;
            margin-right: 0.35rem;
        }
        .ht-out {
            color: #7ee787;
            padding-left: 0.9rem;
        }
        .ht-cursor {
            display: inline-block;
            width: 7px;
            height: 0.9em;
            background: var(--lime);
            margin-left: 2px;
            vertical-align: middle;
            animation: blink 1s steps(2) infinite;
        }
        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        @media (max-width: 1200px) {
            .hero-terminal { right: -1.5rem; width: 220px; }
        }
        @media (max-width: 1024px) {
            .hero-terminal { display: none; }
        }

        /* =======================================================
           SECTION "EN CHIFFRES"
           ======================================================= */
        #chiffres {
            padding: 6rem 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }
        .chiffres-container { max-width: 1200px; margin: 0 auto; }
        .chiffres-header {
            text-align: center;
            margin-bottom: 3.5rem;
        }
        .chiffres-header h2 .accent { color: var(--coral); }
        .chiffres-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.5rem;
        }
        .chiffre-card {
            position: relative;
            background: var(--bg-card);
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-md);
            padding: 1.75rem 1.5rem;
            text-align: center;
            overflow: hidden;
            transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease;
        }
        .chiffre-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 50% -20%, var(--accent-glow), transparent 60%);
            opacity: 0;
            transition: opacity 0.35s ease;
            pointer-events: none;
        }
        .chiffre-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--accent); }
        .chiffre-card:hover::before { opacity: 1; }
        .chiffres-grid .chiffre-card:nth-child(3n+2):hover { box-shadow: 8px 8px 0 var(--coral); }
        .chiffres-grid .chiffre-card:nth-child(3n+2):hover::before { background: radial-gradient(circle at 50% -20%, var(--coral-glow), transparent 60%); }
        .chiffres-grid .chiffre-card:nth-child(3n+3):hover { box-shadow: 8px 8px 0 var(--lime); }

        .chiffre-icon {
            width: 56px;
            height: 56px;
            margin: 0 auto 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-elevated);
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--accent);
            font-size: 1.4rem;
            position: relative;
            z-index: 1;
        }
        .chiffre-icon.coral { color: var(--coral); }
        .chiffre-icon.lime { color: var(--lime); }

        .chiffre-value {
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: clamp(2rem, 4vw, 2.75rem);
            line-height: 1;
            letter-spacing: -0.04em;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }
        .chiffre-label {
            font-size: 0.88rem;
            color: var(--text-secondary);
            line-height: 1.5;
            position: relative;
            z-index: 1;
        }

        /* =======================================================
           SECTION "STACK TECHNIQUE"
           ======================================================= */
        #stack {
            padding: 6rem 2rem;
            background: var(--bg-secondary);
            border-top: var(--border-thick) solid var(--text-primary);
            border-bottom: var(--border-thick) solid var(--text-primary);
        }
        .stack-container {
            max-width: 1400px;
            margin: 0 auto;
        }
        .stack-header {
            text-align: center;
            margin-bottom: 3.5rem;
        }
        .stack-header h2 .accent { color: var(--accent); }
        .stack-intro {
            max-width: 620px;
            margin: 1rem auto 0;
            color: var(--text-secondary);
            font-size: 1.02rem;
            line-height: 1.6;
        }

        .stack-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.75rem;
        }

        .stack-group {
            background: var(--bg-card);
            border: var(--border-thick) solid var(--text-primary);
            border-radius: var(--radius-md);
            padding: 1.5rem 1.5rem 1.75rem;
            transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
        }
        .stack-group:hover {
            transform: translate(-4px, -4px);
            box-shadow: 8px 8px 0 var(--accent);
        }
        .stack-grid .stack-group:nth-child(3n+2):hover { box-shadow: 8px 8px 0 var(--coral); border-color: var(--coral); }
        .stack-grid .stack-group:nth-child(3n+3):hover { box-shadow: 8px 8px 0 var(--lime); border-color: var(--lime); }

        .stack-group-head {
            display: flex;
            align-items: center;
            gap: 0.85rem;
            padding-bottom: 1rem;
            margin-bottom: 1.15rem;
            border-bottom: 2px dashed var(--border);
        }
        .stack-group-head i {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-elevated);
            border: 2px solid var(--accent);
            border-radius: var(--radius-sm);
            color: var(--accent);
            font-size: 1.1rem;
            box-shadow: 3px 3px 0 var(--accent);
        }
        .stack-group-head.coral i {
            border-color: var(--coral);
            color: var(--coral);
            box-shadow: 3px 3px 0 var(--coral);
        }
        .stack-group-head.lime i {
            border-color: var(--lime);
            color: var(--lime);
            box-shadow: 3px 3px 0 var(--lime);
        }
        .stack-group-head h3 {
            font-size: 1.2rem;
            margin: 0;
        }

        .stack-items {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .stack-item {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.85rem;
            background: var(--bg-elevated);
            border: 1px solid var(--border);
            border-radius: 999px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--text-secondary);
            transition: all 0.25s ease;
        }
        .stack-item i {
            font-size: 0.9rem;
            color: var(--text-muted);
            transition: color 0.25s ease;
        }
        .stack-group:hover .stack-item {
            border-color: var(--accent);
            color: var(--text-primary);
        }
        .stack-group:hover .stack-item i { color: var(--accent); }
        .stack-grid .stack-group:nth-child(3n+2):hover .stack-item { border-color: var(--coral); }
        .stack-grid .stack-group:nth-child(3n+2):hover .stack-item i { color: var(--coral); }
        .stack-grid .stack-group:nth-child(3n+3):hover .stack-item { border-color: var(--lime); }
        .stack-grid .stack-group:nth-child(3n+3):hover .stack-item i { color: var(--lime); }

        .stack-item:hover {
            transform: translateY(-2px);
            background: var(--bg-card);
        }

        @media (max-width: 768px) {
            .stack-grid { grid-template-columns: 1fr; }
        }

