/* ============================================================
   PBCA — Primate & Biodiversity Conservation Alliance
   Design system : Scientific Conservation + African Fieldwork
   + Geospatial Intelligence
   ============================================================ */

:root {
  /* Palette — forêt profonde, olive, crème, sauge, minéral */
  --forest: #0c310a;
  --forest-2: #123d10;
  --olive: #57772e;
  --olive-deep: #3d4d20;
  --cream: #fffdf6;
  --cream-2: #faf7ed;
  --sage: #d5e798;
  --border: #d0d4c8;
  --stone: #66615a;
  --clay: #85827e;
  --ink: #0c310a;

  /* Typographie fluide */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --fs-hero: clamp(2.6rem, 6.2vw, 5.4rem);
  --fs-h1: clamp(2.2rem, 4.6vw, 3.9rem);
  --fs-h2: clamp(1.8rem, 3.4vw, 2.9rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.6rem);
  --fs-lead: clamp(1.08rem, 1.6vw, 1.3rem);
  --fs-body: clamp(1rem, 1.2vw, 1.08rem);
  --fs-small: 0.86rem;
  --fs-label: 0.72rem;

  /* Espacement fluide */
  --pad-section: clamp(4rem, 9vw, 8.5rem);
  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --gap: clamp(1.25rem, 2.5vw, 2.5rem);

  --radius: clamp(16px, 0.75vw + 13px, 24px);
  --radius-sm: 12px;

  --ease-1: cubic-bezier(0.33, 0, 0, 1);
  --ease-2: cubic-bezier(0.33, 0, 0.66, 1);
  --ease-3: cubic-bezier(0.25, 0, 0, 0.75);

  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: clamp(-0.12rem, -0.13vw, -0.03rem);
  color: var(--forest); /* un titre = une seule couleur */
  text-align: center; /* titres centrés, textes alignés à gauche */
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--sage); color: var(--forest); }

/* Accessibilité focus */
:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--forest); color: var(--cream);
  padding: 0.75rem 1.25rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Utilitaires ---------- */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--narrow { max-width: 880px; }

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.mono-label::before {
  content: "";
  width: 2.2em; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--forest-2); }
.muted { color: var(--stone); }

.section { padding-block: var(--pad-section); }
.section--olive { background: var(--olive-deep); color: var(--cream); }
.section--olive h1, .section--olive h2, .section--olive h3 { color: var(--cream); }
.section--olive .lead { color: rgba(255, 253, 246, 0.82); }
.section--olive .mono-label { color: var(--sage); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--cream); }
.section--forest .lead { color: rgba(255, 253, 246, 0.82); }
.section--beige { background: var(--cream-2); }

.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
.section-head h2 { margin-top: 0.9rem; }
.section-head .lead { margin-top: 1.2rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0;
  border-radius: 104px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: 0;
  transition: transform 0.3s var(--ease-1), background-color 0.3s var(--ease-2);
}
.btn .btn-text {
  background: var(--olive); color: var(--cream);
  padding: 0.85em 1.6em; border-radius: 104px 0 0 104px;
  transition: transform 0.3s var(--ease-1);
}
.btn .btn-icon {
  background: var(--olive); color: var(--cream);
  width: 2.9em; align-self: stretch;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0 104px 104px 0;
  border-left: 1px solid rgba(255,253,246,0.25);
}
.btn .btn-icon svg { transition: transform 0.3s var(--ease-1); }
.btn:hover .btn-text { transform: scale(1.03); }
.btn:hover .btn-icon svg { transform: translateX(4px); }

.btn--ghost .btn-text, .btn--ghost .btn-icon {
  background: transparent; color: var(--forest);
  box-shadow: inset 0 0 0 1.5px var(--forest);
}
.btn--ghost .btn-icon { border-left: 0; }
.btn--light .btn-text, .btn--light .btn-icon {
  background: var(--cream); color: var(--forest);
}
.btn--light .btn-icon { border-left-color: rgba(12,49,10,0.18); }
.btn--outline-light .btn-text, .btn--outline-light .btn-icon {
  background: transparent; color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(255,253,246,0.75);
}
.btn--outline-light .btn-icon { border-left: 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 600; color: var(--olive);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.link-arrow svg { transition: transform 0.3s var(--ease-1); }
.link-arrow:hover { border-color: var(--olive); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: transform 0.6s var(--ease-1), background-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: var(--cream-2);
  box-shadow: 0 1px 0 var(--border);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  width: 100%; max-width: 1440px; margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  color: var(--forest); letter-spacing: -0.02em; line-height: 1;
}
.brand-name small {
  display: block; font-family: var(--font-mono); font-size: 0.56rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive);
  margin-top: 3px; font-weight: 400;
}
.site-header:not(.is-scrolled) .brand-name { color: var(--cream); }
.site-header:not(.is-scrolled) .brand-name small { color: var(--sage); }
.site-header:not(.is-scrolled).on-light .brand-name { color: var(--forest); }
.site-header:not(.is-scrolled).on-light .brand-name small { color: var(--olive); }

.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--cream);
  position: relative; padding-block: 0.35rem;
  transition: color 0.3s;
}
.site-header.is-scrolled .main-nav a,
.site-header.on-light .main-nav a { color: var(--forest); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease-2);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}
.main-nav a[aria-current="page"] { font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.lang-switch {
  display: flex; border-radius: 104px; overflow: hidden;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(255,253,246,0.55);
}
.site-header.is-scrolled .lang-switch,
.site-header.on-light .lang-switch { box-shadow: inset 0 0 0 1px var(--border); }
.lang-switch a {
  padding: 0.42em 0.85em; color: var(--cream); opacity: 0.75;
  transition: opacity 0.2s, background-color 0.2s, color 0.2s;
}
.site-header.is-scrolled .lang-switch a,
.site-header.on-light .lang-switch a { color: var(--forest); }
.lang-switch a.is-active { background: var(--olive); color: var(--cream); opacity: 1; }

.btn--nav { font-size: 0.85rem; }
.btn--nav .btn-text { padding: 0.65em 1.3em; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 130;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; margin: 5px auto;
  background: var(--cream); transition: transform 0.3s var(--ease-1), background-color 0.3s;
}
.site-header.is-scrolled .nav-toggle span,
.site-header.on-light .nav-toggle span { background: var(--forest); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
  background: var(--forest);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 26s var(--ease-2) forwards;
  transform-origin: 50% 40%;
}
@keyframes kenburns {
  from { transform: scale(1.14); }
  to { transform: scale(1.0); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(6, 26, 5, 0.88) 0%, rgba(6, 26, 5, 0.35) 45%, rgba(6, 26, 5, 0.25) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1320px; margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) var(--pad-x) clamp(3rem, 7vw, 6rem);
  color: var(--cream);
}
.hero-content .mono-label { color: var(--sage); }
.hero h1 {
  font-size: var(--fs-hero);
  color: var(--cream);
  max-width: 15ch;
  margin: 1.2rem auto 0;
}
.hero .lead {
  color: rgba(255, 253, 246, 0.86);
  max-width: 56ch; margin-top: 1.4rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.hero-intro-anim, .hero-intro-anim-delayed {
  opacity: 0; transform: translateY(28px);
  animation: rise 1.1s var(--ease-1) forwards;
}
.hero-intro-anim-delayed { animation-delay: 0.28s; }
.hero-intro-anim-late { opacity: 0; transform: translateY(28px); animation: rise 1.1s var(--ease-1) 0.55s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Carte de données flottante du hero */
.hero-data {
  position: absolute; right: var(--pad-x); bottom: clamp(3rem, 7vw, 6rem); z-index: 3;
  background: rgba(12, 49, 10, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(213, 231, 152, 0.22);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  color: var(--cream);
  width: min(300px, 42vw);
}
.hero-data .mono-label { color: var(--sage); margin-bottom: 0.7rem; }
.hero-data .mono-label::before { display: none; }
.hero-data-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.72rem;
  padding-block: 0.35rem; border-top: 1px solid rgba(213,231,152,0.14);
}
.hero-data-row b { font-weight: 500; color: var(--sage); }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage); position: relative; display: inline-block;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--sage);
  animation: pulse 2.4s var(--ease-2) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 3; color: rgba(255,253,246,0.7);
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.22em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--sage), transparent);
  animation: dropline 2.2s var(--ease-2) infinite;
}
@keyframes dropline {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Bandeau défilant ---------- */
.marquee {
  background: var(--forest); color: var(--cream);
  overflow: hidden; padding-block: 0.9rem;
  border-block: 1px solid rgba(213,231,152,0.15);
}
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.marquee-track span { display: flex; align-items: center; gap: 3rem; white-space: nowrap; }
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section carte Congo Basin ---------- */
.map-section { position: relative; overflow: clip; }
.map-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--forest);
  aspect-ratio: 1 / 1;
  box-shadow: 0 30px 60px -30px rgba(12, 49, 10, 0.45);
}
.map-frame svg { width: 100%; height: 100%; display: block; }
.basin-outline {
  stroke: var(--sage); stroke-width: 1.6; fill: rgba(213, 231, 152, 0.07);
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
}
.in-view .basin-outline { animation: draw 3.2s var(--ease-2) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.river-path {
  stroke: rgba(255, 253, 246, 0.65); stroke-width: 1.1; fill: none;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
}
.in-view .river-path { animation: draw 3.4s var(--ease-2) 0.9s forwards; }
.map-point { opacity: 0; }
.in-view .map-point { animation: fadein 0.8s ease forwards; }
.in-view .map-point:nth-of-type(1) { animation-delay: 1.4s; }
.in-view .map-point:nth-of-type(2) { animation-delay: 1.7s; }
.in-view .map-point:nth-of-type(3) { animation-delay: 2.0s; }
.in-view .map-point:nth-of-type(4) { animation-delay: 2.3s; }
@keyframes fadein { to { opacity: 1; } }
.map-point circle.ring {
  fill: none; stroke: var(--sage); stroke-width: 1;
  transform-origin: center; transform-box: fill-box;
  animation: ringpulse 2.8s ease-out infinite;
}
@keyframes ringpulse {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.map-caption {
  position: absolute; left: 1.1rem; bottom: 1rem;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.14em; color: rgba(255,253,246,0.66);
  text-transform: uppercase;
}

.reason-list { list-style: none; display: grid; gap: 0; }
.reason-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
  padding: 1.4rem 0; border-top: 1px solid var(--border);
  align-items: start;
}
.reason-list li:last-child { border-bottom: 1px solid var(--border); }
.reason-num {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--olive);
  padding-top: 0.45em; letter-spacing: 0.1em;
}
.reason-list h3 { font-size: var(--fs-h3); margin-bottom: 0.35rem; }
.reason-list p { color: var(--stone); font-size: 0.98rem; }
.reason-list strong { color: var(--forest); }

/* ---------- Modèle / piliers ---------- */
.model-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.model-item {
  background: var(--cream); padding: clamp(1.6rem, 2.6vw, 2.4rem);
  transition: background-color 0.35s var(--ease-2);
  position: relative;
}
.model-item:hover { background: var(--cream-2); }
.model-item .model-idx {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
  color: var(--olive); display: block; margin-bottom: 1.6rem;
}
.model-item h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.model-item p { color: var(--stone); font-size: 0.96rem; }
.model-item svg.model-ic { width: 30px; height: 30px; stroke: var(--olive); margin-bottom: 1.1rem; }

/* ---------- Section Science / GIS ---------- */
.science-flow { position: relative; }
.flow-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  counter-reset: step; position: relative;
}
.flow-steps::before {
  content: ""; position: absolute; top: 26px; left: 4%; right: 4%;
  height: 1px; background: rgba(213, 231, 152, 0.28); z-index: 0;
}
.flow-step { position: relative; z-index: 1; }
.flow-step .flow-node {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--forest); border: 1.5px solid var(--sage);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--sage);
  margin: 0 auto 1.3rem;
  transition: transform 0.35s var(--ease-1), box-shadow 0.35s;
}
.flow-step:hover .flow-node { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(213,231,152,0.12); }
.flow-step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.flow-step p { color: rgba(255, 253, 246, 0.72); font-size: 0.93rem; }

.data-panel {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.data-viz {
  background: rgba(6, 26, 5, 0.55);
  border: 1px solid rgba(213, 231, 152, 0.18);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 2.2rem);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.data-viz .mono-label { color: var(--sage); margin-bottom: 1rem; }
.data-viz .mono-label::before { display: none; }
.sparkline { width: 100%; height: auto; display: block; }
.sparkline .line {
  stroke: var(--sage); stroke-width: 2; fill: none;
  stroke-dasharray: 600; stroke-dashoffset: 600;
}
.in-view .sparkline .line { animation: draw 2.4s var(--ease-2) forwards; }
.sparkline .dot { fill: var(--sage); opacity: 0; }
.in-view .sparkline .dot { animation: fadein 0.5s ease forwards; }
.in-view .sparkline .dot:nth-of-type(2) { animation-delay: 0.5s; }
.in-view .sparkline .dot:nth-of-type(3) { animation-delay: 0.9s; }
.in-view .sparkline .dot:nth-of-type(4) { animation-delay: 1.3s; }
.in-view .sparkline .dot:nth-of-type(5) { animation-delay: 1.7s; }
.data-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.data-tag {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  border: 1px solid rgba(213, 231, 152, 0.3); color: var(--sage);
  padding: 0.4em 0.9em; border-radius: 104px; text-transform: uppercase;
}

/* ---------- Field stories ---------- */
.stories-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.story-card { position: relative; }
.story-card:nth-child(1) { grid-column: span 7; }
.story-card:nth-child(2) { grid-column: span 5; margin-top: clamp(2rem, 6vw, 6rem); }
.story-card:nth-child(3) { grid-column: span 5; }
.story-card:nth-child(4) { grid-column: span 7; margin-top: calc(clamp(2rem, 6vw, 6rem) * -0.6); }
.story-media {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; position: relative;
}
.story-card:nth-child(1) .story-media, .story-card:nth-child(4) .story-media { aspect-ratio: 16 / 10; }
.story-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-1);
}
.story-card:hover .story-media img { transform: scale(1.045); }
.story-loc {
  position: absolute; left: 1rem; top: 1rem;
  background: rgba(6, 26, 5, 0.6); backdrop-filter: blur(8px);
  color: var(--cream); font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.45em 0.95em; border-radius: 104px;
  border: 1px solid rgba(213, 231, 152, 0.25);
}
.story-body { padding-top: 1.3rem; }
.story-body h3 { margin-bottom: 0.5rem; }
.story-body p { color: var(--stone); font-size: 0.97rem; margin-bottom: 0.9rem; }

/* ---------- Section communauté ---------- */
.community-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.community-media { position: relative; border-radius: var(--radius); overflow: hidden; }
.community-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.6; }
.community-quote {
  margin-top: 2rem; padding-left: 1.4rem;
  border-left: 2px solid var(--sage);
  font-family: var(--font-display); font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.4; color: var(--cream); font-style: italic;
}
.check-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: baseline; color: rgba(255,253,246,0.85); }
.check-list li::before {
  content: "→"; color: var(--sage); font-family: var(--font-mono); flex-shrink: 0;
}

/* ---------- Impact / compteurs ---------- */
.impact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(213, 231, 152, 0.2);
  border: 1px solid rgba(213, 231, 152, 0.2);
  border-radius: var(--radius); overflow: hidden;
}
.impact-cell {
  background: var(--forest); padding: clamp(2rem, 3.5vw, 3rem);
  text-align: left;
}
.impact-cell .impact-num {
  font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.2rem);
  color: var(--sage); line-height: 1; letter-spacing: -0.02em;
  font-weight: 500;
}
.impact-cell .impact-label {
  margin-top: 0.9rem; color: rgba(255,253,246,0.78);
  font-size: 0.95rem;
}
.impact-note {
  margin-top: 1.6rem; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.1em; color: rgba(213, 231, 152, 0.6); text-transform: uppercase;
}

/* ---------- Pages intérieures ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + clamp(4rem, 9vw, 7.5rem)) 0 clamp(3rem, 6vw, 5rem);
  background: var(--forest); color: var(--cream); overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(213, 231, 152, 0.13) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.5;
}
.page-hero h1 { color: var(--cream); max-width: 18ch; margin: 1.1rem auto 0; }
.page-hero .lead { color: rgba(255,253,246,0.82); max-width: 62ch; margin-top: 1.3rem; }
.page-hero .mono-label { color: var(--sage); }
.page-hero--media { padding: 0; min-height: 62svh; display: flex; align-items: flex-end; }
.page-hero--media .hero-media { z-index: 0; }
.page-hero--media::before { z-index: 1; background: none; }
.page-hero--media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,26,5,0.9), rgba(6,26,5,0.3) 60%);
}
.page-hero--media .container { position: relative; z-index: 2; padding-block: clamp(3rem, 6vw, 5rem); }

.prose { max-width: 70ch; }
.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--forest-2); }

.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 3rem; }
.value-cell {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.4rem 1.2rem; background: var(--cream);
}
.value-cell b { display: block; font-family: var(--font-display); font-weight: 600; color: var(--forest); margin-bottom: 0.4rem; }
.value-cell span { font-size: 0.88rem; color: var(--stone); }

/* Piliers (page programmes) */
.pillar {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--border);
}
.pillar:first-of-type { border-top: 0; }
.pillar-media { grid-column: span 5; border-radius: var(--radius); overflow: hidden; }
.pillar-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s var(--ease-1); }
.pillar:hover .pillar-media img { transform: scale(1.04); }
.pillar-body { grid-column: span 7; }
.pillar:nth-child(even) .pillar-media { order: 2; }
.pillar:nth-child(even) .pillar-body { order: 1; }
.pillar-body .mono-label { margin-bottom: 0.9rem; }
.pillar-body h2, .pillar-body h3 { margin-bottom: 0.9rem; }
.pillar-body p { color: var(--stone); max-width: 58ch; }

/* Actualités */
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.6rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.5em 1.1em; border-radius: 104px;
  border: 1px solid var(--border); background: transparent; color: var(--stone);
  cursor: pointer; transition: all 0.25s var(--ease-2);
}
.chip:hover { border-color: var(--olive); color: var(--forest); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 2.6vw, 2.2rem); }
.news-card { display: flex; flex-direction: column; }
.news-card .story-media { aspect-ratio: 16 / 11; }
.news-card.is-hidden { display: none; }
.news-meta {
  display: flex; gap: 1rem; align-items: center;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--olive); margin-top: 1.1rem;
}
.news-empty {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3.5rem); color: var(--stone);
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em;
}

/* Get involved */
.involve-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
.involve-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.8rem, 3vw, 2.6rem); background: var(--cream);
  transition: border-color 0.3s, transform 0.35s var(--ease-1);
}
.involve-card:hover { border-color: var(--olive); transform: translateY(-4px); }
.involve-card h3 { margin-bottom: 0.7rem; }
.involve-card p { color: var(--stone); margin-bottom: 1.2rem; }
.pay-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.pay-tag {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  border: 1px solid rgba(213,231,152,0.35); color: var(--cream);
  padding: 0.5em 1.1em; border-radius: 104px;
  background: rgba(255,253,246,0.06);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); }
.contact-info-block { margin-top: 2rem; display: grid; gap: 1.6rem; }
.contact-line .mono-label { margin-bottom: 0.35rem; }
.contact-line a { font-family: var(--font-display); font-size: 1.25rem; color: var(--forest); border-bottom: 1px solid var(--border); transition: border-color 0.3s; }
.contact-line a:hover { border-color: var(--olive); }
.contact-line p { color: var(--stone); }

.form { display: grid; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive);
  margin-bottom: 0.5rem;
}
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  color: var(--ink); background: var(--cream);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.85em 1.05em;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(87, 119, 46, 0.15);
}
.field textarea { min-height: 160px; resize: vertical; }
.field .field-error {
  display: none; color: #8f2d1e; font-size: 0.82rem; margin-top: 0.4rem;
}
.field.has-error input, .field.has-error textarea { border-color: #8f2d1e; }
.field.has-error .field-error { display: block; }
.form-status {
  display: none; border-radius: var(--radius-sm); padding: 1rem 1.3rem; font-size: 0.95rem;
}
.form-status.is-success { display: block; background: var(--sage); color: var(--forest); }
.form-status.is-error { display: block; background: #f5e0da; color: #8f2d1e; }

/* ---------- CTA final ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: var(--cream); max-width: 20ch; margin-inline: auto; }
.cta-band .lead { color: rgba(255,253,246,0.8); max-width: 52ch; margin: 1.2rem auto 0; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: var(--cream); }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(255,253,246,0.72); font-size: 0.93rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sage); font-weight: 500;
  margin-bottom: 1.2rem;
  text-align: left; /* le pied de page reste aligné à gauche */
}
.footer-col ul { list-style: none; display: grid; gap: 0.65rem; }
.footer-col a, .footer-col li { color: rgba(255,253,246,0.75); font-size: 0.93rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(213,231,152,0.15);
  padding-block: 1.4rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: rgba(255,253,246,0.55); text-transform: uppercase;
}

/* ---------- Reveal au scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-1), transform 0.9s var(--ease-1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* Titres centrés : les labels associés suivent, les textes restent à gauche */
.hero-content .mono-label,
.page-hero .mono-label,
.map-grid .mono-label,
.pillar-body .mono-label,
.community-split .mono-label,
.data-panel .mono-label { display: flex; justify-content: center; }
.map-grid .mono-label::before,
.pillar-body .mono-label::before,
.community-split .mono-label::before,
.data-panel .mono-label::before { display: none; }
.value-cell b { text-align: center; }
.value-cell span { display: block; text-align: left; }

/* Parallax doux sur images plein cadre */
.parallax-img { overflow: hidden; }
.parallax-img img { transform: scale(1.12); will-change: transform; }

/* ---------- Diviseur SVG animé ---------- */
.divider-svg { display: block; width: 100%; height: 60px; color: var(--olive); }
.divider-svg path {
  stroke: currentColor; stroke-width: 1.4; fill: none;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.in-view .divider-svg path { animation: draw 2.6s var(--ease-2) forwards; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-steps::before { display: none; }
  .data-panel { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero { flex-wrap: wrap; align-content: flex-end; }
  .hero-data { position: static; width: auto; flex-basis: 100%; margin: 2rem 0 0; }
  .main-nav, .header-actions .btn--nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.menu-open { background: var(--forest); }
  .site-header.menu-open .nav-toggle span { background: var(--cream); }
  .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav.is-open {
    display: flex; position: fixed; inset: 0; z-index: 120;
    background: var(--forest); flex-direction: column;
    align-items: flex-start; justify-content: center;
    padding: var(--pad-x); gap: 1.4rem;
  }
  .main-nav.is-open a { font-family: var(--font-display); font-size: 2rem; color: var(--cream) !important; }
  .map-grid, .community-split, .contact-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .story-card:nth-child(n) { grid-column: span 12; margin-top: 0; }
  .pillar-media, .pillar-body { grid-column: span 12; }
  .pillar:nth-child(even) .pillar-media { order: 0; }
  .pillar:nth-child(even) .pillar-body { order: 1; }
  .involve-grid, .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .model-grid, .values-grid, .news-grid, .flow-steps { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .hero-media img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .basin-outline, .river-path { stroke-dashoffset: 0; }
  .map-point, .sparkline .dot { opacity: 1; }
  .sparkline .line { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
}
