/* ==========================================================================
linkavista-france.fr
Feuille de style unique, ecrite a la main.
Concept : site institutionnel francais, sobre, grilles nettes,
filets fins, hierarchie tres lisible, mode clair uniquement.
========================================================================== */

/* --------------------------------------------------------------------------
1. Variables
-------------------------------------------------------------------------- */
:root {
  /* Couleurs de fond */
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --surface-head: #eef0f4;
  /* Texte */
  --text: #161a1f;
  --text-2: #5a6472;
  --text-3: #7c8595;
  --text-invert: #ffffff;
  /* Accents */
  --accent: #1d4ed8;
  --accent-dark: #1637a0;
  --accent-soft: #e8eefc;
  --accent-2: #b91c1c;
  --accent-2-soft: #fbeaea;
  /* Structure */
  --line: #d8dde4;
  --line-strong: #b9c1cc;
  --line-soft: #e7eaee;
  /* Etats */
  --ok: #146c43;
  --ok-soft: #e7f3ec;
  --warn: #8a5a00;
  --warn-soft: #fdf3e2;
  /* Rayons : angles tres fermes, style administratif */
  --r-xs: 2px;
  --r-sm: 2px;
  --r-md: 3px;
  --r-lg: 4px;
  /* Ombres : quasi inexistantes, la structure passe par les filets */
  --sh-0: none;
  --sh-1: 0 1px 0 rgba(22, 26, 31, 0.04);
  --sh-2: 0 2px 10px rgba(22, 26, 31, 0.06);
  /* Espacements */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 88px;
  /* Transitions */
  --t-fast: 160ms cubic-bezier(0.2, 0, 0.2, 1);
  --t-base: 240ms cubic-bezier(0.2, 0, 0.2, 1);
  --t-slow: 350ms cubic-bezier(0.16, 0.6, 0.24, 1);
  /* Grille */
  --wrap: 1180px;
  --wrap-narrow: 880px;
  --header-h: 68px;
  /* Typographie */
  --font-title: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

/* --------------------------------------------------------------------------
2. Reset moderne
-------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  color: var(--text);
  margin: 0 0 var(--sp-4);
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 700;
  text-wrap: balance;
}
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
strong, b { font-weight: 600; color: var(--text); }
abbr[title] { text-decoration: underline dotted; cursor: help; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
::selection { background: var(--accent-soft); color: var(--text); }

/* --------------------------------------------------------------------------
3. Utilitaires de structure
-------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: var(--wrap-narrow); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
4. Liseré tricolore et barre de progression
-------------------------------------------------------------------------- */
.tricolore {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.tricolore span:nth-child(1) { background: #1d4ed8; }
.tricolore span:nth-child(2) {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tricolore span:nth-child(3) { background: #b91c1c; }
.progress-rail {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 119;
  pointer-events: none;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-2);
  transition: width 90ms linear;
}

/* --------------------------------------------------------------------------
5. En tete et navigation
-------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 110;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: height var(--t-base), box-shadow var(--t-base);
  height: var(--header-h);
}
.site-header.is-compact { height: 56px; box-shadow: var(--sh-2); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: #fff;
  padding: 2px;
}
.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.2;
  margin-top: 1px;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-desktop a {
  position: relative;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--r-xs);
  transition: color var(--t-fast);
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base);
}
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--text); }
.nav-desktop a:hover::after, .nav-desktop a.is-active::after { transform: scaleX(1); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--accent);
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.header-cta:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-sm);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform var(--t-base), opacity var(--t-fast);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile {
  position: fixed;
  top: calc(var(--header-h) + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-2);
  z-index: 109;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.nav-mobile.is-open { max-height: 78vh; overflow-y: auto; }
.nav-mobile ul { list-style: none; margin: 0; padding: 8px 24px 24px; }
.nav-mobile li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.nav-mobile a {
  display: block;
  padding: 13px 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .btn { margin-top: 18px; width: 100%; justify-content: center; }

/* En tete desktop : la ligne reste toujours sur un seul rang, aucun libelle coupe.
   Ces regles ne concernent que le desktop, le panneau mobile empile normalement. */
@media (min-width: 1121px) {
  .header-inner {
    flex-wrap: nowrap;
    min-width: 0;
  }
  .brand {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .brand .brand-name {
    display: block;
    white-space: nowrap;
  }
  .brand .brand-sub { white-space: nowrap; }
  .nav-desktop {
    flex-wrap: nowrap;
    flex: 0 1 auto;
  }
  .nav-desktop a { white-space: nowrap; }
  .header-cta {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
6. Boutons
-------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
  padding: 15px 26px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-align: center;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: none;
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); background: var(--bg-alt); }
.btn-red { background: #fff; color: var(--accent-2); border-color: var(--accent-2); }
.btn-red:hover { background: var(--accent-2); color: #fff; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* --------------------------------------------------------------------------
7. Hero
-------------------------------------------------------------------------- */
.hero {
  padding: calc(var(--header-h) + 60px) 0 var(--sp-8);
  background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: var(--sp-8);
  align-items: start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #cfdcfa;
  border-radius: var(--r-xs);
  padding: 6px 12px;
  margin-bottom: var(--sp-4);
}
.eyebrow.is-red {
  color: var(--accent-2);
  background: var(--accent-2-soft);
  border-color: #f2cfcf;
}
h1 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
}
.lede {
  font-size: clamp(1.04rem, 1rem + 0.3vw, 1.2rem);
  color: var(--text-2);
  max-width: 62ch;
  line-height: 1.68;
}

/* Signature courte sous le h1 */
.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: var(--sp-5) 0;
  flex-wrap: wrap;
}
.byline img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.byline-text { font-size: 0.88rem; color: var(--text-2); line-height: 1.45; }
.byline-text strong {
  display: block;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-weight: 600;
}
.byline-note {
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-3);
  border-left: 3px solid var(--accent-2);
  padding-left: 10px;
}

/* Encadre d identite rapide */
.idcard {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}
.idcard-head {
  background: var(--surface-head);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.idcard-body { padding: 6px 18px 14px; }
.idcard dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.idcard dt, .idcard dd {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
  font-size: 0.9rem;
}
.idcard dt { color: var(--text-2); font-weight: 500; padding-right: 12px; }
.idcard dd { color: var(--text); font-weight: 600; }
.idcard dl > *:nth-last-child(1), .idcard dl > *:nth-last-child(2) { border-bottom: 0; }
.hero-figure {
  margin: var(--sp-5) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.hero-figure img { width: 100%; height: auto; object-fit: cover; }
.hero-figure figcaption {
  font-size: 0.8rem;
  color: var(--text-3);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

/* Note globale */
.score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-title);
}
.score-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.score-max { font-size: 0.85rem; color: var(--text-3); font-weight: 500; }

/* --------------------------------------------------------------------------
8. Sommaire numerote encadre
-------------------------------------------------------------------------- */
.toc {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  margin-top: var(--sp-6);
  overflow: hidden;
}
.toc-head {
  background: var(--surface-head);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 8px 0;
  columns: 2;
  column-gap: 0;
}
.toc li { counter-increment: toc; margin: 0; break-inside: avoid; }
.toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 9px 18px;
  color: var(--text);
  font-size: 0.92rem;
  border-left: 3px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
  flex: none;
}
.toc a:hover { background: var(--bg-alt); border-left-color: var(--accent-2); }

/* --------------------------------------------------------------------------
9. Sections
-------------------------------------------------------------------------- */
.section { padding: var(--sp-9) 0; border-bottom: 1px solid var(--line-soft); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 76ch; margin-bottom: var(--sp-6); }
.section-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.section h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.35vw, 2.15rem);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--text);
  display: inline-block;
}
.section h3 {
  font-size: clamp(1.12rem, 1.02rem + 0.4vw, 1.32rem);
  font-weight: 600;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}
.section h4 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}
.section p, .section li { color: #2b323b; }
.section .lede-sec { font-size: 1.06rem; color: var(--text-2); }
.prose { max-width: 78ch; }

/* Lien de contenu avec soulignement anime */
.section a:not(.btn):not(.toc a):not(.card-link) {
  color: var(--accent);
  font-weight: 500;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--t-base), color var(--t-fast);
  padding-bottom: 1px;
}
.section a:not(.btn):hover { background-size: 100% 1px; color: var(--accent-dark); }

/* --------------------------------------------------------------------------
10. Blocs fiche officielle
-------------------------------------------------------------------------- */
.fiche {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  margin: var(--sp-5) 0;
}
.fiche-head {
  background: var(--surface-head);
  border-bottom: 1px solid var(--line);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.fiche-head .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.fiche-head .ref {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.fiche-body { padding: 22px 20px; }
.fiche-body > *:last-child { margin-bottom: 0; }
.fiche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-4);
}

/* Encadre reference legale */
.ref-legale {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--r-xs);
  margin: var(--sp-5) 0;
  font-size: 0.94rem;
}
.ref-legale .ref-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
}
.ref-legale p:last-child { margin-bottom: 0; }
.note-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: #fbfcfe;
  padding: 16px 20px;
  border-radius: var(--r-xs);
  margin: var(--sp-5) 0;
  font-size: 0.94rem;
}
.note-box .ref-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.note-box p:last-child, .note-box ul:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
11. Tableaux
-------------------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow-x: auto;
  background: #fff;
  margin: var(--sp-5) 0;
  -webkit-overflow-scrolling: touch;
}
table { font-size: 0.92rem; min-width: 560px; }
caption {
  text-align: left;
  padding: 14px 18px;
  background: var(--surface-head);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
thead th {
  background: #fff;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text);
  padding: 13px 18px;
  border-bottom: 2px solid var(--text);
  white-space: nowrap;
}
tbody td, tbody th {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  text-align: left;
}
tbody th { font-weight: 600; color: var(--text); width: 34%; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fafbfc; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: var(--accent-soft); }

/* Tableau legal deux colonnes */
.table-legal tbody th {
  width: 38%;
  font-weight: 500;
  color: var(--text-2);
  font-size: 0.88rem;
}
.table-legal tbody td { font-weight: 600; }
.table-legal { min-width: 480px; }
.cell-mono { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: -0.01em; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--text-2);
  white-space: nowrap;
}
.tag-blue {
  background: var(--accent-soft);
  border-color: #cfdcfa;
  color: var(--accent-dark);
}
.tag-red {
  background: var(--accent-2-soft);
  border-color: #f2cfcf;
  color: var(--accent-2);
}
.tag-ok { background: var(--ok-soft); border-color: #cfe4d8; color: var(--ok); }
.tag-warn { background: var(--warn-soft); border-color: #ecd9b4; color: var(--warn); }
.table-note { font-size: 0.84rem; color: var(--text-3); margin-top: -8px; }

/* Apparition sequencee des lignes */
.table-anim tbody tr { opacity: 0; transform: translateY(8px); }
.table-anim.is-visible tbody tr {
  animation: rowIn 350ms cubic-bezier(0.16, 0.6, 0.24, 1) forwards;
}
.table-anim.is-visible tbody tr:nth-child(1) { animation-delay: 40ms; }
.table-anim.is-visible tbody tr:nth-child(2) { animation-delay: 80ms; }
.table-anim.is-visible tbody tr:nth-child(3) { animation-delay: 120ms; }
.table-anim.is-visible tbody tr:nth-child(4) { animation-delay: 160ms; }
.table-anim.is-visible tbody tr:nth-child(5) { animation-delay: 200ms; }
.table-anim.is-visible tbody tr:nth-child(6) { animation-delay: 240ms; }
.table-anim.is-visible tbody tr:nth-child(7) { animation-delay: 280ms; }
.table-anim.is-visible tbody tr:nth-child(8) { animation-delay: 320ms; }
.table-anim.is-visible tbody tr:nth-child(n + 9) { animation-delay: 360ms; }
@keyframes rowIn {
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
12. Cartes et grilles
-------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--sp-4);
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  padding: 22px;
  transition: border-color var(--t-base), transform var(--t-base);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 { margin-top: 0; font-size: 1.06rem; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--r-xs);
  margin-bottom: 12px;
}
.card-num.is-red { border-color: var(--accent-2); color: var(--accent-2); }
.card-meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 8px;
}

/* Chiffres cles */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  margin: var(--sp-6) 0;
}
.stat {
  padding: 24px 20px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stat-value {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.05;
  display: block;
}
.stat-label {
  font-size: 0.84rem;
  color: var(--text-2);
  margin-top: 6px;
  display: block;
}
.stat-src {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 6px;
  display: block;
}

/* --------------------------------------------------------------------------
13. Carte de France SVG
-------------------------------------------------------------------------- */
.map-block {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: center;
}
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  padding: 18px;
}
.map-frame svg { width: 100%; height: auto; }
.map-outline {
  fill: #f2f4f7;
  stroke: var(--line-strong);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.map-pin-halo { fill: rgba(185, 28, 28, 0.16); transform-origin: center; }
.map-frame.is-visible .map-pin-halo { animation: pulse 2400ms ease-in-out infinite; }
.map-pin { fill: var(--accent-2); }
.map-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  fill: var(--text);
  letter-spacing: 0.06em;
}
.map-caption {
  font-size: 0.8rem;
  color: var(--text-3);
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; r: 13; }
  50% { opacity: 0.15; r: 19; }
}

/* --------------------------------------------------------------------------
14. Onglets
-------------------------------------------------------------------------- */
.tabs {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  margin: var(--sp-5) 0;
}
.tablist {
  display: flex;
  flex-wrap: wrap;
  background: var(--surface-head);
  border-bottom: 1px solid var(--line);
  gap: 0;
}
.tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.7); }
.tab[aria-selected="true"] {
  background: #fff;
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tabpanel { padding: 24px 22px; }
.tabpanel[hidden] { display: none; }
.tabpanel > *:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
15. Listes de controle
-------------------------------------------------------------------------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  counter-reset: chk;
}
.checklist li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.checklist li:last-child { border-bottom: 0; }
.chk-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.chk-item:hover { background: var(--bg-alt); }
.chk-item input {
  appearance: none;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: #fff;
  position: relative;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.chk-item input:checked { background: var(--accent); border-color: var(--accent); }
.chk-item input:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.chk-item input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chk-text { font-size: 0.94rem; line-height: 1.6; }
.chk-text strong { display: block; margin-bottom: 2px; }
.chk-item input:checked ~ .chk-text { color: var(--text-3); }
.chk-item input:checked ~ .chk-text strong {
  text-decoration: line-through;
  color: var(--text-3);
}
.chk-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface-head);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  flex-wrap: wrap;
}
.chk-meter {
  flex: 1 1 160px;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  min-width: 120px;
}
.chk-meter span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width var(--t-base);
}
.chk-reset {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.chk-reset:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* Listes decoratives */
.list-check { list-style: none; padding: 0; }
.list-check li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 11px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.list-dash { list-style: none; padding: 0; }
.list-dash li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.list-dash li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 2px;
  background: var(--accent-2);
}

/* --------------------------------------------------------------------------
16. Profils
-------------------------------------------------------------------------- */
.profil {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--t-base), transform var(--t-base);
}
.profil:hover { border-color: var(--accent); transform: translateY(-2px); }
.profil-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.profil-badge {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid #cfdcfa;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent-dark);
}
.profil h3 { margin: 0; font-size: 1.02rem; }
.profil-fit {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
}
.profil p { font-size: 0.93rem; margin-bottom: 0; }
.profil ul { margin: 0; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
17. Glossaire
-------------------------------------------------------------------------- */
.glossaire {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  margin: var(--sp-5) 0;
}
.glossaire dl { margin: 0; }
.gl-row {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
  border-bottom: 1px solid var(--line-soft);
}
.gl-row:last-child { border-bottom: 0; }
.gl-row dt {
  padding: 16px 18px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.96rem;
  background: #fafbfc;
  border-right: 1px solid var(--line-soft);
}
.gl-row dd {
  margin: 0;
  padding: 16px 18px;
  font-size: 0.92rem;
  color: #2b323b;
}
.gl-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-head);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.gl-filter label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.gl-filter input {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  font-size: 0.92rem;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  background: #fff;
  color: var(--text);
}
.gl-filter input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.gl-empty { padding: 20px 18px; font-size: 0.92rem; color: var(--text-3); }

/* --------------------------------------------------------------------------
18. FAQ
-------------------------------------------------------------------------- */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  margin-top: var(--sp-5);
}
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 0;
  text-align: left;
  padding: 18px 20px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: background var(--t-fast), color var(--t-fast);
}
.faq-q:hover { background: var(--bg-alt); color: var(--accent); }
.faq-q[aria-expanded="true"] { color: var(--accent); background: #fbfcfe; }
.faq-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  position: relative;
  margin-top: 2px;
  transition: border-color var(--t-fast);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-2);
  left: 50%;
  top: 50%;
  transition: transform var(--t-base), background var(--t-fast);
}
.faq-icon::before { width: 10px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 10px; transform: translate(-50%, -50%); }
.faq-q[aria-expanded="true"] .faq-icon { border-color: var(--accent); }
.faq-q[aria-expanded="true"] .faq-icon::before, .faq-q[aria-expanded="true"] .faq-icon::after {
  background: var(--accent);
}
.faq-q[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height var(--t-slow); }
.faq-a-inner { padding: 0 20px 20px; font-size: 0.95rem; color: #2b323b; }
.faq-a-inner > *:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
19. Sources
-------------------------------------------------------------------------- */
.sources {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.sources li {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-xs);
  background: #fff;
  padding: 16px 18px;
  margin: 0;
  font-size: 0.92rem;
}
.sources .src-name {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  margin-bottom: 4px;
}
.sources .src-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-3);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
20. Bloc auteur
-------------------------------------------------------------------------- */
.author {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: #fff;
  padding: 30px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
.author img {
  width: 160px;
  height: 160px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: 1px solid var(--line);
}
.author h3 { margin: 0 0 4px; font-size: 1.3rem; }
.author-role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.author p { font-size: 0.95rem; }
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.author-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.author-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.author-update {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.84rem;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
21. CTA final
-------------------------------------------------------------------------- */
.cta-final {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  margin-top: var(--sp-6);
}
.cta-final-head { height: 4px; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.cta-final-head span:nth-child(1) { background: var(--accent); }
.cta-final-head span:nth-child(2) { background: #eef0f4; }
.cta-final-head span:nth-child(3) { background: var(--accent-2); }
.cta-final-body { padding: 40px 34px; text-align: center; }
.cta-final-body h2 {
  border-bottom: 0;
  padding-bottom: 0;
  display: block;
  margin-bottom: var(--sp-3);
}
.cta-final-body p {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-2);
}
.cta-final .btn-row { justify-content: center; }
.cta-fine {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 18px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
22. Pied de page
-------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: var(--sp-8) 0 var(--sp-5);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-7);
}
.footer-col h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.footer-col p { color: var(--text-2); font-size: 0.9rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a {
  color: var(--text);
  font-weight: 500;
  position: relative;
  display: inline-block;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--t-base), color var(--t-fast);
}
.footer-list a:hover { color: var(--accent); background-size: 100% 1px; }
.footer-list .fl-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 400;
}
.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--sp-3);
  font-size: 0.84rem;
  color: var(--text-3);
}
.footer-bottom p { margin: 0; }
.transparence {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  background: #fff;
  padding: 14px 18px;
  border-radius: var(--r-xs);
  font-size: 0.85rem;
  color: var(--text-2);
}
.transparence strong { color: var(--text); }

/* --------------------------------------------------------------------------
23. Retour en haut
-------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), border-color var(--t-fast);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--accent); background: var(--accent-soft); }
.to-top svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
24. Reveal au scroll
-------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms cubic-bezier(0.16, 0.6, 0.24, 1), transform 350ms cubic-bezier(0.16, 0.6, 0.24, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 60ms; }
.reveal-d2 { transition-delay: 120ms; }
.reveal-d3 { transition-delay: 180ms; }
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
25. Page 404
-------------------------------------------------------------------------- */
.page-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 80px) 0 var(--sp-9);
}
.page-404 .code {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 2rem + 6vw, 6rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}
.page-404 h1 { margin-top: var(--sp-4); }
.page-404 p {
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
26. Responsive
-------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root { --wrap: 1040px; --sp-9: 76px; }
  .nav-desktop a { padding: 8px 8px; font-size: 0.86rem; }
  .hero-grid { gap: var(--sp-6); }
}
@media (max-width: 980px) {
  body { font-size: 16.5px; }
  .hero-grid { grid-template-columns: 1fr; }
  .map-block { grid-template-columns: 1fr; gap: var(--sp-5); }
  .map-frame { max-width: 340px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .footer-col:first-child { grid-column: 1 / -1; }
  .author {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: var(--sp-5);
    padding: 24px;
  }
  .author img { width: 120px; height: 120px; }
}
/* Bascule burger : navigation desktop jusqu a 1121px, menu burger a 1120px et en dessous. */
@media (max-width: 1120px) {
  .nav-desktop { display: none; }
  .header-cta { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 760px) {
  :root { --sp-9: 60px; --sp-8: 48px; }
  .wrap { padding: 0 18px; }
  .toc ol { columns: 1; }
  .idcard dl { grid-template-columns: 1fr; }
  .idcard dt {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .idcard dd { padding-top: 2px; }
  .idcard dl > *:nth-last-child(2) { border-bottom: 1px solid var(--line-soft); }
  .gl-row { grid-template-columns: 1fr; }
  .gl-row dt {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 12px;
  }
  .byline-note { margin-left: 0; width: 100%; margin-top: 8px; }
  .cta-final-body { padding: 30px 20px; }
  .author { grid-template-columns: 1fr; text-align: left; }
  .stat { border-right: 0; }
  .tab { flex: 1 1 auto; padding: 12px 14px; font-size: 0.82rem; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 14px; }
  .brand span.brand-name { font-size: 0.92rem; }
  .btn { width: 100%; padding: 14px 18px; }
  .btn-row { flex-direction: column; }
  .fiche-body, .tabpanel, .card, .profil { padding: 18px 16px; }
  .faq-q { padding: 15px 16px; font-size: 0.95rem; }
  .faq-a-inner { padding: 0 16px 16px; }
  .to-top {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }
  .section h2 { display: block; }
  .author { padding: 20px 16px; }
}

/* --------------------------------------------------------------------------
27. Mouvement reduit
-------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .table-anim tbody tr { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
28. Impression
-------------------------------------------------------------------------- */
@media print {
  .tricolore, .progress-rail, .site-header, .nav-mobile, .to-top, .btn-row, .cta-final, .chk-bar, .gl-filter {
    display: none !important;
  }
  body { font-size: 11pt; color: #000; background: #fff; }
  .section {
    padding: 14pt 0;
    page-break-inside: avoid;
    border-bottom: 1px solid #ccc;
  }
  .hero { padding-top: 0; }
  .faq-a { max-height: none !important; }
  .table-wrap { overflow: visible; }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #555;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   Complements
   Ajouts posterieurs, sans modification des regles ci-dessus.
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  counter-reset: stp;
}
.steps li {
  counter-increment: stp;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(stp, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 3px;
  width: 30px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #cfdcfa;
  border-radius: var(--r-xs);
}
.steps li strong {
  display: block;
  margin-bottom: 2px;
}

/* Corrections de contraste
   Le bouton place dans la navigation mobile heritait de la couleur de lien
   .nav-mobile a, plus specifique que .btn-primary : texte sombre sur fond bleu. */
.nav-mobile a.btn-primary,
.nav-mobile a.btn-primary:hover { color: #fff; }
.nav-mobile a.btn-ghost { color: var(--text); }
