/* ==========================================================================
   ANEM Centrale — Mise en page & composants
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Conteneurs & grille
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide   { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--flush  { padding-inline: 0; }

.block {
  padding-block: var(--block-space);
  position: relative;
}
.block--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.block--flush-top { padding-top: 0; }
.block--flush-bottom { padding-bottom: 0; }

.block--alt  { background: var(--surface-alt); }
.block--warm { background: var(--surface-warm); }
.block--deep {
  background: var(--surface-deep);
  color: var(--text-invert);
}
.block--deep h1, .block--deep h2, .block--deep h3, .block--deep h4 { color: #fff; }
.block--deep p { color: var(--text-invert-mut); }

/* Grille éditoriale : colonne d'intitulé collante + colonne de contenu */
.editorial {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 62rem) {
  .editorial { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); align-items: start; }
  .editorial__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

/* --------------------------------------------------------------------------
   2. Titres de section
   -------------------------------------------------------------------------- */

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.section-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0;
  margin-bottom: .9rem;
}
.section-head__kicker::before {
  content: "";
  width: 1.9rem; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-head--center .section-head__kicker::before { display: none; }

.section-head__title { margin-bottom: .55em; }
.section-head__lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.55;
}
.block--deep .section-head__lead { color: var(--text-invert-mut); }
.block--deep .section-head__kicker { color: var(--anem-ember); }

/* --------------------------------------------------------------------------
   3. Boutons
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .82rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: .005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-flame); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover { --btn-bd: var(--accent); --btn-fg: var(--accent); box-shadow: none; }

.btn--ink   { --btn-bg: var(--anem-ink); --btn-fg: #fff; }
.btn--ink:hover { box-shadow: var(--shadow-md); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--anem-ink); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.42); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--anem-ink); --btn-bd: #fff; box-shadow: none; }
.btn--green { --btn-bg: var(--anem-sahel); }

.btn--lg { padding: 1.02rem 1.9rem; font-size: var(--fs-md); }
.btn--sm { padding: .58rem 1.1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn__icon { width: 1.05em; height: 1.05em; flex: none; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--accent);
  text-decoration: none;
}
.link-more svg { width: .95em; height: .95em; transition: transform var(--dur) var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   4. En-tête
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(19,26,51,.5);
}

.topbar {
  background: var(--anem-ink);
  color: var(--text-invert-mut);
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--anem-ember); }
.topbar__list { display: flex; gap: 1.25rem; align-items: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.topbar__list li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.topbar__list svg { width: .95em; height: .95em; opacity: .7; }

.header-bar {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand img, .brand svg.brand__mark { width: auto; height: 54px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -.03em;
  font-stretch: 112%;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__tag { font-size: .66rem; color: var(--text-faint); font-weight: 550; letter-spacing: .02em; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: .45rem; flex: none; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--surface-alt); color: var(--accent); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--bordered { border-color: var(--line); }

/* Navigation principale */
.nav-primary > ul {
  display: flex;
  align-items: center;
  gap: clamp(.25rem, 1.4vw, 1.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-primary li { margin: 0; position: relative; }
.nav-primary > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .62rem .72rem;
  font-size: .95rem;
  font-weight: 560;
  letter-spacing: -.005em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  color: var(--text);
  white-space: nowrap;
}
.nav-primary > ul > li > a::after {
  content: "";
  position: absolute;
  left: .72rem; right: .72rem; bottom: .3rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-primary > ul > li:hover > a::after,
.nav-primary > ul > li:focus-within > a::after,
.nav-primary > ul > li.current-menu-item > a::after,
.nav-primary > ul > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.nav-primary > ul > li.current-menu-item > a { color: var(--accent); }

.nav-primary .menu-item-has-children > a::before {
  content: "";
  order: 2;
  width: 7px; height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
  transition: transform var(--dur) var(--ease);
}
.nav-primary .menu-item-has-children:hover > a::before { transform: rotate(225deg) translateY(-3px); }

/* Sous-menus */
.nav-primary .sub-menu {
  position: absolute;
  top: calc(100% + .45rem);
  left: -.4rem;
  min-width: 17rem;
  list-style: none;
  margin: 0;
  padding: .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 40;
}
.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-primary .sub-menu .sub-menu { top: -.5rem; left: calc(100% + .3rem); }
.nav-primary .sub-menu a {
  display: block;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 520;
  text-decoration: none;
  color: var(--text);
}
.nav-primary .sub-menu a:hover { background: var(--accent-soft); color: var(--accent); }
.nav-primary .sub-menu .menu-item-has-children > a::before { transform: rotate(-45deg); margin-left: auto; }

/* Méga-menu (classe « megamenu » sur l'item de menu) */
@media (min-width: 64rem) {
  .nav-primary .megamenu { position: static; }
  .nav-primary .megamenu > .sub-menu {
    left: 50%;
    transform: translate(-50%, 8px);
    width: min(var(--wrap), calc(100vw - 3rem));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: .35rem;
    padding: 1.15rem;
  }
  .nav-primary .megamenu:hover > .sub-menu,
  .nav-primary .megamenu:focus-within > .sub-menu { transform: translate(-50%, 0); }
  .nav-primary .megamenu > .sub-menu > li > a { font-weight: 640; font-size: .96rem; }
  .nav-primary .megamenu .sub-menu .sub-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0; background: none; min-width: 0;
  }
  .nav-primary .megamenu .sub-menu .sub-menu a { font-weight: 450; color: var(--text-muted); padding-block: .38rem; }
}

.menu-desc { display: block; font-size: .76rem; color: var(--text-faint); font-weight: 400; margin-top: .1rem; }

/* Bascule mobile */
.nav-toggle { display: none; }
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 63.99rem) {
  .nav-toggle { display: inline-grid; }
  .nav-primary { display: none; }
  .header-actions .btn { display: none; }
}

/* Tablette et mobile : la barre supérieure se réduit à l'essentiel,
   et la marque cède la place aux commandes plutôt que de les repousser
   hors de l'écran. */
@media (max-width: 56rem) {
  .topbar__address { display: none; }
}

@media (max-width: 48rem) {
  /* Sur mobile, l'e-mail et l'adresse encombrent le haut de page pour rien :
     ils restent accessibles dans le menu et dans le pied de page. */
  .topbar { display: none; }

  .header-bar { gap: .6rem; min-height: 64px; }
  .brand { gap: .6rem; }
  .brand img, .brand svg.brand__mark { height: 42px; }
  .brand__name { font-size: 1.08rem; }
  .brand__tag { display: none; }

  .header-actions { gap: .1rem; }
  .icon-btn { width: 40px; height: 40px; }
  .icon-btn svg { width: 19px; height: 19px; }
}

@media (max-width: 26rem) {
  .brand img, .brand svg.brand__mark { height: 38px; }
  .brand__name { font-size: .98rem; letter-spacing: -.035em; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn svg { width: 18px; height: 18px; }
}

/* Panneau mobile */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--surface);
  transform: translateY(-2%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms var(--ease), transform 280ms var(--ease), visibility 280ms;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
body.is-locked { overflow: hidden; }
.mobile-nav { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.mobile-nav__head .brand__tag { display: none; }
.mobile-nav__body { padding-bottom: 1rem; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); border-bottom: 1px solid var(--line); }
.mobile-nav__body { padding: 1.25rem var(--gutter) 2rem; }
.mobile-nav__foot {
  padding: 1.25rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
}
.mobile-nav__foot .btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  padding-inline: 1.1rem;
}
.mobile-nav__foot .btn--ghost { font-size: .88rem; }
.mobile-nav__foot .btn__icon,
.mobile-nav__foot .btn svg { flex: none; }

/* Le bloc de marque garde sa disposition en ligne dans l'en-tête du panneau */
.mobile-nav__head .brand { display: inline-flex; flex-direction: row; align-items: center; gap: .6rem; flex-wrap: nowrap; }
.mobile-nav__head .brand img, .mobile-nav__head .brand svg.brand__mark { height: 40px; }
.mobile-nav__head .brand__name { font-size: 1.05rem; font-weight: 800; }

.mobile-nav__body ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav__body li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav__body .sub-menu { display: none; padding: 0 0 .7rem .9rem; border-left: 2px solid var(--accent-soft); margin-left: .2rem; }
.mobile-nav__body li.is-open > .sub-menu { display: block; }
.mobile-nav__body .sub-menu li { border: 0; }
.mobile-nav__body a {
  display: block;
  padding: .95rem .2rem;
  font-size: 1.06rem;
  font-weight: 580;
  text-decoration: none;
  letter-spacing: -.01em;
}
.mobile-nav__body .sub-menu a { font-size: .96rem; font-weight: 450; padding-block: .55rem; color: var(--text-muted); }
.mobile-nav__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.submenu-toggle {
  flex: none;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  cursor: pointer;
}
.submenu-toggle::before {
  content: ""; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}
.mobile-nav__body li.is-open > .mobile-nav__row .submenu-toggle::before { transform: rotate(225deg) translate(-2px, -2px); }

/* Recherche plein écran */
.search-overlay {
  position: fixed; inset: 0; z-index: 320;
  background: color-mix(in srgb, var(--surface-deep) 92%, transparent);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 240ms var(--ease), visibility 240ms;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__inner { width: min(46rem, 100%); }
.search-overlay label { display: block; color: rgba(255,255,255,.7); font-size: var(--fs-sm); margin-bottom: .9rem; }
.search-overlay input[type="search"] {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 2px solid rgba(255,255,255,.3);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  padding: .4rem 0 .7rem;
}
.search-overlay input[type="search"]:focus { border-bottom-color: var(--anem-ember); outline: none; }
.search-overlay input::placeholder { color: rgba(255,255,255,.28); }
.search-overlay__close { position: absolute; top: 1.2rem; right: 1.2rem; color: #fff; }
.search-overlay__hint { margin-top: 1rem; color: rgba(255,255,255,.45); font-size: var(--fs-xs); }

/* --------------------------------------------------------------------------
   5. Hero d'accueil — diaporama
   -------------------------------------------------------------------------- */

.hero {
  --hero-card-w: 360px;
  --hero-col-gap: clamp(2.5rem, 5vw, 5.5rem);
  position: relative;
  isolation: isolate;
  background: var(--anem-ink);
  color: #fff;
  overflow: hidden;
}

/* --- Scène et hauteurs --- */
.hero__stage {
  position: relative;
  display: grid;
}
.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  align-items: center;
  min-height: var(--hero-h, 600px);
  isolation: isolate;
}

.hero--compact  { --hero-h: clamp(420px, 52vh, 520px); }
.hero--standard { --hero-h: clamp(520px, 66vh, 680px); }
.hero--tall     { --hero-h: clamp(600px, 78vh, 820px); }
.hero--full     { --hero-h: calc(100svh - var(--header-h, 78px)); }

/* --- Média --- */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}
.hero--kenburns .hero__slide.is-active .hero__media img {
  animation: anem-kenburns 16s var(--ease) forwards;
}
@keyframes anem-kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.2%, -1%, 0); }
}

/* --- Voile coloré, teinte réglable par diapositive --- */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  --tint-a: 19, 26, 51;
  --tint-b: 14, 20, 40;
  background:
    linear-gradient(105deg,
      rgba(var(--tint-a), calc(var(--veil, .72) + .16)) 0%,
      rgba(var(--tint-a), var(--veil, .72)) 42%,
      rgba(var(--tint-b), calc(var(--veil, .72) * .68)) 100%),
    radial-gradient(90% 120% at 88% -10%,
      rgba(226, 85, 28, .30) 0%,
      rgba(226, 85, 28, 0) 62%);
}
.hero__slide[data-tint="night"] .hero__veil { --tint-a: 8, 12, 28; --tint-b: 4, 7, 18; }
.hero__slide[data-tint="flame"] .hero__veil { --tint-a: 74, 24, 8; --tint-b: 24, 14, 32; }
.hero__slide[data-tint="sahel"] .hero__veil { --tint-a: 6, 44, 34; --tint-b: 8, 20, 36; }

/* Grain très discret : casse les aplats sur grands écrans */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Contenu --- */
/* Deux colonnes : le texte à gauche, la fiche à droite.
   La colonne de droite reste réservée même si la fiche est masquée sur mobile,
   c'est ce qui empêche le titre de se retrouver comprimé contre le bord. */
.hero__inner {
  width: 100%;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hero-card-w);
  column-gap: var(--hero-col-gap);
  align-items: center;
}
.hero--nocard .hero__inner {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: clamp(4.5rem, 10vw, 7.5rem);
}

.hero__content {
  grid-column: 1;
  /* Pas de plafond ici : c'est la colonne de la grille qui donne la mesure. */
  max-width: none;
  display: grid;
  gap: 1.35rem;
  justify-items: start;
}
.hero--nocard .hero__content { max-width: min(100%, 960px); }

.hero__slide--center .hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero__slide--center .hero__content {
  max-width: min(100%, 880px);
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: .012em;
  color: var(--anem-ember);
  text-transform: none;
}
.hero__eyebrow::after {
  content: "";
  width: clamp(1.5rem, 4vw, 3.5rem);
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--anem-ember) 65%, transparent), transparent);
}
.hero__slide--center .hero__eyebrow::after { display: none; }
.hero__eyebrow .dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--anem-sahel);
  box-shadow: 0 0 0 4px rgba(15, 138, 98, .22);
  flex: none;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 780;
  line-height: .96;
  letter-spacing: -.038em;
  margin: 0;
  text-wrap: balance;
  /* Cale le premier jambage sur la marge, sans le décalage optique du gras */
  margin-left: -.035em;
}
.hero__title em {
  font-style: normal;
  color: var(--anem-ember);
}

.hero__lead {
  font-size: clamp(var(--fs-md), 1.35vw, var(--fs-lg));
  line-height: 1.62;
  color: rgba(255, 255, 255, .84);
  margin: .25rem 0 0;
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .85rem;
}

/* --- Transitions --- */
.hero__slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .85s var(--ease), visibility .85s var(--ease), transform .85s var(--ease);
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero--fx-slide .hero__slide { transform: translate3d(4%, 0, 0); }
.hero--fx-slide .hero__slide.is-active { transform: none; }
.hero--fx-slide .hero__slide.is-leaving { transform: translate3d(-4%, 0, 0); }

.hero--fx-rise .hero__slide { transform: translate3d(0, 2.5rem, 0); }
.hero--fx-rise .hero__slide.is-active { transform: none; }

/* Entrée échelonnée du contenu */
.hero__slide.is-active .hero__eyebrow,
.hero__slide.is-active .hero__title,
.hero__slide.is-active .hero__lead,
.hero__slide.is-active .hero__cta {
  animation: anem-hero-in .8s var(--ease) backwards;
}
.hero__slide.is-active .hero__eyebrow { animation-delay: .06s; }
.hero__slide.is-active .hero__title   { animation-delay: .14s; }
.hero__slide.is-active .hero__lead    { animation-delay: .24s; }
.hero__slide.is-active .hero__cta     { animation-delay: .34s; }

@keyframes anem-hero-in {
  from { opacity: 0; transform: translate3d(0, 1.1rem, 0); }
  to   { opacity: 1; transform: none; }
}

/* --- Fiche « en un coup d'œil » --- */
.hero__cardwrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  pointer-events: none;
}
.hero__card {
  pointer-events: auto;
  width: min(var(--hero-card-w), 100%);
  padding: 1.7rem 1.8rem;
  border-radius: var(--radius-lg);
  background: rgba(31, 39, 74, .78);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}
.hero__card {
  position: relative;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 1.8rem;
  width: 2.4rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--anem-flame), var(--anem-ember));
}
.hero__card h2 {
  font-size: var(--fs-md);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -.012em;
}
.hero__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.hero__facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem 0;
  border-top: 1px solid rgba(255, 255, 255, .11);
}
.hero__facts li:first-child { border-top: 0; padding-top: 0; }
.hero__facts span { font-size: var(--fs-xs); color: rgba(255, 255, 255, .62); }
.hero__facts b {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 720;
  letter-spacing: -.02em;
}

/* --- Commandes du diaporama --- */
.hero__controls {
  position: absolute;
  inset: auto 0 clamp(2.2rem, 4.5vw, 3.4rem) 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  pointer-events: none;
}
.hero--nocard .hero__controls { bottom: clamp(3.5rem, 7vw, 5rem); }
.hero__controls > * { pointer-events: auto; }

.hero__dots {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.hero__dot {
  position: relative;
  width: 2.4rem;
  height: .3rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .26);
  cursor: pointer;
  overflow: hidden;
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hero__dot:hover { background: rgba(255, 255, 255, .45); }
.hero__dot.is-active { width: 3.6rem; background: rgba(255, 255, 255, .3); }
.hero__dot-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--anem-ember);
  border-radius: 999px;
}
.hero__dot.is-active .hero__dot-fill { width: var(--fill, 0%); }

.hero__nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero__count {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .55);
  margin-right: .4rem;
}
.hero__count b { color: #fff; font-weight: 700; }
.hero__count i { font-style: normal; margin: 0 .25rem; }

.hero__btn {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero__btn:hover {
  background: var(--anem-flame);
  border-color: var(--anem-flame);
  transform: translateY(-2px);
}
.hero__btn .only-paused { display: none; }
.hero[data-paused="true"] .hero__btn .only-paused { display: grid; }
.hero[data-paused="true"] .hero__btn .only-playing { display: none; }

.hero__progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 7;
  background: rgba(255, 255, 255, .12);
}
.hero__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--anem-flame), var(--anem-ember));
}

/* --- Rail des villes --- */
.city-rail {
  position: relative;
  z-index: 6;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(8, 12, 28, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  --rail-h: 3.4rem;
}
.city-rail::before,
.city-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}
.city-rail::before { left: 0; background: linear-gradient(90deg, var(--anem-night), transparent); }
.city-rail::after { right: 0; background: linear-gradient(270deg, var(--anem-night), transparent); }

.city-rail__track {
  display: flex;
  width: max-content;
  animation: anem-marquee 46s linear infinite;
}
.city-rail:hover .city-rail__track,
.city-rail:focus-within .city-rail__track { animation-play-state: paused; }

.city-rail__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .68);
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, .08);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.city-rail__item:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.city-rail__item .pin {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--anem-ember);
  flex: none;
}

@keyframes anem-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Adaptations --- */
@media (max-width: 1280px) {
  .hero { --hero-card-w: 310px; --hero-col-gap: clamp(2rem, 4vw, 3.5rem); }
}

/* Sous 1080 px, plus rien n'est superposé : tout s'empile dans l'ordre
   du document — le bandeau, la fiche, puis les commandes. */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__content { max-width: min(100%, 720px); }

  .hero__cardwrap {
    position: static;
    display: block;
    padding: 0 0 1.4rem;
  }
  .hero__card { width: 100%; }

  .hero__controls {
    position: static;
    inset: auto;
    padding-bottom: 2.2rem;
  }

  .hero--full { --hero-h: auto; }
  .hero__slide { min-height: 0; }
  .hero__inner { padding-block: clamp(2.6rem, 8vw, 4rem); }
}

@media (max-width: 640px) {
  .hero__inner { padding-block: 2.2rem 1.8rem; }
  .hero__eyebrow { font-size: .74rem; line-height: 1.4; align-items: flex-start; }
  .hero__eyebrow .dot { margin-top: .38rem; }
  .hero__eyebrow::after { display: none; }
  .hero__lead { font-size: 1rem; line-height: 1.58; }
  .hero__card { padding: 1.35rem 1.4rem; }
  .hero__card::before { left: 1.4rem; }
  .hero__facts li { padding: .6rem 0; }
  .hero__cardwrap { padding-bottom: 1rem; }
  .hero__controls { padding-bottom: 1.6rem; }

  .city-rail__item { padding: .8rem 1.1rem; font-size: .84rem; }
  .city-rail::before, .city-rail::after { width: 2.5rem; }
}

@media (max-width: 640px) {
  .hero__content { max-width: none; gap: 1.05rem; }
  .hero__title { font-size: clamp(2.2rem, 9.4vw, 3.2rem); line-height: .98; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__controls { flex-direction: column-reverse; align-items: stretch; gap: .9rem; }
  .hero__nav { justify-content: center; }
  .hero__dots { justify-content: center; }
  .hero__facts b { font-size: var(--fs-lg); }
}

@media (prefers-reduced-motion: reduce) {
  .city-rail__track { animation: none; flex-wrap: wrap; width: 100%; }
  .city-rail::before, .city-rail::after { display: none; }
  .hero--kenburns .hero__slide.is-active .hero__media img { animation: none; }
  .hero__slide { transition-duration: .01ms; transform: none !important; }
  .hero__slide.is-active > * { animation: none !important; }
}

/* --------------------------------------------------------------------------
   6. Bandeau de raccourcis (accès rapide)
   -------------------------------------------------------------------------- */

.quicklinks { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 40rem)  { .quicklinks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem)  { .quicklinks { grid-template-columns: repeat(4, 1fr); } }
.quicklink {
  background: var(--surface);
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  text-decoration: none;
  display: flex; flex-direction: column; gap: .5rem;
  transition: background var(--dur) var(--ease);
}
.quicklink:hover { background: var(--accent-soft); color: var(--text); }
.quicklink__icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: .35rem;
}
.quicklink__icon svg { width: 20px; height: 20px; }
.quicklink__title { font-family: var(--font-display); font-weight: 680; font-size: 1.05rem; letter-spacing: -.018em; }
.quicklink__desc { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.45; }

/* --------------------------------------------------------------------------
   7. Cartes
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__body { padding: clamp(1.1rem, 2vw, 1.5rem); display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__title { font-size: var(--fs-lg); font-weight: 680; letter-spacing: -.02em; line-height: 1.25; margin: 0; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.55; margin: 0; }
.card__meta { font-size: var(--fs-xs); color: var(--text-faint); display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; }
.card__foot { margin-top: auto; padding-top: .85rem; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .28rem .68rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}
.chip--green { background: color-mix(in srgb, var(--anem-sahel) 12%, #fff); color: var(--anem-sahel); }
.chip--neutral { background: var(--surface-alt); color: var(--text-muted); }
html[data-theme="dark"] .chip--green { background: color-mix(in srgb, var(--anem-sahel) 24%, var(--anem-night)); color: #6FD9B0; }

.card__badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  background: var(--surface); box-shadow: var(--shadow-sm);
}

/* Carte « organe » (structure) */
.organ-card {
  display: grid; gap: 1.1rem;
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.organ-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(var(--accent), var(--anem-ember));
}
.organ-card--green::before { background: linear-gradient(var(--anem-sahel), #4FC79A); }
.organ-card--ink::before { background: linear-gradient(var(--anem-ink-2), var(--anem-ink)); }
.organ-card__abbr {
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
}
.organ-card h3 { margin: 0; font-size: var(--fs-xl); }
.organ-card ul { margin: 0; padding-left: 1.05em; font-size: var(--fs-sm); color: var(--text-muted); }
.organ-card li { margin-bottom: .45em; }

/* Carte membre */
.member {
  text-align: left;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.member__photo { aspect-ratio: 4 / 5; background: var(--surface-alt); overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: filter var(--dur) var(--ease), transform 500ms var(--ease); }
.member:hover .member__photo img { filter: saturate(1.05); transform: scale(1.03); }
.member__body { padding: 1rem 1.1rem 1.2rem; }
.member__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; margin: 0 0 .15rem; }
.member__role { font-size: var(--fs-xs); color: var(--accent); font-weight: 600; margin: 0 0 .5rem; }
.member__city { font-size: var(--fs-xs); color: var(--text-faint); }
.member__socials { display: flex; gap: .35rem; margin-top: .7rem; }
.member__socials a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-alt); color: var(--text-muted); }
.member__socials a:hover { background: var(--accent); color: #fff; }
.member__socials svg { width: 15px; height: 15px; }

/* Carte région */
.region-card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-decoration: none;
  position: relative;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.region-card:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.region-card__city { font-family: var(--font-display); font-weight: 720; font-size: 1.12rem; letter-spacing: -.025em; }
.region-card__meta { font-size: var(--fs-xs); color: var(--text-muted); }
.region-card__count {
  position: absolute; top: 1rem; right: 1.1rem;
  font-size: var(--fs-xs); font-weight: 650; color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   8. Parcours (séquence numérotée — justifiée : c'est une chronologie)
   -------------------------------------------------------------------------- */

.journey { display: grid; gap: 0; counter-reset: step; }
.journey__step {
  display: grid;
  gap: .35rem 1.6rem;
  grid-template-columns: auto 1fr;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.journey__step:last-child { border-bottom: 1px solid var(--line); }
.journey__num {
  counter-increment: step;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -.04em;
  color: var(--line-strong);
  line-height: 1;
  min-width: 2.4ch;
  transition: color var(--dur) var(--ease);
}
.journey__num::before { content: counter(step, decimal-leading-zero); }
.journey__step:hover .journey__num { color: var(--accent); }
.journey__title { font-size: var(--fs-xl); margin: 0; }
.journey__text { font-size: var(--fs-md); color: var(--text-muted); margin: 0; max-width: 64ch; }
.journey__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; grid-column: 2; }

/* --------------------------------------------------------------------------
   9. Chiffres clés
   -------------------------------------------------------------------------- */

.stats { display: grid; gap: 1px; background: var(--line-invert); }
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface-deep); padding: clamp(1.6rem, 3vw, 2.4rem); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  color: #fff;
  display: flex; align-items: baseline; gap: .08em;
}
.stat__suffix { font-size: .48em; color: var(--anem-ember); }
.stat__label { margin-top: .7rem; font-size: var(--fs-sm); color: rgba(255,255,255,.62); line-height: 1.45; }

/* --------------------------------------------------------------------------
   10. FAQ (accordéon)
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0;
  background: none; border: 0;
  text-align: left; cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 640;
  letter-spacing: -.02em;
  line-height: 1.35;
  color: var(--text);
}
.faq__q:hover { color: var(--accent); }
.faq__icon { flex: none; width: 24px; height: 24px; position: relative; margin-top: .2rem; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); opacity: 0; }
.faq__q[aria-expanded="true"] { color: var(--accent); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 1.4rem; color: var(--text-muted); max-width: 68ch; }

/* --------------------------------------------------------------------------
   11. Onglets
   -------------------------------------------------------------------------- */

.tabs__list {
  display: flex; flex-wrap: wrap; gap: .4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding: 0; list-style: none;
}
.tabs__list li { margin: 0; }
.tabs__btn {
  background: none; border: 0; cursor: pointer;
  padding: .8rem 1.05rem;
  font-weight: 600; font-size: var(--fs-sm);
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tabs__btn[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs__panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   12. Partenaires
   -------------------------------------------------------------------------- */

.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.8rem, 5vw, 4.5rem); }
.partners img { max-height: 72px; width: auto; opacity: .72; filter: grayscale(1); transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease); }
.partners a:hover img { opacity: 1; filter: none; }
html[data-theme="dark"] .partners img { filter: grayscale(1) invert(1) brightness(1.6); }
html[data-theme="dark"] .partners a:hover img { filter: invert(1) brightness(1.6); }

/* --------------------------------------------------------------------------
   13. Appel à l'action
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(118deg, var(--anem-ink) 0%, var(--anem-ink-2) 58%, color-mix(in srgb, var(--anem-flame) 62%, var(--anem-ink-2)) 100%);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 4rem);
  display: grid;
  gap: 1.8rem;
  align-items: center;
}
@media (min-width: 56rem) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.cta-band h2 { color: #fff; margin-bottom: .5rem; font-size: var(--fs-3xl); }
.cta-band p { color: rgba(255,255,255,.78); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cta-band__pattern { position: absolute; inset: 0; opacity: .16; pointer-events: none; }

/* --------------------------------------------------------------------------
   14. Contenu éditorial (prose)
   -------------------------------------------------------------------------- */

.prose { font-family: var(--font-prose); font-size: 1.1rem; line-height: 1.72; color: var(--text); }
.prose p { max-width: 68ch; margin-bottom: 1.35em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); margin-top: 2.2em; }
.prose h2 { font-size: var(--fs-2xl); }
.prose h3 { font-size: var(--fs-xl); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { max-width: 66ch; margin-bottom: 1.35em; }
.prose li { margin-bottom: .5em; }
.prose img, .prose figure { margin-block: 2rem; border-radius: var(--radius-md); overflow: hidden; }
.prose figcaption { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-faint); padding-top: .6rem; text-align: center; }
.prose a { color: var(--accent); }
.prose .wp-block-pullquote, .prose blockquote { font-family: var(--font-display); }

.entry-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.entry-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 1.1rem; }
.entry-hero__title { font-size: var(--fs-4xl); margin-bottom: .5rem; }
.entry-hero__lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; }
.entry-cover { margin-block: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; }
.entry-cover img { width: 100%; height: 100%; object-fit: cover; }

.breadcrumbs { font-size: var(--fs-xs); color: var(--text-faint); padding-block: 1rem; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .45; }

.entry-footer { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.share { display: flex; gap: .4rem; align-items: center; }
.share a, .share button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text-muted); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.share svg { width: 17px; height: 17px; }

.post-nav { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin-top: var(--space-7); }
@media (min-width: 44rem) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { background: var(--surface); padding: 1.6rem 1.4rem; text-decoration: none; display: block; }
.post-nav a:hover { background: var(--surface-alt); color: var(--text); }
.post-nav small { display: block; font-size: var(--fs-xs); color: var(--text-faint); margin-bottom: .3rem; }
.post-nav span { font-family: var(--font-display); font-weight: 640; letter-spacing: -.02em; }
.post-nav .next { text-align: right; }

/* Table des matières */
.toc { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.25rem 1.35rem; background: var(--surface-alt); }
.toc h2 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: .8rem; letter-spacing: -.01em; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; font-size: var(--fs-sm); }
.toc li { counter-increment: toc; margin-bottom: .45em; }
.toc a { text-decoration: none; color: var(--text-muted); display: flex; gap: .6rem; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--text-faint); font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a.is-current { color: var(--accent); }

/* --------------------------------------------------------------------------
   15. Formulaires
   -------------------------------------------------------------------------- */

.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field .req { color: var(--accent); }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
input[type="password"], input[type="search"], input[type="number"], input[type="date"],
select, textarea {
  width: 100%;
  padding: .82rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.field__hint { font-size: var(--fs-xs); color: var(--text-faint); }

.form-note { font-size: var(--fs-xs); color: var(--text-faint); margin-top: .8rem; }
.form-status { padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); margin-bottom: 1rem; }
.form-status--ok { background: color-mix(in srgb, var(--anem-sahel) 12%, transparent); color: var(--anem-sahel); border: 1px solid color-mix(in srgb, var(--anem-sahel) 30%, transparent); }
.form-status--err { background: var(--accent-soft); color: var(--accent-hover); border: 1px solid var(--accent-ring); }

.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] { flex: 1; }

/* --------------------------------------------------------------------------
   16. Pagination
   -------------------------------------------------------------------------- */

.pagination { margin-top: var(--space-7); display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .35rem; }
.pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 42px; height: 42px; padding-inline: .7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: var(--fs-sm); font-weight: 600;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--anem-ink); border-color: var(--anem-ink); color: #fff; }
.pagination .dots { border-color: transparent; }

/* --------------------------------------------------------------------------
   17. Pied de page
   -------------------------------------------------------------------------- */

.site-footer { background: var(--surface-deep); color: var(--text-invert-mut); }
.footer-top { padding-block: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 72rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }

.footer-brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: -.03em; margin-bottom: .5rem; }
.footer-brand p { font-size: var(--fs-sm); color: rgba(255,255,255,.6); max-width: 38ch; }
.footer-motto {
  display: inline-flex; gap: .6rem; align-items: center;
  margin-top: 1.1rem; padding: .5rem .95rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs); color: rgba(255,255,255,.8);
}
.footer-motto .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--anem-ember); }

.footer-col h3 { font-size: var(--fs-sm); font-weight: 700; color: #fff; margin-bottom: 1.1rem; letter-spacing: -.005em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .62em; }
.footer-col a { font-size: var(--fs-sm); color: rgba(255,255,255,.62); text-decoration: none; }
.footer-col a:hover { color: var(--anem-ember); }

.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); color: rgba(255,255,255,.62); margin-bottom: .85em; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: .2rem; color: var(--anem-ember); }

.socials { display: flex; gap: .5rem; margin-top: 1.3rem; }
.socials a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

.footer-news { max-width: 34ch; }
.footer-news form { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.footer-news input[type="email"] {
  flex: 1 1 12rem;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.footer-news input[type="email"]::placeholder { color: rgba(255,255,255,.38); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem;
  align-items: center; justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.45);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--anem-ink); color: #fff;
  border: 0; cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }
.to-top svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   18. Utilitaires & états
   -------------------------------------------------------------------------- */

.u-center { text-align: center; }
.u-muted { color: var(--text-muted); }
.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }
.u-flex { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }

.divider-rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.empty-state {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.empty-state h2 { font-size: var(--fs-2xl); margin-bottom: .6rem; }
.empty-state p { margin-inline: auto; color: var(--text-muted); }

.notice-inline {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  font-size: var(--fs-sm);
}
.notice-inline svg { width: 19px; height: 19px; flex: none; color: var(--accent); margin-top: .15rem; }

/* Révélation à l'entrée : un seul mouvement orchestré, désactivable */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Barre de progression de lecture */
.read-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 400;
  background: linear-gradient(90deg, var(--accent), var(--anem-ember));
  width: 0;
  transition: width 90ms linear;
}

/* Impression */
@media print {
  .site-header, .site-footer, .to-top, .cta-band, .breadcrumbs, .share { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { font-size: 11pt; }
}

/* --------------------------------------------------------------------------
   19. Fiche d'un bureau régional
   -------------------------------------------------------------------------- */

.region-hero {
  position: relative;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  isolation: isolate;
}
.region-hero--media {
  min-height: clamp(340px, 46vh, 480px);
  display: grid;
  align-items: end;
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.region-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.region-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.region-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(14, 20, 40, .93) 4%, rgba(14, 20, 40, .55) 48%, rgba(14, 20, 40, .32) 100%),
    radial-gradient(70% 80% at 82% 0%, rgba(226, 85, 28, .3), transparent 60%);
}
.region-hero--media .breadcrumbs,
.region-hero--media .breadcrumbs a { color: rgba(255, 255, 255, .72); }
.region-hero--media .breadcrumbs a:hover { color: #fff; }

.region-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  font-weight: 760;
  letter-spacing: -.032em;
  line-height: 1.02;
  margin: .35rem 0 .7rem;
}
.region-hero__lead {
  font-size: var(--fs-lg);
  max-width: 58ch;
  margin: 0;
  color: var(--text-muted);
}
.region-hero--media .region-hero__lead { color: rgba(255, 255, 255, .82); }

.region-hero__facts {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2.6rem;
}
.region-hero__facts li { display: grid; gap: .1rem; }
.region-hero__facts b {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 740;
  letter-spacing: -.025em;
  line-height: 1;
}
.region-hero__facts span { font-size: var(--fs-xs); opacity: .68; }

.region-h2 {
  font-size: var(--fs-2xl);
  letter-spacing: -.022em;
  margin: 3rem 0 1.2rem;
}
.editorial__main > section:first-child .region-h2 { margin-top: 0; }

.region-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  font-size: var(--fs-sm);
}
.region-contacts li { display: flex; gap: .8rem; align-items: flex-start; }
.region-contacts svg { flex: none; margin-top: .15rem; color: var(--accent); }
.region-contacts strong { font-weight: 650; }

.region-map {
  margin-top: 1.2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.region-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.socials--sm { margin-top: 1.2rem; gap: .5rem; }
.socials--sm a { width: 2.2rem; height: 2.2rem; border-color: var(--line); color: var(--text); }

/* --- Vidéo --- */
.region-video__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}
.region-video__side h3 { font-size: var(--fs-xl); color: var(--accent); margin: 0 0 .6rem; }
.region-video__side p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0 0 .8rem; }

.video-embed {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--anem-ink);
  cursor: pointer;
  border: 0;
  padding: 0;
  isolation: isolate;
}
.video-embed__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.video-embed__poster--empty {
  background: linear-gradient(135deg, var(--anem-ink), var(--anem-night) 60%, rgba(226, 85, 28, .35));
}
.video-embed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 30, .78), rgba(10, 14, 30, .14) 55%, rgba(10, 14, 30, .3));
  transition: opacity var(--dur) var(--ease);
}
.video-embed:hover .video-embed__poster { transform: scale(1.045); }
.video-embed:hover::after { opacity: .82; }

.video-embed__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4.6rem;
  height: 4.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--anem-flame);
  color: #fff;
  z-index: 2;
  box-shadow: 0 14px 40px -12px rgba(226, 85, 28, .8);
  transition: transform var(--dur) var(--ease);
}
.video-embed__play svg { margin-left: .18rem; }
.video-embed:hover .video-embed__play { transform: scale(1.08); }

.video-embed__label {
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 1.1rem;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.video-embed.is-playing { cursor: default; }
.video-embed.is-playing::after,
.video-embed.is-playing .video-embed__play,
.video-embed.is-playing .video-embed__label { display: none; }
.video-embed__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- Galerie --- */
.region-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .7rem;
}
.region-gallery__item {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
}
.region-gallery__item--wide { grid-column: span 2; aspect-ratio: 8 / 5; }
.region-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.region-gallery__item:hover img { transform: scale(1.05); }

/* --- Carte de bureau régional, version photo --- */
.region-card--photo {
  display: grid;
  padding: 0;
  overflow: hidden;
  text-align: left;
  align-content: start;
}
.region-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}
.region-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.region-card--photo:hover .region-card__media img { transform: scale(1.06); }
.region-card--photo .region-card__body {
  display: grid;
  gap: .25rem;
  padding: 1.1rem 1.25rem 1.25rem;
  position: relative;
}
.region-card--photo .region-card__count {
  position: absolute;
  top: -1.6rem;
  right: 1.1rem;
  background: var(--anem-flame);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: .2rem .65rem;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.region-card__badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .5rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 860px) {
  .region-video__grid { grid-template-columns: 1fr; }
  .region-gallery__item--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   20. Jetons d'état
   -------------------------------------------------------------------------- */

.chip--ok {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: color-mix(in srgb, var(--anem-sahel) 14%, transparent);
  color: var(--anem-sahel);
  border-color: color-mix(in srgb, var(--anem-sahel) 30%, transparent);
  font-weight: 650;
}

.no-print { }

/* --------------------------------------------------------------------------
   21. Finitions mobiles
   -------------------------------------------------------------------------- */

@media (max-width: 48rem) {

  /* Titres de page : on évite les blocs de texte de trois mots par ligne */
  .entry-hero { padding-block: 2rem 1.4rem; }
  .entry-hero__title { font-size: clamp(1.95rem, 8.4vw, 2.7rem); line-height: 1.04; }
  .entry-hero__lead { font-size: 1rem; }
  .entry-hero__meta { gap: .5rem .9rem; font-size: .78rem; }

  .section-head { margin-bottom: 1.8rem; }
  .section-head__title { font-size: clamp(1.7rem, 7.4vw, 2.3rem); line-height: 1.08; }

  .block { padding-block: clamp(2.4rem, 9vw, 3.5rem); }

  /* Onglets et filtres : défilement horizontal plutôt que passage à la ligne */
  .tabs__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-snap-type: x proximity;
  }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tabs__list > li { flex: none; scroll-snap-align: start; }

  /* Accordéons : cible tactile confortable */
  .faq__q { padding: 1.05rem .2rem; font-size: 1rem; gap: 1rem; }

  /* Séquence numérotée */
  .journey__step { gap: 1rem; }
  .journey__num { font-size: 1.6rem; }
  .journey__title { font-size: 1.15rem; }

  /* Fiche régionale */
  .region-hero--media { min-height: clamp(260px, 42vh, 340px); padding-block: 2.5rem 2rem; }
  .region-hero__title { font-size: clamp(2rem, 8.6vw, 2.9rem); }
  .region-hero__facts { gap: .8rem 1.6rem; }
  .region-hero__facts b { font-size: 1.45rem; }
  .region-map { aspect-ratio: 3 / 2; }
  .region-h2 { font-size: 1.45rem; margin-top: 2.2rem; }
  .region-gallery { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .video-embed__play { width: 3.4rem; height: 3.4rem; }
  .video-embed__label { font-size: .92rem; left: .9rem; right: .9rem; bottom: .8rem; }

  /* Appel à l'action */
  .cta-band { padding: 1.8rem 1.4rem; }
  .cta-band h2 { font-size: clamp(1.5rem, 6.6vw, 2rem); }
  .cta-band .btn { width: 100%; justify-content: center; }

  /* Formulaires : champs pleine largeur, pas de zoom iOS */
  input[type="text"], input[type="email"], input[type="url"], input[type="tel"],
  input[type="password"], input[type="search"], input[type="number"], input[type="date"],
  select, textarea { font-size: 16px; }

  /* Pied de page */
  .footer-grid { gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* Tableaux et contenus larges : défilement contenu plutôt que page débordante */
.prose table,
.wp-block-table { display: block; max-width: 100%; overflow-x: auto; }
.prose pre { overflow-x: auto; }
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; }

/* Cibles tactiles : 44 px minimum sur les commandes isolées */
@media (pointer: coarse) {
  .icon-btn, .submenu-toggle, .hero__btn { min-width: 40px; min-height: 40px; }
  .hero__dot { height: .45rem; }
}
