/* ==========================================================================
   Africa Global Corp — feuille de style principale
   Mise en page : les grilles s'adaptent à la largeur du conteneur .agc
   (container queries), avec les mêmes points de rupture que la version
   d'origine.
   ========================================================================== */

:root {
  --navy: #0B3C68;
  --navy-hover: #14286F;
  --ink: #0E2340;
  --sand: #B8B29E;
  --cream: #F6F4EE;
  --line: #E6E1D4;
  --line-soft: #EFEBE1;
  --line-strong: #D8D2C2;
  --muted: #6F6A58;
  --text: #33445E;
  --text-soft: #51607A;
  --pale: #C9D8E0;
  --pale-2: #DCE5EC;
  --pale-3: #B9C6D6;
  --foot-muted: #8FA1B8;
  --error: #A33A2B;
  --gutter: clamp(20px, 5cqw, 40px);
  --sec-y: clamp(44px, 9cqw, 96px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: #fff;
  color: var(--ink);
  font-family: Montserrat, Calibri, sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--navy); text-decoration: none; }
input, select, textarea, button { font-family: Montserrat, Calibri, sans-serif; }
img { border-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
body.is-locked { overflow: hidden; }
#contenu:focus { outline: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; font-size: 14px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.agc {
  container-type: inline-size;
  container-name: agc;
  position: relative;
  background: #fff;
  min-height: 100vh;
}

/* ---------- Utilitaires ---------- */
.wrap { max-width: 1240px; margin: 0 auto; }
.sec { max-width: 1240px; margin: 0 auto; padding: var(--sec-y) var(--gutter); }
.stack { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; }
.gap-14 { gap: 14px; }
.gap-20 { gap: 20px; }
.stack--sm { gap: clamp(20px, 3cqw, 28px); }
.stack--md { gap: clamp(24px, 4cqw, 36px); }
.deco { position: absolute; pointer-events: none; max-width: none; height: auto; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow--sand { color: var(--sand); }

.h2 {
  margin: 0;
  font-size: clamp(25px, 5.6cqw, 40px);
  line-height: 1.15; font-weight: 800; letter-spacing: -.02em;
  color: var(--navy); text-wrap: balance;
}

.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr); }
.cols-btns { display: grid; grid-template-columns: minmax(0, 1fr); }

.section--cream { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy); color: #fff; position: relative; overflow: hidden; }

/* ---------- Boutons ---------- */
.btn {
  cursor: pointer; min-height: 52px; border: none; border-radius: 2px;
  background: var(--navy); color: #fff;
  padding: 14px 24px; font-size: 15px; font-weight: 700;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn:hover { background: var(--navy-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
a.btn { display: flex; align-items: center; justify-content: center; }
.btn--start { align-self: flex-start; }
.btn--mt { margin-top: 4px; }

.link-btn {
  align-self: flex-start; cursor: pointer; background: transparent; border: none;
  border-bottom: 2px solid var(--navy); color: var(--navy);
  padding: 10px 0 6px; font-size: 14px; font-weight: 700;
  background-image: linear-gradient(var(--sand), var(--sand));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0 2px;
  transition: background-size .35s var(--ease-out);
}
.link-btn:hover { color: var(--navy); background-size: 100% 2px; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__bar {
  max-width: 1240px; margin: 0 auto; height: 64px;
  padding: 0 clamp(16px, 4cqw, 40px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.hdr__logo { all: unset; cursor: pointer; justify-self: start; display: flex; align-items: center; }
.hdr__logo img { height: clamp(40px, 5cqw, 50px); width: auto; display: block; }

.nav { display: flex; gap: 2px; justify-content: center; }
.nav__link {
  all: unset; cursor: pointer;
  padding: 22px 14px 20px; font-size: 13px; font-weight: 800; letter-spacing: .02em;
  color: var(--text); border-bottom: 2px solid transparent;
  transition: color .2s, border-color .3s;
}
.nav__link:hover { color: var(--navy); }
.nav__link.is-active { color: var(--navy); border-bottom-color: var(--navy); }
.nav__link:focus-visible { outline: 2px solid var(--sand); outline-offset: -4px; }

.menu-btn {
  grid-column: 3; justify-self: end; cursor: pointer;
  height: 44px; display: none; align-items: center; gap: 10px; padding: 0 14px;
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  font-size: 13px; font-weight: 800; letter-spacing: .03em; border-radius: 2px;
  transition: background-color .2s, color .2s;
}
.menu-btn[aria-expanded="true"] { background: var(--navy); color: #fff; }
.menu-btn__icon { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.menu-btn__icon span { height: 2px; background: currentColor; }

.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  height: calc(100dvh - 64px); overflow-y: auto;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 28px;
  animation: menu-in .28s var(--ease-out);
}
.menu-panel__nav { display: flex; flex-direction: column; }
.menu-link {
  all: unset; cursor: pointer; display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center;
  min-height: 66px; border-bottom: 1px solid var(--line-soft);
}
.menu-link__n { font-size: 11px; font-weight: 800; color: var(--sand); }
.menu-link__label { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.menu-link.is-active .menu-link__label { color: var(--navy); }
.menu-link__arrow { font-size: 22px; color: var(--sand); transition: transform .25s var(--ease-out); }
.menu-link:hover .menu-link__arrow { transform: translateX(4px); }
.menu-panel__nav .menu-link { animation: fade-up .4s var(--ease-out) both; }
.menu-panel__nav .menu-link:nth-child(2) { animation-delay: .04s; }
.menu-panel__nav .menu-link:nth-child(3) { animation-delay: .08s; }
.menu-panel__nav .menu-link:nth-child(4) { animation-delay: .12s; }
.menu-panel__nav .menu-link:nth-child(5) { animation-delay: .16s; }
.menu-panel__foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.menu-call {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  background: var(--navy); color: #fff; font-size: 15px; font-weight: 700; border-radius: 2px;
}
.menu-call:hover { color: #fff; background: var(--navy-hover); }
.menu-addr { font-size: 13px; line-height: 1.6; color: var(--muted); text-align: center; }

/* ==========================================================================
   Emplacements d'images + écrans squelettes
   ========================================================================== */
.slot {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: hidden; background: rgba(127, 127, 127, .08); isolation: isolate;
}
.slot--rel { position: relative; }
.slot picture { position: absolute; inset: 0; }
.slot picture, .slot img { display: block; width: 100%; height: 100%; }
.slot img { object-fit: cover; object-position: 50% 50%; }

/* Squelette : reflet animé tant que l'image n'est pas affichée */
.slot--img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(127,127,127,0) 30%, rgba(127,127,127,.12) 50%, rgba(127,127,127,0) 70%) #ECEAE4;
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
  transition: opacity .5s ease;
}
.section--navy .slot--img::before, .banner .slot--img::before {
  background-color: #154a7a;
  background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.08) 50%, rgba(255,255,255,0) 70%);
}
.slot--img img { opacity: 0; transform: scale(1.02); transition: opacity .6s ease, transform 1.2s var(--ease-out); }
.slot--img.is-loaded::before { opacity: 0; animation: none; }
.slot--img.is-loaded img { opacity: 1; transform: none; }

/* Emplacement vide (visuel à venir) */
.slot--empty {
  font: 13px/1.3 system-ui, -apple-system, sans-serif;
}
.slot__empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 12px; user-select: none;
}
.slot__empty svg { opacity: .45; }
.slot__cap { max-width: 90%; font-weight: 500; letter-spacing: .01em; opacity: .75; }

/* ==========================================================================
   Accueil
   ========================================================================== */
.hero {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(28px, 7cqw, 80px) var(--gutter) clamp(44px, 8cqw, 96px);
  gap: clamp(32px, 6cqw, 72px); align-items: center;
}
.hero__text { gap: clamp(18px, 3.4cqw, 28px); }
.hero__title {
  margin: 0; font-size: clamp(31px, 7.4cqw, 58px); line-height: 1.06; font-weight: 800;
  letter-spacing: -.03em; color: var(--navy); text-wrap: balance;
}
.hero__lead { margin: 0; font-size: clamp(16px, 1.9cqw, 18px); line-height: 1.65; color: var(--text); text-wrap: pretty; }
.hero__ctas { gap: 12px; max-width: 470px; }
.hero__media { position: relative; padding: 0 0 clamp(12px, 2cqw, 24px) clamp(12px, 2cqw, 24px); }
.hero__accent { position: absolute; left: 0; bottom: 0; width: 46%; height: 52%; background: var(--sand); }
.frame { position: relative; width: 100%; }
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--4x5 { aspect-ratio: 4 / 5; }
.frame--16x10 { aspect-ratio: 16 / 10; }
.frame--16x9 { aspect-ratio: 16 / 9; }

/* Bandeau chiffres clés */
.kpis {
  position: relative; max-width: 1240px; margin: 0 auto;
  padding: clamp(32px, 6cqw, 56px) var(--gutter);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(16px, 3cqw, 36px);
}
.kpis--empreinte { padding: clamp(28px, 5cqw, 48px) var(--gutter); }
.kpi-band--empreinte { border-top: 1px solid rgba(255, 255, 255, .14); }
.kpi { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid rgba(255, 255, 255, .24); padding-left: clamp(12px, 2cqw, 22px); position: relative; }
.kpi::before {
  content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 0;
  background: var(--sand); transition: height 1.2s var(--ease-out) .2s;
}
.kpi.is-in::before { height: 100%; }
.kpi__v { font-size: clamp(30px, 5cqw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.kpi__l { font-size: 13px; line-height: 1.5; color: var(--pale); }
.motif-spirales-band { right: -60px; top: -80px; width: clamp(180px, 30cqw, 340px); opacity: .14; }

/* Pôles (accueil) */
.home-poles { display: flex; flex-direction: column; gap: clamp(24px, 4cqw, 40px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; }
.sec-head__titles { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.pole-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.pole-card {
  all: unset; box-sizing: border-box; cursor: pointer; background: #fff; color: var(--ink);
  padding: clamp(18px, 2.6cqw, 26px) clamp(16px, 2.4cqw, 24px);
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; column-gap: 14px; row-gap: 4px; align-items: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.pole-card:hover { background: var(--navy); color: #fff; }
.pole-card:focus-visible { outline-offset: -3px; }
.pole-card__n { grid-row: span 2; align-self: start; padding-top: 4px; font-size: 12px; font-weight: 800; color: var(--sand); }
.pole-card__name { font-size: clamp(17px, 2cqw, 20px); font-weight: 800; letter-spacing: -.01em; }
.pole-card__arrow { grid-row: span 2; font-size: 22px; color: var(--sand); text-align: right; transition: transform .3s var(--ease-out); }
.pole-card:hover .pole-card__arrow { transform: translateX(4px); }
.pole-card__objet { font-size: 13px; line-height: 1.5; opacity: .75; }

/* Notre empreinte (accueil) */
.teaser { gap: clamp(28px, 5cqw, 64px); align-items: center; }
.teaser-wrap { overflow: hidden; }
.motif-oeil { right: -12px; top: -12px; width: clamp(64px, 10cqw, 120px); }
.body-text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }

/* Citation */
.quote { gap: clamp(20px, 5cqw, 56px); align-items: center; }
.quote__mark { font-size: 64px; line-height: .8; height: 34px; font-weight: 800; color: var(--sand); }
.quote__text {
  margin: 0; max-width: 518px;
  font-size: clamp(23px, 4.6cqw, 36px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em;
  color: var(--navy); text-wrap: balance;
}
.signature { display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--sand); padding-left: clamp(16px, 3cqw, 28px); }
.signature__name { font-size: 16px; font-weight: 700; color: var(--ink); }
.signature__role { font-size: 13px; color: var(--muted); }
.signature .link-btn { margin-top: 10px; }

/* ==========================================================================
   La Société
   ========================================================================== */
.page-hero { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(40px, 8cqw, 80px) var(--gutter); display: flex; flex-direction: column; gap: 16px; }
.page-hero__title { margin: 0; font-size: clamp(30px, 7cqw, 58px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; max-width: 820px; text-wrap: balance; }
.motif-baobab { right: -12%; bottom: -30px; height: 110%; width: auto; opacity: .2; }

.identity-band { border-bottom: 1px solid var(--line); }
.identity {
  max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5cqw, 40px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px clamp(20px, 3cqw, 32px);
}
.identity__item { display: flex; flex-direction: column; gap: 6px; padding-left: 14px; border-left: 2px solid var(--navy); }
.identity__k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.identity__v { font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--ink); }

.president { gap: clamp(28px, 5cqw, 64px); align-items: center; }
.president__media { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 260px; padding-right: 12px; }
.president__shadow { position: absolute; inset: 12px -12px -12px 12px; background: var(--line-soft); }
.president__caption { padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.president__name { font-size: 16px; font-weight: 800; color: var(--navy); }
.president__role { font-size: 13px; color: var(--muted); font-weight: 500; }
.president__quote { margin: 0; font-size: clamp(22px, 4.4cqw, 32px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.president__msg { margin: 0; padding-left: 16px; border-left: 2px solid var(--navy); font-size: 16px; line-height: 1.75; color: var(--text); text-wrap: pretty; }

.vision { display: flex; flex-direction: column; gap: clamp(24px, 4cqw, 36px); }
.vision__head { gap: 16px clamp(24px, 5cqw, 56px); align-items: start; }
.vision__text { margin: 0; font-size: clamp(17px, 2.4cqw, 21px); line-height: 1.55; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.engagements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.engagement {
  background: #fff; padding: 16px; min-height: 56px; display: flex; align-items: baseline; gap: 10px;
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.engagement__n { font-size: 11px; font-weight: 800; color: var(--muted); }
.engagement__t { font-size: 15px; font-weight: 800; color: var(--navy); }

.values { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.value { background: var(--cream); border-top: 3px solid var(--navy); padding: 18px; display: flex; flex-direction: column; gap: 6px; transition: transform .3s var(--ease-out), box-shadow .3s; }
.value:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(14, 35, 64, .08); }
.value__t { font-size: 17px; font-weight: 800; color: var(--navy); }
.value__p { font-size: 14px; line-height: 1.5; color: var(--text-soft); }

/* ==========================================================================
   Nos pôles
   ========================================================================== */
.poles-intro { position: relative; overflow: hidden; }
.poles-intro__inner { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(36px, 8cqw, 96px) var(--gutter) clamp(24px, 4cqw, 40px); display: flex; flex-direction: column; gap: 18px; }
.poles-intro__title { margin: 0; font-size: clamp(34px, 8.4cqw, 76px); line-height: 1; font-weight: 800; letter-spacing: -.035em; color: var(--navy); }
.poles-intro__lead { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-soft); max-width: 640px; text-wrap: pretty; }
.motif-spirales-intro { right: -50px; top: 10px; width: clamp(150px, 28cqw, 320px); opacity: .3; }

.tabs-bar {
  position: sticky; top: 64px; z-index: 20;
  background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.tabs {
  max-width: 1240px; margin: 0 auto; padding: 10px var(--gutter);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 42%); gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  all: unset; box-sizing: border-box; cursor: pointer; scroll-snap-align: start;
  min-height: 52px; padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  background: #fff; color: var(--navy); border: 1.5px solid var(--navy);
  transition: background .2s, color .2s;
}
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab__n { font-size: 11px; font-weight: 800; color: var(--sand); }
.tab__name { font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }

.motif-afrique { right: -100px; bottom: -120px; width: clamp(280px, 45cqw, 520px); opacity: .08; }
.pole-detail { position: relative; max-width: 1240px; margin: 0 auto; padding: var(--sec-y) var(--gutter); gap: clamp(32px, 5cqw, 64px); align-items: start; }
.pole-detail.is-entering > * { animation: fade-up .55s var(--ease-out) both; }
.pole-detail.is-entering > *:nth-child(2) { animation-delay: .08s; }
.pole-detail__main { gap: 18px; }
.pole-detail__kicker { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); line-height: 1.6; }
.pole-detail__name { margin: 0; font-size: clamp(32px, 7cqw, 54px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.pole-detail__tagline { margin: 0; font-size: clamp(17px, 2.2cqw, 19px); font-weight: 500; color: var(--pale-2); line-height: 1.5; }
.pole-detail__desc { margin: 0; font-size: 15px; line-height: 1.75; color: var(--pale); text-wrap: pretty; }
.pole-detail__main .frame { margin-top: 6px; }
.pole-detail__side { gap: 26px; }

.domains { margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.domain { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.domain__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-height: 60px; padding: 14px 0;
  display: grid; grid-template-columns: 32px minmax(0, 1fr) 24px; align-items: center; gap: 10px;
}
.domain__n { font-size: 12px; font-weight: 700; color: var(--sand); }
.domain__t { font-size: 15px; font-weight: 700; line-height: 1.35; }
.domain__sign { font-size: 22px; font-weight: 500; color: var(--sand); text-align: right; }
.domain__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.domain.is-open .domain__panel { grid-template-rows: 1fr; }
.domain__panel > div { overflow: hidden; min-height: 0; }
.domain__d { margin: 0; padding: 0 34px 18px 42px; font-size: 14px; line-height: 1.6; color: var(--pale); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .35s var(--ease-out); }
.domain.is-open .domain__d { opacity: 1; transform: none; }

.clients { display: flex; flex-direction: column; gap: 12px; }
.chip--dark { font-size: 13px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .26); color: var(--pale-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat__v { font-size: clamp(20px, 4cqw, 30px); font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat__l { font-size: 12px; color: var(--pale-3); line-height: 1.45; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pager__prev { cursor: pointer; min-height: 52px; background: transparent; border: 1px solid rgba(255, 255, 255, .34); color: #fff; font-size: 14px; font-weight: 600; transition: background .2s; }
.pager__prev:hover { background: rgba(255, 255, 255, .08); }
.pager__next { cursor: pointer; min-height: 52px; background: var(--sand); border: none; color: var(--ink); font-size: 14px; font-weight: 700; transition: background .2s; }
.pager__next:hover { background: #fff; }

/* ==========================================================================
   Notre empreinte
   ========================================================================== */
.banner { position: relative; height: clamp(400px, 60cqw, 600px); overflow: hidden; background: var(--navy); }
.banner__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,60,104,.95) 0%, rgba(11,60,104,.6) 50%, rgba(11,60,104,0) 85%); pointer-events: none; z-index: 2; }
.banner__content { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 3; }
.banner__inner { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) clamp(28px, 5cqw, 56px); display: flex; flex-direction: column; gap: 14px; color: #fff; }
.banner__title { margin: 0; font-size: clamp(36px, 8.6cqw, 82px); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.banner__lead { margin: 0; font-size: clamp(15px, 2cqw, 17px); line-height: 1.6; color: var(--pale-2); max-width: 640px; text-wrap: pretty; }
.banner .slot img { transform-origin: 50% 60%; }
.banner .slot--img.is-loaded img { animation: ken-burns 18s ease-out both; }

.refs-sec { display: flex; flex-direction: column; gap: clamp(24px, 4cqw, 36px); }
.head-720 { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.filters {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter);
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; cursor: pointer; min-height: 44px; padding: 0 16px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: 2px;
  transition: background .2s, color .2s;
}
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; }
.refs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ref {
  border: 1px solid var(--line); padding: clamp(18px, 3cqw, 26px);
  display: flex; flex-direction: column; gap: 10px; background: #fff;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}
.ref:hover { border-color: var(--line-strong); box-shadow: 0 12px 28px rgba(14, 35, 64, .07); transform: translateY(-2px); }
.ref.is-entering { animation: fade-up .45s var(--ease-out) both; }
.ref__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ref__pole { color: var(--navy); }
.ref__sect { color: var(--muted); }
.ref__nom { font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.ref__nature { font-size: 14px; line-height: 1.6; color: var(--text-soft); }

.cases { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.case { border: 1px solid var(--line); display: flex; flex-direction: column; background: #fff; }
.case__head { background: var(--navy); color: #fff; padding: clamp(18px, 3cqw, 26px); display: flex; flex-direction: column; gap: 8px; }
.case__domaine { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); line-height: 1.6; }
.case__titre { font-size: clamp(18px, 2.6cqw, 21px); font-weight: 800; line-height: 1.3; }
.case__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 16px; padding: 14px clamp(18px, 3cqw, 26px); border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.case__k { font-weight: 700; color: var(--navy); font-size: 13px; }
.case__v { color: var(--text); }

.odds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.odd { border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: clamp(18px, 3cqw, 26px); display: flex; flex-direction: column; gap: 10px; }
.odd__n { align-self: flex-start; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 10px; letter-spacing: .06em; }
.odd__t { font-size: 17px; font-weight: 800; color: var(--navy); }
.odd__d { font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.lead-15 { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-soft); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { gap: clamp(36px, 5cqw, 64px); align-items: start; }
.contact__intro { gap: 22px; }
.contact__title { margin: 0; font-size: clamp(31px, 7.4cqw, 62px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; color: var(--navy); text-wrap: balance; }
.contact__lead { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-soft); max-width: 520px; text-wrap: pretty; }
.card {
  background: #fff; padding: clamp(20px, 5cqw, 40px);
  box-shadow: 0 18px 44px rgba(14, 35, 64, .09);
  border: 1px solid var(--line-soft); border-top: 4px solid var(--navy);
  display: flex; flex-direction: column; gap: 16px; position: relative;
}
.form { display: flex; flex-direction: column; gap: 16px; }
.form__title { font-size: 19px; font-weight: 800; color: var(--navy); }
.form__row { gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.field__input {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; outline: none;
  background: #fff; border-radius: 0; color: var(--ink); border: 1px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s;
}
.field__input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 60, 104, .08); }
.field__input[aria-invalid="true"] { border-color: var(--error); }
textarea.field__input { resize: vertical; }
.field__err { font-size: 12px; color: var(--error); font-weight: 500; }
.field__err:not(:empty) { animation: fade-up .25s var(--ease-out); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--submit { width: 100%; position: relative; overflow: hidden; }
.btn--submit .btn__label { position: relative; z-index: 1; }
.btn--submit.is-sending { cursor: progress; background: var(--navy-hover); }
.btn--submit.is-sending::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 70%);
  background-size: 220% 100%; animation: shimmer 1.1s linear infinite;
}
.form__alert {
  font-size: 13px; line-height: 1.55; color: var(--error); background: #FBF1EF;
  border-left: 3px solid var(--error); padding: 10px 12px; animation: fade-up .3s var(--ease-out);
}
.form__alert a { color: var(--error); font-weight: 700; text-decoration: underline; }

.sent { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 16px 0; }
.sent > * { animation: fade-up .5s var(--ease-out) both; }
.sent > *:nth-child(2) { animation-delay: .12s; }
.sent > *:nth-child(3) { animation-delay: .2s; }
.sent > *:nth-child(4) { animation-delay: .28s; }
.sent__check {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  animation: pop .55s var(--ease-out) both !important;
}
.sent__check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .3s ease-out forwards; }
.sent__title { font-size: 21px; font-weight: 800; color: var(--navy); }
.sent__text { font-size: 15px; line-height: 1.65; color: var(--text-soft); }
.sent .btn { margin-top: 6px; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.foot { background: var(--ink); border-top: 4px solid var(--sand); color: #fff; position: relative; overflow: hidden; }
.motif-savane { right: -5%; bottom: -20%; width: clamp(300px, 60cqw, 760px); opacity: .07; }
.foot__inner { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(40px, 7cqw, 72px) var(--gutter) 24px; display: flex; flex-direction: column; gap: clamp(32px, 5cqw, 48px); }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.foot__span { grid-column: 1 / -1; }
.foot__logo { height: clamp(56px, 8cqw, 72px); width: auto; display: block; }
.foot__col { display: flex; flex-direction: column; gap: 6px; }
.foot__title { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-bottom: 6px; }
.foot__link { all: unset; cursor: pointer; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--pale-3); transition: color .2s, transform .25s var(--ease-out); }
.foot__link:hover { color: #fff; transform: translateX(3px); }
.foot__coords { display: flex; flex-direction: column; gap: 14px; }
.foot__coords .foot__title { margin-bottom: 0; }
.coord { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.coord--addr { line-height: 1.55; color: var(--pale-2); }
.coord__k { font-size: 12px; color: var(--foot-muted); font-weight: 600; }
.coord a { color: #fff; font-weight: 700; transition: color .2s; }
.coord a:hover { color: var(--sand); }
.foot__bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 12px; line-height: 1.6; color: var(--foot-muted); }
.foot__mail { color: var(--pale-2); font-weight: 600; }

/* ==========================================================================
   Points de rupture (largeur du conteneur .agc)
   ========================================================================== */
@container agc (min-width: 420px) { .cols-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container agc (min-width: 440px) { .identity { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container agc (min-width: 520px) {
  .case__row { grid-template-columns: minmax(110px, 150px) minmax(0, 1fr); gap: 16px 16px; }
}
@container agc (min-width: 560px) { .engagements { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container agc (min-width: 620px) {
  .pole-grid, .values, .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container agc (min-width: 900px) {
  .cols-2 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .identity { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .engagements { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .odds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .president__media { max-width: 400px; }
}
@container agc (max-width: 959.98px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
}
@container agc (min-width: 960px) { .menu-panel { display: none !important; } }
@container agc (min-width: 1000px) {
  .pole-grid, .refs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
  .foot__span { grid-column: auto; }
}
@container agc (min-width: 1100px) { .tabs { grid-auto-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Animations (motion design)
   ========================================================================== */
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ken-burns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(0, -10px, 0) rotate(2deg); } }

.page { animation: fade-in .45s ease both; }
.deco--float { animation: float 14s ease-in-out infinite; will-change: transform; }

/* Apparition au défilement (activée seulement si JavaScript est disponible) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="left"] { transform: translateX(-22px); }
.js [data-reveal="right"] { transform: translateX(22px); }
.js [data-reveal="zoom"] { transform: scale(.97); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Apparition en cascade des éléments d'une grille */
.js [data-stagger]:not(.is-in) > * { opacity: 0; }
.js [data-stagger].is-in > * { animation: fade-up .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .hdr, .tabs-bar, .menu-panel { position: static; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
