/* =====================================================================
   ESS — Home page styles
   ===================================================================== */

/* ---- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, #e9f4fb 0%, transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, var(--c-mist) 100%);
  overflow: hidden;
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-black);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero__title .accent { color: var(--c-blue); }
.hero__title .accent-green { color: var(--c-green-700); }
.hero__lead { font-size: var(--fs-lead); color: var(--c-slate); margin-top: var(--sp-5); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__trust { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-7); flex-wrap: wrap; }
.hero__trust span { font-size: var(--fs-xs); color: var(--c-slate); text-transform: uppercase; letter-spacing: .08em; font-weight: var(--fw-semi); }
.hero__partners { display: flex; gap: var(--sp-2); }

/* Hero media */
.hero__media { position: relative; }
.hero__media-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 5 / 5.6; box-shadow: var(--sh-lg);
  background: linear-gradient(150deg, var(--c-blue) 0%, var(--c-sky) 100%);
}
.hero__media-frame img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .5; }
.hero__media-motif { position: absolute; inset: 0; display: grid; place-items: center; }
.hero__media-motif .diamonds i { width: 46px; height: 46px; opacity: .9; }
.hero__float {
  position: absolute; left: -18px; bottom: 28px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: var(--sp-4) var(--sp-5); display: flex; align-items: center; gap: var(--sp-4);
  max-width: 78%;
}
.hero__float .stat__num { font-size: 2rem; }
.hero__float-ico { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--tag-green-bg); color: var(--c-green-700); display: grid; place-items: center; flex: none; }
.hero__badge {
  position: absolute; right: -10px; top: 26px;
  background: #fff; border-radius: var(--r-pill); box-shadow: var(--sh-md);
  padding: .5rem 1rem; font-size: var(--fs-xs); font-weight: var(--fw-semi); color: var(--c-blue);
  display: flex; align-items: center; gap: 8px;
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ---- Full-bleed photographic hero (scrim) -------------------------- */
.hero-full {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* full viewport, accounting for mobile browser UI */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #05365f; /* fallback while photo loads / if absent */
  color: #fff;
}
.hero-full__bg { position: absolute; inset: 0; z-index: 0; }
.hero-full__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Contrast scrim — guarantees AA over any photo (dark toward text zone) */
.hero-full__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(3,26,48,.45) 0%, rgba(3,26,48,0) 28%, rgba(3,26,48,.15) 52%, rgba(3,20,38,.88) 100%),
    linear-gradient(90deg, rgba(3,20,38,.72) 0%, rgba(3,20,38,.28) 52%, transparent 92%);
}
.hero-full__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(2.5rem, 2rem + 6vw, 6rem); }
.hero-full__content { max-width: 820px; }

/* Micro-animation d'entrée au chargement (staggered) */
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-full__content--load > * { opacity: 0; animation: heroIn .7s var(--ease) both; }
  .hero-full__content--load > *:nth-child(1) { animation-delay: .10s; }
  .hero-full__content--load > *:nth-child(2) { animation-delay: .22s; }
  .hero-full__content--load > *:nth-child(3) { animation-delay: .34s; }
  .hero-full__content--load > *:nth-child(4) { animation-delay: .46s; }
  .hero-full__content--load > *:nth-child(5) { animation-delay: .58s; }
  .hero-full__content--load > *:nth-child(6) { animation-delay: .68s; }
}
.hero-full .eyebrow { color: #d9ecfa; }
.hero-full .eyebrow::before { background: #8fe06a; }
.hero-full__title {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); /* max 64px */
  font-weight: var(--fw-black); line-height: 1.04; letter-spacing: -0.02em; color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.30);
}
.hero-full__title .accent-green { color: #9be870; }
.hero-full__lead { font-size: var(--fs-lead); color: #eaf3fb; margin-top: var(--sp-5); max-width: 56ch; text-shadow: 0 1px 14px rgba(0,0,0,.28); }
.hero-full__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-full__cta .btn { box-shadow: 0 8px 24px rgba(0,0,0,.28); }
/* Primary ESS blue — lift it off the dark photo so it stays visible */
.hero-full__cta .btn--primary { background: var(--c-blue); border-color: rgba(255,255,255,.14); }
.hero-full__cta .btn--primary:hover { background: var(--c-blue-700); }
.hero-full__trust { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-7); flex-wrap: wrap; }
.hero-full__trust > span { color: #cfe5f6; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: var(--fw-semi); }
.hero-full__partners { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.hero-full .partner-chip { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
/* Real partner logos sit on white chips so official (multicolor) artwork stays legible on the dark hero */
.hero-full__partners .partner-logo {
  border-radius: var(--r-md); padding: 8px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.hero-full__partners .partner-logo img { height: 30px; }
@media (max-width: 620px) { .hero-full__partners .partner-logo img { height: 26px; } }
/* Inline stat strip sitting on the scrim */
.hero-full__stats { display: flex; gap: clamp(1.2rem, .5rem + 3vw, 3rem); margin-top: var(--sp-7); flex-wrap: wrap; }
.hero-full__stats .stat__num { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); }
.hero-full__stats .stat__label { color: var(--c-on-blue); }
@media (max-width: 620px) { .hero-full { min-height: 78vh; } }

/* =====================================================================
   HERO — rotation des photos + texte tout blanc (.hero-full--rot)
   ---------------------------------------------------------------------
   Le hero d'origine est repris tel quel. Deux seules différences, et elles
   vivent toutes les deux dans ce MODIFICATEUR :

     1. la photo change toutes les 6 s ;
     2. le texte est d'une seule couleur, blanc.

   Pourquoi un modificateur et pas des retouches sur .hero-full :
   intranet/sadmin-contenu-editeur.html utilise .hero-full pour sa
   prévisualisation, avec UNE seule image dans son .hero-full__bg. Une
   animation posée sur `.hero-full__bg img` y ferait clignoter puis
   disparaître l'unique photo. Le modificateur n'existe que sur la page
   d'accueil publique : l'intranet reste exactement dans son état.
   ===================================================================== */

/* ---- 1. Rotation ------------------------------------------------------
   Les trois vues sont empilées et une seule est visible. Cadence et
   `@keyframes heroShot` : voir le commentaire des keyframes plus bas —
   cycle de 18 s, 6 s par vue, fondu d'1 s, retards négatifs. */
.hero-full--rot .hero-full__bg img {
  position: absolute; inset: 0;
  opacity: 0;
}
/* Repli : si aucune requête `prefers-reduced-motion` ne s'applique, c'est la
   première vue — la seule authentique — qui reste, et non la dernière du DOM
   par accident d'empilement. */
.hero-full--rot .hero-full__bg img:nth-child(1) { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-full--rot .hero-full__bg img { animation: heroShot 18s linear infinite both; }
  .hero-full--rot .hero-full__bg img:nth-child(2) { animation-delay: -12s; }
  .hero-full--rot .hero-full__bg img:nth-child(3) { animation-delay: -6s; }
}

/* ---- 2. Une seule couleur de texte : blanc ---------------------------
   D'origine le hero empilait trois blancs teintés — #d9ecfa pour le
   sur-titre, #fff pour le titre, #eaf3fb pour le chapô — plus un mot en
   vert. Tout passe à #fff : une seule couleur, comme demandé.
   Les ombres portées restent : sur une photo, elles ne sont pas décoratives,
   ce sont elles qui garantissent le contraste quel que soit le cliché. */
.hero-full--rot .eyebrow,
.hero-full--rot .hero-full__lead { color: #fff; }
/* Le losange du sur-titre était vert : il suivait la couleur d'accent que
   l'on vient de retirer du texte. */
.hero-full--rot .eyebrow::before { background: #fff; }

/* ---- 3. Pas de double-losange sur le bouton primaire ------------------
   Le motif « ∙∙ » de la marque est vert : il rouvrirait la couleur que la
   règle ci-dessus vient de fermer. Annulé exactement comme components.css
   le fait déjà pour `.ix-shell` — le composant n'est pas touché, tous les
   autres boutons du site gardent leur losange. */
.hero-full--rot .hero-full__cta .btn--primary::before,
.hero-full--rot .hero-full__cta .btn--primary::after { content: none; }

/* ---- Cadence de la rotation : 6 s par vue -----------------------------
   6 s est la cadence courante des héros à défilement (Bootstrap 5 s par
   défaut, la plupart des héros éditoriaux entre 5 et 7 s). Le fondu dure 1 s
   — la Gates Foundation utilise 2 s (--transition-speed-2000) pour le sien,
   on reste donc dans la même famille, un cran plus vif.

   Cycle de 18 s pour trois vues, soit 33,33 % par vue. Le fondu d'1 s vaut
   5,56 % du cycle : pleine opacité de 0 à 27,78 %, extinction à 33,33 %,
   puis retour en fondu sur les 5,56 % finaux. Si le cycle change, ces
   quatre valeurs sont à recalculer — sinon les vues se chevauchent ou
   laissent un trou.

   Les retards sont NÉGATIFS : un retard positif laisserait les trois vues
   sur leur image à 0 % (donc toutes visibles) pendant l'attente. `-12s`
   place la deuxième vue à un tiers du cycle déjà écoulé, ce qui la fait
   apparaître à t = 6 s ; `-6s` place la troisième à t = 12 s. */
@keyframes heroShot {
  0%, 27.78%     { opacity: 1; }
  33.33%, 94.44% { opacity: 0; }
  100%           { opacity: 1; }
}

/* ---- « Qu'est-ce que l'ESS ? » — bloc éditorial (texte à gauche) ----- */
.ess-def__grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center;
}
.ess-def__media { position: relative; margin: 0; }
.ess-def__media img {
  width: 100%; height: clamp(360px, 42vw, 540px); object-fit: cover;
  border-radius: 5px; box-shadow: var(--sh-lg); display: block;
}
/* Floating label card — editorial anchor (bottom-left, points toward the text) */
.ess-def__badge {
  position: absolute; left: clamp(-8px, -1vw, -22px); bottom: clamp(20px, 3vw, 40px);
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: var(--sp-4) var(--sp-5); display: flex; align-items: center; gap: var(--sp-4);
  max-width: 82%;
}
.ess-def__badge-k {
  font-family: var(--font-head); font-weight: var(--fw-black); color: #fff;
  background: var(--c-blue); border-radius: var(--r-md);
  width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 1.25rem; letter-spacing: .02em; flex: none;
}
.ess-def__badge-t { font-weight: var(--fw-semi); color: var(--c-ink); line-height: 1.25; font-size: var(--fs-sm); }

.ess-def__body { max-width: 60ch; }
.ess-def__title {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); font-weight: var(--fw-black);
  line-height: 1.1; letter-spacing: -0.015em; color: var(--c-ink);
}
.ess-def__title .accent { color: var(--c-blue); }
/* Single body text size for the whole section (title = one size, text = 16px) */
.ess-def__lead,
.ess-def__text { font-size: 1rem; line-height: 1.6; margin-top: var(--sp-4); font-weight: var(--fw-regular); }
.ess-def__lead { color: var(--c-ink); }
.ess-def__text { color: var(--c-slate); }

/* « Une initiative de » — noms des organisations (texte, sans logo) */
.ess-def__initiative { margin-top: var(--sp-7); padding-top: var(--sp-6); border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); }
.ess-def__initiative-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: var(--fw-semi); color: var(--c-slate); }
.ess-def__orgs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); }
.ess-def__orgs img { height: 40px; width: auto; object-fit: contain; display: block; }

@media (max-width: 900px) {
  .ess-def__grid { grid-template-columns: 1fr; }
  .ess-def__body { max-width: none; }
  .ess-def__media { order: -1; }
  .ess-def__media img { height: clamp(300px, 60vw, 440px); }
}

/* ---- Impact cards (photo + title + footer stat) -------------------- */
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 900px) { .impact { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* Editorial card : image → titre → texte → CTA (fond clair) */
.impact-card {
  display: flex; flex-direction: column;
  background: var(--c-paper); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-sm); transition: box-shadow var(--dur), transform var(--dur) var(--ease);
}
.impact-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }

.impact-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-mist-200); }
.impact-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.impact-card:hover .impact-card__media img { transform: scale(1.05); }
/* Petit indicateur chiffré conservé, en surimpression discrète */
.impact-card__stat {
  position: absolute; left: var(--sp-4); bottom: var(--sp-4); z-index: 2;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(0, 51, 95, .92); color: #fff;
  font-size: var(--fs-xs); font-weight: var(--fw-semi);
  backdrop-filter: blur(4px); box-shadow: var(--sh-sm);
}
.impact-card__stat b { font-family: var(--font-head); font-size: var(--fs-base); font-weight: var(--fw-black); color: var(--c-yellow); }
/* Numéro de l'objectif, à hauteur du titre : les trois missions se
   lisent comme une séquence, pas comme trois cartes interchangeables.
   `align-items: start` et non `center` — sur un titre de deux lignes, un
   numéro centré verticalement flotterait au milieu du texte au lieu de
   marquer son début. */
.impact-card__title { display: flex; align-items: start; gap: var(--sp-3); }
.impact-card__num {
  flex: none; margin-top: 1px;
  width: 30px; height: 30px; border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--tag-blue-bg); color: var(--c-blue);
  font-family: var(--font-head); font-weight: var(--fw-black);
  font-size: var(--fs-sm); line-height: 1;
}

.impact-card__body { flex: 1; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.impact-card__title { font-size: var(--fs-h4); font-weight: var(--fw-bold); line-height: 1.18; color: var(--c-ink); }
.impact-card__title a { color: inherit; }
.impact-card__title a:hover { color: var(--c-blue); }
.impact-card__title .hl { color: var(--c-green-700); }
.impact-card__desc { color: var(--c-slate); font-size: var(--fs-sm); line-height: 1.55; }
.impact-card__link { margin-top: auto; padding-top: var(--sp-2); color: var(--c-blue); font-weight: var(--fw-semi); font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 8px; }
.impact-card__link .ico { width: 1.1em; height: 1.1em; flex: none; transition: transform var(--dur-fast) var(--ease); }
.impact-card:hover .impact-card__link .ico { transform: translateX(4px); }

/* ---- Un mot de la direction (édito sur fond sombre) ---------------- */
.edito-sec { background: var(--c-blue-900); color: #fff; }
.edito {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.edito__chip {
  display: inline-block; padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.14); color: #fff;
  font-size: var(--fs-eyebrow); font-weight: var(--fw-bold); letter-spacing: .04em; text-transform: uppercase;
}
.edito__quote {
  margin: var(--sp-5) 0 0; padding: 0; border: none;
  font-family: var(--font-head); font-weight: var(--fw-bold);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); line-height: 1.22; color: #fff;
}
.edito__lead { margin-top: var(--sp-4); color: #cfe0f0; font-size: var(--fs-base); line-height: 1.6; max-width: 58ch; }
.edito__author { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: 2px; }
.edito__name { font-family: var(--font-head); font-weight: var(--fw-bold); font-size: 1.2rem; color: #fff; }
.edito__role { color: var(--c-yellow); font-size: var(--fs-sm); font-weight: var(--fw-semi); max-width: 58ch; }
.edito__media { margin: 0; }
.edito__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
  border-radius: var(--r-xl); box-shadow: var(--sh-lg, 0 20px 45px rgba(0,0,0,.35));
}
@media (max-width: 860px) {
  .edito { grid-template-columns: 1fr; gap: var(--sp-6); }
  .edito__media { order: -1; max-width: 420px; }
  .edito__media img { aspect-ratio: 4 / 3; }
}

/* ---- Accompagnement : parcours interactif (image + étapes qui défilent) ---- */
.accomp2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: stretch; margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
}

/* Colonne image (gauche) : s'étire pour épouser la hauteur des étapes */
.accomp2__media { position: relative; }
.accomp2__frame {
  position: relative; height: 100%; min-height: 440px;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--c-mist-200); box-shadow: var(--sh-md);
}
.accomp2__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity var(--dur-slow) var(--ease), transform 8s linear;
}
.accomp2__img.is-active { opacity: 1; transform: scale(1); }
.accomp2__toggle {
  position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--c-blue); backdrop-filter: blur(4px);
  display: grid; place-items: center; box-shadow: var(--sh-sm);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.accomp2__toggle:hover { background: #fff; transform: scale(1.06); }
.accomp2__toggle .ico { width: 22px; height: 22px; }

/* Colonne étapes (droite) */
.accomp2__steps { list-style: none; margin: 0; padding: 0; }
.accomp2__step { border-top: 1px solid var(--c-line); }
.accomp2__step:first-child { border-top: none; }
.accomp2__stepbtn {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-2); font: inherit; color: inherit;
}
.accomp2__num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: var(--fw-bold); font-size: var(--fs-sm);
  color: var(--c-slate); background: var(--c-paper);
  border: 1.5px solid var(--c-line-strong);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.accomp2__title {
  display: block; font-size: var(--fs-h4); font-weight: var(--fw-bold);
  line-height: 1.25; color: var(--c-slate);
  transition: color var(--dur-fast) var(--ease);
}
.accomp2__desc {
  display: block; margin-top: var(--sp-2); color: var(--c-slate);
  font-size: var(--fs-sm); line-height: 1.55;
  transition: color var(--dur-fast) var(--ease);
}
/* Barre de progression sous l'étape active (se remplit sur la durée) */
.accomp2__bar { display: block; height: 3px; margin-top: var(--sp-3); border-radius: 999px; background: var(--c-line); overflow: hidden; opacity: 0; transition: opacity var(--dur) var(--ease); }
.accomp2__bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--c-green); }

/* État actif (la barre est pilotée en JS pour une pause précise) */
.accomp2__step.is-active .accomp2__num { color: #fff; background: var(--c-green); border-color: var(--c-green); }
.accomp2__step.is-active .accomp2__title { color: var(--c-ink); }
.accomp2__step.is-active .accomp2__desc { color: var(--c-slate); }
.accomp2__step.is-active .accomp2__bar { opacity: 1; }
/* Survol des étapes inactives (indique qu'elles sont cliquables) */
.accomp2__stepbtn:hover .accomp2__title { color: var(--c-ink); }
.accomp2__stepbtn:hover .accomp2__num { border-color: var(--c-green); color: var(--c-green); }
.accomp2__step.is-active .accomp2__stepbtn:hover .accomp2__num { color: #fff; }

.accomp-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }

@media (max-width: 860px) {
  .accomp2 { grid-template-columns: 1fr; gap: var(--sp-6); max-width: 560px; margin-inline: auto; }
  .accomp2__stepbtn { padding-block: var(--sp-4); }
}
@media (prefers-reduced-motion: reduce) {
  .accomp2__img { transition: opacity var(--dur) linear; transform: none; }
}

/* ---- KPI band (legacy, conservé pour compat) ----------------------- */
.kpi-band { background: linear-gradient(120deg, var(--c-blue) 0%, var(--c-blue-700) 60%, #0a63ad 100%); color: #fff; }
.kpi-band h2 { color: #fff; }
.kpi-band .stat__num { color: #fff; }
.kpi-band .stat__label { color: var(--c-on-blue); }
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-5); }
.kpi-grid .stat { padding: var(--sp-3) 0; border-left: 2px solid rgba(255,255,255,.16); padding-left: var(--sp-4); }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Chiffres clés + carte des wilayas ----------------------------- */
.reach-sec { background: linear-gradient(180deg, #FCFDFE 0%, #F4F8FC 100%); }
.reach { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }

/* Carte Algérie (image) — un peu plus grande */
.reach__map { position: relative; }
.reach__img { width: 100%; height: auto; display: block; }

/* Points wilayas overlay */
.reach__pins { position: absolute; inset: 0; pointer-events: none; }
.reach__pin {
  position: absolute; transform: translate(-50%, -50%);
  background: none; border: none; padding: 0; cursor: pointer; pointer-events: auto;
  line-height: 0; z-index: 2;
}
.reach__pin-dot {
  display: block; position: relative; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-blue); border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,51,95,.35);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
/* Halo pulsant discret */
.reach__pin-dot::after {
  content: ""; position: absolute; inset: -2.5px; border-radius: 50%;
  border: 2px solid var(--c-sky); opacity: .55; animation: reachPulse 2.4s ease-out infinite;
}
@keyframes reachPulse { 0% { transform: scale(1); opacity: .55; } 70%,100% { transform: scale(2.2); opacity: 0; } }
.reach__pin:hover .reach__pin-dot,
.reach__pin:focus-visible .reach__pin-dot { transform: scale(1.3); background: var(--c-sky); }
/* Étiquette du nom au survol (sous le point pour ne pas dépasser en haut) */
.reach__pin-label {
  position: absolute; top: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--c-blue-900); color: #fff; padding: 4px 10px; border-radius: 7px;
  font-size: var(--fs-xs); font-weight: var(--fw-semi); line-height: 1.2; white-space: nowrap;
  opacity: 0; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.22); z-index: 3;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.reach__pin-label::after {
  content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-bottom-color: var(--c-blue-900);
}
.reach__pin:hover .reach__pin-label,
.reach__pin:focus-visible .reach__pin-label { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .reach__pin-dot::after { animation: none; } }
.reach__legend { margin: 0 0 var(--sp-5); color: var(--c-slate); font-size: var(--fs-sm); line-height: 1.7; }
.reach__legend b { color: var(--c-blue); }

/* Chiffres clés en 4 cartes (grille 2×2, pastille + nombre + libellé) */
.kpi-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.kpi-card { display: flex; flex-direction: column; gap: var(--sp-2); padding: clamp(1.1rem, 0.7rem + 1.5vw, 1.9rem); }
.kpi-card:nth-child(odd) { border-right: 1px solid var(--c-line); }
.kpi-card:nth-child(1), .kpi-card:nth-child(2) { border-bottom: 1px solid var(--c-line); }
.kpi-card__ico {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--tag-green-bg); color: var(--tag-green-fg);
  display: grid; place-items: center; margin-bottom: var(--sp-2);
}
.kpi-card__ico .ico { width: 26px; height: 26px; }
.kpi-card__num { font-family: var(--font-head); font-weight: var(--fw-black); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1; letter-spacing: -0.02em; color: var(--c-ink); }
.kpi-card__label { color: var(--c-ink); font-weight: var(--fw-semi); font-size: var(--fs-sm); line-height: 1.3; }

@media (max-width: 860px) {
  .reach { grid-template-columns: 1fr; }
  .reach__map { max-width: 500px; margin-inline: auto; }
}

/* ---- Section header row (title + link) ----------------------------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.head-row .section-head { margin-bottom: 0; }

/* Two-column split: projects carousel + agenda side */
.split-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-7); align-items: start; }
@media (max-width: 980px) { .split-2 { grid-template-columns: 1fr; } }

/* ---- FAQ / orientation (accueil) — cartes arrondies, accent PNUD ---- */
/* Fond de section bleu clair : les cartes blanches se détachent nettement */
.faq-sec { background: linear-gradient(180deg, #EDF4FB 0%, #E1EDF8 100%); }
.faq-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }

/* Colonne gauche : gros titre + texte + preuve sociale */
.faq-aside { position: sticky; top: calc(var(--header-h, 76px) + var(--sp-5)); }
.faq-aside__title { font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.2rem); font-weight: var(--fw-black); letter-spacing: -0.02em; line-height: 1; color: var(--c-ink); }
.faq-aside__text { color: var(--c-slate); font-size: var(--fs-lead); line-height: 1.55; margin-top: var(--sp-5); max-width: 34ch; }
.faq-proof { display: flex; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); }
.faq-proof__avatars { display: flex; }
.faq-proof__avatars img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-paper); box-shadow: 0 1px 4px rgba(3,20,38,.18); }
.faq-proof__avatars img + img { margin-left: -14px; }
.faq-proof__stat b { display: block; font-family: var(--font-head); font-weight: var(--fw-black); font-size: 1.35rem; color: var(--c-ink); line-height: 1.05; }
.faq-proof__plus { color: var(--c-blue); }
.faq-proof__stat span { color: var(--c-slate); font-size: var(--fs-sm); }
.faq-aside__cta { margin-top: var(--sp-7); }

/* Colonne droite : accordéon en cartes arrondies */
.faq-home { display: grid; gap: var(--sp-4); }
.faq-home details {
  border: 1px solid var(--c-line); border-radius: 16px;
  background: var(--c-paper); overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,51,95,.06);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.faq-home details:hover { border-color: var(--c-line-strong); box-shadow: 0 8px 24px rgba(0,51,95,.10); }
/* État ouvert : liseré + halo bleu PNUD + léger fond teinté */
.faq-home details[open] {
  border-color: var(--c-blue);
  background: var(--c-paper); /* même fond blanc qu'à l'état fermé */
  box-shadow: 0 0 0 1px var(--c-blue), 0 12px 30px rgba(0,88,165,.12);
}
.faq-home summary {
  padding: var(--sp-5) var(--sp-6); font-weight: var(--fw-semi); font-size: 1.05rem; color: var(--c-ink);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: var(--sp-4);
}
.faq-home summary::-webkit-details-marker { display: none; }
/* Chevron dessiné en CSS, pivote à l'ouverture */
.faq-home summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--c-blue); border-bottom: 2px solid var(--c-blue);
  transform: rotate(45deg); transition: transform var(--dur-fast) var(--ease);
}
.faq-home details[open] summary { color: var(--c-blue); }
.faq-home details[open] summary::after { transform: rotate(-135deg); }
.faq-home summary:hover { color: var(--c-blue); }
.faq-home__a { padding: 0 var(--sp-6) var(--sp-5); }
.faq-home__a p { color: var(--c-slate); line-height: 1.65; }
.faq-home__a b { color: var(--c-ink); font-weight: var(--fw-semi); }
.faq-home__links { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-4); }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .faq-aside__text { max-width: none; }
}

/* ---- CTA band ------------------------------------------------------ */
.cta-band {
  background: linear-gradient(120deg, var(--c-blue-900), var(--c-blue));
  border-radius: var(--r-xl); color: #fff; padding: clamp(2rem,1.5rem+3vw,3.5rem);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--sp-6); align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(97,178,52,.35), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5e6f4; margin-top: var(--sp-3); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: flex-end; }
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } }

/* Project card need chip on media */
.need { position: absolute; right: var(--sp-3); top: var(--sp-3); }

/* ---- Objectifs de la plateforme (texte + photos, flèches synchronisées) --- */
.obj2 { display: grid; grid-template-columns: 0.85fr 1.45fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.obj2__text { max-width: 46ch; }
.obj2__title { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); color: var(--c-blue); font-weight: var(--fw-black); line-height: 1.04; letter-spacing: -0.02em; }
.obj2__lead { font-size: var(--fs-lead); font-weight: var(--fw-bold); color: var(--c-ink); margin-top: var(--sp-5); }
.obj2__desc { color: var(--c-slate); margin-top: var(--sp-4); line-height: 1.65; }

/* Square "read more" (reused pattern) */
.objectifs__more { display: inline-flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); font-weight: var(--fw-semi); color: var(--c-blue); }
.objectifs__more > [data-icon] {
  width: 52px; height: 52px; flex: none; border: 1.5px solid var(--c-line-strong);
  border-radius: 5px; display: grid; place-items: center; color: var(--c-blue);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.objectifs__more > [data-icon] .ico { width: 22px; height: 22px; }
.objectifs__more:hover > [data-icon] { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }

/* Media column : two large landscape photos (2nd bleeds off the edge) */
.obj2__media { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
.obj2__imgs { display: flex; gap: var(--sp-4); overflow: hidden; }
.obj2__img { flex: 0 0 62%; margin: 0; height: clamp(360px, 44vw, 600px); border-radius: var(--r-lg); overflow: hidden; background: var(--c-mist-200); }
.obj2__img img { width: 100%; height: 100%; object-fit: cover; }

.obj2__nav { display: flex; align-items: center; gap: var(--sp-3); align-self: flex-end; }
.obj2__count { color: var(--c-slate); font-size: var(--fs-sm); font-weight: var(--fw-semi); margin-right: var(--sp-2); }
.obj2__count b { color: var(--c-blue); }
.obj2__arrow {
  width: 52px; height: 52px; border-radius: 5px; border: 1.5px solid var(--c-line-strong);
  display: grid; place-items: center; color: var(--c-blue);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.obj2__arrow:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.obj2__arrow .ico { width: 20px; height: 20px; }

@keyframes obj2In { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { .obj2-anim { animation: obj2In .5s var(--ease) both; } }

@media (max-width: 860px) {
  .obj2 { grid-template-columns: 1fr; }
  .obj2__text { max-width: none; }
  .obj2__img { flex: 0 0 84%; height: clamp(300px, 68vw, 440px); }
}

/* ---- À la une : actualités & événements (cartes horizontales) ------- */
.featured__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.featured__title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem); color: var(--c-blue); font-weight: var(--fw-black); letter-spacing: -0.02em; line-height: 1.05; }
.featured__more { color: var(--c-blue); font-weight: var(--fw-semi); text-decoration: underline; text-underline-offset: 4px; }
.featured__more:hover { color: var(--c-sky); }

.featured { position: relative; }
.featured .carousel__track { grid-auto-columns: minmax(260px, 31%); gap: var(--sp-5); }

.feat-card {
  display: flex; flex-direction: column;
  background: var(--c-paper); /* fond clair : contraste porté par le liseré, pas le remplissage */
  border: 1px solid var(--c-line-strong); border-radius: var(--r-lg); padding: var(--sp-4);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--c-blue); }
.feat-card__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--c-mist-200); }
.feat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.feat-card:hover .feat-card__media img { transform: scale(1.05); }
.feat-card__title { margin-top: var(--sp-4); color: var(--c-blue); font-weight: var(--fw-bold); font-size: clamp(1.1rem, .95rem + .7vw, 1.4rem); line-height: 1.22; }
.feat-card__title a { color: inherit; }
.feat-card__title a:hover { color: var(--c-sky); }
.feat-card__foot { margin-top: auto; padding-top: var(--sp-5); display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }
.feat-badge { border-radius: var(--r-pill); padding: 5px 14px; font-size: var(--fs-xs); font-weight: var(--fw-semi); color: #fff; }
.feat-badge--news { background: var(--c-blue-900); }
.feat-badge--event { background: var(--c-green-700); }
.feat-badge--dz { background: var(--c-green-700); }
.feat-badge--world { background: var(--c-blue-900); }
.feat-card__cat { color: var(--c-slate); font-size: var(--fs-sm); font-weight: var(--fw-semi); white-space: nowrap; }
.feat-card__date { color: var(--c-slate); font-size: var(--fs-sm); white-space: nowrap; margin-left: auto; }

.featured__arrows { justify-content: flex-end; margin-top: var(--sp-5); }
.featured__arrows button { border-radius: 5px; }
.featured__arrows .ico { width: 20px; height: 20px; }

@media (max-width: 720px) { .featured .carousel__track { grid-auto-columns: minmax(0, 82%); } }
