/* ==========================================================================
   Gesti-Fiduciaire — site vitrine (fiduciaire.gesti-pro.com)
   Conversion statique de la maquette « Modernist » : aucune dépendance externe,
   toutes les URL sont absolues depuis la racine (/site/…).
   ========================================================================== */

/* --- Police Archivo, hébergée localement (variable, 100 → 900) ------------ */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/site/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/site/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Jetons de couleur (reprise exacte de la maquette) -------------------- */
:root {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --text: #021c3b;
  --divider: #021c3b;

  --accent: #021c3b;
  --accent-100: #e6effc;
  --accent-200: #caddf6;
  --accent-300: #a0c0eb;
  --accent-600: #0c335f;
  --accent-700: #021c3b;
  --accent-900: #000b1f;

  --accent-2: #fcbe00;
  --accent-2-300: #ffd866;
  --accent-2-700: #b37903;

  --neutral-200: #eae7e7;
  --neutral-300: #d7d3d3;

  --texte-80: #2e4258;
  --texte-78: #334663;
  --texte-72: #3f5168;
  --texte-68: #475872;

  --police-titre: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --police-texte: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --poids-titre: 800;
  --ombre-md: 0 3px 10px rgba(45, 43, 43, 0.16);
  /* Mise en page pleine largeur : le contenu occupe tout l'écran, avec des marges
     latérales qui grandissent avec la fenêtre. Les blocs de texte gardent leur
     largeur de lecture (52ch à 62ch), pour que les lignes restent lisibles. */
  --gouttiere: clamp(20px, 4.5vw, 104px);
  --large: 100%;
}

/* --- Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--police-texte);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: var(--poids-titre);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
svg { display: block; }

a {
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-600); }

::selection {
  background: var(--accent-2-300);
  color: var(--text);
}

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent-2-700);
  outline-offset: 2px;
}

.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 18px;
  font-weight: 600;
}
.lien-evitement:focus {
  left: 8px;
  top: 8px;
  color: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hr {
  height: 2px;
  border: 0;
  margin: 0;
  background: var(--divider);
}

.kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 16px;
}

.coque {
  max-width: var(--large);
  margin: 0 auto;
  padding-inline: var(--gouttiere);
}

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--police-titre);
  font-weight: var(--poids-titre);
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 10px 15px;
  min-height: 44px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-600); color: var(--bg); }
.btn-primary:active { background: var(--accent-900); }
.btn-secondary { border-color: var(--divider); }
.btn-secondary:hover { background: rgba(2, 28, 59, 0.07); }
.btn-secondary:active { background: rgba(2, 28, 59, 0.14); }
.btn-jaune {
  background: var(--accent-2);
  color: var(--accent-900);
  border-color: var(--accent-2);
}
.btn-jaune:hover { background: var(--accent-2-300); color: var(--accent-900); }
.btn-icone {
  width: 44px;
  height: 44px;
  padding: 0;
  flex: none;
}
.btn-large {
  min-height: 52px;
  padding-inline: 20px;
  font-size: 15px;
}
.btn-fleche {
  min-width: min(100%, 260px);
  justify-content: space-between;
  gap: 24px;
}

/* Bouton « Connecter l'ERP » : liseré jaune pour le détacher du bouton de démo. */
.btn-erp {
  border-color: var(--divider);
  box-shadow: inset 0 -3px 0 var(--accent-2);
  white-space: nowrap;
}
.btn-erp:hover { background: rgba(2, 28, 59, 0.07); }

.etiquette {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 4px 10px;
}
.etiquette-contour {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.etiquette-jaune {
  background: var(--accent-2);
  color: var(--accent-900);
}
.etiquette-bleu {
  background: var(--accent-100);
  color: var(--accent-900);
}

/* --- Barre de progression de lecture -------------------------------------- */
.progression {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent-2);
  z-index: 100;
  pointer-events: none;
}

/* --- En-tête -------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 28px);
  padding: 12px var(--gouttiere);
  border-bottom: 2px solid var(--divider);
}

.nav-marque {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-height: 44px;
  font-family: var(--police-titre);
  font-weight: var(--poids-titre);
  font-size: clamp(16px, 2.4vw, 18px);
  white-space: nowrap;
}
.nav-marque img { width: 28px; height: auto; flex: none; }

.nav-liens {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
  font-size: 14px;
}
.nav-liens a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.entete .btn { min-height: 44px; }

.nav-bascule { display: none; }

.menu-mobile {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 2px solid var(--divider);
  display: flex;
  flex-direction: column;
  padding: 4px var(--gouttiere) 20px;
  box-shadow: var(--ombre-md);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile a {
  padding: 14px 0;
  border-bottom: 1px solid var(--neutral-200);
  font-size: 17px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.menu-mobile .btn {
  margin-top: 16px;
  border-bottom: 0;
  justify-content: center;
  min-height: 50px;
}
.menu-mobile .btn + .btn { margin-top: 10px; }

@media (max-width: 1079px) {
  .nav-liens { display: none; }
  .nav-bascule { display: inline-flex; }
}
@media (max-width: 619px) {
  .nav .btn-nav-demo,
  .nav .btn-erp { display: none; }
}

/* --- Zone principale ------------------------------------------------------ */
.principal {
  max-width: var(--large);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

.section { padding: clamp(56px, 8vw, 112px) 0; }
.section[id] { scroll-margin-top: 80px; }

.entete-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 72px;
  align-items: end;
  margin-bottom: 48px;
}
.titre-section {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.intro-section {
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
  color: var(--texte-78);
}

/* --- Héros ---------------------------------------------------------------- */
.heros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 7vw, 104px) 0 clamp(48px, 6vw, 88px);
}
.heros-texte {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}
.heros-etiquettes { display: flex; gap: 8px; flex-wrap: wrap; }
.heros h1 {
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.heros h1 span { display: block; }
.heros h1 .souligne {
  display: inline;
  color: var(--accent);
  box-shadow: inset 0 -0.2em 0 var(--accent-2);
}
.heros-accroche {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 56ch;
  color: var(--texte-80);
}
.heros-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.figure-scene {
  border: 2px solid var(--divider);
  background: var(--surface);
  position: relative;
  min-width: 0;
}
.scene-barre {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 2px solid var(--divider);
}
.scene-titre {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-700);
  font-variant-numeric: tabular-nums;
}
.scene-zone {
  position: relative;
  width: 100%;
  height: clamp(300px, 42vw, 540px);
  overflow: hidden;
  touch-action: pan-y;
}
.scene-zone canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
@media (hover: hover) and (pointer: fine) {
  .scene-zone { cursor: crosshair; }
}
.scene-bulle {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
  border-left: 4px solid var(--accent-2);
}
.scene-bulle strong { display: block; font-size: 13px; }
.scene-pied {
  display: flex;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 2px solid var(--divider);
  font-size: 13px;
  color: var(--texte-72);
}
.scene-legende { display: flex; gap: 16px; flex-wrap: wrap; }
.scene-legende span { display: flex; align-items: center; gap: 8px; }
.pastille { width: 10px; height: 10px; flex: none; }
.pastille-jaune { background: var(--accent-2); outline: 1px solid var(--text); }
.pastille-bleu { background: var(--accent); }

/* Sélecteur segmenté (modes de la scène) */
.segmente {
  display: inline-flex;
  border: 1px solid var(--divider);
}
.segmente button {
  border: 0;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  min-height: 44px;
  transition: background 0.2s, color 0.2s;
}
.segmente button + button { border-left: 1px solid var(--divider); }
.segmente button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
.segmente button:not([aria-pressed="true"]):hover { background: rgba(2, 28, 59, 0.07); }

/* --- Chiffres clés -------------------------------------------------------- */
.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
  padding: clamp(40px, 5vw, 64px) 0;
}
.chiffre-valeur {
  font-family: var(--police-titre);
  font-weight: var(--poids-titre);
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  color: var(--accent);
}
.chiffre-libelle {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 14px;
  color: var(--texte-72);
}

/* --- Grilles encadrées (modules, niveaux, sécurité) ----------------------- */
.grille-encadree {
  display: grid;
  gap: 2px;
  background: var(--divider);
  border: 2px solid var(--divider);
}
.grille-modules { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grille-niveaux { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 64px; }
.grille-securite { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.carte-module {
  background: var(--bg);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  transition: background 0.25s;
}
.carte-module:hover { background: var(--surface); }
.carte-module-entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.carte-module-num {
  font-family: var(--police-titre);
  font-weight: var(--poids-titre);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.puces-paire { display: flex; gap: 2px; }
.puces-paire span { width: 10px; height: 10px; }
.puces-paire span:first-child { background: var(--accent); }
.puces-paire span:last-child { background: var(--accent-2); }
.carte-module h3 {
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.carte-module p {
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
  color: var(--texte-78);
}
.liste-puces {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--neutral-300);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
}
.liste-puces li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.liste-puces li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex: none;
  transform: translateY(-2px);
}

.carte-niveau {
  background: var(--bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.carte-niveau .niveau-num {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-700);
  font-variant-numeric: tabular-nums;
}
.carte-niveau strong {
  font-family: var(--police-titre);
  font-weight: var(--poids-titre);
  font-size: 22px;
}
.carte-niveau span.texte {
  font-size: 14px;
  line-height: 1.55;
  color: var(--texte-78);
}
.niveau-jauge {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  background: var(--accent);
}

.carte-securite {
  background: var(--bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.carte-securite h3 { font-size: 20px; }
.carte-securite p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--texte-78);
}

/* --- Multisociété : points + panneau ------------------------------------- */
.multi-colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px clamp(32px, 5vw, 80px);
  align-items: start;
}
.multi-points { display: flex; flex-direction: column; min-width: 0; }
.multi-point {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 2px solid var(--divider);
}
.multi-point > span {
  font-family: var(--police-titre);
  font-weight: var(--poids-titre);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.multi-point h3 { font-size: 20px; margin-bottom: 8px; }
.multi-point p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--texte-78);
}

.panneau {
  border: 2px solid var(--divider);
  background: var(--surface);
  box-shadow: var(--ombre-md);
  min-width: 0;
}
.panneau-entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 2px solid var(--divider);
  background: var(--accent);
  color: var(--bg);
}
.panneau-entete strong {
  font-family: var(--police-titre);
  font-weight: var(--poids-titre);
  font-size: 14px;
}
.panneau-corps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.panneau-liste {
  border-right: 2px solid var(--divider);
  display: flex;
  flex-direction: column;
}
.panneau-liste > .panneau-titre-liste {
  padding: 12px 16px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-68);
}
.societe {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  border: 0;
  border-left: 4px solid transparent;
  background: transparent;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
  color: var(--text);
  border-bottom: 1px solid var(--neutral-200);
  min-height: 44px;
  transition: background 0.2s, border-color 0.2s;
}
.societe:hover { background: var(--accent-100); }
.societe[aria-selected="true"] {
  border-left-color: var(--accent);
  background: var(--accent-100);
}
.societe-nom { font-size: 14px; font-weight: 600; }
.societe-meta { font-size: 12px; color: var(--texte-68); }

.panneau-detail {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.panneau-detail-entete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.panneau-exercice {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-68);
}
.panneau-detail h4 { font-size: 20px; margin-top: 4px; }
.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: var(--divider);
  border: 2px solid var(--divider);
}
.kpi { background: var(--bg); padding: 12px; }
.kpi span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texte-68);
}
.kpi strong {
  display: block;
  font-family: var(--police-titre);
  font-weight: var(--poids-titre);
  font-size: 20px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.jauges { display: flex; flex-direction: column; gap: 12px; }
.jauge-entete {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.jauge-entete span:last-child { font-variant-numeric: tabular-nums; }
.jauge-fond { height: 8px; background: var(--neutral-200); }
.jauge-fond > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-2);
  transition: width 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.jauge-fond > span.pleine { background: var(--accent); }
.panneau-echeance {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--neutral-300);
  font-size: 13px;
}

@media (max-width: 560px) {
  .panneau-liste { border-right: 0; border-bottom: 2px solid var(--divider); }
}

/* --- Tableau comparatif --------------------------------------------------- */
.comparatif { margin-top: 80px; }
.comparatif h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.tableau-cadre {
  overflow-x: auto;
  border: 2px solid var(--divider);
}
table.comparatif-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
table.comparatif-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--divider);
  color: var(--texte-68);
}
table.comparatif-table th:nth-child(1) { width: 28%; }
table.comparatif-table th:nth-child(2) { width: 32%; }
table.comparatif-table th:nth-child(3) {
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
}
table.comparatif-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
table.comparatif-table th.critere {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
}
table.comparatif-table td:nth-child(2) { color: var(--texte-68); }
table.comparatif-table td:last-child { background: var(--accent-100); }
.coche {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--accent-900);
  font-weight: 500;
}
.coche svg { flex: none; margin-top: 1px; }

/* --- Processus ------------------------------------------------------------ */
.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 2px;
  background: var(--divider);
  border: 2px solid var(--divider);
}
.etape {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  border: 0;
  padding: 22px 20px 26px;
  font: inherit;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  min-height: 44px;
  transition: background 0.3s, color 0.3s;
}
.etape:hover { background: var(--surface); }
.etape-num,
.etape-titre {
  font-family: var(--police-titre);
  font-weight: var(--poids-titre);
}
.etape-num { font-size: 14px; font-variant-numeric: tabular-nums; }
.etape-titre { font-size: 19px; }
.etape::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 5px;
  width: 0;
  background: var(--accent-2);
  transition: width 0.5s;
}
.etape[aria-selected="true"] {
  background: var(--accent);
  color: var(--bg);
}
.etape.faite::after,
.etape[aria-selected="true"]::after { width: 100%; }

.etape-panneau {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 32px clamp(32px, 5vw, 80px);
  padding: 40px 0 0;
}
.etape-panneau h3 {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.etape-panneau > div > p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 52ch;
  color: var(--texte-78);
}
.etape-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.etape-liste li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 2px solid var(--divider);
  font-size: 15.5px;
  line-height: 1.5;
}
.etape-liste svg { margin-top: 2px; }

/* --- FAQ ------------------------------------------------------------------ */
.faq-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 32px clamp(32px, 5vw, 80px);
  align-items: start;
}
.faq-liste { border-bottom: 2px solid var(--divider); }
.faq-element { border-top: 2px solid var(--divider); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 22px 0;
  font: inherit;
  font-family: var(--police-titre);
  font-weight: var(--poids-titre);
  font-size: clamp(17px, 1.6vw, 20px);
  cursor: pointer;
  color: var(--text);
  min-height: 44px;
}
.faq-question:hover { color: var(--accent-600); }
.faq-signe {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text);
  transition: background 0.25s, color 0.25s, transform 0.35s;
}
.faq-question[aria-expanded="true"] .faq-signe {
  background: var(--accent);
  color: var(--bg);
  transform: rotate(45deg);
}
.faq-reponse { display: none; }
.faq-reponse.ouverte { display: block; }
.faq-reponse p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 62ch;
  color: var(--texte-80);
}
.faq-titre { margin-bottom: 24px; }

/* --- Bandeau final -------------------------------------------------------- */
.bandeau-final {
  background: var(--accent);
  color: var(--bg);
}
.bandeau-final .coque {
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 9vw, 128px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
  align-items: end;
}
.bandeau-final h2 {
  font-size: clamp(32px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.bandeau-final h2 span { display: block; }
.bandeau-final h2 .jaune { color: var(--accent-2); }
.bandeau-final-droite {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.bandeau-final p {
  font-size: 17px;
  line-height: 1.6;
  max-width: 44ch;
  color: var(--bg);
}
.bandeau-final .btn-jaune {
  min-height: 56px;
  padding-inline: 22px;
  min-width: min(100%, 300px);
  justify-content: space-between;
  gap: 24px;
  font-size: 16px;
}

/* --- Pied de page --------------------------------------------------------- */
.pied {
  max-width: var(--large);
  margin: 0 auto;
  padding: 32px var(--gouttiere) 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--texte-72);
}
.pied-marque {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pied-marque img { width: 22px; height: auto; }
.pied-marque strong { color: var(--text); }
.pied-marque .tech { color: var(--accent-2-700); }
.pied-liens {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.pied-liens a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
}
.pied-liens a.btn { text-decoration: none; }
.pied .btn { font-size: 13px; min-height: 44px; }

/* --- Apparitions ---------------------------------------------------------- */
/* Masqué seulement si JavaScript est actif (classe « js » posée dans <head>). */
.js [data-apparition] {
  opacity: 0;
  transform: translateY(28px);
}
.js [data-apparition].vu {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--retard, 0ms);
}

/* --- Mouvement réduit ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-apparition] { opacity: 1; transform: none; }
}

/* --- Impression ----------------------------------------------------------- */
@media print {
  .entete, .progression, .scene-zone, .bandeau-final .btn { display: none; }
  body { background: #fff; }
}
