/* =============================================================
   AGRISANA — feuille de style unique
   Palette et contrastes arrêtés en phase 3.

   Contrastes mesurés sur ivoire #F6F2E8 :
     vert profond #173F35 ... 10,4:1  AAA
     anthracite   #1F2925 ... 13,4:1  AAA
     bleu fleuve  #2E6F7E .... 5,1:1  AA texte courant
     vert végétal #4F7A50 ..... 4,4:1  grands textes / interface
     terre cuite  #B8613C ..... 3,9:1  grands textes uniquement
   C'est pourquoi le texte d'accent utilise #9E4E2D, jamais #B8613C.
   ============================================================= */

:root {
  color-scheme: light;

  --ground: #f6f2e8;
  --ground-2: #efe9da;
  --ground-3: #e4dcc8;
  --ink: #1f2925;
  --ink-2: #4a554f;
  --ink-3: #6e7872;
  --rule: #d5cdb9;
  --rule-strong: #b9af97;

  --brand: #173f35;
  --brand-soft: #4f7a50;
  --accent: #b8613c;
  --accent-text: #9e4e2d;
  --link: #2e6f7e;
  --on-brand: #f6f2e8;
  --sable: #d9c5a1;

  --measure: 66ch;
  --pad: clamp(20px, 5vw, 56px);

  /* Les trois familles retenues en phase 3 sont nommées en premier.
     Tant qu'elles ne sont pas chargées (voir README, section « Polices »),
     le site utilise les polices du système — sans aucun appel à un tiers. */
  --f-display: "Petrona", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #151d1a;
    --ground-2: #1f2925;
    --ground-3: #2b3733;
    --ink: #f6f2e8;
    --ink-2: #c3ccc5;
    --ink-3: #95a09a;
    --rule: #33403a;
    --rule-strong: #4a5952;
    --brand: #f6f2e8;
    --brand-soft: #8fb98f;
    --accent: #d98a5f;
    --accent-text: #d98a5f;
    --link: #7fb6c2;
    --on-brand: #0f1613;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: 12px 20px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------------------------------------------- Mise en page */

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }

section.band { padding: clamp(44px, 6vw, 80px) 0; border-top: 1px solid var(--rule); }
section.band.first { border-top: 0; }

.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
h2.h2 {
  font-family: var(--f-display); font-size: clamp(23px, 3vw, 33px);
  line-height: 1.15; letter-spacing: -0.01em;
}
h3 { font-size: 17px; }

.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: var(--measure); }
.prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: var(--measure); }
.stack { display: flex; flex-direction: column; gap: 16px; }

.page-title {
  font-family: var(--f-display);
  font-size: clamp(33px, 5.6vw, 56px);
  line-height: 1.06; letter-spacing: -0.02em;
}
.page-head { padding: clamp(40px, 6vw, 72px) 0 4px; }

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------------------------------------------------- Boutons */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-sans); font-size: 15px; font-weight: 600;
  padding: 13px 22px; border-radius: 3px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-1 { background: var(--brand); color: var(--on-brand); }
.btn-2 { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-2:hover { border-color: var(--ink); }
.btn-3 {
  background: transparent; color: var(--accent-text);
  padding: 13px 2px; border-radius: 0; border-bottom: 1px solid currentColor;
}
.btn-3:hover { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.textlink {
  display: inline-block; font-size: 15px; font-weight: 600;
  color: var(--accent-text); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: transform .2s ease;
}
.textlink:hover { transform: translateX(3px); }

/* ----------------------------------------------------------- En-tête */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground); border-bottom: 1px solid var(--rule);
}
.masthead .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand .word {
  font-family: var(--f-display); font-weight: 700; font-size: 21px;
  line-height: 1; letter-spacing: 0.06em; color: var(--brand);
}
.mainnav > ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.mainnav a, .mainnav button {
  font-size: 15px; font-weight: 500; color: var(--ink);
  text-decoration: none; background: none; border: 0; padding: 0;
  font-family: inherit; cursor: pointer;
}
.mainnav a[aria-current="page"] { color: var(--accent-text); }
.has-sub { position: relative; }
.submenu {
  position: absolute; left: 0; top: 100%; margin-top: 12px; min-width: 250px;
  list-style: none; padding: 8px; display: none; flex-direction: column;
  background: var(--ground); border: 1px solid var(--rule);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu,
.submenu.open { display: flex; }
.submenu a { display: block; padding: 10px 12px; font-size: 14.5px; color: var(--ink-2); }

.burger {
  display: none; background: none; border: 1px solid var(--rule-strong);
  padding: 10px; border-radius: 3px; cursor: pointer; color: var(--ink);
}
.burger span { display: block; width: 16px; height: 1px; background: currentColor; }
.burger span + span { margin-top: 5px; }

#menu-mobile { display: none; border-top: 1px solid var(--rule); background: var(--ground); }
#menu-mobile.open { display: block; }
#menu-mobile ul { list-style: none; margin: 0; padding: 12px 0; }
#menu-mobile a { display: block; padding: 13px 0; font-size: 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }

@media (max-width: 1023px) {
  .mainnav { display: none; }
  .burger { display: block; }
}
@media (max-width: 639px) {
  .masthead .btn { display: none; }
}

/* --------------------------------------------------------------- Hero */

.hero { position: relative; overflow: hidden; background: var(--brand); color: var(--on-brand); }
.hero .motif { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.hero .inner { position: relative; padding: clamp(56px, 9vw, 104px) 0; max-width: 880px; }
.hero .sur { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sable); }
.hero h1 {
  font-family: var(--f-display); font-size: clamp(36px, 6.6vw, 66px);
  line-height: 1.03; letter-spacing: -0.02em; margin: 20px 0 22px;
}
.hero .chapeau { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; max-width: 58ch; opacity: .92; }
.hero .p1 { background: var(--sable); color: #173f35; }
.hero .p2 { background: transparent; color: var(--on-brand); border-color: rgba(246, 242, 232, .45); }
.hero .p3 { color: var(--sable); }
.hero .proof { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(217, 197, 161, .3); }
.hero .proof p { font-size: 15px; line-height: 1.6; max-width: 64ch; opacity: .92; }
.hero .proof b { color: var(--sable); }
.hero .reperes { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.hero .reperes li { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sable); }

/* ------------------------------------------------------------ Grilles */

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}

.hairline { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.hairline > * { background: var(--ground-2); }

/* Jalons de la méthode : 5 colonnes sur grand écran, 2 puis 1 en dessous. */
ol.jalons { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { ol.jalons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { ol.jalons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { ol.jalons { grid-template-columns: 1fr; } }

.card { border: 1px solid var(--rule); padding: 24px; background: var(--ground-2); }
.card.plain { background: transparent; }
.card h3 { font-family: var(--f-display); font-size: 20px; margin-bottom: 10px; }
.picto { display: block; margin-bottom: 18px; }
.card p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ------------------------------------------------------------ Statuts */

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 11px; border: 1px solid; border-radius: 2px;
}
.badge::before { content: ""; width: 7px; height: 7px; flex: none; }
.badge.planifie { color: var(--brand-soft); border-color: var(--brand-soft); }
.badge.planifie::before { background: currentColor; border-radius: 50%; }
.badge.preparation { color: var(--link); border-color: var(--link); }
.badge.preparation::before { background: currentColor; transform: rotate(45deg); }
.badge.futur { color: var(--ink-3); border-color: var(--rule-strong); }
.badge.futur::before { border: 1px solid currentColor; }

.etape-badge {
  display: inline-flex; font-family: var(--f-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px;
  border: 1px solid; border-radius: 2px; flex: none;
}
.etape-badge.realise { color: var(--brand-soft); border-color: var(--brand-soft); }
.etape-badge.encours { color: var(--accent-text); border-color: var(--accent-text); }
.etape-badge.avenir { color: var(--ink-3); border-color: var(--rule-strong); }

/* -------------------------------------------------- Blocs éditoriaux */

.note { border-left: 3px solid var(--accent); background: var(--ground-2); padding: 20px 22px; }
.note strong { display: block; margin-bottom: 8px; color: var(--ink); }
.note p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }

blockquote.pull {
  margin: 0; font-family: var(--f-display); font-style: italic;
  font-size: clamp(19px, 2.1vw, 25px); line-height: 1.35;
  border-left: 2px solid var(--accent); padding-left: 22px; max-width: 30ch;
}

.manifeste { background: var(--sable); color: #1f2925; padding: clamp(28px, 5vw, 56px); }
.manifeste .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.manifeste h2 { font-family: var(--f-display); font-size: clamp(24px, 3.4vw, 36px); line-height: 1.1; margin: 16px 0 18px; }
.manifeste p { font-family: var(--f-display); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.5; max-width: 54ch; }

.tile { border: 1px solid var(--rule); background: var(--ground-2); padding: 20px; }
.tile .k { font-size: 13px; line-height: 1.4; color: var(--ink-2); margin-bottom: 12px; }
.tile .v { font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tile .v.pending { font-family: var(--f-mono); font-size: 12px; font-weight: 400; line-height: 1.45; color: var(--ink-3); }
.tile .s { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-top: 10px; }

table.data { width: 100%; border-collapse: collapse; text-align: left; min-width: 520px; }
table.data th {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500; color: var(--ink-3);
  padding: 14px 16px; background: var(--ground-2); border-bottom: 1px solid var(--rule);
}
table.data td { padding: 14px 16px; vertical-align: top; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
table.data td:first-child { color: var(--ink); font-weight: 600; }

ul.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
ul.rules li {
  position: relative; padding: 14px 0 14px 24px; font-size: 15.5px; line-height: 1.6;
  color: var(--ink-2); border-bottom: 1px solid var(--rule); max-width: var(--measure);
}
ul.rules li::before { content: ""; position: absolute; left: 0; top: 23px; width: 10px; height: 1px; background: var(--accent); }

.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 16px; font-size: 14px; color: var(--ink-2); border: 1px solid var(--rule-strong); border-radius: 3px; }

.cta {
  background: var(--brand); color: var(--on-brand);
  padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.cta h2 { font-family: var(--f-display); font-size: clamp(23px, 3vw, 33px); line-height: 1.15; }
.cta p { font-size: 16px; line-height: 1.6; max-width: 56ch; opacity: .9; }
.cta .btn { background: var(--sable); color: #173f35; }
.cta .btn.ghost { background: transparent; color: var(--on-brand); border-color: rgba(246, 242, 232, .45); }

/* ------------------------------------------------- Modèle circulaire */

.cycle { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
@media (max-width: 1000px) { .cycle { grid-template-columns: 1fr; } }
.cycle .sticky { position: sticky; top: 92px; }
.cycle .frame { border: 1px solid var(--rule); background: var(--ground-2); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cycle svg { width: 100%; max-width: 320px; height: auto; }
.cycle .legend { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
ol.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
ol.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
ol.steps .n { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); padding-top: 4px; font-variant-numeric: tabular-nums; }
ol.steps li.on .n { color: var(--accent-text); }
ol.steps h3 { font-size: 16px; margin-bottom: 6px; }
ol.steps p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
#cycle-arc { transition: stroke-dashoffset .15s linear; }

/* -------------------------------------------------------- Chronologie */

ol.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
ol.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
ol.timeline li { position: relative; padding: 0 0 34px 48px; }
ol.timeline .dot { position: absolute; left: 9px; top: 6px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ground); }
ol.timeline .dot.realise { background: var(--brand-soft); }
ol.timeline .dot.encours { background: var(--accent); box-shadow: 0 0 0 4px rgba(184, 97, 60, .18); }
ol.timeline .dot.avenir { background: var(--ground); border-color: var(--rule-strong); }
ol.timeline .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
ol.timeline .n { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
ol.timeline h3 { font-size: 17px; }
ol.timeline p.t { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: var(--measure); }
ol.timeline p.c { font-family: var(--f-mono); font-size: 11px; line-height: 1.5; color: var(--ink-3); margin-top: 10px; }

/* -------------------------------------------------------------- Carte */

figure.map { margin: 0; }
figure.map .frame { border: 1px solid var(--rule); background: var(--ground-2); padding: clamp(20px, 3vw, 32px); }
figure.map svg { width: 100%; height: auto; }
figure.map figcaption { margin-top: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.halo { opacity: 0; }
.halo.in { opacity: .14; transition: opacity .8s ease; }
#route-line { stroke-dasharray: 320; stroke-dashoffset: 320; }
#route-line.in { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.45, 0, .2, 1); }

/* ---------------------------------------------------------- Ressources */

.res { padding: 24px; background: var(--ground-2); }
.res .top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.res h3 { font-size: 17px; line-height: 1.35; }
.res .ext { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 4px 8px; flex: none; }
.res .meta { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); margin-bottom: 12px; }
.res p.r { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: var(--measure); margin-bottom: 16px; }
.res a.src { font-size: 14px; font-weight: 600; color: var(--link); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* --------------------------------------------------------- Actualités */

.post { padding: 26px; background: var(--ground-2); display: flex; flex-direction: column; gap: 12px; height: 100%; }
.post .theme { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.post h2 { font-family: var(--f-display); font-size: 21px; line-height: 1.3; }
.post h2 a { color: var(--ink); text-decoration: none; }
.post p.x { font-size: 15px; line-height: 1.6; color: var(--ink-2); flex: 1; }
.post .meta { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }

article.long { max-width: var(--measure); }
article.long h1 { font-family: var(--f-display); font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 14px; }
article.long h2 { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 27px); line-height: 1.2; margin: 14px 0 14px; }
article.long p { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
article.long .body { display: flex; flex-direction: column; gap: 26px; }
article.long .sec { display: flex; flex-direction: column; gap: 16px; }
.sources { border: 1px solid var(--rule); background: var(--ground-2); padding: 24px; margin-top: 44px; }
.sources .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sources a { font-size: 14.5px; line-height: 1.4; color: var(--link); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------- Contact */

a.ccard { padding: 26px; background: var(--ground-2); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease; }
a.ccard:hover { transform: translateY(-2px); }
a.ccard .t { font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.3; }
a.ccard .d { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
a.ccard .go { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-top: 6px; }

.copybox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; padding: 20px 22px; border: 1px solid var(--rule); }
.copybox .adr { font-family: var(--f-mono); font-size: 16px; color: var(--ink); }
.copybox button {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--rule-strong); background: none; color: var(--ink-2);
  border-radius: 2px; cursor: pointer;
}
.copybox button:hover { border-color: var(--ink); color: var(--ink); }

/* ------------------------------------------------------------ Équipe */

.member { border: 1px solid var(--rule); background: var(--ground-2); padding: 24px; }
.member .n { font-family: var(--f-display); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.member .r { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* -------------------------------------------------------------- Pied */

footer.site { background: var(--ground-2); border-top: 1px solid var(--rule); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: clamp(40px, 6vw, 64px) 0; }
@media (max-width: 820px) { footer.site .cols { grid-template-columns: 1fr; gap: 32px; } }
footer.site .word { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: .06em; color: var(--brand); }
footer.site .base { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
footer.site .devise { margin-top: 20px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 38ch; }
footer.site .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
footer.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site nav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
footer.site .statut { padding: 22px 0; border-top: 1px solid var(--rule); }
footer.site .statut p { font-size: 13px; line-height: 1.6; color: var(--ink-3); max-width: 84ch; }
footer.site .legal { padding: 22px 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer.site .legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site .legal a, footer.site .legal p { font-size: 13px; color: var(--ink-3); text-decoration: none; }

/* -------------------------------------------------------- Animations */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1); }

#mark-hero .ring { stroke-dasharray: 88 176; }
#mark-hero.play .ring { stroke-dasharray: 264; stroke-dashoffset: 264; animation: agr-ring 1.85s cubic-bezier(.45, 0, .2, 1) .25s forwards; }
#mark-hero .stem, #mark-hero .leafL, #mark-hero .leafR { opacity: 0; }
#mark-hero.play .stem { opacity: 1; stroke-dasharray: 38; stroke-dashoffset: 38; animation: agr-stem .85s cubic-bezier(.4, 0, .2, 1) .38s forwards; }
#mark-hero.play .leafL { transform-box: fill-box; transform-origin: 100% 100%; animation: agr-leaf .6s cubic-bezier(.3, 1.25, .5, 1) 1.02s forwards; }
#mark-hero.play .leafR { transform-box: fill-box; transform-origin: 0% 100%; animation: agr-leaf .6s cubic-bezier(.3, 1.25, .5, 1) 1.28s forwards; }
#mark-hero.play .seed { transform-box: fill-box; transform-origin: 50% 100%; animation: agr-seed .5s cubic-bezier(.3, 1.35, .5, 1) both; }

@keyframes agr-ring { to { stroke-dashoffset: 0; } }
@keyframes agr-stem { to { stroke-dashoffset: 0; } }
@keyframes agr-leaf { from { transform: scale(.12) rotate(-16deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes agr-seed { from { transform: scale(.25); opacity: 0; } to { transform: none; opacity: 1; } }

/* L'utilisateur a demandé moins d'animation : tout est affiché à l'état final. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .halo { opacity: .14; }
  #route-line { stroke-dashoffset: 0; }
}


/* =============================================================
   Photographies
   ============================================================= */

.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 45%; pointer-events: none;
}
.hero-voile {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(102deg, rgba(10, 28, 23, .94) 0%, rgba(13, 36, 30, .88) 34%, rgba(20, 55, 46, .58) 72%, rgba(23, 63, 53, .34) 100%),
    linear-gradient(to top, rgba(10, 28, 23, .55), rgba(10, 28, 23, 0) 45%);
}
@media (prefers-color-scheme: dark) {
  .hero-voile {
    background:
      linear-gradient(102deg, rgba(5, 14, 11, .95) 0%, rgba(7, 20, 16, .90) 34%, rgba(9, 26, 21, .68) 72%, rgba(10, 30, 25, .48) 100%),
      linear-gradient(to top, rgba(5, 14, 11, .6), rgba(5, 14, 11, 0) 45%);
  }
}
.hero { background: #0f2620; }

figure.bandeau { margin: 0 0 clamp(28px, 4vw, 44px); }
figure.bandeau img {
  display: block; width: 100%; height: clamp(180px, 30vw, 330px);
  object-fit: cover; object-position: center 42%; border: 1px solid var(--rule);
}
figure.bandeau figcaption,
p.credit-photo,
.galerie figcaption {
  margin-top: 10px; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

.galerie {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; margin-top: 36px;
}
@media (max-width: 820px) { .galerie { grid-template-columns: 1fr; } }
.galerie figure { margin: 0; }
.galerie img {
  display: block; width: 100%; height: 210px; object-fit: cover; object-position: center 38%;
  border: 1px solid var(--rule);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.galerie figure:hover img { transform: scale(1.02); }
.galerie figcaption { text-transform: none; letter-spacing: .01em; font-size: 12.5px; line-height: 1.45; }
p.credit-photo { margin-top: 18px; }

/* =============================================================
   Carte du Sénégal
   ============================================================= */

figure.map svg text { font-family: var(--f-sans); }
figure.map .frame { background: var(--ground); }
figure.map svg { display: block; }

/* =============================================================
   Cercle interactif du modèle
   ============================================================= */

.cnode-link { cursor: pointer; }
.cnode-link .cnode { transition: r .2s ease, fill .2s ease, stroke .2s ease; }
.cnode-link .cnode-num { fill: var(--ink-3); font-family: var(--f-mono); transition: fill .2s ease; }
.cnode-link:hover .cnode,
.cnode-link:focus-visible .cnode { r: 9; fill: var(--accent); stroke: var(--accent); }
.cnode-link:hover .cnode-num,
.cnode-link:focus-visible .cnode-num { fill: var(--accent-text); font-weight: 600; }
.cnode-link:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

ol.steps li { scroll-margin-top: 96px; }
ol.steps li:target { background: var(--ground-2); box-shadow: -14px 0 0 var(--ground-2), 14px 0 0 var(--ground-2); }
ol.steps li:target .n { color: var(--accent-text); font-weight: 600; }
