/* =========================================================================
   Reprise LCA : feuille de style unique du site statique.
   Les couleurs de marque sont injectées en :root par le gabarit (source :
   brand.config.json). Aucune requête vers un service tiers : les deux polices
   sont hébergées avec le site, aucun script externe, donc aucun cookie tiers.

   Sommaire
     1.  Polices
     2.  Jetons dérivés
     3.  Bases et rythme typographique
     4.  Mise en page
     5.  En-tête et navigation
     6.  Boutons
     7.  Héros
     8.  Sections, cartes, grilles
     9.  Frises et phases
     10. Tableaux
     11. Encadrés
     12. Article : prose, sommaire, points clés
     13. FAQ
     14. Références et niveaux de preuve
     15. Appels à l'action
     16. Formulaire de liste d'attente
     17. Auteur, confiance, pages liées
     18. Outils interactifs
     19. Pied de page
     20. Utilitaires, impression
   ========================================================================= */

/* ---------- 1. Polices ---------- */
@font-face {
  font-family: 'Bricolage';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/files/bricolage-latin-var.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: 'Instrument';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url('/files/instrument-latin-var.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;
}

/* ---------- 2. Jetons dérivés ---------- */
:root {
  --font-sans: 'Instrument', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Bricolage', 'Instrument', ui-sans-serif, system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(11, 29, 36, 0.06);
  --shadow-sm: 0 2px 8px -2px rgba(11, 29, 36, 0.1), 0 1px 2px rgba(11, 29, 36, 0.05);
  --shadow-md: 0 12px 28px -16px rgba(11, 29, 36, 0.32), 0 2px 6px -2px rgba(11, 29, 36, 0.08);
  --shadow-lg: 0 30px 60px -34px rgba(11, 29, 36, 0.5), 0 8px 20px -14px rgba(11, 29, 36, 0.18);

  --step-1: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
  --gutter: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);

  --tint-primary-04: color-mix(in srgb, var(--color-primary) 4%, #fff);
  --tint-primary-08: color-mix(in srgb, var(--color-primary) 8%, #fff);
  --tint-primary-14: color-mix(in srgb, var(--color-primary) 14%, #fff);
  --tint-accent-08: color-mix(in srgb, var(--color-accent) 8%, #fff);
  --tint-accent-16: color-mix(in srgb, var(--color-accent) 16%, #fff);
  --tint-success-10: color-mix(in srgb, var(--color-success) 10%, #fff);
  --tint-danger-08: color-mix(in srgb, var(--color-danger) 8%, #fff);
  --line-soft: color-mix(in srgb, var(--color-border) 70%, transparent);
}

/* ---------- 3. Bases et rythme typographique ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 0.96rem + 0.26vw, 1.12rem);
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-sand);
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.35rem + 4.3vw, 4.4rem);
  font-weight: 800;
  font-stretch: 90%;
  line-height: 0.98;
  letter-spacing: -0.038em;
}

h2 {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  font-weight: 700;
  font-stretch: 94%;
  letter-spacing: -0.03em;
  margin-top: 2em;
}

h3 {
  font-size: clamp(1.22rem, 1.05rem + 0.75vw, 1.55rem);
  margin-top: 1.7em;
}

h4 {
  font-size: 1.08rem;
  margin-top: 1.5em;
}

p,
li {
  max-width: 68ch;
}

a {
  color: var(--color-primary-dark);
  text-decoration-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.075em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--color-accent-dark);
  text-decoration-color: currentColor;
}

strong {
  font-weight: 650;
}

:focus-visible {
  outline: 3px solid var(--color-accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

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

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 3rem 0;
}

::selection {
  background: var(--tint-accent-16);
}

/* ---------- 4. Mise en page ---------- */
.shell {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.shell--narrow {
  width: min(100% - 2.5rem, 46rem);
}

.shell--wide {
  width: min(100% - 2.5rem, 80rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lede {
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.32rem);
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 58ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-accent);
  flex: none;
}

/* ---------- 5. En-tête et navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--color-sand) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: -0.015em;
  flex: none;
}

.brand img,
.brand svg {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius-sm);
  flex: none;
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  min-height: 44px;
}

.nav-toggle__bars {
  position: relative;
  width: 1.05rem;
  height: 0.7rem;
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars::before {
  top: 0;
}
.nav-toggle__bars span {
  top: 50%;
  margin-top: -1px;
}
.nav-toggle__bars::after {
  bottom: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
  transform: translateY(0.34rem) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
  transform: translateY(-0.34rem) rotate(-45deg);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  max-width: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0;
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.94rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-accent);
}

.site-nav .btn {
  padding: 0.6rem 1.1rem;
  min-height: 42px;
  font-size: 0.92rem;
  border-bottom: 0;
}

.site-nav .btn:hover {
  border-bottom: 0;
}

@media (max-width: 61.99rem) {
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    margin: 0 0 1rem;
  }
  .site-header__inner {
    flex-wrap: wrap;
  }
  .site-header[data-open='true'] .site-nav {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line-soft);
  }
  .site-nav a {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--line-soft);
    white-space: normal;
  }
  .site-nav a[aria-current='page'] {
    border-bottom-color: var(--line-soft);
    box-shadow: inset 3px 0 0 var(--color-accent);
    padding-left: 0.85rem;
  }
  .site-nav .btn {
    margin-top: 0.9rem;
    width: 100%;
  }
}

@media (min-width: 62rem) {
  .nav-toggle {
    display: none;
  }
}

/* ---------- 6. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 620;
  line-height: 1.2;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.site-nav a.btn--primary {
  color: #fff;
}

.btn--primary:hover,
.site-nav a.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--accent:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
}

.btn--ghost:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.6rem 1.05rem;
  min-height: 42px;
  font-size: 0.92rem;
}

/* ---------- 7. Héros ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) 0 clamp(2rem, 1rem + 3vw, 4rem);
  background:
    radial-gradient(ellipse 60% 70% at 10% -10%, var(--color-primary-light) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 100% 0%, var(--tint-accent-08) 0%, transparent 55%),
    var(--color-sand);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.hero h1 {
  margin-bottom: 0.4em;
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  left: -0.75rem;
  bottom: -1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.85rem 1.1rem;
  max-width: 15rem;
  font-size: 0.87rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.hero__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  line-height: 1.1;
}

@media (max-width: 61.99rem) {
  .hero__badge {
    position: static;
    max-width: none;
    margin-top: 1.25rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.9rem 0 1rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: none;
}

.hero__proof li::before {
  content: '';
  width: 1rem;
  height: 1rem;
  flex: none;
  border-radius: 50%;
  background: var(--color-success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 3 8.4l1.1-1.1 2.1 2.1 5.7-5.7L13 4.8z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 3 8.4l1.1-1.1 2.1 2.1 5.7-5.7L13 4.8z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Bandeau de repères sous le héros */
.trustbar {
  border-block: 1px solid var(--line-soft);
  background: var(--color-surface);
}

.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0;
}

.trustbar__item {
  padding: 1.4rem var(--gutter);
  border-left: 1px solid var(--line-soft);
}

.trustbar__item:first-child {
  border-left: 0;
}

.trustbar__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--color-primary-dark);
}

.trustbar__item span {
  font-size: 0.88rem;
  color: var(--color-muted);
  display: block;
  margin-top: 0.3rem;
}

@media (max-width: 47.99rem) {
  .trustbar__item {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-inline: 0;
  }
  .trustbar__item:first-child {
    border-top: 0;
  }
}

/* ---------- 8. Sections, cartes, grilles ---------- */
main {
  padding-bottom: 3rem;
}

.section {
  padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0;
}

.section--tight {
  padding-block: clamp(1.75rem, 1rem + 2vw, 2.75rem);
}

.section--surface {
  background: var(--color-surface);
  border-block: 1px solid var(--line-soft);
}

.section--ink {
  background: var(--color-ink);
  color: color-mix(in srgb, #fff 88%, var(--color-primary));
}

.section--ink h2,
.section--ink h3 {
  color: #fff;
}

.section--ink a {
  color: color-mix(in srgb, var(--color-primary-light) 90%, #fff);
}

.section__head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section__head h2 {
  margin-top: 0;
}

.section__head p {
  color: var(--color-muted);
  font-size: 1.06rem;
}

.section--ink .section__head p {
  color: color-mix(in srgb, #fff 78%, var(--color-primary));
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-xs);
}

.card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card--accent {
  border-left: 4px solid var(--color-accent);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.card--danger {
  border-left: 4px solid var(--color-danger);
  background: var(--tint-danger-08);
}

.card--danger h3 {
  color: var(--color-danger);
}

/* Liste ordonnee a pastilles : etapes d'une demarche ou d'un protocole. */
.steps {
  list-style: none;
  counter-reset: steps;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: steps;
  position: relative;
  max-width: none;
  padding: 1.05rem 1.25rem 1.05rem 3.6rem;
  background: var(--color-sand);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 1.05rem;
  top: 1rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

.steps li > :last-child {
  margin-bottom: 0;
}

/* Chiffre mis en avant, utilise en grille de trois. */
.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-xs);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.9rem);
  line-height: 1;
  color: var(--color-primary-dark);
  margin-bottom: 0.55rem;
}

.stat p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
  max-width: none;
}

/* Carte cliquable : la carte entiere est le lien. */
a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card h3 {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
  text-underline-offset: 3px;
}

a.card:hover h3 {
  text-decoration-color: var(--color-accent);
}

a.card p {
  color: var(--color-muted);
}

.card--lift {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card--lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.card__icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.media-row {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
  .media-row {
    grid-template-columns: 1fr 1fr;
  }
  .media-row--reverse .media-row__text {
    order: 2;
  }
}

.media-row img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* Liste de bénéfices avec puces cochées */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  max-width: 62ch;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--tint-success-10);
  border: 1px solid color-mix(in srgb, var(--color-success) 35%, transparent);
}

.checklist li::after {
  content: '';
  position: absolute;
  left: 0.28rem;
  top: 0.63em;
  width: 0.6rem;
  height: 0.32rem;
  border-left: 2px solid var(--color-success);
  border-bottom: 2px solid var(--color-success);
  transform: rotate(-45deg);
}

/* ---------- 9. Frises et phases ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

.timeline > li,
.timeline > .timeline__item {
  position: relative;
  padding: 1.35rem 0 1.35rem 3.5rem;
  max-width: none;
  border-bottom: 1px solid var(--line-soft);
}

.timeline > li:last-child,
.timeline > .timeline__item:last-child {
  border-bottom: 0;
}

.timeline > li::before,
.timeline > .timeline__item::before {
  content: attr(data-phase);
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  z-index: 1;
}

.timeline > li::after,
.timeline > .timeline__item::after {
  content: '';
  position: absolute;
  left: 1.02rem;
  top: 3.6rem;
  bottom: -0.5rem;
  width: 2px;
  background: linear-gradient(var(--color-border), color-mix(in srgb, var(--color-border) 30%, transparent));
}

.timeline > li:last-child::after,
.timeline > .timeline__item:last-child::after {
  display: none;
}

.timeline h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
}

.timeline .timeline__meta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.55rem;
}

.timeline p {
  margin-bottom: 0;
}

.timeline__goals {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.timeline__goals li {
  border: 0;
  padding: 0.25rem 0.65rem;
  margin: 0;
  font-size: 0.83rem;
  background: var(--tint-primary-08);
  border-radius: var(--radius-pill);
  color: var(--color-primary-dark);
}

.timeline__goals li::before,
.timeline__goals li::after {
  display: none;
}

/* ---------- 10. Tableaux ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin: 1.75rem 0;
  box-shadow: var(--shadow-xs);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 32rem;
  font-size: 0.95rem;
}

caption {
  text-align: left;
  padding: 1rem 1.1rem 0.6rem;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  max-width: 32rem;
}

th {
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  background: var(--tint-primary-08);
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-border);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--tint-primary-04);
}

td strong {
  color: var(--color-primary-dark);
}

/* ---------- 11. Encadrés ---------- */
.callout {
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
  border-left: 4px solid var(--color-primary);
  background: var(--tint-primary-08);
  padding: 1.3rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.callout > :first-child {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout h3,
.callout h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin: 0 0 0.55rem;
}

.callout--warn {
  border-color: color-mix(in srgb, var(--color-danger) 25%, transparent);
  border-left-color: var(--color-danger);
  background: var(--tint-danger-08);
}

.callout--warn h3,
.callout--warn h4 {
  color: var(--color-danger);
}

.callout--key {
  border-color: color-mix(in srgb, var(--color-accent) 30%, transparent);
  border-left-color: var(--color-accent);
  background: var(--tint-accent-08);
}

.callout--key h3,
.callout--key h4 {
  color: var(--color-accent-dark);
}

.callout--experience {
  border-color: color-mix(in srgb, var(--color-success) 28%, transparent);
  border-left-color: var(--color-success);
  background: var(--tint-success-10);
}

.callout--experience h3,
.callout--experience h4 {
  color: var(--color-success);
}

.callout p,
.callout li {
  max-width: 64ch;
}

/* ---------- 12. Article : prose, sommaire, points clés ---------- */
.article-head {
  padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 0;
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, var(--color-primary-light) 0%, transparent 55%),
    var(--color-sand);
}

.article-head h1 {
  margin-bottom: 0.35em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.87rem;
  color: var(--color-muted);
}

.article-meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: none;
}

.article-meta svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  opacity: 0.75;
}

/* Illustration d'ouverture des pages du guide. L'image chevauche le bandeau
   sable de l'en-tete : le bandeau s'allonge quand une figure le suit. */
.article-head:has(+ .article-figure) {
  padding-bottom: clamp(2.5rem, 1rem + 6vw, 5.5rem);
}

.article-figure {
  margin-top: clamp(-4.5rem, -1rem - 4.5vw, -2rem);
}

.article-figure figure {
  margin: 0;
}

.article-figure picture {
  display: block;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 24rem;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.article-figure figcaption {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.article-layout {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: clamp(1.75rem, 1rem + 2vw, 3rem);
}

@media (min-width: 66rem) {
  .article-layout {
    grid-template-columns: 15.5rem minmax(0, 1fr);
  }
}

.prose {
  min-width: 0;
}

.prose > * {
  margin-inline: 0;
}

.prose h2 {
  padding-top: 0.4rem;
  border-top: 2px solid var(--color-border);
  margin-top: 2.6rem;
}

.prose h2:first-of-type {
  margin-top: 1.6rem;
}

.prose h3 {
  color: var(--color-primary-dark);
}

.prose p,
.prose li {
  max-width: 66ch;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.prose li::marker {
  color: var(--color-accent);
  font-weight: 700;
}

.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  font-size: 0.87rem;
  color: var(--color-muted);
  margin-top: 0.6rem;
  max-width: 60ch;
}

.prose .figure-frame {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.prose .figure-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--color-ink);
}

.prose blockquote p {
  max-width: 56ch;
}

/* Sommaire */
.toc {
  position: sticky;
  top: 5.5rem;
  font-size: 0.92rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-xs);
}

.toc h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.85rem;
  font-weight: 700;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.toc li {
  max-width: none;
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 0.42rem 0.5rem 0.42rem 1.9rem;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  text-decoration: none;
  line-height: 1.35;
  position: relative;
}

.toc a::before {
  content: counter(toc);
  position: absolute;
  left: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--color-muted) 65%, transparent);
}

.toc a:hover {
  background: var(--tint-primary-08);
  color: var(--color-primary-dark);
}

.toc a[aria-current='true'] {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.toc a[aria-current='true']::before {
  color: var(--color-accent-dark);
}

@media (max-width: 65.99rem) {
  .toc {
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .toc__box {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    padding: 0.4rem 1rem;
  }
  .toc__box > summary {
    cursor: pointer;
    font-weight: 650;
    padding: 0.75rem 0.25rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .toc__box > summary::-webkit-details-marker {
    display: none;
  }
  .toc__box > summary::after {
    content: '';
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--color-muted);
    border-bottom: 2px solid var(--color-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex: none;
  }
  .toc__box[open] > summary::after {
    transform: rotate(-135deg);
  }
  .toc h2 {
    display: none;
  }
  .toc ol {
    padding-bottom: 0.75rem;
  }
}

@media (min-width: 66rem) {
  .toc__box > summary {
    display: none;
  }
}

/* Points clés en tête d'article */
.keypoints {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin: 0 0 2rem;
  box-shadow: var(--shadow-sm);
}

.keypoints h2 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin: 0 0 0.9rem;
  border: 0;
  padding: 0;
  font-weight: 700;
}

.keypoints ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.keypoints li {
  position: relative;
  padding-left: 1.75rem;
  max-width: 64ch;
}

.keypoints li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

/* ---------- 13. FAQ ---------- */
.faq {
  margin: 3rem 0 0;
}

.faq h2 {
  border-top: 2px solid var(--color-border);
  padding-top: 0.4rem;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.faq__item[open] {
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.faq__item summary {
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-weight: 620;
  font-size: 1.02rem;
  position: relative;
  list-style: none;
  color: var(--color-ink);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 1.45rem;
  width: 0.72rem;
  height: 0.72rem;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(-135deg);
}

.faq__item summary:hover {
  background: var(--tint-primary-04);
}

.faq__answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-muted);
}

.faq__answer > :first-child {
  margin-top: 0;
}

.faq__answer > :last-child {
  margin-bottom: 0;
}

/* ---------- 14. Références et niveaux de preuve ---------- */
.ref-list {
  padding-left: 1.4rem;
  display: grid;
  gap: 1.1rem;
}

.ref-list li {
  max-width: 70ch;
  font-size: 0.94rem;
  line-height: 1.6;
}

.ref-list__take {
  display: block;
  margin-top: 0.4rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--color-border);
}

.source-note {
  color: var(--color-muted);
  font-size: 0.94rem;
}

.evidence {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  vertical-align: 0.1em;
}

.evidence--high {
  background: var(--tint-success-10);
  color: var(--color-success);
}

.evidence--mid {
  background: var(--tint-accent-08);
  color: var(--color-accent-dark);
}

a.cite {
  font-size: 0.8em;
  font-weight: 700;
  vertical-align: super;
  text-decoration: none;
  padding: 0 0.12em;
  color: var(--color-accent-dark);
}

a.cite:hover {
  text-decoration: underline;
}

/* ---------- 15. Appels à l'action ---------- */
.cta-inline {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  align-items: center;
  margin: 2.5rem 0;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow-md);
}

@media (min-width: 44rem) {
  .cta-inline {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.75rem;
  }
}

.cta-inline h2,
.cta-inline h3 {
  color: #fff;
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  border: 0;
  padding: 0;
}

.cta-inline p {
  margin: 0;
  color: color-mix(in srgb, #fff 85%, var(--color-primary));
  font-size: 0.97rem;
  max-width: 52ch;
}

.cta-inline .btn {
  background: #fff;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.cta-inline .btn:hover {
  background: var(--color-sand);
  color: var(--color-primary-dark);
}

.cta-band {
  background:
    radial-gradient(ellipse 60% 80% at 85% 0%, color-mix(in srgb, var(--color-accent) 22%, transparent) 0%, transparent 60%),
    var(--color-ink);
  color: #fff;
  padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0;
}

.cta-band h2 {
  color: #fff;
  margin-top: 0;
}

.cta-band p {
  color: color-mix(in srgb, #fff 82%, var(--color-primary));
  font-size: 1.05rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.cta-band .btn--ghost {
  color: #fff;
  border-color: color-mix(in srgb, #fff 45%, transparent);
}

.cta-band .btn--ghost:hover {
  background: color-mix(in srgb, #fff 12%, transparent);
  color: #fff;
}

/* ---------- 16. Formulaire de liste d'attente ---------- */
.waitlist {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.waitlist h2 {
  margin-top: 0;
}

.waitlist__grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}

@media (min-width: 40rem) {
  .waitlist__grid {
    grid-template-columns: 1fr 1fr;
  }
  .field--full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-weight: 620;
  font-size: 0.94rem;
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-sand);
  color: var(--color-ink);
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.field input:hover,
.field select:hover {
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--color-surface);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.field input[aria-invalid='true'],
.field select[aria-invalid='true'] {
  border-color: var(--color-danger);
}

.field__error {
  color: var(--color-danger);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
  min-height: 0;
}

.field__error:empty {
  display: none;
}

.hint {
  font-size: 0.86rem;
  color: var(--color-muted);
  font-weight: 400;
}

p.hint {
  margin: 0.35rem 0 0;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 1rem 0;
  max-width: none;
}

.consent input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  accent-color: var(--color-primary);
}

.consent label {
  max-width: 64ch;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist__status {
  margin: 1rem 0 0;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  display: none;
}

.waitlist__status[data-state='error'] {
  display: block;
  background: var(--tint-danger-08);
  color: var(--color-danger);
  border: 1px solid color-mix(in srgb, var(--color-danger) 25%, transparent);
}

.waitlist__status[data-state='success'],
.waitlist__status[data-state='pending'] {
  display: block;
  background: var(--tint-success-10);
  color: var(--color-success);
  border: 1px solid color-mix(in srgb, var(--color-success) 25%, transparent);
}

/* ---------- 17. Auteur, confiance, pages liées ---------- */
.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 2.5rem 0 0;
  box-shadow: var(--shadow-xs);
}

.author-box__avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  flex: none;
}

.author-box h2,
.author-box h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin: 0 0 0.3rem;
  border: 0;
  padding: 0;
}

.author-box p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  max-width: 64ch;
}

.author-box p + p {
  margin-top: 0.5rem;
}

.related {
  margin: 3rem 0 0;
}

.related h2 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 0;
  padding: 0;
  margin-bottom: 1.1rem;
}

.related__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.related__card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: var(--color-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.related__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);
  color: var(--color-ink);
}

.related__card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--color-primary-dark);
}

.related__card span {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
  display: block;
}

.breadcrumb {
  font-size: 0.86rem;
  color: var(--color-muted);
  padding-top: 1.1rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumb li + li::before {
  content: '/';
  color: color-mix(in srgb, var(--color-muted) 55%, transparent);
}

.breadcrumb a {
  color: var(--color-muted);
}

.breadcrumb [aria-current='page'] {
  color: var(--color-ink);
  font-weight: 550;
}

/* ---------- 18. Outils interactifs ---------- */
.tool {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.tool__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.tool__head h2,
.tool__head h3 {
  margin: 0 0 0.25rem;
  border: 0;
  padding: 0;
  font-size: 1.3rem;
}

.tool__head p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.tool__controls {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  align-items: end;
  padding: 1.15rem;
  background: var(--color-sand);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}

.tool__output {
  margin-top: 1.5rem;
}

.tool__empty {
  color: var(--color-muted);
  font-size: 0.95rem;
  padding: 1.25rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.tool__result {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tool__phase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.tool__phase:last-child {
  border-bottom: 0;
}

.tool__phase[data-state='done'] {
  background: var(--tint-success-10);
}

.tool__phase[data-state='current'] {
  background: var(--tint-accent-08);
  box-shadow: inset 3px 0 0 var(--color-accent);
}

.tool__phase-when {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  grid-column: 1 / -1;
}

.tool__phase-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  grid-column: 1 / -1;
}

.tool__phase-body {
  grid-column: 1 / -1;
  font-size: 0.94rem;
  color: var(--color-muted);
  max-width: 62ch;
}

.tool__phase-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #fff;
  margin-left: 0.5rem;
  vertical-align: 0.12em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.criteria {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.criteria li {
  max-width: none;
}

.criteria label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--color-sand);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.criteria label:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border));
}

.criteria input:checked + span {
  color: var(--color-ink);
}

.criteria label:has(input:checked) {
  border-color: var(--color-success);
  background: var(--tint-success-10);
}

.criteria input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: var(--color-success);
}

.criteria span {
  font-size: 0.95rem;
}

.criteria small {
  display: block;
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.gauge {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--color-sand);
  border: 1px solid var(--line-soft);
}

.gauge__track {
  height: 0.7rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-border) 60%, #fff);
  overflow: hidden;
  margin: 0.75rem 0;
}

.gauge__fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-accent), var(--color-success));
  transition: width 0.35s ease;
}

.gauge__verdict {
  font-weight: 620;
  margin: 0;
}

/* ---------- 19. Pied de page ---------- */
.site-footer {
  background: var(--color-ink);
  color: color-mix(in srgb, #fff 74%, var(--color-primary));
  padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 2rem;
  font-size: 0.93rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding-bottom: 2.25rem;
  border-bottom: 1px solid color-mix(in srgb, #fff 14%, transparent);
}

.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 55%, var(--color-primary));
  margin: 0 0 0.9rem;
  font-weight: 700;
}

.site-footer__brand h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  color: color-mix(in srgb, #fff 82%, var(--color-primary));
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer p {
  max-width: 62ch;
}

.site-footer__legal {
  padding-top: 1.75rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: color-mix(in srgb, #fff 58%, var(--color-primary));
}

.site-footer__legal p {
  max-width: 88ch;
}

.site-footer__legal strong {
  color: color-mix(in srgb, #fff 80%, var(--color-primary));
}

/* ---------- 20. Utilitaires, impression ---------- */
.stack > * + * {
  margin-top: 1.1rem;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

@media print {
  .site-header,
  .site-footer,
  .cta-inline,
  .cta-band,
  .toc,
  .waitlist,
  .nav-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
  .article-layout {
    display: block;
  }
  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }
}

/* =========================================================================
   21. Barre d'annonce, promesse du héros, appels à l'action, animations
   Ajouté le 14/08 : la page d'accueil ne portait aucune promesse forte et
   aucun mouvement. Toutes les animations sont désarmées par la règle
   prefers-reduced-motion déclarée en tête de feuille.
   ========================================================================= */

/* ---------- Barre d'annonce ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: var(--color-ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: center;
}

.topbar strong {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--color-accent);
}

.topbar:hover {
  color: #fff;
  background: color-mix(in srgb, var(--color-ink) 88%, var(--color-accent));
}

.topbar .ico-arrow {
  flex: none;
  transition: transform 0.2s ease;
}

.topbar:hover .ico-arrow {
  transform: translateX(4px);
}

.topbar__pulse {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 70%, transparent);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 70%, transparent); }
  70% { box-shadow: 0 0 0 0.55rem transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 35rem) {
  .topbar__text { font-size: 0.82rem; }
}

/* ---------- Héros ---------- */
.eyebrow--live::before {
  animation: pulse-dot 2.4s ease-out infinite;
}

.eyebrow--invert {
  color: #fff;
  background: color-mix(in srgb, #fff 14%, transparent);
  border-color: color-mix(in srgb, #fff 28%, transparent);
}

.hero__kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 0.75rem + 0.3vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent-dark);
  position: relative;
  white-space: nowrap;
}

/* Trait tracé sous la promesse, dessiné à l'ouverture de la page. */
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.06em;
  height: 0.09em;
  border-radius: 999px;
  background: var(--color-accent);
  transform-origin: left center;
  animation: trace-underline 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

@keyframes trace-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero__note {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.hero__badge-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.4rem;
}

/* Le héros entre en scène. Le visuel n'anime que sa position : une opacité
   nulle au départ retarderait la mesure du plus grand élément peint. */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * {
    animation: hero-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero__text > *:nth-child(1) { animation-delay: 0.02s; }
  .hero__text > *:nth-child(2) { animation-delay: 0.08s; }
  .hero__text > *:nth-child(3) { animation-delay: 0.16s; }
  .hero__text > *:nth-child(4) { animation-delay: 0.22s; }
  .hero__text > *:nth-child(5) { animation-delay: 0.28s; }
  .hero__text > *:nth-child(6) { animation-delay: 0.34s; }
  .hero__media picture {
    display: block;
    animation: hero-media-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero__badge {
    animation: hero-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
  }
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-media-in {
  from { transform: translateY(26px) scale(0.985); }
  to { transform: none; }
}

/* ---------- Boutons ---------- */
.btn--lg {
  padding: 1.05rem 1.9rem;
  min-height: 56px;
  font-size: 1.04rem;
}

.btn .ico-arrow {
  flex: none;
  transition: transform 0.2s ease;
}

.btn:hover .ico-arrow {
  transform: translateX(4px);
}

.btn--accent {
  box-shadow: 0 10px 24px -14px var(--color-accent-dark), var(--shadow-sm);
}

.btn--accent:hover {
  box-shadow: 0 16px 30px -14px var(--color-accent-dark), var(--shadow-md);
}

.btn--ghost-invert {
  color: #fff;
  border-color: color-mix(in srgb, #fff 45%, transparent);
}

.btn--ghost-invert:hover {
  background: color-mix(in srgb, #fff 12%, transparent);
  color: #fff;
}

/* ---------- Appel à l'action en ligne ---------- */
.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
  margin: 2.25rem 0;
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.9rem);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--color-accent) 26%, transparent);
  background:
    radial-gradient(ellipse 70% 130% at 0% 0%, var(--tint-accent-16) 0%, transparent 65%),
    var(--tint-primary-04);
}

.cta-inline h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
}

.cta-inline p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 46ch;
}

.cta-inline > div {
  flex: 1 1 22rem;
}

.cta-inline .btn {
  flex: none;
}

.cta-inline--wide {
  margin-block: clamp(2.5rem, 2rem + 2vw, 3.75rem);
}

.cta-band__note {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: color-mix(in srgb, #fff 66%, var(--color-primary));
}

/* ---------- Appel à l'action collant, écrans étroits ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--color-border);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-cta[data-shown='true'] {
  transform: none;
}

.sticky-cta .btn {
  width: 100%;
}

@media (min-width: 62rem) {
  .sticky-cta { display: none; }
}

body:has(.sticky-cta[data-shown='true']) {
  padding-bottom: 4.75rem;
}

/* ---------- En-tête au défilement ---------- */
.site-header[data-scrolled='true'] {
  box-shadow: 0 10px 24px -22px rgba(11, 29, 36, 0.7);
  background: color-mix(in srgb, var(--color-sand) 94%, transparent);
}

/* ---------- Apparitions au défilement ---------- */
/* L'état masqué n'est posé que par le script, et uniquement sur ce qui se
   trouve déjà hors de l'écran : sans cette précaution le contenu visible
   clignoterait, le script s'exécutant après le premier rendu. */
.reveal-armed {
  opacity: 0;
  transform: translateY(22px);
  will-change: opacity, transform;
}

.reveal-armed.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: auto;
}
