/* =====================================================================
   ADCVI - Site statique HTML/CSS/JS
   Design vert sobre + Inter (sans-serif neutre, institutionnel sans serif)
   ===================================================================== */

:root {
  /* Neutres - blanc + nuances de vert (aucun beige) */
  --bg: #ffffff;
  --surface: #eef4ef;
  --surface-2: #e0ebe0;
  --ink: #0d1f15;
  --ink-soft: #1c2a21;
  --muted: #5f6b62;
  --muted-soft: #9aa89e;
  --line: #dde7dd;
  --line-mid: #c3d2c4;

  /* Vert ADCVI */
  --leaf: #2d6a3e;
  --leaf-deep: #1f4d2c;
  --leaf-soft: #d8e8d0;
  --leaf-bright: #4a9d5f;
  /* Vert du logo officiel - sert d'accent sur fond sombre (photos, footer),
     où --leaf-bright manquait de contraste. */
  --leaf-logo: #008642;
  --leaf-on-dark: #8fe9a8;

  /* Terre */
  --soil: #8b5e3c;
  --terracotta: #c4612d;
  --live: #4a9d5f;

  /* Typographie - Inter partout (pas de serif) */
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1600px;
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

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

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; border-radius: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--leaf); color: var(--bg); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-mid); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-soft); }

/* =====================================================================
   Layout
   ===================================================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding-inline: 2.5rem; }
}

.section { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }
.section-lg { padding-block: 7rem; }

.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.bg-ink { background: var(--ink); color: var(--bg); }
.bg-leaf { background: var(--leaf); color: var(--bg); }
.bg-leaf-soft { background: var(--leaf-soft); }

.border-top { border-top: 1px solid var(--line); }
.border-bottom { border-bottom: 1px solid var(--line); }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: inline; } }

/* =====================================================================
   Typographie utilitaires - TOUT en Inter, plus de serif
   ===================================================================== */

.display-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}
.display-1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}

/* Eyebrow - plus discret, faible letter-spacing */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--leaf-deep);
}
.eyebrow-sm {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow-line::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--leaf);
}

.lead { font-size: 1.0625rem; line-height: 1.65; color: var(--muted); }
.lead-lg { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-soft); }

.italic-thin { font-style: italic; font-weight: 400; }
.leaf-accent { color: var(--leaf); }
.bright-accent { color: var(--leaf-bright); }
.terracotta-accent { color: var(--terracotta); }

/* =====================================================================
   Boutons
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  height: 2.75rem;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn-lg { height: 3.25rem; padding-inline: 2rem; font-size: 15px; }
.btn-sm { height: 2.25rem; padding-inline: 1rem; font-size: 13px; }
.btn-primary { background: var(--leaf); color: var(--bg); }
.btn-primary:hover { background: var(--leaf-deep); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--terracotta); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--leaf); color: var(--bg); border-color: var(--leaf); }
.btn-inverse { background: var(--bg); color: var(--ink); }
.btn-inverse:hover { background: var(--leaf-soft); color: var(--leaf-deep); }

/* =====================================================================
   Effets signature
   ===================================================================== */

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--live);
  border-radius: 9999px;
  position: relative;
  flex-shrink: 0;
}
.live-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 9999px;
  background: var(--live);
  animation: live-pulse 2s ease-out infinite;
}
@keyframes live-pulse {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.6); }
}
/* Sur un hero en photo, le point « live » doit rester lisible sur l'image :
   vert vif + halo blanc pour le détacher du fond. */
.section-hero-photo .live-dot {
  background: #7cf49a;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2), 0 0 10px rgba(124, 244, 154, 0.75);
}
.section-hero-photo .live-dot::after {
  background: #7cf49a;
}

.link-u {
  position: relative;
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}
.link-u:hover { opacity: 0.7; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98),
              transform 0.7s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   Header (navbar fixe - fond plein, pas d'effets compliqués)
   ===================================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(13, 31, 21, 0.06);
}
.site-header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .site-header-inner { padding-inline: 2rem; } }

.site-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--leaf-deep);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
/* Logo officiel ADCVI - wordmark vert sur fond transparent */
.site-brand img {
  height: 50px;
  width: auto;
  display: block;
}
@media (max-width: 1199px) { .site-brand img { height: 44px; } }
@media (max-width: 1023px) { .site-brand img { height: 40px; } }
@media (max-width: 479px) { .site-brand img { height: 34px; } }

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 1024px) { .site-nav { display: flex; } }

.site-nav > a,
.site-nav .nav-dropdown > button {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  padding: 0.5rem 0.875rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
}
.site-nav > a:hover,
.site-nav .nav-dropdown > button:hover {
  background: var(--surface);
}
/* État actif : fond plein vert soft, texte vert foncé - pas d'underline.
   On couvre 3 cas : lien direct actif (a.is-active), dropdown dont une
   page enfant est active (has-active), et dropdown actuellement ouvert
   par clic (is-open). */
.site-nav > a.is-active,
.site-nav .nav-dropdown.has-active > button,
.site-nav .nav-dropdown.is-open > button {
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}

/* Dropdown nav */
.nav-dropdown { position: relative; }
.nav-dropdown > button .chev {
  width: 12px; height: 12px;
  transition: transform 0.2s;
}
.nav-dropdown.is-open > button .chev {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(13, 31, 21, 0.08);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
/* Click-only : le menu ne s'ouvre qu'au clic, pas au hover.
   Sinon le menu disparaît dès qu'on bouge la souris pour le cliquer. */
.nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-menu a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 0.625rem 0.875rem;
  display: block;
  transition: background-color 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--surface);
  color: var(--leaf-deep);
}
.nav-dropdown-menu a.is-active {
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}

.site-header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-cta {
  display: none;
  align-items: center;
  height: 2.5rem;
  padding-inline: 1.125rem;
  background: var(--leaf);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--leaf);
  transition: background 0.2s;
}
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }
.nav-cta:hover { background: var(--leaf-deep) !important; border-color: var(--leaf-deep) !important; color: var(--bg) !important; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle:hover { background: var(--ink) !important; color: var(--bg) !important; }

/* Nav mobile drawer */
.nav-mobile {
  display: none;
  position: fixed;
  inset-inline: 0;
  top: var(--header-h);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  z-index: 49;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(13, 31, 21, 0.08);
}
.nav-mobile.is-open { display: block; }
.nav-mobile-inner {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile a,
.nav-mobile button {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
}
.nav-mobile a:hover,
.nav-mobile button:hover { background: var(--surface); }
.nav-mobile a.is-active { background: var(--leaf-soft); color: var(--leaf-deep); }
.nav-mobile-group { border-bottom: 1px solid var(--line); padding-bottom: 0.25rem; margin-bottom: 0.25rem; }
.nav-mobile-group:last-child { border-bottom: none; }
.nav-mobile-sub {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  margin-bottom: 0.5rem;
}
.nav-mobile-sub.is-open { display: flex; }
.nav-mobile-sub a { font-size: 14px; color: var(--muted); padding-block: 0.625rem; }
.nav-mobile-sub a:hover { color: var(--ink); }
.nav-mobile-cta {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

/* =====================================================================
   Main + Footer
   ===================================================================== */

.site-main { padding-top: var(--header-h); }
/* Le hero en photo démarre sous le header (fond blanc), il n'est donc
   plus rogné par celui-ci et le sujet de la photo reste visible. */
.site-main.has-hero-fullbleed { padding-top: var(--header-h); }

.site-footer {
  background: var(--ink);
  color: var(--bg);
  border-top: 4px solid var(--leaf);
}

.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
}
@media (min-width: 1024px) { .site-footer-inner { padding: 5rem 2.5rem 2.5rem; } }
.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .site-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer-brand { max-width: 22rem; }
/* Logo officiel en pied de page - le wordmark est vert, on le passe en blanc
   pour qu'il tienne sur le fond sombre du footer. */
.site-footer-logo {
  display: inline-block;
  max-width: 17rem;
}
.site-footer-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.site-footer-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--bg);
  line-height: 1;
  display: block;
}
.site-footer h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--leaf-bright);
  margin-bottom: 1.5rem;
  text-transform: none;
}
.site-footer ul { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer a {
  color: rgba(253, 253, 251, 0.78);
  font-size: 14px;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--leaf-bright); }
.footer-tagline {
  color: rgba(253, 253, 251, 0.7);
  font-size: 15px;
  line-height: 1.6;
  max-width: 28rem;
  margin-top: 1rem;
}
.site-footer-contact { margin-top: 1.5rem; }
.site-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 14px;
}
.site-footer-contact .icon { color: var(--leaf-bright); margin-top: 2px; flex-shrink: 0; }
.site-footer-socials { display: flex; gap: 0.625rem; margin-top: 1rem; }
.site-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid rgba(253, 253, 251, 0.2);
  color: var(--bg);
}
.site-footer-socials a:hover { background: var(--leaf); border-color: var(--leaf); }
.site-footer-bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(253, 253, 251, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .site-footer-bottom { flex-direction: row; align-items: center; }
}
.site-footer-bottom p {
  font-size: 12px;
  color: rgba(253, 253, 251, 0.55);
}
.site-footer-devise {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(253, 253, 251, 0.7) !important;
}

/* =====================================================================
   Hero (avec photo de fond)
   ===================================================================== */

.section-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.section-hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
@media (min-width: 1024px) {
  .section-hero-inner { padding: 7rem 2.5rem; }
}

.section-hero-photo {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--bg);
  overflow: hidden;
}
.section-hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* La photo fait 3:2, le bandeau est bien plus large que haut : « cover »
   rogne donc en hauteur, et d'autant plus que l'écran est large (sur une
   fenêtre de 1855 px, plus de 400 px de débord). Le cadrage est calé en
   haut : les visages sont ainsi préservés quelle que soit la largeur,
   et on ne perd que le sol au pied des sujets. */
.section-hero-photo .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.section-hero-photo .hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 31, 21, 0.55) 0%,
    rgba(13, 31, 21, 0.40) 35%,
    rgba(13, 31, 21, 0.85) 100%
  );
}
.section-hero-photo .section-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 8rem 4rem;
  width: 100%;
}
.section-hero-photo .display-hero { color: var(--bg); }
/* Sur photo, le vert moyen passait inapercu dans l'image : vert clair + ombre. */
.section-hero-photo .leaf-accent {
  color: var(--leaf-on-dark);
  text-shadow: 0 2px 12px rgba(13, 31, 21, 0.55);
}
.section-hero-photo .lead-lg { color: rgba(253, 253, 251, 0.92); }
/* Sur photo, l'accent vert moyen se noyait dans l'image → vert clair + ombre portée. */
.section-hero-photo .eyebrow {
  color: var(--leaf-on-dark);
  text-shadow: 0 1px 6px rgba(13, 31, 21, 0.65);
}
.section-hero-photo .grid-pattern { display: none; }
.section-hero-photo .btn-outline {
  color: var(--bg);
  border-color: var(--bg);
}
.section-hero-photo .btn-outline:hover {
  background: var(--bg);
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   Hero photo sur mobile
   Sur un écran étroit, superposer le texte à la photo obligeait « cover »
   à rogner les deux tiers de la largeur : sur les quatre exploitantes,
   deux seulement restaient visibles. On empile donc : la photo entière
   d'abord (son ratio 3:2, donc aucun rognage), le texte ensuite sur le
   vert de l'Association.
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
  .section-hero-photo {
    display: block;
    min-height: 0;
    background: var(--leaf-deep);
  }
  /* La photo reprend sa hauteur naturelle : quel que soit son format
     (3:2 sur l'accueil, 2,26:1 sur la page Équipe), elle s'affiche
     entière, sans recadrage. */
  .section-hero-photo .hero-bg {
    position: relative;
    inset: auto;
  }
  .section-hero-photo .hero-bg img {
    height: auto;
    object-position: center center;
  }
  /* Le voile sombre ne servait qu'à faire ressortir le texte par-dessus :
     le texte n'est plus sur la photo, on rend donc l'image à sa lumière. */
  .section-hero-photo .hero-bg::after { display: none; }
  .section-hero-photo .section-hero-inner { padding-block: 2.25rem 3rem; }
  /* Le bouton vert plein disparaissait sur le vert foncé du bloc texte. */
  .section-hero-photo .btn-primary { background: var(--bg); color: var(--leaf-deep); }
  .section-hero-photo .btn-primary:hover { background: var(--leaf-soft); }
}

/* Motif "rangées de champ" - fines lignes verticales évoquant un
   périmètre cultivé vu d'avion. Plus organique que les carrés. */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 79px,
    rgba(45, 106, 62, 0.08) 79px,
    rgba(45, 106, 62, 0.08) 80px
  );
  pointer-events: none;
}

/* Texture diagonale subtile pour les sections vertes plein-fond,
   évite l'effet "aplat vide". Stripes très douces, blanc 4-5%. */
.bg-leaf,
.axes-block,
.section-cta,
.vision-block {
  position: relative;
  isolation: isolate;
}
.bg-leaf::before,
.axes-block::before,
.section-cta::before,
.vision-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 39px,
    rgba(253, 253, 251, 0.05) 39px,
    rgba(253, 253, 251, 0.05) 40px
  );
  pointer-events: none;
  z-index: 0;
}
.bg-leaf > *,
.axes-block > *,
.section-cta > *,
.vision-block > * {
  position: relative;
  z-index: 1;
}

.hero-title { max-width: 60rem; margin-top: 1.75rem; }
.hero-lead { max-width: 40rem; margin-top: 1.75rem; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* =====================================================================
   Stats
   ===================================================================== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .stats-row { grid-template-columns: repeat(6, 1fr); } }
/* Variante 4 chiffres (accueil + périmètres) - sinon la grille à 6 colonnes
   laisse deux colonnes vides et les chiffres se perdent dans le blanc. */
@media (min-width: 1024px) { .stats-row-4 { grid-template-columns: repeat(4, 1fr); } }
.stats-row-naked { border: none; }
.stat {
  padding: 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.4rem;
}
@media (min-width: 1024px) { .stat { border-bottom: none; } }
.stat:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--leaf-deep);
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 0.25rem;
}
.stat-suffix {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* =====================================================================
   Cards
   ===================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid.cards-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cards-grid.cards-4 { grid-template-columns: repeat(4, 1fr); } }
/* Grille dont le nombre de cartes ne remplit pas la dernière ligne (7 services) :
   les cellules vides laissaient voir le fond gris de la grille. On dessine donc
   les filets sur les cartes elles-mêmes (outline = hors flux, aucun décalage). */
.cards-grid.cards-fill { background: transparent; }
.cards-grid.cards-fill > .card { outline: 1px solid var(--line); }

/* ALIGNEMENT - le contenu intérieur des cartes a 1.75rem de padding ;
   on tire la grille 1.75rem vers l'extérieur pour que ce contenu
   tombe pile sur la ligne du titre/eyebrow au-dessus.
   Uniquement en >= tablette (sur mobile les cartes sont empilées). */
@media (min-width: 768px) {
  .cards-grid,
  .axes-grid,
  .stats-row,
  .timeline-grid,
  .doc-list {
    margin-inline: calc(-1 * 1.75rem);
  }
}

.card {
  background: var(--bg);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  gap: 1.125rem;
  height: 100%;
  transition: background 0.25s;
}
a.card { color: inherit; }
a.card:hover { background: var(--leaf-soft); }
.card-header { display: flex; align-items: center; justify-content: space-between; }
.card-icon { color: var(--leaf); width: 32px; height: 32px; flex-shrink: 0; }
a.card:hover .card-icon { color: var(--leaf-deep); }
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.card-desc { font-size: 14.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.card-cta {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--leaf-deep);
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.25rem;
}

.card-image { padding: 0; overflow: hidden; }
.card-image-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface);
}
.card-image-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.card-image:hover .card-image-thumb img { transform: scale(1.04); }
.card-image-body {
  padding: 1.75rem;
  display: flex; flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}
.card-image-badges {
  position: absolute;
  top: 0.875rem; left: 0.875rem;
  display: flex; gap: 0.4rem;
  z-index: 1;
}
.badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: rgba(253, 253, 251, 0.95);
  color: var(--leaf-deep);
}
.badge-leaf   { background: var(--leaf);        color: var(--bg); }
.badge-dark   { background: var(--ink);         color: var(--bg); }
.badge-soil   { background: var(--soil);        color: var(--bg); }
.badge-terra  { background: var(--terracotta);  color: var(--bg); }
.badge-muted  { background: var(--muted);       color: var(--bg); }

/* =====================================================================
   CTA section - fond vert (pas ink, sinon back-to-back avec footer ink)
   ===================================================================== */

.section-cta { background: var(--leaf); color: var(--bg); }
.section-cta-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
@media (min-width: 1024px) { .section-cta-inner { padding: 7rem 2.5rem; } }
.section-cta h2 { color: var(--bg); max-width: 48rem; margin-top: 1.25rem; }
.section-cta .eyebrow { color: rgba(253,253,251,0.85); }
.section-cta .btn-inverse { background: var(--bg); color: var(--leaf-deep); }
.section-cta .btn-inverse:hover { background: var(--ink); color: var(--bg); }

/* =====================================================================
   Split rows (sites, services)
   ===================================================================== */

.split-row {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .split-row { grid-template-columns: 1fr 1fr; } }
.split-image {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface);
  overflow: hidden;
}
@media (min-width: 1024px) { .split-image { aspect-ratio: auto; height: 100%; } }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-body {
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .split-body { padding: 3rem; border-top: none; border-left: 1px solid var(--line); }
}

.check-list { display: flex; flex-direction: column; gap: 1rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.875rem; }
.check-list .check-icon {
  background: var(--leaf);
  color: var(--bg);
  width: 1.375rem; height: 1.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-list span { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.pills { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.pill {
  border: 1px solid var(--ink);
  padding: 0.5rem 1rem;
  font-size: 14px;
  color: var(--ink-soft);
}

/* =====================================================================
   Vision (bloc XL fond vert)
   ===================================================================== */

.vision-block { background: var(--leaf); color: var(--bg); }
.vision-block .container { padding-block: 5rem; }
.vision-block .eyebrow { color: rgba(253, 253, 251, 0.85); }
.vision-quote {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--bg);
  max-width: 80rem;
}

/* =====================================================================
   Timeline
   ===================================================================== */

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 3rem;
}
@media (min-width: 768px) { .timeline-grid { grid-template-columns: repeat(2, 1fr); } }
/* 6 étapes → 3 colonnes : deux lignes pleines, aucune cellule vide.
   (En 5 colonnes la 6ᵉ étape restait seule devant 4 cases grises.) */
@media (min-width: 1024px) { .timeline-grid { grid-template-columns: repeat(3, 1fr); } }
.timeline-item {
  background: var(--bg);
  padding: 1.75rem;
  display: flex; flex-direction: column;
  gap: 0.875rem;
}
.timeline-item .year { color: var(--leaf-deep); }
.timeline-item h3 { font-size: 1.0625rem; line-height: 1.25; }

/* =====================================================================
   Documents - grille douce et lisible
   ===================================================================== */

.doc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) { .doc-list { grid-template-columns: repeat(2, 1fr); } }
.doc-item {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color 0.2s, background 0.2s;
}
.doc-item:hover { border-color: var(--leaf); background: var(--leaf-soft); }
.doc-icon {
  width: 2.75rem; height: 2.75rem;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-item:hover .doc-icon { background: var(--leaf); color: var(--bg); }
.doc-body { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.doc-title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.doc-meta { font-size: 12.5px; color: var(--muted); }
.doc-cta {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--leaf-deep);
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.25rem;
}

/* =====================================================================
   Galerie vidéo YouTube
   ===================================================================== */

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card {
  cursor: pointer;
  display: flex; flex-direction: column;
  gap: 0.875rem;
  background: var(--bg);
  transition: transform 0.25s;
}
.video-card:hover { transform: translateY(-4px); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.5));
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.video-play span {
  width: 3.5rem; height: 3.5rem;
  background: rgba(13, 31, 21, 0.85);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.video-card:hover .video-play span { background: var(--leaf); }
.video-meta {
  padding: 0 0.125rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.video-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.video-date { font-size: 12.5px; color: var(--muted); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 21, 0.95);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox-frame {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16/9;
  background: black;
  position: relative;
}
.lightbox-frame iframe { width: 100%; height: 100%; border: none; }
.lightbox-close {
  position: absolute;
  top: -3rem; right: 0;
  background: transparent;
  border: 1px solid var(--bg);
  color: var(--bg);
  width: 2.5rem; height: 2.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: var(--bg); color: var(--ink); }

/* ====================================================================
   Pages 404 + Maintenance - standalone (sans header/footer du site)
   ==================================================================== */

/* Body en mode standalone - pas de padding pour header fixe */
body.standalone-page { margin: 0; min-height: 100vh; }
.standalone-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.error-page,
.maintenance-page {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  overflow: hidden;
}

/* Feuilles flottantes en fond */
.error-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.error-leaves .leaf {
  position: absolute;
  width: 36px;
  height: 36px;
  color: var(--leaf);
  opacity: 0;
  animation: leaf-fall 14s linear infinite;
}
.error-leaves .leaf-1 { left: 8%;  animation-delay: 0s;   animation-duration: 12s; }
.error-leaves .leaf-2 { left: 28%; animation-delay: -3s;  animation-duration: 16s; width: 28px; height: 28px; color: var(--leaf-bright); }
.error-leaves .leaf-3 { left: 52%; animation-delay: -7s;  animation-duration: 14s; width: 42px; height: 42px; }
.error-leaves .leaf-4 { left: 76%; animation-delay: -2s;  animation-duration: 17s; width: 32px; height: 32px; color: var(--leaf-deep); }
.error-leaves .leaf-5 { left: 92%; animation-delay: -10s; animation-duration: 13s; width: 30px; height: 30px; color: var(--leaf-bright); }

@keyframes leaf-fall {
  0% {
    transform: translate3d(0, -80px, 0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.45; }
  50% {
    transform: translate3d(40px, 50vh, 0) rotate(180deg);
    opacity: 0.35;
  }
  90% { opacity: 0.45; }
  100% {
    transform: translate3d(-30px, 110vh, 0) rotate(360deg);
    opacity: 0;
  }
}

/* Contenu 404 */
.error-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* Le grand "404" avec plante dans le 0 */
.error-num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(7rem, 18vw, 12rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.error-num .d {
  display: inline-block;
  animation: digit-pulse 3s ease-in-out infinite;
}
.error-num .d:nth-child(1) { animation-delay: 0s; }
.error-num .d:nth-child(2) { animation-delay: 0.3s; }
.error-num .d:nth-child(3) { animation-delay: 0.6s; }
@keyframes digit-pulse {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.error-num .zero {
  position: relative;
  width: 0.8em;
  text-align: center;
}
.error-num .zero::after {
  content: "0";
  color: var(--leaf-soft);
}
.error-num .plant {
  position: absolute;
  inset: 18% 22% 12% 22%;
  width: auto;
  height: auto;
  z-index: 2;
}
.error-num .plant .stem {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: draw-stem 1.4s ease-out 0.3s forwards;
}
.error-num .plant .leaf-l,
.error-num .plant .leaf-r {
  transform-origin: 40px 50px;
  opacity: 0;
  transform: scale(0);
  animation: leaf-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.error-num .plant .leaf-l { animation-delay: 1.4s; }
.error-num .plant .leaf-r { animation-delay: 1.7s; transform-origin: 40px 40px; }
.error-num .plant .bud {
  opacity: 0;
  transform: scale(0);
  transform-origin: 40px 30px;
  animation: leaf-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2s forwards,
             bud-glow 2.5s ease-in-out 2.6s infinite;
}

@keyframes draw-stem {
  to { stroke-dashoffset: 0; }
}
@keyframes leaf-pop {
  to { opacity: 1; transform: scale(1); }
}
@keyframes bud-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50%      { filter: drop-shadow(0 0 8px rgba(196, 97, 45, 0.6)); }
}

.error-text { max-width: 540px; }
.error-text .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-block;
  margin-bottom: 1rem;
}
.error-text h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.error-text p {
  margin-top: 1rem;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.65;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

.error-suggest {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 540px;
}
.error-suggest-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.error-suggest-links {
  margin-top: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}
.error-suggest-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--leaf-deep);
  border-bottom: 1px solid var(--leaf-soft);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.error-suggest-links a:hover {
  color: var(--ink);
  border-color: var(--leaf);
}

/* ===========================
   Page Maintenance
   =========================== */
.maintenance-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.maintenance-icon {
  width: 200px;
  max-width: 60vw;
}
.growing-plant {
  width: 100%;
  height: auto;
  display: block;
}
.growing-plant .stem {
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  animation: draw-stem 2s ease-out 0.4s forwards;
}
.growing-plant .leaf-l1,
.growing-plant .leaf-r1,
.growing-plant .leaf-l2,
.growing-plant .leaf-r2 {
  opacity: 0;
  transform: scale(0);
  animation: leaf-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.growing-plant .leaf-l1 { transform-origin: 78px 160px;  animation-delay: 1.2s; }
.growing-plant .leaf-r1 { transform-origin: 122px 140px; animation-delay: 1.5s; }
.growing-plant .leaf-l2 { transform-origin: 80px 105px;  animation-delay: 1.8s; }
.growing-plant .leaf-r2 { transform-origin: 120px 90px;  animation-delay: 2.1s; }
.growing-plant .bud {
  opacity: 0;
  transform: scale(0);
  transform-origin: 100px 78px;
  animation: leaf-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.5s forwards,
             bud-pulse 2s ease-in-out 3s infinite;
}
.growing-plant .spark {
  opacity: 0;
  animation: spark-flash 2s ease-in-out infinite;
}
.growing-plant .spark.s1 { animation-delay: 3.2s; }
.growing-plant .spark.s2 { animation-delay: 3.6s; }
.growing-plant .spark.s3 { animation-delay: 4s; }

@keyframes bud-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
@keyframes spark-flash {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 0.8; transform: scale(1.2); }
}

.maintenance-text { max-width: 580px; }
.maintenance-text .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-block;
  margin-bottom: 1.25rem;
}
.maintenance-text h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.maintenance-text p {
  margin-top: 1.25rem;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.maintenance-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .maintenance-info { grid-template-columns: repeat(3, 1fr); } }
.maintenance-info .info-item {
  background: var(--bg);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}
.maintenance-info .info-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.maintenance-info .info-value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--leaf-deep);
  text-align: center;
}
.maintenance-info .info-value:hover { color: var(--ink); }

/* ====================================================================
   Page Plan stratégique 2024-2028 - refonte propre
   ==================================================================== */

/* Hero - badge confidentiel mis en avant */
.psd-confidential {
  margin-top: 2rem;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--soil);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--soil);
  padding: 0.5rem 0.875rem;
  background: rgba(196, 97, 45, 0.05);
}

/* Stats bar - 4 chiffres clés horizontaux */
.psd-stats { padding-block: 3.5rem; }
.psd-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}
@media (min-width: 768px) { .psd-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.psd-stats-grid > div {
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}
.psd-stats-grid .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--leaf-deep);
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}
.psd-stats-grid .unit {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}
.psd-stats-grid .lab {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Header de section - utilisé partout dans la page */
.psd-section-header { max-width: 56rem; }
.psd-section-header h2 { margin-top: 1.25rem; }
.psd-section-header .lead-lg { margin-top: 1.25rem; color: var(--muted); }
.psd-section-header.dark h2,
.psd-section-header.dark .eyebrow { color: var(--bg); }
.psd-section-header.dark .eyebrow::before { background: rgba(253,253,251,0.8); }
.psd-section-header.dark .lead-lg { color: rgba(253,253,251,0.85); }

/* Diagramme cascade - PSD → 2 enjeux → 5 OS → 12 projets */
.psd-tree {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.psd-tree-root,
.psd-tree-level-projets {
  background: var(--ink);
  color: var(--bg);
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.psd-tree-level-projets {
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}
.psd-tree-line {
  width: 2px;
  height: 2rem;
  background: var(--line-mid);
}
.psd-tree-level {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}
.psd-tree-level-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
}
.psd-tree-level-5 {
  grid-template-columns: repeat(5, 1fr);
  max-width: 720px;
}
.psd-tree-node {
  background: var(--bg);
  border: 1px solid var(--leaf);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}
.psd-tree-node.small {
  padding: 0.875rem 0.5rem;
  gap: 0;
}
.psd-tree-node .ref {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--leaf-deep);
  letter-spacing: -0.01em;
}
.psd-tree-node .lab {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}
.psd-tree-node.alt {
  border-color: var(--terracotta);
}
.psd-tree-node.alt .ref { color: var(--terracotta); }

/* Enjeux - 2 cartes XL */
.psd-enjeux-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 1024px) { .psd-enjeux-grid { grid-template-columns: repeat(2, 1fr); } }
.psd-enjeu-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--leaf);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.psd-enjeu-card:nth-child(2) { border-top-color: var(--terracotta); }
.psd-enjeu-num {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.psd-enjeu-num .ref {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.psd-enjeu-num .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--leaf-soft);
  letter-spacing: -0.03em;
}
.psd-enjeu-card:nth-child(2) .psd-enjeu-num .big {
  color: rgba(196, 97, 45, 0.18);
}
.psd-enjeu-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.psd-enjeu-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.psd-enjeu-os {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.psd-os-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  padding: 4px 8px;
}
.psd-os-badge.alt { background: rgba(196,97,45,0.15); color: var(--terracotta); }
.psd-os-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Liste des 5 OS - chacun avec ses projets */
.psd-os-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.psd-os-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--leaf);
  padding: 1.75rem 2rem;
}
.psd-os-card.alt { border-left-color: var(--terracotta); }
.psd-os-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.psd-os-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: var(--leaf-deep);
  color: var(--bg);
  padding: 5px 10px;
}
.psd-os-tag.alt { background: var(--terracotta); }
.psd-os-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.psd-os-count-pill {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.psd-os-projects {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) { .psd-os-projects { grid-template-columns: repeat(2, 1fr); } }
.psd-os-projects li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  background: var(--surface);
  padding: 0.75rem 0.875rem;
}
.proj-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  background: var(--leaf);
  color: var(--bg);
  padding: 3px 6px;
  flex-shrink: 0;
}
.proj-tag.alt { background: var(--terracotta); }

/* Alignement PNIA - section verte */
.psd-alignment { color: var(--bg); }
.psd-pnia-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px)  { .psd-pnia-grid { grid-template-columns: repeat(3, 1fr); } }
.psd-pnia-card {
  background: var(--leaf-deep);
  border: 1px solid rgba(253,253,251,0.15);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.psd-pnia-tag {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(253,253,251,0.85);
}
.psd-pnia-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--bg);
  margin: 0;
}
.psd-pnia-card p {
  font-size: 14px;
  color: rgba(253,253,251,0.8);
  line-height: 1.55;
  margin: 0;
}

/* ====================================================================
   Bloc "Valeurs" (missions-vision) - cartes avec numéro + icône
   ==================================================================== */
.values-header { max-width: 48rem; }
.values-header h2 { margin-top: 1.25rem; }
.values-header .lead-lg { margin-top: 1.25rem; color: var(--muted); }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.value-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.value-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--leaf-soft);
  letter-spacing: -0.02em;
}
.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
}
.value-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.value-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================================
   Section Facebook - Page Plugin live + intro éditoriale
   ===================================================================== */

.fb-section { background: var(--bg); }
.fb-section-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 5rem;
}
@media (min-width: 1024px) {
  .fb-section-inner { grid-template-columns: 1.2fr 1fr; gap: 5rem; padding-block: 7rem; }
}
.fb-feed-intro { max-width: 36rem; }
.fb-feed-title { margin-top: 1rem; }
.fb-feed-lead { margin-top: 1.5rem; color: var(--muted); }
.fb-feed-points {
  margin-top: 2rem;
  display: flex; flex-direction: column;
  gap: 0.875rem;
}
.fb-feed-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.fb-feed-points .dot {
  width: 8px; height: 8px;
  background: var(--leaf);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}
.fb-feed-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.fb-feed-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  justify-self: center;
}
.fb-feed-frame iframe { width: 100%; height: 720px; border: none; display: block; }

/* =====================================================================
   Axes block (services > 3 axes) - fond vert + cartes vert foncé + numéros
   ===================================================================== */

.axes-block { background: var(--leaf); color: var(--bg); }
.axes-block .container { padding-block: 5rem; }
.axes-block .eyebrow { color: rgba(253,253,251,0.85); }
.axes-block h2 {
  color: var(--bg);
  margin-top: 1rem;
  max-width: 48rem;
}
.axes-block > .container > .reveal > .lead-lg {
  color: rgba(253,253,251,0.88);
  margin-top: 1rem;
  max-width: 48rem;
}
.axes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(253,253,251,0.18);
  margin-top: 2.5rem;
}
@media (min-width: 768px) { .axes-grid { grid-template-columns: repeat(3, 1fr); } }
/* Variante 2 axes (offre de services) */
@media (min-width: 768px) { .axes-block-2 .axes-grid { grid-template-columns: repeat(2, 1fr); } }
.axes-card {
  background: var(--leaf-deep);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--bg);
}
.axes-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.axes-card-header .eyebrow { color: rgba(253,253,251,0.85); }
.axes-card-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: rgba(253,253,251,0.28);
  letter-spacing: -0.02em;
  line-height: 1;
}
.axes-card h3 {
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.axes-card p {
  color: rgba(253,253,251,0.85);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* =====================================================================
   Contact - split-row (form gauche + info droite, tout aligné à gauche)
   ===================================================================== */

.contact-split { background: var(--bg); }
.contact-split-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact-split-inner {
    padding: 6rem 2.5rem;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
  }
}
.contact-col h2 { font-size: clamp(1.5rem, 2vw, 1.875rem); margin-bottom: 0.5rem; }
.contact-col .lead { font-size: 14.5px; margin-bottom: 2rem; }

.contact-info-list { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.contact-info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-list .icon {
  width: 2.25rem; height: 2.25rem;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-list .label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.contact-info-list .value {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.contact-info-list .value a { color: var(--leaf-deep); }
.contact-info-list .value a:hover { color: var(--ink); }
.contact-info-list small { color: var(--muted); font-size: 12.5px; }

.contact-map {
  width: 100%;
  aspect-ratio: 21/9;
  border: 0;
  display: block;
  background: var(--surface);
}

/* ====================================================================
   Équipe - section header + grille indépendante + cartes éditoriales
   ==================================================================== */

.team-section { margin-bottom: 4rem; }
.team-section:last-child { margin-bottom: 0; }
.team-section-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.team-section-header::before {
  content: "";
  height: 3px;
  width: 3.5rem;
  background: var(--leaf);
  flex-shrink: 0;
}
.team-section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}

/* Grille équipe - indépendante de cards-grid (qui a 1px gap + bg line).
   Ici on a un gap large + shadow possible sur chaque carte. */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

/* Carte membre - photo carrée + infos avec rôle mis en avant */
.team-card {
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.team-card .photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  overflow: hidden;
}
.team-card .photo svg {
  width: 64px; height: 64px;
  color: var(--muted-soft);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.team-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.team-card .body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
/* Nom - PRIMAIRE, display gros, ink */
.team-card .name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
/* Rôle - SECONDAIRE, sans bien lisible, leaf-deep */
.team-card .role {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--leaf-deep);
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.team-card .role .code {
  display: inline-block;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
}
.team-card .bio {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 0.4rem;
  order: 3;
}
.team-card .placeholder-note {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  margin-top: 0.4rem;
  order: 3;
}

/* ====================================================================
   Organigramme - Secrétariat Exécutif présenté en arbre hiérarchique
   (technique des <ul> imbriqués : connecteurs dessinés en ::before/::after)
   ==================================================================== */
.org-tree {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.org-tree ul {
  display: flex;
  justify-content: center;
  position: relative;
  padding-top: 28px;
  margin: 0;
  list-style: none;
}
.org-tree > ul { padding-top: 0; }
.org-tree li {
  position: relative;
  padding: 28px 12px 0;
  text-align: center;
  list-style: none;
}
/* Demi-segments horizontaux au-dessus de chaque carte → forment la fourche */
.org-tree li::before,
.org-tree li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  width: 50%;
  height: 28px;
  border-top: 2px solid var(--line-mid);
}
.org-tree li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid var(--line-mid);
}
/* Bords de la fourche (premier/dernier enfant) */
.org-tree li:first-child::before,
.org-tree li:last-child::after { border: 0 none; }
.org-tree li:last-child::before {
  border-right: 2px solid var(--line-mid);
  border-radius: 0 6px 0 0;
}
.org-tree li:first-child::after { border-radius: 6px 0 0 0; }
/* Enfant unique : pas de fourche */
.org-tree li:only-child::before,
.org-tree li:only-child::after { display: none; }
/* Trait vertical descendant du parent vers la rangée d'enfants */
.org-tree ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 28px;
  border-left: 2px solid var(--line-mid);
}
/* Racine (niveau 1) : aucun connecteur au-dessus */
.org-tree > ul > li { padding-top: 0; }
.org-tree > ul > li::before,
.org-tree > ul > li::after { display: none; }

/* Carte membre dans l'arbre */
.org-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 13.5rem;
  padding: 1.5rem 1rem 1.35rem;
  background: var(--bg);
  border: 1px solid var(--line);
}
.org-card .org-photo {
  width: 84px; height: 84px;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--leaf-soft);
  flex-shrink: 0;
}
.org-card .org-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
/* Nom et fonction occupent une hauteur fixe (2 lignes chacun) : toutes les
   cartes d'un même niveau font ainsi exactement la même taille, que le nom
   tienne sur une ou deux lignes. */
.org-card .org-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.org-card .org-role {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--leaf-deep);
  margin: 0;
  min-height: 4.6em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
}
.org-card .org-role .code {
  display: inline-block;
  background: var(--leaf-soft);
  color: var(--leaf-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
}
/* Niveau 1 - direction : carte mise en avant */
.org-card-lead {
  width: 15rem;
  border: 2px solid var(--leaf);
}
.org-card-lead .org-photo {
  width: 104px; height: 104px;
  border-color: var(--leaf);
}
.org-card-lead .org-name { font-size: 1.05rem; }
/* Placeholder d'initiales quand la photo du membre n'a pas encore été fournie */
.org-card .org-photo-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--leaf-deep);
  background: var(--leaf-soft);
}
/* Carte support (assistanat) : même cadre que les autres, rôle plus discret */
.org-card-support .org-role { color: var(--muted); }

/* Pot de miel du formulaire : hors écran, jamais vu ni tabulé par un humain */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Question de vérification anti-robots */
.form-check-q {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--leaf-deep);
  margin-bottom: 0.5rem;
}
.form-error {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--terracotta);
  background: rgba(196, 97, 45, 0.07);
  color: var(--terracotta);
  font-size: 14px;
  font-weight: 500;
}

/* La carte entière est un bouton : clic = portrait en grand */
.org-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
}
.org-card-btn.is-static { cursor: default; }
.org-card-btn:not(.is-static):hover .org-photo { border-color: var(--leaf); }
.org-card-btn:not(.is-static):hover .org-name { color: var(--leaf-deep); }
.org-card-btn:focus-visible { outline: 2px solid var(--leaf); outline-offset: 4px; }

/* Modale portrait */
.org-lightbox .org-lightbox-panel {
  position: relative;
  background: var(--bg);
  width: 100%;
  max-width: 26rem;
  border: 1px solid var(--line);
}
.org-lightbox-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.org-lightbox-caption { padding: 1.5rem; text-align: center; }
.org-lightbox-caption h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.org-lightbox-caption p {
  margin-top: 0.4rem;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--leaf-deep);
}

/* Responsive : sous 760px l'arbre se déplie en pile verticale lisible */
@media (max-width: 760px) {
  .org-tree { overflow-x: visible; }
  .org-tree ul { flex-direction: column; align-items: center; padding-top: 0; }
  .org-tree ul ul { padding-top: 22px; }
  .org-tree li { padding: 14px 0 0; }
  .org-tree li::before,
  .org-tree li::after { display: none; }
  .org-tree ul ul::before { height: 22px; left: 50%; }
  .org-tree ul ul li::before {
    content: "";
    display: block;
    position: absolute;
    top: -14px; left: 50%;
    width: 0; height: 14px;
    border-left: 2px solid var(--line-mid);
  }
  .org-card,
  .org-card-lead { width: min(20rem, 84vw); }
}

/* ====================================================================
   Bloc cartographie - entête + légende des drapeaux ADCVI
   ==================================================================== */
.map-header { max-width: 48rem; }
.map-header h2 { margin-top: 1.25rem; }
.map-header .lead-lg { margin-top: 1rem; }
.map-legend {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 13px;
  color: var(--muted);
}
.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.map-flag {
  display: inline-block;
  width: 14px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}
.map-flag::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0;
  width: 1.5px;
  height: 18px;
  background: var(--ink);
}
.map-flag::after {
  content: "";
  position: absolute;
  left: 2.5px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 10px solid var(--soil);
}
.map-flag-red::after    { border-left-color: var(--terracotta); }
.map-flag-orange::after { border-left-color: #e08758; }
.map-flag-grey::after   { border-left-color: var(--muted-soft); }

/* ====================================================================
   Photo de groupe équipe (Background.png)
   ==================================================================== */
.team-group-section { padding-block: 3rem; }
.team-group {
  margin: 0 auto;
  text-align: center;
  max-width: 1100px;
}
.team-group img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}
.team-group figcaption {
  font-size: 13.5px;
  color: var(--muted);
  font-style: italic;
  margin-top: 1rem;
}

/* ====================================================================
   Carte Leaflet des sites - tiles clairs Positron + drapeaux ADCVI
   ==================================================================== */
/* Pleine largeur, mais nettement plus haute qu'avant : le cadrage se fait sur
   l'emprise de la Côte d'Ivoire (correction n°40), et sur un bandeau bas le
   pays se perdait au milieu de toute l'Afrique de l'Ouest. */
.sites-map {
  width: 100%;
  margin-top: 2.5rem;
  height: 760px;
  border: 1px solid var(--line);
  background: var(--surface);
  z-index: 1;
}
@media (max-width: 1023px) { .sites-map { height: 560px; } }
@media (max-width: 768px) { .sites-map { height: 460px; } }
.sites-map .leaflet-control-attribution {
  font-family: var(--font-sans);
  font-size: 10px;
}
/* Drapeau SVG - pas de bg, pas de border */
.adcvi-flag-icon { background: transparent !important; border: none !important; }
.adcvi-flag-icon svg { filter: drop-shadow(0 2px 4px rgba(13, 31, 21, 0.35)); transition: transform 0.2s; }
.adcvi-flag-icon:hover svg { transform: scale(1.15); }

/* Popup style ADCVI - carré, bordure gauche verte, mono-typo nette */
.sites-map .leaflet-popup-content-wrapper {
  border-radius: 0;
  border-left: 3px solid var(--leaf);
  padding: 0;
}
.sites-map .leaflet-popup-content {
  margin: 14px 18px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  min-width: 200px;
}
.sites-map .leaflet-popup-tip { border-radius: 0; }
.sites-map .popup strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.sites-map .popup .pop-region {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.sites-map .popup .pop-stats {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.sites-map .popup .pop-stats span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.sites-map .popup .pop-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  margin-bottom: 8px;
}
.sites-map .popup .pop-actif       { background: var(--terracotta); color: var(--bg); }
.sites-map .popup .pop-inactif     { background: var(--muted);      color: var(--bg); }
.sites-map .popup .pop-partenariat { background: #e08758;           color: var(--bg); }
.sites-map .popup .pop-link {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--leaf-deep);
  margin-top: 4px;
}
.sites-map .popup .pop-link:hover { color: var(--ink); }

/* =====================================================================
   Forms
   ===================================================================== */

.form-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.form-field .req { color: var(--terracotta); }
.form-field input,
.form-field textarea,
.form-field select {
  border: 1px solid var(--line-mid);
  background: var(--bg);
  padding: 0.75rem 1rem;
  font-size: 15px;
  color: var(--ink);
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--leaf);
}
.form-field textarea { resize: vertical; min-height: 7rem; }
.form-success {
  border: 1px solid var(--leaf);
  background: var(--leaf-soft);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.form-success .check-icon {
  background: var(--leaf);
  color: var(--bg);
  width: 1.75rem; height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =====================================================================
   Utilities
   ===================================================================== */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.note-info {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--line-mid);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.note-info code { background: var(--bg); padding: 1px 5px; font-family: var(--font-mono); font-size: 12px; }

/* =====================================================================
   Parallax - bandeaux image de transition (style Elementor)
   ===================================================================== */

/* Bandeau plein écran avec image fixe (effet parallax) + voile vert.
   Sert de transition illustrée entre deux sections de texte. */
.parallax-band {
  position: relative;
  isolation: isolate;
  min-height: 360px;
  display: flex;
  align-items: center;
  background-color: var(--leaf-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* parallax */
  color: var(--bg);
  overflow: hidden;
}
.parallax-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    100deg,
    rgba(13, 31, 21, 0.78) 0%,
    rgba(31, 77, 44, 0.62) 55%,
    rgba(13, 31, 21, 0.80) 100%
  );
}
.parallax-band-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}
@media (min-width: 1024px) { .parallax-band-inner { padding: 6rem 2.5rem; } }
.parallax-band .eyebrow {
  color: var(--leaf-on-dark);
  text-shadow: 0 1px 6px rgba(13, 31, 21, 0.65);
}
.parallax-band h2 { color: var(--bg); margin-top: 1rem; max-width: 46rem; }
.parallax-band p { color: rgba(253, 253, 251, 0.92); max-width: 42rem; margin-top: 1.25rem; }
.parallax-band-sm { min-height: 240px; }
.parallax-band-tall { min-height: 460px; }

/* Blocs verts désormais habillés d'une photo de fond (parallax) + voile vert.
   .section-cta-photo (CTA) et .has-photo-bg (vision-block, axes-block, etc.). */
.section-cta-photo,
.has-photo-bg {
  position: relative;
  isolation: isolate;
  background-color: var(--leaf-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.section-cta-photo::before,
.has-photo-bg::before {
  /* remplace le motif diagonal par un voile vert lisible - assez clair
     pour laisser voir la photo, assez dense pour garder le texte lisible */
  background-image: none !important;
  background: linear-gradient(120deg, rgba(13, 31, 21, 0.74) 0%, rgba(31, 77, 44, 0.58) 50%, rgba(13, 31, 21, 0.76) 100%) !important;
}
.has-photo-bg > * { position: relative; z-index: 1; }

/* Repli mobile + accessibilité : pas de fixed (saccadé sur iOS / repos visuel) */
@media (max-width: 820px) {
  .parallax-band,
  .section-cta-photo,
  .has-photo-bg { background-attachment: scroll; }
}
@media (prefers-reduced-motion: reduce) {
  .parallax-band,
  .section-cta-photo,
  .has-photo-bg { background-attachment: scroll; }
}

/* Tuile CTA dans une grille de cartes (remplit une case vide) */
.card-cta-tile {
  background: var(--leaf);
  color: var(--bg);
  border: none;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s ease;
}
.card-cta-tile:hover { background: var(--leaf-deep); }
.cta-tile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border: 1px solid rgba(253, 253, 251, 0.4);
  color: var(--bg);
}
.cta-tile-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--bg);
}
.cta-tile-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(253, 253, 251, 0.85);
}
.cta-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
}

/* =====================================================================
   Actualités - blog (cartes + article détaillé)
   ===================================================================== */

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3.5rem;
}
@media (min-width: 640px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.article-card:hover { border-color: var(--line-mid); }
.article-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.article-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.article-card-date {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: rgba(13, 31, 21, 0.85);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.6rem;
}
.article-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  flex: 1;
}
.article-card-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
}
.article-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.article-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.article-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--leaf-deep);
}

/* Bloc Facebook sur l'accueil - texte + fil en direct, dans une carte */
.home-fb {
  margin-top: 4.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 2rem;
}
@media (min-width: 900px) {
  .home-fb {
    grid-template-columns: 1.15fr minmax(340px, 420px);
    gap: 4rem;
    padding: 3.25rem 3.5rem;
  }
}
.home-fb-text { max-width: 36rem; }
.home-fb-frame {
  justify-self: center;
  width: 100%;
  max-width: 420px;
}
.home-fb-frame iframe {
  width: 100%;
}
.fb-stat {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.fb-stat-num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--leaf-deep);
  line-height: 1;
}
.fb-stat-label { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* Article détaillé */
.article-hero {
  position: relative;
  isolation: isolate;
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  color: var(--bg);
  overflow: hidden;
}
.article-hero-bg { position: absolute; inset: 0; z-index: 0; }
.article-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,31,21,0.35) 0%, rgba(13,31,21,0.45) 40%, rgba(13,31,21,0.88) 100%);
}
.article-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 7rem 1.5rem 3.5rem;
}
.article-hero .eyebrow { color: var(--leaf-bright); }
.article-hero h1 { color: var(--bg); margin-top: 1rem; }
.article-hero-meta {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(253, 253, 251, 0.85);
}
.article-body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}
.article-body p { font-size: 1.05rem; line-height: 1.8; color: var(--ink-soft); margin: 0 0 1.5rem; }
.article-body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.article-body figure { margin: 2.5rem 0; }
.article-body figure img { width: 100%; border-radius: 4px; }
.article-body figcaption { font-size: 13px; color: var(--muted); margin-top: 0.6rem; text-align: center; }
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}
.article-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--leaf-deep);
  margin-bottom: 1rem;
}
.article-fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 14px;
  color: var(--leaf-deep);
  font-weight: 600;
}

/* =====================================================================
   PWA - barre de navigation mobile (bas) + bannière d'installation
   ===================================================================== */

.mobile-tabbar { display: none; }

@media (max-width: 1023px) {
  .mobile-tabbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 14px rgba(13, 31, 21, 0.07);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 4px 7px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--muted);
  }
  .mobile-tabbar a svg { width: 22px; height: 22px; }
  .mobile-tabbar a.is-active { color: var(--leaf); }
  .mobile-tabbar a.is-active svg { stroke: var(--leaf); }

  /* Réserve la place de la barre pour ne pas masquer le bas du contenu */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* Bannière « Installer l'application » (injectée par main.js) */
.pwa-install {
  position: fixed;
  z-index: 300;
  right: 20px;
  bottom: 20px;
  display: none;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 32px);
  padding: 12px 12px 12px 16px;
  background: var(--leaf-deep);
  color: var(--bg);
  box-shadow: 0 16px 40px -14px rgba(13, 31, 21, 0.55);
}
.pwa-install.is-shown { display: flex; }
.pwa-install-text { font-size: 13.5px; line-height: 1.35; max-width: 17rem; }
.pwa-install-text strong { display: block; font-size: 14.5px; margin-bottom: 1px; }
.pwa-install-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pwa-install-btn {
  background: var(--bg);
  color: var(--leaf-deep);
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.pwa-install-close {
  background: transparent;
  border: none;
  color: rgba(253, 253, 251, 0.85);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
}
@media (max-width: 1023px) {
  /* au-dessus de la barre d'onglets sur mobile */
  .pwa-install {
    right: 12px; left: 12px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
}

/* ---------------------------------------------------------------------
   VARIANTE - Hero photo en deux colonnes (à partir de 768 px)
   Texte à gauche sur le vert, photo entière à droite. Aucun rognage,
   aucun texte par-dessus les visages, quelle que soit la largeur d'écran.
   Pour revenir à la superposition : supprimer ce bloc.
   --------------------------------------------------------------------- */
@media (min-width: 768px) {
  .section-hero-photo {
    display: grid;
    /* 1re colonne = gouttière. Elle reproduit exactement le décrochement
       du header (conteneur centré de 1600px + son padding), pour que le
       titre démarre pile sous le logo, sans décalage.
       Le « 100% » se calcule sur la largeur de la grille, donc sans l'erreur
       de quelques pixels qu'introduirait « 100vw » à cause de l'ascenseur.
       --page-gutter suit le padding du header, qui change à 1024px. */
    --page-gutter: 1.25rem;
    grid-template-columns:
      max(var(--page-gutter), calc((100% - var(--container)) / 2 + var(--page-gutter))) 1fr 1fr;
    align-items: center;
    min-height: 0;
    background: var(--leaf-deep);
  }
  .section-hero-photo .hero-bg {
    position: relative;
    inset: auto;
    /* grid-row explicite : sans elle, la photo occupant la colonne 3 en
       premier, le placement automatique ne revient pas en arriere et
       renvoyait le bloc texte a la ligne suivante. */
    grid-row: 1;
    grid-column: 3;
  }
  /* hauteur naturelle = ratio d'origine = zéro rognage */
  .section-hero-photo .hero-bg img { height: auto; }
  /* le voile sombre ne sert plus : le texte n'est plus sur la photo */
  .section-hero-photo .hero-bg::after { display: none; }
  .section-hero-photo .section-hero-inner {
    grid-row: 1;
    grid-column: 2;
    padding: 3.5rem 3rem 3.5rem 0;
  }
  .section-hero-photo .hero-title,
  .section-hero-photo .hero-lead { max-width: none; }
  /* le vert plein se noyait sur le vert foncé du bloc texte */
  .section-hero-photo .btn-primary { background: var(--bg); color: var(--leaf-deep); }
  .section-hero-photo .btn-primary:hover { background: var(--leaf-soft); }
}
/* Au-delà de 1024px le header passe à 2rem de padding : la gouttière suit. */
@media (min-width: 1024px) {
  .section-hero-photo { --page-gutter: 2rem; }
}

/* ====================================================================
   Fiches périmètres + tableau des partenariats (page Nos périmètres)
   ==================================================================== */
.peri-card { gap: 1rem; }
.peri-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.peri-gie {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--leaf-deep);
  margin-top: -0.5rem;
}
.peri-specs { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.peri-specs > div { display: flex; gap: 0.75rem; align-items: baseline; }
.peri-specs dt {
  flex: 0 0 8.5rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.peri-specs dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Le tableau déborde sur mobile : il défile dans son propre cadre,
   la page elle-même ne part jamais en travers. */
.peri-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.peri-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 40rem; }
.peri-table th,
.peri-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.peri-table th {
  font-size: 12px;
  font-weight: 700;
  color: var(--leaf-deep);
  background: var(--surface);
  white-space: nowrap;
}
.peri-table td { color: var(--ink-soft); }
.peri-table .num { text-align: right; white-space: nowrap; }
.peri-table tbody tr:last-child td { border-bottom: none; }
.peri-table tbody tr:hover td { background: var(--surface); }

/* ====================================================================
   Appel à l'action en deux volets : texte sur le vert à gauche,
   photo à droite. Remplace la tuile isolée, qui avait été conçue pour
   remplir une case de grille et se retrouvait orpheline en bas de page.
   ==================================================================== */
.cta-split {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--leaf-deep);
  overflow: hidden;
}
@media (min-width: 900px) {
  .cta-split { grid-template-columns: 1fr 1fr; }
}
.cta-split-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2.5rem 1.75rem;
  color: var(--bg);
}
@media (min-width: 900px) { .cta-split-body { padding: 3.5rem 3rem; justify-content: center; } }
.cta-split-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem; height: 3rem;
  border: 1px solid rgba(253, 253, 251, 0.4);
  color: var(--bg);
}
.cta-split-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--bg);
  margin: 0;
}
.cta-split-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(253, 253, 251, 0.85);
  max-width: 34rem;
  margin: 0;
}
/* La photo occupe toute la hauteur du volet, sans écraser le bloc sur mobile */
.cta-split-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
@media (min-width: 900px) { .cta-split-image { aspect-ratio: auto; height: 100%; } }
.cta-split-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
