/* --- Tokens --- */
:root {
  --blue: #00a1de;
  --yellow: #fad201;
  --green: #20603d;
  --bg: #f7f5f1;
  --bg-alt: #efebe4;
  --ink: #1d1d1b;
  --muted: #5d5a54;
  --line: #d9d3c8;
  --night: #121412;
  --paper: #f7f5f1;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
  --max-w: 1140px;
  --nav-h: 64px;
}
[data-theme="dark"] {
  --bg: #121412;
  --bg-alt: #1a1d1a;
  --ink: #ece8e1;
  --muted: #a8a399;
  --line: #2f332f;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.45rem; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.container.narrow { margin: 0 auto; }

/* --- Flag bar --- */
.flag-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; display: flex; z-index: 101; }
.flag-bar span { flex: 1; }
.flag-bar span:nth-child(1) { background: var(--blue); flex: 2; }
.flag-bar span:nth-child(2) { background: var(--yellow); }
.flag-bar span:nth-child(3) { background: var(--green); }

/* --- Nav --- */
nav { position: fixed; top: 3px; left: 0; right: 0; height: var(--nav-h); z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; height: 100%; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: .9rem; letter-spacing: .02em; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* --- Reading progress --- */
.progress { position: fixed; top: calc(var(--nav-h) + 3px); left: 0; right: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; z-index: 101; }

/* --- Focus --- */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.dark-toggle { background: none; border: 1px solid var(--line); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* --- Hero --- */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: end; background: var(--night); color: var(--paper); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; background: url('../../images/igihango-2017-discours.webp') 58% 30% / cover no-repeat, var(--night); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,10,.92) 0%, rgba(10,12,10,.45) 45%, rgba(10,12,10,.1) 100%); }
.hero-text { position: relative; z-index: 1; max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 20px 12vh; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin: 0 0 1rem; }
.hero h1 { font-size: clamp(3rem, 11vw, 7rem); font-weight: 400; margin: 0; letter-spacing: -.01em; }
.dates { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.8rem); margin: .25rem 0 1.5rem; opacity: .85; }
.lead { font-family: var(--serif); font-size: clamp(1.3rem, 3.2vw, 1.75rem); line-height: 1.35; margin: 0; max-width: 32ch; }
.lead-strong { font-style: italic; color: var(--yellow); margin-top: .4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-credit { position: absolute; z-index: 1; right: 12px; bottom: 8px; margin: 0; font-size: .75rem; color: rgba(247,245,241,.6); }
.hero-credit a, .gallery .meta a { color: inherit; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 13px 26px; border-radius: 2px; text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .03em; transition: background .2s, color .2s; }
.btn-light { background: var(--paper); color: var(--night); }
.btn-light:hover { background: #fff; }
.btn-ghost { border: 1px solid rgba(247,245,241,.6); color: var(--paper); }
.btn-ghost:hover { background: rgba(247,245,241,.12); }
.btn-dark { background: var(--ink); color: var(--bg); margin-top: 1rem; }
.btn-dark:hover { background: var(--green); color: #fff; }

/* --- Sections --- */
.section { padding: clamp(56px, 7vw, 88px) 0; }

/* --- Split layout: heading column + content column --- */
.split { display: grid; gap: 1.25rem 64px; }
.split-body > :first-child { margin-top: 0; }
.split-body p:not([class]) { max-width: 68ch; }
.split .timeline { margin-top: 0; }
.split .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.5rem; }
.rgpd { font-size: .8rem; color: var(--muted); margin: 1rem 0 0; max-width: 68ch; }
.rgpd a { color: inherit; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
  .split-head { position: sticky; top: calc(var(--nav-h) + 40px); }
}
.section-alt { background: var(--bg-alt); }
.kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green); font-weight: 600; margin: 0 0 1rem; }
[data-theme="dark"] .kicker { color: #6fbf8e; }
.prose-lg { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.45; }
.link-arrow { display: inline-block; margin-top: 1rem; color: var(--green); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
[data-theme="dark"] .link-arrow { color: #6fbf8e; }

.page-note { margin: 2.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.page-note a { color: inherit; }

/* --- Testimonies --- */
.testimony { margin: 0; }
.testimonies.is-collapsed > .testimony:nth-child(n+3) { display: none; }
.testimony + .testimony { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.testimony blockquote { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--yellow); }
.testimony blockquote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.3; }
.testimony figcaption { display: flex; flex-direction: column; gap: .15rem; margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.testimony figcaption strong { color: var(--ink); font-size: 1rem; font-weight: 600; }
.group-title { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.testimonies + .more-btn + .group-title, .testimonies + .group-title { margin-top: 3.5rem; }
.testimony-source { margin: .6rem 0 0; font-size: .8rem; color: var(--muted); }
.testimony-context { margin: 1.25rem 0 0; font-size: .95rem; color: var(--muted); max-width: 68ch; }

/* --- Timeline --- */
.timeline { list-style: none; margin: 3rem 0 0; padding: 0; position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 2rem 44px; }
.tl-item::before { content: ""; position: absolute; left: 2px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green); }
.tl-date { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--muted); }
.tl-item h3 { margin: .1rem 0 .35rem; font-size: 1.2rem; }
.tl-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.tl-item p + p { margin-top: .6rem; }
.tl-major { padding-top: 1rem; padding-bottom: 3rem; }
.tl-major::before { left: -2px; top: 1.6rem; width: 19px; height: 19px; background: var(--green); }
.tl-major .tl-date { font-size: 1.5rem; color: var(--green); }
[data-theme="dark"] .tl-major .tl-date { color: #6fbf8e; }
.tl-major h3 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.tl-major p { color: var(--ink); font-size: 1.0625rem; }
.tl-major p.source { color: var(--muted); font-size: .85rem; }

/* --- Stats --- */
.stats { list-style: none; padding: 0; margin: 3.5rem 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats li { background: var(--bg); padding: 28px 20px; }
.stats strong { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--green); }
[data-theme="dark"] .stats strong { color: #6fbf8e; }
.stats span { display: block; margin-top: .5rem; font-size: .9rem; color: var(--muted); }
.stats-note { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.45rem); line-height: 1.45; max-width: 720px; margin: 0 0 1.5rem; }
.source { font-size: .85rem; color: var(--muted); }

/* --- Video --- */
.voix { display: grid; gap: 2rem 56px; align-items: center; }
@media (min-width: 960px) { .voix { grid-template-columns: 1fr 1.6fr; } .voix .video { margin-top: 0; } }
.video { position: relative; aspect-ratio: 16 / 9; margin: 2rem 0 1rem; background: var(--night); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-meta { font-size: .85rem; color: var(--muted); margin: 0; }
.video-meta a { color: inherit; }

/* --- Gallery --- */
.gallery { margin-top: 3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.gallery figure { margin: 0; }
.gallery figure:only-child { grid-column: 1 / -1; max-width: 720px; }
.gallery img, .gallery .ph { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; }
.gallery .ph { background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 12px); border: 1px solid var(--line); }
.gallery figcaption { padding-top: .6rem; display: flex; flex-direction: column; }
.gallery .cap { font-family: var(--serif); font-size: 1.15rem; }
.gallery .meta { font-size: .8rem; color: var(--muted); }
.gallery-call { max-width: 720px; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.gallery-call p { margin: 0; color: var(--muted); }

/* --- Collapsible lists (collapsed only when JS runs) --- */
.timeline.is-collapsed > .tl-item:not(.tl-major) { display: none; }
.press.is-collapsed > li:nth-child(n+4) { display: none; }
.more-btn { margin-top: 1.5rem; font: 500 .9rem var(--sans); padding: 12px 22px; min-height: 44px; border: 1px solid var(--line); background: none; color: var(--ink); border-radius: 2px; cursor: pointer; }
.more-btn:hover { border-color: var(--ink); }

/* --- Press --- */
.press { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.press li { display: grid; gap: .2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.press a { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; text-decoration: none; }
.press a:hover { color: var(--green); }
[data-theme="dark"] .press a:hover { color: #6fbf8e; }
.press-src { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--green); }
[data-theme="dark"] .press-src { color: #6fbf8e; }
.press li span:last-child { font-size: .9rem; color: var(--muted); }

/* --- Closing --- */
.closing { background: var(--night); color: var(--paper); text-align: center; }
.closing h2 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 400; }
.closing p { color: rgba(247,245,241,.8); }
.closing blockquote { margin: 3rem 0 0; padding: 2.5rem 0 0; border-top: 1px solid rgba(247,245,241,.2); }
.closing blockquote p { font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.3; color: var(--paper); margin: 0; }
.closing .kin { font-style: italic; color: var(--yellow); margin-top: .8rem; }

/* --- Share --- */
.share-section { padding: 56px 0; text-align: center; }
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share a, .share button { font: 500 .88rem var(--sans); padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); background: none; color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 2px; }
.share a:hover, .share button:hover { border-color: var(--ink); }

/* --- Footer --- */
footer { border-top: 1px solid var(--line); padding: 40px 0; text-align: center; font-size: .85rem; color: var(--muted); }
.footer-logo { height: 44px; width: auto; margin: 0 auto 1rem; opacity: .8; }
footer p { margin: .3rem 0; }

/* --- Draft markers: remove .to-verify once content is validated --- */
.to-verify { outline: 1px dashed #c98a00; outline-offset: 4px; }
span.to-verify { background: rgba(250,210,1,.18); }

/* --- Reveal on scroll --- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* --- Hero, desktop: photo shifted right and up, title on the dark left side --- */
@media (min-width: 821px) {
  .hero h1 { max-width: 8ch; line-height: 1; }
  .hero-photo { left: 35%; top: -15%; background-position: 50% 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 30%); mask-image: linear-gradient(to right, transparent, #000 30%); }
}

/* --- Mobile --- */
@media (max-width: 960px) {
  .burger { display: block; }
  .nav-links { position: fixed; top: calc(var(--nav-h) + 3px); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 20px; font-size: 1rem; }
}
@media (max-width: 820px) {
  .hero-cta .btn { flex: 1 1 100%; text-align: center; }
  .hero { min-height: max(100dvh, 760px); }
  .hero-photo { bottom: 42%; top: calc(var(--nav-h) + 3px); background-size: auto 150%; background-position: 62% 100%; }
  .hero::after { background: linear-gradient(to top, var(--night) 42%, rgba(18,20,18,.6) 52%, rgba(18,20,18,0) 75%); }
  .hero-text { padding-bottom: 7vh; }
  .hero-credit { left: 12px; text-align: right; }
  .eyebrow { display: none; }
  .stats, .split .stats { grid-template-columns: 1fr; }
  .stats li { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 1rem; padding: 18px 16px; }
  .stats strong { font-size: 2.25rem; white-space: nowrap; }
  .stats span { margin-top: 0; }
}
