/********** GLOBAL THEME **********/
:root {
    --ink: #0d1b2a;
    --ink-mid: #1e3448;
    --cream: #f3f1ee;
    --off-white: #fdfcfa;
    --accent-red: #8b2c2c;
    --accent-red-light: #b84040;
    --accent-blue: #1a4a6b;
    --accent-gold: #c9a84c;
    --accent-sage: #5a7f6e;
    --accent-orange: #c06020;
    --border: rgba(13,27,42,0.10);
    --shadow: rgba(13,27,42,0.07);
    --ink-primary: #1a1a2e;
    --ink-secondary: #2d3142;
    --paper-cream: #faf8f3;
    --border-subtle: rgba(13,27,42,0.12);
    --shadow-soft: rgba(13,27,42,0.08);
    --accent-purple: #6b5b95;
    --accent-orange: #c17a3a;
    --primary: #0f213a;
    --accent: #f4b942;
    --light-bg: #f8f9fb;

    /* Pour le mode sombre */
    --bg: #fdfcfa;
    --text: #0d1b2a;
    --card: #ffffff;
    --border: rgba(13,27,42,0.10);

        /* Typography */
    --font-main: 'Cormorant Garamond', sans-serif;

    /* Spacing system */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

}

[data-theme="dark"] {
    --bg: #0f1115;
    --text: #f5f5f5;
    --card: #161a22;
    --border: rgba(255,255,255,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

h2, h3 { font-family: var(--font-main); color: var(--ink); font-weight: 600; margin-bottom: 15px; }
p { margin-bottom: 20px; text-align: justify; }

/* ================= NAVBAR ================= */
.navbar-wrap { position: sticky; top: 0; z-index: 100; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,0.06); }
.navbar-inner { max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 2rem; }
.nav-brand {font-family: var(--font-main); font-size: 1.25rem; font-weight: 400; color: #fff; text-decoration: none; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a { display: block; padding: 0 1.1rem; color: rgba(255,255,255,0.65); text-decoration: none; font-family: var(--font-main); font-size: 0.9rem; line-height: 60px; text-transform: uppercase; letter-spacing: 0.1em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* ================= HERO (index.html) ================= */
.hero { min-height: 100vh; background: var(--ink); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(26,74,107,0.3) 0%, transparent 60%), radial-gradient(ellipse at 20% 80%, rgba(139,44,44,0.15) 0%, transparent 50%); pointer-events: none; }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 6rem 4rem 6rem 5rem; position: relative; z-index: 2; }
.hero-eyebrow { font-family: var(--font-main), monospace; font-size: 1.0em; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 2rem; opacity: 0; animation: fadeUp 0.8s ease 0.2s forwards; }
.hero-title { font-family: var(--font-main), serif; font-size: clamp(2.8rem, 4.5vw, 5.5rem); font-weight: 300; line-height: 1.05; color: #fff; margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 1s ease 0.4s forwards; }
.hero-title em { font-style: italic; color: var(--accent-gold); }
.hero-question { font-size: 1.5rem; font-weight: 300; color: rgba(255,255,255,0.65); max-width: 520px; line-height: 1.75; margin-bottom: 3rem; border-left: 2px solid var(--accent-red); padding-left: 1.5rem; opacity: 0; animation: fadeUp 1s ease 0.6s forwards; }
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s ease 0.8s forwards; }
.btn-primary-hero { padding: 0.9rem 2.2rem; background: var(--accent-red); color: #fff; border: none; cursor: pointer; font-family: var(--font-main), monospace; font-size: 1.0rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.btn-primary-hero:hover { background: var(--accent-red-light); transform: translateY(-2px); color: #fff; }
.btn-secondary-hero { padding: 0.9rem 2.2rem; background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.2); font-family: var(--font-main), monospace; font-size: 1.0rem; letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none; transition: all 0.2s; }
.btn-secondary-hero:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero-right { position: relative; overflow: hidden; opacity: 0; animation: fadeIn 1.5s ease 0.5s forwards; }
.hero-stat-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, var(--ink) 0%, transparent 40%); display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem; z-index: 2; }
.stat-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat-item { background: rgba(13,27,42,0.8); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 1.75rem; min-width: 160px; }
.stat-number { font-family: var(--font-main), serif; font-size: 2.8rem; font-weight: 600; color: var(--accent-gold); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-family: var(--font-main), monospace; font-size: 1.5rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; z-index: 10; opacity: 0; animation: fadeIn 1s ease 1.5s forwards; }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent); animation: scrollPulse 2s ease infinite; }
.scroll-text { font-family: var(--font-main), monospace; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); }

/* ================= HERO (cas-concret.html) ================= */
.page-hero { background: var(--ink); padding: 7rem 2rem 5rem; position: relative; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(26,74,107,0.25), transparent 60%); }
.page-hero-inner { position: relative; max-width: 900px; }
.hero-label { color: var(--accent-gold); font-family: var(--font-main), monospace; font-size: 1.2rem; letter-spacing: 0.25em; display: block; margin-bottom: 1rem; text-transform: uppercase; }
.hero-h1 { font-family: var(--font-main), serif; font-size: clamp(2.5rem,5vw,5rem); color: #fff; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-h1 em { color: var(--accent-gold); font-style: italic; }
.hero-sub { color: rgba(255,255,255,0.55); font-size: 1.5rem; font-weight: 300; margin-bottom: 3rem; }
.hero-stats-row { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }
.hero-stat { display: flex; flex-direction: column; }
.hs-num { font-family: var(--font-main), serif; font-size: 2.2rem; font-weight: 700; color: var(--accent-gold); line-height: 1; }
.hs-label { font-family: var(--font-main), monospace; font-size: 0.çrem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); margin-top: 0.25rem; }

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================= SHARED LAYOUT ================= */
.container-main { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label { font-family: var(--font-main), monospace; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent-red); margin-bottom: 1rem; display: block; }
.section-title { font-family: var(--font-main), serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; line-height: 1.15; color: var(--ink); margin-bottom: 2rem; }
.section-title strong { font-weight: 700; }
.intro-text { font-size: 1rem; color: rgba(13,27,42,0.65); max-width: 700px; margin-bottom: 3rem; line-height: 1.8; }
.divider-line { height: 1px; background: var(--border); margin: 4rem 0; }

/* ================= SECTION PROBLÉMATIQUE ================= */
.section-problematique { background: var(--off-white); padding: 7rem 2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.lead-text { font-size: 1.5rem; font-weight: 300; line-height: 1.9; color: var(--ink-mid); }
.highlight-box { background: var(--ink); padding: 2.5rem; margin-top: 2.5rem; }
.highlight-box p { font-family: var(--font-main), serif; font-size: 1.5rem; font-style: italic; font-weight: 300; line-height: 1.5; color: rgba(255,255,255,0.9); }
.highlight-box .src { margin-top: 1.2rem; font-family: var(--font-main), monospace; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-gold); }

/* ================= STAT GRID ================= */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--border); margin-top: 4rem; border: 1px solid var(--border); }
.stat-cell { background: var(--off-white); padding: 2.5rem 2rem; text-align: center; }
.stat-cell .big { font-family: var(--font-main), serif; font-size: 3.5rem; font-weight: 600; color: var(--accent-red); line-height: 1; display: block; margin-bottom: 0.5rem; }
.stat-cell .label { font-family:var(--font-main), monospace; font-size: 1.0rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mid); line-height: 1.5; }

/* ================= SECTION CONTEXTE ================= */
.section-context { background: var(--cream); padding: 7rem 2rem; }
.context-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); margin-top: 3rem; }
.context-block { background: var(--cream); padding: 2.5rem 2rem; }
.context-block .icon-wrap { width: 48px; height: 48px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: var(--accent-blue); font-size: 1.25rem; }
.context-block h3 { font-family: var(--font-main), serif; font-size: 1.4rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.context-block p { font-size: 1.2rem; font-weight: 300; color: var(--ink-mid); line-height: 1.75; }
.context-block .tag { display: inline-block; margin-top: 1.25rem; padding: 0.3rem 0.8rem; background: var(--ink); color: #fff; font-family: var(--font-main), monospace; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ================= SECTION QUESTION ================= */
.section-question { background: var(--ink); padding: 7rem 2rem; position: relative; overflow: hidden; }
.section-question::before { content: '"'; position: absolute; top: -2rem; left: 3rem; font-family: var(--font-main), serif; font-size: 25rem; font-weight: 700; color: rgba(255,255,255,0.03); line-height: 1; pointer-events: none; }
.question-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.question-text { font-family: var(--font-main), serif; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.4; color: #fff; margin-bottom: 2rem; }
.question-text em { font-style: italic; color: var(--accent-gold); }
.question-sub { font-size: 1.3rem; font-weight: 300; color: rgba(255,255,255,0.55); max-width: 650px; margin: 0 auto 3rem; }

/* ================= EXPLORE CARDS ================= */
.section-explore { padding: 7rem 2rem; background: var(--off-white); }
.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); margin-top: 3rem; }
.explore-card { background: var(--off-white); padding: 3.5rem; display: flex; flex-direction: column; min-height: 400px; position: relative; overflow: hidden; transition: background 0.3s; text-decoration: none; color: inherit; }
.explore-card:hover { background: var(--cream); }
.explore-card::after { content: '→'; position: absolute; right: 2.5rem; bottom: 2.5rem; font-size: 1.5rem; color: var(--border); transition: all 0.3s; }
.explore-card:hover::after { color: var(--accent-red); transform: translateX(5px); }
.card-num { font-family: var(--font-main), serif; font-size: 5rem; font-weight: 600; color: var(--border); line-height: 1; margin-bottom: 2rem; }
.card-tag { font-family: var(--font-main), monospace; font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-sage); margin-bottom: 0.75rem; }
.card-title { font-family: var(--font-main), serif; font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1.15; margin-bottom: 1.25rem; }
.card-desc { font-size: 1.4rem; font-weight: 300; color: var(--ink-mid); line-height: 1.75; flex: 1; }
.card-topics { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topic-tag { padding: 0.3rem 0.8rem; border: 1px solid var(--border); font-family: var(--font-main), monospace; font-size: 1.0rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid); }

/* ================= ORIGINS ================= */
.origins-section { padding: 6rem 2rem; background: var(--off-white); }
.origins-grid { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start; }
.origins-text p { color: rgba(13,27,42,0.75); margin-bottom: 1.25rem; line-height: 1.85; }
.origins-aside { display: flex; flex-direction: column; gap: 1rem; }
.aside-block { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--ink-mid); border-radius: 4px; padding: 1.25rem 1.5rem; }
.aside-block.gold { border-left-color: var(--accent-gold); }
.aside-block.sage { border-left-color: var(--accent-sage); }
.aside-block.red  { border-left-color: var(--accent-red); }
.aside-block h4 { font-family: var(--font-main), monospace; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink); margin-bottom: 0.5rem; }
.aside-block p { font-size: 1.2rem; color: rgba(13,27,42,0.65); margin: 0; line-height: 1.6; }

/* ================= CITIES ================= */
.cities-section { padding: 6rem 2rem; background: var(--cream); }
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.city-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; position: relative; transition: transform 0.25s, box-shadow 0.25s; }
.city-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(13,27,42,0.1); }
.city-card.featured { border-top: 3px solid var(--accent-gold); }
.city-badge { font-family: var(--font-main), monospace; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.15em; background: var(--ink); color: var(--accent-gold); padding: 0.2rem 0.6rem; border-radius: 2px; display: inline-block; margin-bottom: 0.75rem; }
.city-name { font-family: var(--font-main), serif; font-size: 1.8rem; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 0.25rem; }
.city-state { font-family: var(--font-main), monospace; font-size: 1.1rem; color: rgba(13,27,42,0.45); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 0.9rem; }
.city-desc { font-size: 1.3rem; color: rgba(13,27,42,0.7); line-height: 1.7; margin-bottom: 1rem; }
.city-data { display: flex; flex-direction: column; gap: 0.3rem; border-top: 1px solid var(--border); padding-top: 0.9rem; }
.city-data span { font-family: var(--font-main), monospace; font-size: 0.8rem; color: var(--accent-sage); letter-spacing: 0.05em; }

/* ================= TECH ================= */
.tech-section { background: var(--ink); padding: 6rem 2rem; }
.tech-section .section-title { color: #fff; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.tech-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 2rem; transition: background 0.25s, border-color 0.25s; }
.tech-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(201,168,76,0.3); }
.tech-icon { font-size: 1.5rem; color: var(--accent-gold); display: block; margin-bottom: 1rem; }
.tech-name { font-family: var(--font-main), serif; font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.tech-spec { font-family: var(--font-main), monospace; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-gold); display: block; margin-bottom: 0.75rem; }
.tech-desc { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin: 0; }

/* ================= INCIDENTS ================= */
.incidents-section { padding: 6rem 2rem; background: var(--off-white); }
.incidents-list { margin-top: 2rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.incident-row { display: grid; grid-template-columns: 110px 1fr 140px; gap: 1.5rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); align-items: start; }
.incident-row:last-child { border-bottom: none; }
.incident-row.header { background: var(--ink); color: rgba(255,255,255,0.5); font-family: var(--font-main), monospace; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.75rem 1.5rem; }
.incident-row:not(.header):hover { background: rgba(13,27,42,0.03); }
.inc-date { font-family: var(--font-main), monospace; font-size: 1rem; color: rgba(13,27,42,0.45); padding-top: 0.2rem; }
.inc-title { font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: 0.35rem; }
.inc-desc { font-size: 0.95rem; color: rgba(13,27,42,0.6); line-height: 1.6; margin: 0; }
.inc-severity { font-family: var(--font-main), monospace; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.7rem; border-radius: 3px; display: inline-block; text-align: center; margin-top: 0.2rem; }
.sev-low  { background: #e8f5e9; color: #2e7d32; }
.sev-med  { background: #fff8e1; color: #f57f17; }
.sev-high { background: #fce4ec; color: #c62828; }

/* ================= ENJEUX ================= */
.enjeux-section { padding: 6rem 2rem; background: var(--cream); }
.enjeux-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.enjeu-block { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 2rem; transition: transform 0.25s, box-shadow 0.25s; }
.enjeu-block:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(13,27,42,0.08); }
.enjeu-icon { font-size: 1.6rem; color: var(--accent-gold); display: block; margin-bottom: 1rem; }
.enjeu-title { font-family: var(--font-main), serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; }
.enjeu-text { font-size: 0.875rem; color: rgba(13,27,42,0.65); line-height: 1.75; margin: 0; }
.enjeu-text ul { margin-top: 0.75rem; padding-left: 1.2rem; }
.enjeu-text li { margin-bottom: 0.35rem; font-size: 0.82rem; }

/* ================= VERDICT ================= */
.verdict-section { background: var(--ink); padding: 7rem 2rem; text-align: center; position: relative; }
.verdict-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.08), transparent 60%); }
.verdict-inner { position: relative; max-width: 900px; margin: 0 auto; }
.verdict-text { font-family: var(--font-main), serif; font-size: clamp(1.6rem, 3vw, 2.6rem); color: #fff; font-weight: 300; line-height: 1.4; margin-bottom: 2rem; }
.verdict-text em { color: var(--accent-gold); font-style: italic; }
.verdict-metrics { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 3rem; }
.vm-cell { display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.vm-num { font-family: var(--font-main), serif; font-size: 2.5rem; font-weight: 700; color: var(--accent-gold); line-height: 1; }
.vm-label { font-family: var(--font-main), monospace; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); margin-top: 0.4rem; text-align: center; line-height: 1.5; }

/* ================= FOOTER ================= */
.site-footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.05); padding: 3rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-inner p { font-family: var(--font-main), monospace; font-size: 1.5rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin: 0; }
.footer-inner a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-inner a:hover { color: var(--accent-gold); }

/* ================= ANIMATIONS ================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.1); } }

/* =================== CHRONOLOGIE ================== */
/* LEVELS INTRO */
        .levels-section {
            background: var(--cream); padding: 5rem 2rem;
        }
        .container-main { max-width: 1200px; margin: 0 auto; }

        .section-label {
            font-family: var(--font-main), monospace;
            font-size: 1.3rem; letter-spacing: 0.25em;
            text-transform: uppercase; color: var(--accent-red);
            display: block; margin-bottom: 1rem;
        }
        .section-title {
            font-family: var(--font-main), serif;
            font-size: clamp(1.8rem, 3vw, 3rem);
            font-weight: 300; line-height: 1.2; color: var(--ink);
            margin-bottom: 3rem;
        }
        .section-title strong { font-weight: 700; }

        .levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}

        .level-card {
            background: var(--cream); padding: 2rem 2rem;
            text-align: center; position: relative;
        }

        .level-num {
            font-family: var(--font-main), serif;
            font-size: 3rem; font-weight: 700;
            line-height: 1; margin-bottom: 0.75rem;
        }

        .level-card:nth-child(1) .level-num { color: #ccc; }
        .level-card:nth-child(2) .level-num { color: #a8c4d0; }
        .level-card:nth-child(3) .level-num { color: #70a8c0; }
        .level-card:nth-child(4) .level-num { color: #3a80a8; }
        .level-card:nth-child(5) .level-num { color: var(--accent-blue); }
        .level-card:nth-child(6) .level-num { color: var(--accent-red); }

        .level-name {
            font-family: var(--font-main), monospace;
            font-size: 1rem; letter-spacing: 0.12em;
            text-transform: uppercase; color: var(--ink-mid);
            margin-bottom: 0.75rem; display: block;
        }

        .level-desc {
            font-size: 1.1rem; font-weight: 300;
            color: var(--ink-mid); line-height: 1.6;
        }

        .level-example {
            display: inline-block; margin-top: 1rem;
            padding: 0.25rem 0.6rem;
            background: var(--ink); color: #fff;
            font-family:var(--font-main), monospace;
            font-size: 0.6rem; letter-spacing: 0.08em;
        }

        /* TIMELINE */
        .timeline-section {
            background: var(--off-white);
            padding: 5rem 2rem;
        }

        .timeline-intro {
            max-width: 700px; margin: 0 auto 4rem;
            text-align: center;
        }

        .timeline {
            position: relative;
            max-width: 2100px; margin: 0 auto;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%; top: 0; bottom: 0;
            width: 1px;
            background: var(--border);
            transform: translateX(-50%);
        }

        .timeline-era {
            margin-bottom: 4rem;
        }

        .era-header {
            text-align: center;
            position: relative; z-index: 5;
            margin-bottom: 2rem;
        }

        .era-badge {
            display: inline-block;
            background: var(--ink);
            color: #fff;
            font-family: var(--font-main), serif;
            font-size: 1.1rem; font-weight: 600;
            padding: 0.5rem 1.75rem;
            letter-spacing: 0.05em;
        }

        .era-title {
            font-family: var(--font-main), monospace;
            font-size: 1rem; letter-spacing: 0.2em;
            text-transform: uppercase; color: var(--accent-red);
            display: block; margin-top: 0.75rem;
        }

        .timeline-item {
            display: flex;
            margin-bottom: 2.5rem;
            position: relative;
        }

        .timeline-item:nth-child(odd) {
            flex-direction: row;
        }

        .timeline-item:nth-child(even) {
            flex-direction: row-reverse;
        }

        .timeline-content {
            width: calc(50% - 40px);
            background: #fff;
            border: 1px solid var(--border);
            padding: 1.75rem 2rem;
            position: relative;
            box-shadow: 0 2px 12px rgba(13,27,42,0.05);
            transition: box-shadow 0.3s;
        }

        .timeline-content:hover {
            box-shadow: 0 6px 24px rgba(13,27,42,0.1);
        }

        /* Arrow on card */
        .timeline-item:nth-child(odd) .timeline-content::after {
            content: '';
            position: absolute; right: -10px; top: 22px;
            width: 0; height: 0;
            border-style: solid;
            border-width: 8px 0 8px 10px;
            border-color: transparent transparent transparent var(--border);
        }

        .timeline-item:nth-child(even) .timeline-content::after {
            content: '';
            position: absolute; left: -10px; top: 22px;
            width: 0; height: 0;
            border-style: solid;
            border-width: 8px 10px 8px 0;
            border-color: transparent var(--border) transparent transparent;
        }

        .timeline-center {
            width: 80px;
            display: flex; flex-direction: column;
            align-items: center; position: relative;
            flex-shrink: 0;
        }

        .timeline-dot {
            width: 14px; height: 14px;
            border-radius: 50%;
            background: var(--off-white);
            border: 2px solid var(--ink-mid);
            margin-top: 18px;
            position: relative; z-index: 5;
            flex-shrink: 0;
            transition: transform 0.3s, background 0.3s;
        }

        .timeline-item:hover .timeline-dot {
            transform: scale(1.4);
            background: var(--accent-gold);
            border-color: var(--accent-gold);
        }

        .tl-dot-red .timeline-dot { border-color: var(--accent-red); }
        .tl-dot-blue .timeline-dot { border-color: var(--accent-blue); }
        .tl-dot-sage .timeline-dot { border-color: var(--accent-sage); }
        .tl-dot-orange .timeline-dot { border-color: var(--accent-orange); }
        .tl-dot-gold .timeline-dot {
            border-color: var(--accent-gold);
            background: var(--accent-gold);
        }

        .timeline-date {
            font-family: var(--font-main), serif;
            font-size: 1.6rem; font-weight: 700;
            color: var(--ink); margin-bottom: 0.5rem;
        }

        .tl-tag {
            display: inline-block; margin-bottom: 0.75rem;
            padding: 0.2rem 0.65rem;
            font-family: var(--font-main), monospace;
            font-size: 0.8rem; letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .tl-tag-red { background: rgba(139,44,44,0.1); color: var(--accent-red); }
        .tl-tag-blue { background: rgba(26,74,107,0.1); color: var(--accent-blue); }
        .tl-tag-sage { background: rgba(90,127,110,0.1); color: var(--accent-sage); }
        .tl-tag-orange { background: rgba(192,96,32,0.1); color: var(--accent-orange); }
        .tl-tag-gold { background: rgba(201,168,76,0.15); color: #8a6d1e; }

        .tl-title {
            font-family: var(--font-main), serif;
            font-size: 1.3rem; font-weight: 600;
            color: var(--ink); margin-bottom: 0.6rem;
            line-height: 1.25;
        }

        .tl-body {
            font-size: 1.3rem; font-weight: 300;
            color: var(--ink-mid); line-height: 1.7;
        }

        .tl-body strong { font-weight: 500; color: var(--ink); }

        .tl-note {
            margin-top: 0.75rem;
            padding: 0.75rem 1rem;
            background: var(--cream);
            border-left: 2px solid var(--accent-gold);
            font-size: 1rem; font-style: italic;
            color: var(--ink-mid);
        }

        .tl-feature-list {
            margin-top: 0.75rem; padding: 0;
            list-style: none;
        }

        .tl-feature-list li {
            padding: 0.3rem 0;
            padding-left: 1.2rem;
            font-size: 0.85rem; font-weight: 300;
            color: var(--ink-mid);
            position: relative;
        }

        .tl-feature-list li::before {
            content: '→'; position: absolute; left: 0;
            color: var(--accent-sage); font-weight: 500;
        }

        /* ADAS SECTION */
        .adas-section {
            background: var(--ink); padding: 5rem 2rem;
        }

        .adas-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2px; background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.05);
            margin-top: 3rem;
        }

        .adas-card {
            background: rgba(255,255,255,0.03);
            padding: 2rem; border: 0;
            transition: background 0.3s;
        }

        .adas-card:hover { background: rgba(255,255,255,0.06); }

        .adas-year {
            font-family: var(--font-main), serif;
            font-size: 2rem; font-weight: 600;
            color: var(--accent-gold); margin-bottom: 0.5rem;
        }

        .adas-feature {
            font-family: var(--font-main), monospace;
            font-size: 1.2rem; letter-spacing: 0.1em;
            text-transform: uppercase; color: var(--accent-sage);
            margin-bottom: 0.5rem; display: block;
        }

        .adas-desc {
            font-size: 1.2rem; font-weight: 300;
            color: rgba(255,255,255,0.7); line-height: 1.65;
        }

        /* KEY ACTORS */
        .actors-section {
            background: var(--cream); padding: 5rem 2rem;
        }

        .actors-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2px; background: var(--border);
            border: 1px solid var(--border); margin-top: 3rem;
        }

        .actor-card {
            background: var(--cream); padding: 2rem;
        }

        .actor-name {
            font-family: var(--font-main), serif;
            font-size: 1.4rem; font-weight: 700;
            color: var(--ink); margin-bottom: 0.4rem;
        }

        .actor-date {
            font-family: var(--font-main), monospace;
            font-size: 0.62rem; letter-spacing: 0.12em;
            color: var(--accent-red); display: block; margin-bottom: 0.75rem;
        }

        .actor-desc {
            font-size: 0.86rem; font-weight: 300;
            color: var(--ink-mid); line-height: 1.65;
        }

        .actor-level {
            display: inline-block; margin-top: 0.75rem;
            padding: 0.25rem 0.65rem;
            background: var(--ink); color: #fff;
            font-family: var(--font-main), monospace;
            font-size: 0.6rem; letter-spacing: 0.1em;
        }

        /* FOOTER */
        .site-footer {
            background: var(--ink); padding: 3rem 2rem;
            border-top: 1px solid rgba(255,255,255,0.05);
        }
        .footer-inner {
            max-width: 1200px; margin: 0 auto;
            display: flex; justify-content: space-between;
            align-items: center; flex-wrap: wrap; gap: 1rem;
        }
        .footer-inner p {
            font-family: var(--font-main), monospace;
            font-size: 1.2rem; letter-spacing: 0.1em;
            color: rgba(255,255,255,0.35);
        }
        .footer-inner a { color: rgba(255,255,255,0.55); text-decoration: none; }
        .footer-inner a:hover { color: #fff; }

        /* REVEAL */
        .reveal {
            opacity: 0; transform: translateY(25px);
            transition: opacity 0.7s ease, transform 0.7s ease;
        }
        .reveal.visible { opacity: 1; transform: none; }

        /* RESPONSIVE */
        @media (max-width: 900px) {
            .levels-grid { grid-template-columns: repeat(3, 1fr); }
            .adas-grid { grid-template-columns: 1fr; }
            .actors-grid { grid-template-columns: 1fr 1fr; }
            .timeline::before { left: 20px; }
            .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; padding-left: 50px; }
            .timeline-content { width: 100%; }
            .timeline-center { position: absolute; left: 0; width: 40px; }
            .timeline-item:nth-child(odd) .timeline-content::after,
            .timeline-item:nth-child(even) .timeline-content::after { display: none; }
        }

        @media (max-width: 600px) {
            .levels-grid { grid-template-columns: 1fr 1fr; }
            .actors-grid { grid-template-columns: 1fr; }
        }

/* ================= AUTRES PAGES ================= */
.ethique-quote { font-style: italic; background-color: #f0f8ff; color: #0f213a; padding: 20px; border-left: 5px solid #0f213a; border-radius: 5px; margin: 20px 0; text-align: center; }
.ethique-section { padding: 60px 10%; position: relative; }
.ethique-section {padding: 60px 0;}
.ethique-section h2 {color: #0f213a; margin-bottom: 25px;}
.ethique-section p {text-align: justify;}
.ethique-quote {font-style: italic; background-color: #f0f8ff; padding: 20px; border-left: 5px solid #0f213a; margin: 20px 0;}
.rule-card {border: 1px solid #ddd; border-radius: 10px; padding: 20px; margin-bottom: 20px; transition: transform 0.3s;}
.rule-card:hover {transform: scale(1.03);}
.rule-icon {font-size: 40px; color: #0f213a; margin-bottom: 15px;} 
.auto-dilemme { padding: 80px 20px; background-color: #f8f8f8; }
.auto-dilemme-wrapper { display: flex; align-items: flex-start; justify-content: center; gap: 50px; max-width: 1200px; margin: 0 auto; }
.auto-dilemme-image { flex: 0 0 500px; }
.auto-dilemme-image img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); transition: transform .3s ease; }
.auto-dilemme-image img:hover { transform: scale(1.03); }
.auto-dilemme-content { flex: 1; }
.auto-dilemme-content h2 { font-size: 2rem; margin-bottom: 20px; color: #2f5d62; }
.auto-dilemme-content p { font-size: 1rem; line-height: 1.7; margin-bottom: 20px; color: #333; }
.auto-dilemme-content .btn { background-color: #0f213a; color: #ffffff; border: none; }
.auto-dilemme-content .btn:hover { background-color: #1a2b4d; transform: translateY(-3px); }

/* ================= DILEMMES BLOCKS IMPROVED ================= */

.container.py-5 .row {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(13,27,42,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.container.py-5 .row:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13,27,42,0.12);
}

/* Alternance douce */
.container.py-5:nth-of-type(even) .row {
    background: var(--cream);
}

/* Titres dilemmes */
.container.py-5 h3 {
    position: relative;
    font-family:var(--font-main), serif;
}

.container.py-5 h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
    margin-top: 0.5rem;
}

/* Images */
.container.py-5 img {
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(13,27,42,0.12);
    transition: transform 0.3s ease;
}

.container.py-5 img:hover {
    transform: scale(1.02);
}
.kant-section { background: linear-gradient(135deg,#f5f7ff,#f0faff); padding: 70px 40px; border-radius: 15px; margin-top: 60px; }
.kant-card { background: white; border-radius: 12px; padding: 30px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.08); transition: 0.3s; height: 100%; }
.kant-card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.kant-icon { font-size: 20px; margin-bottom: 15px; }
.kant-title { font-weight: 600; margin-bottom: 10px; }
.kant-desc { font-size: 15px; color: #555; }
.bubble { position: relative; background: #bec6e0; color: #0f213a; padding: 18px 25px; border-radius: 20px; margin: 20px 0; font-style: italic; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.bubble::after { content: ''; position: absolute; width: 0; height: 0; border: 12px solid transparent; border-top-color: #bec6e0; left: 20px; bottom: -20px; transform: rotate(180deg); }
.jonas-card { border: 1px solid #e8ecf2; border-top: 5px solid #0f213a; border-radius: 14px; padding: 35px; background-color: #fff; height: 100%; box-shadow: 0 10px 22px rgba(0,0,0,0.04); transition: transform 0.3s ease; }
.jonas-card:hover { transform: translateY(-4px); }
.jonas-icon { font-size: 2.2rem; color: #0f213a; margin-bottom: 15px; }
.highlight-icon { font-size: 2.3rem; color: #0f213a; margin-bottom: 15px; }
.question-card { background: linear-gradient(135deg, #0f213a 0%, #19375d 100%); color: white; border-radius: 16px; padding: 60px 80px; box-shadow: 0 12px 28px rgba(15,33,58,0.18); }
.question-card h3 { color: white; font-weight: 500; }
.question-card p { color: white; }
.risk-card { border-radius: 14px; padding: 25px; height: 100%; }
.risk-positive { background-color: #edf9f0; border: 1px solid #cfead7; }
.risk-negative { background-color: #fff1f1; border: 1px solid #f1d1d1; }
.risk-mixed { background-color: #f4f6fa !important; border: 1px solid #dbe2ef !important; }
.risk-mixed h4 { color: #4a5568 !important; }
.risk-mixed i { color: #718096 !important; }
.table thead th { background-color: #0f213a; color: white; vertical-align: middle; }
.table td { vertical-align: top; }
.zigzag { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 60px; }
.zigzag:nth-child(even) .text { order: 2; }
.text { flex: 1 1 500px; padding: 20px; }
.image { flex: 1 1 400px; min-height: 250px; background-size: cover; background-position: center; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.cards { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.card { background: #ffffff; color: #0f213a; flex: 1 1 250px; padding: 25px; border-radius: 15px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; text-align: center; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 25px rgba(0,0,0,0.12); }
.card i { font-size: 45px; color: #bec6e0; margin-bottom: 15px; }
.diagram { background: #e9ecef; border: 2px dashed #0f213a; height: 300px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin: 30px 0; font-style: italic; color: #0f213a; font-weight: 500; }
.testimony-container { padding-top: 60px; }
.testimony-card { background-color: #CAD2E6; border-radius: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 400px; padding: 30px; position: relative; text-align: center; margin-top: 80px; margin-bottom: 20px; }
.profile-pic-container { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 4px 8px rgba(0,0,0,0.2); z-index: 10; }
.profile-pic { width: 100%; height: 100%; border-radius: 50%; border: 5px solid #ffffff; object-fit: cover; }
.card-content { margin-top: 70px; }
.name { margin: 0 0 15px 0; font-weight: 600; color: #333333; }
.testimony-text { margin: 0; color: #333333; line-height: 1.6; }
.feature-item::before { position: absolute; content: ""; width: 100%; height: 100%; top: 0; left: 0; background: rgba(255,255,255,.1); clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%); }
.feature-item .border { position: relative; border-color: rgba(255,255,255,.2) !important; z-index: 1; }
.footer .btn.btn-link { display: block; margin-bottom: 10px; padding: 0; text-align: left; color: var(--bs-body); font-weight: normal; transition: .3s; }
.footer .btn.btn-link:hover { background-color: #c5e8ef; letter-spacing: 1px; box-shadow: none; }
.footer .btn.btn-link::before { position: relative; content: "\f105"; font-family: var(--font-main); font-weight: 900; margin-right: 10px; }
.footer .copyright { padding: 25px 0; border-top: 3px solid var(--bs-light); }
.footer .copyright a { color: var(--bs-body); }
.footer .copyright a:hover { background-color: #c5e8ef; }
.footer .footer-menu a { margin-right: 15px; padding-right: 15px; border-right: 3px solid var(--bs-light); }
.footer .footer-menu a:last-child { margin-right: 0; padding-right: 0; border-right: none; }
.back-to-top-custom {
    background: none;
    border: none;
    color: #6c757d; /* gris */
    font-size: 28px;
    transition: 0.3s;
}

.back-to-top-custom:hover {
    color: #416270;
}

/* ================= AVIS ================= */
.section:nth-child(even) {
            background: #fafafa;
        }

        .avis {
            position: relative;
            border-left: 3px solid #ddd;
            padding-left: 20px;
            margin-bottom: 40px;
            min-height: 140px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .avis::before {
            content: "“";
            position: absolute;
            left: -10px;
            top: -10px;
            font-size: 40px;
            color: #8B0000; /* même couleur que ta valeur */
            font-weight: 600;
        }

        .avis h5 {
            margin-top: 10px;
            font-weight: 500;
            color: #0f213a;
        }

        .valeur {
            color: #8B0000; /* rouge foncé élégant */
            font-weight: 600;
            display: block;
            margin-bottom: 10px;
        }

        .avis span {
            display: block;
            font-size: 0.85rem;
            color: #888;
            margin-top: 5px;
        }

        .icon {
            font-size: 3rem;
            color: #0f213a;
            margin-bottom: 15px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .section {
                grid-template-columns: 1fr;
            }
        }

        footer {
            text-align: center;
            padding: 40px 20px;
            color: #888;
            font-size: 0.85rem;
            border-top: 1px solid #eee;
        }

.expert-quote-box {
            background: white;
            border-radius: 15px;
            padding: 50px;
            position: relative;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            margin: -50px auto 60px auto;
            max-width: 900px;
            z-index: 10;
        }

        .yellow-dot {
            width: 35px;
            height: 35px;
            background-color: var(--accent);
            border-radius: 50%;
            position: absolute;
            left: -17px;
            top: 50%;
            transform: translateY(-50%);
        }

        .highlight-box {
            background: white;
            padding: 35px;
            border-radius: 12px;
            height: 100%;
            border-left: 5px solid var(--primary);
            box-shadow: 0 5px 20px rgba(0,0,0,0.04);
            transition: 0.3s;
        }

        .highlight-box:hover {
            transform: translateY(-3px);
        }

        .category-tag {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 15px;
            display: block;
            letter-spacing: 1.5px;
        }

        .text-justify {
            text-align: justify;
            line-height: 1.8;
        }

        .citizen-card {
            border: none;
            background: white;
            border-radius: 15px;
            transition: 0.3s;
        }

        .citizen-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.08);
        }

        .navbar-brand h2 {
            color: #ffffff !important;
        }
/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    .hero-left { padding: 4rem 2rem; min-height: 100vh; }
    .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
    .stat-grid { grid-template-columns: 1fr; }
    .context-blocks { grid-template-columns: 1fr; }
    .explore-grid { grid-template-columns: 1fr; }
    .origins-grid { grid-template-columns: 1fr; }
    .incident-row { grid-template-columns: 80px 1fr; }
    .incident-row .inc-severity { grid-column: 2; }
    .incident-row.header span:last-child { display: none; }
}

@media (max-width: 700px) {
    .auto-dilemme-wrapper { flex-direction: column; align-items: center; }
    .auto-dilemme-image { margin-bottom: 30px; }
    .auto-dilemme-content { text-align: center; }
}

@media (max-width: 600px) {
    .hero-stats-row { gap: 1.25rem; }
    .incident-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .footer-inner { flex-direction: column; text-align: center; }
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    line-height: 60px;
}
@media (max-width: 1100px) {
    .navbar-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
    }
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--ink);
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 0.5rem 0;
    }
    .nav-links a {
        line-height: 1;
        padding: 0.75rem 1.5rem;
    }
    .nav-links.open { display: flex; }
}


