/* ==========================================================================
   Hôpitaux pour la Faune Sauvage – LRBPO
   Feuille de styles principale (vanilla CSS, sans build)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --night: #0E1A14;      /* fond principal */
  --panel: #16261D;      /* cartes sur fond sombre */
  --line: #2F4D3C;       /* filets sur fond sombre */
  --line-soft: #3B5446;
  --pine: #1F4A38;       /* vert institutionnel */
  --bone: #EEF1EA;       /* fond clair */
  --ink: #0E1A14;
  --text: #EEF1EA;
  --text-soft: #C9D6CD;
  --text-mute: #9FB8A5;
  --text-dim: #8FA596;
  --accent: #EBBE3A;     /* jaune mésange */
  --accent-soft: #F6E7B8;
  --dark-text-soft: #34443A;

  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-body: 'Literata', Georgia, serif;

  --wrap: 1296px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(80px, 10vw, 144px);
  --radius: 8px;
  --pill: 999px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--font-body); font-size: 18px; line-height: 1.6; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.04; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: #F5D77A; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: var(--pill); }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(72px, 8vw, 112px) 0; }
.section--light { background: var(--bone); color: var(--ink); }
.section--pine { background: var(--pine); }

.h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; }
.h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; letter-spacing: -0.025em; color: #fff; }
.h2--sm { font-size: clamp(30px, 3.4vw, 44px); }
.section--light .h2, .section--light .h1 { color: var(--ink); }
.h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.65; color: var(--text-soft); }
.section--light .lead { color: var(--dark-text-soft); }
.section--pine .lead { color: #D5E3D9; }
.kicker { font-size: 17px; color: #3C5A48; margin-bottom: 16px; }
.section--pine .kicker { color: #C9DDCF; }
.note { font-size: 13px; color: var(--text-dim); margin-top: 16px; }
.note--center { text-align: center; margin-top: 0; color: #4A5A50; font-size: 14px; }
.todo { color: var(--accent); font-style: italic; }
.section--light .todo, .figures .todo { color: #7A5A00; }
.link { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--pine); }

.split { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 14px 26px; border-radius: var(--pill); border: 2px solid transparent; font-family: var(--font-display); font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 16px; }
.btn--lg { min-height: 64px; font-size: 20px; font-weight: 800; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #F5D77A; color: var(--ink); }
.btn--pine { background: var(--pine); color: #fff; }
.btn--pine:hover { background: #163829; color: #fff; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--play { background: #fff; color: var(--ink); padding: 8px 26px 8px 8px; }
.btn--play:hover { color: var(--ink); }
.btn__icon { width: 48px; height: 48px; border-radius: var(--pill); background: var(--accent); display: flex; align-items: center; justify-content: center; }
.btn__icon svg, .video__play svg { fill: var(--ink); stroke: none; }
.btn-round { flex: none; width: 56px; height: 56px; border-radius: var(--pill); border: 2px solid var(--line-soft); background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-round:disabled { opacity: .4; cursor: default; }

/* ---------- En-tête ---------- */
.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px var(--gutter); background: linear-gradient(to bottom, rgba(14,26,20,.75), rgba(14,26,20,0)); }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand svg { stroke: #fff; flex: none; }
.brand .brand__cross { stroke: var(--accent); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.brand__text small { font-size: 13px; color: #D5E0D8; }
.nav { display: flex; align-items: center; gap: 28px; font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.nav a:not(.btn) { color: #fff; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; animation: kenburns 28s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__scrim { position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(to top, rgba(14,26,20,.96) 0%, rgba(14,26,20,.75) 45%, rgba(14,26,20,0) 100%); }
.hero__content { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-bottom: clamp(48px, 6vw, 72px); }
.hero__text { max-width: 860px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(52px, 8vw, 104px); font-weight: 800; letter-spacing: -0.03em; line-height: .94; color: #fff; }
.hero__lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; font-style: italic; color: #E6ECE7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__caption { max-width: 300px; font-size: 14px; line-height: 1.5; color: var(--text-soft); text-align: right; }

/* ---------- Urgence ---------- */
.declines { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.decline { display: flex; flex-direction: column; gap: 14px; padding: 40px 40px 0; border-left: 1px solid var(--line); }
.decline:first-child { padding-left: 0; border-left: 0; }
.decline__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 7vw, 96px); line-height: 1; color: var(--accent); }
.decline__num--word { font-size: clamp(40px, 4vw, 56px); line-height: 1.05; padding-top: .3em; }
.decline p { font-size: 19px; line-height: 1.55; color: #DDE6DF; }

/* ---------- Chiffres ---------- */
.figures { background: var(--accent); color: var(--ink); padding: clamp(64px, 7vw, 96px) 0; }
.figures .h3 { margin-bottom: 40px; }
.figures__grid { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.figures__grid div { display: flex; flex-direction: column; gap: 10px; }
.figures__grid dt { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 4.5vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.figures__grid dd { margin: 0; font-size: 17px; line-height: 1.5; }
.figures__goal { padding-left: 32px; border-left: 3px solid var(--ink); }
.figures__goal dd { font-weight: 600; }

/* ---------- Carte du réseau ---------- */
.network { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
.map { position: relative; width: 100%; max-width: 720px; }
.map__svg { width: 100%; height: auto; display: block; }
.map__fla { fill: var(--panel); stroke: #24382C; stroke-width: 1; }
.map__wal { fill: #1F3A2C; stroke: var(--line); stroke-width: 1; }
.map__bru { fill: #2F5A45; stroke: #4E7A63; stroke-width: 1; }
.map__vl circle { fill: var(--line-soft); stroke: none; }
.map__creaves circle { fill: var(--text-mute); stroke: var(--night); stroke-width: 2; transition: r .3s, fill .3s; }
.map[data-active="creaves"] .map__creaves circle { fill: var(--accent); r: 8px; }
.map__actuel { fill: none; stroke: var(--bone); stroke-width: 2; }
.map__transfer { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.map__transfer-label { fill: var(--accent); font: italic 14px var(--font-body); stroke: none; }
.map__label { fill: #fff; font: 700 16px var(--font-display); stroke: none; }
.map__pin { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.map__pulse { position: absolute; inset: 0; border-radius: var(--pill); background: var(--accent); opacity: .25; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }
.map__dot { position: relative; width: 18px; height: 18px; border-radius: var(--pill); background: var(--accent); border: 4px solid var(--night); box-shadow: 0 0 0 2px var(--accent); transition: width .25s, height .25s; }
.map__pin[aria-pressed="true"] .map__dot { width: 26px; height: 26px; }

.legend { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--text-soft); }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend__btn { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 15px; cursor: pointer; }
.legend__btn[aria-pressed="true"] { border-color: var(--accent); }
.legend__sw { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: var(--pill); }
.legend__sw--hop { width: 16px; height: 16px; background: var(--accent); }
.legend__sw--creaves { background: var(--text-mute); }
.legend__sw--actuel { border: 2px solid var(--bone); }
.legend__sw--transfer { width: 24px; height: 0; border-radius: 0; border-top: 3px dashed var(--accent); }

.site-card { display: flex; flex-direction: column; gap: 22px; padding: 36px; background: var(--panel); border-radius: var(--radius); border-top: 4px solid var(--accent); }
.site-card__kicker { font-size: 15px; color: var(--text-mute); }
.site-card__title { font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; color: #fff; }
.site-card__text { font-size: 18px; color: #D5E0D8; }
.site-card__facts { margin: 0; }
.site-card__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.site-card__facts dt { color: var(--text-mute); }
.site-card__facts dd { margin: 0; font-weight: 600; color: #fff; text-align: right; }
.tabs { display: flex; gap: 8px; }
.tabs button { flex: 1; min-height: 48px; border-radius: var(--pill); border: 2px solid var(--accent); background: transparent; color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 16px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }

/* ---------- Parcours d'un animal ---------- */
.journey__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; margin-bottom: 48px; }
.journey__head > div:first-child { max-width: 700px; display: flex; flex-direction: column; gap: 16px; }
.segmented { display: flex; gap: 6px; padding: 6px; background: var(--panel); border-radius: var(--pill); }
.segmented button { min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--pill); background: transparent; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 18px; cursor: pointer; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.segmented--light { background: var(--bone); }
.segmented--light button { flex: 1; color: var(--pine); font-size: 17px; min-height: 48px; }
.segmented--light button[aria-pressed="true"] { background: var(--pine); color: #fff; }

.journey__track { position: relative; height: 40px; margin: 0 20px 18px; }
.journey__line { position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--line); }
.journey__fill { position: absolute; left: 0; top: 18px; height: 4px; width: 0; background: var(--accent); border-radius: var(--pill); transition: width .6s cubic-bezier(.6,0,.2,1); }
.journey__marker { position: absolute; top: 0; left: 0; width: 40px; height: 40px; margin-left: -20px; border-radius: var(--pill); background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(235,190,58,.2); transition: left .6s cubic-bezier(.6,0,.2,1); }
.journey__marker svg { stroke-width: 2.2; }
.journey__steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.journey__steps button { width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border: 0; border-radius: var(--radius); background: var(--panel); color: var(--text-mute); text-align: left; cursor: pointer; font-family: var(--font-display); }
.journey__steps .n { font-weight: 800; font-size: 15px; color: var(--accent); }
.journey__steps .t { font-weight: 700; font-size: 17px; line-height: 1.2; }
.journey__steps button.is-done { background: #1F3A2C; color: var(--text); }
.journey__steps button[aria-current="step"] { background: var(--accent); color: var(--ink); }
.journey__steps button[aria-current="step"] .n { color: var(--ink); }

.journey__stage { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; min-height: 620px; }
.journey__visual { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--panel); min-height: 420px; }
.journey__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.journey__visual img.is-plan { object-fit: contain; background: #fff; }
.journey__visual figcaption { position: absolute; left: 16px; bottom: 16px; max-width: 80%; padding: 8px 14px; border-radius: 6px; background: rgba(14,26,20,.85); font-size: 15px; line-height: 1.4; }
.gestures { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: clamp(28px, 4vw, 56px); background: var(--accent); color: var(--ink); }
.gestures > strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; }
.gestures ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gestures li { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 17px; line-height: 1.5; }
.gestures li b { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; border: 2px dashed var(--line-soft); border-radius: var(--radius); color: var(--text-mute); font-size: 16px; }
.placeholder strong { font-family: var(--font-display); font-size: 22px; color: #fff; }
.journey__visual .placeholder { position: absolute; inset: 24px; }
.placeholder--dark { min-height: 480px; border-color: #6E9A82; color: #D5E3D9; }

.journey__info { display: flex; flex-direction: column; gap: 22px; }
.journey__meta { font-size: 16px; color: var(--text-mute); }
.journey__title { font-size: clamp(34px, 3.4vw, 44px); font-weight: 800; color: #fff; }
.journey__place { display: flex; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--accent); }
.journey__place svg { flex: none; margin-top: 2px; }
.journey__story { font-size: 20px; line-height: 1.65; color: #E6ECE7; }
.journey__don { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); }
.journey__don span { font-size: 14px; color: var(--text-mute); }
.journey__don strong { font-family: var(--font-display); font-size: 18px; color: #fff; }
.journey__nav { margin-top: auto; display: flex; gap: 12px; }

/* ---------- Bruxelles ---------- */
.kpis { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.kpis dt { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 3.4vw, 48px); line-height: 1; color: var(--pine); }
.kpis dd { margin: 4px 0 0; font-size: 16px; color: var(--dark-text-soft); }
.gallery { display: grid; grid-template-columns: 3fr 1fr; gap: 24px; }
.gallery__main { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.gallery__main img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: var(--radius); background: #DCE5DA; }
.gallery__main img.is-plan { object-fit: contain; background: #fff; }
.gallery__main figcaption { display: flex; justify-content: space-between; gap: 24px; font-size: 17px; color: var(--dark-text-soft); }
.gallery__main figcaption strong { font-family: var(--font-display); color: var(--ink); white-space: nowrap; }
.gallery__main figcaption span { max-width: 640px; text-align: right; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 12px; }
.gallery__thumbs button { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--radius); border: 2px solid #fff; background: #fff; cursor: pointer; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--pine); }
.gallery__thumbs img { width: 120px; height: 84px; object-fit: cover; border-radius: 4px; flex: none; }

.video { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; margin-top: clamp(64px, 8vw, 112px); }
.video__text { display: flex; flex-direction: column; gap: 16px; }
.video__text p { color: var(--dark-text-soft); }
.video__player { position: relative; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; background: var(--ink); }
.video__player img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video__play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: var(--pill); background: var(--accent); display: flex; align-items: center; justify-content: center; padding-left: 6px; }
.video__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Coupe du bâtiment (trajet d'une buse) ---------- */
.cut { margin-top: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: 28px; }
.cut__head { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.cut__head p { color: var(--dark-text-soft); }
.cut__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cut__steps button { width: 100%; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border: 1px solid #C3CFC6; border-radius: var(--radius); background: #fff; color: var(--dark-text-soft); text-align: left; cursor: pointer; font-family: var(--font-display); }
.cut__steps .n { font-weight: 800; font-size: 15px; color: var(--pine); }
.cut__steps .t { font-weight: 700; font-size: 17px; line-height: 1.2; }
.cut__steps button.is-done { background: #D5E3D9; border-color: #D5E3D9; color: var(--pine); }
.cut__steps button[aria-current="step"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.cut__steps button[aria-current="step"] .n { color: var(--ink); }
.cut__steps button:focus-visible, .section--light .btn-round:focus-visible, .cut__nav .btn:focus-visible { outline-color: var(--pine); }

.cut__stage { display: grid; grid-template-columns: 7fr 4fr; gap: 48px; align-items: start; }
.cut__stage > * { min-width: 0; } /* la coupe défile dans .cut__scroll au lieu d'élargir la page */
.cut__figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cut__scroll { overflow-x: auto; }
.cut__svg { display: block; width: 100%; min-width: 560px; height: auto; }
.cut__figure figcaption { font-size: 15px; color: var(--dark-text-soft); }
.cut__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-display); font-size: 15px; color: var(--dark-text-soft); }
.cut__legend li { display: flex; align-items: center; gap: 10px; }
.cut__sw { width: 20px; height: 14px; border-radius: 3px; border: 1px solid #7E948A; }
.cut__sw--now { background: var(--accent); border-color: var(--accent); }
.cut__sw--done { background: #D5E3D9; }
.cut__sw--route { height: 0; border: 0; border-radius: 0; border-top: 3px solid var(--pine); }

/* Dessin SVG (neutralise le style global des icônes en trait) */
.cut__svg text { stroke: none; font-family: var(--font-display); }
.cut__sky { fill: #E2E9E1; stroke: none; }
.cut__ground { stroke: #7E948A; }
.cut__slab { fill: #7E948A; stroke: none; }
.cut__wall { fill: none; stroke: #7E948A; }
.cut__room rect { fill: transparent; stroke: #C3CFC6; stroke-width: 1; transition: fill .3s; }
.cut__room text { font-size: 12px; fill: #53665A; }
.cut__room text.a { font-size: 11px; font-variant-numeric: tabular-nums; }
.cut__room.is-key rect { stroke: #7E948A; }
.cut__room.is-key text { fill: var(--dark-text-soft); }
.cut__room.is-done rect { fill: #D5E3D9; stroke: #D5E3D9; }
.cut__room.is-done text { fill: var(--pine); }
.cut__room.is-now rect { fill: var(--accent); stroke: var(--accent); }
.cut__room.is-now text { fill: var(--ink); }
.cut__lift rect { fill: none; stroke: #7E948A; stroke-width: 1; stroke-dasharray: 3 3; }
.cut__lift text { font-size: 11px; letter-spacing: .04em; fill: #53665A; }
.cut__lvl { font-size: 12px; fill: var(--dark-text-soft); }
.cut__lvl.niv { font-size: 11px; fill: #53665A; font-variant-numeric: tabular-nums; }
.cut__label { font-size: 11px; fill: #53665A; }
.cut__seg { stroke: #A9B8AE; stroke-width: 2.5; stroke-dasharray: 5 5; }
.cut__seg.is-done { stroke: var(--pine); stroke-width: 3.5; stroke-dasharray: none; }
.cut__stop { cursor: pointer; }
.cut__stop circle { fill: var(--bone); stroke: #A9B8AE; }
.cut__stop text { font-size: 11px; font-weight: 700; fill: #53665A; text-anchor: middle; }
.cut__stop.is-done circle { fill: var(--pine); stroke: var(--pine); }
.cut__stop.is-done text { fill: #fff; }
.cut__bird { stroke: var(--ink); stroke-width: 2.2; }
.cut__token circle { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.cut__token circle.halo { fill: var(--accent); stroke: none; opacity: .3; }

.cut__card { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 36px); background: #fff; border-radius: var(--radius); box-shadow: 0 1px 0 #C9D3C6; }
.cut__meta { font-size: 15px; color: #4A5A50; }
.cut__title { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; color: var(--ink); }
.cut__rooms { list-style: none; margin: 0; padding: 0; }
.cut__rooms li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #DCE3DA; font-family: var(--font-display); font-size: 16px; }
.cut__rooms li span:last-child { color: #4A5A50; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cut__story { font-size: 18px; line-height: 1.65; color: var(--dark-text-soft); }
.cut__don { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius); background: #E3ECE5; }
.cut__don span { font-size: 14px; color: #4A5A50; }
.cut__don strong { font-family: var(--font-display); font-size: 17px; color: var(--pine); }
.cut__nav { display: flex; gap: 12px; }
.section--light .btn-round { color: var(--ink); border-color: #C3CFC6; }
.cut__note { font-size: 14px; color: #4A5A50; }

/* ---------- Namur ---------- */
.namur { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.namur__text { display: flex; flex-direction: column; gap: 28px; }
.namur__kpis { margin: 0; padding-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.namur__kpis div { padding-top: 18px; border-top: 2px solid var(--accent); }
.namur__kpis dt { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 2.8vw, 40px); color: #fff; line-height: 1.1; }
.namur__kpis dd { margin: 6px 0 0; font-size: 16px; color: #D5E3D9; }

/* ---------- Missions ---------- */
.missions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.missions div { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.missions h3 { font-size: clamp(34px, 3.4vw, 44px); font-weight: 800; color: var(--accent); }
.missions p { color: #D5E0D8; }

/* ---------- Don ---------- */
.donate { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.donate__text { display: flex; flex-direction: column; gap: 28px; }
.donate__card { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3.5vw, 44px); background: #fff; border-radius: var(--radius); box-shadow: 0 1px 0 #C9D3C6, 0 32px 64px -32px rgba(14,26,20,.35); }
.amounts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.amounts button { min-height: 64px; border-radius: var(--radius); border: 2px solid #C9D3C6; background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 22px; cursor: pointer; }
.amounts button[aria-pressed="true"] { background: var(--accent); border-color: var(--ink); }
.impact { display: flex; align-items: center; gap: 24px; padding: 24px; background: var(--accent-soft); border-radius: var(--radius); color: var(--ink); }
.impact__amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4vw, 52px); line-height: 1; white-space: nowrap; }
.impact__text { display: flex; flex-direction: column; gap: 4px; font-size: 17px; line-height: 1.5; }
.impact__text small { font-size: 13px; color: #5A5030; }

/* ---------- Partenaires ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.partners h3 { font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.partners p { font-size: 17px; color: #D5E0D8; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logos li { height: 96px; border: 1px dashed var(--line-soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-dim); }

/* ---------- Pied de page ---------- */
.site-footer { padding: clamp(72px, 8vw, 96px) 0 48px; border-top: 1px solid var(--line); }
.contact { font-style: normal; display: flex; flex-direction: column; gap: 8px; font-size: 19px; }
.contact strong { font-family: var(--font-display); font-size: 22px; color: #fff; }
.contact span { color: var(--text-soft); }
.emergency { display: flex; justify-content: space-between; align-items: center; gap: 24px 32px; flex-wrap: wrap; margin-top: 64px; padding: 28px 32px; border: 2px solid var(--accent); border-radius: var(--radius); }
.emergency strong { font-family: var(--font-display); font-size: 22px; color: #fff; }
.emergency span { color: var(--text-soft); font-size: 17px; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-dim); }
.legal a { color: var(--text-soft); }

/* ==========================================================================
   Pages intérieures
   ========================================================================== */
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* ---------- En-tête de page ---------- */
.page-hero { padding: clamp(150px, 16vw, 200px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.page-hero .h1 { max-width: 18ch; color: #fff; }
.page-hero .lead { max-width: 720px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-display); font-size: 15px; color: var(--text-mute); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-soft); }
.crumbs a { color: var(--text-soft); }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line-soft); border-radius: var(--pill); color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.subnav a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Chapitres de texte ---------- */
.chapter { display: grid; grid-template-columns: 4fr 7fr; gap: 24px 64px; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.chapter:last-child { padding-bottom: 0; }
.intro { margin: 0 0 clamp(48px, 6vw, 80px) auto; max-width: calc((100% - 64px) * 7 / 11); }
.gallery + .chapter, .namur + .intro { margin-top: clamp(48px, 6vw, 80px); }
.section--light .chapter { border-color: #C9D3C6; }
.section--pine .chapter { border-color: #3E6A55; }
.chapter__head { display: flex; flex-direction: column; gap: 12px; }
.chapter__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.5vw, 56px); line-height: 1; color: var(--accent); }
.chapter__title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; color: #fff; }
.section--light .chapter__title { color: var(--ink); }
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 20px; }
.prose p, .prose li { color: var(--text-soft); }
.section--light .prose p, .section--light .prose li { color: var(--dark-text-soft); }
.section--pine .prose p, .section--pine .prose li { color: #D5E3D9; }
.prose .prose__key { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.35; color: #fff; }
.section--light .prose .prose__key { color: var(--ink); }
.statement { max-width: 34ch; margin-top: clamp(40px, 5vw, 64px); padding-left: 24px; border-left: 3px solid var(--accent); font-size: clamp(22px, 2.2vw, 30px); font-style: italic; line-height: 1.4; color: #fff; }
.section--light .statement { border-color: var(--pine); color: var(--ink); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 32px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .8em; width: 12px; height: 2px; background: var(--accent); }
.section--light .ticks li::before { background: var(--pine); }
.stat { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; padding: 20px 24px; border-radius: var(--radius); background: var(--accent); color: var(--ink); }
.stat strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.prose .stat, .prose .stat span { color: var(--ink); }
.stat span { font-size: 18px; }
.missions--2 { grid-template-columns: repeat(2, 1fr); }
.section--light .missions div { border-color: #C9D3C6; }
.section--light .missions h3 { color: var(--pine); }
.section--light .missions p { color: var(--dark-text-soft); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.section--light .kpis { margin-bottom: clamp(40px, 5vw, 64px); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.actions + .logos { margin-top: clamp(48px, 6vw, 80px); }
.section--pine .missions div { border-color: #3E6A55; }
.section--light .note { color: #4A5A50; }
.prose > .link { align-self: flex-start; }
.teaser { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 20px 24px; border: 2px dashed var(--line-soft); border-radius: var(--radius); }
.section--light .teaser { border-color: #9DB0A3; background: #fff; }
.teaser__kicker { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.section--light .teaser__kicker { color: var(--pine); }
.teaser__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.25; }
.section--light .teaser__title { color: var(--ink); }
.link--light { color: var(--accent); }
.link--light:hover { color: #F5D77A; }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--accent); color: var(--ink); padding: clamp(56px, 6vw, 88px) 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta-band h2 { max-width: 22ch; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.cta-band .btn--pine:focus-visible { outline-color: var(--ink); }

/* ---------- Équipe ---------- */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.team li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--pine); }
.team strong { font-family: var(--font-display); font-size: 22px; line-height: 1.2; color: var(--ink); }
.team span { font-size: 16px; line-height: 1.5; color: var(--dark-text-soft); }

/* ---------- Actualités ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.chips button { min-height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line-soft); background: transparent; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 16px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.news__count { margin-bottom: 48px; font-size: 15px; color: var(--text-mute); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__item { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 12px 48px; padding: 0 0 64px 48px; }
.timeline__item[hidden] { display: none; }
.timeline__item::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: var(--pill); background: var(--night); border: 3px solid var(--accent); }
.timeline__when { display: flex; flex-direction: column; gap: 6px; }
.timeline__date { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.2; color: var(--accent); }
.timeline__tag { font-size: 15px; color: var(--text-mute); }
.timeline__body { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.timeline__body h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.timeline__body p { color: var(--text-soft); }
.timeline__body img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--panel); }
.timeline__body .link { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-page { display: grid; grid-template-columns: 7fr 5fr; gap: 48px 64px; align-items: start; }
.contact-page .site-card { gap: 16px; }
.contact-page .contact a { overflow-wrap: anywhere; }

/* ---------- Don : autre montant ---------- */
.donate__label { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.amounts--6 { grid-template-columns: repeat(3, 1fr); }
.amounts button[data-amount="other"] { font-size: 18px; }
.amount-other { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.amount-other[hidden] { display: none; }
.amount-other input { min-height: 56px; padding: 0 16px; border: 2px solid #C9D3C6; border-radius: var(--radius); font: 800 22px var(--font-display); color: var(--ink); background: #fff; }
.amount-other input:focus-visible, .donate__card .btn:focus-visible { outline-color: var(--pine); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .chapter, .contact-page { grid-template-columns: 1fr; }
  .intro { max-width: 68ch; margin-left: 0; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .timeline__item { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 100%); flex-direction: column; align-items: flex-start; gap: 20px; padding: 96px 32px 32px; background: var(--night); transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; font-size: 22px; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav-toggle { display: flex; position: relative; z-index: 30; }
  .split, .network, .journey__stage, .donate, .namur, .video, .cut__stage { grid-template-columns: 1fr; }
  .cut__stage { gap: 32px; }
  .cut__steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .cut__steps li { flex: none; width: 160px; scroll-snap-align: start; }
  .network { gap: 40px; }
  .journey__stage { gap: 32px; min-height: 0; }
  .figures__grid { grid-template-columns: repeat(3, 1fr); }
  .figures__goal { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 3px solid var(--ink); }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .gallery__thumbs button { flex: none; flex-direction: column; align-items: flex-start; width: 160px; }
  .gallery__thumbs img { width: 100%; height: 96px; }
  .missions { grid-template-columns: repeat(2, 1fr); }
  .hero__caption { display: none; }
  /* Frise : défilement horizontal */
  .journey__track { display: none; }
  .journey__steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .journey__steps li { flex: none; width: 160px; scroll-snap-align: start; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .declines { grid-template-columns: 1fr; border-top: 0; }
  .decline, .decline:first-child { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .figures__grid { grid-template-columns: repeat(2, 1fr); }
  .figures__goal { grid-column: span 2; }
  .missions, .partners, .namur__kpis, .team { grid-template-columns: 1fr; }
  .timeline__item { padding-left: 36px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .amounts { grid-template-columns: repeat(3, 1fr); }
  .impact { flex-direction: column; align-items: flex-start; }
  .journey__visual { min-height: 0; }
  .gestures { position: relative; }
  .gestures ol { grid-template-columns: 1fr; gap: 14px; }
  .journey__visual:has(img), .journey__visual:has(.placeholder) { min-height: 300px; }
  .journey__head .segmented { width: 100%; overflow-x: auto; }
  .segmented button { padding: 0 16px; font-size: 16px; }
  .tabs { flex-wrap: wrap; }
  .gallery__main figcaption { flex-direction: column; gap: 6px; }
  .gallery__main figcaption span { text-align: left; }
  .brand__text small { display: none; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media, .map__pulse, .map__transfer { animation: none; }
  .journey__fill, .journey__marker, .nav, .cut__room rect { transition: none; }
}
