/* ============================================================
   HIVESIA — Style Refinements (surcouche design-elevation-2026)
   Direction : Hybride Hivesia (Brunswick + Eurasia + identité Sahel)
   Niveau d'animation : subtil et raffiné
   IMPORTANT : ce fichier surcharge style.css. Ne JAMAIS modifier
   les sélecteurs CSS de base — uniquement override ici.
   ============================================================ */

/* ─────────────────────────────────────────────
   PHASE D1 · FONDATIONS
   Système d'espacement + typographie + easing
   ───────────────────────────────────────────── */

:root{
  /* === Spacing scale (8pt grid) === */
  --space-1:  4px;
  --space-2:  8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10:128px;
  --space-11:160px;

  /* === Section rhythm (vertical padding cabinets premium) === */
  --section-y:        clamp(72px, 9vw, 128px);
  --section-y-tight:  clamp(48px, 6vw, 80px);
  --section-y-hero:   clamp(96px, 12vw, 176px);

  /* === Typographie fluide (clamp pour fluid scale) === */
  --fs-overline:  .78rem;     /* eyebrow / kicker */
  --fs-body:      clamp(15.5px, 1.05vw, 17px);
  --fs-lead:      clamp(17px, 1.25vw, 20px);
  --fs-h3:        clamp(1.15rem, 1.6vw, 1.45rem);
  --fs-h2:        clamp(1.7rem, 3.2vw, 2.6rem);
  --fs-h1:        clamp(2.2rem, 4.4vw, 3.8rem);
  --fs-display:   clamp(2.6rem, 5.2vw, 4.8rem);

  /* === Letter-spacing premium === */
  --ls-overline:  .18em;
  --ls-h1:        -0.018em;
  --ls-h2:        -0.014em;
  --ls-body:      -0.005em;

  /* === Easing universel (easeOutQuart raffiné) === */
  --ease:           cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emphasis:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:       180ms;
  --dur-base:       320ms;
  --dur-slow:       520ms;

  /* === Élévation système (3 niveaux) === */
  --elev-1: 0 1px 2px rgba(8,24,48,.10), 0 0 0 1px rgba(255,255,255,.04);
  --elev-2: 0 4px 18px -4px rgba(8,24,48,.35), 0 0 0 1px rgba(255,255,255,.06);
  --elev-3: 0 18px 48px -10px rgba(8,24,48,.55), 0 0 0 1px rgba(255,255,255,.08);
}

/* === Respect des préférences utilisateur === */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* === Refinement typographique global === */
body{
  font-size: var(--fs-body);
  letter-spacing: var(--ls-body);
  line-height: 1.62;
}

/* Headings — autorité accrue */
h1, .h1-display{
  font-family: var(--display);
  letter-spacing: var(--ls-h1);
  line-height: 1.05;
  font-weight: 300;
}

h2, .sec-title{
  font-family: var(--display);
  letter-spacing: var(--ls-h2);
  line-height: 1.12;
  font-weight: 400;
}

h3{
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.008em;
}

/* Italic Fraunces — signature du cabinet
   IMPORTANT : neutralise le gradient tricolore vert→or→vert hérité de style.css:1128-1139
   qui était "psychédélique" (audit DA) — restaure un or sahélien unifié */
em, i, .h1-display em, h2 em,
.hero h1 em,
.sec-title em,
.serv h3 em,
.africa-info h3 em,
.insight h4 em,
.insight h3 em{
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-glow) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--gold-glow) !important;
}

/* Overlines / kickers — discipline éditoriale */
.hero-tag,
.sec-num span,
.ins-cat,
.cc-src,
.press-label,
.trust-overline,
.modules-overline,
.services-divider-title{
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  font-size: var(--fs-overline);
}

/* Lede / paragraphe d'introduction — plus grand, plus respirant */
.lede, .sec-sub, .deck{
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.003em;
  max-width: 68ch;
}

/* === Rythme vertical des sections === */
.sec{
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.hero{
  padding-top: var(--section-y-hero);
  padding-bottom: var(--section-y-hero);
}

/* === Transitions universelles douces === */
a, button, .insight, .pos-link, .serv article, .ofc, .cc-cell, .card,
.cta, .btn-gold, .btn-line, .nav a{
  transition:
    color var(--dur-base) var(--ease),
    background-color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease),
    opacity var(--dur-base) var(--ease);
}

/* === Focus states accessibles & élégants === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible{
  outline: 2px solid var(--gold-glow);
  outline-offset: 3px;
  border-radius: 2px;
  transition: outline-offset var(--dur-fast) var(--ease);
}

/* === Scroll smooth raffiné (overrider scroll-padding) === */
html{
  scroll-padding-top: 140px;
}

/* === Sélection texte premium === */
::selection{
  background: var(--gold);
  color: var(--navy-deep);
  text-shadow: none;
}

/* === Containers : respiration accrue sur grandes largeurs === */
@media (min-width: 1440px){
  .wrap{
    max-width: 1320px;
    padding: 0 var(--space-7);
  }
}

/* === Reveal : courbe d'animation raffinée === */
.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-slow) var(--ease-emphasis),
    transform var(--dur-slow) var(--ease-emphasis);
}
.reveal.on{
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────
   PHASE D2 · SECTIONS — chapitrage éditorial
   Numéros de section dramatiques, dividers, watermark
   ───────────────────────────────────────────── */

/* === Section heads : grille éditoriale === */
.sec-head{
  grid-template-columns: 220px 1fr !important;
  gap: var(--space-8) !important;
  margin-bottom: var(--space-9) !important;
  padding-top: var(--space-6);
  position: relative;
  align-items: start;
  border-top: 1px solid var(--line);
}

/* Ligne d'accent or sahélien (12px) en haut du chapitre */
.sec-head::before{
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-glow) 60%, transparent 100%);
  opacity: .85;
}

/* === Numéro de chapitre — devient massif === */
.sec-num{
  font-family: var(--display) !important;
  font-size: clamp(3.6rem, 6.4vw, 5.4rem) !important;
  font-weight: 300 !important;
  font-style: italic;
  letter-spacing: -0.04em !important;
  color: var(--gold) !important;
  line-height: 0.9 !important;
  padding-top: var(--space-2);
  position: relative;
}

/* Label sous le numéro — petit, mono, contrasté */
.sec-num span{
  display: block !important;
  font-family: var(--sans) !important;
  font-style: normal;
  font-size: var(--fs-overline) !important;
  font-weight: 600 !important;
  letter-spacing: var(--ls-overline) !important;
  text-transform: uppercase;
  color: var(--mute) !important;
  margin-top: var(--space-5) !important;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-2);
  width: 80%;
}

/* === Titre H2 — autorité renforcée === */
.sec-title{
  font-size: var(--fs-h2) !important;
  font-weight: 300 !important;
  line-height: 1.08 !important;
  letter-spacing: var(--ls-h2) !important;
  margin-bottom: var(--space-5) !important;
}

.sec-title em{
  font-style: italic;
  color: var(--gold-glow) !important;
  font-weight: 300;
}

.sec-sub{
  font-size: var(--fs-lead) !important;
  line-height: 1.6 !important;
  max-width: 64ch !important;
  color: var(--ink-2);
}

/* === Watermark Ruche en section head (desktop only) === */
@media (min-width: 1024px){
  .sec-head::after{
    content: "";
    position: absolute;
    right: -32px;
    top: var(--space-5);
    width: 96px;
    height: 96px;
    background-image: url('assets/brand/hivesia_pattern.svg');
    background-size: 96px 96px;
    background-repeat: no-repeat;
    opacity: .06;
    pointer-events: none;
    filter: brightness(2);
  }
}

/* Mobile : retour à colonne unique, numéro adapté */
@media (max-width: 900px){
  .sec-head{
    grid-template-columns: 1fr !important;
    gap: var(--space-5) !important;
    margin-bottom: var(--space-7) !important;
  }
  .sec-num{
    font-size: clamp(2.6rem, 11vw, 3.6rem) !important;
  }
  .sec-num span{
    width: 100%;
    margin-top: var(--space-3) !important;
  }
}

/* ─────────────────────────────────────────────
   PHASE D2b · HERO — révélation séquentielle
   Baseline en cascade (mots qui apparaissent doucement)
   ───────────────────────────────────────────── */

.hero h1 .h1-eyebrow{
  opacity: 0;
  animation: hivesiaFadeUp 700ms var(--ease-emphasis) 120ms forwards;
}

.hero h1 .h1-display{
  opacity: 0;
  animation: hivesiaFadeUp 800ms var(--ease-emphasis) 320ms forwards;
}

.hero h1 .h1-display em:nth-of-type(1){
  display: inline-block;
  opacity: 0;
  animation: hivesiaFadeUp 700ms var(--ease-emphasis) 480ms forwards;
}

.hero h1 .h1-display em:nth-of-type(2){
  display: inline-block;
  opacity: 0;
  animation: hivesiaFadeUp 700ms var(--ease-emphasis) 660ms forwards;
}

.hero .lede{
  opacity: 0;
  animation: hivesiaFadeUp 700ms var(--ease-emphasis) 820ms forwards;
}

.hero .hero-actions{
  opacity: 0;
  animation: hivesiaFadeUp 700ms var(--ease-emphasis) 980ms forwards;
}

.hero .hero-metrics{
  opacity: 0;
  animation: hivesiaFadeUp 800ms var(--ease-emphasis) 1140ms forwards;
}

@keyframes hivesiaFadeUp{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .hero h1 .h1-eyebrow,
  .hero h1 .h1-display,
  .hero h1 .h1-display em,
  .hero .lede,
  .hero .hero-actions,
  .hero .hero-metrics{
    opacity: 1 !important;
    animation: none !important;
  }
}

/* === Hero metrics : présentation premium === */
.hero-metrics{
  margin-top: var(--space-8) !important;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-2);
}

.hero-metrics .v{
  font-family: var(--display) !important;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--gold-glow);
}

.hero-metrics .l{
  font-family: var(--sans);
  font-size: var(--fs-overline);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   PHASE D3 · CARDS & MICRO-INTERACTIONS
   Système d'élévation unifié, hover states raffinés
   ───────────────────────────────────────────── */

/* === CARDS EXPERTISE (.pos-link) === */
.pos-grid > a.pos-link{
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.015) 0%, rgba(255,255,255,0) 100%);
  border-radius: 4px;
  padding: var(--space-6) var(--space-5) !important;
  box-shadow: var(--elev-1);
  transition:
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    background-color var(--dur-base) var(--ease);
  overflow: hidden;
}

.pos-grid > a.pos-link::before{
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-base) var(--ease-emphasis);
}

.pos-grid > a.pos-link:hover{
  transform: translateY(-3px);
  box-shadow: var(--elev-2);
  background-color: rgba(15,38,71,.25);
}

.pos-grid > a.pos-link:hover::before{
  transform: scaleY(1);
}

.pos-grid > a.pos-link h4,
.pos-grid > a.pos-link .pos-eyebrow{
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-overline);
  font-weight: 600;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-3);
}

.pos-grid > a.pos-link h3{
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.25;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.008em;
}

.pos-grid > a.pos-link p{
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
}

.pos-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--gold) !important;
  position: relative;
  transition: gap var(--dur-base) var(--ease);
}

.pos-grid > a.pos-link:hover .pos-cta{
  gap: 14px;
}

/* Cartes cœur — accent permanent or */
.pos-grid > a.expertise-core{
  background-color: rgba(198,136,33,.04);
}

.pos-grid > a.expertise-core::before{
  transform: scaleY(.4);
  opacity: .8;
}

.pos-grid > a.expertise-core:hover::before{
  transform: scaleY(1);
  opacity: 1;
}

/* === CARDS SERVICES (.serv article) === */
.serv article{
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 4px !important;
  padding: var(--space-6) !important;
  box-shadow: var(--elev-1);
  position: relative;
  transition:
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    background var(--dur-base) var(--ease);
}

.serv article:hover{
  transform: translateY(-3px);
  box-shadow: var(--elev-2);
  border-color: rgba(198,136,33,.25) !important;
  background: var(--panel-2) !important;
}

.serv article .ico{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold);
  background: rgba(198,136,33,.10);
  border: 1px solid rgba(198,136,33,.22);
  padding: 6px 11px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: var(--space-4);
}

.serv article h3{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.008em;
}

.serv article p{
  color: var(--ink-2);
  margin: 0 0 var(--space-4);
}

.serv article ul{
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.serv article ul li{
  position: relative;
  padding-left: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: 14px;
  color: var(--ink-2);
}

.serv article ul li::before{
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--gold);
  opacity: .7;
}

/* Bloc cœur PS featured */
.serv article.featured{
  background: linear-gradient(160deg, rgba(198,136,33,.06) 0%, rgba(15,38,71,.4) 60%) !important;
  border-color: rgba(198,136,33,.28) !important;
}

/* Cycle PS (serv-flow) — affiné */
.serv-flow{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px dashed rgba(198,136,33,.25);
}

.serv-flow span{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-2);
  background: rgba(198,136,33,.06);
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid rgba(198,136,33,.18);
  transition: all var(--dur-base) var(--ease);
}

.serv article.featured:hover .serv-flow span{
  color: var(--gold-glow);
  border-color: rgba(198,136,33,.4);
}

/* === CARDS INSIGHTS (.insight) === */
.insight{
  position: relative;
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 4px;
  padding: var(--space-6) !important;
  box-shadow: var(--elev-1);
  transition:
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
  overflow: hidden;
}

.insight::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-glow) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-emphasis);
}

.insight:hover{
  transform: translateY(-3px);
  box-shadow: var(--elev-2);
  border-color: rgba(198,136,33,.28) !important;
}

.insight:hover::before{
  transform: scaleX(1);
}

.insight-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.ins-cat{
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--gold);
  background: rgba(198,136,33,.08);
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid rgba(198,136,33,.18);
}

.ins-time{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mute);
}

.insight h4, .insight h3{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
}

.ins-excerpt{
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
}

.insight-foot{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.ins-pub{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-right: var(--space-3);
}

.ins-date{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}

.ins-read{
  color: var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-base) var(--ease);
}

.insight:hover .ins-read{
  gap: 12px;
}

/* === BUTTONS — feedback tactile et hover raffinés === */
.btn-gold, .cta{
  position: relative;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: .01em;
  box-shadow: var(--elev-1);
  transition:
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    background var(--dur-base) var(--ease);
}

.btn-gold:hover, .cta:hover{
  box-shadow: 0 6px 18px -4px rgba(198,136,33,.4), var(--elev-2);
  transform: translateY(-1px);
}

.btn-gold:active, .cta:active{
  transform: translateY(0);
  box-shadow: var(--elev-1);
}

.btn-line{
  position: relative;
  transition:
    border-color var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease),
    background var(--dur-base) var(--ease);
}

.btn-line:hover{
  border-color: var(--gold) !important;
  color: var(--gold-glow) !important;
  background: rgba(198,136,33,.04);
}

/* === LIENS texte éditoriaux (paragraphes) === */
.sec p a:not(.btn-gold):not(.btn-line):not(.cta):not(.pos-cta):not(.ins-read),
.lede a,
.faq-answer a{
  color: var(--gold);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-base) var(--ease);
  padding-bottom: 2px;
}

.sec p a:hover{
  background-size: 100% 1px;
}

/* === FOOTER bureaux — hover or === */
.fc-bureaux a, .fc-bureaux .fc-rep{
  transition: all var(--dur-base) var(--ease);
  position: relative;
  padding-left: 0;
}

.fc-bureaux a:hover{
  color: var(--gold-glow) !important;
  transform: translateX(4px);
}

.fc-bureaux a b, .fc-bureaux .fc-rep b{
  color: var(--gold);
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.005em;
}

/* === NAV — hover underline élégant === */
.nav nav a{
  position: relative;
  padding: 8px 0;
}

.nav nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-emphasis);
}

.nav nav a:hover::after,
.nav nav a.active::after{
  transform: scaleX(1);
}

.nav nav a:hover{
  color: var(--gold-glow);
}

/* === OFC (bureaux contact page) === */
.ofc{
  border-radius: 4px !important;
  box-shadow: var(--elev-1);
  transition:
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
}

.ofc:hover{
  transform: translateY(-2px);
  box-shadow: var(--elev-2);
  border-color: rgba(198,136,33,.25) !important;
}

/* ─────────────────────────────────────────────
   PHASE D4 · NAVIGATION — sticky raffinée + progress
   État repos transparent, état scrolled compact navy
   ───────────────────────────────────────────── */

/* === Nav : sticky + backdrop-blur === */
.nav{
  position: sticky !important;
  top: 0;
  z-index: 200;
  background: rgba(7,13,24,.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent !important;
  transition:
    background var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    padding var(--dur-base) var(--ease);
}

/* État scrolled : compact + navy + ombre */
body.is-scrolled .nav{
  background: rgba(8,24,48,.92) !important;
  border-bottom-color: var(--line) !important;
  box-shadow: 0 4px 24px -8px rgba(0,0,0,.5);
}

.nav-inner{
  transition: height var(--dur-base) var(--ease);
}

body.is-scrolled .nav-inner{
  height: 64px !important;
}

/* Logo : taille adaptative */
.nav .brand img{
  transition: height var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  height: 40px;
}

body.is-scrolled .nav .brand img{
  height: 32px;
}

/* === Scroll progress bar : ancrée au bas du nav === */
.scroll-bar{
  position: fixed;
  top: 64px;  /* hauteur topbar */
  left: 0; right: 0;
  height: 2px;
  background: rgba(198,136,33,.12);
  z-index: 199;
  pointer-events: none;
}

.scroll-bar::after,
#scroll-bar{
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-glow) 50%, var(--gold) 100%);
  height: 2px;
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(242,193,114,.6);
}

body.is-scrolled .scroll-bar{
  top: 64px;
}

/* === Topbar : fade au scroll (gain d'espace) === */
.topbar{
  transition: opacity var(--dur-base) var(--ease), height var(--dur-base) var(--ease);
}

/* === Nav navigation links : style refinements === */
.nav nav a{
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .005em;
  padding: 10px 14px !important;
  background: transparent !important;
}

.nav nav a:hover,
.nav nav a.active{
  background: transparent !important;
  color: var(--gold-glow) !important;
}

/* === CTA dans nav : style or distinct === */
.nav .cta{
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .005em;
  padding: 10px 20px !important;
  border-radius: 3px;
  box-shadow: var(--elev-1);
}

/* === Breadcrumbs (pour sous-pages — opt-in via classe .crumb) === */
.crumb{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: var(--space-7) 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.crumb a{
  color: var(--mute);
  transition: color var(--dur-fast) var(--ease);
}

.crumb a:hover{
  color: var(--gold);
}

.crumb .sep{
  color: var(--gold);
  font-weight: 600;
}

.crumb .current{
  color: var(--ink-2);
}

/* === WhatsApp flottant : raffinement === */
.wa-float{
  box-shadow: var(--elev-2);
  transition:
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease);
}

.wa-float:hover{
  transform: scale(1.08) translateY(-2px);
  box-shadow: var(--elev-3);
}

.wa-tip{
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}

/* === Mobile menu burger (animation drawer) === */
.nav-burger{
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  display: none;
}

.nav-burger span{
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: all var(--dur-base) var(--ease);
  transform-origin: center;
}

.nav-burger[aria-expanded="true"] span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px){
  .nav-burger{ display: block; }

  .nav nav{
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(8,24,48,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0 !important;
    padding: var(--space-7) var(--space-6);
    transform: translateY(-110%);
    transition: transform var(--dur-slow) var(--ease-emphasis);
    z-index: 150;
    overflow-y: auto;
  }

  .nav nav[data-open]{
    transform: translateY(0);
  }

  .nav nav a{
    padding: 18px 0 !important;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
}

/* ─────────────────────────────────────────────
   PHASE D5 · INSIGHTS — layout éditorial magazine
   1 featured large + 2 satellites (asymétrique)
   ───────────────────────────────────────────── */

/* Grille asymétrique : 2 colonnes principales,
   la 1ère carte occupe 2 lignes à gauche, les 2 autres empilées à droite */
.insights{
  display: grid !important;
  grid-template-columns: 1.6fr 1fr !important;
  grid-auto-rows: minmax(0, auto);
  gap: var(--space-5) !important;
  align-items: stretch;
}

/* Première carte (pivot OFNAC) : span 2 lignes, grande couverture */
.insights > .insight:first-child{
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-7) !important;
  background:
    linear-gradient(150deg, rgba(198,136,33,.08) 0%, rgba(15,38,71,.6) 60%, var(--panel) 100%) !important;
  border-color: rgba(198,136,33,.32) !important;
  box-shadow: var(--elev-2);
  position: relative;
}

/* Watermark Ruche en arrière-plan du featured */
.insights > .insight:first-child::after{
  content: "";
  position: absolute;
  right: -20px; bottom: -20px;
  width: 280px; height: 280px;
  background-image: url('assets/brand/hivesia_pattern.svg');
  background-size: 280px 280px;
  background-repeat: no-repeat;
  opacity: .04;
  pointer-events: none;
  filter: brightness(1.6);
}

.insights > .insight:first-child h4,
.insights > .insight:first-child h3{
  font-size: clamp(1.4rem, 2.4vw, 2.1rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.014em !important;
  font-weight: 400;
  max-width: 22ch;
  margin-bottom: var(--space-4) !important;
}

.insights > .insight:first-child .ins-excerpt{
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 50ch;
  margin-bottom: var(--space-6) !important;
}

/* Bandeau référence éditoriale (mono caps) */
.insights > .insight:first-child .insight-head{
  margin-bottom: var(--space-7) !important;
}

/* Animation reveal stagger */
.insights > .insight{
  transition:
    transform var(--dur-slow) var(--ease-emphasis),
    opacity var(--dur-slow) var(--ease-emphasis),
    box-shadow var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease) !important;
}

.insights.reveal.on > .insight:nth-child(1){ transition-delay: 0ms; }
.insights.reveal.on > .insight:nth-child(2){ transition-delay: 120ms; }
.insights.reveal.on > .insight:nth-child(3){ transition-delay: 240ms; }

/* Cadence éditoriale — déjà ajoutée en Phase 11, raffinement typo */
.insights-cadence{
  font-family: var(--sans) !important;
  font-size: 14.5px !important;
  letter-spacing: .005em !important;
  border-color: var(--line-2) !important;
}

.insights-cadence strong{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold) !important;
  font-weight: 600;
  margin-right: 4px;
}

/* === Page insights.html : .insight-feature affiné === */
.insight-feature{
  display: grid !important;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  padding: var(--space-7) !important;
  background:
    linear-gradient(135deg, rgba(198,136,33,.06) 0%, rgba(15,38,71,.5) 50%, var(--panel) 100%) !important;
  border-color: rgba(198,136,33,.3) !important;
  box-shadow: var(--elev-2);
  align-items: center;
  margin-bottom: var(--space-6) !important;
  position: relative;
  overflow: hidden;
}

.insight-feature::before{
  height: 3px !important;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-glow) 30%, var(--gold) 70%, transparent 100%) !important;
}

.insight-feature h3{
  font-size: clamp(1.5rem, 2.6vw, 2.4rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.016em !important;
}

.insight-feature .ins-ref{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: var(--space-3);
}

.insight-feature .ins-key{
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.insight-feature .ins-key li{
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
  font-size: 14.5px;
  color: var(--ink-2);
}

.insight-feature .ins-key li::before{
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* Couverture éditoriale (numérotation grande) */
.feat-cover{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 280px;
  padding: var(--space-6);
  background:
    radial-gradient(circle at 80% 20%, rgba(198,136,33,.18) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--panel) 100%);
  border-radius: 4px;
  border: 1px solid rgba(198,136,33,.2);
  position: relative;
  overflow: hidden;
}

.feat-cover::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/brand/hivesia_pattern.svg');
  background-size: 180px 180px;
  background-repeat: repeat;
  opacity: .06;
  pointer-events: none;
}

.feat-cover-tag{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.feat-num{
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4.6rem, 9vw, 7.6rem);
  line-height: 0.9;
  color: var(--gold-glow);
  letter-spacing: -0.04em;
  text-align: center;
  position: relative;
  z-index: 1;
  margin: var(--space-4) 0;
}

.feat-cover-meta{
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  position: relative;
  z-index: 1;
}

/* Mobile : retour en pile verticale (insights index + featured) */
@media (max-width: 900px){
  .insights{
    grid-template-columns: 1fr !important;
  }
  .insights > .insight:first-child{
    grid-row: auto;
  }
  .insights > .insight:first-child::after{
    width: 180px; height: 180px;
  }
  .insight-feature{
    grid-template-columns: 1fr !important;
    gap: var(--space-5);
  }
  .feat-cover{
    min-height: 180px;
  }
}

/* ─────────────────────────────────────────────
   PHASE D6 · MOBILE EXCELLENCE + ACCESSIBILITÉ
   Polish final, touch targets, print, ornements
   ───────────────────────────────────────────── */

/* === MOBILE typography fine-tune === */
@media (max-width: 600px){
  body{ font-size: 15px; }
  .wrap{ padding: 0 var(--space-5); }
  .lede{ font-size: 16.5px; }
  .sec-title{
    font-size: clamp(1.8rem, 8vw, 2.4rem) !important;
  }
  .hero h1 .h1-display{
    font-size: clamp(2rem, 11vw, 3rem) !important;
  }
  .hero-metrics{
    grid-template-columns: 1fr 1fr !important;
    gap: var(--space-5) !important;
  }
  .hero-actions{
    flex-direction: column;
    gap: var(--space-3) !important;
  }
  .hero-actions a{
    width: 100%;
    text-align: center;
  }
}

/* === TOUCH TARGETS ≥ 44px === */
@media (max-width: 900px){
  .btn-gold, .btn-line, .cta,
  .form button,
  .careers-form button{
    min-height: 48px;
    padding: 14px 22px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav .brand{
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
  .wa-float{
    width: 56px;
    height: 56px;
  }
}

/* === Skip link visible au focus === */
.skip:focus{
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  padding: 12px 20px !important;
  border-radius: 3px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: var(--elev-3);
  outline: 2px solid var(--gold-glow);
  outline-offset: 3px;
  z-index: 9999;
}

/* === FORMS : style premium === */
.form input,
.form select,
.form textarea,
.careers-form input,
.careers-form select,
.careers-form textarea{
  font-family: var(--sans) !important;
  font-size: 15px !important;
  background: rgba(8,24,48,.4) !important;
  border: 1px solid var(--line-2) !important;
  color: var(--ink) !important;
  padding: 14px 16px !important;
  border-radius: 3px !important;
  transition:
    border-color var(--dur-base) var(--ease),
    background var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease) !important;
}

.form input:hover,
.form select:hover,
.form textarea:hover{
  border-color: rgba(198,136,33,.25) !important;
}

.form input:focus,
.form select:focus,
.form textarea:focus{
  outline: none !important;
  border-color: var(--gold) !important;
  background: rgba(8,24,48,.6) !important;
  box-shadow: 0 0 0 3px rgba(198,136,33,.12) !important;
}

.form label{
  font-family: var(--sans) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: var(--ls-overline) !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin-bottom: 8px !important;
  display: block;
}

.form input::placeholder,
.form textarea::placeholder{
  color: rgba(255,255,255,.28) !important;
  font-style: italic;
}

/* === COMMAND CENTER — états affinés === */
.cc-frame{
  border-radius: 4px;
  box-shadow: var(--elev-2);
}

.cc-head{
  border-bottom: 1px solid var(--line-2);
}

.cc-cell{
  transition:
    background var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease) !important;
}

.cc-cell:hover{
  border-color: rgba(198,136,33,.18) !important;
}

/* Loading state pulse plus élégant */
.cc-rows .loading,
.cc-feed .loading,
.wb-table .loading{
  position: relative;
  color: var(--mute) !important;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.cc-rows .loading::after,
.cc-feed .loading::after,
.wb-table .loading::after{
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-left: 8px;
  animation: hivesiaPulse 1.4s ease-in-out infinite;
}

@keyframes hivesiaPulse{
  0%,100%{ opacity: .3; transform: scale(.8); }
  50%{ opacity: 1; transform: scale(1); }
}

.live-dot{
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--green-glow);
  animation: hivesiaLive 2s ease-in-out infinite;
}

@keyframes hivesiaLive{
  0%,100%{ opacity: .6; }
  50%{ opacity: 1; }
}

/* Source labels (cc-src) */
.cc-src{
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: .14em;
  color: var(--mute);
  font-weight: 500;
}

/* === FAQ accordion — chevron animé === */
.faq-item summary{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  padding: var(--space-5) 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  transition: color var(--dur-base) var(--ease);
}

.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::marker{ display: none; }

.faq-item summary::after{
  content: "+";
  font-family: var(--display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-emphasis);
}

.faq-item[open] summary{
  color: var(--gold-glow);
}

.faq-item[open] summary::after{
  transform: rotate(45deg);
  color: var(--gold-glow);
}

.faq-answer{
  padding: 0 0 var(--space-6);
  animation: hivesiaFadeIn var(--dur-base) var(--ease-emphasis);
}

.faq-answer p{
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 70ch;
}

@keyframes hivesiaFadeIn{
  from{ opacity: 0; transform: translateY(-4px); }
  to{ opacity: 1; transform: translateY(0); }
}

.faq-item{
  border-bottom: 1px solid var(--line);
}

/* === FOOTER institutionnel === */
.foot-cab{
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line-2);
  padding-top: var(--space-9) !important;
}

.foot-cab::before{
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: .25;
  margin-bottom: var(--space-9);
}

.fc-brand b{
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--ink);
}

.fc-brand span{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-top: 4px;
}

.fc-brand p{
  color: var(--ink-2);
  line-height: 1.65;
  margin-top: var(--space-3);
  max-width: 40ch;
}

.fc-col h5{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-4);
}

.fc-col a{
  display: block;
  padding: 6px 0;
  color: var(--ink-2);
  transition: color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.fc-col a:hover{
  color: var(--gold-glow);
  transform: translateX(3px);
}

.foot-cab-tag{
  border-top: 1px solid var(--line);
  margin-top: var(--space-8);
  padding: var(--space-5) 0;
  text-align: center;
}

.foot-cab-tag p{
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.005em;
}

.foot-cab-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--mute);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.foot-cab-bottom a{
  color: var(--mute);
  transition: color var(--dur-fast) var(--ease);
}

.foot-cab-bottom a:hover{ color: var(--gold); }
.fcb-sep{ color: var(--gold); opacity: .5; }

/* === PRESS / CLIENTS TRUST block (Phase 4) === */
.clients-trust .trust-block{
  border: 1px solid rgba(15,38,71,.18);
  box-shadow: var(--elev-1);
}

.clients-trust .trust-title em{
  color: var(--gold) !important;
}

/* === ABOUT TEASER === */
.about-teaser{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.about-stats{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.about-stats > div{
  background: rgba(15,38,71,.25);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: var(--space-5);
  transition: all var(--dur-base) var(--ease);
}

.about-stats > div:hover{
  border-color: rgba(198,136,33,.25);
  transform: translateY(-2px);
  box-shadow: var(--elev-2);
}

.about-stats .n{
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--gold-glow);
  line-height: 1;
  letter-spacing: -0.02em;
}

.about-stats .l{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-top: var(--space-3);
  line-height: 1.4;
}

@media (max-width: 900px){
  .about-teaser{
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* === CAREERS === */
.cr-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.cr-list span{
  display: block;
  padding: 14px 18px;
  background: rgba(15,38,71,.25);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font-size: 14.5px;
  color: var(--ink);
  transition: all var(--dur-base) var(--ease);
}

.cr-list span:hover{
  border-color: rgba(198,136,33,.3);
  transform: translateX(4px);
}

.cr-tag{
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--gold);
}

/* === AFRICA FOCUS === */
.africa-tag{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(198,136,33,.08);
  border: 1px solid rgba(198,136,33,.2);
  padding: 6px 12px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: var(--space-5);
}

/* === COMMAND CENTER disclaimer === */
.command-disclaimer{
  font-family: var(--sans) !important;
  font-style: italic;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--mute) !important;
  border-top: 1px solid var(--line);
  padding-top: var(--space-5) !important;
  margin-top: var(--space-6) !important;
}

/* === PRINT styles — sobre cabinet === */
@media print{
  *{
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body{
    font-size: 11pt;
    line-height: 1.5;
  }
  .topbar,
  .nav,
  .scroll-bar,
  .wa-float,
  .hero-bg,
  .hero-grid-bg,
  .hero-actions,
  .nav-burger,
  .press-honeycomb,
  .cc-frame,
  .africa,
  .careers-form,
  .foot-cab-bottom{
    display: none !important;
  }
  .hero,
  .sec{
    padding: 24pt 0 !important;
    page-break-inside: avoid;
  }
  .sec-head{
    grid-template-columns: 1fr !important;
    border: none !important;
    margin-bottom: 12pt !important;
  }
  .sec-num{
    font-size: 11pt !important;
    color: #000 !important;
  }
  h1, h2, h3, h4{
    color: #000 !important;
    page-break-after: avoid;
  }
  em, i{
    color: #555 !important;
    font-style: italic;
  }
  a{
    color: #000 !important;
    text-decoration: underline;
  }
  a[href^="http"]::after{
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }
  .pos-grid, .serv, .insights{
    grid-template-columns: 1fr !important;
    gap: 8pt !important;
  }
}

/* === REDUCED MOTION fallback complet === */
@media (prefers-reduced-motion: reduce){
  .hero h1 .h1-eyebrow,
  .hero h1 .h1-display,
  .hero h1 .h1-display em,
  .hero .lede,
  .hero .hero-actions,
  .hero .hero-metrics,
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .live-dot,
  .cc-rows .loading::after{
    animation: none !important;
  }
}

/* === Ornement Ruche en hero (signature subtile) === */
.hero{
  position: relative;
  overflow: hidden;
}

.hero::after{
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  width: 480px;
  height: 480px;
  background-image: url('assets/brand/hivesia_pattern.svg');
  background-size: 480px 480px;
  background-repeat: no-repeat;
  opacity: .035;
  filter: brightness(2);
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 0;
}

.hero > .wrap{
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────
   PHASE D5b · INSIGHTS — REMPLACEMENT
   Layout symétrique magnifié (3 cartes égales raffinées)
   Override de la Phase D5 (asymétrique abandonnée)
   ───────────────────────────────────────────── */

/* === Reset grille : retour en 3 colonnes égales === */
.insights{
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: 1fr;
  gap: var(--space-5) !important;
  align-items: stretch;
}

/* Reset du span 2 lignes de la 1ère carte */
.insights > .insight:first-child{
  grid-row: auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding: var(--space-6) !important;
  background: var(--panel) !important;
  border-color: rgba(198,136,33,.32) !important;
  position: relative;
}

/* Garde le watermark Ruche UNIQUEMENT sur la carte pivot (OFNAC),
   mais à taille réduite et bien intégré */
.insights > .insight:first-child::after{
  width: 160px !important;
  height: 160px !important;
  background-size: 160px 160px !important;
  right: -16px !important;
  bottom: -16px !important;
  opacity: .045 !important;
}

/* === Toutes les cartes : style éditorial uniforme === */
.insights > .insight{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--space-6) !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: var(--elev-1);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease) !important;
}

.insights > .insight:hover{
  transform: translateY(-4px);
  box-shadow: var(--elev-2);
  border-color: rgba(198,136,33,.32) !important;
}

/* Barre supérieure or qui se déploie au hover (toutes cartes) */
.insights > .insight::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-glow) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-emphasis);
}

.insights > .insight:hover::before{
  transform: scaleX(1);
}

/* === Référence éditoriale au-dessus du badge (HIVESIA-XXX) === */
.insights > .insight .insight-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}

/* Badge catégorie : taille, encadrement homogène */
.insights > .insight .ins-cat{
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(198,136,33,.08);
  padding: 6px 11px;
  border-radius: 2px;
  border: 1px solid rgba(198,136,33,.2);
  line-height: 1.3;
  max-width: 70%;
}

/* La 1ère carte (pivot) a un badge légèrement plus marqué */
.insights > .insight:first-child .ins-cat{
  background: rgba(198,136,33,.14);
  border-color: rgba(198,136,33,.35);
  color: var(--gold-glow);
}

.insights > .insight .ins-time{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--mute);
  flex-shrink: 0;
  padding-top: 6px;
}

/* === Body : titre + extrait avec respiration === */
.insights > .insight .insight-body{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.insights > .insight h4,
.insights > .insight h3{
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.55vw, 1.4rem) !important;
  line-height: 1.22 !important;
  letter-spacing: -0.008em !important;
  margin: 0 0 var(--space-4) !important;
  color: var(--ink);
  max-width: none !important;
}

.insights > .insight h4 em,
.insights > .insight h3 em{
  font-style: italic;
  color: var(--gold-glow);
  font-weight: 300;
}

.insights > .insight .ins-excerpt{
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: var(--ink-2);
  margin: 0 0 var(--space-5) !important;
  flex: 1 1 auto;
  max-width: none !important;
}

/* === Footer : meta + lien Lire === */
.insights > .insight .insight-foot{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.insights > .insight .ins-meta-foot{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.insights > .insight .ins-pub{
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

.insights > .insight .ins-date{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: .04em;
}

.insights > .insight .ins-read{
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}

.insights > .insight:hover .ins-read{
  gap: 12px;
  color: var(--gold-glow);
}

/* === Stagger reveal conservé === */
.insights.reveal.on > .insight:nth-child(1){ transition-delay: 0ms; }
.insights.reveal.on > .insight:nth-child(2){ transition-delay: 100ms; }
.insights.reveal.on > .insight:nth-child(3){ transition-delay: 200ms; }

/* === Responsive === */
@media (max-width: 1024px){
  .insights{
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .insights > .insight:first-child{
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px){
  .insights{
    grid-template-columns: 1fr !important;
    gap: var(--space-4) !important;
  }
  .insights > .insight:first-child{
    grid-column: auto;
  }
  .insights > .insight:first-child::after{
    width: 120px !important;
    height: 120px !important;
    background-size: 120px 120px !important;
  }
  .insights > .insight .insight-head{
    min-height: auto;
  }
}

/* ─────────────────────────────────────────────
   PHASE D5c · INSIGHTS — uniformisation + compaction
   Cartes identiques (pas de distinction pivot), plus compactes
   ───────────────────────────────────────────── */

/* === Reset : OFNAC = mêmes styles que les autres === */
.insights > .insight:first-child{
  background: var(--panel) !important;
  border-color: var(--line) !important;
}

/* Watermark Ruche complètement retiré */
.insights > .insight:first-child::after{
  display: none !important;
}

/* Badge OFNAC ramené au même niveau que les autres */
.insights > .insight:first-child .ins-cat{
  background: rgba(198,136,33,.08) !important;
  border-color: rgba(198,136,33,.2) !important;
  color: var(--gold) !important;
}

/* === Cartes plus compactes === */
.insights > .insight{
  padding: var(--space-5) !important;
  box-shadow: none;
  border: 1px solid var(--line);
}

.insights > .insight:hover{
  transform: translateY(-2px);
  border-color: rgba(198,136,33,.22) !important;
  box-shadow: var(--elev-1);
}

/* Header : hauteur min réduite */
.insights > .insight .insight-head{
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  min-height: auto;
}

/* Titre : taille réduite, plus discret */
.insights > .insight h4,
.insights > .insight h3{
  font-size: clamp(1.02rem, 1.3vw, 1.18rem) !important;
  line-height: 1.3 !important;
  margin: 0 0 var(--space-3) !important;
}

/* Excerpt : taille réduite et plus serré */
.insights > .insight .ins-excerpt{
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  margin: 0 0 var(--space-4) !important;
}

/* Badge : compact */
.insights > .insight .ins-cat{
  font-size: 10px;
  padding: 5px 9px;
}

/* Footer : compact */
.insights > .insight .insight-foot{
  padding-top: var(--space-3);
}

/* Hover : flèche moins agressive */
.insights > .insight:hover .ins-read{
  gap: 9px;
}

/* Barre top : épaisseur réduite */
.insights > .insight::before{
  height: 1px;
}

/* === Gap entre cartes : un peu plus serré === */
.insights{
  gap: var(--space-4) !important;
}

/* ─────────────────────────────────────────────
   PHASE D5d · INSIGHTS — taille uniforme + ultra-compact
   Titres identiques, line-clamp, suppression des vides
   ───────────────────────────────────────────── */

/* Padding compact */
.insights > .insight{
  padding: var(--space-4) var(--space-5) !important;
}

/* Header : padding réduit au minimum */
.insights > .insight .insight-head{
  padding-bottom: 10px;
  margin-bottom: var(--space-3);
}

/* === Titres : taille fixe identique pour tous + 2 lignes max === */
.insights > .insight h4,
.insights > .insight h3{
  font-size: 17px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.005em !important;
  margin: 0 0 10px !important;
  /* Clamp à 3 lignes pour éviter cartes trop hautes */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(17px * 1.3 * 3); /* réserve 3 lignes même si titre court */
}

/* === Excerpt : taille uniforme + line-clamp 3 lignes === */
.insights > .insight .ins-excerpt{
  font-size: 13px !important;
  line-height: 1.5 !important;
  margin: 0 0 var(--space-4) !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
  min-height: calc(13px * 1.5 * 3);
}

/* === Body : structure flexible sans vide === */
.insights > .insight .insight-body{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

/* Footer collé au bas mais sans vide entre body et footer */
.insights > .insight .insight-foot{
  padding-top: var(--space-3);
  margin-top: 0 !important;
}

/* === Suppression bordure header si redondance === */
.insights > .insight .insight-head{
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: var(--space-3);
}

/* === Cartes hauteur égale forcée === */
.insights > .insight{
  height: 100%;
  min-height: 0;
}

/* ─────────────────────────────────────────────
   SPRINT 1 · S1.4 — PIVOT OFNAC pleine largeur
   Position paper promu en hero éditorial avant la grille insights
   Cadre de référence : Foreign Affairs / Project Syndicate
   ───────────────────────────────────────────── */

.insight-pivot{
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--space-7);
  align-items: stretch;
  padding: var(--space-7);
  margin-bottom: var(--space-6);
  background:
    linear-gradient(135deg,
      rgba(198,136,33,.07) 0%,
      rgba(15,38,71,.55) 45%,
      var(--panel) 100%);
  border: 1px solid rgba(198,136,33,.28);
  border-radius: 4px;
  box-shadow: var(--elev-2);
  position: relative;
  overflow: hidden;
  color: inherit;
  transition:
    transform var(--dur-slow) var(--ease-emphasis),
    box-shadow var(--dur-slow) var(--ease-emphasis),
    border-color var(--dur-base) var(--ease);
}

/* Barre top or qui se déploie au hover (signature pivot) */
.insight-pivot::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg,
    var(--gold) 0%,
    var(--gold-glow) 35%,
    var(--gold) 70%,
    transparent 100%);
  transform: scaleX(.4);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-emphasis);
}

.insight-pivot:hover{
  transform: translateY(-4px);
  box-shadow: var(--elev-3);
  border-color: rgba(198,136,33,.45);
}
.insight-pivot:hover::before{
  transform: scaleX(1);
}

/* Colonne gauche — éditorial */
.pivot-left{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.pivot-ref{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
}

.pivot-kicker{
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-2);
}

.pivot-title{
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.016em;
  color: var(--ink);
  margin: 0;
  max-width: 24ch;
}

.pivot-title em{
  font-style: italic;
  font-weight: 300;
  color: var(--gold-glow);
}

.pivot-excerpt{
  font-family: var(--sans);
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
  margin: var(--space-3) 0 var(--space-5);
  max-width: 56ch;
}

.pivot-cta{
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}

.insight-pivot:hover .pivot-cta{
  gap: 14px;
  color: var(--gold-glow);
}

/* Colonne droite — couverture éditoriale */
.pivot-right{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-6);
  background:
    radial-gradient(circle at 75% 25%, rgba(198,136,33,.16) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--panel) 100%);
  border: 1px solid rgba(198,136,33,.22);
  border-radius: 4px;
  overflow: hidden;
  min-height: 240px;
}

.pivot-right::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/brand/hivesia_pattern.svg');
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: .06;
  pointer-events: none;
  filter: brightness(1.6);
}

.pivot-tag{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.pivot-num{
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4.2rem, 8vw, 6.8rem);
  line-height: 0.9;
  color: var(--gold-glow);
  letter-spacing: -0.04em;
  text-align: center;
  position: relative;
  z-index: 1;
  margin: var(--space-3) 0;
}

.pivot-meta{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: right;
  position: relative;
  z-index: 1;
}

/* === Grille insights restreinte à 2 colonnes (OFNAC sorti) === */
.insights{
  grid-template-columns: repeat(2, 1fr) !important;
  grid-auto-rows: 1fr;
}

/* Stagger reveal pour les 2 cartes restantes */
.insights.reveal.on > .insight:nth-child(1){ transition-delay: 0ms; }
.insights.reveal.on > .insight:nth-child(2){ transition-delay: 100ms; }
.insights.reveal.on > .insight:nth-child(3){ transition-delay: 0ms; } /* fallback */

/* Reset : annulation du watermark first-child Phase D5b (OFNAC n'est plus dans la grille) */
.insights > .insight:first-child{
  background: var(--panel) !important;
  border-color: var(--line) !important;
}
.insights > .insight:first-child::after{
  display: none !important;
}
.insights > .insight:first-child .ins-cat{
  background: rgba(198,136,33,.08) !important;
  border-color: rgba(198,136,33,.2) !important;
  color: var(--gold) !important;
}

/* === Responsive Pivot === */
@media (max-width: 900px){
  .insight-pivot{
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-6);
  }
  .pivot-right{
    min-height: 180px;
    order: -1;
  }
  .pivot-num{
    font-size: clamp(3.2rem, 14vw, 5rem);
  }
  .insights{
    grid-template-columns: 1fr !important;
  }
}

/* ─────────────────────────────────────────────
   SPRINT 1 BIS · NUMÉRO DAKAR +221 (ligne principale)
   ───────────────────────────────────────────── */

/* === Numéro Dakar dans la topbar === */
.topbar-phone{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--gold);
  text-decoration: none;
  padding: 0 14px;
  border-left: 1px solid rgba(255,255,255,.08);
  border-right: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  height: 34px;
}

.topbar-phone:hover{
  color: var(--gold-glow);
  background: rgba(198,136,33,.06);
}

.topbar-phone-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(242,193,114,.5);
  flex-shrink: 0;
}

/* Mobile : masque le numéro topbar pour éviter la surcharge */
@media (max-width: 700px){
  .topbar-phone{
    display: none;
  }
}

/* === Numéro Dakar dans le footer (mis en avant) === */
.fc-phone-primary{
  display: block !important;
  padding: 8px 0 !important;
  margin: 4px 0;
  color: var(--gold-glow) !important;
  font-family: var(--sans);
  line-height: 1.4;
  border-left: 2px solid var(--gold);
  padding-left: 12px !important;
  transition: color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease) !important;
}

.fc-phone-primary b{
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold) !important;
  display: block;
  margin-bottom: 2px;
}

.fc-phone-primary:hover{
  color: #fff !important;
  border-color: var(--gold-glow);
  transform: translateX(2px);
}

/* WhatsApp footer : devient secondaire visuellement */
.fc-whatsapp{
  font-size: 13px;
  opacity: .85;
  line-height: 1.4;
  padding: 8px 0 !important;
}

.fc-whatsapp:hover{
  opacity: 1;
}

/* ─────────────────────────────────────────────
   SPRINT 2 · S2.2 — DÉTOXIQUER L'OR SAHÉLIEN
   Discipline brand : l'or est réservé aux zones NOBLES
   (italiques signature, CTA primaire, numéros chapitre,
    scroll progress, focus, watermark, topbar phone).
   Retiré de : bullets, cycle steps, dashed lines,
   bordures décoratives non porteuses de sens.
   ───────────────────────────────────────────── */

/* Bullets des services — passage en filet neutre */
.serv article ul li::before{
  background: var(--line-2) !important;
  opacity: 1 !important;
  width: 10px !important;
}

/* Bullets insights (.ins-key) — idem */
.insight-feature .ins-key li::before,
.insights .ins-key li::before{
  background: var(--line-2) !important;
}

/* Cycle steps PS — neutralisation totale (passe en mute) */
.serv-flow{
  border-top: 1px solid var(--line) !important;
  padding-top: var(--space-4) !important;
}

.serv-flow span{
  background: rgba(255,255,255,.025) !important;
  border: 1px solid var(--line) !important;
  color: var(--mute) !important;
  font-weight: 500;
}

/* Le hover du featured PS conserve un soupçon d'or (subtil) */
.serv article.featured:hover .serv-flow span{
  color: var(--ink-2) !important;
  border-color: var(--line-2) !important;
}

/* Pivot OFNAC kicker — on garde or-sahélien (zone noble, signal pivot) ✓ */

/* expertise-core bordures inline — on neutralise les box-shadow inline */
.pos-grid > a.expertise-core{
  box-shadow: var(--elev-1) !important;
}

/* Garde l'accent visuel core via la barre verticale or au hover seul */
.pos-grid > a.expertise-core::before{
  opacity: 0 !important;          /* invisible au repos */
  transform: scaleY(0) !important;
}
.pos-grid > a.expertise-core:hover::before{
  opacity: 1 !important;
  transform: scaleY(1) !important;
}

/* Cards services bordure hover : passe à un blanc semi-transparent au lieu d'or */
.serv article:hover{
  border-color: var(--line-2) !important;
}

/* Cards insights bordure hover : idem */
.insights > .insight:hover{
  border-color: var(--line-2) !important;
}

/* Le ::before barre top des insights perd l'or au profit d'un dégradé clair */
.insights > .insight::before{
  background: linear-gradient(90deg, var(--line-2) 0%, rgba(255,255,255,.18) 50%, transparent 100%) !important;
}

/* La bordure pivot OFNAC reste or (c'est LA zone noble qui mérite l'accent) ✓ */

/* Africa-tag : passe en or mais plus discret */
.africa-tag{
  background: rgba(255,255,255,.03) !important;
  border-color: var(--line-2) !important;
  color: var(--ink-2) !important;
}

/* Badge SIÈGE dans contact.html : on garde l'or (zone noble — siège du cabinet) ✓ */

/* Bordure footer top accent : devient blanche subtile (moins or) */
.foot-cab::before{
  background: linear-gradient(90deg, transparent 0%, var(--line-2) 50%, transparent 100%) !important;
  opacity: .5 !important;
}

/* Cards Carrières : hover en blanc, plus en or */
.cr-list span:hover{
  border-color: var(--line-2) !important;
}

/* About-stats hover : neutralisation */
.about-stats > div:hover{
  border-color: var(--line-2) !important;
}

/* Ofc (bureaux contact) hover : neutralisation */
.ofc:hover{
  border-color: var(--line-2) !important;
}

/* === SYNTHÈSE — les ZONES NOBLES qui conservent l'OR ===
   1. Italiques Fraunces H1/H2 (--gold-glow)            ← signature
   2. Numéros de section .sec-num                       ← chapitrage éditorial
   3. CTA primaire .btn-gold + .cta                     ← appel à l'action
   4. Scroll progress bar (#scroll-bar)                 ← feedback navigation
   5. Focus ring (:focus-visible)                       ← accessibilité
   6. Pattern Ruche watermark                           ← signature brand
   7. Topbar phone .topbar-phone                        ← contact prioritaire
   8. Pivot OFNAC barre + kicker + couverture           ← pivot stratégique
   9. fc-phone-primary footer (numéro Dakar)            ← contact prioritaire
   10. Badge SIÈGE                                       ← marqueur souverain
   = 10 zones strictement disciplinées au lieu de 25+
*/

/* ─────────────────────────────────────────────
   SPRINT 2 · S2.3 — PATTERN RUCHE SYSTÉMIQUE
   La Ruche n'est plus seulement un ornement ponctuel.
   Elle devient un leitmotiv discret qui signe
   l'identité Hivesia sur 4 zones contextuelles.
   ───────────────────────────────────────────── */

/* === Footer : Ruche en watermark subtil === */
.foot-cab{
  position: relative;
  overflow: hidden;
}

.foot-cab::after{
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 420px;
  height: 420px;
  background-image: url('/assets/brand/hivesia_pattern.svg');
  background-size: 420px 420px;
  background-repeat: no-repeat;
  opacity: .03;
  filter: brightness(2);
  pointer-events: none;
  z-index: 0;
}

.foot-cab > *{
  position: relative;
  z-index: 1;
}

/* === About-teaser : Ruche en arrière-plan === */
.about-teaser{
  position: relative;
}

.about-teaser::before{
  content: "";
  position: absolute;
  left: 40%;
  top: -40px;
  width: 320px;
  height: 320px;
  background-image: url('/assets/brand/hivesia_pattern.svg');
  background-size: 320px 320px;
  background-repeat: no-repeat;
  opacity: .025;
  filter: brightness(2);
  pointer-events: none;
  z-index: 0;
}

.about-teaser > *{
  position: relative;
  z-index: 1;
}

/* === Command Center : Ruche très discrète dans la frame === */
.cc-frame{
  position: relative;
  overflow: hidden;
}

.cc-frame::after{
  content: "";
  position: absolute;
  right: -40px;
  top: 20px;
  width: 240px;
  height: 240px;
  background-image: url('/assets/brand/hivesia_pattern.svg');
  background-size: 240px 240px;
  background-repeat: no-repeat;
  opacity: .025;
  filter: brightness(2);
  pointer-events: none;
  z-index: 0;
}

.cc-frame > *{
  position: relative;
  z-index: 1;
}

/* === Section heads : Ruche déjà ajoutée Phase D2 ✓ === */

/* === Hero : Ruche déjà ajoutée Phase D6 ✓ === */

/* === Pivot OFNAC : Ruche déjà ajoutée S1.4 ✓ === */

/* === Correctifs chemins absolus pour sous-pages ===
   Toutes les références d'image utilisent désormais "/assets/..."
   pour fonctionner depuis insights/, expertises/, legal/ */
.hero::after,
.sec-head::after,
.insights > .insight:first-child::after,
.pivot-right::after{
  background-image: url('/assets/brand/hivesia_pattern.svg') !important;
}

/* ─────────────────────────────────────────────
   SPRINT 2 · S2.5 — IMAGES & TABLES RESPONSIVE
   Lazy-load fade-in + scroll horizontal tableaux WB
   ───────────────────────────────────────────── */

/* === Fade-in subtil au chargement des images lazy === */
img[loading="lazy"]{
  opacity: 0;
  transition: opacity 400ms var(--ease);
}

img[loading="lazy"].is-loaded,
img[loading="lazy"][complete],
img[loading="lazy"][src*=".svg"]{
  opacity: 1;
}

/* Fallback : si le navigateur n'a pas le temps de marquer .is-loaded,
   on force la visibilité après 1s pour éviter les images invisibles */
@keyframes hivesiaImgFallback{
  to{ opacity: 1; }
}
img[loading="lazy"]{
  animation: hivesiaImgFallback 200ms var(--ease) 1200ms forwards;
}

/* === Tableaux Command Center : scroll horizontal sur mobile === */
.wb-table{
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.wb-table::-webkit-scrollbar{
  height: 6px;
}
.wb-table::-webkit-scrollbar-track{
  background: rgba(255,255,255,.03);
}
.wb-table::-webkit-scrollbar-thumb{
  background: rgba(198,136,33,.4);
  border-radius: 3px;
}

@media (max-width: 700px){
  .wb-table{
    min-width: 0;
  }
  .wb-table thead,
  .wb-table tbody,
  .wb-table tr{
    display: table;
    width: 100%;
    table-layout: fixed;
    min-width: 480px;
  }
  .wb-table td,
  .wb-table th{
    padding: 8px 10px !important;
    font-size: 12.5px;
  }
}

/* Idem pour les feed lists (cc-feed) sur mobile : améliore lisibilité */
@media (max-width: 600px){
  .cc-feed li{
    font-size: 13px;
    padding: 10px 0;
  }
  .cc-body{
    grid-template-columns: 1fr !important;
    gap: var(--space-4);
  }
  .cc-cell{
    padding: 14px !important;
  }
}

/* ═════════════════════════════════════════════════════════════
   SPRINT 3 · FOUNDATION — ÉCHELLE MODULAIRE TYPOGRAPHIQUE
   Ratio 1.333 (Perfect Fourth) à partir d'une base 16px
   7 tailles strictement disciplinées au lieu de 18 ad-hoc.
   Application : tous les niveaux de texte du site.
   ═════════════════════════════════════════════════════════════ */

:root{
  /* Base 16px · Ratio 1.333 (Perfect Fourth) */
  --t-base:    16px;        /* corps de texte */
  --t-xs:      12px;        /* meta, mono, mentions */
  --t-sm:      14px;        /* secondary text, labels */
  --t-md:      18px;        /* lede, accroches */
  --t-lg:      24px;        /* h3, blocs principaux */
  --t-xl:      32px;        /* h2 mobile */
  --t-2xl:     42px;        /* h2 desktop */
  --t-3xl:     56px;        /* h1 mobile */
  --t-4xl:     74px;        /* h1 desktop / display */
  --t-5xl:     96px;        /* sec-num chapter */

  /* Fluid bindings : sécurise mobile → desktop sans rupture */
  --fs-body:      clamp(15px, 1vw, var(--t-base));
  --fs-lead:      clamp(16.5px, 1.2vw, var(--t-md));
  --fs-h3:        clamp(1.05rem, 1.45vw, 1.35rem);    /* 17→22 */
  --fs-h2:        clamp(1.55rem, 3vw, 2.4rem);         /* 25→38 */
  --fs-h1:        clamp(2.1rem, 4.2vw, 3.55rem);       /* 34→57 */
  --fs-display:   clamp(2.45rem, 5vw, 4.55rem);        /* 39→73 */
  --fs-overline:  12px;
}

/* ═════════════════════════════════════════════════════════════
   SPRINT 3 · S3.4 — SEC-HEAD BRUNSWICK
   Réécriture du chapitrage : numéro INLINE compact + filet,
   au lieu du numéro géant qui dominait visuellement le H2.
   Audit DA : numéro à 50-65% taille H2 (standard institutionnel).
   ═════════════════════════════════════════════════════════════ */

/* Retour à grille à 1 colonne — le numéro devient un eyebrow */
.sec-head{
  grid-template-columns: 1fr !important;
  gap: var(--space-5) !important;
  padding-top: var(--space-7) !important;
  margin-bottom: var(--space-8) !important;
  border-top: 1px solid var(--line-2);
  position: relative;
  max-width: 920px;
}

/* Le ::before reste un filet d'accent or court (signal subtil) */
.sec-head::before{
  width: 48px !important;
  height: 1px !important;
  background: var(--gold) !important;
  opacity: .9 !important;
  top: -1px !important;
}

/* Watermark Ruche reste mais plus discret */
.sec-head::after{
  width: 64px !important;
  height: 64px !important;
  background-size: 64px 64px !important;
  opacity: .04 !important;
  right: 0 !important;
  top: 12px !important;
}

/* === Numéro de chapitre — INLINE Brunswick === */
.sec-num{
  display: inline-flex !important;
  align-items: center;
  gap: 14px !important;
  font-family: var(--mono) !important;
  font-style: normal !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
  color: var(--gold) !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 0 var(--space-3) !important;
  width: auto !important;
}

/* Label en mono (déjà inline-flex avec le numéro) */
.sec-num span{
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 0 0 14px !important;
  border-top: none !important;
  border-left: 1px solid var(--line-2) !important;
  font-family: var(--mono) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase;
  color: var(--mute) !important;
  width: auto !important;
}

/* === Titre H2 reprend l'autorité visuelle === */
.sec-title{
  font-size: var(--fs-h2) !important;
  font-weight: 300 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.015em !important;
  margin: 0 0 var(--space-4) !important;
  max-width: 22ch;
}

.sec-title em{
  font-style: italic;
  color: var(--gold-glow) !important;
  font-weight: 300;
}

.sec-sub{
  font-size: var(--fs-lead) !important;
  line-height: 1.6 !important;
  max-width: 64ch !important;
  color: var(--ink-2);
  margin-top: var(--space-3);
}

/* Mobile : structure conservée, paddings réduits */
@media (max-width: 700px){
  .sec-head{
    padding-top: var(--space-6) !important;
    margin-bottom: var(--space-7) !important;
  }
  .sec-num{
    font-size: 11.5px !important;
    flex-wrap: wrap;
    gap: 10px !important;
  }
  .sec-num span{
    font-size: 11px !important;
    padding-left: 10px !important;
  }
}

/* ═════════════════════════════════════════════════════════════
   SPRINT 3 · S3.2 (sous-phase A) — CONSOLIDATION :focus-visible
   Override consolidé qui neutralise les 5 définitions divergentes
   héritées de style.css (l.62, 1158, 1301, 1781, 2319).
   Une seule règle d'autorité, comportement uniforme.
   ═════════════════════════════════════════════════════════════ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
details:focus-visible,
[tabindex]:focus-visible,
.wa-float:focus-visible,
.faq-item summary:focus-visible,
.nav nav a:focus-visible{
  outline: 2px solid var(--gold-glow) !important;
  outline-offset: 3px !important;
  border-radius: 2px;
  background: transparent !important;
  box-shadow: 0 0 0 4px rgba(242,193,114,.15) !important;
  transition:
    outline-offset var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease) !important;
}

/* Inputs : focus = bordure or + glow box-shadow doux */
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(198,136,33,.18) !important;
}

/* Skip link : reste très visible (or fort + ombre) */
.skip:focus,
.skip:focus-visible{
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  outline: 2px solid var(--gold-glow) !important;
  outline-offset: 3px !important;
  z-index: 9999 !important;
  box-shadow: var(--elev-3) !important;
}

/* Mouse focus (sans clavier) : pas d'outline disgracieux */
:focus:not(:focus-visible){
  outline: none !important;
  box-shadow: none !important;
}

/* ─────────────────────────────────────────────
   QUICK WIN 2 — CALENDRIER ÉCHÉANCES CRITIQUES
   Cellule wide (2 colonnes) en bas de la frame
   ───────────────────────────────────────────── */

.cc-cell-wide{
  grid-column: span 2;
}

.cc-calendar{
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.cc-calendar::-webkit-scrollbar{ width: 4px; }
.cc-calendar::-webkit-scrollbar-thumb{ background: rgba(198,136,33,.4); border-radius: 2px; }

.cc-cal-row:last-child{
  border-bottom: none !important;
}

.cc-cal-row:hover{
  background: rgba(198,136,33,.04);
}

@media (max-width: 900px){
  .cc-cell-wide{ grid-column: span 1; }
  .cc-cal-row{
    grid-template-columns: 56px 1fr !important;
  }
  .cc-cal-row > *:last-child{
    grid-column: 2;
    margin-top: 4px;
  }
}

/* ─────────────────────────────────────────────
   QUICK WIN 3 — TENSION RÉGIONALE (5 barres)
   Remplace l'ancien graphe vertical 12 buckets
   par 5 barres horizontales par zone géographique
   ───────────────────────────────────────────── */

#cc-gdelt-bars{
  display: block !important;
  height: auto !important;
  padding: 4px 0;
}

#cc-gdelt-bars > span{
  /* Override styles d'origine pour les anciens span verticaux */
  display: none !important;
}

#cc-gdelt-bars .tension-row{
  display: grid !important;
}

@media (max-width: 600px){
  #cc-gdelt-bars .tension-row{
    grid-template-columns: 80px 1fr 50px !important;
    font-size: 10.5px !important;
  }
}

/* ═════════════════════════════════════════════════════════════
   SERVICES — Refonte visuelle hybride
   Desktop : duo cœur 2 colonnes + grille 2×2 modules
   Mobile : duo en pile + carrousel scroll-snap modules
   ═════════════════════════════════════════════════════════════ */

/* === DUO CŒUR (PS + IE) — hero éditorial 2 colonnes === */
.serv-core{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.serv-core-card{
  position: relative;
  padding: var(--space-7) !important;
  background:
    linear-gradient(150deg,
      rgba(198,136,33,.06) 0%,
      rgba(15,38,71,.5) 45%,
      var(--panel) 100%) !important;
  border: 1px solid rgba(198,136,33,.28) !important;
  border-radius: 4px;
  box-shadow: var(--elev-2);
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
}

.serv-core-card::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-glow) 50%, var(--gold) 100%);
  opacity: .8;
}

.serv-core-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--elev-3);
  border-color: rgba(198,136,33,.42) !important;
}

.serv-core-head{
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.serv-core-head .ico{
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold-glow);
  background: rgba(198,136,33,.14);
  border: 1px solid rgba(198,136,33,.35);
  padding: 7px 12px;
  border-radius: 2px;
  margin: 0;
  flex-shrink: 0;
}

.serv-core-tag{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}

.serv-core-card h3{
  font-family: var(--display) !important;
  font-weight: 300 !important;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.018em !important;
  margin: 0 0 var(--space-4) !important;
  color: var(--ink);
}

.serv-core-lead{
  font-size: var(--fs-lead) !important;
  line-height: 1.55 !important;
  color: var(--ink-2);
  margin: 0 0 var(--space-5) !important;
  max-width: none;
}

.serv-core-list{
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 var(--space-6) !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

.serv-core-list li{
  position: relative;
  padding-left: 16px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: var(--ink-2);
  margin: 0 !important;
}

.serv-core-list li::before{
  content: "" !important;
  position: absolute;
  left: 0;
  top: 9px !important;
  width: 8px !important;
  height: 1px !important;
  background: var(--line-2) !important;
  opacity: 1 !important;
}

/* === STEPPER PS — cycle 6 étapes affiné === */
.serv-stepper{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: var(--space-4) 0 0;
  border-top: 1px dashed rgba(198,136,33,.3);
  margin-top: auto;
  position: relative;
}

.serv-stepper::before{
  content: "Cycle de mandat";
  position: absolute;
  top: -8px;
  left: 0;
  background: var(--panel);
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.serv-step{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  position: relative;
  transition: all var(--dur-base) var(--ease);
}

.serv-step:not(:last-child)::after{
  content: "";
  position: absolute;
  right: -2px;
  top: 18px;
  width: 4px;
  height: 1px;
  background: var(--line-2);
}

.serv-step-n{
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold);
  padding: 4px 8px;
  border: 1px solid rgba(198,136,33,.28);
  border-radius: 2px;
  background: rgba(198,136,33,.05);
  transition: all var(--dur-base) var(--ease);
}

.serv-step-l{
  font-family: var(--sans);
  font-size: 10.5px;
  color: var(--mute);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
}

.serv-core-card:hover .serv-step-n{
  background: rgba(198,136,33,.12);
  border-color: var(--gold);
  color: var(--gold-glow);
}

.serv-core-card:hover .serv-step-l{
  color: var(--ink-2);
}

/* === SÉPARATEUR éditorial === */
.serv-divider{
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: var(--space-5);
  margin: var(--space-8) 0 var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-2);
}

.serv-divider-line{
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  opacity: .8;
}

.serv-divider-title{
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
}

.serv-divider-text{
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mute);
  margin: 0;
  max-width: 64ch;
}

/* === MODULES TRANSVERSAUX — grille 2×2 desktop === */
.serv-modules{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.serv-mod{
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: 4px;
  padding: var(--space-5) !important;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    background var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease);
  box-shadow: var(--elev-1);
  position: relative;
  overflow: hidden;
}

.serv-mod::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 32px; height: 1px;
  background: var(--gold);
  opacity: .4;
  transition: width var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}

.serv-mod:hover{
  transform: translateY(-3px);
  border-color: var(--line-2) !important;
  background: var(--panel-2) !important;
  box-shadow: var(--elev-2);
}

.serv-mod:hover::before{
  width: 100%;
  opacity: .85;
}

.serv-mod-head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
}

.serv-mod-head .ico{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold);
  background: rgba(198,136,33,.08);
  border: 1px solid rgba(198,136,33,.22);
  padding: 5px 9px;
  border-radius: 2px;
  margin: 0;
}

.serv-mod-tag{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}

.serv-mod h3{
  font-family: var(--display) !important;
  font-weight: 400 !important;
  font-size: 1.2rem !important;
  line-height: 1.25 !important;
  letter-spacing: -0.008em !important;
  margin: 0 0 var(--space-3) !important;
  color: var(--ink);
}

.serv-mod p{
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 var(--space-4) !important;
}

.serv-mod ul{
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  gap: 6px;
}

.serv-mod ul li{
  position: relative;
  padding-left: 14px !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  color: var(--ink-2);
  margin: 0 !important;
}

.serv-mod ul li::before{
  content: "" !important;
  position: absolute;
  left: 0;
  top: 9px !important;
  width: 8px !important;
  height: 1px !important;
  background: var(--line-2) !important;
}

/* Indicateurs scroll mobile (dots) - cachés en desktop */
.serv-modules-dots{
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-5);
}
.serv-modules-dots .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background var(--dur-base) var(--ease);
}
.serv-modules-dots .dot.active{
  background: var(--gold);
}

/* === MOBILE — duo en pile + carrousel scroll-snap === */
@media (max-width: 900px){
  .serv-core{
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .serv-core-card{
    padding: var(--space-5) !important;
  }
  .serv-core-list{
    grid-template-columns: 1fr;
  }
  .serv-stepper{
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .serv-step:nth-child(3)::after{ display: none; }
}

@media (max-width: 768px){
  /* Modules transversaux deviennent un carrousel horizontal */
  .serv-modules{
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-3);
    padding: 0 var(--space-5) var(--space-3);
    margin-left: calc(var(--space-5) * -1);
    margin-right: calc(var(--space-5) * -1);
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
  }

  .serv-modules::-webkit-scrollbar{ height: 4px; }
  .serv-modules::-webkit-scrollbar-thumb{ background: rgba(198,136,33,.3); border-radius: 2px; }

  .serv-mod{
    flex: 0 0 86%;
    max-width: 86%;
    scroll-snap-align: start;
  }

  .serv-modules-dots{ display: flex; }

  .serv-divider{
    grid-template-columns: 32px 1fr;
    gap: var(--space-3);
  }
}

@media (max-width: 500px){
  .serv-stepper{
    grid-template-columns: repeat(2, 1fr);
  }
  .serv-step:nth-child(2)::after{ display: none; }
  .serv-mod{ flex: 0 0 92%; max-width: 92%; }
}

/* ═════════════════════════════════════════════════════════════
   SPRINT P2 · SOUS-PHASE B — UTILITY CLASSES
   Migration des 5 patterns inline les plus répétés.
   Réduit ~56 inline styles HTML sur 215 (-26%).
   Backlog : 159 inline styles restants à migrer (cf. ARCHITECTURE.md).
   ═════════════════════════════════════════════════════════════ */

/* Couleur or sahélien — pattern répété ×24 */
.u-gold{ color: var(--gold) !important; }

/* Séparateur visuel inline — pattern répété ×12 */
.u-sep{
  margin: 0 8px;
  color: var(--line-2);
}

/* Card centrée padding standard — pattern répété ×6 */
.u-card-center{
  padding: 48px 28px;
  text-align: center;
}

/* Contenu centré largeur intermédiaire — pattern répété ×6 */
.u-content-narrow-center{
  max-width: 580px;
  margin: 0 auto 24px;
  text-align: center;
}

/* Padding top top-of-page (au-dessous de la nav sticky) — pattern répété ×4 */
.u-pt-large{ padding-top: 80px !important; }
.u-pt-xl{    padding-top: 120px !important; }
