﻿:root {
            /* Parchemin / ivoire — fond clair, légèrement chaud */
            --bg: #F5EFE2;
            --bg-warm: #EFE6D2;
            --bg-card: #FBF7EC;
            --bg-elevated: #FFFCF4;
            --bg-deep: #2A1F18;        /* sections accent foncées */

            /* Couleurs nationales algériennes — drapeau de l'Émir : vert, rouge, blanc */
            --terracotta: #B5482E;     /* rouge — étoile & croissant du drapeau */
            --terracotta-deep: #8E3320;
            --terracotta-light: #D6735A;
            --emerald: #006233;        /* vert officiel du drapeau algérien */
            --emerald-deep: #00422A;
            --emerald-light: #2E8B5A;
            --gold: #B8893A;           /* or antique mat */
            --gold-deep: #8E6620;
            --gold-light: #D4AB5C;
            --flag-red: #D21034;       /* rouge du drapeau algérien */
            --flag-green: #006233;     /* vert du drapeau algérien */
            --flag-white: #FFFFFF;     /* blanc du drapeau algérien */
            --indigo: #1F3554;         /* bleu profond, encre */
            --indigo-deep: #14243A;

            /* Texte — encres sur parchemin */
            --ink: #2A1F18;            /* brun-noir d'encre */
            --ink-soft: #5A4A3D;
            --ink-faded: #8B7A66;
            --ink-tertiary: #B0A088;
            --ivory: #FBF7EC;

            /* Borders */
            --border: rgba(42, 31, 24, 0.14);
            --border-bright: rgba(42, 31, 24, 0.28);
            --border-gold: rgba(184, 137, 58, 0.4);
            --shadow: 0 24px 60px -12px rgba(42, 31, 24, 0.18);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            background: var(--bg);
            color: var(--ink);
            font-family: 'Manrope', sans-serif;
            font-weight: 300;
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Subtle paper grain on the body */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background:
                    radial-gradient(ellipse at 20% 0%, rgba(184, 137, 58, 0.10), transparent 60%),
                    radial-gradient(ellipse at 85% 105%, rgba(31, 107, 74, 0.07), transparent 60%);
            pointer-events: none;
            z-index: 0;
        }
        body::after {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
            pointer-events: none;
            z-index: 1;
            opacity: 0.6;
        }

        /* ============== UTILITY / TYPOGRAPHY =============== */
        .serif { font-family: 'Fraunces', Georgia, serif; font-feature-settings: "ss01" 1, "ss02" 1; letter-spacing: -0.02em; }
        .arabic { font-family: 'Amiri', Georgia, serif; }
        .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

        .eyebrow {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.28em;
            text-transform: uppercase;
            color: var(--terracotta);
        }
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 48px;
        }
        @media (max-width: 768px) { .container { padding: 0 24px; } }

        /* ============== ZELLIGE BACKGROUND BANDS =============== */
        .zellige-band {
            position: absolute;
            left: 0; right: 0;
            height: 32px;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 32' fill='none' stroke='%23B5482E' stroke-width='1'><polygon points='40,4 50,16 40,28 30,16'/><polygon points='40,4 50,16 40,28 30,16' transform='rotate(45 40 16)' opacity='0.5'/><circle cx='40' cy='16' r='3' fill='%23B5482E' stroke='none'/><line x1='0' y1='16' x2='28' y2='16'/><line x1='52' y1='16' x2='80' y2='16'/></svg>");
            background-size: 80px 32px;
            background-repeat: repeat-x;
            opacity: 0.3;
            pointer-events: none;
        }

        /* ============== NAV =============== */
        .nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 100;
            padding: 16px 0;
            background: rgba(245, 239, 226, 0.85);
            backdrop-filter: blur(20px) saturate(140%);
            -webkit-backdrop-filter: blur(20px) saturate(140%);
            border-bottom: 1px solid var(--border);
        }
        .nav::after {
            content: '';
            position: absolute;
            left: 0; right: 0; bottom: -3px;
            height: 3px;
            background: linear-gradient(90deg,
            #006233 0%, #006233 33.33%,
            #FFFFFF 33.33%, #FFFFFF 66.66%,
            #D21034 66.66%, #D21034 100%);
            opacity: 0.7;
        }
        .nav-inner {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 48px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        @media (max-width: 768px) { .nav-inner { padding: 0 24px; } }
        .nav-brands {
            display: flex;
            align-items: center;
            gap: 18px;
            filter: brightness(0.3) sepia(1) hue-rotate(-15deg) saturate(0.6);
        }
        .nav-brands img.wb { height: 26px; width: auto; }
        .nav-brands img.gta { height: 32px; width: auto; }
        .nav-brands .x {
            color: var(--terracotta);
            font-family: 'Fraunces', serif;
            font-size: 18px;
            font-weight: 300;
            filter: none;
        }
        .nav-status {
            display: none;
            align-items: center;
            gap: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            letter-spacing: 0.2em;
            color: var(--ink-faded);
            text-transform: uppercase;
        }
        @media (min-width: 900px) { .nav-status { display: flex; } }
        .nav-status .dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--flag-green);
            box-shadow: 0 0 8px rgba(0,98,51,0.5);
            animation: pulse 2s ease-in-out infinite;
        }
        @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
        .nav-cta {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--ink);
            text-decoration: none;
            padding: 10px 22px;
            border: 1px solid var(--border-bright);
            background: transparent;
            position: relative;
            transition: all 0.3s ease;
        }
        .nav-cta::before {
            content: '';
            position: absolute;
            inset: 3px;
            border: 1px solid transparent;
            transition: border-color 0.3s ease;
            pointer-events: none;
        }
        .nav-cta:hover {
            background: var(--terracotta);
            color: var(--bg-card);
            border-color: var(--terracotta);
        }
        .nav-cta:hover::before { border-color: rgba(251,247,236,0.4); }

        /* ============== HERO — Arche mauresque + sabre calligraphique =============== */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            padding: 140px 0 80px;
            z-index: 2;
            overflow: hidden;
        }

        /* Arche mauresque (horseshoe arch) en arrière-plan */
        .hero-arch {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -45%);
            width: min(820px, 90vw);
            height: auto;
            opacity: 0.75;
            pointer-events: none;
            z-index: 1;
        }
        .hero-arch svg { width: 100%; height: auto; display: block; }

        .hero-content {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 48px;
            width: 100%;
            position: relative;
            z-index: 3;
        }
        .hero-eyebrow {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 40px;
            opacity: 0;
            animation: fadeUp 0.8s ease 0.2s forwards;
            font-family: 'JetBrains Mono', monospace;
        }
        .hero-eyebrow .line { width: 60px; height: 1px; background: var(--terracotta); }
        .hero-eyebrow span {
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.28em;
            text-transform: uppercase;
            color: var(--terracotta);
        }
        .hero-emir {
            display: flex;
            gap: clamp(20px, 4vw, 60px);
            margin-bottom: 28px;
            align-items: baseline;
        }
        .hero-emir .letter {
            font-family: 'Fraunces', serif;
            font-size: clamp(80px, 16vw, 220px);
            font-weight: 300;
            line-height: 0.9;
            color: var(--ink);
            letter-spacing: -0.05em;
            font-feature-settings: "ss01" 1;
            opacity: 0;
            transform: translateY(40px);
            animation: revealLetter 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            position: relative;
        }
        .hero-emir .letter:nth-child(1) { animation-delay: 0.4s; }
        .hero-emir .letter:nth-child(2) { animation-delay: 0.55s; }
        .hero-emir .letter:nth-child(3) { animation-delay: 0.7s; }
        .hero-emir .letter:nth-child(4) { animation-delay: 0.85s; color: var(--terracotta); font-style: italic; }
        .hero-emir .letter .dot {
            font-size: 0.4em;
            color: var(--terracotta);
            vertical-align: super;
            font-weight: 400;
        }

        .hero-arabic {
            font-family: 'Amiri', serif;
            font-size: clamp(28px, 4vw, 48px);
            color: var(--terracotta);
            margin-bottom: 24px;
            letter-spacing: 0.02em;
            direction: rtl;
            opacity: 0;
            animation: fadeUp 1s ease 1s forwards;
            font-style: italic;
        }

        .hero-tagline {
            font-family: 'Fraunces', serif;
            font-size: clamp(28px, 4vw, 56px);
            font-weight: 300;
            line-height: 1.15;
            letter-spacing: -0.02em;
            max-width: 1000px;
            margin-bottom: 32px;
            color: var(--ink);
            opacity: 0;
            animation: fadeUp 0.8s ease 1.1s forwards;
        }
        .hero-tagline em {
            font-style: italic;
            color: var(--terracotta);
            font-weight: 400;
        }

        .hero-acronym {
            font-size: 14px;
            font-weight: 400;
            color: var(--ink-soft);
            max-width: 620px;
            letter-spacing: 0.02em;
            opacity: 0;
            animation: fadeUp 0.8s ease 1.3s forwards;
            padding-left: 76px;
            position: relative;
        }
        .hero-acronym::before {
            content: '';
            position: absolute;
            left: 0; top: 12px;
            width: 60px; height: 1px;
            background: var(--terracotta);
        }
        .hero-acronym strong {
            color: var(--terracotta);
            font-weight: 600;
            letter-spacing: 0.05em;
        }

        /* Drapeau algérien — bandes verticales en filigrane sur le côté gauche du hero */
        .hero-flag {
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 8px;
            display: flex;
            flex-direction: column;
            z-index: 3;
            pointer-events: none;
        }
        .hero-flag .green { flex: 1; background: #006233; opacity: 0.85; }
        .hero-flag .white { flex: 1; background: #FFFFFF; opacity: 0.95; border-top: 1px solid rgba(42,31,24,0.06); border-bottom: 1px solid rgba(42,31,24,0.06); }
        .hero-flag .red { flex: 0.4; background: #D21034; opacity: 0.9; }

        /* Drapeau de référence — symbole national en filigrane */
        .hero-crescent {
            position: absolute;
            top: 16%;
            left: 5%;
            width: 160px;
            height: 110px;
            opacity: 0;
            pointer-events: none;
            z-index: 1;
            animation: fadeUp 1.2s ease 1s forwards;
        }
        @media (max-width: 900px) { .hero-crescent { display: none; } }

        /* Étoile rotative coin haut-droit */
        .hero-glyph {
            position: absolute;
            top: 110px;
            right: 48px;
            width: 110px;
            height: 110px;
            opacity: 0.5;
            animation: rotateGlyph 60s linear infinite;
            z-index: 2;
            color: var(--terracotta);
        }
        @keyframes rotateGlyph { to { transform: rotate(360deg); } }
        @media (max-width: 768px) { .hero-glyph { display: none; } }

        .scroll-cue {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            opacity: 0;
            animation: fadeUp 0.8s ease 1.6s forwards;
            z-index: 3;
        }
        .scroll-cue span {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            letter-spacing: 0.3em;
            color: var(--ink-faded);
            text-transform: uppercase;
            font-weight: 500;
        }
        .scroll-cue .arrow {
            width: 1px; height: 50px;
            background: linear-gradient(to bottom, var(--terracotta), transparent);
            animation: scrollPulse 2s ease-in-out infinite;
        }
        @keyframes scrollPulse {
            0%, 100% { transform: scaleY(1); opacity: 0.5; }
            50% { transform: scaleY(0.6); opacity: 1; }
        }

        /* ============== ANIMATIONS ============== */
        @keyframes revealLetter { to { opacity: 1; transform: translateY(0); } }
        @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s ease; }
        .reveal.in { opacity: 1; transform: translateY(0); }
        .reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
        .reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
        .reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
        .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
        .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
        .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
        .reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }

        /* ============== EMIR QUOTE BANNER (entre sections, sur fond foncé) ============== */
        .emir-quote {
            position: relative;
            z-index: 2;
            padding: 80px 0;
            text-align: center;
            background: var(--bg-deep);
            color: var(--ivory);
            overflow: hidden;
        }
        .emir-quote::before {
            /* zellige pattern overlay */
            content: '';
            position: absolute;
            inset: 0;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='%23D4AB5C' stroke-width='0.6' opacity='0.18'><polygon points='80,20 100,50 130,55 108,80 115,115 80,95 45,115 52,80 30,55 60,50'/><polygon points='80,20 100,50 130,55 108,80 115,115 80,95 45,115 52,80 30,55 60,50' transform='rotate(22.5 80 80)'/><circle cx='80' cy='80' r='52'/></svg>");
            background-size: 220px 220px;
            pointer-events: none;
        }
        .emir-quote::after {
            content: '';
            position: absolute;
            left: 0; right: 0; top: 0;
            height: 4px;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 4' fill='%23B8893A'><rect x='0' y='1' width='8' height='2'/><rect x='11' y='1' width='2' height='2'/><rect x='16' y='1' width='8' height='2'/></svg>");
            background-size: 24px 4px;
            background-repeat: repeat-x;
            opacity: 0.5;
        }
        .emir-quote-inner {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 48px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 18px;
            position: relative;
            z-index: 2;
        }
        .emir-quote-mark {
            width: 60px;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
            position: relative;
        }
        .emir-quote-mark::before,
        .emir-quote-mark::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 6px; height: 6px;
            background: var(--gold-light);
            transform: translateY(-50%) rotate(45deg);
        }
        .emir-quote-mark::before { left: -3px; }
        .emir-quote-mark::after { right: -3px; }
        .emir-quote-text {
            font-family: 'Fraunces', serif;
            font-style: italic;
            font-weight: 300;
            font-size: clamp(20px, 2.4vw, 28px);
            line-height: 1.5;
            color: var(--ivory);
            max-width: 760px;
        }
        .emir-quote-text em { color: var(--gold-light); font-weight: 400; }
        .emir-quote-attr {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            letter-spacing: 0.28em;
            text-transform: uppercase;
            color: rgba(212, 171, 92, 0.7);
        }

        /* ============== SECTION BASE ============== */
        section.chapter {
            position: relative;
            padding: 130px 0;
            z-index: 2;
        }
        .chapter-header {
            display: flex;
            gap: 24px;
            margin-bottom: 64px;
            align-items: baseline;
        }
        .chapter-num {
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            color: var(--terracotta);
            font-weight: 500;
            white-space: nowrap;
            padding-top: 18px;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .chapter-num::before {
            content: '';
            display: inline-block;
            width: 8px; height: 8px;
            background: var(--terracotta);
            transform: rotate(45deg);
        }
        .chapter-title {
            font-family: 'Fraunces', serif;
            font-size: clamp(36px, 5.5vw, 72px);
            font-weight: 300;
            line-height: 1.05;
            letter-spacing: -0.025em;
            flex: 1;
            color: var(--ink);
        }
        .chapter-title em {
            font-style: italic;
            color: var(--terracotta);
            font-weight: 400;
        }

        /* ============== CHAPTER 01 — METAMORPHOSE ============== */
        .metamorphose {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
        }
        @media (max-width: 900px) { .metamorphose { grid-template-columns: 1fr; gap: 60px; } }
        .metamorphose-text p {
            font-size: 18px;
            line-height: 1.7;
            color: var(--ink-soft);
            margin-bottom: 24px;
            max-width: 540px;
        }
        .metamorphose-text p strong { color: var(--ink); font-weight: 600; }
        .metamorphose-quote {
            font-family: 'Fraunces', serif;
            font-size: 26px;
            font-weight: 300;
            font-style: italic;
            line-height: 1.4;
            color: var(--ink);
            border-left: 1px solid var(--terracotta);
            padding-left: 32px;
            margin-top: 48px;
            position: relative;
        }
        .metamorphose-quote::before {
            content: '';
            position: absolute;
            left: -5px; top: 0;
            width: 9px; height: 9px;
            background: var(--terracotta);
            transform: rotate(45deg);
        }

        /* The data refinery — carte mauresque */
        .refinery {
            position: relative;
            padding: 32px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            font-family: 'JetBrains Mono', monospace;
            box-shadow: var(--shadow);
        }
        .refinery::before {
            content: '';
            position: absolute;
            inset: 6px;
            border: 1px solid var(--border-gold);
            pointer-events: none;
        }
        /* corner ornaments */
        .refinery .corner {
            position: absolute;
            width: 18px; height: 18px;
            color: var(--gold);
            pointer-events: none;
        }
        .refinery .corner.tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
        .refinery .corner.tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
        .refinery .corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
        .refinery .corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }
        .refinery-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 18px;
            margin-bottom: 22px;
            border-bottom: 1px dashed var(--border);
            font-size: 10px;
            letter-spacing: 0.22em;
            text-transform: uppercase;
            color: var(--terracotta);
        }
        .refinery-head .dots { display: flex; gap: 6px; }
        .refinery-head .dots i {
            display: inline-block;
            width: 7px; height: 7px;
            background: var(--terracotta);
            opacity: 0.5;
            transform: rotate(45deg);
        }
        .refinery-stage {
            display: grid;
            grid-template-columns: 64px 1fr auto;
            align-items: center;
            gap: 18px;
            padding: 18px 6px;
            border-bottom: 1px dashed rgba(42,31,24,0.10);
            position: relative;
        }
        .refinery-stage:last-child { border-bottom: none; }
        .refinery-icon {
            width: 56px;
            height: 56px;
            display: grid;
            place-items: center;
            border: 1px solid var(--border);
            position: relative;
            background: var(--bg-elevated);
        }
        .refinery-icon::before {
            content: '';
            position: absolute;
            inset: 4px;
            border: 1px solid rgba(184,137,58,0.15);
        }
        .refinery-icon.active {
            background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep));
            border-color: var(--terracotta-deep);
            box-shadow: 0 4px 16px rgba(181,72,46,0.3);
        }
        .refinery-icon.active::before { border-color: rgba(255,255,255,0.25); }
        .refinery-icon svg {
            width: 24px; height: 24px;
            stroke: var(--terracotta);
            stroke-width: 1.4;
            fill: none;
        }
        .refinery-icon.active svg { stroke: var(--ivory); }
        .refinery-label .tag {
            font-family: 'JetBrains Mono', monospace;
            font-size: 9.5px;
            letter-spacing: 0.28em;
            color: var(--ink-faded);
            font-weight: 500;
            text-transform: uppercase;
            margin-bottom: 4px;
        }
        .refinery-label .name {
            font-family: 'Fraunces', serif;
            font-size: 22px;
            font-weight: 400;
            color: var(--ink);
            margin-bottom: 4px;
        }
        .refinery-label .desc {
            font-family: 'Manrope', sans-serif;
            font-size: 13px;
            color: var(--ink-soft);
            line-height: 1.5;
        }
        .refinery-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: var(--terracotta);
            text-align: right;
            white-space: nowrap;
            letter-spacing: 0.05em;
        }
        .refinery-value.dim { color: var(--ink-tertiary); }
        .refinery-foot {
            margin-top: 22px;
            padding-top: 16px;
            border-top: 1px dashed var(--border);
            font-size: 10px;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--ink-faded);
            display: flex;
            justify-content: space-between;
        }
        .refinery-foot .blink::after {
            content: '_';
            animation: blink 1s steps(1) infinite;
            color: var(--terracotta);
        }
        @keyframes blink { 50% { opacity: 0; } }

        /* ============== CHAPTER 02 — VISION / OPPORTUNITE ============== */
        .vision-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 80px;
        }
        @media (max-width: 900px) { .vision-grid { grid-template-columns: 1fr; gap: 48px; } }
        .vision-text {
            font-family: 'Fraunces', serif;
            font-size: clamp(22px, 2.6vw, 32px);
            line-height: 1.4;
            font-weight: 300;
            color: var(--ink);
        }
        .vision-text em { color: var(--terracotta); font-weight: 400; font-style: italic; }
        .vision-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 18px;
        }
        .stat-card {
            padding: 32px 24px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            position: relative;
            overflow: hidden;
            transition: all 0.4s ease;
        }
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg,
            var(--flag-green) 0%, var(--flag-green) 40%,
            var(--flag-white) 40%, var(--flag-white) 60%,
            var(--flag-red) 60%, var(--flag-red) 100%);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.6s ease;
        }
        .stat-card::after {
            content: '';
            position: absolute;
            top: 6px; right: 6px;
            width: 8px; height: 8px;
            border-top: 1px solid var(--terracotta);
            border-right: 1px solid var(--terracotta);
            opacity: 0.5;
        }
        .stat-card:hover { transform: translateY(-4px); border-color: var(--terracotta); box-shadow: var(--shadow); }
        .stat-card:hover::before { transform: scaleX(1); }
        .stat-num {
            font-family: 'Fraunces', serif;
            font-size: 56px;
            font-weight: 300;
            line-height: 1;
            color: var(--ink);
            letter-spacing: -0.03em;
            margin-bottom: 12px;
        }
        .stat-num em {
            color: var(--terracotta);
            font-style: italic;
            font-weight: 400;
        }
        .stat-label {
            font-size: 13px;
            color: var(--ink-soft);
            line-height: 1.5;
        }

        /* ============== CHAPTER 03 — TROIS PILIERS — Cards en arches mauresques ============== */
        .pillars {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }
        @media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
        .pillar {
            position: relative;
            padding: 0 0 40px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
            min-height: 540px;
            display: flex;
            flex-direction: column;
        }
        .pillar:hover {
            transform: translateY(-8px);
            border-color: var(--terracotta);
            box-shadow: var(--shadow);
        }
        /* Arche en haut de chaque pilier */
        .pillar-arch {
            height: 140px;
            position: relative;
            background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-card) 100%);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .pillar-arch svg.arch-shape {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }
        .pillar-arch .pillar-icon {
            width: 64px; height: 64px;
            display: grid; place-items: center;
            border: 1px solid var(--terracotta);
            background: var(--bg-card);
            position: relative;
            z-index: 2;
        }
        .pillar-arch .pillar-icon::before {
            content: '';
            position: absolute;
            inset: 4px;
            border: 1px solid rgba(181,72,46,0.18);
        }
        .pillar-arch .pillar-icon svg {
            width: 28px; height: 28px;
            stroke: var(--terracotta);
            fill: none;
            stroke-width: 1.4;
        }
        .pillar-body {
            padding: 32px 32px 0;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .pillar-num {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: var(--terracotta);
            margin-bottom: 16px;
            letter-spacing: 0.22em;
            text-transform: uppercase;
        }
        .pillar-name {
            font-family: 'Fraunces', serif;
            font-size: 36px;
            font-weight: 400;
            letter-spacing: -0.02em;
            margin-bottom: 8px;
            color: var(--ink);
        }
        .pillar-tagline {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: var(--terracotta);
            font-weight: 500;
            letter-spacing: 0.18em;
            margin-bottom: 24px;
            text-transform: uppercase;
        }
        .pillar-desc {
            font-size: 15px;
            line-height: 1.65;
            color: var(--ink-soft);
            margin-bottom: 24px;
            flex-grow: 1;
        }
        .pillar-meta {
            border-top: 1px dashed var(--border);
            padding-top: 18px;
            margin: 0 32px;
        }
        .pillar-meta-label {
            font-family: 'JetBrains Mono', monospace;
            font-size: 9.5px;
            letter-spacing: 0.25em;
            font-weight: 500;
            color: var(--ink-faded);
            text-transform: uppercase;
            margin-bottom: 6px;
        }
        .pillar-meta-value {
            font-size: 13px;
            color: var(--ink);
            font-weight: 500;
        }

        /* ============== CHAPTER 04 — MODELE ============== */
        .model {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 64px;
            align-items: start;
        }
        @media (max-width: 900px) { .model { grid-template-columns: 1fr; gap: 48px; } }
        .model-narrative h3 {
            font-family: 'Fraunces', serif;
            font-size: 32px;
            font-weight: 300;
            margin-bottom: 24px;
            line-height: 1.2;
            color: var(--ink);
        }
        .model-narrative h3 em { color: var(--terracotta); font-style: italic; }
        .model-narrative p {
            font-size: 16px;
            line-height: 1.7;
            color: var(--ink-soft);
            margin-bottom: 20px;
        }
        .model-flow {
            background: var(--bg-card);
            border: 1px solid var(--border);
            padding: 40px 32px;
            position: relative;
            box-shadow: var(--shadow);
        }
        .model-flow::before {
            content: '';
            position: absolute;
            inset: 6px;
            border: 1px solid var(--border-gold);
            pointer-events: none;
        }
        .flow-row {
            display: grid;
            grid-template-columns: 1fr auto 1fr auto 1fr;
            gap: 16px;
            align-items: center;
            margin-bottom: 32px;
        }
        .flow-node {
            text-align: center;
            padding: 24px 12px;
            border: 1px solid var(--border);
            background: var(--bg-elevated);
            position: relative;
        }
        .flow-node::before {
            content: '';
            position: absolute;
            inset: 4px;
            border: 1px solid rgba(184,137,58,0.10);
        }
        .flow-node.center {
            background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep));
            border-color: var(--terracotta-deep);
        }
        .flow-node.center::before { border-color: rgba(255,255,255,0.18); }
        .flow-node-name {
            font-family: 'Fraunces', serif;
            font-size: 17px;
            font-weight: 500;
            margin-bottom: 4px;
            color: var(--ink);
            position: relative;
        }
        .flow-node.center .flow-node-name { color: var(--ivory); }
        .flow-node-role {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            color: var(--ink-soft);
            letter-spacing: 0.16em;
            text-transform: uppercase;
            position: relative;
        }
        .flow-node.center .flow-node-role { color: rgba(251,247,236,0.85); }
        .flow-arrow {
            color: var(--terracotta);
            font-family: 'JetBrains Mono', monospace;
            font-size: 22px;
            font-weight: 300;
        }
        .flow-split {
            display: flex;
            height: 32px;
            overflow: hidden;
            border: 1px solid var(--border);
        }
        .flow-split .left,
        .flow-split .right {
            display: grid; place-items: center;
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            font-weight: 500;
            letter-spacing: 0.15em;
            text-transform: uppercase;
        }
        .flow-split .left {
            flex: 6.5;
            background: var(--bg-elevated);
            color: var(--ink);
        }
        .flow-split .right {
            flex: 3.5;
            background: linear-gradient(90deg, var(--terracotta-deep), var(--terracotta));
            color: var(--ivory);
            font-weight: 600;
        }
        .flow-caption {
            text-align: center;
            font-size: 12px;
            font-style: italic;
            color: var(--ink-faded);
            margin-top: 16px;
            font-family: 'Fraunces', serif;
        }

        /* ============== CHAPTER 05 — IMPACT ============== */
        .impact-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }
        @media (max-width: 768px) { .impact-grid { grid-template-columns: 1fr; } }
        .impact-card {
            padding: 40px 32px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            position: relative;
            transition: all 0.4s ease;
            overflow: hidden;
        }
        .impact-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 32px; height: 32px;
            border-top: 1px solid var(--terracotta);
            border-left: 1px solid var(--terracotta);
            opacity: 0.6;
        }
        .impact-card::after {
            content: '';
            position: absolute;
            bottom: 0; right: 0;
            width: 32px; height: 32px;
            border-bottom: 1px solid var(--terracotta);
            border-right: 1px solid var(--terracotta);
            opacity: 0.6;
        }
        .impact-card:hover {
            border-color: var(--terracotta);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }
        .impact-card-num {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: var(--terracotta);
            margin-bottom: 16px;
            letter-spacing: 0.22em;
            text-transform: uppercase;
        }
        .impact-card h4 {
            font-family: 'Fraunces', serif;
            font-size: 24px;
            font-weight: 400;
            margin-bottom: 14px;
            letter-spacing: -0.01em;
            color: var(--ink);
        }
        .impact-card p {
            font-size: 14px;
            line-height: 1.7;
            color: var(--ink-soft);
        }

        /* ============== CHAPTER 06 — ROADMAP ============== */
        .roadmap {
            position: relative;
            max-width: 1100px;
            margin: 0 auto;
            padding: 20px 0;
        }
        .roadmap-line {
            position: absolute;
            left: 50%;
            top: 0; bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom,
            transparent 0%,
            var(--flag-green) 8%,
            var(--flag-green) 38%,
            var(--flag-white) 42%,
            var(--flag-white) 58%,
            var(--flag-red) 62%,
            var(--flag-red) 92%,
            transparent 100%);
            opacity: 0.7;
            transform: translateX(-50%);
            z-index: 1;
        }
        @media (max-width: 768px) { .roadmap-line { left: 24px; } }
        .roadmap-item {
            position: relative;
            display: flex;
            align-items: center;
            margin-bottom: 56px;
            z-index: 2;
        }
        .roadmap-item:last-child { margin-bottom: 0; }
        .roadmap-item.right { justify-content: flex-end; }
        .roadmap-content {
            width: calc(50% - 48px);
            padding: 28px 32px;
            background: var(--bg-card);
            border: 1px solid var(--border);
            transition: all 0.4s ease;
            position: relative;
        }
        .roadmap-content::before {
            content: '';
            position: absolute;
            inset: 4px;
            border: 1px solid rgba(184,137,58,0.10);
        }
        .roadmap-content:hover { border-color: var(--terracotta); transform: translateY(-2px); box-shadow: var(--shadow); }
        .roadmap-item.left .roadmap-content { text-align: right; margin-right: 48px; }
        .roadmap-item.right .roadmap-content { text-align: left; margin-left: 48px; }
        .roadmap-dot {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%) rotate(22.5deg);
            width: 16px; height: 16px;
            background: var(--terracotta);
            border: 3px solid var(--bg);
            box-shadow: 0 0 0 1px var(--terracotta), 0 0 16px rgba(181,72,46,0.4);
            z-index: 3;
            clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
        }
        @media (max-width: 768px) {
            .roadmap-item, .roadmap-item.right { justify-content: flex-start; }
            .roadmap-content,
            .roadmap-item.left .roadmap-content,
            .roadmap-item.right .roadmap-content {
                width: calc(100% - 56px);
                margin-left: 56px;
                margin-right: 0;
                text-align: left;
            }
            .roadmap-dot { left: 24px; }
        }
        .roadmap-phase {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            letter-spacing: 0.25em;
            font-weight: 500;
            color: var(--terracotta);
            text-transform: uppercase;
            margin-bottom: 8px;
        }
        .roadmap-content h4 {
            font-family: 'Fraunces', serif;
            font-size: 24px;
            font-weight: 400;
            margin-bottom: 8px;
            letter-spacing: -0.01em;
            color: var(--ink);
        }
        .roadmap-content p {
            font-size: 14px;
            color: var(--ink-soft);
            line-height: 1.6;
        }

        /* ============== CTA ============== */
        .cta {
            padding: 160px 0 120px;
            text-align: center;
            position: relative;
            z-index: 2;
        }
        .cta-content {
            max-width: 900px;
            margin: 0 auto;
            padding: 0 48px;
        }
        .cta-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 32px;
            font-family: 'JetBrains Mono', monospace;
        }
        .cta-eyebrow .line { width: 30px; height: 1px; background: var(--terracotta); }
        .cta-eyebrow span {
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 0.3em;
            color: var(--terracotta);
            text-transform: uppercase;
        }
        .cta-title {
            font-family: 'Fraunces', serif;
            font-size: clamp(36px, 6vw, 80px);
            font-weight: 300;
            line-height: 1.05;
            letter-spacing: -0.03em;
            margin-bottom: 32px;
            color: var(--ink);
        }
        .cta-title em { font-style: italic; color: var(--terracotta); font-weight: 400; }
        .cta-sub {
            font-size: 18px;
            color: var(--ink-soft);
            max-width: 600px;
            margin: 0 auto 48px;
            line-height: 1.7;
        }
        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 16px;
            padding: 20px 40px;
            background: linear-gradient(135deg, var(--terracotta-deep), var(--terracotta));
            color: var(--ivory);
            text-decoration: none;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            border: 1px solid var(--terracotta-deep);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }
        .cta-button::before {
            content: '';
            position: absolute;
            inset: 4px;
            border: 1px solid rgba(255,255,255,0.25);
            pointer-events: none;
        }
        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 40px rgba(181,72,46,0.35);
            background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
        }
        .cta-button .arrow {
            font-size: 16px;
            transition: transform 0.3s ease;
        }
        .cta-button:hover .arrow { transform: translateX(4px); }

        .contact-grid {
            margin-top: 80px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 32px;
            border-top: 1px solid var(--border);
            padding-top: 48px;
        }
        @media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
        .contact-item .label {
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            letter-spacing: 0.25em;
            color: var(--ink-faded);
            text-transform: uppercase;
            font-weight: 500;
            margin-bottom: 8px;
        }
        .contact-item .value {
            font-size: 14px;
            color: var(--ink);
            word-break: break-word;
        }
        .contact-item .value a {
            color: var(--ink);
            text-decoration: none;
            border-bottom: 1px solid transparent;
            transition: border-color 0.3s ease;
        }
        .contact-item .value a:hover { border-color: var(--terracotta); }

        /* ============== FOOTER ============== */
        footer {
            padding: 32px 0;
            border-top: 3px solid transparent;
            border-image: linear-gradient(90deg,
            #006233 0%, #006233 33.33%,
            #FFFFFF 33.33%, #FFFFFF 66.66%,
            #D21034 66.66%, #D21034 100%) 1;
            position: relative;
            z-index: 2;
            text-align: center;
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
            color: var(--ink-faded);
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }
        footer .brands {
            display: inline-flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 12px;
            filter: brightness(0.3) sepia(1) hue-rotate(-15deg) saturate(0.6);
        }
        footer img.wb { height: 22px; }
        footer img.gta { height: 28px; }
        footer .x { color: var(--terracotta); font-family: 'Fraunces', serif; text-transform: none; filter: none; }

        @media (max-width: 600px) {
            section.chapter { padding: 100px 0; }
            .chapter-header { flex-direction: column; gap: 12px; margin-bottom: 48px; }
            .chapter-num { padding-top: 0; }
            .hero { padding: 120px 0 60px; }
            .hero-acronym { padding-left: 0; }
            .hero-acronym::before { display: none; }
            .nav-cta { display: none; }
            .refinery-stage { grid-template-columns: 48px 1fr; }
            .refinery-value { grid-column: 1 / -1; text-align: left; padding-left: 66px; }
        }