/* ==========================================================================
   DoorFi, feuille de style unique
   Systeme de design releve sur la maquette du prototype (captures du 29/07)
   et confirme par le logo officiel.
   Aucune dependance externe, aucune police distante, aucun traceur.
   ========================================================================== */

:root {
  /* Marine, fonds sombres et cartes */
  --marine-900: #0B2545;
  --marine-800: #103A66;
  --marine-700: #132A5E;

  /* Bleu d'action, CTA, labels de section, onglets actifs */
  --bleu-600: #1568F0;
  --bleu-500: #1B8CE3;
  --bleu-100: #E8F1FD;
  --bleu-050: #F1F7FD;

  /* Texte */
  --encre: #0F1B2A;
  --gris-600: #4A5C72;
  --gris-500: #6B7C93;
  --gris-400: #8FA0B4;

  /* Fonds et filets */
  --blanc: #FFFFFF;
  --fond: #F7F9FC;
  --filet: #E3E9F0;

  /* Etats */
  --vert-600: #1B7A4B;
  --vert-050: #EAF6F0;
  --ambre-050: #FFF8E8;
  --ambre-600: #8A6410;

  /* Rythme */
  --largeur: 1100px;
  --radius: 3px;
  --radius-lg: 6px;

  /* Une seule pile systeme : rendu propre partout, zero octet a telecharger,
     zero appel a un CDN de polices. */
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
           "Liberation Sans", Ubuntu, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, monospace;
}

/* --------------------------------------------------------------- reset --- */

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

/* L'attribut hidden doit l'emporter sur les display des composants,
   sans quoi un bouton masque en JS reste visible. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bleu-600); }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--marine-900);
  font-weight: 700;
}

p { margin: 0 0 1rem 0; }

/* Focus visible et net, la demo doit etre entierement navigable au clavier. */
:focus-visible {
  outline: 3px solid var(--bleu-500);
  outline-offset: 2px;
  border-radius: 2px;
}

.saut-contenu {
  position: absolute; left: -9999px; top: 0;
  background: var(--marine-900); color: #fff;
  padding: 0.7rem 1.1rem; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.saut-contenu:focus { left: 0; }

/* ------------------------------------------------------------ structure --- */

.enveloppe {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4.5rem 0; }
.section--fond { background: var(--fond); }
.section--marine { background: var(--marine-900); color: #fff; }
.section--marine h2, .section--marine h3 { color: #fff; }

/* ------------------------------------------------ bandeau demonstration --- */
/* Obligatoire sur toutes les pages, non masquable. */

.bandeau-demo {
  background: var(--marine-900);
  color: #DCE8F5;
  font-size: 0.795rem;
  line-height: 1.45;
  text-align: center;
  padding: 0.62rem 1.5rem;
  border-bottom: 2px solid var(--bleu-600);
}
.bandeau-demo strong { color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- entete --- */

.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--filet);
}

.entete__interieur {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: 112px;
}

.marque { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
/* 84 px, le double de la taille precedente. L'en-tete suit a 112 px pour
   garder une respiration egale au dessus et en dessous du logo. */
.marque img { height: 84px; width: auto; }
.marque__secours {
  font-size: 1.22rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--marine-900);
}
.marque__secours span { color: var(--bleu-600); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--gris-600); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--marine-900); }
.nav a[aria-current="page"] { font-weight: 600; }
/* Le bouton d'appel dans la navigation garde sa couleur propre : sans ceci,
   la regle .nav a l'emporte en specificite et le texte devient illisible. */
.nav a.bouton--primaire, .nav a.bouton--primaire:hover { color: #fff; }
.nav a.bouton--clair { color: var(--marine-900); }

.nav__bascule {
  display: none; background: none; border: 1px solid var(--filet);
  border-radius: var(--radius); padding: 0.45rem 0.6rem; cursor: pointer;
  color: var(--marine-900); font-size: 1rem; line-height: 1;
}

/* --------------------------------------------------------------- boutons --- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.82rem 1.5rem;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.bouton--primaire { background: var(--bleu-600); color: #fff; }
.bouton--primaire:hover { background: #0F55CC; }
.bouton--secondaire {
  background: transparent; color: var(--marine-900); border-color: #C6D4E3;
}
.bouton--secondaire:hover { border-color: var(--marine-900); background: var(--bleu-050); }
.bouton--clair { background: #fff; color: var(--marine-900); }
.bouton--clair:hover { background: #E9F0F9; }
.bouton--bloc { width: 100%; }

/* ----------------------------------------------------- labels et cartes --- */

.label-section {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bleu-500);
  margin-bottom: 0.5rem;
}
.label-section--gris { color: var(--gris-500); }

.carte {
  background: #fff;
  border: 1px solid var(--filet);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  padding: 0.22rem 0.6rem; border-radius: 2px;
  background: var(--bleu-100); color: var(--marine-800);
}
.badge--actif { background: var(--vert-050); color: var(--vert-600); }
.badge--clair { background: rgba(255,255,255,0.14); color: #fff; }

/* --------------------------------------------------------------- tableau --- */

.tableau { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.tableau th {
  text-align: left;
  font-size: 0.71rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gris-500);
  padding: 0 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--filet);
}
.tableau td {
  padding: 0.9rem 0.75rem 0.9rem 0;
  border-bottom: 1px solid var(--filet);
  vertical-align: middle;
}
.tableau tr:last-child td { border-bottom: none; }
.tableau .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tableau th.num { text-align: right; }

/* ------------------------------------------------------------------ hero --- */

.hero {
  background: linear-gradient(118deg, var(--marine-900) 0%, var(--marine-800) 58%, #14508F 100%);
  color: #fff;
  padding: 5.5rem 0 5rem 0;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.15rem, 5.2vw, 3.5rem);
  letter-spacing: -0.032em;
  margin-bottom: 1.3rem;
  max-width: 17ch;
}
.hero__accroche {
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  color: #C3D8EE;
  max-width: 56ch;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__note {
  margin: 1.9rem 0 0 0; font-size: 0.85rem; color: #92B2D2;
}

/* ------------------------------------------------------------- grilles --- */

.grille { display: grid; gap: 1.5rem; }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }

.titre-section {
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  margin-bottom: 0.8rem;
}
.chapeau {
  font-size: 1.03rem; color: var(--gris-600);
  max-width: 62ch; margin-bottom: 2.6rem;
}

/* ------------------------------------------------------------- etapes --- */

.etape { display: flex; gap: 1.1rem; align-items: flex-start; }
.etape__num {
  flex: none;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--bleu-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 700;
}
.etape__titre { font-size: 1.03rem; margin-bottom: 0.35rem; }
.etape p { font-size: 0.93rem; color: var(--gris-600); margin: 0; }

.section--marine .etape__titre { color: #fff; }
.section--marine .etape p { color: #B9CFE6; }
.section--marine .carte {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
}

/* --------------------------------------------------------- illustration --- */

.illustration {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--filet);
  background: var(--fond);
}
.section--marine .illustration { border-color: rgba(255,255,255,0.14); }

/* -------------------------------------------------------------- encarts --- */

.encart {
  border-left: 3px solid var(--bleu-600);
  background: var(--bleu-050);
  padding: 1.1rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.encart p:last-child { margin-bottom: 0; }
.encart--attention {
  border-left-color: #C99A17; background: var(--ambre-050);
}

/* ------------------------------------------------------------ prose --- */

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.4rem; margin: 2.6rem 0 0.9rem 0; }
.prose h3 { font-size: 1.08rem; margin: 1.9rem 0 0.6rem 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1rem 0; }
.prose li { margin-bottom: 0.45rem; }
.prose dt { font-weight: 600; color: var(--marine-900); margin-top: 1.1rem; }
.prose dd { margin: 0.25rem 0 0 0; color: var(--gris-600); }

/* --------------------------------------------------------------- footer --- */

.pied {
  background: var(--marine-900); color: #A8C2DC;
  padding: 3.2rem 0 2rem 0; font-size: 0.9rem; margin-top: 0;
}
.pied a { color: #DCE8F5; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied__haut {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.pied__marque { max-width: 34ch; }
.pied__marque .nom {
  font-size: 1.15rem; font-weight: 800; color: #fff;
  letter-spacing: -0.03em; margin-bottom: 0.4rem;
}
.pied__liens { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.pied__liens ul { list-style: none; margin: 0; padding: 0; }
.pied__liens li { margin-bottom: 0.5rem; }
.pied__titre {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #7FA3C6; margin-bottom: 0.8rem; font-weight: 600;
}
.pied__bas {
  padding-top: 1.6rem; font-size: 0.82rem; color: #8AAAC9;
}

/* ================================================================ DEMO === */

.demo-cadre { background: var(--fond); min-height: 100vh; }

/* Fil d'Ariane du parcours */
.fil {
  background: #fff; border-bottom: 1px solid var(--filet);
  position: sticky; top: 0; z-index: 50;
}
.fil__interieur {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 0; flex-wrap: wrap;
}
/* Dans le parcours, le logo reste plus mesure : le fil d'Ariane doit tenir
   sur une ligne et laisser la place aux cinq etapes. */
.fil .marque img { height: 52px; }
.fil__etapes { display: flex; gap: 0.5rem; flex-wrap: wrap; flex: 1; }
.fil__etape {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; color: var(--gris-400);
  padding: 0.3rem 0.7rem 0.3rem 0.35rem;
  border-radius: 20px; border: 1px solid transparent;
  background: none;
  font-family: inherit; cursor: default;
}
.fil__etape .pastille {
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--filet); color: var(--gris-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; flex: none;
}
.fil__etape[data-etat="faite"] { color: var(--gris-600); cursor: pointer; }
.fil__etape[data-etat="faite"] .pastille { background: var(--bleu-100); color: var(--marine-800); }
.fil__etape[data-etat="courante"] {
  color: var(--marine-900); font-weight: 600;
  background: var(--bleu-050); border-color: #C9DDF7;
}
.fil__etape[data-etat="courante"] .pastille { background: var(--bleu-600); color: #fff; }

.ecran { display: none; }
.ecran[data-actif="true"] { display: block; }

/* Ecran 1, connexion */
.connexion { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 116px); }
.connexion__gauche {
  background: linear-gradient(150deg, var(--marine-900) 0%, var(--marine-800) 100%);
  color: #fff; padding: 3.5rem clamp(2rem, 5vw, 4rem); display: flex;
  flex-direction: column; justify-content: center;
}
.connexion__logo {
  background: #fff; border-radius: var(--radius);
  padding: 0.55rem 0.9rem; align-self: flex-start; margin-bottom: 2.6rem;
}
.connexion__logo img { height: 38px; width: auto; }
.connexion__gauche h1 {
  color: #fff; font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  letter-spacing: -0.032em; margin-bottom: 1.1rem; max-width: 15ch;
}
.connexion__gauche p { color: #B9CFE6; max-width: 42ch; font-size: 0.98rem; margin: 0; }

.connexion__droite {
  background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 3.5rem 2rem;
}
.connexion__carte { width: 100%; max-width: 370px; }
.connexion__carte h2 { font-size: 1.55rem; margin-bottom: 0.3rem; }
.connexion__carte .sous { color: var(--gris-500); font-size: 0.91rem; margin-bottom: 1.9rem; }

.onglets { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1.7rem; }
.onglet {
  padding: 0.66rem 1rem; text-align: center; font-size: 0.9rem; font-weight: 600;
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--gris-500); border-radius: var(--radius);
}
.onglet[aria-selected="true"] { background: var(--bleu-500); color: #fff; }

.champ { margin-bottom: 1.15rem; }
.champ label {
  display: block; font-size: 0.78rem; color: var(--gris-500);
  margin-bottom: 0.34rem;
}
.champ input, .champ select {
  width: 100%; padding: 0.68rem 0.8rem;
  font-family: inherit; font-size: 0.94rem; color: var(--encre);
  border: 1px solid var(--filet); border-radius: var(--radius);
  background: #fff;
}
.champ input:focus, .champ select:focus { border-color: var(--bleu-500); }
.mention {
  font-size: 0.76rem; color: var(--gris-400); text-align: center;
  margin: 1rem 0 0 0;
}

/* Ecrans d'etape */
.etape-page { padding: 2.8rem 0 4rem 0; }
.etape-page h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.15rem);
  margin-bottom: 0.7rem;
}
.etape-page .intro { color: var(--gris-600); max-width: 68ch; margin-bottom: 2.4rem; }

.declaration { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: start; }

.total {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 0.9rem;
  padding-top: 1.1rem; font-size: 0.93rem; color: var(--gris-600);
}
.total strong {
  font-size: 1.32rem; color: var(--marine-900);
  font-variant-numeric: tabular-nums;
}

.acte {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem 1.2rem; margin-top: 2rem;
  background: #fff; border: 1px solid var(--filet); border-radius: var(--radius-lg);
}
.acte__pastille {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
  background: var(--bleu-100); color: var(--marine-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em;
}
.acte__nom { font-weight: 600; font-size: 0.93rem; word-break: break-all; }
.acte__leg { font-size: 0.82rem; color: var(--gris-500); }

.conformite { background: #fff; border: 1px solid var(--filet); border-radius: var(--radius-lg); }
.conformite h3 { font-size: 1.16rem; padding: 1.4rem 1.6rem 0 1.6rem; }
.conformite__liste { list-style: none; margin: 1rem 0 0 0; padding: 0; }
.conformite__liste li {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.05rem 1.6rem; border-top: 1px solid var(--filet);
  font-size: 0.96rem;
}
.conformite__statut {
  color: var(--vert-600); font-size: 0.85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

/* Carte du gage, ecran 4 */
.gage {
  background: linear-gradient(140deg, var(--marine-900) 0%, var(--marine-800) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 1.9rem 2rem;
}
.gage__tete {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
}
.gage__label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #7FC0F0; font-weight: 600;
}
.gage__id {
  font-size: clamp(1.5rem, 3.4vw, 1.95rem); font-weight: 700;
  letter-spacing: -0.02em; margin-top: 0.3rem;
}
.gage__grille {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem;
  margin-top: 1.7rem; padding-top: 1.7rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.gage__cle { font-size: 0.8rem; color: #9FC2E4; margin-bottom: 0.22rem; }
.gage__val { font-size: 1.02rem; font-weight: 600; }

/* Ecran 5, tableau de bord */
.bord { display: grid; grid-template-columns: 210px 1fr; gap: 0; min-height: calc(100vh - 116px); }
.bord__nav { background: #fff; border-right: 1px solid var(--filet); padding: 2.2rem 0; }
.bord__nav ul { list-style: none; margin: 0; padding: 0; }
.bord__nav a {
  display: block; padding: 0.62rem 1.5rem;
  font-size: 0.91rem; color: var(--gris-600); text-decoration: none;
  border-left: 3px solid transparent;
}
.bord__nav a:hover { color: var(--marine-900); background: var(--bleu-050); }
.bord__nav a[aria-current="page"] {
  color: var(--bleu-600); font-weight: 600;
  border-left-color: var(--bleu-600); background: var(--bleu-050);
}
.bord__contenu { padding: 2.6rem clamp(1.5rem, 3vw, 3rem) 4rem; }
.bord__contenu h2 { font-size: 1.85rem; }
.bord__bienvenue { color: var(--gris-500); margin-bottom: 2.4rem; }

.synthese { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.synthese .valeur {
  font-size: 1.24rem; font-weight: 700; color: var(--marine-900);
  letter-spacing: -0.02em; margin-bottom: 0.35rem;
}
.synthese .detail { font-size: 0.86rem; color: var(--gris-500); margin-bottom: 0.7rem; }

.journal { list-style: none; margin: 0; padding: 0; }
.journal li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 0.95rem 0; border-bottom: 1px solid var(--filet);
  font-size: 0.94rem;
}
.journal li:last-child { border-bottom: none; }
.journal .date { color: var(--gris-400); font-size: 0.83rem; white-space: nowrap; }

.barre-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem;
}

/* ------------------------------------------------------------ responsive --- */

@media (max-width: 900px) {
  .grille--3, .grille--2, .synthese { grid-template-columns: 1fr; }
  .connexion { grid-template-columns: 1fr; min-height: 0; }
  .connexion__gauche { padding: 3rem 1.5rem; }
  .connexion__droite { padding: 2.5rem 1.5rem 3.5rem; }
  .declaration { grid-template-columns: 1fr; gap: 2.2rem; }
  .bord { grid-template-columns: 1fr; }
  .bord__nav {
    border-right: none; border-bottom: 1px solid var(--filet);
    padding: 0.6rem 0; overflow-x: auto;
  }
  .bord__nav ul { display: flex; gap: 0.3rem; padding: 0 1rem; }
  .bord__nav a { border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .bord__nav a[aria-current="page"] { border-left: none; border-bottom-color: var(--bleu-600); }
  .bord__contenu { padding: 2rem 1.5rem 3rem; }
  .gage__grille { grid-template-columns: 1fr; gap: 1.2rem; }
  /* En petite largeur, le logo garde la vedette sans manger l'ecran :
     64 px de haut dans un en-tete de 88 px. */
  .entete__interieur { height: 88px; }
  .marque img { height: 64px; }
  .nav { display: none; }
  .nav--ouverte {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 88px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--filet);
    padding: 1rem 1.5rem 1.4rem; gap: 0.9rem;
  }
  .nav__bascule { display: block; }
  .section { padding: 3.2rem 0; }
  .hero { padding: 3.5rem 0 3.2rem 0; }
}

@media (max-width: 560px) {
  .tableau { font-size: 0.87rem; }
  .tableau th, .tableau td { padding-right: 0.4rem; }
  .pied__liens { gap: 1.8rem; }
  .hero__actions .bouton { width: 100%; }
}

/* ---------------------------------------------------------------- print --- */

@media print {
  .bandeau-demo { border-bottom: 1px solid #000; }
  .entete, .fil, .nav, .bouton { display: none !important; }
  body { font-size: 11pt; }
  .ecran { display: block !important; page-break-after: always; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ====================================================== LIVRE BLANC WEB ===
   Version lisible en ligne du document PDF. Seule page du site autorisee a
   afficher des taux, sous condition que les mentions protectrices soient
   visibles a l'ecran (decision de Xavier du 29/07).
   ========================================================================== */

.lb-tete {
  background: linear-gradient(125deg, var(--marine-900) 0%, var(--marine-800) 62%, #14508F 100%);
  color: #fff; padding: 3.8rem 0 3.4rem 0;
}
.lb-tete h1 {
  color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  letter-spacing: -0.03em; margin-bottom: 1rem; max-width: 20ch;
}
.lb-tete .version {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #7FC0F0; font-weight: 600; margin-bottom: 0.8rem; display: block;
}
.lb-tete p { color: #C3D8EE; max-width: 62ch; }
.lb-tete .hero__actions { margin-top: 1.9rem; }

/* Colonne de lecture : plus etroite que le reste du site, c'est du texte long */
.lb-colonne { max-width: 760px; margin: 0 auto; }
.lb-large { max-width: 940px; margin: 0 auto; }

.lb-section { padding: 3.4rem 0; border-top: 1px solid var(--filet); }
.lb-section:first-of-type { border-top: none; }
.lb-section h2 {
  font-size: clamp(1.45rem, 3.2vw, 1.95rem); margin-bottom: 0.9rem;
}
.lb-section h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.lb-section p { color: var(--gris-600); }
.lb-section .amorce {
  font-size: 1.05rem; color: var(--gris-600); margin-bottom: 2.2rem;
}

/* Sommaire */
.lb-sommaire {
  background: var(--fond); border: 1px solid var(--filet);
  border-radius: var(--radius-lg); padding: 1.5rem 1.7rem;
}
.lb-sommaire ol { margin: 0; padding-left: 1.2rem; }
.lb-sommaire li { margin-bottom: 0.45rem; }
.lb-sommaire a { color: var(--marine-900); text-decoration: none; }
.lb-sommaire a:hover { color: var(--bleu-600); text-decoration: underline; }

/* Trois chiffres d'ouverture */
.lb-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lb-chiffre {
  text-align: center; padding: 1.5rem 1.2rem;
  border: 1px solid var(--filet); border-radius: var(--radius-lg); background: #fff;
}
.lb-chiffre .valeur {
  font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800;
  color: var(--marine-900); letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 0.6rem;
}
.lb-chiffre .valeur--accent { color: var(--bleu-600); }
.lb-chiffre p { font-size: 0.86rem; margin: 0; color: var(--gris-500); }

/* Graphique comparatif des postures, en CSS pur */
.lb-graphe {
  background: #fff; border: 1px solid var(--filet);
  border-radius: var(--radius-lg); padding: 2rem 1.8rem 1.6rem;
}
.lb-graphe__barres {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  align-items: end; height: 260px; margin-bottom: 1.2rem;
}
.lb-barre { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.lb-barre .chiffre {
  font-size: 1.15rem; font-weight: 800; color: var(--marine-900);
  text-align: center; margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.lb-barre .colonne {
  border-radius: 3px 3px 0 0; width: 100%;
  background: var(--gris-400);
  min-height: 4px;
}
.lb-barre--neutre .colonne { background: #C3CDD9; }
.lb-barre--livret .colonne { background: #8FA9C4; }
.lb-barre--sereine .colonne { background: var(--bleu-500); }
.lb-barre--dynamique .colonne { background: var(--bleu-600); }
.lb-barre--dynamique .chiffre { color: var(--bleu-600); }

.lb-graphe__legendes {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  border-top: 1px solid var(--filet); padding-top: 1rem;
}
.lb-legende .titre {
  font-size: 0.87rem; font-weight: 700; color: var(--marine-900);
  margin-bottom: 0.25rem; line-height: 1.25;
}
.lb-legende p { font-size: 0.79rem; color: var(--gris-500); margin: 0; line-height: 1.4; }

/* Mention protectrice : elle doit rester lisible, jamais en note de bas de page */
.lb-garde-fou {
  border-left: 3px solid #C99A17; background: var(--ambre-050);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.4rem;
}
.lb-garde-fou p { font-size: 0.87rem; color: #6C5410; margin: 0; }
.lb-garde-fou p + p { margin-top: 0.6rem; }

/* Etapes numerotees du mecanisme */
.lb-etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* Cascade d'incident */
.lb-cascade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.lb-cascade .carte { padding: 1.3rem; }
.lb-cascade .rang {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bleu-500); font-weight: 700; margin-bottom: 0.5rem;
}
.lb-cascade p { font-size: 0.88rem; margin: 0; }

/* Citation */
.lb-citation {
  font-size: 1.15rem; color: var(--marine-900); font-weight: 600;
  border-left: 3px solid var(--bleu-600); padding-left: 1.2rem;
  margin: 2rem 0; line-height: 1.45;
}

/* Glossaire */
.lb-glossaire { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lb-glossaire dt {
  font-weight: 700; color: var(--marine-900); font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.lb-glossaire dd { margin: 0; font-size: 0.87rem; color: var(--gris-600); line-height: 1.5; }

/* Comparaison mint et burn */
.lb-cycle {
  display: grid; grid-template-columns: 120px 1fr; gap: 0.8rem 1.4rem;
  align-items: center; font-size: 0.9rem;
}
.lb-cycle dt {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--gris-500);
}
.lb-cycle dd { margin: 0; color: var(--marine-900); font-weight: 500; }

@media (max-width: 900px) {
  .lb-chiffres, .lb-etapes, .lb-cascade, .lb-glossaire { grid-template-columns: 1fr; }
  .lb-graphe__barres { height: 200px; gap: 0.6rem; }
  .lb-graphe__legendes { gap: 0.6rem; }
  .lb-legende .titre { font-size: 0.78rem; }
  .lb-legende p { font-size: 0.71rem; }
  .lb-barre .chiffre { font-size: 0.92rem; }
  .lb-cycle { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .lb-cycle dd { margin-bottom: 0.9rem; }
}

/* ================================================= DEMO, DEUX PARCOURS ===
   Ecran d'aiguillage, puis deux parcours en miroir sur un meme dossier.
   ========================================================================== */

.aiguillage { padding: 3.5rem 0 4.5rem 0; }
.aiguillage__titre { text-align: center; margin-bottom: 0.8rem; }
.aiguillage__chapeau {
  text-align: center; color: var(--gris-600);
  max-width: 60ch; margin: 0 auto 2.8rem auto;
}

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }

.role {
  display: block; text-align: left; width: 100%;
  background: #fff; border: 1px solid var(--filet);
  border-radius: var(--radius-lg); padding: 2.2rem 2rem;
  font-family: inherit; font-size: 1rem; cursor: pointer;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.role:hover {
  border-color: var(--bleu-500);
  box-shadow: 0 6px 24px rgba(11, 37, 69, 0.10);
  transform: translateY(-2px);
}
.role__oeil {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bleu-500); display: block;
  margin-bottom: 0.7rem;
}
.role h3 { font-size: 1.32rem; margin-bottom: 0.7rem; letter-spacing: -0.025em; }
.role p { color: var(--gris-600); font-size: 0.94rem; margin-bottom: 1.2rem; }
.role__entree {
  color: var(--bleu-600); font-weight: 600; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

.dossier-partage {
  margin-top: 2.6rem; text-align: center;
  font-size: 0.87rem; color: var(--gris-500);
}

/* Bouton de retour a l'aiguillage, dans le fil */
.fil__role {
  font-size: 0.78rem; color: var(--gris-500);
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 0.3rem 0.5rem; text-decoration: underline;
}
.fil__role:hover { color: var(--marine-900); }

/* --------------------------------------------- choix de la strategie --- */

.strategies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.strategie {
  position: relative;
  background: #fff; border: 1px solid var(--filet);
  border-radius: var(--radius-lg); padding: 1.6rem;
  cursor: pointer; display: block;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.strategie:hover { border-color: #B9CFE6; }
.strategie input { position: absolute; opacity: 0; pointer-events: none; }
.strategie:has(input:checked) {
  border-color: var(--bleu-600);
  box-shadow: 0 0 0 1px var(--bleu-600), 0 6px 22px rgba(21, 104, 240, 0.12);
}
.strategie:has(input:focus-visible) { outline: 3px solid var(--bleu-500); outline-offset: 2px; }
.strategie h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.strategie p { font-size: 0.9rem; color: var(--gris-600); margin-bottom: 1.1rem; }
.strategie__coche {
  position: absolute; top: 1.1rem; right: 1.2rem;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  border: 1.5px solid #C6D4E3; background: #fff;
}
.strategie:has(input:checked) .strategie__coche {
  border-color: var(--bleu-600); background: var(--bleu-600);
  box-shadow: inset 0 0 0 4px #fff;
}

/* Exposition, exprimee qualitativement : aucun chiffre sur cet ecran. */
.expo { display: flex; align-items: center; gap: 0.55rem; }
.expo__points { display: flex; gap: 0.25rem; }
.expo__point {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--filet);
}
.expo__point--plein { background: var(--bleu-600); }
.expo__texte { font-size: 0.79rem; color: var(--gris-500); }

.renvoi-livre-blanc {
  margin-top: 1.6rem; font-size: 0.88rem; color: var(--gris-500);
}

/* Recapitulatif de la strategie retenue */
.recap-strategie {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.18); margin-top: 1.7rem; padding-top: 1.7rem;
}

@media (max-width: 900px) {
  .roles, .strategies { grid-template-columns: 1fr; }
  .role { padding: 1.7rem 1.5rem; }
  .aiguillage { padding: 2.4rem 0 3rem 0; }
}

/* ============================================ CENTRAGE GENERAL DU TEXTE ===
   Demande de Xavier. Le centrage est la regle sur tout le site. Seules les
   colonnes de lecture suivie, les tableaux et les listes gardent leur
   alignement a gauche : centrer un chapitre entier fait perdre le point de
   retour a la ligne et se lit mal.
   ========================================================================== */

.hero, .section, .lb-section, .lb-tete, .aiguillage, .etape-page,
.bord__contenu, .panneau__corps, .lb-sommaire {
  text-align: center;
}

.hero h1, .hero__accroche, .chapeau, .lb-tete p, .lb-section .amorce,
.aiguillage__chapeau, .etape-page .intro {
  margin-left: auto; margin-right: auto;
}

/* L'etape numerotee se recentre en colonne plutot qu'en ligne. */
.etape { flex-direction: column; align-items: center; gap: 0.9rem; }

.barre-actions, .hero__actions, .panneau__actions { justify-content: center; }
.total { justify-content: center; }

/* --- Ce qui reste aligne a gauche, pour la lisibilite ------------------ */

/* Colonnes de lecture suivie */
.prose, .prose p, .prose li, .prose dd, .prose dt,
.lb-colonne p, .lb-garde-fou p, .encart p, .lb-glossaire dd, .lb-glossaire dt {
  text-align: left;
}
.lb-colonne .label-section, .lb-colonne h2, .lb-colonne h1 { text-align: center; }
.prose h1, .prose h2 { text-align: center; }

/* Tableaux, listes et journaux : l'alignement porte l'information */
.tableau th, .tableau td { text-align: left; }
.tableau .num, .tableau th.num { text-align: right; }
.journal li, .conformite__liste li { text-align: left; }
.carte ol, .carte ul, .lb-sommaire ol, .lb-section ol, .lb-section ul {
  text-align: left; display: inline-block;
}
.cycle-liste, .lb-cycle dt, .lb-cycle dd { text-align: left; }

/* Le pied de page suit la meme regle que le reste */
.pied__haut { justify-content: center; text-align: center; }
.pied__marque { margin: 0 auto; }
.pied__liens ul { text-align: center; }
.pied__bas { text-align: center; }

/* ==================================== PANNEAU DETAILLE D'UNE STRATEGIE ===
   Seconde exception de conformite : cet ecran affiche des montants calcules
   a partir des taux releves le 29/07/2026. Aucune projection dans le temps,
   aucune capitalisation, aucun effet de croissance. Les mentions
   protectrices restent visibles a l'ecran.
   ========================================================================== */

.voile {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(8, 22, 40, 0.62);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 3vh 1rem;
  overflow-y: auto;
  opacity: 0;
  animation: voile-entre 0.22s ease forwards;
}
.voile[hidden] { display: none !important; }
@keyframes voile-entre { to { opacity: 1; } }

.panneau {
  width: 100%; max-width: 760px;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(4, 16, 32, 0.4);
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  animation: panneau-entre 0.32s cubic-bezier(0.2, 0.7, 0.3, 1) 0.04s forwards;
}
@keyframes panneau-entre {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.panneau__tete {
  position: relative;
  padding: 2rem 2rem 1.7rem;
  color: #fff; text-align: center;
}
/* Chaque strategie a sa propre personnalite visuelle. */
.panneau--conserver .panneau__tete {
  background: linear-gradient(140deg, #4C6285 0%, #64789B 100%);
}
.panneau--securisee .panneau__tete {
  background: linear-gradient(140deg, #14508F 0%, #1B8CE3 100%);
}
.panneau--dynamique .panneau__tete {
  background: linear-gradient(140deg, #071A33 0%, #0B2545 45%, #143C74 100%);
}

.panneau__oeil {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.72);
  display: block; margin-bottom: 0.5rem;
}
.panneau__tete h2 { color: #fff; font-size: 1.7rem; margin-bottom: 0.5rem; }
.panneau__tete p {
  color: rgba(255,255,255,0.82); font-size: 0.93rem;
  max-width: 46ch; margin: 0 auto;
}
.panneau__fermer {
  position: absolute; top: 1rem; right: 1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: rgba(255,255,255,0.16); border: none; cursor: pointer;
  color: #fff; font-size: 1.1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.panneau__fermer:hover { background: rgba(255,255,255,0.28); }

.panneau__illu { border-bottom: 1px solid var(--filet); background: var(--fond); }
.panneau__illu img { width: 100%; }

.panneau__corps { padding: 1.9rem 2rem 2rem; text-align: center; }

/* Curseur de montant */
.curseur { margin-bottom: 1.9rem; }
.curseur__etiquette {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gris-500); font-weight: 600; display: block; margin-bottom: 0.7rem;
}
.curseur__valeur {
  font-size: 1.35rem; font-weight: 700; color: var(--marine-900);
  letter-spacing: -0.02em; margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.curseur input[type="range"] {
  width: 100%; max-width: 420px; accent-color: var(--bleu-600);
  height: 4px; cursor: pointer;
}
.curseur__bornes {
  display: flex; justify-content: space-between; max-width: 420px;
  margin: 0.5rem auto 0; font-size: 0.75rem; color: var(--gris-400);
}

/* Chiffre heros */
.heros {
  border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
  padding: 1.7rem 0; margin-bottom: 1.7rem;
}
.heros__etiquette {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gris-500); font-weight: 600; margin-bottom: 0.6rem;
}
.heros__ligne {
  display: flex; align-items: baseline; justify-content: center;
  gap: 0.9rem; flex-wrap: wrap;
}
.heros__montant {
  font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1; color: var(--marine-900);
  font-variant-numeric: tabular-nums;
}
.panneau--dynamique .heros__montant { color: var(--bleu-600); }
.heros__delta {
  font-size: 0.95rem; font-weight: 700;
  padding: 0.3rem 0.7rem; border-radius: 3px;
  background: var(--vert-050); color: var(--vert-600);
  font-variant-numeric: tabular-nums;
}
.heros__delta--nul { background: var(--fond); color: var(--gris-500); }
.heros__unite { font-size: 0.86rem; color: var(--gris-500); margin-top: 0.7rem; }

/* Graphique comparatif, reactif au curseur */
.compare { margin-bottom: 1.6rem; }
.compare__titre {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gris-500); font-weight: 600; margin-bottom: 1.1rem;
}
.compare__barres {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  align-items: end; height: 170px;
}
.compare__col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.compare__montant {
  font-size: 1rem; font-weight: 700; color: var(--marine-900);
  margin-bottom: 0.45rem; font-variant-numeric: tabular-nums;
}
.compare__barre {
  border-radius: 3px 3px 0 0; min-height: 4px;
  transition: height 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.compare__col--dort .compare__barre { background: #C3CDD9; }
.compare__col--aujourdhui .compare__barre { background: #8FA9C4; }
.compare__col--doorfi .compare__barre { background: var(--bleu-600); }
.panneau--conserver .compare__col--doorfi .compare__barre { background: #8FA0B4; }
.panneau--securisee .compare__col--doorfi .compare__barre { background: var(--bleu-500); }
.compare__legendes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  border-top: 1px solid var(--filet); padding-top: 0.9rem; margin-top: 0.7rem;
}
.compare__legende .nom {
  font-size: 0.82rem; font-weight: 700; color: var(--marine-900);
  line-height: 1.3; margin-bottom: 0.2rem;
}
.compare__legende .sous { font-size: 0.73rem; color: var(--gris-500); line-height: 1.35; }

.panneau__actions {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.7rem;
}

@media (max-width: 700px) {
  .voile { padding: 0; align-items: stretch; }
  .panneau { max-width: none; border-radius: 0; min-height: 100%; }
  .panneau__corps { padding: 1.5rem 1.2rem 2rem; }
  .panneau__tete { padding: 1.7rem 1.2rem 1.4rem; }
  .compare__barres { height: 130px; gap: 0.6rem; }
  .compare__legendes { gap: 0.6rem; }
  .compare__legende .nom { font-size: 0.72rem; }
  .compare__legende .sous { font-size: 0.66rem; }
  .compare__montant { font-size: 0.82rem; }
  .panneau__actions .bouton { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .voile, .panneau { animation: none; opacity: 1; transform: none; }
  .compare__barre { transition: none; }
}
