/* ============================================================
   Design BDS — système émeraude (porté depuis la prod React).
   ------------------------------------------------------------
   PORTÉE LOCALE : tous les tokens sont définis sous .bds-home.
   Classes préfixées « bh- » (bds-home). Les polices sont chargées
   via <link> dans base.html (Space Grotesk, Onest, Geist Mono).
   ============================================================ */

/* Resets globaux minimaux (cette feuille n'est chargée que sur les pages front).
   Supprime la marge par défaut du body (≈8px) → plus de liseré blanc sur les bords. */
html, body { margin: 0; padding: 0; min-height: 100%; }
img { max-width: 100%; }

.bds-home {
  /* ---- Marque : échelle émeraude → forêt (échantillonnée sur l'écu) ---- */
  --brand-50:  #e7f6f1;
  --brand-100: #c7eae0;
  --brand-200: #96dac8;
  --brand-300: #5dc6ab;
  --brand-400: #28b392;
  --brand-500: #109e7f;
  --brand-600: #0e7d63; /* action primaire — AA sur blanc */
  --brand-700: #0c6151;
  --brand-800: #0a4537;
  --brand-900: #062920;
  --brand-950: #051613; /* forêt — fond sombre */

  /* ---- Neutres : ardoise sobre, légèrement verdie ---- */
  --neutral-0:   #ffffff;
  --neutral-50:  #f6f8f7;
  --neutral-100: #eef2f0;
  --neutral-200: #e1e7e4;
  --neutral-300: #cbd3cf;
  --neutral-400: #9ba6a1;
  --neutral-500: #6c7873;
  --neutral-600: #4d5853;
  --neutral-700: #364039;
  --neutral-800: #222a26;
  --neutral-900: #141a17;
  --neutral-950: #0b0f0d;

  /* ---- Sémantique ---- */
  --success-50:  #e8f5ee;
  --success-500: #2e9e5b;
  --success-600: #237a47;

  /* ---- Surfaces ---- */
  --surface-page:    var(--neutral-50);
  --surface-card:    var(--neutral-0);
  --surface-sunken:  var(--neutral-100);

  /* ---- Bordures ---- */
  --border-subtle:  var(--neutral-200);
  --border-default: var(--neutral-300);
  --border-strong:  var(--neutral-400);

  /* ---- Texte ---- */
  --text-strong: var(--neutral-900);
  --text-body:   var(--neutral-700);
  --text-muted:  var(--neutral-500);
  --text-subtle: var(--neutral-400);
  --text-brand:  var(--brand-700);

  /* ---- Polices ---- */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Onest', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ---- Rayons ---- */
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-pill: 999px;

  /* ---- Ombres (teintées forêt) ---- */
  --shadow-sm: 0 1px 2px rgba(11, 15, 13, 0.06), 0 2px 4px rgba(11, 15, 13, 0.05);
  --shadow-md: 0 1px 3px rgba(11, 15, 13, 0.06), 0 4px 12px rgba(11, 15, 13, 0.08);
  --shadow-lg: 0 4px 8px rgba(11, 15, 13, 0.06), 0 14px 32px rgba(11, 15, 13, 0.11);
  --shadow-xl: 0 8px 16px rgba(11, 15, 13, 0.08), 0 28px 56px rgba(11, 15, 13, 0.15);

  --focus-ring: 0 0 0 3px rgba(16, 158, 127, 0.35);

  --ease-standard: cubic-bezier(0.2, 0, 0.1, 1);
  --duration-base: 160ms;

  --shell: 1180px;

  /* Réglages d'instance */
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;

  /* Coquille pleine hauteur : le footer est poussé en bas même si le
     contenu est court (cf. .bh-footer { margin-top: auto }). */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.bds-home *,
.bds-home *::before,
.bds-home *::after { box-sizing: border-box; }

/* Smooth scroll sur l'élément qui défile réellement (le document) — sur .bds-home
   (un div) il restait sans effet. scroll-padding-top compense la nav sticky pour
   que la cible d'ancre ne passe pas dessous. Respecte prefers-reduced-motion. */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Lenis (défilement à inertie / momentum) — styles recommandés. Quand Lenis est
   actif, il pose .lenis / .lenis-smooth sur <html> et reprend la main sur le
   défilement (d'où scroll-behavior:auto pour ne pas cumuler avec le smooth natif). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.bds-home h1,
.bds-home h2,
.bds-home h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  margin: 0;
}

.bds-home p { margin: 0; }

.bds-home :focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-md);
}

.bh-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.bh-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-brand);
}

/* ============================================================
   Boutons
   ============================================================ */
.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}
.bh-btn:active { transform: translateY(0.5px); }
.bh-btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.bh-btn--block { width: 100%; }

.bh-btn--primary { background: var(--brand-600); color: #fff; }
.bh-btn--primary:hover { background: var(--brand-700); }

.bh-btn--secondary {
  background: var(--surface-card);
  color: var(--text-strong);
  border-color: var(--border-default);
}
.bh-btn--secondary:hover { background: var(--surface-sunken); border-color: var(--border-strong); }

/* Variante secondaire posée sur fond forêt (hero). */
.bh-btn--on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.bh-btn--on-dark:hover { background: rgba(255, 255, 255, 0.08); }

/* ============================================================
   Navigation
   ============================================================ */
.bh-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

/* Home : le header surplombe le hero sombre. Transparent en haut de page,
   puis fondu vers le blanc dès qu'on scrolle (classe .is-scrolled posée en JS). */
body.template-homepage .bh-nav { position: fixed; left: 0; right: 0; }
body.template-homepage .bh-nav:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.bh-nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.bh-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}
/* Deux logos superposés : blanc (par-dessus le hero sombre) et vert (sur fond clair).
   On fond de l'un à l'autre selon l'état du header. */
.bh-nav__brand { position: relative; display: inline-block; line-height: 0; }
.bh-nav__logo {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.35s ease;
}
.bh-nav__logo--green { position: absolute; top: 0; left: 0; }
/* Défaut (pages internes, fond clair) : logo vert. */
.bh-nav__logo--white { opacity: 0; }
.bh-nav__logo--green { opacity: 1; }
/* Home, en haut de page (header transparent sur le hero) : logo blanc. */
body.template-homepage .bh-nav:not(.is-scrolled) .bh-nav__logo--white { opacity: 1; }
body.template-homepage .bh-nav:not(.is-scrolled) .bh-nav__logo--green { opacity: 0; }
.bh-nav__word {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 17px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: 1;
}
.bh-nav__sys {
  display: block;
  font-weight: var(--weight-medium);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.bh-nav__links { display: flex; gap: 26px; margin-left: auto; }
.bh-nav__link {
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--text-body);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.3s ease;
}
.bh-nav__link:hover { color: var(--text-strong); }
/* Home, header transparent : liens clairs sur le hero sombre. */
body.template-homepage .bh-nav:not(.is-scrolled) .bh-nav__link { color: rgba(255, 255, 255, 0.82); }
body.template-homepage .bh-nav:not(.is-scrolled) .bh-nav__link:hover { color: #fff; }
.bh-nav__actions { display: flex; align-items: center; gap: 12px; }
.bh-nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-strong);
  padding: 4px;
  transition: color 0.3s ease;
}
body.template-homepage .bh-nav:not(.is-scrolled) .bh-nav__burger { color: #fff; }
.bh-nav__burger:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-md); }
.bh-nav__burger-close { display: none; }
.bh-nav__burger[aria-expanded="true"] .bh-nav__burger-open { display: none; }
.bh-nav__burger[aria-expanded="true"] .bh-nav__burger-close { display: inline-flex; }

/* Menu mobile : drawer latéral droit qui glisse depuis la droite, sur fond forêt,
   avec backdrop sombre. Masqué/inerte tant que .is-open n'est pas posé (JS). */
.bh-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  transition: visibility 0s linear 0.42s;
}
.bh-drawer.is-open { visibility: visible; transition-delay: 0s; }
.bh-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.42s ease;
}
.bh-drawer.is-open .bh-drawer__backdrop { opacity: 1; }
.bh-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 84%;
  max-width: 360px;
  background: var(--brand-950);
  border-left: 1px solid rgba(234, 243, 237, 0.08);
  padding: 22px 26px 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.bh-drawer.is-open .bh-drawer__panel { transform: translateX(0); }
.bh-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bh-drawer__logo { height: 34px; width: auto; display: block; }
.bh-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(234, 243, 237, 0.85);
  padding: 4px;
  display: inline-flex;
  transition: color 0.2s ease;
}
.bh-drawer__close:hover { color: #fff; }
.bh-drawer__close:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-md); }
.bh-drawer__links { display: flex; flex-direction: column; margin-top: 22px; }
.bh-drawer__link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(234, 243, 237, 0.10);
  transition: color 0.2s ease;
}
.bh-drawer__link:hover { color: var(--brand-300); }
.bh-drawer__foot { margin-top: auto; padding-top: 28px; }
.bh-drawer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(234, 243, 237, 0.62);
  text-decoration: none;
  padding: 7px 0;
  word-break: break-all;
  transition: color 0.2s ease;
}
.bh-drawer__contact .bh-ico { color: var(--brand-300); flex: none; }
.bh-drawer__contact:hover { color: var(--brand-300); }
.bh-drawer__foot .bh-btn { margin-top: 18px; }
.bh-drawer__swiss {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 243, 237, 0.5);
}
/* Inutile sur desktop : le burger n'existe pas, le drawer non plus. */
@media (min-width: 681px) { .bh-drawer { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .bh-drawer, .bh-drawer__backdrop, .bh-drawer__panel { transition-duration: 0.01ms; }
}

/* ============================================================
   Hero
   ============================================================ */
.bh-hero { position: relative; background: var(--brand-950); overflow: hidden; }
.bh-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 78% -10%, rgba(24, 183, 149, 0.3), rgba(6, 41, 32, 0) 60%);
}
.bh-hero__inner {
  position: relative;
  /* La dalle hero remplit la hauteur de l'écran moins le header (68px). */
  min-height: calc(100vh - 68px);
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  align-content: center;
}
/* Sur la home, le header est en overlay (fixed) : le hero part tout en haut et
   remplit l'écran entier ; son contenu garde une marge haute pour dégager le header. */
body.template-homepage .bh-hero__inner { min-height: 100vh; padding-top: 96px; }
/* min-width:0 : sans ça les colonnes du grid prennent leur largeur de contenu
   (min-width:auto) et un mot long du titre déborde au lieu de passer à la ligne. */
.bh-hero__inner > * { min-width: 0; }
.bh-hero .bh-eyebrow {
  color: var(--brand-300);
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--brand-300) 38%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--brand-300) 8%, transparent);
}
/* NB : sélecteur préfixé .bds-home pour passer DEVANT « .bds-home h1 »
   (qui imposerait une couleur sombre — sinon le titre est illisible sur la forêt). */
.bds-home .bh-hero__title {
  font-family: var(--font-display);
  font-size: 66px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  font-weight: var(--weight-bold);
  margin: 18px 0 0;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
  overflow-wrap: break-word;
}
.bds-home .bh-hero__title em { font-style: normal; color: var(--brand-200); }
.bds-home .bh-hero__lead {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  margin: 30px 0 0;
  max-width: 540px;
}
.bh-hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.bh-hero__stats { display: flex; gap: 26px; margin-top: 44px; flex-wrap: wrap; }
.bh-hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: var(--weight-semibold);
  color: #fff;
}
.bh-hero__stat span { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* Maquette « workflow » */
/* flex-end : le bord droit de la carte s'aligne sur le bord droit de la colonne,
   qui coïncide avec le bord droit du bouton « Démarrer un projet » de la nav
   (même conteneur .bh-shell). */
.bh-hero__panelwrap { position: relative; display: flex; justify-content: flex-end; }
.bh-hero__ghost {
  width: 180px;
  opacity: 0.1;
  position: absolute;
  top: -20px;
  right: 0;
  left: auto;
  filter: blur(1px);
}
.bh-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 20px;
  /* Ombre adaptée au fond sombre (pas le --shadow-xl pensé pour fond clair, qui
     faisait un halo boueux). Soft, profonde, sans teinte. */
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.55);
}
.bh-panel__head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.bh-panel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-400); }
.bh-panel__title { font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.bh-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: var(--success-500);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  transition: background-color 320ms var(--ease-standard);
}
.bh-panel__row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.bh-panel__row + .bh-panel__row { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.bh-panel__ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.bh-panel__label { font-size: 14px; }

/* États d'une ligne : attente / en cours / terminé. Les 3 icônes sont rendues ;
   on n'affiche que celle de l'état courant (piloté par l'automate JS). */
.bh-panel__row .bh-ico--wait,
.bh-panel__row .bh-ico--run,
.bh-panel__row .bh-ico--done { display: none; }
.bh-panel__row.is-wait .bh-ico--wait { display: inline; }
.bh-panel__row.is-run  .bh-ico--run  { display: inline; }
.bh-panel__row.is-done .bh-ico--done { display: inline; }

.bh-panel__row.is-wait .bh-panel__ico { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5); }
.bh-panel__row.is-run  .bh-panel__ico { background: rgba(40, 183, 149, 0.16); color: var(--brand-300); }
.bh-panel__row.is-done .bh-panel__ico { background: rgba(16, 158, 127, 0.22); color: var(--brand-300); }
.bh-panel__row.is-wait .bh-panel__label { color: rgba(255, 255, 255, 0.6); }
.bh-panel__row.is-run  .bh-panel__label,
.bh-panel__row.is-done .bh-panel__label { color: #fff; }

/* Spinner « en cours ». Respecte prefers-reduced-motion. */
@keyframes bh-spin { to { transform: rotate(360deg); } }
.bh-spin { transform-origin: 50% 50%; animation: bh-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .bh-spin { animation: none; } }

/* État « envoi en cours » du bouton de contact : pendant la requête, HTMX pose
   .htmx-request sur le formulaire → on bascule label ↔ spinner. */
.bh-btn__label,
.bh-btn__loading { display: inline-flex; align-items: center; gap: 8px; }
.bh-btn__loading { display: none; }
.bh-form.htmx-request .bh-btn__label { display: none; }
.bh-form.htmx-request .bh-btn__loading { display: inline-flex; }
.bh-btn:disabled { opacity: 0.75; cursor: default; }

/* Badge d'en-tête : « actif » → « terminé » en fin d'animation. */
.bh-badge.is-done { background: var(--brand-600); }
@keyframes bh-badge-swap {
  0%   { transform: translateY(-5px) scale(0.85); opacity: 0; }
  60%  { transform: translateY(0) scale(1.08); opacity: 1; }
  100% { transform: none; }
}

/* Petit « pop » quand une étape passe à terminé + swap animé du badge
   (hors reduced-motion). */
@media (prefers-reduced-motion: no-preference) {
  .bh-panel__row.is-done .bh-ico--done { animation: bh-pop 300ms var(--ease-standard); }
  .bh-badge.is-done { animation: bh-badge-swap 420ms var(--ease-standard); }
}

/* ============================================================
   Hero — scènes du quotidien PME (problèmes, jamais de résolution).
   Carrousel : une .bh-scene active à la fois, ses .bh-scene__step
   entrent en cascade (--i). Sans JS : la première scène, statique.
   Teinte ambrée = registre « problème » (cohérent avec l'avant/après).
   ============================================================ */
.bh-panel__dot--amber { background: #d9a441; }
.bh-scenes { position: relative; height: 296px; }
.bh-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 460ms var(--ease-standard), visibility 0s 460ms;
}
.bh-scene.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 460ms var(--ease-standard);
}

/* Entrée en cascade des éléments de la scène active. */
@media (prefers-reduced-motion: no-preference) {
  .bh-scene.is-active .bh-scene__step {
    animation: bh-scene-step 420ms var(--ease-standard) both;
    animation-delay: calc(220ms + var(--i) * 720ms);
  }
}
@keyframes bh-scene-step {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

/* Fenêtres (double saisie) */
.bh-scene__win {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
}
.bh-scene__wintitle { font-family: var(--font-mono); font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.bh-scene__amount { font-family: var(--font-mono); font-size: 14px; color: #fff; white-space: nowrap; }
/* Le montant ressaisi se révèle, puis « se fait remarquer » (ambre), en différé. */
@media (prefers-reduced-motion: no-preference) {
  .bh-scene.is-active .bh-scene__amount.bh-scene__flag {
    animation: bh-scene-step 420ms var(--ease-standard) both,
               bh-scene-flag 320ms var(--ease-standard) both;
    animation-delay: calc(220ms + var(--i) * 720ms),
                     calc(220ms + var(--i) * 720ms + 900ms);
  }
}
.bh-scene__flag { color: #e3b45c; }
@keyframes bh-scene-flag { from { color: #fff; } to { color: #e3b45c; } }

/* Recherche sans résultat */
.bh-scene__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
}
.bh-scene__search .bh-ico { color: rgba(255, 255, 255, 0.5); flex: none; }
.bh-scene__result {
  padding: 9px 13px;
  border-radius: 8px;
  background: rgba(217, 164, 65, 0.08);
  border: 1px dashed rgba(217, 164, 65, 0.35);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #e3b45c;
}

/* Fichiers (versions qui prolifèrent) */
.bh-scene__file {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.bh-scene__file .bh-ico { color: rgba(255, 255, 255, 0.45); flex: none; }
.bh-scene__file--warn { border-color: rgba(217, 164, 65, 0.45); color: #e3b45c; }
.bh-scene__file--warn .bh-ico { color: #e3b45c; }
.bh-scene__meta { margin-left: auto; font-size: 10.5px; color: rgba(255, 255, 255, 0.4); }

/* Fin de journée */
.bh-scene__clock { font-family: var(--font-mono); font-size: 12px; color: #e3b45c; }
.bh-scene__todo {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid rgba(217, 164, 65, 0.5);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* Notes et légende */
.bh-scene__note { font-family: var(--font-mono); font-size: 11px; color: #e3b45c; }
/* Préfixe .bds-home : doit passer devant « .bds-home p { margin: 0 } ». */
.bds-home .bh-scene__caption {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Avant / avec BDS — comparaison côte à côte (bande sombre).
   Réutilise .bh-panel (conçu pour fond sombre). Pas de padding bas :
   la pull-quote (même fond) enchaîne et conclut la démo.
   ============================================================ */
.bh-compare {
  background: var(--brand-950);
  border-top: 1px solid rgba(234, 243, 237, 0.10);
  padding: 92px 0 0;
}
.bh-compare .bh-head h2 { color: #fff; }
.bh-compare .bh-head p { color: rgba(234, 243, 237, 0.62); }
.bh-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.bh-compare__col { display: flex; flex-direction: column; gap: 12px; }
.bh-compare__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(234, 243, 237, 0.56);
}
.bh-compare .bh-panel { max-width: 460px; }

/* Note à droite d'une ligne (durée / auto) et total sous la liste. */
.bh-panel__note {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.45);
}
.bh-panel__note--auto { color: var(--brand-300); }
.bh-panel__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.bh-panel__total strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: var(--weight-semibold);
}

/* Variante « avant » : le flux aboutit aussi, mais à la main — teinte ambrée
   pour l'activité, gris neutre au terminé (le vert reste réservé à BDS). */
.bh-panel--before .bh-panel__dot { background: #d9a441; }
.bh-badge--manual { background: rgba(217, 164, 65, 0.18); color: #e3b45c; }
.bh-panel--before .bh-panel__row.is-run .bh-panel__ico { background: rgba(217, 164, 65, 0.16); color: #e3b45c; }
.bh-panel--before .bh-panel__row.is-done .bh-panel__ico { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.55); }
.bh-panel--before .bh-panel__total strong { color: #e3b45c; }
.bh-panel--after .bh-panel__total strong { color: var(--brand-300); }

@media (max-width: 900px) {
  .bh-compare__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   Bande réassurance (ruban sous le hero)
   ============================================================ */
/* Pont d'empathie sous le hero : valide le problème (et déculpabilise) avant
   les Prestations. Chips de secteurs (langage mock-UI du site) + accroche
   display + phrase d'absolution. Même écrin sombre que la trustbar. */
.bh-bridge {
  background: var(--brand-900);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.bh-bridge__inner {
  padding-top: 52px;
  padding-bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.bh-bridge__sectors {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.bh-bridge__sectors li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(234, 243, 237, 0.72);
  padding: 5px 13px;
  border: 1px solid rgba(234, 243, 237, 0.18);
  border-radius: var(--radius-pill);
}
.bds-home .bh-bridge__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -0.01em;
  color: #fff;
}
.bds-home .bh-bridge__text {
  margin: 0;
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(234, 243, 237, 0.64);
}
.bh-bridge__text em { font-style: normal; color: var(--brand-300); }

.bh-trustbar {
  background: var(--brand-900);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.bh-trustbar__inner {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
}
.bh-trustbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(234, 243, 237, 0.88);
}
.bh-trustbar__item .bh-ico { color: var(--brand-300); flex: none; }

/* ============================================================
   Dalle citation (manifeste éditorial — section sombre)
   ============================================================ */
.bh-pullquote { background: var(--brand-950); padding: 96px 0; }
.bh-pullquote__card {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 30px;
}
/* Filet de gauche en pseudo-élément : plein par défaut (sans JS / motion réduit) ;
   tracé de haut en bas à l'entrée dans le viewport (voir le bloc d'animations). */
.bh-pullquote__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-500);
}
.bh-pullquote__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 24px;
}
.bh-pullquote__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: clamp(22px, 2.7vw, 31px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: pretty;
}
.bh-pullquote__setup {
  display: block;
  margin-bottom: 0.5em;
  color: rgba(234, 243, 237, 0.5);
}
.bh-pullquote__lead { display: block; }
.bh-pullquote__text em { color: var(--brand-300); font-style: normal; }

@media (max-width: 680px) {
  .bh-pullquote__card { padding-left: 20px; }
}

/* ============================================================
   Chiffres clés (relevé — compteurs au scroll)
   ============================================================ */
.bh-stats {
  background: var(--brand-950);
  border-top: 1px solid rgba(234, 243, 237, 0.10);
  border-bottom: 1px solid rgba(234, 243, 237, 0.10);
}
.bh-stats__row {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.bh-stat { padding: 44px 24px; text-align: center; }
.bh-stat__fig {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-semibold);
  font-size: clamp(30px, 3.7vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.bh-stat__unit { color: var(--brand-300); }
.bh-stat__label {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(234, 243, 237, 0.56);
}
@media (max-width: 680px) {
  .bh-stats__row { grid-template-columns: 1fr 1fr; }
  .bh-stat { padding: 30px 16px; }
  /* 4 stats : grille 2×2 pleine, aucun item à étirer. */
}

/* ============================================================
   Sections claires (titres communs)
   ============================================================ */
.bh-section { padding: 92px 0; }
.bh-section--page { background: var(--surface-page); }
.bh-section--card {
  background: var(--surface-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.bh-head { max-width: 620px; margin-bottom: 44px; }
.bh-head h2 { font-size: 38px; letter-spacing: -0.02em; margin: 12px 0 0; }
.bh-head p { font-size: 17px; color: var(--text-muted); margin-top: 12px; }

/* ---- Services ---- */
.bh-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bh-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}
.bh-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.bh-card__chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 16px;
}
.bh-card__t { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 18px; color: var(--text-strong); }
.bh-card__d { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; margin-top: 8px; }

/* Première dalle — mise en avant, plus grande (occupe 2×2 dans la grille). */
.bh-card--feature {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.bh-card--feature .bh-card__chip {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand-600);
  color: #fff;
  margin-bottom: 20px;
}
.bh-card--feature .bh-card__t { font-size: 26px; }
.bh-card--feature .bh-card__d { font-size: 16px; line-height: 1.6; max-width: 440px; margin-top: 10px; }

/* ---- Approche ---- */
.bh-approach__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.bh-approach__lead h2 { font-size: 38px; letter-spacing: -0.02em; margin: 12px 0 0; }
.bh-approach__lead p { font-size: 17px; color: var(--text-muted); margin-top: 14px; }
.bh-checklist { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.bh-checklist__item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-body); }
.bh-checklist__item svg { color: var(--brand-600); flex: none; }
.bh-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bh-step {
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.bh-step__n { font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-semibold); color: var(--brand-500); }
.bh-step__t { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 19px; color: var(--text-strong); margin-top: 8px; }
.bh-step__d { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-top: 6px; }

/* ---- Témoignages (Références) ---- */
.bh-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bh-quote {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-md);
}
.bh-quote::before {
  content: "\201C"; /* guillemet ouvrant décoratif */
  position: absolute;
  top: 4px;
  left: 18px;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
  color: var(--brand-200);
  pointer-events: none;
}
.bh-quote__text {
  position: relative;
  margin: 0;
  padding-top: 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-body);
}
.bh-quote__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.bh-quote__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.bh-quote__id { display: flex; flex-direction: column; }
.bh-quote__name { font-weight: var(--weight-semibold); color: var(--text-strong); font-size: 14.5px; }
.bh-quote__company { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ============================================================
   Contact
   ============================================================ */
.bh-contact { background: var(--brand-950); padding: 92px 0; position: relative; overflow: hidden; }
.bh-contact__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 80% at 15% 110%, rgba(24, 183, 149, 0.22), rgba(6, 41, 32, 0) 55%);
}
.bh-contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bh-contact__lead h2 { font-size: 40px; letter-spacing: -0.02em; color: #fff; margin: 12px 0 0; }
.bh-contact .bh-eyebrow { color: var(--brand-300); }
.bh-contact__lead p { font-size: 17px; color: rgba(255, 255, 255, 0.72); margin-top: 16px; max-width: 420px; }
.bh-contact__rows { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.bh-contact__row { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.82); font-size: 15px; }
.bh-contact__row svg { color: var(--brand-300); flex: none; }
a.bh-contact__row { text-decoration: none; transition: color 0.2s ease; }
a.bh-contact__row:hover { color: var(--brand-300); }

/* « Votre interlocuteur » : photo du fondateur (fond sombre = se fond dans la section) */
.bh-contact__person { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.bh-contact__avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  flex: none;
}
.bh-contact__pname {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 16px;
  color: #fff;
}
.bh-contact__prole {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}

.bh-formcard { background: var(--surface-card); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-xl); }
.bh-form { display: flex; flex-direction: column; gap: 16px; }
.bh-form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bh-field { display: flex; flex-direction: column; gap: 6px; }
.bh-field > span { font-size: 13px; font-weight: var(--weight-semibold); color: var(--text-strong); }
.bh-input,
.bh-select,
.bh-textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-strong);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--surface-card);
  width: 100%;
}
.bh-textarea { resize: vertical; }
.bh-input:focus,
.bh-select:focus,
.bh-textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--focus-ring); }

.bh-sent { text-align: center; padding: 28px 12px; }
.bh-sent__ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success-50);
  color: var(--success-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.bh-sent h3 { font-size: 22px; }
.bh-sent p { font-size: 15px; color: var(--text-muted); margin-top: 8px; }

/* Journal (liste + article) → déplacé dans css/journal.css (classes .jr-*),
   chargé via {% block extra_css %} sur les pages du journal. */

/* ============================================================
   Pages d'erreur (404 / 500)
   ============================================================ */
.bh-error { max-width: 620px; margin: 0 auto; padding: 104px 0; }
.bh-error__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin: 14px 0 0;
}
.bh-error__lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 48ch;
}
.bh-error__route {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 28px;
  overflow-x: auto;
  white-space: nowrap;
}
.bh-error__verb { color: var(--text-subtle); }
.bh-error__status { color: var(--brand-700); font-weight: var(--weight-semibold); }
.bh-error__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ============================================================
   Footer
   ============================================================ */
.bh-footer { margin-top: auto; background: var(--neutral-950); color: rgba(255, 255, 255, 0.6); padding: 40px 0; }
.bh-footer__base {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}
.bh-footer__base .bh-mono { font-family: var(--font-mono); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .bh-hero__inner,
  .bh-approach__inner,
  .bh-contact__inner { grid-template-columns: 1fr; }
  .bh-hero__inner { min-height: 0; }
  .bh-hero__panelwrap { justify-content: center; }
  .bds-home .bh-hero__title { font-size: 50px; }
  .bh-services__grid { grid-template-columns: 1fr 1fr; }
  .bh-testimonials { grid-template-columns: 1fr 1fr; }
  /* Sur 2 colonnes, la dalle devient une bannière pleine largeur. */
  .bh-card--feature { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 680px) {
  .bh-shell { padding-left: 20px; padding-right: 20px; }
  .bh-nav__links,
  .bh-nav__client { display: none; }
  .bh-nav__burger { display: inline-flex; }
  /* Liens masqués en mobile : on repousse le burger à droite. */
  .bh-nav__actions { margin-left: auto; }
  /* Sur mobile, le Contact passe dans le drawer */
  .bh-nav__actions .bh-btn { display: none; }
  .bds-home .bh-hero__title { font-size: 34px; }
  /* Badge eyebrow du hero : forcé sur une seule ligne en mobile. Interlettrage
     resserré pour qu'il tienne sans déborder (sinon nowrap = scroll horizontal). */
  .bh-hero .bh-eyebrow { white-space: nowrap; letter-spacing: 0.12em; }
  .bh-head h2,
  .bh-approach__lead h2,
  .bh-contact__lead h2 { font-size: 30px; }
  .bh-services__grid,
  .bh-testimonials,
  .bh-steps,
  .bh-form__pair { grid-template-columns: 1fr; }
  .bh-card--feature { grid-column: auto; grid-row: auto; }
}

@media (max-width: 380px) {
  .bds-home .bh-hero__title { font-size: 30px; }
  /* Garde le badge sur une ligne même sur les plus petits écrans. */
  .bh-hero .bh-eyebrow { font-size: 0.64rem; letter-spacing: 0.08em; }
}

/* ============================================================
   Animations — « le système s'exécute »
   ============================================================ */
@keyframes bh-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bh-pop {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: none; }
}

/* Micro-interactions au survol (toujours actives) */
.bh-quote {
  transition: transform var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.bh-quote:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.bh-step {
  transition: transform var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.bh-step:hover {
  transform: translateY(-2px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}
.bh-step:hover .bh-step__n { color: var(--brand-600); }
.bh-card__chip { transition: transform var(--duration-base) var(--ease-standard); }
.bh-card:hover .bh-card__chip { transform: scale(1.06); }
.bh-hero__cta .bh-btn .bh-ico { transition: transform var(--duration-base) var(--ease-standard); }
.bh-hero__cta .bh-btn:hover .bh-ico { transform: translateX(3px); }

/* Entrées animées — uniquement avec JS et si l'utilisateur n'a pas désactivé le mouvement.
   Sans JS (pas de .has-js) ou en reduced-motion : aucun état caché, tout reste visible. */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll-reveal */
  .has-js .bh-reveal {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(5px);
    transition: opacity 520ms var(--ease-standard), transform 520ms var(--ease-standard),
                filter 520ms var(--ease-standard);
    transition-delay: calc(var(--i, 0) * 70ms);
    will-change: opacity, transform, filter;
  }
  /* Une fois révélé, on libère la promotion compositeur (sinon des dizaines
     d'éléments restent sur leur propre couche → scroll alourdi). */
  .has-js .bh-reveal.is-in { opacity: 1; transform: none; filter: none; will-change: auto; }

  /* Pullquote « Ce qu'on livre vraiment » : chaque bloc de texte apparaît l'un
     après l'autre, et le filet de gauche se trace de haut en bas à mesure.
     La carte ne fait pas de fondu elle-même — elle ne sert que de déclencheur
     (.is-in) pour le tracé du filet. */
  .has-js .bh-pullquote__card.bh-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .has-js .bh-pullquote__label.bh-reveal,
  .has-js .bh-pullquote__setup.bh-reveal,
  .has-js .bh-pullquote__lead.bh-reveal { transition-delay: calc(var(--i, 0) * 200ms); }
  .has-js .bh-pullquote__card.bh-reveal::before {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1000ms var(--ease-standard);
    will-change: transform;
  }
  .has-js .bh-pullquote__card.bh-reveal.is-in::before { transform: scaleY(1); }

  /* Contact : les blocs de texte de la colonne de gauche apparaissent l'un après
     l'autre (eyebrow, titre, accroche, identité, à-propos, coordonnées). */
  .has-js .bh-contact__lead .bh-reveal { transition-delay: calc(var(--i, 0) * 140ms); }
  .has-js .bh-contact__lead .bh-eyebrow.bh-reveal { display: inline-block; }

  /* Entrée de la nav au chargement : marque, liens puis actions se posent l'un
     après l'autre, en accord avec la séquence du hero. On anime le wrapper
     .bh-nav__brand (pas les <img>) pour ne pas perturber le crossfade blanc/vert. */
  .has-js .bh-nav__io {
    opacity: 0;
    animation: bh-rise 500ms var(--ease-standard) forwards;
    animation-delay: calc(var(--i, 0) * 90ms);
  }

  /* Entrée orchestrée du hero (au chargement) */
  .has-js .bh-hero__seq {
    opacity: 0;
    animation: bh-rise 620ms var(--ease-standard) forwards;
    animation-delay: calc(var(--i, 0) * 90ms);
  }

  /* Entrée du panneau : les lignes montent l'une après l'autre. La progression
     des états (attente → en cours → terminé) est ensuite pilotée par l'automate JS. */
  .has-js .bh-panel__row {
    opacity: 0;
    animation: bh-rise 420ms var(--ease-standard) forwards;
    animation-delay: calc(760ms + var(--i, 0) * 140ms);
  }
}

/* ============================================================
   Refonte home v2 — « spécialiste confiant »
   (Prestations asymétriques, preuve chiffrée, signaux Contact)
   ============================================================ */

/* Prestations : grille équilibrée 2×2 (cartes de poids égal) */
.bh-outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* Preuve : chiffre-ancre + texte */
.bh-case__panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--surface-page);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-500);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  box-shadow: var(--shadow-md);
}
.bh-case__sector {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 14px;
}
.bh-case__statnum {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 34px;
  line-height: 1.05;
  color: var(--brand-700);
}
.bh-case__statlabel { display: block; margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.bh-case__text { font-size: 16px; line-height: 1.65; color: var(--text-body); }
.bh-case__quotes { margin-top: 28px; }

/* Méthode : 4 étapes en ligne sur grand écran */
.bh-steps--row { grid-template-columns: repeat(4, 1fr); }

/* Contact : « À propos » fondu dans la section */
.bh-contact__about { margin-top: 20px; max-width: 440px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.62); }

@media (max-width: 920px) {
  .bh-steps--row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .bh-outcomes,
  .bh-steps--row { grid-template-columns: 1fr; }
  .bh-case__panel { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   Bannière de consentement (Google Analytics / Consent Mode v2)
   Ancrée en bas à droite ; carte claire reprenant les tokens BDS.
   ============================================================ */
.bh-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300; /* au-dessus du drawer (200) */
  max-width: 520px;
  margin-left: auto; /* colle la carte à droite sur grand écran */
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 20px 22px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}
.bh-consent.is-in { opacity: 1; transform: translateY(0); }
.bh-consent__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
}
.bh-consent__actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (max-width: 520px) {
  .bh-consent__actions { flex-direction: column-reverse; }
  .bh-consent__actions .bh-btn { width: 100%; }
}
