/* ============================================================================
   assurances.fm — DESIGN SYSTEM « L'ESTHÉTIQUE DU CONTRAT »
   ----------------------------------------------------------------------------
   Direction artistique : la rigueur documentaire de l'assurance (zéro arrondi,
   filets techniques, références de dossier, tampons, hachures réglementaires,
   ombres dures) magnifiée par une typographie éditoriale de caractère.
   Fraunces (titres) × Archivo (texte) × IBM Plex Mono (data & repères).
   Palette : papier chaud / encre bleu-noir / vermillon tampon.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-normal-300-900.woff2') format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-italic-300-900.woff2') format('woff2');
  font-weight: 300 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-normal-100-900.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-italic-100-900.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/plexmono-normal-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/plexmono-normal-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/plexmono-normal-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ----------------------------------------------------------------- tokens */
:root {
  --paper: #F3F0E8;
  --paper-2: #EAE6DB;
  --card: #FBFAF6;
  --ink: #14212B;
  --ink-80: rgba(20, 33, 43, .8);
  --ink-60: rgba(20, 33, 43, .62);
  --line: rgba(20, 33, 43, .16);
  --line-soft: rgba(20, 33, 43, .09);
  --seal: #D8330F;
  --seal-dark: #A82508;
  --ok: #1D6E45;
  --ko: #B3300F;
  --paper-on-ink: rgba(243, 240, 232, .78);
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'Plex Mono', 'Courier New', monospace;
  --w-site: 1220px;
  --w-text: 78ch;
  --shadow-hard: 8px 8px 0 rgba(20, 33, 43, .10);
  --hazard: repeating-linear-gradient(-45deg, var(--ink) 0 8px, transparent 8px 16px);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--seal); color: var(--paper); }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }

.container { max-width: var(--w-site); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 12px 20px;
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------- microtype */
.eyebrow, .mono-label {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow { color: var(--ink-60); }
.eyebrow .sep { color: var(--seal); margin: 0 .5em; }

/* ===================================================================
   TOPBAR — la ligne d'état du document
   =================================================================== */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 34px; gap: 16px;
}
.topbar span {
  font-family: var(--mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-60);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar .dot { color: var(--seal); }

/* ===================================================================
   HEADER + MÉGA-MENU
   =================================================================== */
.site-header {
  position: relative;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  z-index: 50;
}
.site-header .container {
  display: flex; align-items: stretch; justify-content: space-between;
  min-height: 70px; gap: 24px;
}
.logo { display: flex; align-items: center; text-decoration: none; gap: 10px; flex-shrink: 0; }
.logo-word {
  font-family: var(--sans); font-weight: 800; font-stretch: 118%;
  font-size: 1.45rem; letter-spacing: -0.015em; color: var(--ink); line-height: 1;
}
.logo-ext {
  display: inline-block; background: var(--seal); color: #fff;
  font-family: var(--sans); font-weight: 800; font-stretch: 118%;
  font-size: 1.05rem; line-height: 1; padding: 5px 7px 4px;
  transform: translateY(-1px);
}
.logo-base {
  display: block; font-family: var(--mono); font-size: .5rem; font-weight: 500;
  letter-spacing: .34em; text-transform: uppercase; color: var(--ink-60);
  margin-top: 3px;
}
.logo:hover .logo-ext { background: var(--ink); }

.nav { display: flex; align-items: stretch; }
.nav > ul { display: flex; list-style: none; align-items: stretch; }
.nav-item { position: relative; display: flex; }
.nav-btn {
  appearance: none; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  padding: 0 15px; white-space: nowrap;
  font-family: var(--mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  border-left: 1px solid var(--line-soft);
  transition: background .12s linear, color .12s linear;
}
.nav-item:last-child .nav-btn { border-right: 1px solid var(--line-soft); }
.nav-btn .caret { font-size: .55rem; color: var(--seal); transition: transform .12s linear; }
.nav-btn:hover, .nav-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.nav-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-link {
  display: flex; align-items: center; padding: 0 15px; white-space: nowrap;
  font-family: var(--mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--seal); text-decoration: none;
  border-left: 1px solid var(--line-soft);
}
.nav-link:hover { background: var(--seal); color: #fff; }

.mega {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--card);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 24px 48px rgba(20, 33, 43, .16);
  z-index: 60;
}
.mega.open { display: block; }
.mega-inner { display: grid; grid-template-columns: 300px 1fr; }
.mega-side {
  background: var(--ink); color: var(--paper); padding: 34px 30px;
  display: flex; flex-direction: column; gap: 12px;
}
.mega-side .fam-num {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .18em;
  color: var(--seal); text-transform: uppercase;
}
.mega-side h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 560; line-height: 1.15; }
.mega-side p { font-size: .85rem; line-height: 1.6; color: var(--paper-on-ink); }
.mega-list {
  list-style: none; display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-soft); padding: 1px;
}
.mega-list li { background: var(--card); }
.mega-list a {
  display: block; height: 100%; padding: 18px 20px 16px; text-decoration: none;
  transition: background .12s linear, color .12s linear;
}
.mega-list .ref {
  display: block; font-family: var(--mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .16em; color: var(--seal); margin-bottom: 6px;
}
.mega-list .lbl { display: block; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.mega-list .txt {
  display: block; font-size: .78rem; line-height: 1.5; color: var(--ink-60); margin-top: 4px;
}
.mega-list a:hover { background: var(--ink); color: var(--paper); }
.mega-list a:hover .txt { color: var(--paper-on-ink); }
.mega-list a:hover .ref { color: var(--seal); }

.burger {
  display: none; appearance: none; background: none; border: 2px solid var(--ink);
  margin: 14px 0; padding: 0 14px; cursor: pointer;
  font-family: var(--mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  align-items: center; gap: 8px;
}
.burger:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 1120px) {
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card); border-bottom: 3px solid var(--ink);
    max-height: calc(100vh - 106px); overflow-y: auto;
    box-shadow: 0 24px 48px rgba(20, 33, 43, .2);
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; }
  .nav-item { flex-direction: column; }
  .nav-btn, .nav-link {
    width: 100%; justify-content: space-between; padding: 16px 24px;
    border-left: 0; border-bottom: 1px solid var(--line-soft); font-size: .75rem;
  }
  .mega { position: static; box-shadow: none; border-bottom: 0; }
  .mega-inner { grid-template-columns: 1fr; }
  .mega-side { padding: 20px 24px; }
  .mega-side p { display: none; }
  .mega-list { grid-template-columns: 1fr; }
  .burger { display: inline-flex; }
}

/* ===================================================================
   FIL D'ARIANE (texte seul — le silo ne remonte jamais) + RÉF.
   =================================================================== */
.doc-line {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 0 0;
}
.doc-line .path { color: var(--ink-60); }
.doc-line .path b { color: var(--ink); font-weight: 600; }
.doc-line .ref-badge {
  font-family: var(--mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1.5px solid var(--ink); padding: 5px 10px 4px;
  background: var(--card);
  white-space: nowrap;
}
.doc-line .ref-badge .lvl { color: var(--seal); }

/* ===================================================================
   HERO ARTICLE
   =================================================================== */
.hero { padding: 26px 0 0; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  font-weight: 570;
  line-height: 1.06;
  letter-spacing: -.012em;
  max-width: 21ch;
  margin: 14px 0 0;
}
.hero .chapo {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-80);
  max-width: 62ch;
  margin: 22px 0 0;
}
.hero .chapo strong { color: var(--ink); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0;
  margin: 28px 0 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero-meta span {
  font-family: var(--mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60);
  padding: 10px 18px 9px; border-right: 1px solid var(--line-soft);
}
.hero-meta span:first-child { padding-left: 0; }
.hero-meta b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- cover */
.cover { margin: 34px 0 0; position: relative; }
.cover .frame {
  position: relative; border: 1.5px solid var(--ink); background: var(--ink);
}
.cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cover .mark {
  position: absolute; width: 26px; height: 26px; pointer-events: none;
}
.cover .mark::before, .cover .mark::after { content: ""; position: absolute; background: var(--ink); }
.cover .mark::before { width: 100%; height: 1.5px; }
.cover .mark::after { width: 1.5px; height: 100%; }
.cover .m-tl { top: -13px; left: -13px; }
.cover .m-tl::before { top: 12px; } .cover .m-tl::after { left: 12px; }
.cover .m-tr { top: -13px; right: -13px; }
.cover .m-tr::before { top: 12px; } .cover .m-tr::after { right: 12px; }
.cover .m-bl { bottom: -13px; left: -13px; }
.cover .m-bl::before { bottom: 12px; } .cover .m-bl::after { left: 12px; }
.cover .m-br { bottom: -13px; right: -13px; }
.cover .m-br::before { bottom: 12px; } .cover .m-br::after { right: 12px; }
.cover figcaption {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 2px 0;
  font-family: var(--mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60);
}

/* ===================================================================
   FICHE « EN BREF » — le contrat répond d'abord
   =================================================================== */
.fiche {
  background: var(--ink); color: var(--paper);
  padding: 30px 34px 26px;
  margin: 44px 0 0;
  box-shadow: var(--shadow-hard);
}
.fiche-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-bottom: 1px solid rgba(243, 240, 232, .25);
  padding-bottom: 14px; margin-bottom: 8px;
}
.fiche-head .t {
  font-family: var(--mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--seal);
}
.fiche-head .r {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--paper-on-ink);
}
.fiche dl { display: block; }
.fiche .row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dotted rgba(243, 240, 232, .28);
}
.fiche .row:last-child { border-bottom: 0; }
.fiche dt {
  font-family: var(--mono); font-size: .71rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--paper-on-ink);
  flex-shrink: 0;
}
.fiche .lead-dots { flex: 1; border-bottom: 1px dotted rgba(243, 240, 232, .28); transform: translateY(-4px); }
.fiche dd { font-size: .92rem; font-weight: 600; text-align: right; max-width: 60%; line-height: 1.45; }

/* ===================================================================
   SOMMAIRE DU DOSSIER
   =================================================================== */
.toc {
  border: 1.5px solid var(--ink);
  background: var(--card);
  margin: 44px 0 0;
}
.toc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-2);
}
.toc-head span {
  font-family: var(--mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
}
.toc ol {
  list-style: none; column-count: 2; column-gap: 1px; padding: 8px 0;
}
.toc li { break-inside: avoid; }
.toc a {
  display: flex; gap: 14px; align-items: baseline;
  padding: 9px 22px; text-decoration: none;
  font-size: .92rem; font-weight: 500; line-height: 1.4;
  transition: background .12s linear, color .12s linear;
}
.toc a .n {
  font-family: var(--mono); font-size: .71rem; font-weight: 600; color: var(--seal);
}
.toc a:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 700px) { .toc ol { column-count: 1; } }

/* ===================================================================
   CORPS D'ARTICLE
   =================================================================== */
.art {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0 0;
  counter-reset: art;
}
.art > h2 {
  counter-increment: art;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 580;
  line-height: 1.18;
  letter-spacing: -.008em;
  margin: 64px 0 0;
  padding-top: 26px;
  border-top: 1.5px solid var(--ink);
  position: relative;
}
.art > h2::before {
  content: "ART. " counter(art, decimal-leading-zero);
  display: block;
  font-family: var(--mono); font-size: .6875rem; font-weight: 600;
  letter-spacing: .2em; color: var(--seal);
  margin-bottom: 10px;
}
.art h3 {
  font-family: var(--sans); font-weight: 750; font-size: 1.17rem;
  line-height: 1.35; margin: 40px 0 0; letter-spacing: -.005em;
}
.art h4 { font-weight: 700; font-size: 1.02rem; margin: 28px 0 0; }
.art p { margin: 18px 0 0; max-width: var(--w-text); }
.art > ul:not([class]), .art > ol:not([class]) { margin: 18px 0 0; padding-left: 22px; max-width: var(--w-text); }
.art li { margin: 8px 0; }
.art ul:not([class]) li::marker { content: "■  "; color: var(--seal); font-size: .7em; }
.art a:not([class]) {
  color: var(--ink); font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--seal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: background .1s linear, color .1s linear;
}
.art a:not([class]):hover { background: var(--seal); color: #fff; text-decoration-color: var(--seal); }
.art strong { font-weight: 700; }

/* --------------------------------------------------------------- tables */
.tbl-wrap {
  margin: 26px 0 0;
  overflow-x: auto;
  border: 1.5px solid var(--ink);
  background: var(--card);
  box-shadow: var(--shadow-hard);
}
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; min-width: 560px; }
.tbl caption {
  caption-side: top; text-align: left;
  font-family: var(--mono); font-size: .625rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--paper);
  background: var(--ink); padding: 10px 16px 9px;
}
.tbl thead th {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: .655rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; text-align: left;
  padding: 12px 16px; border-left: 1px solid rgba(243, 240, 232, .18);
  vertical-align: bottom;
}
.tbl thead th:first-child { border-left: 0; }
.tbl tbody th {
  text-align: left; font-weight: 700; padding: 12px 16px;
  border-top: 1px solid var(--line); border-left: 0; font-size: .88rem;
  background: var(--paper-2);
}
.tbl td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line-soft);
  vertical-align: top;
}
.tbl td:first-child { border-left: 0; }
.tbl tbody tr:hover td, .tbl tbody tr:hover th { background: rgba(216, 51, 15, .05); }
.tbl .num { font-family: var(--mono); font-size: .82rem; white-space: nowrap; }
.tbl .oui { color: var(--ok); font-weight: 700; }
.tbl .non { color: var(--ko); font-weight: 700; }

/* ------------------------------------------------- plus / moins (2 col) */
.pm {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1.5px solid var(--ink);
  margin: 26px 0 0;
  background: var(--card);
  box-shadow: var(--shadow-hard);
}
.pm > div { padding: 22px 26px 24px; }
.pm .pm-plus { border-right: 1.5px solid var(--ink); }
.pm h4 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--mono); font-size: .71rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
.pm h4::before {
  content: "+"; display: grid; place-items: center;
  width: 22px; height: 22px; border: 1.5px solid currentColor;
  font-size: .9rem; font-weight: 600;
}
.pm .pm-plus h4 { color: var(--ok); }
.pm .pm-moins h4 { color: var(--ko); }
.pm .pm-moins h4::before { content: "–"; }
.pm ul { list-style: none; }
.pm li {
  position: relative; padding: 8px 0 8px 20px; font-size: .92rem; line-height: 1.55;
  border-top: 1px dotted var(--line);
}
.pm li:first-child { border-top: 0; }
.pm li::before { content: "■"; position: absolute; left: 0; top: 11px; font-size: .5rem; }
.pm .pm-plus li::before { color: var(--ok); }
.pm .pm-moins li::before { color: var(--ko); }
@media (max-width: 700px) {
  .pm { grid-template-columns: 1fr; }
  .pm .pm-plus { border-right: 0; border-bottom: 1.5px solid var(--ink); }
}

/* ------------------------------------------------------------- encadrés */
.note {
  position: relative;
  border: 1.5px solid var(--ink);
  background: var(--card);
  padding: 26px 28px 22px;
  margin: 34px 0 0;
  max-width: var(--w-text);
}
.note .note-label {
  position: absolute; top: -9px; left: 18px;
  background: var(--card); padding: 0 10px;
  font-family: var(--mono); font-size: .625rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  margin: 0; line-height: 1.4;
}
.note p { margin: 10px 0 0; font-size: .95rem; }
.note p:first-of-type { margin-top: 0; }
.note ul, .note ol { margin: 10px 0 0; padding-left: 20px; font-size: .95rem; }
.note--cle { border-left: 6px solid var(--seal); }
.note--cle .note-label { color: var(--seal); }
.note--info { border-left: 6px solid var(--ink); }
.note--alerte::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(-45deg, var(--seal) 0 9px, transparent 9px 18px);
}
.note--alerte { padding-top: 30px; }
.note--alerte .note-label { color: var(--seal); top: 14px; background: none; }
.note--alerte p:first-of-type { margin-top: 16px; }
.note--chiffre { display: grid; grid-template-columns: auto 1fr; gap: 6px 26px; align-items: baseline; }
.note--chiffre .note-num {
  font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 590; color: var(--seal); line-height: 1; letter-spacing: -.02em;
}
.note--chiffre p { grid-column: 2; }
@media (max-width: 600px) {
  .note--chiffre { grid-template-columns: 1fr; }
  .note--chiffre p { grid-column: 1; }
}

/* ---------------------------------------------------------------- étapes */
.steps { list-style: none; counter-reset: step; margin: 26px 0 0; max-width: var(--w-text); }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 62px;
  margin: 0;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--ink);
  background: var(--card);
  font-family: var(--mono); font-size: .8rem; font-weight: 600;
  z-index: 1;
}
.steps > li::after {
  content: ""; position: absolute; left: 20px; top: 40px; bottom: 0;
  width: 1px; background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps > li > strong:first-child { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.steps p { margin: 6px 0 0; font-size: .95rem; }

/* ------------------------------------------------------------ checklists */
.check, .xlist { list-style: none; margin: 20px 0 0; max-width: var(--w-text); }
.check li, .xlist li {
  position: relative; padding: 7px 0 7px 34px; font-size: .97rem;
  border-bottom: 1px dotted var(--line);
}
.check li:last-child, .xlist li:last-child { border-bottom: 0; }
.check li::before, .xlist li::before {
  position: absolute; left: 0; top: 8px;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border: 1.5px solid var(--ink);
  font-size: .7rem; font-weight: 700;
  background: var(--card);
}
.check li::before { content: "✓"; color: var(--ok); }
.xlist li::before { content: "✕"; color: var(--ko); }

/* ----------------------------------------------------------- définitions */
.def { margin: 26px 0 0; border: 1.5px solid var(--ink); background: var(--card); box-shadow: var(--shadow-hard); }
.def > div { padding: 16px 24px 18px; border-top: 1px solid var(--line); }
.def > div:first-child { border-top: 0; }
.def dt {
  font-family: var(--mono); font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--seal);
}
.def dd { margin: 6px 0 0; font-size: .93rem; line-height: 1.65; }

/* ----------------------------------------------------------------- KPIs */
.kpi {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5px; background: var(--ink); border: 1.5px solid var(--ink);
  margin: 26px 0 0;
  box-shadow: var(--shadow-hard);
}
.kpi-item { background: var(--card); padding: 22px 20px 18px; }
.kpi-num {
  display: block;
  font-family: var(--serif); font-weight: 590; letter-spacing: -.02em;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.05; color: var(--ink);
}
.kpi-num em { font-style: normal; color: var(--seal); }
.kpi-label {
  display: block; margin-top: 8px;
  font-family: var(--mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-60);
  line-height: 1.55;
}

/* ---------------------------------------------------------------- citation */
.avis {
  border-left: 4px solid var(--seal);
  padding: 6px 0 6px 28px;
  margin: 34px 0 0;
  max-width: var(--w-text);
}
.avis p {
  font-family: var(--serif); font-style: italic; font-weight: 480;
  font-size: 1.28rem; line-height: 1.5; letter-spacing: -.005em; margin: 0;
}
.avis footer {
  margin-top: 12px;
  font-family: var(--mono); font-size: .655rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-60);
}

/* ===================================================================
   BLOC SILO — « POUR ALLER PLUS LOIN » (liens descendants uniquement)
   =================================================================== */
.fils { margin: 70px 0 0; }
.fils-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 18px;
  border-top: 3px solid var(--ink);
  padding-top: 18px; margin-bottom: 24px;
}
.fils-head h2 {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 580; line-height: 1.1;
}
.fils-head .count {
  font-family: var(--mono); font-size: .655rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--seal);
  white-space: nowrap; padding-bottom: 6px;
}
.fils-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fils-grid.n1, .fils-grid.n2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .fils-grid, .fils-grid.n1, .fils-grid.n2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .fils-grid, .fils-grid.n1, .fils-grid.n2 { grid-template-columns: 1fr; } }
.fcard {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--ink); background: var(--card);
  text-decoration: none;
  transition: transform .12s linear, box-shadow .12s linear;
  box-shadow: 0 0 0 rgba(20,33,43,0);
}
.fcard:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--seal); }
.fcard .fcard-img { border-bottom: 1.5px solid var(--ink); background: var(--paper-2); }
.fcard .fcard-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.fcard .fcard-body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fcard .ref {
  font-family: var(--mono); font-size: .61rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--seal);
}
.fcard h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 750; line-height: 1.32; letter-spacing: -.005em; }
.fcard p { font-size: .82rem; line-height: 1.55; color: var(--ink-60); }
.fcard .go {
  margin-top: auto; padding-top: 12px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: .625rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.fcard .go::after { content: "→"; font-size: .9rem; color: var(--seal); }
.fcard:hover .go::after { transform: translateX(4px); }

/* ===================================================================
   FAQ
   =================================================================== */
.faq { margin: 70px 0 0; }
.faq-head {
  border-top: 3px solid var(--ink); padding-top: 18px; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 18px;
}
.faq-head h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 580; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 20px 2px;
  font-weight: 700; font-size: 1.05rem; line-height: 1.45; letter-spacing: -.005em;
  transition: color .12s linear;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono); font-size: 1.25rem; font-weight: 500; color: var(--seal);
  flex-shrink: 0; transition: transform .12s linear; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--seal); }
.faq .faq-a { padding: 0 2px 24px; max-width: var(--w-text); }
.faq .faq-a p { margin: 0 0 12px; font-size: .97rem; color: var(--ink-80); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ===================================================================
   PIED D'ARTICLE — signature & tampon
   =================================================================== */
.art-sign {
  margin: 70px 0 0;
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  padding: 26px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  flex-wrap: wrap;
}
.art-sign .who { max-width: 58ch; }
.art-sign .who b { display: block; font-size: .98rem; }
.art-sign .who span { font-size: .84rem; color: var(--ink-60); line-height: 1.6; }
.tampon {
  flex-shrink: 0;
  transform: rotate(-4deg);
  border: 3px double var(--seal);
  color: var(--seal);
  padding: 10px 16px;
  font-family: var(--mono); font-size: .655rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  text-align: center; line-height: 1.8;
  opacity: .92;
}

/* ===================================================================
   HOMEPAGE
   =================================================================== */
.home-hero { padding: 60px 0 0; position: relative; }
.home-hero .eyebrow { display: block; }
.home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 570; line-height: 1.0; letter-spacing: -.018em;
  max-width: 18ch;
  margin: 22px 0 0;
}
.home-hero h1 em { font-style: italic; font-weight: 480; color: var(--seal); }
.home-hero .chapo { font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.65; max-width: 60ch; margin: 26px 0 0; color: var(--ink-80); }
.home-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
@media (max-width: 980px) { .home-hero-grid { grid-template-columns: 1fr; } }

.band {
  margin: 60px 0 0;
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  overflow: hidden; white-space: nowrap;
  padding: 9px 0;
  background: var(--paper-2);
}
.band-track {
  display: inline-block;
  font-family: var(--mono); font-size: .655rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-60);
  animation: band 90s linear infinite;
  padding-right: 50px;
}
.band .dot { color: var(--seal); margin: 0 1.2em; }
@keyframes band { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.fam-section { margin: 78px 0 0; }
.fam-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: baseline;
  border-top: 3px solid var(--ink);
  padding-top: 18px; margin-bottom: 26px;
}
.fam-band .fam-idx {
  font-family: var(--mono); font-size: .8rem; font-weight: 600;
  letter-spacing: .2em; color: var(--seal);
}
.fam-band h2 {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 580; line-height: 1.05; letter-spacing: -.012em;
}
.fam-band .fam-tag {
  font-family: var(--mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-60);
  text-align: right; max-width: 320px; line-height: 1.7;
}
@media (max-width: 760px) {
  .fam-band { grid-template-columns: auto 1fr; }
  .fam-band .fam-tag { display: none; }
}

/* ------------------------------------------------------- section génériques */
.sec { margin: 78px 0 0; }
.sec-head {
  border-top: 3px solid var(--ink);
  padding-top: 18px; margin-bottom: 26px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.sec-head h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 580; line-height: 1.08; }
.sec-head .eyebrow { padding-bottom: 8px; white-space: nowrap; }
.sec > .container > p.intro, .sec p.intro { max-width: 70ch; font-size: 1.05rem; margin-bottom: 26px; color: var(--ink-80); }

/* ===================================================================
   PLAN DU SITE (l'index du silo)
   =================================================================== */
.plan .fam-block { margin: 54px 0 0; }
.plan ul { list-style: none; }
.plan .l1-block {
  border: 1.5px solid var(--ink); background: var(--card);
  margin: 22px 0 0; box-shadow: var(--shadow-hard);
}
.plan .l1-head {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 16px 24px; background: var(--paper-2);
  border-bottom: 1.5px solid var(--ink);
}
.plan .l1-head a { font-weight: 750; font-size: 1.1rem; text-decoration: none; }
.plan .l1-head a:hover { color: var(--seal); }
.plan .l1-head .ref { font-family: var(--mono); font-size: .625rem; letter-spacing: .16em; color: var(--seal); text-transform: uppercase; }
.plan .lvl2 { padding: 10px 24px 18px; columns: 2; column-gap: 40px; }
@media (max-width: 760px) { .plan .lvl2 { columns: 1; } }
.plan .lvl2 > li { break-inside: avoid; padding: 7px 0; }
.plan .lvl2 > li > a { font-weight: 600; font-size: .93rem; text-decoration: none; }
.plan a:hover { color: var(--seal); }
.plan .lvl3 { padding: 4px 0 2px 18px; border-left: 1px solid var(--line); margin-left: 2px; }
.plan .lvl3 > li { padding: 3px 0; }
.plan .lvl3 > li > a { font-size: .84rem; font-weight: 400; color: var(--ink-80); text-decoration: none; }
.plan .lvl4 { padding: 2px 0 2px 16px; border-left: 1px dotted var(--line); margin-left: 2px; }
.plan .lvl4 > li { padding: 2px 0; }
.plan .lvl4 > li > a { font-size: .8rem; color: var(--ink-60); text-decoration: none; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { margin-top: 110px; background: var(--ink); color: var(--paper); }
.foot-top { border-bottom: 1px solid rgba(243, 240, 232, .18); }
.foot-top .container {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap;
}
.foot-logo .logo-word { color: var(--paper); font-size: 1.9rem; }
.foot-logo .logo-ext { font-size: 1.35rem; }
.foot-logo .logo-base { color: var(--paper-on-ink); font-size: .56rem; margin-top: 6px; }
.foot-claim { max-width: 44ch; font-size: .9rem; line-height: 1.7; color: var(--paper-on-ink); }
.foot-nav .container {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px;
  padding-top: 40px; padding-bottom: 46px;
}
@media (max-width: 1060px) { .foot-nav .container { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .foot-nav .container { grid-template-columns: repeat(2, 1fr); } }
.foot-col h3 {
  font-family: var(--mono); font-size: .625rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--seal);
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin: 7px 0; }
.foot-col a {
  font-size: .82rem; color: var(--paper-on-ink); text-decoration: none; line-height: 1.5;
}
.foot-col a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--seal); text-underline-offset: 3px; }
.foot-bottom { border-top: 1px solid rgba(243, 240, 232, .18); }
.foot-bottom .container {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap;
}
.foot-bottom span, .foot-bottom a {
  font-family: var(--mono); font-size: .61rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--paper-on-ink);
}
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: var(--paper); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.barcode {
  height: 26px; width: 130px; flex-shrink: 0;
  background: repeating-linear-gradient(90deg,
    var(--paper) 0 2px, transparent 2px 5px,
    var(--paper) 5px 6px, transparent 6px 11px,
    var(--paper) 11px 14px, transparent 14px 16px,
    var(--paper) 16px 17px, transparent 17px 22px);
  opacity: .75;
}

/* ===================================================================
   BOUTONS
   =================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px 14px;
  border: 2px solid var(--ink);
  background: var(--card); color: var(--ink);
  font-family: var(--mono); font-size: .71rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  box-shadow: 5px 5px 0 rgba(20, 33, 43, .18);
  transition: transform .1s linear, box-shadow .1s linear, background .1s linear, color .1s linear;
}
.btn::after { content: "→"; color: var(--seal); }
.btn:hover { transform: translate(3px, 3px); box-shadow: 0 0 0 rgba(20,33,43,0); background: var(--ink); color: var(--paper); }
.btn--seal { background: var(--seal); border-color: var(--seal); color: #fff; box-shadow: 5px 5px 0 rgba(20, 33, 43, .8); }
.btn--seal::after { color: #fff; }
.btn--seal:hover { background: var(--seal-dark); border-color: var(--seal-dark); color: #fff; }

/* ===================================================================
   PAGE 404 & pages légales
   =================================================================== */
.legal { max-width: 820px; margin: 0 auto; padding: 30px 0 0; }
.legal h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 570; line-height: 1.1; margin: 14px 0 24px; }
.legal h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 580; margin: 44px 0 0; padding-top: 20px; border-top: 1.5px solid var(--ink); }
.legal p, .legal li { margin: 14px 0 0; }
.legal ul { padding-left: 22px; }
.err-hero { text-align: center; padding: 90px 0 40px; }
.err-hero .code {
  font-family: var(--serif); font-weight: 590; letter-spacing: -.03em;
  font-size: clamp(6rem, 18vw, 12rem); line-height: .9; color: var(--ink);
}
.err-hero .code em { font-style: italic; color: var(--seal); }
.err-hero p { max-width: 52ch; margin: 26px auto 34px; }

/* ------------------------------------------------------------- utilitaires */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
main { min-height: 55vh; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
