/*
 * main.css — Otium
 * Direction figée : Style 03 — Soft 2024
 * Palette : orange #f6911d + orange foncé #ef902d + crème + encre #1A2332
 * Tous les tokens viennent de tokens.css. Aucun magic number.
 */

@import url('../../tokens.css?v=20260723h');

/* ============================================================
   RESET MINIMAL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-ink);
  color: var(--color-white);
  font-weight: var(--weight-semibold);
  transform: translateY(-150%);
  transition: transform var(--duration-fast) var(--ease-out);
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--color-orange-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--color-orange);
  color: var(--color-ink);
}
/* Mots en dégradé (.highlight) : le background-clip rend le texte transparent,
   on force le blanc à la sélection pour qu'ils restent lisibles. */
.highlight::selection { -webkit-text-fill-color: #fff; color: #fff; }
.highlight::-moz-selection { -webkit-text-fill-color: #fff; color: #fff; }

/* ============================================================
   TYPOGRAPHIE DE BASE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tighter);
}
h2 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  font-weight: var(--weight-extrabold);
}
h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  font-weight: var(--weight-bold);
}
h4 {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--weight-semibold);
}

p { line-height: var(--leading-relaxed); }

.highlight {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

/* ============================================================
   LAYOUT — CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--side-padding);
  position: relative;
  z-index: var(--z-content);
}
.container--narrow { max-width: 760px; }

/* ============================================================
   HALO (radial orange en arrière-plan) — dégradé doux et progressif
   ============================================================ */
.halo {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    var(--halo-orange) 0%,
    rgba(var(--c-orange-rgb), 0.12) 35%,
    rgba(var(--c-orange-rgb), 0.04) 65%,
    transparent 90%
  );
  filter: var(--blur-halo);
  pointer-events: none;
  z-index: var(--z-halo);
}
.halo--tr { top: -250px; right: -200px; }
.halo--tl { top: -250px; left: -200px; }
.halo--bl { bottom: -250px; left: -200px; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-weight: var(--weight-semibold);
  font-size: 15px;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover {
  background: var(--color-orange-deep);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange-strong);
}

.btn--secondary {
  background: var(--color-ink);
  color: var(--color-white);
  box-shadow: var(--shadow-ink);
}
.btn--secondary:hover {
  background: #0F1825;
  transform: translateY(-2px);
}

.btn--ghost-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass-light);
  -webkit-backdrop-filter: var(--blur-glass-light);
  color: var(--color-ink);
}
.btn--ghost-glass:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-2px);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
/* Petits écrans : les gros CTA passent à la ligne au lieu de déborder */
@media (max-width: 480px) {
  .btn--lg {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

.btn__arrow { transition: transform var(--duration-fast) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ============================================================
   EYEBROW PILL GLASSY
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass-light);
  -webkit-backdrop-filter: var(--blur-glass-light);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-orange-deep);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--color-orange);
  border-radius: 50%;
}

/* Fil d'Ariane — situe l'utilisateur, remplace l'eyebrow décoratif */
.breadcrumb {
  margin-bottom: var(--space-8);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}
.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
/* Séparateur › entre chaque niveau (sauf le premier) */
.breadcrumb__list li + li::before {
  content: "›";
  color: var(--color-ink-soft);
  opacity: 0.6;
}
.breadcrumb__list a {
  color: var(--color-ink-soft);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.breadcrumb__list a:hover {
  color: var(--color-orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb__list [aria-current="page"] {
  color: var(--color-orange-deep);
  font-weight: var(--weight-semibold);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid rgba(229, 221, 208, 0.5);
}
/* Effet verre dépoli déporté sur un pseudo-élément : un backdrop-filter posé
   directement sur .nav ferait du header le containing block de ses descendants
   en position:fixed (panneau du menu mobile, voile du mega menu), qui se
   retrouveraient coincés dans les 72px du bandeau au lieu de couvrir l'écran. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: none;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink);
}
.nav__brand-dot {
  width: 10px;
  height: 10px;
  background: var(--color-orange);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(var(--c-orange-rgb), 0.4);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink-soft);
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  cursor: pointer;
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--color-ink);
}
/* Page courante : lien de nav en gras (même repère que le fil d'Ariane).
   Le survol reste en simple changement de couleur pour éviter tout saut. */
.nav__link[aria-current="page"] { font-weight: var(--weight-semibold); }

.nav__link-caret {
  width: 12px;
  height: 12px;
  transition: transform var(--duration-fast) var(--ease-out);
}
.nav__trigger[aria-expanded="true"] .nav__link-caret {
  transform: rotate(180deg);
}

.nav__cta {
  box-shadow: none;
}
.nav__cta:hover {
  box-shadow: none;
}

/* Header unifié sur toutes les pages (format de l'accueil) :
   logo officiel, titres un peu plus grands, menu recentré,
   lien « Contact » du menu masqué en desktop (CTA dédié à droite).
   Palette « logo » désormais globale (tokens.css) — plus de surcharge scopée. */

.nav__brand-img {
  display: block;
  height: 28px;
  width: auto;
}
.nav__link { font-size: var(--text-base); }
.nav__link:hover { color: var(--color-orange-deep); }

@media (min-width: 1025px) {
  .nav__inner { position: relative; }
  .nav__links--center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav__link--contact { display: none; }
}

/* Burger mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
}
.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(-7px) rotate(-45deg); }

/* ============================================================
   MEGA MENU (5 colonnes)
   ============================================================ */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--duration-base) var(--ease-out),
              visibility var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  z-index: var(--z-megamenu);
}

.megamenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu__inner {
  padding-block: var(--space-12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.megamenu__col h4 {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-orange-deep);
  line-height: var(--leading-snug);
  /* Hauteur de texte de 2 lignes pour aligner le trait de séparation entre toutes
     les colonnes (content-box : la min-height ne compte pas le padding/border). */
  box-sizing: content-box;
  min-height: calc(var(--leading-snug) * 2em);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-line);
}

.megamenu__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.megamenu__link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--color-ink);
  padding: var(--space-1) 0;
  transition: color var(--duration-fast) var(--ease-out),
              padding-left var(--duration-fast) var(--ease-out);
  position: relative;
}
.megamenu__link::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  opacity: 0;
  color: var(--color-orange-deep);
  transition: opacity var(--duration-fast) var(--ease-out);
}
.megamenu__link:hover {
  color: var(--color-orange-deep);
  padding-left: var(--space-5);
}
.megamenu__link:hover::before { opacity: 1; }

.megamenu-backdrop {
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(26, 35, 50, 0.06);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-out),
              visibility var(--duration-base) var(--ease-out);
  z-index: calc(var(--z-megamenu) - 1);
  pointer-events: none; /* la fermeture est gérée par document click listener */
}
.megamenu-backdrop.is-open { opacity: 1; visibility: visible; }

/* MOBILE NAV */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 72px;
    left: 0; right: 0; bottom: 0;
    background: var(--color-bg);
    padding: var(--space-8) var(--side-padding);
    overflow-y: auto;
    /* Empêche le scroll de « traverser » vers la page derrière le panneau */
    overscroll-behavior: contain;
  }
  /* Le panneau (flex column à hauteur fixe) défile : ses enfants ne doivent
     jamais rétrécir, sinon le mega menu déplié est écrasé/tronqué au lieu
     de pousser le scroll. */
  .nav__links.is-open > * { flex-shrink: 0; }
  .nav__links.is-open .nav__link {
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--color-line);
    font-size: var(--text-md);
  }
  /* Déclencheurs accordéon (« Nos services », « À propos ») :
     pleine largeur, caret renvoyé à droite */
  .nav__links.is-open .nav__trigger {
    width: 100%;
    justify-content: space-between;
  }

  /* Le mega menu est déplacé par main.js DANS le panneau mobile,
     juste sous son déclencheur → accordéon dans le flux du panneau. */
  .nav__links .megamenu .container { padding-inline: 0; }

  .megamenu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    /* Marge uniquement à l'ouverture : replié (max-height: 0), une marge
       creuserait quand même l'espace entre « Nos services » et le lien suivant. */
    margin: 0;
    opacity: 1;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-base) var(--ease-out),
                visibility var(--duration-base) var(--ease-out),
                margin var(--duration-base) var(--ease-out);
  }
  .megamenu.is-open { visibility: visible; max-height: 2000px; margin: var(--space-3) 0; }
  .megamenu__inner {
    padding: var(--space-6);
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  /* Titres de sections : même taille que les liens du sous-menu « À propos »
     (14px), sans la hauteur de 2 lignes réservée pour l'alignement desktop. */
  .megamenu__col h4 {
    box-sizing: border-box;
    min-height: 0;
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
  }
  .megamenu-backdrop { display: none; }
}

/* ============================================================
   NAV DROPDOWN (sous-menu « À propos »)
   ============================================================ */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--duration-base) var(--ease-out),
              visibility var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
  z-index: var(--z-megamenu);
}
.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
.nav__dropdown-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-orange-deep);
}

@media (max-width: 1024px) {
  .nav__dropdown { width: 100%; }
  .nav__links.is-open .nav__dropdown > .nav__trigger {
    width: 100%;
    justify-content: space-between;
  }
  .nav__dropdown-menu {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: none;
    box-shadow: none;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    transition: max-height var(--duration-base) var(--ease-out),
                visibility var(--duration-base) var(--ease-out);
  }
  .nav__dropdown.is-open .nav__dropdown-menu {
    visibility: visible;
    max-height: 400px;
    padding: var(--space-2);
    margin: var(--space-2) 0;
  }
  .nav__dropdown-link { font-size: var(--text-base); padding-block: var(--space-3); }
}

/* ============================================================
   HERO (Bloc 1) — texte centré + image plein-côté droit
   Texte centré dans le viewport, halo orange à gauche pour réchauffer
   la zone, image en absolute pleine hauteur ancrée au bord droit,
   fondue à gauche pour ne pas gêner la lecture.
   ============================================================ */
.hero {
  position: relative;
  background: var(--gradient-hero);
  padding: var(--space-20) 0 var(--space-24);
  overflow: hidden;
  text-align: center;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero .halo--tl {
  top: -240px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(var(--c-orange-rgb), 0.7) 0%,
    rgba(var(--c-orange-rgb), 0.35) 25%,
    rgba(var(--c-orange-rgb), 0.12) 55%,
    transparent 85%
  );
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
}

.hero h1 {
  max-width: 22ch;
  margin: 0 auto var(--space-6);
}

.hero__sub {
  font-size: var(--text-md);
  color: var(--color-ink-soft);
  max-width: 620px;
  margin: 0 auto var(--space-8);
}

.hero__ctas {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.trust-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding: 0;
  background: transparent;
}
.trust-bar__item {
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--color-ink-soft);
  letter-spacing: var(--tracking-wide);
}
.trust-bar__sep {
  width: 1px;
  height: 14px;
  background: var(--color-line);
}

/* Image ancrée au bord droit, pleine hauteur du hero,
   fondue vers la gauche pour ne pas se superposer au texte */
.hero__image {
  position: absolute;
  top: 0;
  right: -300px;
  bottom: 0;
  width: 62%;
  z-index: var(--z-halo);
  pointer-events: none;
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 14%, rgba(0,0,0,0.45) 30%, rgba(0,0,0,0.8) 44%, black 56%, black 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 85%, rgba(0,0,0,0.78) 89%, rgba(0,0,0,0.48) 93%, rgba(0,0,0,0.22) 97%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 14%, rgba(0,0,0,0.45) 30%, rgba(0,0,0,0.8) 44%, black 56%, black 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 85%, rgba(0,0,0,0.78) 89%, rgba(0,0,0,0.48) 93%, rgba(0,0,0,0.22) 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Image ancrée au bord gauche (chantier/grues), miroir de la droite :
   solide à gauche, fondue vers le centre pour préserver la lisibilité du texte */
.hero__image--left {
  right: auto;
  left: -300px;
}
.hero__image--left img {
  object-position: left center;
  -webkit-mask-image:
    linear-gradient(to right, black 0%, black 44%, rgba(0,0,0,0.8) 56%, rgba(0,0,0,0.45) 70%, rgba(0,0,0,0.15) 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 85%, rgba(0,0,0,0.78) 89%, rgba(0,0,0,0.48) 93%, rgba(0,0,0,0.22) 97%, transparent 100%);
  mask-image:
    linear-gradient(to right, black 0%, black 44%, rgba(0,0,0,0.8) 56%, rgba(0,0,0,0.45) 70%, rgba(0,0,0,0.15) 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 10%, black 85%, rgba(0,0,0,0.78) 89%, rgba(0,0,0,0.48) 93%, rgba(0,0,0,0.22) 97%, transparent 100%);
}

@media (max-width: 1024px) {
  .hero {
    min-height: 0;
    display: block;
  }
  .hero__image {
    right: -12%;
    width: 78%;
    opacity: 0.22;
  }
  .hero__image--left {
    right: auto;
    left: -12%;
    width: 78%;
    opacity: 0.22;
  }
}

@media (max-width: 640px) {
  .hero { padding: var(--space-12) 0 var(--space-16); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; white-space: normal; }
  .trust-bar { gap: var(--space-3); padding: var(--space-3) var(--space-5); }
  .trust-bar__sep { display: none; }
}

/* ============================================================
   SECTION GÉNÉRIQUE
   ============================================================ */
.section {
  position: relative;
  padding-block: var(--space-24);
  overflow: hidden;
}
/* Sections « crème » alternées (--alt / --warm) et parcours #demarche :
   le fond ne coupe jamais net avec les sections voisines en --color-bg.
   Il s'estompe sur 160 px en haut et en bas — même fondu que la section
   Audit flash de l'accueil (#audit-flash). Le ton médian de chaque section
   est porté par --fade-mid, ce qui garde une seule règle de dégradé. */
.section--alt,
.section--warm,
#demarche {
  background: linear-gradient(
    180deg,
    var(--color-bg) 0,
    var(--fade-mid) 160px,
    var(--fade-mid) calc(100% - 160px),
    var(--color-bg) 100%
  );
}
.section--alt,
#demarche { --fade-mid: var(--color-bg-alt); }
.section--warm { --fade-mid: var(--color-bg-warm); }
.section--dark {
  background: var(--gradient-cta-finale);
  color: var(--color-white);
}
.section--dark h1, .section--dark h2, .section--dark h3 {
  color: var(--color-white);
}

.section__head {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 720px;
  margin-inline: auto;
}
.section__head h2 { margin-bottom: var(--space-4); }
.section__head p {
  font-size: var(--text-md);
  color: var(--color-ink-soft);
}
.section--dark .section__head p { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 1024px) {
  .section { padding-block: var(--space-16); }
}

/* ============================================================
   BLOC 2 — STATS (compteurs animés)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.stat-card__prefix {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
}
.stat-card__value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--weight-extrabold);
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tighter);
}
.stat-card__label {
  font-size: var(--text-sm);
  color: var(--color-ink);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}
.stat-card__detail {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-2);
}
.stat-card__source {
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOC 3 — AUDIT FLASH (animation scan → dashboard + timeline)
   ============================================================ */

/* Fond et trame calqués sur la scène interactive de la page sécurité
   incendie (#batiment) : crème --color-bg-alt et quadrillage « plan
   technique » — filets d'encre à 7 %, maille de 24 px.
   Les deux s'estompent sur 160 px en haut et en bas (même distance pour le
   fond et pour la trame) afin de rejoindre les sections voisines en
   --color-bg sans coupure nette. */
#audit-flash {
  position: relative;
  background: linear-gradient(
    180deg,
    var(--color-bg) 0,
    var(--color-bg-alt) 160px,
    var(--color-bg-alt) calc(100% - 160px),
    var(--color-bg) 100%
  );
}
#audit-flash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 35, 50, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 35, 50, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
}
/* Contenu au-dessus du motif */
#audit-flash > .container { position: relative; z-index: 1; }

/* Sous-titre retiré : on resserre l'espace titre → animation */
#audit-flash .section__head { margin-bottom: var(--space-10); }

/* Révélation progressive des étapes de la timeline, calée sur la
   progression de l'audit (animation de scan à gauche). Pilotée en JS :
   .is-anim arme l'état masqué, .is-revealed dévoile chaque étape,
   .is-drawn fait croître le filet vertical sur toute la durée. */
#audit-flash .timeline.is-anim .timeline__step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
#audit-flash .timeline.is-anim .timeline__step.is-revealed {
  opacity: 1;
  transform: none;
}
#audit-flash .timeline.is-anim::before {
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 4.4s linear;
}
#audit-flash .timeline.is-anim.is-drawn::before {
  transform: scaleY(1);
}

.audit-flash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

/* Conteneur du visuel (carré, contient les 2 stages superposés) */
.audit-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.02;
}
.scan-stage,
.dashboard-stage {
  position: absolute;
  inset: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Scan stage (visible par défaut) */
.scan-stage {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  color: var(--color-ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
  opacity: 1;
}
.scan-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(var(--c-orange-rgb), 0.22), transparent 55%),
    radial-gradient(circle at 20% 90%, rgba(var(--c-orange-rgb), 0.10), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.scan-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 35, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 35, 50, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

.scan-svg {
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 1;
}

.scan-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass-light);
  -webkit-backdrop-filter: var(--blur-glass-light);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  position: relative;
  z-index: 1;
  align-self: flex-start;
  letter-spacing: var(--tracking-wide);
}
.scan-status__dot {
  width: 8px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--color-orange);
  animation: scan-pulse 1.5s ease-in-out infinite;
}
@keyframes scan-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Grille du scan : pictos gauche + bâtiment + pictos droite */
.scan-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(220px, 2.4fr) minmax(0, 0.8fr);
  gap: var(--space-2);
  min-height: 0;
  position: relative;
  z-index: 1;
}

.scan-pictos {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: var(--space-2);
}

.scan-picto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass-light);
  -webkit-backdrop-filter: var(--blur-glass-light);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  opacity: 0.4;
  filter: saturate(0.4);
  overflow: hidden;
  --state-color: rgba(26, 35, 50, 0.3);
}
.scan-picto--ok   { --state-color: var(--color-success); }
.scan-picto--warn { --state-color: var(--color-orange); }
.scan-picto--ko   { --state-color: #EF4444; }

.scan-picto__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(var(--c-orange-rgb), 0.15);
}
.scan-picto__icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-orange-deep);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scan-picto__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.scan-picto__label {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: auto;
}

.scan-picto__state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}

.scan-picto__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--state-color);
  box-shadow: 0 0 6px var(--state-color);
  flex-shrink: 0;
}

.scan-picto__state-text {
  font-size: 10px;
  font-weight: var(--weight-medium);
  color: var(--color-ink-soft);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pop animation triggered as the scan line crosses each row */
[data-scan-trigger].is-scanning .scan-picto--row1 {
  animation: picto-pop 0.6s var(--ease-out) 0.7s forwards;
}
[data-scan-trigger].is-scanning .scan-picto--row2 {
  animation: picto-pop 0.6s var(--ease-out) 2s forwards;
}
[data-scan-trigger].is-scanning .scan-picto--row3 {
  animation: picto-pop 0.6s var(--ease-out) 3.2s forwards;
}
@keyframes picto-pop {
  0%   { opacity: 0.4; filter: saturate(0.4); transform: scale(1); }
  50%  { opacity: 1; filter: saturate(1); transform: scale(1.05); }
  100% { opacity: 1; filter: saturate(1); transform: scale(1); }
}

/* Bâtiment SVG */
.scan-building {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.scan-svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
}

.building { stroke: rgba(26, 35, 50, 0.45); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.building-fill { fill: rgba(var(--c-orange-rgb), 0.06); stroke: none; }

/* Ligne de scan (animée) */
.scan-line-wrap { opacity: 0; }
.scan-line { stroke: var(--color-orange); stroke-width: 2; stroke-linecap: round; }
.scan-line-glow { fill: var(--color-orange); opacity: 0.5; filter: blur(4px); }

[data-scan-trigger].is-scanning .scan-line-wrap {
  animation: scan-down 4s linear forwards;
}
@keyframes scan-down {
  0%   { transform: translateY(0);     opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(220px); opacity: 0; }
}

/* Dashboard stage (caché par défaut, apparaît après le scan) */
.dashboard-stage {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}
.dashboard-stage .dashboard {
  position: relative;
  height: 100%;
  margin: 0;
}

[data-scan-trigger].is-complete .scan-stage {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}
[data-scan-trigger].is-complete .dashboard-stage {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .scan-line-wrap { opacity: 1 !important; animation: none !important; }
  .scan-picto { opacity: 1 !important; filter: saturate(1) !important; animation: none !important; }
  .dashboard__category { animation: none !important; }
  .scan-stage { opacity: 0 !important; pointer-events: none; }
  .dashboard-stage { opacity: 1 !important; pointer-events: auto; transform: none !important; }
}

/* Dashboard (tableau de bord détaillé, phase 2 du scan) */
.dashboard {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-2xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  color: var(--color-ink);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.dashboard::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(var(--c-orange-rgb), 0.25), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-line);
  position: relative;
  flex-shrink: 0;
}
.dashboard__title {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dashboard__name {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  margin-top: 2px;
}
.dashboard__dots { display: flex; gap: 6px; }
.dashboard__dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(26, 35, 50, 0.15);
}

/* Overview : donut + légende */
.dashboard__overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: center;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-line);
  position: relative;
  flex-shrink: 0;
}

.dashboard__donut {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.dashboard__donut svg {
  width: 100%;
  height: 100%;
  display: block;
}
.dashboard__donut-bg { stroke: rgba(26, 35, 50, 0.08); }
.dashboard__donut-seg { stroke-linecap: butt; }
.dashboard__donut-seg--ok   { stroke: var(--color-success); }
.dashboard__donut-seg--warn { stroke: var(--color-orange); }
.dashboard__donut-seg--ko   { stroke: #EF4444; }

.dashboard__donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dashboard__donut-value {
  font-size: 26px;
  font-weight: var(--weight-extrabold);
  color: var(--color-ink);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}
.dashboard__donut-value span {
  font-size: 13px;
  margin-left: 1px;
  color: var(--color-ink-soft);
  font-weight: var(--weight-bold);
}
.dashboard__donut-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
  font-weight: var(--weight-bold);
  margin-top: 4px;
}

.dashboard__overview-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.dashboard__legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dashboard__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--color-ink-soft);
}
.dashboard__legend-item strong {
  color: var(--color-ink);
  font-weight: var(--weight-bold);
  margin-right: 2px;
  font-size: 12px;
}
.dashboard__legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dashboard__legend-dot--ok   { background: var(--color-success); box-shadow: 0 0 6px var(--color-success); }
.dashboard__legend-dot--warn { background: var(--color-orange); box-shadow: 0 0 6px var(--color-orange); }
.dashboard__legend-dot--ko   { background: #EF4444; box-shadow: 0 0 6px #EF4444; }

.dashboard__score-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(239, 68, 68, 0.10);
  color: #B91C1C;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  align-self: flex-start;
}

/* Catégories : lignes avec barre de progression */
.dashboard__categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  position: relative;
}
.dashboard__category {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  background: rgba(26, 35, 50, 0.07);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--state-color);
  --state-color: rgba(26, 35, 50, 0.3);
}
.dashboard__category--ok   { --state-color: var(--color-success); }
.dashboard__category--warn { --state-color: var(--color-orange); }
.dashboard__category--ko   { --state-color: #EF4444; }

.dashboard__category-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dashboard__category-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--state-color);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard__category-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard__category-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}
.dashboard__category-name {
  font-size: 11px;
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  line-height: 1.2;
}
.dashboard__category-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  color: var(--state-color);
}
.dashboard__category-bar {
  height: 3px;
  background: rgba(26, 35, 50, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.dashboard__category-bar span {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  background: var(--state-color);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--state-color);
}

/* KPIs : bandeau bas */
.dashboard__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-line);
  flex-shrink: 0;
  position: relative;
}
.dashboard__kpi {
  padding: 8px 12px;
  background: rgba(26, 35, 50, 0.07);
  border-radius: var(--radius-md);
}
.dashboard__kpi-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
  margin-bottom: 2px;
}
.dashboard__kpi-value {
  font-size: 16px;
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  line-height: 1;
}

/* Stagger reveal des catégories quand le dashboard apparaît */
[data-scan-trigger].is-complete .dashboard__category {
  animation: dash-row-in 0.4s var(--ease-out) backwards;
}
[data-scan-trigger].is-complete .dashboard__category:nth-child(1) { animation-delay: 0.2s; }
[data-scan-trigger].is-complete .dashboard__category:nth-child(2) { animation-delay: 0.28s; }
[data-scan-trigger].is-complete .dashboard__category:nth-child(3) { animation-delay: 0.36s; }
[data-scan-trigger].is-complete .dashboard__category:nth-child(4) { animation-delay: 0.44s; }
[data-scan-trigger].is-complete .dashboard__category:nth-child(5) { animation-delay: 0.52s; }
[data-scan-trigger].is-complete .dashboard__category:nth-child(6) { animation-delay: 0.6s; }
@keyframes dash-row-in {
  0%   { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Timeline 4 étapes — grid 2 colonnes (num + body), titre aligné avec
   le numéro grâce à min-height 48px + center sur le header */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-orange) 0%, var(--color-orange-deep) 100%);
  border-radius: 2px;
}

.timeline__step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-5);
  position: relative;
}

.timeline__num {
  width: 48px;
  height: 48px;
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-extrabold);
  font-size: var(--text-md);
  box-shadow: var(--shadow-orange);
  border: 3px solid var(--color-bg-warm);
  z-index: 1;
  flex-shrink: 0;
}

.timeline__body {
  min-width: 0;
}

.timeline__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 48px;
  margin-bottom: var(--space-2);
}

.timeline__title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  margin: 0;
  line-height: var(--leading-snug);
}

.timeline__time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-orange-deep);
  font-weight: var(--weight-semibold);
  background: var(--color-white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.timeline__desc {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  margin: 0;
}

@media (max-width: 640px) {
  .timeline__step { gap: var(--space-3); }
  .timeline__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    min-height: 0;
  }
}

@media (max-width: 1024px) {
  .audit-flash { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ============================================================
   BLOC 4 — EXPERTISES (4 cards dont 1 star sombre)
   ============================================================ */
.expertises {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.expertise {
  /* Pas de backdrop-filter ici : combiné au transform du survol + scroll
     rapide, il déclenche le bug Chromium de la carte qui « blanchit ».
     Le fond de section étant uni, le flou n'apportait rien de visible. */
  background: var(--glass-bg);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.expertise:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.expertise--star {
  background: var(--color-ink);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.expertise--star::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, var(--halo-orange-strong), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.expertise--star h3 { color: var(--color-white); }
.expertise--star .expertise__desc { color: rgba(255, 255, 255, 0.7); }
.expertise--star .expertise__star {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  background: var(--color-orange);
  color: var(--color-ink);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.expertise__icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-icon);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-orange);
  position: relative;
}
.expertise--star .expertise__icon { box-shadow: var(--shadow-orange-strong); }
.expertise__icon svg { width: 28px; height: 28px; }

/* Encadré média sur la carte vedette (sombre) : cadre translucide, loupe orange */
.expertise--star .expertise__media {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--color-orange);
}

.expertise h3 { margin-bottom: var(--space-3); position: relative; }
.expertise__desc {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-5);
  line-height: var(--leading-relaxed);
  position: relative;
}
.expertise__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-orange-deep);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  transition: gap var(--duration-fast) var(--ease-out);
  position: relative;
}
.expertise--star .expertise__link { color: var(--color-orange); }
.expertise__link:hover { gap: var(--space-2); }

@media (max-width: 768px) {
  .expertises { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOC 5 — FINANCEMENT CARSAT
   ============================================================ */
.funding {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-16);
  align-items: center;
}
.funding__hero {
  text-align: center;
}
.funding__hero-pct {
  font-size: clamp(64px, 9vw, 112px);
  font-weight: var(--weight-extrabold);
  line-height: 0.9;
  white-space: nowrap;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: var(--tracking-tighter);
  margin-bottom: var(--space-2);
}
.funding__hero-label {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}
.funding__hero-source {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  margin-top: var(--space-1);
}

.funding__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.funding__card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.funding__card-cat {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-3);
  font-weight: var(--weight-semibold);
}
.funding__card-amount {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-orange-deep);
  margin-bottom: var(--space-1);
}
.funding__card-source {
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
}
.funding__card-btn {
  margin-top: var(--space-4);
}

/* Variante : un seul encadré, sans le gros chiffre à gauche */
.funding--single {
  grid-template-columns: 1fr;
  justify-items: center;
}
.funding--single .funding__cards {
  grid-template-columns: 1fr;
  max-width: 360px;
  width: 100%;
}

@media (max-width: 1024px) {
  .funding { grid-template-columns: 1fr; text-align: center; }
  .funding__cards { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOC 6 — CONFIANCE
   Bandeau logos défilant + certifs + témoignages
   ============================================================ */
.logos-marquee {
  background: var(--glass-bg);
  border-block: 1px solid var(--color-line);
  padding-block: var(--space-8);
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-16);
}
.logos-marquee::before,
.logos-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}
.logos-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg) 0%, transparent 100%);
}
.logos-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--color-bg) 0%, transparent 100%);
}
.logos-marquee__track {
  display: flex;
  gap: var(--space-16);
  width: max-content;
  animation: marquee 45s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.logos-marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 44px;
  opacity: 1;
}
.logos-marquee__item img {
  max-height: 34px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .logos-marquee__track { animation: none; }
}

/* Carousel d'avis clients (carte témoignage) */
.tcarousel {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
}
.tcarousel__track { gap: var(--space-6); }
.tcarousel__track > .tcard { flex: 0 0 100%; }
.tcard {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.tcard .eyebrow {
  align-self: flex-start;
  margin-bottom: var(--space-3);
}
.tcard__quote {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1.75;
  letter-spacing: normal;
  color: var(--color-ink);
  margin-bottom: var(--space-3);
}
.tcard__name {
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
}
.tcard__role {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}
.tcard__stars {
  margin-top: var(--space-3);
  color: var(--color-orange);
  font-size: var(--text-md);
  letter-spacing: 3px;
}

.tcarousel__nav {
  position: absolute;
  right: var(--space-8);
  bottom: var(--space-8);
  display: flex;
  gap: var(--space-2);
}
.tcarousel__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}
.tcarousel__btn:hover {
  color: var(--color-orange-deep);
  border-color: var(--color-orange);
  transform: translateY(-1px);
}
.tcarousel__btn:disabled { opacity: 0.35; cursor: default; }
.tcarousel__btn svg { width: 18px; height: 18px; }

/* Un seul avis : pas de flèches de navigation */
.tcarousel:has(.tcarousel__track > :only-child) .tcarousel__nav { display: none; }

@media (max-width: 600px) {
  .tcard { padding: var(--space-6); }
  .tcarousel__nav { right: var(--space-6); bottom: var(--space-6); }
}

/* ------------------------------------------------------------
   Témoignages — empilement + rotation
   Les avis voisins restent légèrement visibles derrière l'avis
   au premier plan ; les flèches font pivoter le suivant devant.
   ------------------------------------------------------------ */
.tstack {
  position: relative;
  max-width: 880px;          /* plus large : les avis voisins respirent */
  margin-inline: auto;
}
.tstack__track {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Fallback sans JS : avis empilés en colonne, flèches masquées */
.tstack .tcard { margin: 0; }
.tstack:not(.is-ready) .tcard + .tcard { margin-top: var(--space-5); }
.tstack:not(.is-ready) .tcarousel__nav { display: none; }

/* Empilement actif (JS prêt) */
.tstack.is-ready { overflow: hidden; }
.tstack.is-ready .tstack__track {
  transition: height var(--duration-slow) var(--ease-out);
}
.tstack.is-ready .tcard {
  position: absolute;
  top: 50%;                  /* centré verticalement dans la hauteur figée */
  left: 16%;                 /* carte avant ~68 % : marge latérale pour le peek */
  right: 16%;
  transition: transform var(--duration-slow) var(--ease-out),
              opacity var(--duration-slow) var(--ease-out);
  will-change: transform, opacity;
}
.tstack.is-ready .tcard.is-active { transform: translate(0, -50%) scale(1);        opacity: 1;   z-index: 3; }
.tstack.is-ready .tcard.is-prev   { transform: translate(-62%, -50%) scale(0.86);  opacity: 0.45; z-index: 2; }
.tstack.is-ready .tcard.is-next   { transform: translate(62%, -50%) scale(0.86);   opacity: 0.45; z-index: 2; }
.tstack.is-ready .tcard.is-hidden { transform: translate(0, -50%) scale(0.74);     opacity: 0;   z-index: 1; pointer-events: none; }

/* Flèches centrées SOUS l'avis au premier plan (et non superposées) */
.tstack .tcarousel__nav {
  position: static;
  justify-content: center;
  margin-top: var(--space-8);
  z-index: 4;                /* au-dessus des cartes : zone de clic fiable */
}

/* Un seul avis : pas de flèches */
.tstack:has(.tstack__track > :only-child) .tcarousel__nav { display: none; }

@media (max-width: 600px) {
  .tstack.is-ready .tcard { left: 9%; right: 9%; }
  .tstack.is-ready .tcard.is-prev { transform: translate(-66%, -50%) scale(0.82); }
  .tstack.is-ready .tcard.is-next { transform: translate(66%, -50%) scale(0.82); }
  .tcard__quote { font-size: var(--text-base); line-height: 1.7; }
  .tstack .tcarousel__nav { margin-top: var(--space-6); }
}

/* ============================================================
   BLOC 7 — CONTACT FINAL
   ============================================================ */
.contact-final {
  max-width: 620px;
  margin-inline: auto;
}
.contact-receive h3 {
  color: var(--color-white);
  margin-bottom: var(--space-5);
}
.contact-receive__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-receive__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-base);
}
.contact-receive__check {
  width: 24px; height: 24px;
  background: var(--color-orange);
  color: var(--color-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: var(--shadow-orange);
}
.contact-receive__check svg { width: 14px; height: 14px; }

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: var(--space-3);
  align-self: start;
}
.contact-form__field,
.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.contact-form__label,
.form__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}
.contact-form__input,
.form__input,
.form__select,
.form__textarea,
.cselect__trigger {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-ink);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.contact-form__input:focus,
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(var(--c-orange-rgb), 0.15);
}
.contact-form .btn { margin-top: var(--space-1); }

/* Formulaire pleine page (page Contact) */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  margin-inline: auto;
}
.form__field--full { grid-column: 1 / -1; }
.form__textarea { resize: vertical; min-height: 140px; }
.form__submit { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; padding: var(--space-6); }
  .form__submit { width: 100%; justify-content: center; }
}

/* Cards « moyens de contact » (page Contact) */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.pillars__grid .card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.pillars__grid .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card__icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  background: var(--gradient-icon);
  border-radius: var(--radius-md);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
}
.card__icon-wrap svg { width: 28px; height: 28px; }
.pillars__grid .card h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.pillars__grid .card p { font-size: var(--text-sm); color: var(--color-ink-soft); }
@media (max-width: 860px) {
  .pillars__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

/* Bouton « Prendre rendez-vous » centré sous la liste (ouvre la modale) */
.contact-receive__cta {
  display: flex;
  width: fit-content;
  margin: var(--space-8) auto 0;
}

/* Fenêtre flottante (modale) : par-dessus la page, fond assombri.
   Un clic sur le fond (en dehors du formulaire) la referme. */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-6);
  overflow-y: auto;
  background: rgba(13, 19, 32, 0.98);
  animation: contact-modal-in var(--duration-base) var(--ease-out);
  /* Scrollbar fine et discrète (l'overlay défile, pas le panneau) */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}
.contact-modal::-webkit-scrollbar { width: 10px; }
.contact-modal::-webkit-scrollbar-track { background: transparent; }
.contact-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.contact-modal::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.45); background-clip: padding-box; }
.contact-modal[hidden] { display: none; }
.contact-modal .contact-form {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: auto;                 /* centré vertic. quand ça tient, scroll sinon */
  animation: contact-panel-in var(--duration-base) var(--ease-out);
}
.contact-modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-ink);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.contact-modal__close:hover { background: var(--color-bg-warm); }
.contact-modal__close svg { width: 18px; height: 18px; }
@keyframes contact-modal-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes contact-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Bouton d'envoi désactivé tant que le formulaire est incomplet */
.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Select personnalisé (thème du site) */
.cselect { position: relative; }
.cselect__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  text-align: left;
  cursor: pointer;
}
.cselect__trigger:hover { border-color: var(--color-orange); }
.cselect.is-open .cselect__trigger,
.cselect__trigger:focus-visible {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(var(--c-orange-rgb), 0.15);
}
.cselect__value.is-placeholder { color: var(--color-ink-soft); }
.cselect__caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--color-ink-soft);
  transition: transform var(--duration-fast) var(--ease-out);
}
.cselect.is-open .cselect__caret { transform: rotate(180deg); }
.cselect__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-1);
  max-height: 232px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              visibility var(--duration-fast) var(--ease-out);
}
.cselect.is-open .cselect__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Ouverture vers le haut (quand il n'y a pas la place en dessous,
   ex. dernier champ près du footer) */
.cselect--up .cselect__menu {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(4px);
}
.cselect--up.is-open .cselect__menu {
  transform: translateY(0);
}
.cselect__option {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-ink);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
.cselect__option:hover,
.cselect__option:focus-visible {
  background: var(--color-bg-warm);
  outline: none;
}
.cselect__option[aria-selected="true"] {
  color: var(--color-orange-deep);
  font-weight: var(--weight-semibold);
}

@media (max-width: 1024px) {
  .contact-final { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer__logo { display: inline-block; }
.footer__logo img { height: 34px; width: auto; }
.footer__col--brand { max-width: 34ch; }
.footer__contact {
  margin-top: var(--space-5);
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.footer__contact a,
.footer__contact span {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--color-ink-soft);
}
.footer__contact a { transition: color var(--duration-fast) var(--ease-out); }
.footer__contact a:hover { color: var(--color-orange-deep); }
.footer__bottom-links { display: flex; gap: var(--space-5); }
.footer__bottom-links a {
  color: var(--color-ink-soft);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer__bottom-links a:hover { color: var(--color-orange-deep); }
.footer__col h4 {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-4);
}
.footer__col p,
.footer__col a {
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--color-ink-soft);
  display: block;
  transition: color var(--duration-fast) var(--ease-out);
}
.footer__col a:hover { color: var(--color-orange-deep); }
.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer__col--brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* ============================================================
   PAGES LÉGALES (mentions légales, confidentialité)
   ============================================================ */
.legal { padding-block: var(--space-10) var(--space-4); }
.legal__updated {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-10);
}
.legal__block { margin-bottom: var(--space-10); }
.legal__block h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.legal__block h3 {
  font-size: var(--text-base);
  margin: var(--space-6) 0 var(--space-2);
}
.legal__block p,
.legal__block li {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-soft);
}
.legal__block p { margin-bottom: var(--space-4); }
.legal__block p:last-child { margin-bottom: 0; }
.legal__block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.legal__block li { padding-left: var(--space-5); position: relative; }
.legal__block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}
.legal__block a { color: var(--color-orange-deep); text-decoration: underline; }
.legal__block strong { color: var(--color-ink); font-weight: var(--weight-semibold); }
.legal__note {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  border-left: 2px solid var(--color-orange);
  padding: var(--space-1) 0 var(--space-1) var(--space-4);
  margin-bottom: var(--space-4);
}

/* ============================================================
   PAGE FORMATIONS
   Composants spécifiques à formations.html. Réutilise les tokens,
   les boutons, l'eyebrow, le halo et les sections du design system.
   ============================================================ */

/* --- HERO split (texte gauche / visuel droite) ----------------- */
/* Hero compact — pages légales (mentions, confidentialité) */
.hero--compact {
  min-height: 0;
  padding: var(--space-16) 0 var(--space-10);
}

.hero--split { text-align: left; }
.hero__split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-16);
  align-items: center;
}
.hero__col {
  position: relative;
  z-index: var(--z-content);
}
.hero--split h1 {
  max-width: 18ch;
  margin: 0 0 var(--space-6);
}
.hero--split .hero__sub {
  margin: 0 0 var(--space-8);
  max-width: 46ch;
}
.hero--split .hero__ctas {
  justify-content: flex-start;
  margin-bottom: var(--space-10);
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-line);
  list-style: none;
}
.hero__feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero__feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-md);
  color: var(--color-orange-deep);
  box-shadow: var(--shadow-sm);
}
.hero__feature-icon svg { width: 22px; height: 22px; }
.hero__feature-text {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-ink-soft);
  line-height: 1.4;
}

.hero__visual {
  position: relative;
  z-index: var(--z-content);
}
.hero__photo {
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--color-line-glass);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__floating-card {
  position: absolute;
  left: calc(-1 * var(--space-6));
  bottom: var(--space-8);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 290px;
  padding: var(--space-4);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero__floating-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-icon);
  border-radius: var(--radius-md);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
}
.hero__floating-icon svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .hero__split { grid-template-columns: 1fr; gap: var(--space-12); }
  .hero__floating-card { left: var(--space-4); }
}
@media (max-width: 600px) {
  .hero--split .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__features { gap: var(--space-5); }
  .hero__floating-card {
    position: static;
    max-width: none;
    margin-top: var(--space-4);
  }
}

/* --- PASSEPORT PRÉVENTION (diagramme 4 univers + panneau) -------
   Couleurs des univers : décoratives, LOCALES à ce composant.
   Elles ne font pas partie de la palette de marque (orange/encre/crème)
   et ne doivent pas être réutilisées ailleurs sur le site. */
.passeport {
  --u1: #3B6FB6;   /* bleu  — décoratif local */
  --u2: #6B7686;   /* ardoise — décoratif local */
  --u3: var(--color-orange);
  --u4: #8B5CF6;   /* violet — décoratif local */

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  /* align-items:start → le diagramme reste calé en haut quand la hauteur du
     panneau de droite change d'un univers à l'autre (plus de décalage vertical). */
  align-items: start;
}

/* Diagramme : grille 3×3, noyau au centre, 4 univers aux angles */
.passeport__diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  place-items: center;
  gap: var(--space-4);
  min-height: 440px;
}
.passeport__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px dashed var(--color-orange-soft);
  border-radius: 50%;
  pointer-events: none;
}

.passeport__core {
  grid-area: 2 / 2;
  width: 168px;
  height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}
.passeport__core-label {
  font-weight: var(--weight-extrabold);
  font-size: var(--text-base);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  line-height: 1.1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.passeport__core-sub {
  margin-top: var(--space-2);
  font-size: 11px;
  line-height: 1.3;
  color: var(--color-ink-soft);
}

.passeport__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  transition: transform var(--duration-base) var(--ease-out);
}
.passeport__node--tl { grid-area: 1 / 1; }
.passeport__node--tr { grid-area: 1 / 3; }
.passeport__node--bl { grid-area: 3 / 1; }
.passeport__node--br { grid-area: 3 / 3; }

.passeport__node-circle {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  opacity: 0.82;
  transition: opacity var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.passeport__node--u1 .passeport__node-circle { background: var(--u1); }
.passeport__node--u2 .passeport__node-circle { background: var(--u2); }
.passeport__node--u3 .passeport__node-circle { background: var(--u3); }
.passeport__node--u4 .passeport__node-circle { background: var(--u4); }
.passeport__node-icon svg { width: 34px; height: 34px; color: var(--color-white); }
.passeport__node-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-sm);
}
.passeport__node-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  line-height: 1.25;
  max-width: 150px;
}

.passeport__node:hover .passeport__node-circle,
.passeport__node:focus-visible .passeport__node-circle { opacity: 1; }
.passeport__node.is-active .passeport__node-circle {
  opacity: 1;
  box-shadow: 0 0 0 4px var(--color-white), 0 0 0 7px currentColor, var(--shadow-md);
}
.passeport__node--u1.is-active .passeport__node-circle { color: var(--u1); }
.passeport__node--u2.is-active .passeport__node-circle { color: var(--u2); }
.passeport__node--u3.is-active .passeport__node-circle { color: var(--u3); }
.passeport__node--u4.is-active .passeport__node-circle { color: var(--u4); }

/* Panneau de l'univers actif */
.univers-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.univers-panel[hidden] { display: none; }
.univers-panel__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-line);
}
.univers-panel__head-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-white);
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-sm);
}
.univers-panel__head--u1 .univers-panel__head-num { background: #3B6FB6; }
.univers-panel__head--u2 .univers-panel__head-num { background: #6B7686; }
.univers-panel__head--u3 .univers-panel__head-num { background: var(--color-orange); }
.univers-panel__head--u4 .univers-panel__head-num { background: #8B5CF6; }
.univers-panel__title { font-size: var(--text-xl); }
.univers-panel__desc {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}

.univers-panel__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.formation-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  transition: background var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
/* Éléments de formation non cliquables (rendus en <div>) : pas d'effet de survol. */

/* Bouton « catalogue » centré sous le titre de la section. */
.catalogue-cta { text-align: center; margin: 0; }
.formation-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-icon);
  border-radius: var(--radius-md);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.formation-item__icon svg { width: 20px; height: 20px; }
.formation-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.formation-item__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
}
.formation-item__meta {
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
}
.formation-item__arrow {
  color: var(--color-orange-deep);
  font-weight: var(--weight-bold);
  transition: transform var(--duration-fast) var(--ease-out);
}
.formation-item:hover .formation-item__arrow { transform: translateX(3px); }
.univers-panel__all {
  width: 100%;
  justify-content: center;
}

.passeport__note {
  text-align: center;
  margin-top: var(--space-10);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}
.passeport__note a {
  color: var(--color-orange-deep);
  font-weight: var(--weight-semibold);
}

@media (max-width: 960px) {
  .passeport { grid-template-columns: 1fr; gap: var(--space-10); }
  .passeport__diagram { max-width: 460px; margin-inline: auto; }
}
/* Mobile : le cercle ne tient plus — cœur au-dessus, nœuds en 2 × 2 */
@media (max-width: 560px) {
  .passeport__diagram {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
    gap: var(--space-8) var(--space-4);
    max-width: 100%;
  }
  .passeport__ring { display: none; }
  .passeport__core { grid-area: 1 / 1 / 2 / 3; width: 150px; height: 150px; }
  .passeport__node--tl { grid-area: 2 / 1; }
  .passeport__node--tr { grid-area: 2 / 2; }
  .passeport__node--bl { grid-area: 3 / 1; }
  .passeport__node--br { grid-area: 3 / 2; }
  .passeport__node-label { max-width: 100%; }
  .univers-panel { padding: var(--space-6) var(--space-5); }
  .univers-panel__all {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .passeport__core { width: 130px; height: 130px; }
  .passeport__node-circle { width: 72px; height: 72px; }
  .passeport__node-icon svg { width: 28px; height: 28px; }
  .passeport__node-label { font-size: var(--text-xs); }
}

/* --- POURQUOI FORMER (4 piliers) ------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.why-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.why-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  background: var(--gradient-icon);
  border-radius: var(--radius-md);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
}
.why-card__icon svg { width: 28px; height: 28px; }
.why-card h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.why-card p { font-size: var(--text-sm); color: var(--color-ink-soft); }

@media (max-width: 1024px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* --- BANDE CTA (section sombre) -------------------------------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
}
.cta-band__text h2 { margin-bottom: var(--space-3); }
.cta-band__text p {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.72);
  max-width: 42ch;
}
.cta-band__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cta-band { flex-direction: column; align-items: flex-start; gap: var(--space-6); }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

/* ============================================================
   PAGE ACTUALITÉS — liste d'articles
   ============================================================ */
.news-intro { padding-top: var(--space-16); }

.news-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
.news-head__text h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}
.news-head__text p {
  font-size: var(--text-md);
  color: var(--color-ink-soft);
  max-width: 46ch;
}

.newsletter-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 460px;
  padding: var(--space-5) var(--space-6);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}
.newsletter-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-icon);
  border-radius: var(--radius-md);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
}
.newsletter-card__icon svg { width: 22px; height: 22px; }
.newsletter-card__body { flex: 1; min-width: 0; }
.newsletter-card__body strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  margin-bottom: 2px;
}
.newsletter-card__body span {
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  line-height: 1.45;
}
.newsletter-card__cta { flex-shrink: 0; }

/* Filtres */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-line);
}
.news-filter {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink-soft);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.news-filter:hover { color: var(--color-ink); border-color: var(--color-ink-soft); }
.news-filter.is-active {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-ink);
}

/* Grille d'articles */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.article-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-warm);
  color: var(--color-orange-deep);
}
.article-card__media svg { width: 56px; height: 56px; opacity: 0.55; }
.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
}
.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.article-card__cat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-ink-soft);
}
.article-card__cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
  flex-shrink: 0;
}
.article-card__time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  white-space: nowrap;
}
.article-card__time svg { width: 14px; height: 14px; }
.article-card__title {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
}
.article-card__title a { color: var(--color-ink); transition: color var(--duration-fast) var(--ease-out); }
.article-card__title a:hover { color: var(--color-orange-deep); }
.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  line-height: var(--leading-relaxed);
}
.article-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-orange-deep);
  transition: gap var(--duration-fast) var(--ease-out);
}
.article-card__link:hover { gap: var(--space-2); }

.news-empty {
  text-align: center;
  color: var(--color-ink-soft);
  font-size: var(--text-md);
  padding: var(--space-12) 0;
}
.news-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-12);
}

@media (max-width: 860px) {
  .news-head { grid-template-columns: 1fr; }
  .newsletter-card { max-width: none; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .newsletter-card { flex-wrap: wrap; }
  .newsletter-card__cta { width: 100%; justify-content: center; }
}

/* ============================================================
   PAGE ARTICLE — détail
   ============================================================ */
.article-page { padding-top: var(--space-12); }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-8);
  transition: color var(--duration-fast) var(--ease-out);
}
.article-back:hover { color: var(--color-orange-deep); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-12);
  align-items: start;
}

/* Corps */
.article-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
}
.article-main h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.article-lead {
  font-size: var(--text-md);
  color: var(--color-ink-soft);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}
.article-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-warm);
  color: var(--color-orange-deep);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
}
.article-figure svg { width: 72px; height: 72px; opacity: 0.5; }
.article-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-key {
  padding: var(--space-6);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-10);
}
.article-key__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}
.article-key__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}
.article-key__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-ink);
}
.article-key__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-success);
  color: var(--color-white);
  border-radius: 50%;
  margin-top: 1px;
}
.article-key__check svg { width: 12px; height: 12px; }

.article-body h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  scroll-margin-top: 96px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p {
  font-size: var(--text-base);
  color: var(--color-ink);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

/* Sidebar */
.article-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: 96px;
}
.article-toc {
  padding: var(--space-6);
  background: var(--glass-bg);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
}
.article-toc__title {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.article-toc__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: var(--space-5);
}
.article-toc__list li { color: var(--color-ink-soft); font-size: var(--text-sm); }
.article-toc__list a {
  color: var(--color-ink-soft);
  transition: color var(--duration-fast) var(--ease-out);
}
.article-toc__list a:hover { color: var(--color-orange-deep); }

.article-help {
  padding: var(--space-6);
  background: var(--color-bg-warm);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-2xl);
}
.article-help__title { font-size: var(--text-base); margin-bottom: var(--space-2); }
.article-help p {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-5);
}
.article-help .btn { width: 100%; justify-content: center; }

.article-related {
  padding: var(--space-6);
  background: var(--glass-bg);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
}
.article-related__title {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.article-related__link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-line);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  transition: color var(--duration-fast) var(--ease-out);
}
.article-related__link:hover { color: var(--color-orange-deep); }
.article-related__link span[aria-hidden] { color: var(--color-orange-deep); }

@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .article-aside { position: static; }
}

/* ============================================================
   PAGE FINANCEMENT
   Parti-pris : peu de pictogrammes. Numéros pour les étapes,
   check-list sobre pour l'éligibilité, cartes sans icône d'en-tête.
   ============================================================ */

/* Hero : highlights texte (sans icône) */
.hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-line);
  list-style: none;
}
.hero__highlights li {
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-orange);
}
.hero__highlights strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}
.hero__highlights span {
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
}


/* En-tête de section avec eyebrow centré */
.section__head .eyebrow { margin-bottom: var(--space-4); }

/* Cartes d'aides */
.fin-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
/* Chaque carte expose ses 5 blocs (titre, desc, label, liste, note) comme
   rangées du grid parent (subgrid) : les labels orange et les notes sont
   alignés d'une carte à l'autre quelle que soit la longueur des textes. */
.fin-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  row-gap: var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}
.fin-card h3 { font-size: var(--text-lg); }
.fin-card__desc {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  line-height: var(--leading-relaxed);
}
.fin-card__label {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-semibold);
  color: var(--color-orange-deep);
}
.fin-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}
.fin-list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-ink);
}
.fin-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-orange-deep);
  font-weight: var(--weight-bold);
}
.fin-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.fin-tag {
  padding: 4px 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}
.fin-badge {
  align-self: flex-start;
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-warm);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-orange-deep);
}
.fin-card__note {
  margin-top: auto; /* cale la note en bas : cartes de même hauteur, notes alignées */
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  line-height: 1.45;
}

@media (max-width: 1024px) { .fin-cards { grid-template-columns: 1fr; } }

/* FAQ — accordéon en cartes blanches (détails/summary natifs) */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 820px;
  margin-inline: auto;
}
.faq__item {
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__chevron {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-warm);
  color: var(--color-orange-deep);
  border-radius: 50%;
  transition: transform var(--duration-fast) var(--ease-out);
}
.faq__chevron svg { width: 18px; height: 18px; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-base);
  color: var(--color-ink-soft);
  line-height: var(--leading-relaxed);
}

/* Éligibilité — check-list sobre */
.elig-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-8);
  max-width: 920px;
  margin-inline: auto;
  list-style: none;
}
.elig-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-ink);
}
.elig-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-warm);
  color: var(--color-orange-deep);
  border-radius: 50%;
}
.elig-check svg { width: 14px; height: 14px; }

.elig-footer {
  text-align: center;
  margin-top: var(--space-10);
}
.elig-footer__note {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-4);
}
.elig-footer__cta {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg-warm);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  color: var(--color-ink);
}
.elig-footer__cta a {
  color: var(--color-orange-deep);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

@media (max-width: 640px) { .elig-list { grid-template-columns: 1fr; } }

/* Accompagnement — photo + 4 étapes numérotées */
.accompagnement {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-12);
  align-items: center;
}
.accompagnement__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  border: 1px solid var(--color-line-glass);
  box-shadow: var(--shadow-lg);
}
.accompagnement__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fin-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  list-style: none;
}
.fin-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.fin-step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-icon);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: var(--weight-bold);
  box-shadow: var(--shadow-orange);
}
.fin-step__body h3 { font-size: var(--text-md); margin-bottom: var(--space-1); }
.fin-step__body p { font-size: var(--text-sm); color: var(--color-ink-soft); }

@media (max-width: 960px) {
  .accompagnement { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ============================================================
   PAGE À PROPOS / ÉQUIPE
   ============================================================ */

/* Sous-navigation sticky */
.subnav {
  position: sticky;
  top: 71px;
  z-index: 199;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-line);
}
.subnav__inner {
  display: flex;
  align-items: stretch;
  gap: var(--space-6);
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav__link {
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink-soft);
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.subnav__link:hover { color: var(--color-ink); }
.subnav__link.is-active {
  color: var(--color-orange-deep);
  border-bottom-color: var(--color-orange);
}

/* Ancrage : compense nav (72px) + sous-nav (52px) */
#equipe, #engagement, #fondateurs, #certifications, #implantation {
  scroll-margin-top: 128px;
}

/* Check-list réutilisable (coche dessinée en CSS) */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 36px;
  font-size: var(--text-base);
  color: var(--color-ink);
  line-height: var(--leading-normal);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-warm);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--color-orange-deep);
  border-bottom: 2px solid var(--color-orange-deep);
  transform: rotate(-45deg);
}
.check-list--inline { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-6); }
.check-list--inline li { text-align: left; }
.check-list--sm li { padding-left: 30px; font-size: var(--text-sm); }
.check-list--sm li::before { width: 20px; height: 20px; }
.check-list--sm li::after { left: 6px; top: 6px; }

/* Notre engagement */
.engagement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.engagement__text .eyebrow { margin-bottom: var(--space-4); }
.engagement__text h2 { margin-bottom: var(--space-5); }
.engagement__text p {
  color: var(--color-ink-soft);
  margin-bottom: var(--space-4);
  max-width: 48ch;
}
.quote-card {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--color-white);
  border-left: 3px solid var(--color-orange);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.quote-card blockquote {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  font-style: italic;
  color: var(--color-ink);
  line-height: var(--leading-snug);
}
.engagement__checklist { padding-top: var(--space-2); }

@media (max-width: 960px) {
  .engagement { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* Les fondateurs */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.founder-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.founder-card__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
/* Le cadre est en 3/4, comme les portraits : aucun recadrage, à toutes
   les tailles d'écran (mobile compris). */
.founder-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% top;
  display: block;
}
.founder-card__name { font-size: var(--text-xl); margin-bottom: 2px; }
.founder-card__role {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-orange-deep);
  margin-bottom: var(--space-2);
}
.founder-card__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  margin-bottom: var(--space-3);
}
.founder-card__quote {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-ink-soft);
  line-height: var(--leading-relaxed);
}

@media (max-width: 1024px) { .founders { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .founder-card { grid-template-columns: 1fr; }
}

/* Certifications & agréments */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.cert-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-warm);
  color: var(--color-orange-deep);
  border-radius: var(--radius-md);
}
.cert-item__icon svg { width: 24px; height: 24px; }
.cert-item__title { font-size: var(--text-base); margin-bottom: 2px; }
.cert-item__desc {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  line-height: var(--leading-normal);
}
.certs-more { display: flex; justify-content: center; margin-top: var(--space-10); }

@media (max-width: 960px) { .certs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .certs-grid { grid-template-columns: 1fr; } }

/* Notre implantation */
.implantation {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: var(--space-16);
  align-items: center;
}
.implantation__text .eyebrow { margin-bottom: var(--space-4); }
.implantation__text h2 { margin-bottom: var(--space-6); }
.implantation__card {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg-warm);
  border-radius: var(--radius-xl);
}
.implantation__card strong { display: block; font-size: var(--text-md); margin-bottom: 2px; }
.implantation__card span { font-size: var(--text-sm); color: var(--color-ink-soft); }
.implantation__map {
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-france {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 420px;
}
.map-france img { width: 100%; height: auto; display: block; }
/* Le pin de la carte est à 74,9 % en largeur et son sommet à 48,1 % en hauteur :
   l'étiquette est ancrée sur ces coordonnées, posée juste au-dessus du pin. */
.map-france__callout {
  position: absolute;
  left: 74.9%;
  bottom: 53.5%;
  transform: translateX(-70%);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-3) var(--space-4);
  white-space: nowrap;
}
.map-france__callout strong {
  display: block;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
}
.map-france__callout span {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  line-height: var(--leading-snug);
}

@media (max-width: 960px) {
  .implantation { grid-template-columns: 1fr; gap: var(--space-10); }
  .implantation__map { order: -1; }
}

/* ============================================================
   PAGE AUDIT DE CONFORMITÉ
   ============================================================ */

/* Hero — carte flottante avec check-list */
.hero__floating-card--list {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  max-width: 300px;
  /* Descendu pour dégager le sujet de la photo (audit) */
  bottom: calc(-1 * var(--space-2));
}
.hero__floating-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero__floating-head strong {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 1.25;
}

/* Démarche 4 étapes — grossissement au survol */
.audit-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  list-style: none;
}
.audit-step {
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.audit-step:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.audit-step__top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.audit-step__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-icon);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-orange);
}
.audit-step__time {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-orange-deep);
}
.audit-step__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: var(--color-bg-warm);
  color: var(--color-orange-deep);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
}
.audit-step__media svg { width: 44px; height: 44px; opacity: 0.6; }
.audit-step__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.audit-step h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.audit-step p { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: var(--leading-normal); }

@media (max-width: 960px) { .audit-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audit-steps { grid-template-columns: 1fr; } }

/* ============================================================
   MOYEU DES 8 THÉMATIQUES — 4 encarts à gauche, 4 à droite,
   reliés au logo central par des courbes fines.
   Repère commun aux courbes SVG et aux nœuds : viewBox 900×520,
   les nœuds sont ancrés en % sur ce même repère (picto = extrémité).
   ============================================================ */
.themes-hub {
  position: relative;
  width: min(1000px, 100%);
  aspect-ratio: 1000 / 480;
  margin-inline: auto;
}
.themes-hub__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.themes-hub__lines path {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-opacity: 0;
  transition: stroke-opacity var(--duration-slow) var(--ease-out);
}
.themes-hub.is-revealed .themes-hub__lines path {
  stroke-opacity: 0.5;
  transition-delay: 150ms;
}

/* Cœur central — logo Otium */
.themes-hub__core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.themes-hub.is-revealed .themes-hub__core {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.themes-hub__core img { width: 58%; height: auto; display: block; }

/* Nœuds : encart + picto, ancrés par le centre du picto sur (--x, --y) */
.hub-node {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.themes-hub.is-revealed .hub-node {
  opacity: 1;
  transition-delay: calc(var(--i) * 90ms);
}
/* Gauche : picto à droite (côté centre), encart à sa gauche.
   translate(-100%) → bord droit sur --x, +26px → centre du picto sur --x. */
.hub-node--left {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 26px), -50%);
}
.hub-node--left .hub-node__card { text-align: right; }
/* Droite : picto à gauche (côté centre), encart à sa droite. */
.hub-node--right {
  transform: translate(-26px, -50%);
}
.hub-node--right .hub-node__card { text-align: left; }

.hub-node__icon {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  border: 3px solid var(--color-bg);   /* halo → la courbe semble s'arrêter au bord du picto */
  box-shadow: var(--shadow-sm);
}
.hub-node__icon svg { width: 22px; height: 22px; }
.hub-node__card {
  width: max-content;
  max-width: 232px;   /* cartes qui épousent le texte : 1 ligne si possible, 2 max */
  padding: var(--space-3) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);   /* ombre plus marquée pour détacher du fond */
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  line-height: 1.25;
}

/* Repli mobile : moyeu → liste verticale lisible */
@media (max-width: 900px) {
  .themes-hub {
    width: 100%;
    max-width: 460px;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  .themes-hub__lines { display: none; }
  .themes-hub.is-revealed .themes-hub__core,
  .themes-hub__core {
    position: static;
    order: -1;
    margin: 0 auto var(--space-2);
    width: 116px;
    height: 116px;
    opacity: 1;
    transform: none;
  }
  .hub-node,
  .hub-node--left,
  .hub-node--right {
    position: static;
    width: 100%;
    flex-direction: row;
    transform: none;
    opacity: 1;
  }
  .hub-node__card {
    flex: 1;
    width: auto;
    max-width: none;
    text-align: left;
  }
}

/* Tableau de bord — apparition dynamique au scroll */
/* ============================================================
   MAQUETTE « TABLEAU DE BORD CONFORMITÉ » (sidebar + main)
   ============================================================ */
.audit-dash {
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.audit-dash.is-revealed { opacity: 1; transform: none; }

/* Chrome */
.audit-dash__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-line);
}
.audit-dash__dots { display: flex; gap: 6px; }
.audit-dash__dots span { width: 11px; height: 11px; border-radius: 50%; }
.audit-dash__dots span:nth-child(1) { background: #F45B4B; }
.audit-dash__dots span:nth-child(2) { background: #F5B93B; }
.audit-dash__dots span:nth-child(3) { background: #37C36B; }
.audit-dash__live {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: var(--weight-bold);
  color: var(--color-success); letter-spacing: var(--tracking-wide);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px; border-radius: var(--radius-pill);
}

.audit-dash__app { display: grid; grid-template-columns: 234px 1fr; }

/* --- Barre latérale --- */
.dash-side {
  position: relative;
  border-right: 1px solid var(--color-line);
  padding: var(--space-5) var(--space-4) calc(var(--space-8) + var(--space-6));
  background: linear-gradient(180deg, #FEFCF9, #FBF8F3);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.dash-side__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.dash-side__brand img { height: 24px; width: auto; }
.dash-side__tag { font-size: 10px; color: var(--color-ink-soft); }
.dash-side__nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--color-ink-soft);
}
.dash-nav.is-active {
  background: rgba(var(--c-orange-rgb), 0.12);
  color: var(--color-ink); font-weight: var(--weight-semibold);
  box-shadow: inset 3px 0 0 var(--color-orange);
}
.dash-nav__ic { display: flex; width: 18px; height: 18px; color: var(--color-ink-soft); flex-shrink: 0; }
.dash-nav.is-active .dash-nav__ic { color: var(--color-orange-deep); }
.dash-nav__ic svg { width: 100%; height: 100%; }
.dash-nav__ic--color { color: var(--c); }
.dash-side__label {
  font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--color-ink-soft); font-weight: var(--weight-semibold); margin-top: var(--space-2);
}
.dash-side__collapse {
  position: absolute; left: var(--space-4); bottom: var(--space-4);
  width: 30px; height: 30px; border-radius: var(--radius-md);
  border: 1px solid var(--color-line); background: var(--color-white);
  color: var(--color-ink-soft); cursor: default; line-height: 1;
}

/* --- Contenu principal --- */
.dash-main { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
@media (max-width: 480px) { .dash-main { padding: var(--space-4); } }
.dash-main__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.dash-main__title { font-size: var(--text-xl); font-weight: var(--weight-extrabold); }
.dash-client { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.dash-client__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--color-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: var(--weight-bold); }

/* KPIs */
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.dash-kpi {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: var(--color-bg); border: 1px solid var(--color-line);
  border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5);
}
.dash-kpi__text { display: flex; flex-direction: column; gap: 3px; }
.dash-kpi__label { font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-ink-soft); font-weight: var(--weight-semibold); }
.dash-kpi__value { font-size: var(--text-xl); font-weight: var(--weight-extrabold); line-height: 1.05; }
.dash-kpi__value--green { color: var(--color-success); }
.dash-kpi__value--orange { color: var(--color-orange-deep); }
.dash-kpi__sub { font-size: var(--text-xs); color: var(--color-ink-soft); }
.dash-kpi__sub--green { color: #16A34A; font-weight: var(--weight-bold); }
.dash-kpi__ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt); color: var(--color-ink-soft);
  font-weight: var(--weight-bold); font-size: var(--text-lg);
}
.dash-kpi__ic svg { width: 22px; height: 22px; }
.dash-kpi__ic--orange { background: rgba(var(--c-orange-rgb), 0.14); color: var(--color-orange-deep); }
.dash-donut { width: 62px; height: 62px; flex-shrink: 0; }
.dash-donut__track { fill: none; stroke: var(--color-bg-alt); stroke-width: 3.6; }
.dash-donut__val { fill: none; stroke: var(--color-success); stroke-width: 3.6; stroke-linecap: round; }

/* Carte générique */
.dash-card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-5); }
.dash-card__title { font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-ink-soft); font-weight: var(--weight-semibold); margin-bottom: var(--space-4); }
.dash-card__title--ic { display: flex; align-items: center; gap: var(--space-2); }
.dash-card__title--ic svg { width: 15px; height: 15px; color: #F0820E; }

/* Barres thématiques */
.dash-bars { display: flex; flex-direction: column; gap: var(--space-3); list-style: none; }
.dash-bar { display: grid; grid-template-columns: 24px minmax(120px, 210px) 1fr 46px; gap: var(--space-3); align-items: center; font-size: var(--text-sm); }
.dash-bar__ic { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--c); }
.dash-bar__ic svg { width: 18px; height: 18px; }
.dash-bar__name { color: var(--color-ink); font-weight: var(--weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-bar__track { height: 9px; background: var(--color-bg-alt); border-radius: var(--radius-pill); overflow: hidden; }
.dash-bar__fill { display: block; height: 100%; width: 0; border-radius: var(--radius-pill); background: var(--state); transition: width 1.1s var(--ease-out); transition-delay: 0.25s; }
.audit-dash.is-revealed .dash-bar__fill { width: var(--p); }
.dash-bar__pct { text-align: right; font-weight: var(--weight-bold); color: var(--state); }
/* Barème : vert ≥80, jaune 60-79, orange 40-59, rouge <40 */
.dash-bar--green  { --state: #16A34A; }
.dash-bar--yellow { --state: #E0B10A; }
.dash-bar--orange { --state: #F0820E; }
.dash-bar--red    { --state: #E5484D; }

/* Grille des 3 cartes du bas */
.dash-grid3 { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: var(--space-4); }

/* Courbe d'évolution */
.dash-line { width: 100%; height: auto; }
.dash-line__grid line { stroke: var(--color-line); stroke-width: 1; }
.dash-line__ylabels text { font-size: 9px; fill: var(--color-ink-soft); text-anchor: end; }
.dash-line__xlabels text { font-size: 9px; fill: var(--color-ink-soft); text-anchor: middle; }
.dash-line__area { fill: url(#dashGrad); opacity: 0.14; }
.dash-line__solid { fill: none; stroke: url(#dashGrad); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.dash-line__dash { fill: none; stroke: url(#dashGrad); stroke-width: 2.6; stroke-dasharray: 4 4; stroke-linecap: round; }
.dash-line__dots circle { fill: #fff; stroke: url(#dashGrad); stroke-width: 2.2; }
.dash-line__tag { font-size: 11px; font-weight: var(--weight-bold); }
.dash-line__tag--start { text-anchor: start; fill: #F0820E; }
.dash-line__tag--end { text-anchor: end; fill: #16A34A; }
.dash-line__legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-ink-soft); }
.dash-leg { display: inline-flex; align-items: center; gap: 7px; }
.dash-leg::before { content: ""; width: 18px; border-top: 2px solid #F0820E; }
.dash-leg--dash::before { border-top-style: dashed; }
/* Gain vert dans le titre « Évolution » */
.dash-gain { margin-left: auto; flex-shrink: 0; white-space: nowrap; color: #16A34A; font-weight: var(--weight-bold); background: rgba(22, 163, 74, 0.12); padding: 2px 9px; border-radius: var(--radius-pill); font-size: 11px; letter-spacing: normal; text-transform: none; }

/* Camembert */
.dash-pie-row { display: flex; align-items: center; gap: var(--space-5); }
.dash-pie { position: relative; width: 112px; height: 112px; border-radius: 50%; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.dash-pie__lbl { position: absolute; transform: translate(-50%, -50%); font-size: 11px; font-weight: var(--weight-bold); color: #fff; }
.dash-pie-legend { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-ink); min-width: 0; flex: 1; }
.dash-pie-legend li { display: flex; align-items: center; gap: var(--space-2); }
.dash-pie-legend .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dash-pie-legend b { margin-left: auto; font-weight: var(--weight-bold); }
.dash-note { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); padding: var(--space-3); background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-md); font-size: var(--text-xs); color: var(--color-ink-soft); }
.dash-note__ic { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--color-bg-alt); color: var(--color-ink-soft); display: flex; align-items: center; justify-content: center; font-style: italic; font-weight: var(--weight-bold); font-size: 11px; }

/* Top 3 actions */
.dash-actions { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.dash-actions li { display: flex; align-items: center; gap: var(--space-3); background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-ink); }
.dash-actions__num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: var(--weight-bold); color: #fff; background: var(--color-orange); }
.dash-actions li:nth-child(1) .dash-actions__num { background: var(--color-orange); }
.dash-actions li:nth-child(2) .dash-actions__num { background: #9AA3AE; }
.dash-actions li:nth-child(3) .dash-actions__num { background: #C2410C; }
.dash-actions__ic { flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: var(--color-bg-alt); color: var(--c); }
.dash-actions__ic svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .audit-dash__app { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-kpis { grid-template-columns: 1fr; }
  .dash-grid3 { grid-template-columns: 1fr; }
}

/* Plan d'actions — 4 étapes reliées */
.plan-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  list-style: none;
}
.plan-step { text-align: center; position: relative; }
.plan-step__num {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-icon);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  box-shadow: var(--shadow-orange);
  position: relative;
  z-index: 1;
}
.plan-step h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.plan-step p { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: var(--leading-normal); max-width: 24ch; margin-inline: auto; }
.plan-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(50% + 34px);
  right: calc(-50% + 34px);
  height: 2px;
  background: var(--color-line);
}
@media (max-width: 760px) {
  .plan-steps { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .plan-step::after { display: none; }
}
@media (max-width: 420px) { .plan-steps { grid-template-columns: 1fr; } }

/* Respect de prefers-reduced-motion : tout est visible d'emblée */
@media (prefers-reduced-motion: reduce) {
  .hub-node { opacity: 1 !important; }
  .themes-hub__core { opacity: 1 !important; }
  .themes-hub__lines path { stroke-opacity: 0.5 !important; }
  .audit-dash { opacity: 1 !important; transform: none !important; }
  .audit-dash .dash-bar__fill { transition: none; width: var(--p) !important; }
  .audit-step { transition: none; }
}

/* Titre de colonne mega-menu cliquable (Audit de conformité) */
.megamenu__col-link {
  color: inherit;
  transition: color var(--duration-fast) var(--ease-out);
}
.megamenu__col-link:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   PAGE DOCUMENTS & OBLIGATIONS RÉGLEMENTAIRES
   ============================================================ */

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-6);
}
.breadcrumb a { color: var(--color-ink-soft); transition: color var(--duration-fast) var(--ease-out); }
.breadcrumb a:hover { color: var(--color-orange-deep); }
.breadcrumb [aria-current="page"] { color: var(--color-ink); font-weight: var(--weight-semibold); }

/* Hero — livre DUERP + mini tableau de bord */
.duerp-book {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
  width: 260px;
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  padding: var(--space-8) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm) var(--radius-2xl) var(--radius-2xl) var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.duerp-book::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: var(--color-ink);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.duerp-book__title { font-size: 40px; font-weight: var(--weight-extrabold); letter-spacing: var(--tracking-tight); color: var(--color-ink); }
.duerp-book__sub { font-size: var(--text-xs); color: var(--color-ink-soft); max-width: 22ch; line-height: 1.4; }
.duerp-book__brand { margin-top: var(--space-4); font-weight: var(--weight-extrabold); color: var(--color-orange-deep); letter-spacing: var(--tracking-tight); }

.duerp-dash {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 250px;
  padding: var(--space-4);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.duerp-dash__head { font-weight: var(--weight-bold); font-size: var(--text-sm); margin-bottom: var(--space-3); }
.duerp-dash__score { display: flex; align-items: baseline; gap: var(--space-2); }
.duerp-dash__score-val { font-size: 34px; font-weight: var(--weight-extrabold); color: var(--color-orange-deep); line-height: 1; }
.duerp-dash__score-val small { font-size: var(--text-sm); color: var(--color-ink-soft); font-weight: var(--weight-semibold); }
.duerp-dash__score-label { font-size: var(--text-xs); color: var(--color-ink-soft); }
.duerp-dash__rep, .duerp-dash__actions { margin-top: var(--space-3); }
.duerp-dash__rep-title { font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-ink-soft); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.duerp-dash ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.duerp-dash__rep li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--color-ink); }
.duerp-dash__rep li b { margin-left: auto; }
.duerp-dash__actions li { position: relative; padding-left: 16px; font-size: var(--text-xs); color: var(--color-ink); }
.duerp-dash__actions li::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--color-orange); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot--ko { background: #EF4444; }
.dot--warn { background: var(--color-orange); }
.dot--ok { background: var(--color-success); }

@media (max-width: 960px) {
  .duerp-dash { position: static; width: 100%; max-width: 320px; margin: var(--space-5) auto 0; }
}

/* Info bar DUERP */
.duerp-info {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding: var(--space-5) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: var(--z-content);
}
.duerp-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-warm);
  color: var(--color-orange-deep);
  border-radius: 50%;
}
.duerp-info__body { flex: 1; }
.duerp-info__body strong { display: block; margin-bottom: 2px; }
.duerp-info__body p { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: var(--leading-normal); }
.duerp-info__cta { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 760px) {
  .duerp-info { flex-direction: column; align-items: flex-start; }
  .duerp-info__cta { width: 100%; justify-content: center; }
}

/* En-tête de section aligné à gauche */
.section__head--left { text-align: left; margin-inline: 0; max-width: none; }

/* Stepper */
.stepper {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  list-style: none;
  margin-bottom: var(--space-8);
}
.stepper::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 9%;
  right: 9%;
  border-top: 2px dashed var(--color-line);
}
.stepper__node { display: flex; justify-content: center; }
.stepper__node span {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 2px solid var(--color-line);
  color: var(--color-ink-soft);
  border-radius: 50%;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  transition: background var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.stepper__node.is-active span {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-ink);
  box-shadow: var(--shadow-orange);
}

/* Carrousel générique */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: var(--space-1) var(--space-1) var(--space-2);
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 auto; }
.carousel__arrow {
  position: absolute;
  top: 58%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--color-ink);
  transition: color var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}
.carousel--docs .carousel__arrow { top: 50%; }
.carousel__arrow--prev { left: -12px; }
.carousel__arrow--next { right: -12px; }
.carousel__arrow:hover { color: var(--color-orange-deep); }
.carousel__arrow:disabled { opacity: 0.3; cursor: default; }
.carousel__arrow svg { width: 20px; height: 20px; }
.carousel__dots { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-5); }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-line); border: none; padding: 0; cursor: pointer; transition: background var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.carousel__dot.is-active { background: var(--color-orange); transform: scale(1.3); }

/* Cartes étapes (démarche) */
.step-cards .step-card { flex-basis: 244px; }
.step-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.step-card--feature { border-color: var(--color-orange); box-shadow: var(--shadow-md); }
.step-card__top { display: flex; gap: var(--space-3); align-items: flex-start; }
.step-card__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-icon);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  box-shadow: var(--shadow-orange);
}
.step-card__top h3 { font-size: var(--text-base); line-height: var(--leading-snug); }
.step-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-warm);
  color: var(--color-orange-deep);
  border-radius: var(--radius-lg);
}
.step-card__media { overflow: hidden; }
.step-card__media svg { width: 40px; height: 40px; opacity: 0.6; }
.step-card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.step-card p { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: var(--leading-normal); margin-top: auto; }

/* Mini-panneau cotation du risque (étape 3) */
.risk-cote { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.risk-cote__title { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-ink); }
.risk-cote__row { display: flex; align-items: center; justify-content: space-between; font-size: var(--text-xs); color: var(--color-ink-soft); }
.risk-cote__scale { display: flex; gap: 3px; }
.risk-cote__scale i { width: 14px; height: 8px; border-radius: 2px; background: var(--color-line); }
.risk-cote__scale i.on { background: var(--color-orange); }
.risk-cote__levels { display: flex; gap: var(--space-2); }
.risk-badge { padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: var(--weight-bold); }
.risk-badge--ko { background: rgba(239, 68, 68, 0.12); color: #DC2626; }
.risk-badge--warn { background: var(--color-bg-warm); color: var(--color-orange-deep); }

/* Onglets documents */
.doc-tabs__nav {
  display: flex;
  gap: var(--space-2);
  max-width: 760px;
  margin: 0 auto var(--space-8);
  padding: 6px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
}
.doc-tab {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink-soft);
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.doc-tab:hover { color: var(--color-ink); }
.doc-tab.is-active { background: var(--color-orange); color: var(--color-ink); box-shadow: var(--shadow-sm); }
.doc-panel[hidden] { display: none; }
@media (max-width: 640px) {
  .doc-tabs__nav { flex-direction: column; border-radius: var(--radius-lg); }
  .doc-tab { border-radius: var(--radius-md); }
}

/* Cartes documents — « livres » colorés (couleurs décoratives LOCALES, hors palette de marque) */
.doc-cards .doc-card { flex-basis: 212px; }
.doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.doc-book {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.doc-book svg { width: 28px; height: 28px; }
.doc-book--blue   { background: #3B6FB6; }
.doc-book--red    { background: #DC3A3A; }
.doc-book--orange { background: var(--color-orange); }
.doc-book--green  { background: #2E9E5B; }
.doc-book--purple { background: #8B5CF6; }
.doc-book--grey   { background: #6B7686; }
.doc-card h3 { font-size: var(--text-base); }
.doc-card p { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: var(--leading-normal); }

@media (max-width: 640px) {
  .carousel__arrow--prev { left: 0; }
  .carousel__arrow--next { right: 0; }
}

/* ============================================================
   PAGE SÉCURITÉ INCENDIE & ÉQUIPEMENTS
   Couleurs par catégorie : décoratives LOCALES (hors palette de marque).
   ============================================================ */

/* Bâtiment interactif — la scène se fond dans la section (image teintée
   au crème du fond, pas de cadre) ; le clic sur un repère zoome vers
   l'équipement (transition cinématique). */

/* Trame « plan technique » : quadrillage discret en anneau autour de la
   scène — il s'estompe avant le bâtiment et avant les bords, pour ne
   jamais dessiner de cadre. */
#batiment { position: relative; }
#batiment::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1; /* au-dessus de l'image (fond crème identique → invisible dessus), sous les repères/cartes */
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 35, 50, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 35, 50, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 55% 42% at 50% 42%, transparent 34%, #000 56%, rgba(0, 0, 0, 0.7) 80%, transparent 97%);
  -webkit-mask-image: radial-gradient(ellipse 55% 42% at 50% 42%, transparent 34%, #000 56%, rgba(0, 0, 0, 0.7) 80%, transparent 97%);
}
#batiment .section__head { position: relative; z-index: 2; }
#batiment .secu-features { position: relative; z-index: 2; }
.building-wrap {
  max-width: 800px;
  margin-inline: auto;
}
.building {
  position: relative;
}
.building__scene {
  position: relative;
  overflow: hidden;
}
.building__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--duration-cinematic) var(--ease-out),
              opacity var(--duration-cinematic) var(--ease-out);
  will-change: transform;
}
.building-wrap.is-zoomed .building__img {
  transform: scale(2.4);
  opacity: 0;
}
.building__detail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.72);
  transition: transform var(--duration-cinematic) var(--ease-out),
              opacity var(--duration-cinematic) var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.building__detail.is-visible { opacity: 1; transform: scale(1); }
.building-wrap.is-zoomed .hotspot { opacity: 0; pointer-events: none; }

/* Légende cliquable sous la scène — nomme les repères et déclenche
   le même zoom que le point correspondant. */
.building-legend {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass-light);
  -webkit-backdrop-filter: var(--blur-glass-light);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.legend-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.legend-chip.is-active {
  background: var(--color-white);
  border-color: var(--cat);
  box-shadow: var(--shadow-md);
}
.legend-chip__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cat);
  flex-shrink: 0;
}

/* Bouton retour vue d'ensemble (état zoomé) */
.building-back {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-glass-light);
  -webkit-backdrop-filter: var(--blur-glass-light);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.building-back:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.building-back[hidden] { display: none; }

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cat, #DC3A3A);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(26, 35, 50, 0.35);
  cursor: pointer;
  z-index: 2;
  transition: transform var(--duration-fast) var(--ease-out),
              opacity var(--duration-slow) var(--ease-out);
}
.hotspot svg { width: 16px; height: 16px; }
.hotspot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--cat, #DC3A3A);
  opacity: 0;
  animation: hotspot-pulse 2.2s ease-out infinite;
}
@keyframes hotspot-pulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}
.hotspot:hover, .hotspot.is-active { transform: translate(-50%, -50%) scale(1.15); z-index: 3; }
.hotspot.is-active { outline: 3px solid rgba(255, 255, 255, 0.65); }
.hotspot--red    { --cat: #DC3A3A; }
.hotspot--green  { --cat: #2E9E5B; }
.hotspot--orange { --cat: var(--color-orange); }
.hotspot--blue   { --cat: #3B6FB6; }

.building-card {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  width: min(290px, 56%);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  z-index: 4;
}
.building-card[hidden] { display: none; }

.building-card__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.building-card__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--cat); color: #fff; display: flex; align-items: center; justify-content: center; }
.building-card__icon svg { width: 20px; height: 20px; }
.building-card__title { flex: 1; font-size: var(--text-base); font-weight: var(--weight-bold); }
.building-card__close { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--color-bg-alt); color: var(--color-ink-soft); font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color var(--duration-fast) var(--ease-out); }
.building-card__close:hover { color: var(--color-ink); }
.building-card p { font-size: var(--text-sm); color: var(--color-ink-soft); margin-bottom: var(--space-3); line-height: var(--leading-normal); }
.building-card .check-list { margin-bottom: var(--space-4); }
.building-card .btn { width: 100%; justify-content: center; }
.building-card--red    { --cat: #DC3A3A; }
.building-card--green  { --cat: #2E9E5B; }
.building-card--orange { --cat: var(--color-orange); }
.building-card--blue   { --cat: #3B6FB6; }

@media (max-width: 768px) {
  .building-cards { position: static; }
  .building-card { position: static; width: auto; margin-top: var(--space-4); box-shadow: var(--shadow-md); }
}
@media (prefers-reduced-motion: reduce) { .hotspot::before { animation: none; } }

/* Rangée d'atouts sécurité */
.secu-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-line);
  list-style: none;
}
.secu-features li { display: flex; flex-direction: column; gap: 2px; }
.secu-features__icon { color: var(--cat, var(--color-orange-deep)); margin-bottom: var(--space-2); }
.secu-features__icon svg { width: 26px; height: 26px; }
.secu-features strong { font-size: var(--text-sm); }
.secu-features span { font-size: var(--text-xs); color: var(--color-ink-soft); }
.secu-features__icon--red    { --cat: #DC3A3A; }
.secu-features__icon--green  { --cat: #2E9E5B; }
.secu-features__icon--orange { --cat: var(--color-orange); }
.secu-features__icon--blue   { --cat: #3B6FB6; }
@media (max-width: 760px) { .secu-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .secu-features { grid-template-columns: 1fr; } }

/* 4 cartes interventions */
.secu-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.secu-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.secu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.secu-card__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-warm);
  color: var(--cat);
}
.secu-card__media svg { width: 48px; height: 48px; opacity: 0.7; }
.secu-card h3 { font-size: var(--text-lg); color: var(--cat); }
.secu-card p { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: var(--leading-normal); flex: 1; }
.secu-card__link { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--cat); transition: gap var(--duration-fast) var(--ease-out); }
.secu-card__link:hover { gap: var(--space-2); }
.secu-card--red    { --cat: #DC3A3A; }
.secu-card--green  { --cat: #2E9E5B; }
.secu-card--orange { --cat: var(--color-orange-deep); }
.secu-card--blue   { --cat: #3B6FB6; }
@media (max-width: 1024px) { .secu-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .secu-cards { grid-template-columns: 1fr; } }

/* ============================================================
   PAGE PILOTAGE & ACCOMPAGNEMENT QHSE (pilotage-qhse.html)
   Up-sell abonnement : veille déléguée + 2 visites/mois.
   Réutilise tokens, boutons, eyebrow, hero--split, cta-band.
   ============================================================ */

/* --- Badges flottants sur le visuel du hero -------------------- */
.pq-badges { position: absolute; inset: 0; pointer-events: none; }
.pq-badge {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 250px;
  padding: var(--space-3) var(--space-4);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.pq-badge__icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-icon);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
}
.pq-badge__icon svg { width: 18px; height: 18px; }
.pq-badge__text strong { display: block; font-size: var(--text-sm); font-weight: var(--weight-bold); margin-bottom: 2px; }
.pq-badge__text span { font-size: var(--text-xs); color: var(--color-ink-soft); line-height: 1.4; }
.pq-badge--tr { top: 6%;  right: -6%; }
.pq-badge--ml { top: 40%; left: -9%; }
.pq-badge--bc { bottom: 16%; left: 14%; }
.pq-badge--br { bottom: 4%; right: -5%; }

/* --- 4 cartes « accompagnement complet » ----------------------- */
.pq-care-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.pq-care {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.pq-care:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pq-care__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-icon);
  border-radius: var(--radius-md);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
  margin-bottom: var(--space-5);
}
.pq-care__icon svg { width: 24px; height: 24px; }
.pq-care h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.pq-care p { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: var(--leading-relaxed); margin-bottom: var(--space-5); flex: 1; }
.pq-care__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line-glass);
}
.pq-care__media img { width: 100%; height: 100%; object-fit: cover; }

/* --- Panneau veille réglementaire ------------------------------ */
.pq-veille {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-12);
  background: var(--color-white);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.pq-veille__shield {
  position: absolute;
  top: 50%; right: var(--space-8);
  transform: translateY(-50%);
  color: var(--color-orange);
  opacity: 0.10;
  pointer-events: none;
}
.pq-veille__shield svg { width: 180px; height: 180px; }
.pq-veille__text .eyebrow { margin-bottom: var(--space-5); }
.pq-veille__text h2 { margin-bottom: var(--space-4); }
.pq-veille__text p { font-size: var(--text-md); color: var(--color-ink-soft); max-width: 38ch; }

.pq-veille__feed { position: relative; z-index: var(--z-content); }
.pq-updates { display: flex; flex-direction: column; gap: var(--space-3); }
.pq-update {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pq-update__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-warm);
  border-radius: var(--radius-sm);
  color: var(--color-orange-deep);
}
.pq-update__icon svg { width: 20px; height: 20px; }
.pq-update__body { flex: 1; font-size: var(--text-sm); font-weight: var(--weight-medium); }
.pq-update__date { flex-shrink: 0; font-size: var(--text-xs); color: var(--color-ink-soft); font-family: var(--font-mono); }
.pq-veille__note {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}
.pq-veille__note-check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-success);
  border-radius: 50%;
  color: var(--color-white);
}
.pq-veille__note-check svg { width: 13px; height: 13px; }

/* --- Bande de réassurance (4 atouts) --------------------------- */
.pq-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.pq-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}
.pq-strip__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-md);
  color: var(--color-orange-deep);
  box-shadow: var(--shadow-sm);
}
.pq-strip__icon svg { width: 20px; height: 20px; }

/* --- CTA finale avec visuel ------------------------------------ */
.cta-band--media { align-items: center; }
.cta-band--media .cta-band__text { flex: 1; }
.cta-band--media .cta-band__actions { margin-top: var(--space-6); }
.cta-band__visual {
  flex-shrink: 0;
  width: 320px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-ink);
}
.cta-band__visual img { width: 100%; height: 100%; object-fit: cover; }

/* --- Responsive ------------------------------------------------ */
@media (max-width: 1024px) {
  .pq-care-grid { grid-template-columns: 1fr 1fr; }
  .pq-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .pq-veille { grid-template-columns: 1fr; gap: var(--space-8); padding: var(--space-8); }
  .pq-veille__shield { display: none; }
  .pq-badges { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-4); pointer-events: auto; }
  .pq-badge { position: static; max-width: none; }
  .cta-band--media { flex-direction: column; align-items: flex-start; }
  .cta-band__visual { width: 100%; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .pq-care-grid { grid-template-columns: 1fr; }
  .pq-strip { grid-template-columns: 1fr; }
  .pq-badges { grid-template-columns: 1fr; }
  .pq-update { flex-wrap: wrap; }
  .pq-update__date { width: 100%; padding-left: 52px; }
}

/* ============================================================
   PAGE ERGONOMIE & PRÉVENTION (ergonomie-prevention.html)
   Scène interactive « Avant / Après » + démarche 5 étapes.
   Réutilise hotspots, building-card, funding, cta-band, tokens.
   ============================================================ */

.ergo-hero {
  padding-block: var(--space-16) var(--space-20);
  /* aligné à gauche et en haut comme les autres pages (pas le hero centré) */
  text-align: left;
  display: block;
  min-height: 0;
}

/* intro (titre + sous-titre) au-dessus de la scène */
.ergo-intro { max-width: 760px; margin-bottom: var(--space-10); }
.ergo-intro .eyebrow { margin-bottom: var(--space-5); }
.ergo-intro h1 { margin-bottom: var(--space-4); }
.ergo-intro__sub { font-size: var(--text-md); color: var(--color-ink-soft); max-width: 54ch; }

/* --- Scène interactive ----------------------------------------- */
.ergo-scene {
  position: relative;
  max-width: 86%;
  margin-inline: auto;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .ergo-scene { max-width: none; }
}
/* hotspots au-dessus de l'image, nets et cliquables */
.ergo-scene .hotspot { z-index: 9; }
.ergo-panel { position: relative; }
.ergo-panel[hidden] { display: none; }
.ergo-scene__img { display: block; width: 100%; height: auto; }

/* bascule Avant / Après */
.ergo-toggle {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  z-index: 10;
}
.ergo-toggle__btn {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-ink-soft);
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.ergo-toggle__btn:hover { color: var(--color-ink); }
.ergo-toggle__btn.is-active { background: var(--color-orange); color: var(--color-ink); box-shadow: var(--shadow-orange); }
.ergo-toggle__btn[data-ba-view="apres"].is-active { background: var(--color-ink); color: var(--color-white); box-shadow: var(--shadow-ink); }

.ergo-scene__hint {
  position: absolute;
  left: clamp(var(--space-6), 4vw, var(--space-12));
  bottom: var(--space-6);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-line-glass);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
}
.ergo-scene__hint[hidden] { display: none; }
.ergo-scene__hint-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-orange);
  color: var(--color-ink);
  border-radius: 50%;
}
.ergo-scene__hint-icon svg { width: 16px; height: 16px; }

/* panneau Après (visuel à venir) */
.ergo-panel--apres { background: var(--color-bg-alt); }
.ergo-apres {
  aspect-ratio: 1672 / 941;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-8);
  background: radial-gradient(circle at 70% 50%, rgba(var(--c-orange-rgb), 0.10), transparent 60%), var(--color-bg-alt);
}
.ergo-apres__icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-icon);
  color: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-orange);
  margin-bottom: var(--space-2);
}
.ergo-apres__icon svg { width: 32px; height: 32px; }
.ergo-apres strong { font-size: var(--text-xl); }
.ergo-apres p { font-size: var(--text-sm); color: var(--color-ink-soft); max-width: 42ch; }
.ergo-apres__tag {
  margin-top: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--glass-bg);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-orange-deep);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* carte détail enrichie (risque / conséquences / amélioration) */
.ergo-card { width: min(330px, 64%); z-index: 9; }
.ergo-card__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-ink-soft);
  margin-bottom: var(--space-1);
}
.ergo-card__label--risk { color: var(--cat); display: inline-block; margin-bottom: var(--space-1); }
.ergo-card__label--good { color: var(--color-success); }
.ergo-card__risk { margin-bottom: var(--space-3); }
.ergo-card__list { margin-bottom: var(--space-3); display: flex; flex-direction: column; gap: 4px; }
.ergo-card__list--bad li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}
.ergo-card__list--bad li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cat, #DC3A3A);
}
.ergo-card__cta { width: 100%; justify-content: center; margin-top: var(--space-1); }

/* --- Démarche 5 étapes ----------------------------------------- */
.ergo-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  list-style: none;
}
.ergo-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed var(--color-line);
  z-index: 0;
}
.ergo-step { position: relative; z-index: 1; text-align: center; }
.ergo-step__icon {
  width: 60px; height: 60px;
  margin: 0 auto var(--space-4);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-white);
  border: 2px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-orange-deep);
  box-shadow: var(--shadow-sm);
}
.ergo-step__icon svg { width: 26px; height: 26px; }
.ergo-step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  margin-bottom: var(--space-2);
  background: var(--color-orange);
  color: var(--color-ink);
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}
.ergo-step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.ergo-step p { font-size: var(--text-sm); color: var(--color-ink-soft); line-height: var(--leading-normal); max-width: 22ch; margin-inline: auto; }

/* --- Aside CARSAT ---------------------------------------------- */
.ergo-funding-aside { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }

/* --- Bande d'atouts (sur fond sombre) -------------------------- */
.ergo-features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
}
.ergo-features__item { display: flex; flex-direction: column; gap: 2px; }
.ergo-features__icon { color: var(--color-orange); margin-bottom: var(--space-2); }
.ergo-features__icon svg { width: 26px; height: 26px; }
.ergo-features strong { font-size: var(--text-sm); color: var(--color-white); }
.ergo-features span { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.6); }

/* --- Responsive ------------------------------------------------ */
@media (max-width: 1024px) {
  .ergo-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .ergo-funding-aside { align-items: center; text-align: left; }
}
@media (max-width: 860px) {
  .ergo-steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .ergo-steps::before { display: none; }
}
@media (max-width: 768px) {
  .ergo-scene { overflow: visible; border: none; box-shadow: none; }
  .ergo-scene__img { border-radius: var(--radius-2xl); border: 1px solid var(--color-line); }
  .ergo-toggle { top: auto; bottom: var(--space-4); right: var(--space-4); }
  .ergo-scene__hint { position: static; margin-bottom: var(--space-4); }
  .ergo-card { position: static; width: auto; margin-top: var(--space-4); }
}
@media (max-width: 540px) {
  .ergo-steps { grid-template-columns: 1fr; }
  .ergo-features { grid-template-columns: 1fr; }
}

/* ============================================================
   DOCUMENTS OBLIGATOIRES — refonte (hero + 3 familles + bandeau)
   ============================================================ */

/* Cadre en attente du visuel du hero (image fournie ultérieurement) */
.duerp-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-3xl);
  border: 1.5px dashed var(--color-line);
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--color-ink-soft);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.duerp-frame svg { width: 40px; height: 40px; opacity: 0.55; }

/* Kicker de section (texte nu, pas de pilule) */
.docs-kicker {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange-deep);
  margin-bottom: var(--space-3);
}

/* 3 familles de documents */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.docs-col {
  scroll-margin-top: 96px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.docs-col__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-line);
}
.docs-col__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c);
}
.docs-col__icon svg { width: 26px; height: 26px; }
.docs-col__head h3 { font-size: var(--text-lg); line-height: var(--leading-snug); margin-bottom: 2px; }
.docs-col__tag { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--c); }
.docs-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.docs-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-ink);
  line-height: var(--leading-snug);
}
.docs-list li svg { width: 15px; height: 15px; color: var(--c); flex-shrink: 0; opacity: 0.8; }
.docs-list__more { color: var(--color-ink-soft); font-weight: var(--weight-bold); }

/* Bandeau qualité + photo */
.docs-band {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.docs-band__body { padding: var(--space-8); }
.docs-band__body h3 { font-size: var(--text-xl); margin-bottom: var(--space-6); }
.docs-feats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}
.docs-feats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--color-ink-soft);
}
.docs-feats strong { color: var(--color-ink); font-weight: var(--weight-semibold); margin-top: var(--space-2); }
.docs-feat__ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--c-orange-rgb), 0.12);
  color: var(--color-orange-deep);
}
.docs-feat__ic svg { width: 21px; height: 21px; }
.docs-band__img { margin: 0; min-height: 240px; }
.docs-band__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1024px) {
  .docs-grid { grid-template-columns: 1fr; }
  .docs-band { grid-template-columns: 1fr; }
  .docs-band__img { order: -1; min-height: 0; aspect-ratio: 16 / 7; }
}
@media (max-width: 640px) {
  .docs-band__body { padding: var(--space-6); }
  .docs-feats { grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-3); }
}

/* Démarche 4 étapes — grille statique (sans flèches / points / stepper) */
.demarche-steps { position: relative; }
.step-cards--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.step-cards--grid .step-card { flex-basis: auto; }
@media (max-width: 900px) {
  .step-cards--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .step-cards--grid { grid-template-columns: 1fr; }
}

/* Visuel du hero DUERP (image fournie) */
.duerp-hero-img {
  margin: 0;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
}
.duerp-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

