/* ═══════════════════════════════════════════════════════════════════════════
   OIDEL — FRONT IMMERSIF
   Dérivé du template « Site Immersif » (scroll scrubé, scènes épinglées,
   zoom-texte, rideau de lames, bande accent, traînée souris), étendu à un
   site multi-pages piloté par la base de données.
   Couleurs : celles du logo (marine, bleu, rouge, jaune, vert).
   L'administration n'utilise PAS ce fichier (elle garde main.css).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ═══ Couleurs du logo ═══ */
  --navy:   #2E3192;   /* cercle du logo */
  --blue:   #0B73CB;   /* pièce bleue */
  --sky:    #0085C5;   /* wordmark OIDEL */
  --red:    #F11D29;   /* pièce rouge */
  --yellow: #FDD303;   /* pièce jaune */
  --green:  #24B24C;   /* pièce verte */
  --night:  #15174F;   /* marine profond pour les grands aplats */
  --night-2:#1E2166;

  /* ═══ Thème (jetons du template) ═══ */
  --ink-rgb: 23, 25, 77;
  --bone: #F5F4EF;
  --ink: #17194D;
  --ash: #6C6F8F;
  --white: #FFFFFF;
  --lime: var(--yellow);       /* accent : CTA, bande devise */
  --lime-ink: #17194D;         /* texte posé sur l'accent */
  --ink-faint: rgba(var(--ink-rgb), 0.16);
  --hair: rgba(var(--ink-rgb), 0.12);

  --sans: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --geo: var(--sans);
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --t-heading: clamp(34px, 4.6vw, 57px);
  --t-display: clamp(46px, 7.2vw, 116px);
  --t-title: clamp(38px, 5.8vw, 88px);
  --radius: 2px;
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1360px;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.007em;
  line-height: 1.3;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; border-radius: var(--radius); }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 400;
}
.ash { color: var(--ash); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ═══════════ SMOOTH WRAPPER ═══════════ */
body.is-smooth .smooth {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  will-change: transform;
}

/* ═══════════ PRELOADER ═══════════ */
.loader {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.loader::before {
  content: ''; position: absolute; inset: 0;
  background: var(--bone);
  transition: opacity .75s var(--ease-inout);
}
.loader.done { pointer-events: none; }
.loader.done::before { opacity: 0; }
.loader-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.loader-logo {
  width: 64px; height: 64px; border-radius: 50%;
  transform-origin: center center;
  transition: transform .9s var(--ease-inout);
  will-change: transform;
}
.loader-wordmark {
  font-size: 23px; letter-spacing: 0.04em; font-weight: 600;
  transform-origin: center center;
  transition: transform .9s var(--ease-inout);
  will-change: transform;
}
.loader-logo.landed, .loader-wordmark.landed { opacity: 0; transition: opacity .32s var(--ease-out); }
.loader-rule {
  display: block; width: 128px; height: 1px;
  background: var(--ink-faint); overflow: hidden;
  transition: opacity .3s var(--ease-out), transform .5s var(--ease-inout);
}
.loader.done .loader-rule { opacity: 0; transform: scaleX(0.4); }
.loader-rule i {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow), var(--green));
  transform: scaleX(0); transform-origin: left;
}
body.handoff .dock { transform: translate(-50%, 0); opacity: 0; transition: none; }

/* ═══════════ TRANSITION DE PAGE — rideau de lames aux couleurs du logo ═══════════
   Aucun fond bleu nuit : uniquement des bandes bleu, jaune, rouge, vert.
   Classes propres au rideau (tx-lame) : ne PAS réutiliser « .band », qui est
   la bande jaune de l'accueil (z-index et marge négative). */
.curtain {
  position: fixed; inset: -2px; z-index: 300;
  display: flex; pointer-events: none;
}
.curtain .tx-lame {
  flex: 1 1 0; margin-right: -2px; min-width: 0;
  background: var(--blue);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .62s var(--ease-inout);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.curtain .tx-blue   { background: var(--blue); }
.curtain .tx-yellow { background: var(--yellow); }
.curtain .tx-red    { background: var(--red); }
.curtain .tx-green  { background: var(--green); }
.curtain .tx-lame:last-of-type { margin-right: 0; }
/* mobile : une seule série de quatre bandes, bien larges */
@media (max-width: 700px) { .curtain .tx-lame:nth-of-type(n+5) { display: none; } }
/* logo sur pastille blanche : lisible sur les quatre couleurs */
.curtain-mark {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%) scale(.9);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; color: var(--ink);
  padding: 22px 30px 18px; border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(14, 16, 58, .55);
  opacity: 0;
  transition: opacity .3s var(--ease-out), transform .5s var(--ease-out);
}
.curtain-mark img { width: 58px; height: 58px; border-radius: 50%; }
.curtain-mark b { font-weight: 600; letter-spacing: .06em; font-size: 19px; }
html.tx-cover .curtain-mark, html.tx-in .curtain-mark { transform: translate(-50%, -50%) scale(1); }
html.tx-cover .curtain, html.tx-in .curtain { pointer-events: auto; }
html.tx-cover .curtain .tx-lame, html.tx-in .curtain .tx-lame { transform: scaleY(1); }
html.tx-cover .curtain-mark, html.tx-in .curtain-mark { opacity: 1; transition-delay: .25s; }
/* sortie : les lames se retirent vers le haut, de gauche à droite */
html.tx-out .curtain .tx-lame { transform: scaleY(0); transform-origin: top; transition-duration: .7s; }
html.tx-out .curtain-mark { opacity: 0; transition-delay: 0s; }
html.tx-in .loader { display: none; }

/* ═══════════ SCÈNES (pin émulé) ═══════════ */
.scene { position: relative; }
.scene .pin {
  height: 100vh;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
/* mode natif (pages à formulaires) : épinglage par sticky */
body.is-native .scene .pin { position: sticky; top: 0; will-change: auto; }

/* ═══════════ RÉVÉLATIONS GÉNÉRIQUES ═══════════ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* mots qui montent depuis un masque */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .wi {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0ms) + var(--wi, 0) * 38ms);
}
[data-split].in-view .wi { transform: translateY(0); }

/* image qui se dévoile (rideau + léger dézoom) */
.img-reveal { overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-inout); transition-delay: var(--d, 0ms); }
.img-reveal img { transform: scale(1.25); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.img-reveal.in-view { clip-path: inset(0 0 0 0); }
.img-reveal.in-view img { transform: scale(1); }

/* filet qui se trace */
.rule-draw { display: block; height: 1px; background: var(--hair); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-inout); }
.rule-draw.in-view { transform: scaleX(1); }

/* ═══════════ BOUTONS, LIENS, PASTILLES ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  padding: 15px 20px 14px;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), filter .3s;
  white-space: nowrap;
}
.btn .arr { display: inline-block; transition: transform .45s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }
.btn-accent { background: var(--lime); color: var(--lime-ink); }
.btn-accent:hover { filter: brightness(0.96); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--navy); }
.btn-line { border: 1px solid currentColor; padding: 14px 19px 13px; }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-white-line { border: 1px solid rgba(255,255,255,.55); color: #fff; padding: 14px 19px 13px; }
.btn-white-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 11px 14px 10px; font-size: 11px; }

.ulink { position: relative; display: inline-block; }
.ulink::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-inout);
}
.ulink:hover::after, .ulink.is-on::after { transform: scaleX(1); transform-origin: left; }

.chip {
  --c: var(--navy);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em; text-transform: uppercase;
  padding: 6px 10px 5px;
  border-radius: var(--radius);
  color: color-mix(in srgb, var(--c) 72%, var(--ink));
  background: color-mix(in srgb, var(--c) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 26%, transparent);
  white-space: nowrap;
}
.chip-dot { width: 7px; height: 7px; border-radius: 1px; background: var(--c); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.on-dark { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }

.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ash); position: relative; }
.status-live i { background: var(--green); }
.status-live i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); animation: ping 2s var(--ease-out) infinite; }
.status-done i { background: var(--blue); }
.status-hold i { background: var(--red); }
@keyframes ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ═══════════ CHROME FIXE — dock flottant ═══════════ */
.dock {
  position: fixed; top: 14px; left: 50%;
  transform: translate(-50%, -180%);
  background: var(--white);
  border-radius: var(--radius);
  display: flex; align-items: center;
  gap: 6px;
  padding: 7px 7px 7px 10px;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(var(--ink-rgb), .04), 0 12px 40px -18px rgba(var(--ink-rgb), .35);
  transition: transform .9s var(--ease-out) .15s, opacity .32s var(--ease-out);
}
body.is-ready .dock { transform: translate(-50%, 0); }
.dock { width: max-content; max-width: calc(100vw - 28px); }
.dock > * { flex-shrink: 0; }
body.menu-open .dock { opacity: 0; pointer-events: none; }
.dock-brand { display: flex; align-items: center; gap: 9px; margin-right: 12px; }
.dock-logo { width: 32px; height: 32px; border-radius: 50%; }
.dock-wordmark { font-size: 19px; letter-spacing: 0.04em; font-weight: 600; display: inline-block; }
.dock-nav { display: flex; gap: 2px; margin-right: 6px; }
.dock-link { padding: 9px 10px; position: relative; white-space: nowrap; }
.dock-link::after {
  content: '';
  position: absolute; left: 10px; right: 10px; bottom: 5px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-inout);
}
.dock-link:hover::after, .dock-link.is-on::after { transform: scaleX(1); transform-origin: left; }
.dock-link.is-on { color: var(--navy); }
.dock-menu { display: none; align-items: center; gap: 10px; padding: 9px 10px; }
.dock-menu i { display: block; width: 16px; height: 1px; background: currentColor; position: relative; }
.dock-menu i::after { content: ''; position: absolute; left: 0; top: 5px; width: 10px; height: 1px; background: currentColor; transition: width .4s var(--ease-out); }
.dock-menu:hover i::after { width: 16px; }
.dock-cta {
  background: var(--lime);
  color: var(--lime-ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: filter .3s;
  white-space: nowrap;
}
.dock-cta:hover { filter: brightness(0.96); }

/* progression de lecture (pages détail) */
.readbar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 101; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red)); pointer-events: none; }

/* ═══════════ MENU PLEIN ÉCRAN ═══════════ */
.menu {
  position: fixed; inset: 0; z-index: 150;
  pointer-events: none;
  color: #fff;
  visibility: hidden;
  transition: visibility 0s linear .95s;
}
.menu.open { visibility: visible; transition: visibility 0s; }
.menu-bg { position: absolute; inset: -2px; display: flex; }
.menu-bg span {
  flex: 1 1 0; margin-right: -2px; background: var(--night);
  transform: scaleY(0); transform-origin: top;
  transition: transform .7s var(--ease-inout);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.menu.open { pointer-events: auto; }
.menu.open .menu-bg span { transform: scaleY(1); }
.menu-inner {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: var(--gutter);
  padding: 104px var(--gutter) 40px;
}
.menu-top {
  position: absolute; top: 18px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transition: opacity .4s var(--ease-out);
}
.menu.open .menu-top { opacity: 1; transition-delay: .35s; }
.menu-top .dock-brand { color: #fff; }
.menu-close { display: inline-flex; gap: 10px; align-items: center; color: #fff; padding: 10px 0; }
.menu-close i { width: 18px; height: 18px; position: relative; }
.menu-close i::before, .menu-close i::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #fff; transform: rotate(45deg); }
.menu-close i::after { transform: rotate(-45deg); }
.menu-links { display: flex; flex-direction: column; justify-content: center; }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(38px, 5.6vw, 84px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.08;
  overflow: hidden;
}
.menu-links a > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); transition-delay: calc(.28s + var(--i, 0) * 55ms); }
.menu-links a .mono { font-size: 12px; color: var(--yellow); letter-spacing: .04em; }
.menu-links a > span.mono { transform: translateY(500%); }
.menu.open .menu-links a > span { transform: translateY(0); }
.menu-links a:hover .lbl, .menu-links a.is-on .lbl { color: var(--yellow); }
.menu-links .lbl { transition: color .3s; }
.menu-side { display: flex; flex-direction: column; justify-content: center; gap: 28px; opacity: 0; transition: opacity .6s var(--ease-out); }
.menu.open .menu-side { opacity: 1; transition-delay: .5s; }
.menu-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--night-2); }
.menu-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out); }
.menu-preview img.on { opacity: 1; transform: scale(1); }
.menu-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.menu-contact p { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.45; }
.menu-contact .mono { color: rgba(255,255,255,.5); display: block; margin-bottom: 6px; }
body.menu-open { overflow: hidden; }

/* ═══════════ CURSEUR CONTEXTUEL ═══════════ */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 120;
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  pointer-events: none;
  transform: translate3d(-200px, -200px, 0) scale(0);
  transition: transform .35s var(--ease-out) 0s;
  will-change: transform;
}
.cursor span { opacity: 0; transition: opacity .2s; }
.cursor.on span { opacity: 1; }

/* aperçu image qui suit la souris (listes) */
.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 90;
  width: 300px; aspect-ratio: 4 / 3;
  pointer-events: none; overflow: hidden; border-radius: var(--radius);
  opacity: 0; transform: translate3d(-500px, -500px, 0) scale(.8);
  transition: opacity .35s var(--ease-out);
  will-change: transform;
}
.hover-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.hover-preview img.on { opacity: 1; }
.hover-preview.on { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   ACCUEIL
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════ S1 · HERO (ONG internationale → pasteboard → zoom texte) ═══════════ */
.s-hero .pin { background: var(--bone); }

/* — couche « ONG internationale » : grande photo de terrain, titre, impact — */
.ngo { position: absolute; inset: 0; z-index: 6; color: #fff; }
.ngo-media {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--night);
  will-change: clip-path, opacity;
}
.ngo-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease-inout); }
.ngo-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transform: scale(1.12); }
.ngo-slide.on { opacity: 1; }
.ngo-slide.on img { animation: kenburns 9s linear forwards; }
.ngo-slide:nth-child(even).on img { animation-name: kenburns-b; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
@keyframes kenburns-b { from { transform: scale(1.03) translate3d(-1.5%, 0, 0); } to { transform: scale(1.15) translate3d(1%, -1.5%, 0); } }
.ngo-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 16, 58, .88) 0%, rgba(14, 16, 58, .62) 38%, rgba(14, 16, 58, .12) 78%),
    linear-gradient(0deg, rgba(14, 16, 58, .82) 0%, rgba(14, 16, 58, 0) 42%);
}
.ngo-copy {
  position: absolute; left: var(--gutter); bottom: 196px;
  width: min(880px, 72vw);
  will-change: transform, opacity;
}
.ngo-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; color: rgba(255,255,255,.86); }
.ngo-kicker .sq { display: inline-flex; gap: 3px; }
.ngo-kicker .sq i { width: 7px; height: 7px; border-radius: 1px; }
.ngo-title {
  font-size: var(--t-display);
  font-weight: 500; letter-spacing: -0.04em; line-height: .96;
}
.ngo-title .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ngo-title .ln > span { display: block; transform: translateY(108%); transition: transform 1.25s var(--ease-out); transition-delay: calc(.35s + var(--i, 0) * 110ms); }
.ngo-title em { font-style: normal; color: var(--yellow); }
body.is-ready .ngo-title .ln > span { transform: translateY(0); }
.ngo-lede {
  margin-top: 26px; max-width: 33em;
  font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; color: rgba(255,255,255,.84);
}
.ngo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ngo-fade { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(.75s + var(--i, 0) * 110ms); }
body.is-ready .ngo-fade { opacity: 1; transform: none; }

.ngo-bar {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr);
  border-top: 1px solid rgba(255,255,255,.22);
  will-change: transform, opacity;
}
.ngo-stat { padding: 22px 18px 30px 0; }
.ngo-stat + .ngo-stat { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.14); }
.ngo-stat b { display: block; font-size: clamp(32px, 3.2vw, 50px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ngo-stat .mono { display: block; margin-top: 10px; color: rgba(255,255,255,.66); }
.ngo-story { padding: 22px 0 30px 24px; border-left: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-width: 0; }
.ngo-story-top { display: flex; justify-content: space-between; color: rgba(255,255,255,.6); }
.ngo-caption { position: relative; min-height: 2.7em; }
.ngo-caption p { position: absolute; inset: 0; font-size: 17px; line-height: 1.35; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ngo-caption p.on { opacity: 1; transform: none; transition-delay: .35s; }
.ngo-bars { display: flex; gap: 6px; }
.ngo-bars button { flex: 1; height: 2px; background: rgba(255,255,255,.22); position: relative; overflow: hidden; padding: 0; }
.ngo-bars button::before { content: ''; position: absolute; inset: -8px 0; }
.ngo-bars button i { position: absolute; inset: 0; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.ngo-bars button.done i { transform: scaleX(1); }
.ngo-bars button.on i { animation: barfill var(--slide-ms, 6500ms) linear forwards; }
@keyframes barfill { to { transform: scaleX(1); } }
.ngo-side {
  position: absolute; right: calc(var(--gutter) * .5); top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  color: rgba(255,255,255,.55);
}
.ngo-bar .reveal-up { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(1s + var(--i, 0) * 90ms); }
body.is-ready .ngo-bar .reveal-up { opacity: 1; transform: none; }

/* — pasteboard du template — */
.floaters { position: absolute; inset: 0; z-index: 1; }
.fl {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w);
  overflow: hidden;
  border-radius: var(--radius);
  will-change: transform;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease-inout);
  transition-delay: calc(var(--fi, 0) * 90ms + .15s);
}
.fl img { width: 100%; aspect-ratio: var(--ar, 3 / 2); object-fit: cover; transform: scale(1.3); transition: transform 1.7s var(--ease-out); transition-delay: calc(var(--fi, 0) * 90ms + .15s); }
body.is-ready .fl { clip-path: inset(0 0 0 0); }
body.is-ready .fl img { transform: scale(1); }

.hero-copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}
.hero-kicker { margin-bottom: 28px; will-change: opacity; }
.hero-title { font-size: var(--t-heading); letter-spacing: -0.02em; line-height: 1.12; font-weight: 400; }
.hero-line1 { display: block; will-change: opacity; }
.hero-line2 { display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.hero-line2 .hl { flex: 0 0 auto; }

/* image qui naît puis grandit dans le texte */
.grow {
  display: block; flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--radius);
  width: 0; height: 0;
  will-change: width, height;
  position: relative;
}
.grow img {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw; height: 100vh;
  object-fit: cover;
  border-radius: 0;
  max-width: none;
}

.spot { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.spot-intro {
  position: absolute; top: 44%; left: 0;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: var(--t-heading); letter-spacing: -0.02em;
  white-space: nowrap;
  text-shadow: 0 2px 30px rgba(10, 12, 40, .35);
}
.spot-intro span { display: inline-block; will-change: opacity, transform; opacity: 0; }

/* ═══════════ S2 · MANIFESTE ═══════════ */
.s-fill .pin {
  background: var(--bone);
  display: flex; align-items: center; justify-content: center;
}
.fill-kicker { position: absolute; top: 15vh; left: 50%; transform: translateX(-50%); color: var(--ash); }
.fill-text {
  width: min(900px, 76vw);
  font-size: clamp(28px, 3.6vw, 52px);
  letter-spacing: -0.02em; line-height: 1.16;
  text-align: left;
}
.fill-text .fc { color: var(--ink-faint); transition: color .25s linear; }
.fill-text .fc.on { color: var(--ink); }
.fill-text.greyed .fc { color: rgba(var(--ink-rgb), 0.34); transition: color .6s; }
.boxed { position: relative; white-space: nowrap; }
.box-svg { position: absolute; inset: -0.22em -0.35em; width: calc(100% + 0.7em); height: calc(100% + 0.44em); overflow: visible; }
.box-svg path { fill: none; stroke: var(--red); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.fill-text.greyed .box-svg path { stroke: var(--ink-faint); transition: stroke .6s; }

/* ═══════════ S3 · SÉLECTION (panneau blanc, masonry parallaxe) ═══════════ */
.collection {
  position: relative;
  background: var(--white);
  padding: 14vh var(--gutter) 30vh;
  margin-top: -100vh;
  z-index: 2;
  overflow: visible;
}
.coll-head { text-align: center; margin-bottom: 10vh; position: relative; z-index: 1; }
.coll-title { font-size: var(--t-heading); letter-spacing: -0.02em; margin: 16px 0 10px; }
.coll-sub { color: var(--ash); margin: 0 auto 18px; max-width: 40em; }
.coll-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 28px);
  align-items: start;
  position: relative; z-index: 2;
}
.col { display: grid; gap: clamp(44px, 5vw, 84px); will-change: transform; }
.col:nth-child(2) { margin-top: 14vh; }
.col:nth-child(3) { margin-top: 4vh; }
.col:nth-child(4) { margin-top: 9vh; }
.card { position: relative; display: block; }
.card-img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bone); }
.card-img img { width: 100%; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; transition: transform .9s var(--ease-out); }
.card:hover .card-img img { transform: scale(1.045); }
.card figcaption { margin-top: 12px; font-size: 19px; letter-spacing: -0.007em; line-height: 1.25; }
.card figcaption .mono { display: block; color: var(--ash); margin-top: 6px; }
.coll-foot { text-align: center; margin-top: 12vh; position: relative; z-index: 3; }

/* ═══════════ S3bis · DOMAINES — BENTO ═══════════ */
.bento-wrap { margin-top: 22vh; position: relative; z-index: 2; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(230px, 31vh);
  gap: clamp(12px, 1.4vw, 20px);
  position: relative; z-index: 2;
}
.b-big  { grid-column: span 2; grid-row: span 2; }
.b-tall { grid-column: span 1; grid-row: span 2; }
.bento-grid .card {
  background: var(--white);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  border-radius: var(--radius);
  padding: 12px 12px 18px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.bento-grid .card-img { flex: 1; min-height: 0; }
.bento-grid .card-img img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.bento-grid figcaption { margin-top: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: baseline; }
.bento-grid figcaption .tone { width: 12px; height: 12px; border-radius: 2px; background: var(--c); align-self: center; }
.bento-grid figcaption .t { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.015em; }
.bento-grid figcaption .n { font-family: var(--mono); font-size: 12px; color: var(--ash); }
.bento-grid figcaption .mono { grid-column: 2 / -1; margin-top: 0; }
.bento-grid .card-img::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.bento-grid .card:hover .card-img::after { transform: scaleX(1); }

/* ═══════════ S4 · BANDE ACCENT (devise) ═══════════ */
.band { position: relative; z-index: 3; margin-top: -20vh; }
.diag { height: 12vw; position: relative; margin: -1px 0; }
.to-lime   { background: linear-gradient(to bottom right, transparent 49.7%, var(--lime) 50.3%); }
.from-lime { background: linear-gradient(to bottom right, var(--lime) 49.7%, transparent 50.3%); }
.s-motto .pin { background: var(--lime); overflow: hidden; }
.motto-kicker {
  position: absolute; top: 13vh; left: 50%;
  transform: translateX(-50%);
  color: var(--lime-ink); opacity: 0.7; white-space: nowrap;
}
.motto-track {
  position: absolute; top: 50%; left: 0;
  display: flex; align-items: baseline;
  gap: 7vw;
  white-space: nowrap;
  will-change: transform;
}
.mw {
  font-family: var(--geo);
  font-weight: 300;
  font-size: min(13vw, 210px);
  letter-spacing: -0.03em; line-height: 1;
  color: var(--lime-ink);
  will-change: opacity;
}
.mw .sc { display: inline-block; will-change: transform; }
.motto-hint {
  position: absolute; bottom: 14vh; left: 50%;
  transform: translateX(-50%);
  color: var(--lime-ink);
  transition: opacity .25s;
  text-align: center;
  max-width: 80vw;
}
.motto-hint.swap { opacity: 0; }

/* ═══════════ S5 · PROCESSUS (MOS) — scène nuit ═══════════ */
.s-night .pin { background: var(--bone); }
.night-line {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap;
  font-size: var(--t-heading); letter-spacing: -0.02em;
  z-index: 2;
}
.night-line .nw { will-change: opacity, transform; opacity: 0; }
.night-line .nw + .nw { margin-left: 0.28em; }
.night-stage { position: absolute; inset: 0; z-index: 8; background: var(--night); color: #fff; opacity: 0; pointer-events: none; }
.bignum {
  position: absolute; right: var(--gutter); top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: flex-start;
  font-size: min(44vh, 30vw);
  font-weight: 300; line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.12);
  z-index: 11; opacity: 0; pointer-events: none;
}
.bignum-roll { display: block; height: 1em; overflow: hidden; }
.bignum-roll > span { display: block; will-change: transform; }
.bignum-roll i { display: block; height: 1em; font-style: normal; letter-spacing: -0.05em; padding-right: 0.06em; }
.wipe { position: absolute; inset: -2px; z-index: 9; display: flex; pointer-events: none; overflow: hidden; }
.wipe span {
  flex: 1 1 0; position: relative; margin-right: -2px;
  min-width: 0;
  background: var(--night);
  transform: scaleY(0); transform-origin: bottom;
  will-change: transform;
}
.wipe span:last-child { margin-right: 0; }
.psteps { position: absolute; left: var(--gutter); top: 50%; width: min(600px, 44vw); z-index: 12; color: #fff; }
.pstep { position: absolute; left: 0; top: 0; opacity: 0; will-change: opacity, transform; }
.pstep-meta { display: block; margin-bottom: 14px; color: var(--yellow); }
.pstep h3 { font-size: clamp(38px, 4.6vw, 64px); letter-spacing: -0.025em; margin-bottom: 16px; line-height: 1.02; }
.pstep p { font-size: 19px; line-height: 1.45; max-width: 27em; color: rgba(255,255,255,.8); }
.pstep ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pstep li { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; border: 1px solid rgba(255,255,255,.24); padding: 6px 9px 5px; border-radius: 2px; color: rgba(255,255,255,.86); }
.steps-cta {
  position: absolute; left: 50%; bottom: 8vh;
  transform: translateX(-50%);
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.01em;
  color: #fff;
  opacity: 0;
  z-index: 12;
  will-change: opacity, transform;
}
.steps-cta a { position: relative; display: inline-block; padding: 0.28em 0.55em; }
.cta-oval { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cta-oval path { fill: none; stroke: var(--yellow); stroke-width: 1.4; vector-effect: non-scaling-stroke; }

/* ═══════════ S6 · TÉMOIGNAGE / VISION ═══════════ */
.s-quote .pin { background: var(--bone); display: flex; align-items: center; justify-content: center; }
.q-stack { position: relative; z-index: 2; width: min(1000px, 84vw); }
.q-glyph {
  display: block;
  font-size: clamp(88px, 8.5vw, 146px); line-height: 0.62;
  color: var(--blue);
  margin-bottom: 6px;
  opacity: 0; will-change: opacity, transform;
}
.q-block { position: relative; }
.q-text {
  font-size: clamp(25px, 3vw, 46px);
  line-height: 1.28; letter-spacing: -0.018em;
  color: var(--ink);
  opacity: 0; will-change: opacity, transform;
}
.q-sign { margin-top: clamp(34px, 4.4vw, 58px); }
.q-rule { display: block; height: 1px; background: var(--ink-faint); transform: scaleX(0); transform-origin: left; }
.q-sign-row { display: flex; align-items: baseline; gap: 20px; padding-top: 18px; }
.q-name { font-size: 20px; font-weight: 500; opacity: 0; }
.q-ctx { flex: 1; opacity: 0; }
.q-fig {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 300; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  opacity: 0;
}
.q-fig .fig-pre { font-size: 0.58em; }
.q-fig .fig-unit { font-size: 0.46em; margin-left: 0.12em; }
.q-stack.no-fig .q-fig { display: none; }

/* ═══════════ S7 · ACTUALITÉS — défilement horizontal épinglé ═══════════ */
.s-hscroll .pin { background: var(--white); display: flex; flex-direction: column; justify-content: center; padding-top: 70px; }
.hs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gutter); margin-bottom: 5vh; }
.hs-head h2 { font-size: var(--t-heading); letter-spacing: -0.02em; line-height: 1.05; margin-top: 12px; }
.hs-track { display: flex; gap: clamp(16px, 2vw, 30px); padding: 0 var(--gutter); will-change: transform; width: max-content; }
.hs-card { width: clamp(270px, 26vw, 410px); flex: none; display: block; }
.hs-card .card-img img { aspect-ratio: 3 / 2; }
.hs-card .hs-date { margin-top: 16px; color: var(--ash); display: flex; gap: 12px; }
.hs-card h3 { font-size: clamp(21px, 1.7vw, 26px); letter-spacing: -0.015em; line-height: 1.18; margin-top: 10px; }
.hs-card p { color: var(--ash); font-size: 16px; line-height: 1.45; margin-top: 10px; }
.hs-end {
  width: clamp(260px, 24vw, 360px); flex: none;
  background: var(--night); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px; border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  transition: background .4s;
}
.hs-end:hover { background: var(--navy); }
.hs-end b { font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
.hs-progress { margin: 5vh var(--gutter) 0; height: 1px; background: var(--hair); position: relative; }
.hs-progress i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* ═══════════ S8 · PARTENAIRES — défilement de logos ═══════════ */
.partners { background: var(--white); padding: 16vh 0 18vh; position: relative; z-index: 2; overflow: hidden; }
.partners-head { text-align: center; margin-bottom: 8vh; padding: 0 var(--gutter); }
.partners-head h2 { font-size: var(--t-heading); letter-spacing: -0.02em; margin-top: 14px; }
.partners-head p { color: var(--ash); margin-top: 10px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 18px; }
.marquee-track { display: flex; gap: 18px; padding-right: 18px; flex: none; animation: marquee var(--dur, 40s) linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.logo-tile {
  width: 168px; height: 112px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--hair); border-radius: var(--radius); background: #fff;
  padding: 14px;
}
.logo-tile img { max-height: 58px; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .4s, opacity .4s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile .mono { font-size: 10px; color: var(--ash); }

/* ═══════════ S9 · OBJECTIONS (FINALE) ═══════════ */
.s-final .pin { background: var(--bone); display: flex; align-items: center; justify-content: center; }
.final-text {
  position: relative; z-index: 2;
  text-align: center;
  font-size: var(--t-heading); letter-spacing: -0.02em; line-height: 1.2;
  padding: 0 var(--gutter);
  max-width: min(980px, 78vw); margin: 0 auto;
}
.fs { color: var(--ink-faint); transition: color .5s; }
.fs.on { color: var(--ink); }
.pill { position: relative; white-space: nowrap; }
.pill-svg { position: absolute; inset: -0.2em -0.3em; width: calc(100% + 0.6em); height: calc(100% + 0.4em); overflow: visible; }
.pill-svg path { fill: none; stroke: var(--blue); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.trail { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.trail img { position: absolute; top: 0; left: 0; width: var(--tw, 150px); aspect-ratio: var(--ar, 4 / 5); object-fit: cover; max-width: none; opacity: 0; will-change: transform, opacity; }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGES INTÉRIEURES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════ HERO DE PAGE — « Nos [image] projets. » ═══════════ */
.s-page .pin { background: var(--bone); }
.ph-top {
  position: absolute; top: 100px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; gap: 20px; z-index: 3;
  color: var(--ash);
}
.ph-top a:hover { color: var(--ink); }
.ph-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; text-align: center; pointer-events: none; }
.ph-line {
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap;
  font-size: var(--t-title); letter-spacing: -0.035em; line-height: 1.05; font-weight: 400;
}
.ph-line .hl { flex: 0 0 auto; display: inline-block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.ph-line .hl > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); transition-delay: calc(.25s + var(--i, 0) * 120ms); }
body.is-ready .ph-line .hl > span { transform: none; }
.ph-lede { margin-top: 30px; max-width: 34em; padding: 0 var(--gutter); color: var(--ash); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; will-change: opacity; }
.ph-lede, .ph-kicker { opacity: 0; transition: opacity 1s var(--ease-out) .7s; }
body.is-ready .ph-lede, body.is-ready .ph-kicker { opacity: 1; }
.ph-kicker { margin-bottom: 28px; }
.ph-scroll { position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); z-index: 3; color: var(--ash); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ph-scroll i { display: block; width: 1px; height: 46px; background: var(--hair); position: relative; overflow: hidden; }
.ph-scroll i::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--ink); animation: drip 1.8s var(--ease-inout) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

/* panneau qui recouvre le hero sur place */
.page-panel {
  position: relative; z-index: 3;
  background: var(--white);
  margin-top: -100vh;
  padding: 13vh 0 16vh;
}
.page-panel.on-bone { background: var(--bone); }
.page-panel.no-overlap { margin-top: 0; }

/* ═══════════ HERO DÉTAIL — grande image plein cadre ═══════════ */
.s-detail .pin { background: var(--night); color: #fff; }
.dt-media { position: absolute; inset: 0; overflow: hidden; clip-path: inset(14% 22% 14% 22%); transition: clip-path 1.5s var(--ease-inout) .1s; }
body.is-ready .dt-media { clip-path: inset(0 0 0 0); }
.dt-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; will-change: transform; }
.dt-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,16,58,.9) 0%, rgba(14,16,58,.35) 50%, rgba(14,16,58,.2) 100%); pointer-events: none; }
.dt-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 9vh; z-index: 2; will-change: transform, opacity; }
.dt-crumb { display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.66); margin-bottom: 22px; }
.dt-crumb a:hover { color: #fff; }
.dt-title { font-size: clamp(34px, 4.8vw, 74px); letter-spacing: -0.035em; line-height: 1.02; font-weight: 500; max-width: 18em; }
.dt-title.is-long { font-size: clamp(30px, 3.6vw, 56px); }
.dt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 26px; color: rgba(255,255,255,.78); }
.dt-meta .status { color: #fff; }

/* ═══════════ SECTIONS & TITRES ═══════════ */
.sec { padding: 13vh 0; position: relative; }
.sec-tight { padding: 8vh 0; }
.sec-head { margin-bottom: 7vh; }
.sec-head.center { text-align: center; }
.sec-head h2, .h2 { font-size: var(--t-heading); letter-spacing: -0.025em; line-height: 1.06; margin-top: 14px; }
.sec-head p { color: var(--ash); margin-top: 14px; max-width: 38em; line-height: 1.45; }
.sec-head.center p { margin-left: auto; margin-right: auto; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--ash); }
.kicker::before { content: ''; width: 8px; height: 8px; background: var(--c, var(--yellow)); border-radius: 1px; }
.lead { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.32; letter-spacing: -0.018em; }
.lead + .lead { margin-top: 1em; }
.lead strong { font-weight: 500; color: var(--navy); }
.muted { color: var(--ash); }
.split-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.split-2.even { grid-template-columns: 1fr 1fr; }

/* chiffres clés */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); }
.figure { padding: 28px 22px 10px 0; }
.figure + .figure { padding-left: 22px; border-left: 1px solid var(--hair); }
.figure b { display: block; font-size: clamp(44px, 5.2vw, 84px); font-weight: 300; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.figure b sup { font-size: .4em; vertical-align: top; margin-left: 4px; color: var(--blue); }
.figure .mono { display: block; margin-top: 12px; color: var(--ash); }

/* carte identité (navy) */
.id-card { background: var(--night); color: #fff; padding: clamp(26px, 3vw, 42px); border-radius: var(--radius); position: relative; overflow: hidden; }
.id-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--navy); opacity: .5; }
.id-card .mono { color: var(--yellow); }
.id-card dl { margin-top: 22px; display: grid; gap: 14px; position: relative; z-index: 1; }
.id-card dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.5); }
.id-card dd { font-size: 17px; line-height: 1.35; margin-top: 3px; }
.id-card dd a:hover { color: var(--yellow); }
.id-pieces { display: flex; gap: 4px; margin-top: 26px; position: relative; z-index: 1; }
.id-pieces i { height: 4px; flex: 1; border-radius: 1px; }

/* ═══════════ FILTRES ═══════════ */
.filters { display: grid; gap: 18px; margin-bottom: 7vh; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-f {
  --c: var(--ink);
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em;
  padding: 10px 14px 9px; border: 1px solid var(--hair); border-radius: var(--radius);
  background: var(--white); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.pill-f i { width: 7px; height: 7px; border-radius: 1px; background: var(--c); }
.pill-f:hover { border-color: var(--ink); }
.pill-f.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-f.active i { background: var(--c); box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px rgba(255,255,255,.4); }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.f-search { flex: 2 1 280px; position: relative; }
.f-search input { padding-left: 34px; }
.f-search::before { content: ''; position: absolute; left: 4px; top: 50%; width: 13px; height: 13px; border: 1.5px solid var(--ash); border-radius: 50%; transform: translateY(-62%); }
.f-search::after { content: ''; position: absolute; left: 16px; top: 50%; width: 6px; height: 1.5px; background: var(--ash); transform: translateY(5px) rotate(45deg); }
.f-select { flex: 1 1 180px; }
.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ash); margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.result-meta b { color: var(--ink); font-weight: 500; }
.view-toggle { display: inline-flex; border: 1px solid var(--hair); border-radius: var(--radius); }
.view-toggle button { padding: 9px 12px 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--ash); }
.view-toggle button.active { background: var(--ink); color: #fff; }
[data-ajax-target] { transition: opacity .3s var(--ease-out); }
[data-ajax-target].loading { opacity: .35; pointer-events: none; }

/* ═══════════ CHAMPS DE FORMULAIRE ═══════════ */
.input, .select, .textarea {
  width: 100%;
  font: inherit; font-size: 18px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--ink-faint);
  border-radius: 0;
  padding: 14px 4px 12px;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: rgba(var(--ink-rgb), .38); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-bottom-color: var(--blue); }
.select { padding-right: 28px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.textarea { resize: vertical; min-height: 140px; line-height: 1.45; }
.field { position: relative; display: block; }
.field-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ash); margin-bottom: 2px; }
.field-label em { font-style: normal; color: var(--red); }
.field-line { position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within .field-line { transform: scaleX(1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.form-grid .full { grid-column: 1 / -1; }
.drop {
  display: flex; align-items: center; gap: 16px;
  border: 1px dashed var(--ink-faint); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: border-color .3s, background .3s;
  position: relative;
}
.drop:hover, .drop.drag { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 5%, transparent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { width: 44px; height: 54px; border: 1px solid var(--ink-faint); border-radius: 2px; position: relative; flex: none; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font-family: var(--mono); font-size: 9px; color: var(--red); }
.drop b { display: block; font-weight: 500; font-size: 17px; }
.drop small { display: block; color: var(--ash); font-size: 14px; margin-top: 2px; }
.drop.has-file .drop-ico { border-color: var(--green); color: var(--green); }

/* messages flash */
.flash { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 5vh; border: 1px solid; font-size: 17px; line-height: 1.4; }
.flash .mono { flex: none; padding-top: 3px; }
.flash-success { border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); }
.flash-success .mono { color: var(--green); }
.flash-error { border-color: color-mix(in srgb, var(--red) 40%, transparent); background: color-mix(in srgb, var(--red) 7%, transparent); }
.flash-error .mono { color: var(--red); }

/* ═══════════ PROJETS — grille éditoriale ═══════════ */
.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(36px, 5vw, 80px) clamp(14px, 1.8vw, 28px); align-items: start; }
.pcard { grid-column: span 6; display: block; }
.pgrid .pcard:nth-child(4n+1) { grid-column: span 7; }
.pgrid .pcard:nth-child(4n+2) { grid-column: span 5; margin-top: 12vh; }
.pgrid .pcard:nth-child(4n+3) { grid-column: span 5; }
.pgrid .pcard:nth-child(4n+4) { grid-column: span 7; margin-top: -6vh; }
.pgrid .pcard:nth-child(4n+1) .card-img img, .pgrid .pcard:nth-child(4n+4) .card-img img { aspect-ratio: 16 / 10; }
.pgrid .pcard:nth-child(4n+2) .card-img img, .pgrid .pcard:nth-child(4n+3) .card-img img { aspect-ratio: 4 / 5; }
.pcard-body { margin-top: 18px; display: grid; gap: 10px; }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pcard h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; line-height: 1.12; transition: color .3s; }
.pcard:hover h3 { color: var(--navy); }
.pcard .mono.ash { line-height: 1.6; }
.pcard .card-img .tag { position: absolute; left: 12px; top: 12px; background: var(--white); padding: 7px 10px 6px; border-radius: 2px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }

/* ═══════════ MISSIONS — index typographique avec aperçu ═══════════ */
.mrows { border-top: 1px solid var(--ink); }
.mrow {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) auto 32px;
  gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--hair);
  position: relative;
  transition: padding .5s var(--ease-out);
}
.mrow::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -0.5); background: var(--bone); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); z-index: 0; border-radius: var(--radius); }
.mrow > * { position: relative; z-index: 1; }
.mrow:hover::before { transform: scaleY(1); }
.mrow:hover { padding-left: 14px; }
.mrow-num { font-family: var(--mono); font-size: 12px; color: var(--ash); }
.mrow h3 { font-size: clamp(22px, 2.1vw, 32px); letter-spacing: -0.02em; line-height: 1.12; }
.mrow-sub { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--ash); }
.mrow-right { text-align: right; color: var(--ash); display: grid; gap: 6px; justify-items: end; }
.mrow-arr { font-size: 22px; transition: transform .45s var(--ease-out); }
.mrow:hover .mrow-arr { transform: translateX(6px); }
.mrow-thumb { display: none; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 4vw, 60px) clamp(14px, 1.8vw, 28px); }
.mgrid .card-img img { aspect-ratio: 4 / 3; }
.mgrid .mcard-body { margin-top: 16px; display: grid; gap: 10px; }
.mgrid h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.18; }
.mgrid p { color: var(--ash); font-size: 16px; line-height: 1.45; }
[data-view="grid"] .mrows, [data-view="list"] .mgrid { display: none; }

/* ═══════════ ACTUALITÉS ═══════════ */
.news-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 70px); align-items: center; margin-bottom: 12vh; }
.news-feature .card-img img { aspect-ratio: 16 / 11; }
.news-feature h2 { font-size: clamp(30px, 3.4vw, 52px); letter-spacing: -0.03em; line-height: 1.04; margin: 16px 0 18px; }
.news-feature p { color: var(--ash); font-size: 18px; line-height: 1.5; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 70px) clamp(14px, 1.8vw, 28px); }
.ncard { display: block; }
.ncard .card-img img { aspect-ratio: 4 / 3; }
.ncard .n-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ash); }
.ncard h3 { font-size: 23px; letter-spacing: -0.015em; line-height: 1.18; margin-top: 10px; transition: color .3s; }
.ncard:hover h3 { color: var(--navy); }
.ncard p { color: var(--ash); font-size: 16px; line-height: 1.45; margin-top: 10px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 10vh; }
.pager a { min-width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--hair); border-radius: var(--radius); font-family: var(--mono); font-size: 12px; transition: background .3s, color .3s; }
.pager a:hover { border-color: var(--ink); }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ═══════════ ARTICLE (prose) ═══════════ */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 110px); align-items: start; }
.prose { font-size: 19px; line-height: 1.66; color: rgba(var(--ink-rgb), .9); max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.02em; line-height: 1.12; margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: clamp(23px, 2vw, 28px); letter-spacing: -0.015em; line-height: 1.2; margin-top: 1.6em; color: var(--ink); }
.prose h4 { font-size: 20px; font-weight: 500; margin-top: 1.4em; }
.prose strong, .prose b { font-weight: 600; color: var(--ink); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 0; }
.prose ul li, .prose ol li { position: relative; padding-left: 28px; }
.prose ul li + li, .prose ol li + li { margin-top: .5em; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .68em; width: 9px; height: 9px; border-radius: 1px; background: var(--yellow); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-family: var(--mono); font-size: 12px; color: var(--blue); }
.prose blockquote { border-left: 3px solid var(--yellow); padding: 6px 0 6px 24px; font-size: 1.2em; line-height: 1.45; color: var(--ink); }
.prose img { border-radius: var(--radius); margin: 1.6em 0; height: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--hair); padding: 10px 8px; text-align: left; }
.prose > p:first-child { font-size: 1.16em; line-height: 1.5; color: var(--ink); }
.aside { display: grid; gap: 18px; }
.aside-card { border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; background: var(--white); }
.aside-card > .mono { color: var(--ash); display: block; margin-bottom: 16px; }
.facts { display: grid; gap: 16px; }
.facts div { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ash); }
.facts dd { font-size: 17px; line-height: 1.35; }
.facts dd a { color: var(--navy); }
.facts dd a:hover { text-decoration: underline; }
.donor { display: flex; gap: 14px; align-items: center; }
.donor img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--hair); background: #fff; padding: 6px; }
.donor b { display: block; font-weight: 500; font-size: 17px; line-height: 1.25; }
.donor a { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--blue); display: inline-block; margin-top: 6px; }
.aside .btn { width: 100%; justify-content: space-between; }

/* bandeau de faits horizontal (fiche projet) */
.factbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hair); margin-bottom: 9vh; }
.factbar div { padding: 20px 18px 20px 0; }
.factbar div + div { padding-left: 18px; border-left: 1px solid var(--hair); }
.factbar dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--ash); letter-spacing: .04em; }
.factbar dd { margin-top: 8px; font-size: 18px; line-height: 1.3; }

/* listes liées (missions d'un projet, actualités d'une mission) */
.linked { margin-top: 12vh; }
.linked-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4vh; }
.linked-head h2 { font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -0.02em; }
.lrow { display: grid; grid-template-columns: 120px minmax(0, 1fr) 28px; gap: 22px; align-items: center; padding: 18px 0; border-top: 1px solid var(--hair); transition: background .3s; }
.lrow:last-child { border-bottom: 1px solid var(--hair); }
.lrow img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; }
.lrow h3 { font-size: 21px; letter-spacing: -0.012em; line-height: 1.2; }
.lrow .mono { margin-top: 8px; color: var(--ash); display: block; }
.lrow .chips { margin-top: 10px; }
.lrow .arr { transition: transform .45s var(--ease-out); }
.lrow:hover .arr { transform: translateX(5px); }
.lrow:hover h3 { color: var(--navy); }

/* ═══════════ GALERIE ═══════════ */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 28px); align-items: start; }
.albums .col:nth-child(2) { margin-top: 12vh; }
.albums .col:nth-child(3) { margin-top: 5vh; }
.album { display: block; }
.album .card-img img { aspect-ratio: var(--ar, 4 / 5); }
.album-count { position: absolute; right: 12px; top: 12px; background: rgba(14,16,58,.78); color: #fff; padding: 7px 10px 6px; border-radius: 2px; font-family: var(--mono); font-size: 11px; backdrop-filter: blur(6px); }
.album h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.18; margin-top: 14px; }
.album .mono { margin-top: 8px; color: var(--ash); display: block; }
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 18px); align-items: start; }
.wall .col { gap: clamp(10px, 1.2vw, 18px); }
.wall .col:nth-child(2) { margin-top: 8vh; }
.wall .col:nth-child(3) { margin-top: 3vh; }
.shot { display: block; position: relative; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; transition: transform .9s var(--ease-out); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: 14px; background: linear-gradient(0deg, rgba(14,16,58,.75), transparent); opacity: 0; transition: opacity .4s; }
.shot:hover figcaption { opacity: 1; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 180; display: none; color: #fff; }
.lb.open { display: block; }
.lb-bg { position: absolute; inset: 0; background: rgba(12, 14, 46, .96); opacity: 0; transition: opacity .45s var(--ease-out); }
.lb.show .lb-bg { opacity: 1; }
.lb-stage { position: absolute; inset: 70px 90px 90px; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); will-change: transform; }
.lb-ui { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s .15s; }
.lb.show .lb-ui { opacity: 1; }
.lb-ui > * { pointer-events: auto; }
.lb-close { position: absolute; top: 20px; right: var(--gutter); display: inline-flex; gap: 10px; align-items: center; color: #fff; padding: 8px 0; }
.lb-count { position: absolute; top: 28px; left: var(--gutter); color: rgba(255,255,255,.7); }
.lb-cap { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; text-align: center; color: rgba(255,255,255,.8); font-size: 16px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; font-size: 20px; transition: background .3s, border-color .3s; }
.lb-nav:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ═══════════ RECRUTEMENT ═══════════ */
.jobs { border-top: 1px solid var(--ink); }
.job { border-bottom: 1px solid var(--hair); }
.job summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; gap: 24px; align-items: center; padding: 30px 0; }
.job summary::-webkit-details-marker { display: none; }
.job h3 { font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.025em; line-height: 1.08; transition: color .3s; }
.job summary:hover h3 { color: var(--navy); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; color: var(--ash); }
.job-meta .late { color: var(--red); }
.job-plus { width: 40px; height: 40px; border: 1px solid var(--hair); border-radius: 50%; position: relative; transition: transform .5s var(--ease-out), background .3s; }
.job-plus::before, .job-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); }
.job-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease-out); }
.job[open] .job-plus { background: var(--yellow); border-color: var(--yellow); transform: rotate(180deg); }
.job[open] .job-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.job-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(24px, 4vw, 70px); padding: 0 0 40px; animation: jobIn .6s var(--ease-out); }
@keyframes jobIn { from { opacity: 0; transform: translateY(-10px); } }
.job-body .actions { display: grid; gap: 10px; align-content: start; }
.empty { text-align: center; padding: 12vh 0; }
.empty h3 { font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.02em; margin: 16px 0 12px; }
.empty p { color: var(--ash); max-width: 32em; margin: 0 auto 28px; }

/* ═══════════ CONTACT ═══════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.c-big { display: block; font-size: clamp(30px, 3.4vw, 52px); letter-spacing: -0.03em; line-height: 1.08; word-break: break-word; }
.c-block { padding: 28px 0; border-top: 1px solid var(--hair); }
.c-block .mono { color: var(--ash); display: block; margin-bottom: 12px; }
.c-block p { font-size: 19px; line-height: 1.45; }
.c-phones { display: grid; gap: 4px; }
.c-phones a { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; }
.map-frame { margin-top: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hair); position: relative; }
.map-frame iframe { display: block; width: 100%; height: 300px; border: 0; filter: grayscale(.9) contrast(1.05); transition: filter .6s; }
.map-frame:hover iframe { filter: none; }
.form-card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 48px); }
.form-card h2 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -0.025em; margin: 12px 0 30px; line-height: 1.06; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 34px; }
.form-note { color: var(--ash); font-size: 14px; }

/* ═══════════ PRÉSENTATION ═══════════ */
.ideals { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 60px); }
.ideal { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--hair); font-size: 18px; line-height: 1.42; }
.ideal svg { width: 26px; height: 26px; margin-top: 1px; }
.ideal svg circle { fill: none; stroke: var(--hair); stroke-width: 1; }
.ideal svg path { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .9s var(--ease-out); transition-delay: calc(.2s + var(--i, 0) * 70ms); }
.ideal.in-view svg path { stroke-dashoffset: 0; }
.mission-list { counter-reset: m; }
.mission-item { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--hair); align-items: baseline; }
.mission-item:last-child { border-bottom: 1px solid var(--hair); }
.mission-item .mono { color: var(--blue); }
.mission-item p { font-size: clamp(20px, 1.9vw, 27px); letter-spacing: -0.015em; line-height: 1.3; }

.timeline { position: relative; padding-left: 0; }
.tl-line { position: absolute; left: 31px; top: 0; bottom: 0; width: 1px; background: var(--hair); }
.tl-line i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--blue), var(--green) 40%, var(--yellow) 70%, var(--red)); transform: scaleY(0); transform-origin: top; }
.tl-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 28px; padding: 0 0 7vh; position: relative; }
.tl-dot { width: 64px; height: 64px; border-radius: 50%; background: var(--bone); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; position: relative; z-index: 1; transition: background .5s, color .5s, border-color .5s; }
.tl-item.lit .tl-dot { background: var(--night); color: #fff; border-color: var(--night); }
.tl-item h3 { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.025em; line-height: 1.08; padding-top: 12px; }
.tl-item p { color: var(--ash); margin-top: 10px; max-width: 34em; line-height: 1.45; }
.tl-phase { display: inline-block; margin-top: 12px; }

.words-band { background: var(--lime); color: var(--lime-ink); padding: 9vh 0; overflow: hidden; position: relative; z-index: 2; }
.words-band .marquee { -webkit-mask-image: none; mask-image: none; }
.words-band .marquee-track { gap: 0; padding-right: 0; }
.words-band span.wd { font-size: clamp(54px, 8vw, 130px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; white-space: nowrap; padding: 0 .35em; display: inline-flex; align-items: center; gap: .35em; }
.words-band span.wd::after { content: ''; width: .16em; height: .16em; border-radius: 2px; background: var(--lime-ink); }
.words-band .mono { text-align: center; margin-bottom: 5vh; opacity: .7; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 60px) clamp(14px, 1.8vw, 28px); }
.member .face { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bone); }
.member .face img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.member:hover .face img { transform: scale(1.04); }
.monogram { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c, var(--navy)) 11%, var(--bone)); color: color-mix(in srgb, var(--c, var(--navy)) 72%, var(--ink)); font-size: clamp(56px, 6vw, 96px); font-weight: 300; letter-spacing: -0.04em; }
.monogram::after { content: ''; position: absolute; right: 16px; bottom: 16px; width: 14px; height: 14px; border-radius: 2px; background: var(--c, var(--navy)); }
.member h3 { font-size: 23px; letter-spacing: -0.015em; margin-top: 16px; }
.member .mono { display: block; margin-top: 6px; color: var(--blue); }
.member p { color: var(--ash); font-size: 16px; line-height: 1.45; margin-top: 10px; }
.donors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.donors .logo-tile { width: auto; height: 140px; }

/* ═══════════ 404 ═══════════ */
.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--gutter) 80px; }
.nf-num { font-size: min(36vw, 340px); font-weight: 300; letter-spacing: -0.06em; line-height: .9; display: flex; gap: .04em; }
.nf-num > span:nth-child(1) { color: var(--blue); }
.nf-num > span:nth-child(2) { color: var(--yellow); }
.nf-num > span:nth-child(3) { color: var(--red); }
.nf h1 { font-size: var(--t-heading); letter-spacing: -0.025em; margin: 20px 0 14px; }
.nf p { color: var(--ash); margin-bottom: 30px; }

/* ═══════════ FOOTER ═══════════ */
.footer {
  position: relative; z-index: 4;
  background: var(--night); color: #fff;
  padding: 16vh var(--gutter) 34px;
  text-align: center;
  overflow: hidden;
}
.footer .ash { color: rgba(255,255,255,.5); }
.footer-kicker { margin-bottom: 22px; color: var(--yellow) !important; }
.footer-mail { display: inline-block; font-size: var(--t-heading); letter-spacing: -0.02em; position: relative; word-break: break-word; }
.footer-mail-text { position: relative; }
.footer-mail-text::after {
  content: '';
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--yellow);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-inout);
}
.footer-mail:hover .footer-mail-text::after { transform: scaleX(1); transform-origin: left; }
.footer-reassurance { margin-top: 18px; }
.footer-name {
  margin-top: 6vh;
  font-size: clamp(90px, 25vw, 420px);
  font-weight: 500;
  letter-spacing: -0.04em; line-height: .9;
  white-space: nowrap;
}
.footer-name .ch { display: inline-block; overflow: hidden; vertical-align: bottom; }
.footer-name .chi { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.footer-name .ch:nth-child(1) .chi { color: var(--blue); }
.footer-name .ch:nth-child(2) .chi { color: var(--red); }
.footer-name .ch:nth-child(3) .chi { color: var(--yellow); }
.footer-name .ch:nth-child(4) .chi { color: var(--green); }
.footer-name.in-view .chi { transform: translateY(0); }
.footer-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px;
  margin-top: 9vh; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.16);
  text-align: left;
}
.footer-cols .mono.ash { display: block; margin-bottom: 16px; }
.footer-cols nav { display: grid; gap: 9px; }
.footer-cols nav a { color: rgba(255,255,255,.82); font-size: 17px; width: fit-content; }
.footer-cols nav a:hover { color: #fff; }
.footer-brand img { width: 210px; border-radius: 10px; }
.footer-brand p { margin-top: 18px; color: rgba(255,255,255,.66); font-size: 16px; line-height: 1.5; max-width: 26em; }
.footer-contact p { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.5; }
.footer-contact p + p { margin-top: 12px; }
.footer-contact a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 7vh; padding-top: 19px;
  border-top: 1px solid rgba(255,255,255,.16);
  text-align: left;
}
.footer-bottom a:hover { color: var(--yellow); }

/* ═══════════ MODE STATIQUE (prefers-reduced-motion) ═══════════ */
body.static .scene { height: auto !important; }
body.static .scene .pin { height: auto; min-height: 100vh; overflow: visible; position: relative; }
body.static .fl, body.static .fl img { clip-path: none; transform: none; transition: none; }
body.static .floaters, body.static .hero-copy, body.static .spot { display: none; }
body.static .ngo { position: relative; min-height: 100vh; }
body.static .ngo-title .ln > span, body.static .ngo-fade, body.static .ngo-bar .reveal-up, body.static .ph-line .hl > span { transform: none; opacity: 1; }
body.static .s-fill .pin { padding: 14vh 0; }
body.static .fill-text { width: auto; max-width: 820px; padding: 0 var(--gutter); }
body.static .fill-text .fc { color: var(--ink); }
body.static .fill-kicker { position: static; transform: none; text-align: center; margin-bottom: 30px; }
body.static .s-fill .pin { flex-direction: column; }
body.static .collection, body.static .page-panel { margin-top: 0; }
body.static .col { margin-top: 0 !important; }
body.static .band { margin-top: 0; }
body.static .s-motto .pin { padding: 12vh var(--gutter); min-height: 0; }
body.static .motto-kicker { position: static; transform: none; margin-bottom: 26px; }
body.static .motto-track { position: static; transform: none !important; flex-direction: column; align-items: flex-start; gap: 12px; white-space: normal; }
body.static .mw { opacity: 1 !important; font-size: clamp(56px, 13vw, 110px); }
body.static .mw .sc { transform: none !important; }
body.static .motto-hint { display: none; }
body.static .night-line { position: relative; inset: auto; height: 40vh; }
body.static .night-line .nw { opacity: 1; }
body.static .grow { width: 1.6em; height: 1em; margin: 0 0.18em; }
body.static .grow img { width: 100%; height: 100%; position: static; transform: none; object-fit: cover; }
body.static .night-stage { position: relative; inset: auto; opacity: 1; padding: 10vh 0; pointer-events: auto; }
body.static .psteps { position: static; width: auto; padding: 0 var(--gutter); }
body.static .pstep { position: static; opacity: 1 !important; transform: none !important; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.18); }
body.static .steps-cta { position: static; opacity: 1 !important; transform: none !important; text-align: center; padding: 6vh 0; background: var(--night); }
body.static .wipe, body.static .bignum { display: none; }
body.static .q-glyph, body.static .q-text, body.static .q-name, body.static .q-ctx, body.static .q-fig { opacity: 1; }
body.static .q-rule { transform: scaleX(1); }
body.static .s-quote .pin, body.static .s-final .pin { padding: 12vh var(--gutter); min-height: 0; }
body.static .fs { color: var(--ink); }
body.static .trail { display: none; }
body.static .s-hscroll .pin { padding: 12vh 0; }
body.static .hs-track { flex-wrap: wrap; width: auto; }
body.static .footer-name .chi { transform: none; }
body.static [data-split] .wi { transform: none; }
body.static .img-reveal { clip-path: none; }
body.static .img-reveal img { transform: none; }
body.static .ph-copy { position: relative; min-height: 80vh; }
body.static .ph-lede, body.static .ph-kicker { opacity: 1; }
body.static .dt-media { clip-path: none; }
body.static .s-page .grow { display: none; }

/* ═══════════ RESPONSIVE — grand écran moyen ═══════════ */
@media (max-width: 1180px) {
  .dock-nav { display: none; }
  .dock-menu { display: inline-flex; }
  .ngo-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ngo-story { display: none; }
  .donors { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════ RESPONSIVE ÉTROIT ═══════════ */
@media (max-width: 900px) {
  :root {
    --gutter: 20px;
    --t-heading: clamp(27px, 6.6vw, 40px);
    --t-title: clamp(30px, 8.6vw, 54px);
    --t-display: clamp(40px, 11vw, 64px);
  }
  body { font-size: 17px; }

  .dock {
    top: 10px; left: 10px; right: 10px;
    width: auto; max-width: none;
    transform: translateY(calc(-100% - 16px));
    justify-content: space-between;
    padding: 7px 7px 7px 10px;
    gap: 8px; white-space: nowrap;
    transition: transform .8s var(--ease-out) .1s, opacity .32s var(--ease-out);
  }
  body.is-ready .dock { transform: translateY(0); }
  body.handoff .dock { transform: translateY(0); opacity: 0; }
  .dock-brand { margin-right: auto; }
  .dock-logo { width: 28px; height: 28px; }
  .dock-wordmark { font-size: 17px; }
  .dock-cta { padding: 9px 12px; font-size: 11px; }
  .loader-rule { width: 96px; }

  .menu-inner { grid-template-columns: 1fr; padding-top: 90px; }
  .menu-side { justify-content: flex-end; }
  .menu-preview { display: none; }
  .menu-links a { font-size: clamp(34px, 10vw, 56px); }

  /* hero ONG */
  .ngo-copy { width: auto; right: var(--gutter); bottom: 214px; }
  .ngo-kicker { margin-bottom: 18px; font-size: 10px; }
  .ngo-lede { font-size: 16px; margin-top: 18px; }
  .ngo-actions { margin-top: 22px; }
  .ngo-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ngo-stat { padding: 14px 10px 14px 0; }
  .ngo-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .ngo-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .ngo-stat b { font-size: 30px; }
  .ngo-stat .mono { font-size: 10px; margin-top: 6px; }
  .ngo-side { display: none; }
  .ngo-shade { background: linear-gradient(0deg, rgba(14,16,58,.94) 0%, rgba(14,16,58,.7) 55%, rgba(14,16,58,.25) 100%); }

  /* pasteboard (règles du template) */
  .hero-title { font-size: clamp(24px, 6.4vw, 40px); }
  .hero-kicker { font-size: 10px; line-height: 1.5; margin-bottom: 18px; white-space: normal; padding: 0 var(--gutter); }
  .fl { width: calc(var(--w) * 0.52); }
  .floaters { overflow: hidden; }
  .floaters .fl:nth-child(3) { top:  2%; }
  .floaters .fl:nth-child(5) { top:  5%; }
  .floaters .fl:nth-child(2) { top: 11%; }
  .floaters .fl:nth-child(4) { top: 17%; }
  .floaters .fl:nth-child(1) { top: 23%; }
  .floaters .fl:nth-child(7)  { top: 59%; }
  .floaters .fl:nth-child(10) { top: 63%; }
  .floaters .fl:nth-child(6)  { top: 68%; }
  .floaters .fl:nth-child(8)  { top: 73%; }
  .floaters .fl:nth-child(9)  { top: 79%; }
  .spot-intro { white-space: normal; font-size: clamp(23px, 6.2vw, 34px); line-height: 1.16; padding: 0 var(--gutter); }

  .fill-text { font-size: clamp(20px, 5.4vw, 28px); width: auto; padding: 0 var(--gutter); }
  .fill-kicker { top: 12vh; }
  .coll-title { font-size: clamp(27px, 7vw, 38px); }
  .coll-sub { font-size: 17px; }
  .coll-grid { grid-template-columns: 1fr 1fr !important; }
  .bento-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(200px, 26vh); }
  .b-big { grid-column: span 2; grid-row: span 2; }
  .b-tall { grid-column: span 1; grid-row: span 2; }
  .card figcaption { font-size: 15px; }
  .mw { font-size: clamp(44px, 14vw, 72px); }

  .pstep h3 { font-size: clamp(32px, 9vw, 46px); }
  .pstep p { font-size: 17px; max-width: none; }
  .psteps { left: var(--gutter); right: var(--gutter); width: auto; top: 46%; }
  .bignum { top: 11vh; bottom: auto; transform: none; font-size: min(28vh, 42vw); }
  .steps-cta { width: max-content; max-width: calc(100% - 2 * var(--gutter)); font-size: clamp(17px, 5.2vw, 26px); }
  .steps-cta a { white-space: nowrap; }

  .q-glyph { font-size: clamp(54px, 15vw, 88px); }
  .q-text { font-size: clamp(20px, 5.6vw, 30px); }
  .q-name { font-size: 17px; }
  .q-fig { font-size: clamp(26px, 7.4vw, 36px); }
  .q-sign-row { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 16px; }
  .q-ctx { flex: none; }

  .hs-head { flex-direction: column; align-items: flex-start; }
  .hs-card { width: 76vw; }
  .hs-end { width: 70vw; aspect-ratio: 4 / 3; }

  .final-text { max-width: none; }
  .footer-mail { font-size: clamp(24px, 7.6vw, 44px); }
  .footer-name { font-size: clamp(80px, 30vw, 160px); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 10px; }

  /* pages */
  .ph-top { top: 82px; }
  .ph-top span:last-child { display: none; }
  .ph-line { font-size: var(--t-title); }
  .page-panel { padding: 9vh 0 12vh; }
  .sec { padding: 9vh 0; }
  .split-2, .split-2.even, .contact-grid, .article, .news-feature { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 40px 14px; }
  .pgrid .pcard:nth-child(n) { grid-column: span 2; margin-top: 0; }
  .pgrid .pcard:nth-child(n) .card-img img { aspect-ratio: 16 / 10; }
  .mrow { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  .mrow-num, .mrow-arr { display: none; }
  .mrow-thumb { display: block; width: 84px; aspect-ratio: 1; object-fit: cover; }
  .mrow-right { grid-column: 2; justify-items: start; text-align: left; }
  .mrow:hover { padding-left: 0; }
  .mgrid, .news-grid, .team { grid-template-columns: 1fr 1fr; }
  /* mobile : les colonnes de parallaxe s'effacent, TOUTES les photos se
     répartissent sur deux colonnes (aucune n'est masquée) */
  .albums, .wall { grid-template-columns: 1fr 1fr !important; }
  .albums .col, .wall .col { display: contents; }
  .job summary { grid-template-columns: minmax(0, 1fr) 40px; }
  .job summary .job-cta { display: none; }
  .job-body { grid-template-columns: 1fr; }
  .ideals { grid-template-columns: 1fr; }
  .mission-item { grid-template-columns: 54px minmax(0, 1fr); }
  .tl-item { grid-template-columns: 48px minmax(0, 1fr); gap: 18px; }
  .tl-dot { width: 48px; height: 48px; font-size: 11px; }
  .tl-line { left: 23px; }
  .donors { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .lb-stage { inset: 70px 12px 110px; }
  .lb-nav { top: auto; bottom: 22px; transform: none; width: 48px; height: 48px; }
  .lb-cap { bottom: 86px; }
  .factbar { grid-template-columns: 1fr 1fr; }
  .factbar div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .factbar div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .dt-copy { bottom: 6vh; }
  .lrow { grid-template-columns: 84px minmax(0, 1fr); }
  .lrow img { width: 84px; }
  .lrow .arr { display: none; }
  .hover-preview, .cursor { display: none; }
  /* filtres : une rangée de pastilles qui défile au doigt, bord à bord */
  .pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pills::-webkit-scrollbar { display: none; }
  .pill-f { flex: none; }
  .result-meta span + span { display: none; }
  .filter-row .f-select { flex-basis: calc(50% - 6px); }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .coll-grid { grid-template-columns: 1fr 1fr !important; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(220px, 34vh); }
  .b-big, .b-tall { grid-column: span 1; grid-row: span 1; }
  .card figcaption { font-size: 13px; }
  .dock-cta { display: none; }
  .floaters .fl:nth-child(1) { top: 12%; }
  .floaters .fl:nth-child(7) { top: 66%; }
  .ngo-copy { bottom: 196px; }
  .ngo-actions .btn { padding: 13px 14px 12px; }
  .mgrid, .news-grid, .team { grid-template-columns: 1fr; }
  .donors { grid-template-columns: 1fr 1fr; }
  .menu-contact { grid-template-columns: 1fr; }
  .ph-line { font-size: clamp(28px, 9vw, 40px); }
}

/* ═══════════ REDUCED MOTION ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* titres découpés DANS une scène épinglée : ils entrent au démarrage */
.pin [data-split] .wi { transition-delay: calc(.5s + var(--wi, 0) * 40ms); }
body.is-ready .pin [data-split] .wi { transform: translateY(0); }

/* ═══════════ TEXTE RICHE (éditeur de l'administration) ═══════════ */
.lead-detail { font-size: clamp(20px, 1.6vw, 25px); line-height: 1.45; letter-spacing: -0.012em; margin-bottom: 5vh; padding-left: 22px; border-left: 3px solid var(--yellow); color: var(--ink); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
@media (min-width: 900px) { .prose .ql-align-justify { text-align: justify; hyphens: auto; } }
.prose .ql-indent-1 { padding-left: 2em; }
.prose .ql-indent-2 { padding-left: 4em; }
.prose .ql-indent-3 { padding-left: 6em; }
.prose li.ql-indent-1 { margin-left: 1.5em; }
.prose > p:first-child { font-size: 1.08em; }

/* ═══════════════════════════════════════════════════════════════════════════
   FX — cartes animées (missions, actualités, galerie)
   Entrée : la carte bascule depuis l'arrière (perspective), l'image se dévoile
   en rideau et se dézoome, les pastilles éclosent une à une, le titre monte
   mot à mot, puis le texte. Survol : inclinaison 3D qui suit la souris,
   reflet lumineux, zoom, liseré de la couleur du domaine, flèche qui s'étire.
   Défilement : la photo glisse doucement dans son cadre (parallaxe).
   ═══════════════════════════════════════════════════════════════════════════ */
.fx {
  --k: 0;
  display: block;
  opacity: 0;
  transform: perspective(1400px) translate3d(0, 80px, 0) rotateX(11deg) scale(.96);
  transform-origin: 50% 100%;
  transition: opacity .9s var(--ease-out), transform 1.4s var(--ease-out);
  transition-delay: calc(var(--k) * 120ms);
}
.fx.in-view { opacity: 1; transform: none; }
.fx-inner {
  position: relative; height: 100%;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out);
  will-change: transform;
}
.fx .card-img, .fx .mtile-media {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.25s var(--ease-inout), box-shadow .6s var(--ease-out);
  transition-delay: calc(var(--k) * 120ms + .12s), 0s;
}
.fx.in-view .card-img, .fx.in-view .mtile-media { clip-path: inset(0 0 0 0); }
.fx .fx-media, .card:hover .card-img .fx-media { transform: none; }
.fx-media {
  scale: 1.34;
  transition: scale 1.9s var(--ease-out);
  transition-delay: calc(var(--k) * 120ms + .12s);
  will-change: translate, scale;
}
.fx.in-view .fx-media { scale: 1.1; }
.fx.in-view:hover .fx-media { scale: 1.17; transition-duration: 1.1s; transition-delay: 0s; }
.fx:hover .card-img { box-shadow: 0 34px 60px -34px rgba(var(--ink-rgb), .55); }
/* reflet qui suit la souris */
.fx .card-img::before, .fx .mtile-media::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(480px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .28), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.fx:hover .card-img::before, .fx:hover .mtile-media::before { opacity: 1; }
/* liseré de la couleur du domaine */
.fx-line { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 3; background: var(--tone, var(--yellow)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.fx:hover .fx-line { transform: scaleX(1); }
/* pastilles qui éclosent une à une */
.fx .chip { opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.fx .chip:nth-child(1) { transition-delay: calc(var(--k) * 120ms + .5s); }
.fx .chip:nth-child(2) { transition-delay: calc(var(--k) * 120ms + .58s); }
.fx .chip:nth-child(3) { transition-delay: calc(var(--k) * 120ms + .66s); }
.fx .chip:nth-child(n+4) { transition-delay: calc(var(--k) * 120ms + .74s); }
.fx.in-view .chip { opacity: 1; transform: none; }
.chip-more { --c: var(--ash); }
/* textes qui suivent */
.fx .fx-up { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--k) * 120ms + .6s + var(--u, 0) * 90ms); }
.fx.in-view .fx-up { opacity: 1; transform: none; }
.fx [data-split] .wi { transition-delay: calc(var(--k) * 120ms + .45s + var(--wi, 0) * 35ms); }
/* appel à l'action : la flèche s'étire */
.fx-cta { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.fx-cta i { position: relative; width: 26px; height: 1px; background: currentColor; transition: width .55s var(--ease-out); }
.fx-cta i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.fx:hover .fx-cta i { width: 56px; }
.fx:hover h3 { color: var(--navy); }
.mgrid .mcard-body, .ncard .n-body { margin-top: 18px; display: grid; gap: 12px; }
.mgrid .fx-cta, .ncard .fx-cta { margin-top: 4px; }

/* lignes de l'index des missions : entrée en balayage */
.fx-row { clip-path: inset(0 100% 0 0); opacity: 0; transform: translateX(-30px); transition: clip-path 1.1s var(--ease-inout), opacity .8s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--k, 0) * 70ms); }
.fx-row.in-view { clip-path: inset(0 0 0 0); opacity: 1; transform: none; }
.fx-row .mrow-num { display: inline-block; transition: transform .5s var(--ease-out), color .3s; }
.mrow:hover .mrow-num { transform: translateX(6px); color: var(--blue); }
.fx-row .chip { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease-out); }
.fx-row.in-view .chip { opacity: 1; transform: none; transition-delay: calc(var(--k, 0) * 70ms + .5s); }

/* actualité à la une */
.news-feature.fx .card-img { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transition: clip-path 1.5s var(--ease-inout); }
.news-feature.fx.in-view .card-img { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.news-feature .fx-inner { display: contents; }

/* ═══════════ GALERIE — mosaïque dense (aucun vide) ═══════════ */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 16vw, 250px);
  grid-auto-flow: dense;
  gap: clamp(8px, 1vw, 14px);
}
.mosaic > * { grid-column: span var(--c, 1); grid-row: span var(--r, 1); min-width: 0; }
.mtile { position: relative; display: block; color: #fff; }
.mtile .fx-inner { height: 100%; }
.mtile-media { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); background: var(--night-2); }
.mtile-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.mtile-media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(14,16,58,.86) 0%, rgba(14,16,58,.25) 45%, rgba(14,16,58,0) 70%); transition: opacity .5s; }
.mtile:hover .mtile-media::after { opacity: .85; }
.mtile .album-count { z-index: 4; }
.mtile-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: clamp(14px, 1.6vw, 22px); display: grid; gap: 8px; transform: translateZ(30px); }
.mtile-cap h3 { font-size: clamp(18px, 1.6vw, 26px); letter-spacing: -0.015em; line-height: 1.12; color: #fff; }
.mtile[style*="--c:1"] .mtile-cap h3 { font-size: 17px; }
.mtile-cap .mono { color: rgba(255,255,255,.72); }
.mtile-cap .fx-cta { color: var(--yellow); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease-out), opacity .4s; }
.mtile:hover .mtile-cap .fx-cta { max-height: 30px; opacity: 1; }
.mtile:hover h3 { color: #fff; }
.mtile.shot { cursor: zoom-in; }
.mtile.shot .mtile-media::after { opacity: 0; }
.mtile.shot:hover .mtile-media::after { opacity: .6; }
.mtile.shot .mtile-cap { opacity: 0; transition: opacity .4s; }
.mtile.shot:hover .mtile-cap { opacity: 1; }
.mtile .zoom-ico { position: absolute; right: 12px; top: 12px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 15px; transform: scale(0); transition: transform .45s var(--ease-out); }
.mtile.shot:hover .zoom-ico { transform: scale(1); }

@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; }
  .mosaic > * { grid-column: span var(--cm, 1); }
  .mtile-cap .fx-cta { max-height: 30px; opacity: 1; }
  .mtile.shot .mtile-cap { opacity: 1; }
  .fx { transform: translate3d(0, 50px, 0) scale(.97); }
}
body.static .fx, body.static .fx-row, body.static .fx .chip, body.static .fx .fx-up { opacity: 1; transform: none; clip-path: none; }
body.static .fx .card-img, body.static .fx .mtile-media { clip-path: none; }
.mgrid p.mono, .ncard p.mono, .ncard .n-meta { font-size: 12px; line-height: 1.5; }
.news-feature.fx { display: grid; }
@media (max-width: 900px) { .news-feature.fx { display: grid; grid-template-columns: 1fr; } }
.news-feature p.mono { font-size: 12px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS AUX COULEURS DU LOGO (page Présentation)
   Chaque thème redéfinit les jetons d'encre : les composants (titres, filets,
   pastilles, chiffres, listes) s'adaptent sans règle supplémentaire.
   Contrastes vérifiés : blanc/marine 10,7:1 · blanc/bleu 4,9:1 · encre/vert 5,9:1.
   ═══════════════════════════════════════════════════════════════════════════ */
.band-sec { position: relative; z-index: 3; padding: 15vh 0; overflow: hidden; }
.band-sec.overlap { margin-top: -100vh; }
.theme-white  { background: var(--white); }
.theme-bone   { background: var(--bone); }
.theme-navy   { background: var(--navy); }
.theme-blue   { background: var(--blue); }
.theme-green  { background: var(--green); }
.theme-red    { background: var(--red); }
.theme-yellow { background: var(--yellow); }
.theme-navy, .theme-blue, .theme-red {
  --ink-rgb: 255, 255, 255;
  --ink: #FFFFFF;
  --ash: rgba(255, 255, 255, .76);
  --hair: rgba(255, 255, 255, .22);
  --ink-faint: rgba(255, 255, 255, .26);
  color: var(--ink);
}
.theme-green { --ash: rgba(23, 25, 77, .8); --hair: rgba(23, 25, 77, .22); --ink-faint: rgba(23, 25, 77, .2); color: var(--ink); }

/* marine : chiffres clés */
.theme-navy .figure b sup { color: var(--yellow); }
.theme-navy .figure + .figure { border-left-color: var(--hair); }
.theme-navy::after { content: ''; position: absolute; right: -14vw; top: -14vw; width: 46vw; height: 46vw; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); pointer-events: none; }
.pieces-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; height: 6px; }
.pieces-bar i { flex: 1; }

/* bleu : vision encrée (la scène épinglée a son propre fond) */
.s-fill.theme-blue .pin { background: var(--blue); }
.s-fill.theme-blue .box-svg path { stroke: var(--yellow); stroke-width: 2; }
.s-fill.theme-blue .fill-text .fc { color: rgba(255, 255, 255, .26); }
.s-fill.theme-blue .fill-text .fc.on { color: #fff; }
.s-fill.theme-blue .fill-text.greyed .fc { color: rgba(255, 255, 255, .5); }

/* vert : la mission */
.theme-green .mission-item .mono { color: var(--ink); opacity: .75; }
.theme-green .mission-item { border-top-color: var(--hair); }
.theme-green .mission-item:last-child { border-bottom-color: var(--hair); }
.theme-green .kicker::before { background: var(--ink); }

/* rouge : appel à l'action */
.cta-band { text-align: center; padding: 16vh 0; }
.cta-band .kicker { color: #fff; }
.cta-title { font-size: clamp(36px, 5.6vw, 84px); letter-spacing: -0.035em; line-height: 1.02; font-weight: 500; max-width: 14em; margin: 18px auto 40px; }
.theme-red .btn-white-line:hover { color: var(--red); }

/* l'équipe : la bande jaune ouvre la section, pleine largeur */
#equipe .words-band { margin: 0; }

/* sommaire de page */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10vh; padding-bottom: 30px; border-bottom: 1px solid var(--hair); }
.toc a { --c: var(--navy); display: inline-flex; align-items: baseline; gap: 10px; padding: 11px 15px 10px; border: 1px solid var(--hair); border-radius: var(--radius); font-size: 16px; transition: background .35s var(--ease-out), color .35s, border-color .35s; }
.toc a .mono { color: var(--c); font-weight: 500; transition: color .35s; }
.toc a:hover { background: var(--c); border-color: var(--c); color: #fff; }
.toc a:hover .mono { color: rgba(255,255,255,.8); }

@media (max-width: 900px) {
  .band-sec { padding: 10vh 0; }
  .cta-band { padding: 12vh 0; }
  .toc { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 7vh; padding: 0 var(--gutter) 24px; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { flex: none; font-size: 15px; }
}
body.static .band-sec.overlap { margin-top: 0; }
.theme-green .mission-item { align-items: center; }
.theme-green .mission-item .mono { font-family: var(--sans); font-size: clamp(34px, 3.4vw, 52px); font-weight: 300; letter-spacing: -0.04em; color: #fff; opacity: 1; line-height: 1; }

/* ═══════════ GALERIE — filtres en listes déroulantes + pagination ═══════════ */
.gal-filters { align-items: flex-end; gap: 14px 24px; }
.gal-filters .f-mission { flex: 3 1 420px; }
.gal-filters .f-nb { flex: 1 1 200px; }
.gal-filters .btn { margin-bottom: 4px; }
.pager { flex-wrap: wrap; align-items: center; }
.pager .pg-nav { padding: 0 16px; }
.pager .pg-nav.is-off { opacity: .35; pointer-events: none; }
.pager .pg-gap { min-width: 26px; text-align: center; color: var(--ash); font-family: var(--mono); }
.gal-pager { margin-top: 9vh; }
@media (max-width: 900px) {
  .gal-filters .f-mission, .gal-filters .f-nb { flex: 1 1 100%; }
  .pager .pg-nav { flex: 1 1 40%; }
}
