/* ============================================================
   AFB-DEV : Agence Béninoise de Développement
   Feuille de style principale
   ============================================================ */

/* --- Tokens --------------------------------------------------
   Palette dérivée du drapeau béninois, retravaillée en matière
   graphique sobre : vert forêt profond, ambre/or, sable clair,
   rouge terre en accent rare. Rien de "corporate bleu".
------------------------------------------------------------- */
:root {
  --vert-profond: #0f3d2e;   /* vert drapeau assombri, fond d'autorité */
  --vert-foret:   #16513c;
  --vert-clair:   #2f7d5c;
  --or:           #d4a03c;   /* jaune drapeau -> or mat */
  --or-clair:     #e8c877;
  --terre:        #a8321f;   /* rouge drapeau -> terre brûlée, accent rare */
  --sable:        #f6f2e9;   /* fond clair, chaud */
  --sable-2:      #efe8d8;
  --encre:        #14201a;   /* texte sur clair */
  --encre-douce:  #43514a;
  --blanc-casse:  #faf8f2;
  --ligne:        rgba(15, 61, 46, 0.14);
  --ligne-or:     rgba(212, 160, 60, 0.35);

  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono:  "Archivo", ui-monospace, monospace;

  --mesure: 68ch;
  --pad-section: clamp(3.5rem, 8vw, 7rem);
  --ombre-carte: 0 1px 2px rgba(15,61,46,.06), 0 12px 32px rgba(15,61,46,.09);
}

/* --- Reset léger --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- Barre de progression de lecture --- */
.progres {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--or), var(--terre));
  z-index: 200; pointer-events: none;
}
body {
  font-family: var(--sans);
  color: var(--encre);
  background: var(--sable);
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* --- Typographie --- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vert-clair);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1px;
  background: var(--or);
  display: inline-block;
}
.eyebrow--sur-sombre { color: var(--or-clair); }
.eyebrow--sur-sombre::before { background: var(--or); }

/* --- Layout --- */
.wrap { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.wrap--etroit { width: min(100% - 2.5rem, 860px); margin-inline: auto; }
section { padding-block: var(--pad-section); }
section[id], [id].wrap { scroll-margin-top: 84px; }
.lede { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.5; color: var(--encre-douce); max-width: var(--mesure); }
.mesure { max-width: var(--mesure); }

/* ============================================================
   EN-TÊTE / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 242, 233, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ligne);
  box-shadow: 0 0 0 rgba(15,61,46,0);
  transition: box-shadow .3s ease;
}
.site-header--tasse { box-shadow: 0 10px 28px rgba(15,61,46,.09); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.85rem;
  transition: padding-block .3s ease;
}
.site-header--tasse .nav { padding-block: 0.55rem; }
.nav__menu { display: flex; align-items: center; gap: 2.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 7px;
  background:
    linear-gradient(135deg, var(--vert-foret) 0 48%, var(--or) 48% 74%, var(--terre) 74% 100%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.brand__mark::after {
  content: "AFB";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 800; font-size: 0.62rem;
  letter-spacing: 0.04em; color: var(--blanc-casse);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--sans); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em; color: var(--vert-profond); }
.brand__tag { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--encre-douce); }

.nav__links { display: flex; align-items: center; gap: 0.2rem; list-style: none; padding: 0; }
.nav__links a {
  position: relative;
  text-decoration: none; font-size: 0.86rem; font-weight: 500;
  color: var(--encre-douce); padding: 0.55rem 0.65rem; border-radius: 6px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a:focus-visible { color: var(--vert-profond); background: rgba(15,61,46,.06); }
.nav__links a[aria-current="page"] { color: var(--vert-profond); font-weight: 600; }
.nav__links a::after {
  content: ""; position: absolute; left: 0.65rem; right: 0.65rem; bottom: 0.32rem;
  height: 2px; border-radius: 1px; background: var(--or);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 1040px) { .nav__links a::after { display: none; } }

.nav__cta {
  text-decoration: none; font-size: 0.88rem; font-weight: 600;
  color: var(--blanc-casse); background: var(--vert-profond);
  padding: 0.6rem 1.1rem; border-radius: 7px; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.nav__cta:hover { background: var(--vert-foret); transform: translateY(-1px); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--vert-profond); margin: 4px 0; transition: .25s; }

@media (max-width: 1040px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 63px 0 auto 0;
    background: var(--sable);
    border-bottom: 1px solid var(--ligne);
    flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.2rem;
    transform: translateY(-120%); transition: transform .3s ease;
    box-shadow: var(--ombre-carte);
  }
  .nav__menu.est-ouvert { transform: translateY(0); }
  .nav { flex-wrap: wrap; }
  .nav__links { flex-direction: column; align-items: stretch; width: 100%; }
  .nav__links a { display: block; font-size: 0.95rem; padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--ligne); border-radius: 0; }
  .nav__cta { margin-top: 0.75rem; text-align: center; }
}

/* ============================================================
   HÉRO
   ============================================================ */
.hero {
  position: relative;
  background: var(--vert-profond);
  color: var(--blanc-casse);
  overflow: hidden;
  padding-block: clamp(4rem, 6vw, 7rem) clamp(4rem, 7vw, 8rem);
}
.hero__grille {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(212,160,60,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,60,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero__lueur {
  position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(212,160,60,.18) 0%, transparent 62%);
  pointer-events: none;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform .5s cubic-bezier(.2,.6,.3,1);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--blanc-casse); max-width: 16ch; margin-top: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--or-clair); }
.hero__lede { margin-top: 1.6rem; color: rgba(250,248,242,.82); max-width: 54ch; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: 8px;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
  border: 1px solid transparent; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 35%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg); transition: left .65s ease; pointer-events: none; z-index: 0;
}
.btn:hover::before { left: 130%; }
.btn > * { position: relative; z-index: 1; }
.btn--or { background: var(--or); color: var(--vert-profond); }
.btn--or:hover { background: var(--or-clair); transform: translateY(-2px); }
.btn--fantome { border-color: rgba(250,248,242,.35); color: var(--blanc-casse); }
.btn--fantome:hover { border-color: var(--or); color: var(--or-clair); }
.btn--plein { background: var(--vert-profond); color: var(--blanc-casse); }
.btn--plein:hover { background: var(--vert-foret); transform: translateY(-2px); }
.btn--contour { border-color: var(--vert-profond); color: var(--vert-profond); }
.btn--contour:hover { background: var(--vert-profond); color: var(--blanc-casse); transform: translateY(-2px); }
.btn__fleche { transition: transform .2s; }
.btn:hover .btn__fleche { transform: translateX(3px); }

/* Repli « copier l'adresse » à côté des liens mailto */
.copier-email {
  display: inline-flex; align-items: center; margin-left: 0.7rem;
  background: none; border: none; cursor: pointer; padding: 0.2rem 0;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  color: var(--vert-clair); text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s;
}
.copier-email:hover, .copier-email:focus-visible { color: var(--vert-profond); }
.copier-email--ok { color: var(--or); }

/* Bandeau de chiffres sous le héro */
.hero__socle {
  position: relative; z-index: 2;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(212,160,60,.22);
  border: 1px solid rgba(212,160,60,.22); border-radius: 12px; overflow: hidden;
}
.hero__stat { background: var(--vert-foret); padding: 1.4rem 1.3rem; }
.hero__stat dt { font-family: var(--serif); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.7rem); color: var(--or-clair); line-height: 1; }
.hero__stat dd { margin-top: 0.5rem; font-size: 0.82rem; color: rgba(250,248,242,.72); line-height: 1.35; }
@media (max-width: 720px) {
  .hero__socle { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   BANDEAU DÉFILANT (domaines d'intervention)
   ============================================================ */
.marquee {
  background: var(--encre); overflow: hidden;
  padding-block: 0.9rem; border-block: 1px solid rgba(212,160,60,.18);
}
.marquee__piste {
  display: flex; width: max-content; gap: 0;
  animation: defiler 34s linear infinite;
}
.marquee:hover .marquee__piste { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(250,248,242,.8); padding-inline: 1.4rem; white-space: nowrap;
}
.marquee__item span { color: var(--or); }
@keyframes defiler { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__piste { animation: none; } }

/* ============================================================
   ÉQUIPEMENTIERS MOBILISABLES
   ============================================================ */
.equipementiers {
  border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.equipementiers__ligne {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.5rem;
  justify-content: space-between; padding-block: 1.5rem;
}
.equipementiers__ligne + .equipementiers__ligne { border-top: 1px dashed var(--ligne); }
.equipementiers__label {
  font-size: 0.78rem; letter-spacing: 0.04em; color: var(--encre-douce);
  max-width: 26ch; line-height: 1.45;
}
.equipementiers__liste { display: flex; flex-wrap: wrap; gap: 0.5rem 2.4rem; align-items: center; }
.equipementiers__liste span {
  font-family: var(--serif); font-size: 1.3rem; color: var(--vert-profond);
  font-weight: 400; letter-spacing: 0.01em; white-space: nowrap;
}
.equipementiers__pays { display: flex; flex-wrap: wrap; gap: 0.9rem 1.8rem; align-items: center; }
.equipementiers__pays span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  color: var(--vert-profond); white-space: nowrap;
}
@media (max-width: 640px) { .equipementiers__ligne { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   GRILLE « BENTO » : domaines mis en avant sur l'accueil
   ============================================================ */
@media (min-width: 900px) {
  /* 9 unités pleinement occupées : 1(2)+2(1) / 3(1)+4(1)+5(1) / 6(3), aucune cellule vide */
  .grille-domaines.grille-domaines--bento {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  }
  .grille-domaines--bento .domaine:nth-child(1) { grid-column: span 2; }
  .grille-domaines--bento .domaine:nth-child(1) {
    padding: 2rem 2.2rem;
    background: linear-gradient(155deg, var(--vert-profond) 0%, var(--vert-foret) 100%);
    color: var(--blanc-casse); border-color: transparent;
  }
  .grille-domaines--bento .domaine:nth-child(1) .domaine__num { color: var(--or-clair); }
  .grille-domaines--bento .domaine:nth-child(1) h3 { color: var(--blanc-casse); font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
  .grille-domaines--bento .domaine:nth-child(1) p { color: rgba(250,248,242,.8); font-size: 1rem; }
  .grille-domaines--bento .domaine:nth-child(1) .domaine__lien { color: var(--or-clair); }
  .grille-domaines--bento .domaine:nth-child(1)::after {
    background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(212,160,60,.22), transparent 62%);
  }

  /* Carte de fermeture pleine largeur, mise en page horizontale */
  .grille-domaines--bento .domaine:nth-child(6) {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center;
    column-gap: 2.5rem; row-gap: 0.3rem; padding-block: 1.7rem;
  }
  .grille-domaines--bento .domaine:nth-child(6) .domaine__num { grid-column: 1; grid-row: 1; }
  .grille-domaines--bento .domaine:nth-child(6) h3 { grid-column: 1; grid-row: 2; white-space: nowrap; }
  .grille-domaines--bento .domaine:nth-child(6) p { grid-column: 2; grid-row: 1 / span 2; max-width: 48ch; }
  .grille-domaines--bento .domaine:nth-child(6) .domaine__lien { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
}

/* ============================================================
   BLOCS DE CONTENU GÉNÉRIQUES
   ============================================================ */
.section-titre { max-width: 30ch; margin-bottom: 1.2rem; }
.section-intro { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); scroll-margin-top: 90px; }

/* Grille de piliers / domaines */
.grille-domaines { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.domaine {
  background: var(--blanc-casse); border: 1px solid var(--ligne);
  border-radius: 14px; padding: 1.8rem 1.7rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  will-change: transform;
}
.domaine::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--or), var(--vert-clair)); transform: scaleY(0);
  transform-origin: top; transition: transform .3s; z-index: 2;
}
.domaine::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,50%), rgba(212,160,60,.16), transparent 62%);
  transition: opacity .35s ease; z-index: 1;
}
.domaine:hover { --ty: -4px; box-shadow: var(--ombre-carte); border-color: var(--ligne-or); }
.domaine:hover::before { transform: scaleY(1); }
.domaine:hover::after { opacity: 1; }
.domaine > * { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .domaine { transform: none !important; }
  .domaine:hover { transform: translateY(-4px) !important; }
}
.domaine__num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--or); font-weight: 600; }
.domaine h3 { font-size: 1.28rem; }
.domaine p { color: var(--encre-douce); font-size: 0.95rem; }
.domaine__lien { margin-top: auto; font-weight: 600; font-size: 0.88rem; color: var(--vert-profond); display: inline-flex; align-items: center; gap: 0.4rem; }

/* Bandeau accent (citation / thèse) */

/* --- Bloc "quatre dimensions" (structure B4, palette Bénin) --- */
.piliers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--ligne-or); border: 1px solid var(--ligne-or);
  border-radius: 14px; overflow: hidden;
}
@media (max-width: 900px) { .piliers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .piliers { grid-template-columns: 1fr; } }
.pilier { background: var(--blanc-casse); padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.pilier__num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--or); font-weight: 700; }
.pilier h3 { font-size: 1.18rem; color: var(--vert-profond); }
.pilier p { font-size: 0.9rem; color: var(--encre-douce); }

/* --- Approche en trois temps (device B4) --- */
.temps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .temps { grid-template-columns: 1fr; } }
.temps__item { position: relative; padding-top: 2.6rem; }
.temps__num {
  position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-size: 2.4rem; color: var(--or-clair);
  line-height: 1; font-weight: 500;
}
.temps__item h3 { font-size: 1.25rem; color: var(--vert-profond); margin-bottom: 0.6rem; }
.temps__item p { font-size: 0.94rem; color: var(--encre-douce); max-width: 42ch; }
.temps__item::before {
  content: ""; position: absolute; top: 1.1rem; left: 3.2rem; right: -0.75rem; height: 1px;
  background: var(--ligne-or);
}
.temps__item:last-child::before { display: none; }
@media (max-width: 820px) { .temps__item::before { display: none; } }

/* Bandeau accent (citation / thèse) */
.bandeau-these {
  background: var(--vert-profond); color: var(--blanc-casse);
  position: relative; overflow: hidden;
}
.bandeau-these__grille {
  position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(90deg, rgba(212,160,60,.08) 1px, transparent 1px);
  background-size: 42px 100%;
}
.bandeau-these .wrap { position: relative; z-index: 2; }
.bandeau-these blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.4rem); line-height: 1.25; max-width: 22ch; }
.bandeau-these blockquote em { color: var(--or-clair); font-style: italic; }
.bandeau-these cite { display: block; margin-top: 1.5rem; font-family: var(--sans); font-style: normal; font-size: 0.9rem; color: rgba(250,248,242,.7); }

/* ============================================================
   PAGES MÉTIER : en-tête de page
   ============================================================ */
.page-hero {
  background: var(--vert-profond); color: var(--blanc-casse);
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 5vw, 5rem) clamp(3rem, 5vw, 5rem);
}
.page-hero__grille {
  position: absolute; inset: 0; opacity: .45;
  background-image:
    linear-gradient(rgba(212,160,60,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,160,60,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000 20%, transparent 80%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--blanc-casse); max-width: 18ch; margin-top: 1rem; }
.page-hero__lede { margin-top: 1.3rem; color: rgba(250,248,242,.82); max-width: 58ch; font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem); }

/* Portrait du fondateur, en tête de la page « Le fondateur » */
.page-hero--fondateur .wrap {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
  .page-hero--fondateur .wrap { grid-template-columns: 1.25fr 0.85fr; gap: 3.5rem; }
}
.page-hero__portrait {
  position: relative; align-self: start; justify-self: center;
  width: 100%; max-width: 320px; aspect-ratio: 4 / 5;
}
@media (min-width: 900px) { .page-hero__portrait { max-width: 380px; justify-self: end; } }
.page-hero__portrait::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px;
  border: 1px solid rgba(212,160,60,.4); border-radius: 18px; z-index: 0;
}
.page-hero__portrait img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  border-radius: 18px; border: 1px solid rgba(212,160,60,.3);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

/* Fil d'ariane */
.fil { font-size: 0.82rem; color: rgba(250,248,242,.62); display: flex; gap: 0.5rem; align-items: center; }
.fil a { text-decoration: none; color: rgba(250,248,242,.62); }
.fil a:hover { color: var(--or-clair); }
.fil span { color: var(--or); }

/* Chiffre-repère d'ouverture de page métier */
.repere {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center;
  margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid rgba(212,160,60,.25);
}
.repere__val { font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.6rem); color: var(--or-clair); line-height: 0.9; }
.repere__txt { font-size: 0.95rem; color: rgba(250,248,242,.78); max-width: 40ch; }

/* Corps de page métier : prose + encadrés */
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; color: var(--vert-profond); }
.prose p { max-width: var(--mesure); color: var(--encre-douce); }
.prose strong { color: var(--encre); font-weight: 600; }
.prose ul { max-width: var(--mesure); padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-top: 0.7rem; color: var(--encre-douce); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; background: var(--or); border-radius: 1px; transform: rotate(45deg); }

/* Disposition 2 colonnes contenu / aparté */
.grille-contenu { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 940px) {
  .grille-contenu { grid-template-columns: 1.7fr 1fr; align-items: start; }
}
.aparte {
  background: var(--blanc-casse); border: 1px solid var(--ligne);
  border-radius: 14px; padding: 1.6rem; position: sticky; top: 90px;
}
.aparte h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--vert-clair); font-weight: 700; margin-bottom: 1rem; }
.aparte dl { display: grid; gap: 0.9rem; }
.aparte dt { font-size: 0.78rem; color: var(--encre-douce); text-transform: uppercase; letter-spacing: 0.08em; }
.aparte dd { font-weight: 600; color: var(--vert-profond); font-size: 1.05rem; }
.aparte__note { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--ligne); font-size: 0.82rem; color: var(--encre-douce); line-height: 1.5; }

/* Puces de drapeaux (ancrage géographique) */
.drapeaux { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.drapeau {
  display: inline-block; width: 22px; height: 14.7px; flex: none;
  border-radius: 3px; box-shadow: 0 0 0 1px rgba(15,61,46,.18), 0 1px 2px rgba(0,0,0,.12);
  object-fit: cover;
}

/* Liste de prestations / méthodo */
.etapes { counter-reset: e; display: grid; gap: 1rem; }
.etape {
  background: var(--blanc-casse); border: 1px solid var(--ligne); border-radius: 12px;
  padding: 1.4rem 1.5rem 1.4rem 3.6rem; position: relative;
}
.etape::before {
  counter-increment: e; content: counter(e, decimal-leading-zero);
  position: absolute; left: 1.3rem; top: 1.4rem;
  font-family: var(--mono); font-weight: 700; font-size: 0.9rem; color: var(--or);
}
.etape h4 { font-family: var(--serif); font-size: 1.15rem; color: var(--vert-profond); margin-bottom: 0.4rem; font-weight: 500; }
.etape p { font-size: 0.92rem; color: var(--encre-douce); max-width: 60ch; }

/* Cartes de références projets */
.grille-refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.2rem; }
.ref-carte { background: var(--blanc-casse); border: 1px solid var(--ligne); border-radius: 12px; padding: 1.5rem; }
.ref-carte__type { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vert-clair); font-weight: 600; }
.ref-carte h4 { font-family: var(--serif); font-size: 1.15rem; color: var(--encre); margin: 0.5rem 0 0.6rem; font-weight: 500; }
.ref-carte p { font-size: 0.9rem; color: var(--encre-douce); }
.ref-carte__montant { margin-top: 0.9rem; font-weight: 700; color: var(--or); font-size: 0.95rem; font-family: var(--sans); }

/* ============================================================
   BANDEAU CONTACT / APPEL
   ============================================================ */
.cta-final { background: var(--sable-2); }
.cta-final__carte {
  background: var(--vert-profond); color: var(--blanc-casse);
  border-radius: 20px; padding: clamp(2.5rem, 5vw, 4rem);
  position: relative; overflow: hidden;
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (min-width: 820px) { .cta-final__carte { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.cta-final__carte::after {
  content: ""; position: absolute; right: -10%; bottom: -40%;
  width: 40%; height: 160%; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,60,.16), transparent 65%);
}
.cta-final h2 { color: var(--blanc-casse); position: relative; z-index: 2; }
.cta-final p { color: rgba(250,248,242,.8); margin-top: 1rem; position: relative; z-index: 2; max-width: 46ch; }
.cta-final__actions { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 0.8rem; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer { background: var(--encre); color: rgba(250,248,242,.72); padding-block: 3.5rem 2rem; position: relative; overflow: hidden; }
.site-footer::before {
  content: "AFB-Dev"; position: absolute; left: 50%; bottom: -0.32em; transform: translateX(-50%);
  font-family: var(--serif); font-size: clamp(6rem, 20vw, 13rem); font-weight: 400;
  color: rgba(250,248,242,.035); white-space: nowrap; pointer-events: none; line-height: 1; z-index: 0;
}
.site-footer .wrap { position: relative; z-index: 1; }
.footer-grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .footer-grille { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grille { grid-template-columns: 1fr; } }
.footer-grille h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--or); font-weight: 700; margin-bottom: 1rem; }
.footer-grille ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-grille a { text-decoration: none; color: rgba(250,248,242,.72); font-size: 0.92rem; transition: color .2s; }
.footer-grille a:hover { color: var(--or-clair); }
.footer__intro { font-size: 0.92rem; line-height: 1.6; max-width: 40ch; }
.footer__brand { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.footer__brand .brand__name { color: var(--blanc-casse); }
.footer__legal {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(250,248,242,.12);
  font-size: 0.78rem; color: rgba(250,248,242,.5); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}

/* ============================================================
   UTILITAIRES & ANIMATIONS
   ============================================================ */
.revele { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease; }
.revele.est-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .revele { opacity: 1; translate: 0 0; } }

/* Cascade légère sur les grilles */
.piliers .pilier:nth-child(1), .grille-domaines .domaine:nth-child(1), .temps__item:nth-child(1) { transition-delay: .04s; }
.piliers .pilier:nth-child(2), .grille-domaines .domaine:nth-child(2), .temps__item:nth-child(2) { transition-delay: .11s; }
.piliers .pilier:nth-child(3), .grille-domaines .domaine:nth-child(3), .temps__item:nth-child(3) { transition-delay: .18s; }
.piliers .pilier:nth-child(4), .grille-domaines .domaine:nth-child(4) { transition-delay: .25s; }
.grille-domaines .domaine:nth-child(5) { transition-delay: .32s; }
.grille-domaines .domaine:nth-child(6) { transition-delay: .39s; }

/* Chiffres animés (compteur) */
.nombre { font-variant-numeric: tabular-nums; }

/* Entrée du héro au chargement */
@keyframes entree { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .page-hero .fil { animation: entree .7s ease both; }
.hero h1, .page-hero .eyebrow { animation: entree .7s ease .08s both; }
.hero__lede, .page-hero h1 { animation: entree .7s ease .16s both; }
.hero__actions, .page-hero__lede { animation: entree .7s ease .24s both; }
.hero__socle, .page-hero .repere { animation: entree .7s ease .32s both; }
.page-hero__portrait { animation: entree .8s ease .2s both; }

:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--or); color: var(--vert-profond); padding: 0.7rem 1.2rem;
  font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
