/* ==========================================================================
   AOclair — système de design v2
   Univers : l'instrument de lecture d'un dossier de consultation.
   Bleu d'encre administrative, typographie d'ingénierie, référence d'article
   comme motif récurrent. Pensé mobile d'abord, densifié ensuite pour l'écran.
   ========================================================================== */

/* Polices hebergees par nos soins.
   Elles etaient importees depuis fonts.googleapis.com, ce qui transmettait
   l'adresse IP de chaque visiteur a Google sans que la politique de
   confidentialite ne le declare. Les fichiers sont desormais servis depuis
   assets/polices/. Regenere par outils/heberger-polices.py. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../polices/archivo-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../polices/archivo-500-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: 600;
  font-display: swap;
  src: url('../polices/archivo-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../polices/archivo-600-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: 700;
  font-display: swap;
  src: url('../polices/archivo-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../polices/archivo-700-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../polices/jetbrains-mono-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../polices/jetbrains-mono-400-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../polices/jetbrains-mono-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../polices/jetbrains-mono-500-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../polices/jetbrains-mono-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../polices/jetbrains-mono-600-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: 'Public Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../polices/public-sans-400-italique-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../polices/public-sans-400-italique-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: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../polices/public-sans-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../polices/public-sans-400-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: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../polices/public-sans-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../polices/public-sans-500-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: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../polices/public-sans-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../polices/public-sans-600-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;
}

/* --------------------------------------------------------------------------
   1. Jetons
   -------------------------------------------------------------------------- */
:root {
  /* Fonds */
  --encre:        #0a0f24;
  --encre-2:      #111a3a;
  --encre-3:      #1b2650;
  --craie:        #f4f6fb;
  --craie-2:      #eaeef7;
  --blanc:        #ffffff;

  /* Traits */
  --ligne:        #e0e5f0;
  --ligne-forte:  #c9d1e3;
  --ligne-nuit:   rgba(255, 255, 255, 0.12);

  /* Texte */
  --texte:        #101728;
  --texte-doux:   #495267;
  --texte-faible: #757f99;
  --texte-nuit:   #eef1fa;
  --texte-nuit-doux: #a9b3d1;

  /* Bleu de République, calé pour l'écran */
  --bleu:         #1b23a8;
  --bleu-fonce:   #131877;
  --bleu-vif:     #4351f0;
  --bleu-clair:   #8b95ff;
  --bleu-voile:   #eaecff;

  /* Statuts, repris du vocabulaire des rapports */
  --vert:         #14684b;
  --vert-fond:    #e3f1ea;
  --ambre:        #9c6510;
  --ambre-fond:   #fbf0da;
  --rouge:        #a3191f;
  --rouge-fond:   #fbe6e5;

  /* Formes */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --ombre-1: 0 1px 2px rgba(16, 23, 40, .06), 0 2px 8px rgba(16, 23, 40, .04);
  --ombre-2: 0 2px 4px rgba(16, 23, 40, .05), 0 12px 28px -12px rgba(16, 23, 40, .18);
  --ombre-3: 0 4px 8px rgba(16, 23, 40, .06), 0 28px 60px -24px rgba(16, 23, 40, .28);

  /* Typographie */
  --f-titre: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --f-texte: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono:  'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* Rythme */
  --gouttiere: 20px;
  --bloc: 68px;

  --transition: 220ms cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 700px) {
  :root { --gouttiere: 32px; --bloc: 96px; }
}
@media (min-width: 1100px) {
  :root { --bloc: 128px; }
}

/* --------------------------------------------------------------------------
   2. Socle
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--blanc);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--f-titre);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--texte);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 6.2vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.12rem, 2vw, 1.3rem); }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; color: var(--texte-doux); }
p:last-child { margin-bottom: 0; }
strong, b { color: var(--texte); font-weight: 600; }

a {
  color: var(--bleu);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(27, 35, 168, .35);
  transition: color var(--transition), text-decoration-color var(--transition);
}
a:hover { color: var(--bleu-vif); text-decoration-color: currentColor; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; color: var(--texte-doux); }
li { margin-bottom: .5em; }
li::marker { color: var(--bleu); }

:focus-visible {
  outline: 2px solid var(--bleu-vif);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--bleu-voile); color: var(--bleu-fonce); }

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
}
.saut-contenu:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Grille
   -------------------------------------------------------------------------- */
.enveloppe {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gouttiere);
}
.enveloppe--etroite { max-width: 780px; }
.enveloppe--moyenne { max-width: 960px; }

.bande { padding-block: var(--bloc); position: relative; }
.bande--serree { padding-block: calc(var(--bloc) * .62); }
.bande--craie { background: var(--craie); }
.bande--voile { background: linear-gradient(180deg, var(--blanc) 0%, var(--craie) 100%); }
.bande--filet { border-top: 1px solid var(--ligne); }

/* Sections sombres : lueur douce qui suit le curseur */
.bande--nuit {
  background: var(--encre);
  color: var(--texte-nuit-doux);
  overflow: hidden;
  isolation: isolate;
}
.bande--nuit h1, .bande--nuit h2, .bande--nuit h3, .bande--nuit h4 { color: var(--texte-nuit); }
.bande--nuit p { color: var(--texte-nuit-doux); }
.bande--nuit strong { color: var(--texte-nuit); }
.bande--nuit a { color: var(--bleu-clair); text-decoration-color: rgba(139, 149, 255, .4); }
.bande--nuit a:hover { color: #fff; }

.bande--nuit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(67, 81, 240, .30), transparent 62%),
    radial-gradient(760px 540px at 4% 108%, rgba(27, 35, 168, .34), transparent 66%);
}
.bande--nuit::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(520px 520px at var(--pointeur-x, 50%) var(--pointeur-y, 30%), rgba(120, 140, 255, .16), transparent 68%);
  opacity: 0;
  transition: opacity 500ms ease;
}
.bande--nuit.pointeur-actif::after { opacity: 1; }

/* Trame de fond discrète, rappel du quadrillage d'un tableau de dépouillement */
.trame {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

/* --------------------------------------------------------------------------
   4. Barre d'annonce + en-tête
   -------------------------------------------------------------------------- */
.annonce {
  background: var(--encre);
  color: var(--texte-nuit-doux);
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--f-mono);
  text-align: center;
  padding: 9px var(--gouttiere);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.annonce b { color: var(--bleu-clair); font-weight: 500; }
@media (max-width: 699px) {
  .annonce { font-size: .64rem; letter-spacing: .02em; padding: 8px 14px; }
}

.entete {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.entete.est-collee {
  border-bottom-color: var(--ligne);
  box-shadow: 0 1px 20px rgba(16, 23, 40, .06);
}

.entete__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
@media (min-width: 900px) { .entete__inner { min-height: 74px; } }

.marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: -0.02em;
  color: var(--texte);
  text-decoration: none;
  margin-right: auto;
  padding: 6px 0;
}
.marque:hover { color: var(--bleu); }
.marque__sceau {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 7px;
  background: var(--encre);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  transition: transform var(--transition), background var(--transition);
}
.marque:hover .marque__sceau { transform: rotate(-4deg); background: var(--bleu); }
.marque__texte { display: none; }
@media (min-width: 360px) {
  .marque__texte { display: flex; align-items: baseline; gap: 9px; font-size: .88rem; }
}
@media (min-width: 560px) { .marque__texte { font-size: 1rem; } }
.marque__texte b { font-weight: 600; letter-spacing: -0.025em; }

/* La signature n'apparaît que si la barre a la place de la porter sans serrer
   la navigation. En dessous, la marque seule suffit. */
.marque__texte i {
  display: none;
  font-family: var(--f-texte);
  font-style: normal;
  font-size: .8rem;
  font-weight: 400;
  color: var(--texte-faible);
  padding-left: 10px;
  border-left: 1px solid var(--ligne);
  white-space: nowrap;
}
@media (min-width: 1240px) { .marque__texte i { display: inline-block; } }

/* Dans le volet mobile, la place ne manque pas : la signature passe dessous. */
.volet .marque__texte { flex-direction: column; align-items: flex-start; gap: 2px; }
.volet .marque__texte i {
  display: inline-block;
  border-left: 0;
  padding-left: 0;
  font-size: .74rem;
  white-space: normal;
}

.navigation { display: none; }
@media (min-width: 980px) {
  .navigation {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .navigation a {
    font-size: .92rem;
    font-weight: 500;
    color: var(--texte-doux);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    position: relative;
    transition: color var(--transition), background var(--transition);
  }
  .navigation a:hover { color: var(--texte); background: var(--craie); }
  .navigation a[aria-current="page"] { color: var(--bleu); }
  .navigation a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 2px;
    background: var(--bleu);
    border-radius: 2px;
  }
}

.entete__actions { display: flex; align-items: center; gap: 10px; }
.entete__actions .btn { display: none; }
@media (min-width: 980px) { .entete__actions .btn { display: inline-flex; } }

.bascule {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--ligne);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.bascule:hover { border-color: var(--ligne-forte); background: var(--craie); }
.bascule span {
  display: block;
  height: 1.5px;
  background: var(--texte);
  border-radius: 2px;
  transition: transform 260ms cubic-bezier(.22,.61,.36,1), opacity 160ms ease;
}
.bascule[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.bascule[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bascule[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
[data-ferme-volet] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
[data-ferme-volet] span:nth-child(2) { opacity: 0; }
[data-ferme-volet] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 980px) { .bascule { display: none; } }

/* Volet mobile : plein écran, cibles larges, pensé pour le pouce */
.volet {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--blanc);
  display: flex;
  flex-direction: column;
  padding: 18px var(--gouttiere) calc(24px + env(safe-area-inset-bottom));
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.volet.est-ouvert { opacity: 1; transform: none; visibility: visible; }
.volet__haut { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin-bottom: 22px; }
.volet__liens { display: flex; flex-direction: column; margin-bottom: auto; }
.volet__liens a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--f-titre);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--texte);
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid var(--ligne);
  opacity: 0;
  transform: translateY(10px);
}
.volet.est-ouvert .volet__liens a { animation: volet-entree 420ms cubic-bezier(.22,.61,.36,1) forwards; }
.volet__liens a span {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--texte-faible);
}
.volet__liens a[aria-current="page"] { color: var(--bleu); }
.volet__pied { padding-top: 26px; display: grid; gap: 12px; }
@keyframes volet-entree { to { opacity: 1; transform: none; } }
@media (min-width: 980px) { .volet { display: none; } }

/* Jauge de lecture */
.jauge {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--bleu), var(--bleu-vif));
  z-index: 99;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. Boutons et micro-interactions
   -------------------------------------------------------------------------- */
.btn {
  --btn-fond: var(--encre);
  --btn-texte: #fff;
  --btn-bord: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-texte);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  padding: 15px 22px;
  min-height: 50px;
  border: 1px solid var(--btn-bord);
  border-radius: var(--r-sm);
  background: var(--btn-fond);
  color: var(--btn-texte);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120px 120px at var(--btn-x, 50%) var(--btn-y, 50%), rgba(255, 255, 255, .18), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--ombre-2); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn--primaire { --btn-fond: var(--bleu); }
.btn--primaire:hover { --btn-fond: var(--bleu-fonce); }
.btn--nuit { --btn-fond: #fff; --btn-texte: var(--encre); }
.btn--nuit::after { background: radial-gradient(120px 120px at var(--btn-x, 50%) var(--btn-y, 50%), rgba(27, 35, 168, .12), transparent 70%); }
.btn--contour { --btn-fond: transparent; --btn-texte: var(--texte); --btn-bord: var(--ligne-forte); }
.btn--contour:hover { --btn-fond: var(--craie); --btn-bord: var(--texte-faible); }
.bande--nuit .btn--contour { --btn-texte: var(--texte-nuit); --btn-bord: rgba(255,255,255,.28); }
.bande--nuit .btn--contour:hover { --btn-fond: rgba(255,255,255,.08); --btn-bord: rgba(255,255,255,.5); }
.btn--large { width: 100%; }
@media (min-width: 560px) { .btn--large { width: auto; } }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn__fleche { transition: transform var(--transition); }
.btn:hover .btn__fleche { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .actions { flex-direction: column; align-items: stretch; } }

/* Lien à flèche */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.lien-fleche::after { content: '→'; transition: transform var(--transition); }
.lien-fleche:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Éléments de texte
   -------------------------------------------------------------------------- */
.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: 18px;
}
.surtitre::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.bande--nuit .surtitre { color: var(--bleu-clair); }

.chapeau {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.55;
  color: var(--texte-doux);
  max-width: 62ch;
}
.bande--nuit .chapeau { color: var(--texte-nuit-doux); }

.tete-section { max-width: 68ch; margin-bottom: 44px; }
.tete-section h2 { margin-bottom: .45em; }
.tete-section p { font-size: 1.05rem; }
.tete-section--centre { margin-inline: auto; text-align: center; }
.tete-section--centre .surtitre { justify-content: center; }

.note-fine {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--texte-faible);
}
.bande--nuit .note-fine { color: rgba(169, 179, 209, .8); }

/* Référence d'article : le motif signature, repris des rapports */
.ref {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--bleu-fonce);
  background: var(--bleu-voile);
  border: 1px solid rgba(27, 35, 168, .14);
  border-radius: var(--r-xs);
  padding: 3px 7px;
  white-space: normal;
}
.ref::before { content: '§'; opacity: .55; }
.bande--nuit .ref {
  color: var(--bleu-clair);
  background: rgba(90, 105, 255, .14);
  border-color: rgba(139, 149, 255, .26);
}

.etat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: var(--r-pill);
  padding: 4px 10px;
  white-space: nowrap;
}
.etat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 6px; }
.etat--ok    { color: var(--vert);  background: var(--vert-fond); }
.etat--alerte{ color: var(--ambre); background: var(--ambre-fond); }
.etat--bloc  { color: var(--rouge); background: var(--rouge-fond); }

.encart {
  border: 1px solid var(--ligne);
  border-left: 3px solid var(--bleu);
  background: var(--craie);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 20px;
  margin: 28px 0;
  font-size: .96rem;
}
.encart p:last-child { margin-bottom: 0; }
.encart--alerte { border-left-color: var(--ambre); background: var(--ambre-fond); }
.encart--alerte p { color: #6d4708; }

/* --------------------------------------------------------------------------
   7. Héros
   -------------------------------------------------------------------------- */
.heros { padding-block: 56px 68px; }
@media (min-width: 900px) { .heros { padding-block: 92px 104px; } }

.heros__grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.heros__grille > * { min-width: 0; }
@media (min-width: 1040px) {
  .heros__grille { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 60px; }
}

.heros h1 { color: var(--texte-nuit); margin-bottom: 22px; }
.heros h1 em {
  font-style: normal;
  color: var(--bleu-clair);
  position: relative;
  white-space: nowrap;
}
.heros__actions { margin-top: 30px; }
.heros__preuves {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ligne-nuit);
}
.heros__preuve {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .86rem;
  color: var(--texte-nuit-doux);
}
.heros__preuve svg { flex: 0 0 15px; color: var(--bleu-clair); }

/* Panneau « dossier décortiqué » : la pièce maîtresse */
.dossier {
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--ligne-nuit);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 400ms cubic-bezier(.22,.61,.36,1);
}
@media (min-width: 1040px) {
  .dossier {
    padding: 20px;
    transform: perspective(1400px) rotateY(var(--incline-y, -4deg)) rotateX(var(--incline-x, 2deg));
  }
}
.dossier__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ligne-nuit);
}
.dossier__titre {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texte-nuit-doux);
}
.dossier__compte {
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--bleu-clair);
  background: rgba(90, 105, 255, .16);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}

/* Rail de pièces : défilement horizontal sur mobile, grille sur grand écran */
.pieces {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pieces::-webkit-scrollbar { display: none; }
@media (min-width: 620px) {
  .pieces { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
}
.piece {
  flex: 0 0 auto;
  scroll-snap-align: start;
  font-family: var(--f-mono);
  font-size: .69rem;
  font-weight: 500;
  color: var(--texte-nuit-doux);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--ligne-nuit);
  border-radius: var(--r-xs);
  padding: 6px 10px;
  cursor: default;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.piece[data-source] { cursor: pointer; }
.piece.est-active,
.piece[data-source]:hover {
  color: #fff;
  background: var(--bleu-vif);
  border-color: var(--bleu-vif);
  transform: translateY(-1px);
}

.extraits { display: grid; gap: 7px; }
.extrait {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--ligne-nuit);
  border-radius: var(--r-sm);
  transition: background 200ms ease, border-color 200ms ease, opacity 200ms ease, transform 200ms ease;
}
@media (min-width: 480px) {
  .extrait { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
}
.extrait__texte { font-size: .88rem; line-height: 1.45; color: var(--texte-nuit); }
.extrait__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.extrait.est-eteint { opacity: .42; }
.extrait.est-allumee {
  background: rgba(90, 105, 255, .12);
  border-color: rgba(139, 149, 255, .4);
  transform: translateX(2px);
}
.dossier__pied {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--ligne-nuit);
  font-size: .78rem;
  color: var(--texte-nuit-doux);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dossier__pied kbd {
  font-family: var(--f-mono);
  font-size: .68rem;
  border: 1px solid var(--ligne-nuit);
  border-radius: var(--r-xs);
  padding: 1px 6px;
  color: var(--texte-nuit);
}

/* --------------------------------------------------------------------------
   8. Bandeau de chiffres
   -------------------------------------------------------------------------- */
.chiffres {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--ligne);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (min-width: 620px) { .chiffres { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffre {
  background: var(--blanc);
  padding: 26px 22px;
  transition: background var(--transition);
}
.chiffre:hover { background: var(--craie); }
.chiffre__valeur {
  font-family: var(--f-titre);
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--encre);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.chiffre__libelle { font-size: .9rem; line-height: 1.5; color: var(--texte-doux); }

/* --------------------------------------------------------------------------
   9. Colonnes « ce qu'on fait / ce qu'on ne fait pas »
   -------------------------------------------------------------------------- */
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.deux-colonnes > * { min-width: 0; }
@media (min-width: 860px) { .deux-colonnes { grid-template-columns: 1fr 1fr; gap: 24px; } }

.colonne {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  padding: 26px 24px;
  box-shadow: var(--ombre-1);
}
.colonne h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.colonne ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.colonne li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
}
.colonne li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.colonne--oui li::before {
  background-color: var(--vert-fond);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314684b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E");
}
.colonne--non li::before {
  background-color: var(--rouge-fond);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a3191f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7'/%3E%3C/svg%3E");
}
.colonne__marque {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-xs);
}
.colonne--oui .colonne__marque { color: var(--vert); background: var(--vert-fond); }
.colonne--non .colonne__marque { color: var(--rouge); background: var(--rouge-fond); }

/* --------------------------------------------------------------------------
   10. Étapes (séquence réelle : la numérotation porte l'information)
   -------------------------------------------------------------------------- */
.etapes { display: grid; gap: 0; counter-reset: etape; }
.etape {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--ligne);
  position: relative;
}
.etape:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 760px) {
  .etape { grid-template-columns: 96px minmax(0, 1fr); gap: 30px; padding: 32px 0; }
}
.etape__num {
  counter-increment: etape;
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--bleu);
  padding-top: 4px;
  letter-spacing: .04em;
}
.etape__num::before { content: 'ÉTAPE ' counter(etape, decimal-leading-zero); }
@media (max-width: 759px) { .etape__num::before { content: counter(etape, decimal-leading-zero); font-size: 1rem; } }
.etape h3 { margin-bottom: .5em; max-width: 34ch; }
.etape p { font-size: .97rem; max-width: 70ch; }
.etape__jalon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--texte-faible);
  background: var(--craie);
  border-radius: var(--r-xs);
  padding: 4px 9px;
}

/* --------------------------------------------------------------------------
   11. Formules
   -------------------------------------------------------------------------- */
.formules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
.formules > * { min-width: 0; }
@media (min-width: 900px) { .formules { grid-template-columns: 1fr 1fr; gap: 24px; } }

.formule {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--ombre-1);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
@media (min-width: 900px) { .formule { padding: 34px 30px; } }
.formule::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px 320px at var(--pointeur-x, 50%) var(--pointeur-y, 0%), rgba(67, 81, 240, .07), transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
}
.formule:hover { transform: translateY(-3px); box-shadow: var(--ombre-3); border-color: var(--ligne-forte); }
.formule:hover::before { opacity: 1; }

.formule--phare { border-color: var(--encre); border-width: 1.5px; }
.formule__ruban {
  position: absolute;
  top: 0; right: 0;
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #fff;
  background: var(--encre);
  padding: 6px 14px;
  border-radius: 0 0 0 var(--r-sm);
}
.formule__rang {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--texte-faible);
  margin-bottom: 10px;
}
.formule__nom { font-size: 1.9rem; margin-bottom: 10px; }
.formule__resume { font-size: .96rem; margin-bottom: 18px; }
.formule__prix {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-titre);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--encre);
  margin: 0 0 2px;
}
.formule__prix small { font-family: var(--f-texte); font-size: .9rem; font-weight: 500; color: var(--texte-faible); letter-spacing: 0; }
.formule__unite { font-size: .85rem; color: var(--texte-faible); margin-bottom: 4px; }
.formule ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--ligne);
  padding-top: 22px;
}
.formule li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 11px;
  margin: 0;
  font-size: .93rem;
  line-height: 1.5;
}
.formule li::before {
  content: '';
  width: 15px; height: 15px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--bleu-voile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231b23a8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.formule li.est-herite::before {
  background: var(--craie-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23757f99' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 8h8'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.formule__formats {
  font-size: .82rem;
  color: var(--texte-faible);
  margin: 0 0 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ligne);
}
/* Le delai de traitement se lit juste sous le prix : c'est un critere d'achat
   au meme titre, pas une mention de bas de carte. */
.formule__delai {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--vert);
  background: var(--vert-fond);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  margin: 0 0 22px;
}
.formule__delai::before {
  content: '';
  flex: 0 0 auto;
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314684b' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.4'/%3E%3Cpath d='M8 4.4V8l2.4 1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* La carte ne porte plus que l'essentiel : le detail exhaustif vit dans le
   tableau comparatif, atteint par ce renvoi. */
.formule__detail {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.formule .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   12. Tableaux
   -------------------------------------------------------------------------- */
.tableau-defile { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tableau {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  overflow: hidden;
}
.tableau th, .tableau td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ligne);
  vertical-align: top;
}
.tableau thead th {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texte-faible);
  background: var(--craie);
  white-space: nowrap;
}
.tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody tr { transition: background 160ms ease; }
.tableau tbody tr:hover { background: var(--craie); }
.tableau td strong { font-weight: 600; }
.tableau--compare td:not(:first-child),
.tableau--compare th:not(:first-child) { text-align: center; width: 130px; }
.tableau--compare tbody td:not(:first-child) { font-weight: 600; color: var(--bleu); }
.tableau--compare tbody td.vide { color: var(--texte-faible); font-weight: 400; }

/* Sous 720px, chaque ligne devient une fiche lisible au pouce */
@media (max-width: 719px) {
  .tableau, .tableau tbody, .tableau tr, .tableau td { display: block; width: 100%; }
  .tableau { border: 0; background: none; }
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau tr {
    background: var(--blanc);
    border: 1px solid var(--ligne);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    padding: 6px 0;
    box-shadow: var(--ombre-1);
  }
  .tableau td { border-bottom: 0; padding: 8px 16px; }
  .tableau td[data-col]::before {
    content: attr(data-col);
    display: block;
    font-family: var(--f-mono);
    font-size: .66rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--texte-faible);
    margin-bottom: 4px;
  }
  .tableau--compare td:not(:first-child),
  .tableau--compare th:not(:first-child) { text-align: left; width: auto; }
}

/* --------------------------------------------------------------------------
   13. Secteurs, garanties, FAQ
   -------------------------------------------------------------------------- */
.etiquettes { display: flex; flex-wrap: wrap; gap: 9px; }
.etiquette {
  font-size: .88rem;
  font-weight: 500;
  color: var(--texte-doux);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}
.etiquette:hover { transform: translateY(-2px); border-color: var(--bleu); color: var(--bleu); }

.garanties { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.garanties > * { min-width: 0; }
@media (min-width: 700px) { .garanties { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .garanties { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.garantie {
  padding: 24px 22px;
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  background: var(--blanc);
  transition: transform var(--transition), box-shadow var(--transition);
}
.garantie:hover { transform: translateY(-3px); box-shadow: var(--ombre-2); }
.garantie__icone {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--bleu-voile);
  color: var(--bleu);
  margin-bottom: 16px;
}
.garantie h3 { font-size: 1.02rem; margin-bottom: .5em; }
.garantie p { font-size: .91rem; margin: 0; }

.question {
  border-bottom: 1px solid var(--ligne);
}
.question summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--f-titre);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--texte);
  transition: color var(--transition);
}
.question summary::-webkit-details-marker { display: none; }
.question summary:hover { color: var(--bleu); }
.question summary::after {
  content: '';
  flex: 0 0 20px;
  width: 20px; height: 20px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23495267' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 260ms cubic-bezier(.22,.61,.36,1);
}
.question[open] summary::after { transform: rotate(135deg); }
.question__corps { padding-bottom: 24px; max-width: 74ch; }
.question__corps p { font-size: .97rem; }
.question[open] .question__corps { animation: question-entree 320ms ease both; }
@keyframes question-entree { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   14. Formulaires
   -------------------------------------------------------------------------- */
.carte-formulaire {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-lg);
  padding: 24px var(--gouttiere);
  box-shadow: var(--ombre-2);
}
@media (min-width: 700px) { .carte-formulaire { padding: 34px 32px; } }

.champs-duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.champs-duo > * { min-width: 0; }
@media (min-width: 620px) { .champs-duo { grid-template-columns: 1fr 1fr; gap: 18px; } }

.champ { display: block; margin-bottom: 18px; }
.champ > label,
.champ__label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  color: var(--texte);
  margin-bottom: 7px;
}
.champ input[type="text"],
.champ input[type="email"],
.champ input[type="tel"],
.champ input[type="date"],
.champ input[type="url"],
.champ select,
.champ textarea {
  width: 100%;
  font-family: var(--f-texte);
  font-size: 1rem;
  color: var(--texte);
  background: var(--blanc);
  border: 1px solid var(--ligne-forte);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  min-height: 50px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.champ select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23495267' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.champ textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none;
  border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(27, 35, 168, .12);
}
.champ input::placeholder, .champ textarea::placeholder { color: var(--texte-faible); }
.aide { font-size: .82rem; color: var(--texte-faible); margin: 7px 0 0; }

.bloc-conditionnel {
  border: 1px dashed var(--ligne-forte);
  border-radius: var(--r-md);
  background: var(--craie);
  padding: 20px 18px 4px;
  margin-bottom: 20px;
}
.bloc-conditionnel__titre {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bleu);
  margin-bottom: 16px;
}

.consentement {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--texte-doux);
  background: var(--craie);
  border: 1px solid var(--ligne);
  border-radius: var(--r-sm);
  padding: 16px;
  margin-bottom: 20px;
  cursor: pointer;
}
.consentement input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--bleu); }

.note-paiement {
  border: 1px solid var(--ligne);
  border-radius: var(--r-sm);
  background: var(--craie);
  padding: 16px;
  /* Le bloc suit toujours le bouton d envoi : sans marge haute, il lui est colle. */
  margin-top: 26px;
  margin-bottom: 20px;
  display: grid;
  gap: 12px;
}
.note-paiement__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.note-prefill {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--bleu-voile);
  border: 1px solid rgba(27, 35, 168, .18);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: .9rem;
  color: var(--bleu-fonce);
  margin-bottom: 20px;
}
.note-prefill.est-visible { display: flex; }

/* --------------------------------------------------------------------------
   15. Page de document (juridique, éditorial, exemples)
   -------------------------------------------------------------------------- */
.page-doc { padding-block: 44px var(--bloc); }
@media (min-width: 900px) { .page-doc { padding-block: 64px var(--bloc); } }
.page-doc h1 { margin-bottom: 20px; }
.page-doc h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  margin-top: 2.2em;
  margin-bottom: .6em;
  padding-top: 1.2em;
  border-top: 1px solid var(--ligne);
}
.page-doc h2:first-of-type { margin-top: 1.6em; }
.page-doc h3 { margin-top: 1.8em; }
.page-doc p, .page-doc li { font-size: 1.01rem; line-height: 1.68; }
.page-doc .tableau { margin: 28px 0; font-size: .9rem; }
.page-doc__meta {
  font-family: var(--f-mono);
  font-size: .78rem;
  line-height: 1.6;
  color: var(--texte-faible);
  padding: 14px 16px;
  background: var(--craie);
  border-radius: var(--r-sm);
  margin-bottom: 32px;
}

.fil { font-family: var(--f-mono); font-size: .74rem; color: var(--texte-faible); margin-bottom: 22px; }
.fil a { color: var(--texte-faible); text-decoration: none; }
.fil a:hover { color: var(--bleu); }

/* --------------------------------------------------------------------------
   16. Appel final + pied de page
   -------------------------------------------------------------------------- */
.appel { text-align: center; }
.appel h2 { max-width: 20ch; margin-inline: auto; }
.appel p { max-width: 56ch; margin-inline: auto 1.6em; margin-inline: auto; margin-bottom: 30px; }
.appel .actions { justify-content: center; }

.pied {
  background: var(--encre);
  color: var(--texte-nuit-doux);
  padding-block: 56px 28px;
}
.pied h4 {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--texte-nuit);
  margin-bottom: 16px;
}
.pied__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.pied__grille > * { min-width: 0; }
@media (min-width: 620px) { .pied__grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .pied__grille { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; } }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.pied li { margin: 0; }
.pied a { color: var(--texte-nuit-doux); text-decoration: none; font-size: .92rem; }
.pied a:hover { color: #fff; }
.pied p { color: var(--texte-nuit-doux); font-size: .92rem; max-width: 34ch; }
.pied__marque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-titre);
  font-weight: 600;
  color: var(--texte-nuit);
  margin-bottom: 14px;
}
.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--f-mono);
  font-size: .74rem;
  color: rgba(169, 179, 209, .75);
}

/* --------------------------------------------------------------------------
   17. Apparitions au défilement
   -------------------------------------------------------------------------- */
.apparait {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.22,.61,.36,1), transform 700ms cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--delai, 0ms);
  will-change: opacity, transform;
}
.apparait.est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .apparait { opacity: 1; transform: none; }
  .dossier { transform: none !important; }
  .bande--nuit::after { display: none; }
}

/* --------------------------------------------------------------------------
   18. Utilitaires
   -------------------------------------------------------------------------- */
.centre { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 44px; }
.mb-0 { margin-bottom: 0; }
.mb-m { margin-bottom: 28px; }
.invisible {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
[hidden] { display: none !important; }

/* ========================================================================
   Parcours de commande
   ======================================================================== */

/* Étapes numérotées de la page Commande. Le numéro reste visible quand
   l'étape est repliée : c'est le seul repère de progression sur mobile. */
.etape-cmd {
  border: 1px solid var(--ligne);
  border-radius: var(--r-lg);
  background: var(--blanc);
  padding: 22px var(--gouttiere);
  margin-bottom: 18px;
  box-shadow: var(--ombre-1);
}
@media (min-width: 700px) { .etape-cmd { padding: 28px 30px; } }

.etape-cmd__tete {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 14px;
}
.etape-cmd__tete h2,
.etape-cmd__tete h3 { margin: 0; }

.etape-cmd__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--bleu-voile);
  color: var(--bleu-fonce);
  font-family: var(--f-mono);
  font-size: .82rem;
  font-weight: 700;
}

/* Choix de la formule : deux cartes cliquables. Le libellé porte la zone de
   clic entière, pour que le doigt n'ait pas à viser la case à cocher. */
.choix-formules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (min-width: 700px) { .choix-formules { grid-template-columns: 1fr 1fr; } }

.choix-formule {
  position: relative;
  display: block;
  cursor: pointer;
  border: 1px solid var(--ligne-forte);
  border-radius: var(--r-md);
  background: var(--blanc);
  padding: 18px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.choix-formule:hover { border-color: var(--bleu-clair); box-shadow: var(--ombre-2); }
.choix-formule input { position: absolute; opacity: 0; pointer-events: none; }
.choix-formule input:focus-visible ~ .choix-formule__corps {
  outline: 2px solid var(--bleu-vif);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}
.choix-formule.est-choisie {
  border-color: var(--bleu);
  background: var(--bleu-voile);
  box-shadow: var(--ombre-2);
}

.choix-formule__corps { display: block; }
.choix-formule__rang {
  display: block;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texte-faible);
  margin-bottom: 6px;
}
.choix-formule.est-choisie .choix-formule__rang { color: var(--bleu-fonce); }
.choix-formule__nom {
  display: block;
  font-family: var(--f-titre);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--texte);
  line-height: 1.2;
}
.choix-formule__prix {
  display: block;
  font-family: var(--f-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bleu);
  margin-top: 2px;
}
.choix-formule__tva {
  display: block;
  font-size: .74rem;
  color: var(--texte-faible);
  margin-top: 2px;
}
.choix-formule.est-choisie .choix-formule__tva { color: var(--bleu-fonce); }

.choix-formule__resume {
  display: block;
  font-size: .9rem;
  color: var(--texte-doux);
  margin-top: 8px;
  line-height: 1.5;
}

/* Récapitulatif : deux colonnes, intitulé à gauche, valeur à droite. */
.tableau--recap th {
  width: 42%;
  text-align: left;
  font-weight: 600;
  color: var(--texte-doux);
  vertical-align: top;
}
.tableau--recap td { vertical-align: top; }
@media (max-width: 560px) {
  .tableau--recap th, .tableau--recap td { display: block; width: auto; }
  .tableau--recap th { border-bottom: 0; padding-bottom: 2px; }
}

/* Liste ordonnée des étapes de transmission. */
.liste-etapes { padding-left: 1.2em; margin: 0 0 16px; }
.liste-etapes li { margin-bottom: 8px; line-height: 1.55; }

/* Adresse email affichée en clair, à copier. */
.adresse-copiable {
  font-family: var(--f-mono);
  font-size: .92rem;
  color: var(--bleu-fonce);
  background: var(--bleu-voile);
  border-radius: var(--r-xs);
  padding: 2px 6px;
  word-break: break-all;
}

/* Confirmations éphémères : l'élément garde sa place pour éviter que le
   bouton voisin ne saute au moment où le message apparaît. */
.est-invisible { opacity: 0; visibility: hidden; }

/* Un champ de saisie flanque d un bouton d action (ouvrir un service tiers).
   Le bouton passe sous le champ des que la place manque. */
.champ__ligne { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.champ__ligne > input { flex: 1 1 260px; }
.champ__ligne > .btn { flex: 0 0 auto; white-space: nowrap; }
