/* ==========================================================================
linkavista-guide.fr
Feuille de style unique. Concept : documentation technique moderne.
Sommaire lateral sticky, chapitres numerotes, callouts colores.
Mode clair uniquement.
========================================================================== */

/* --------------------------------------------------------------------------
1. Variables
-------------------------------------------------------------------------- */
:root {

  /* Couleurs de fond */
  --bg: #ffffff;
  --bg-alt: #faf6ff;
  --surface: #ffffff;
  --surface-raised: #ffffff;

  /* Texte */
  --text: #1e1a2e;
  --text-soft: #6b6484;
  --text-invert: #ffffff;

  /* Accents */
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-dark: #5b21b6;
  --accent-wash: #f3ecff;
  --accent-wash-2: #ece0ff;

  /* Callouts */
  --info-bg: #eef2ff;
  --info-border: #6366f1;
  --tip-bg: #ecfdf5;
  --tip-border: #10b981;
  --warn-bg: #fffbeb;
  --warn-border: #f59e0b;

  /* Bordures */
  --border: #e9e2f7;
  --border-strong: #d8ccf0;

  /* Rayons */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Ombres */
  --sh-xs: 0 1px 2px rgba(30, 26, 46, .05);
  --sh-sm: 0 2px 6px rgba(30, 26, 46, .06);
  --sh-md: 0 8px 24px rgba(60, 30, 120, .08);
  --sh-lg: 0 18px 48px rgba(60, 30, 120, .12);
  --sh-accent: 0 10px 26px rgba(124, 58, 237, .26);

  /* 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(.4, 0, .2, 1);
  --t-base: 260ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 420ms cubic-bezier(.22, .61, .36, 1);

  /* Mesures de layout */
  --header-h: 68px;
  --sidebar-w: 268px;
  --content-max: 820px;
  --shell-max: 1280px;

  /* Polices */
  --font-title: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

/* --------------------------------------------------------------------------
2. Reset
-------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  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;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
::selection { background: var(--accent-wash-2); color: var(--text); }

/* --------------------------------------------------------------------------
3. Typographie
-------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 { font-family: var(--font-title); color: var(--text); line-height: 1.16; letter-spacing: -.018em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.42rem); line-height: 1.28; }
h4 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; }
p { margin-bottom: var(--sp-4); max-width: 74ch; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; color: var(--text); }
em { font-style: italic; }
small { font-size: .875rem; }
code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--accent-wash);
  color: var(--accent-dark);
  padding: .12em .42em;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
}
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); color: var(--text-soft); line-height: 1.66; }
.eyebrow {
  font-family: var(--font-title);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
  display: block;
}
.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;
}

/* Lien d'evitement : reapparait au focus clavier */
a.visually-hidden:focus-visible {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 11px 18px;
  clip: auto;
  overflow: visible;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  box-shadow: var(--sh-lg);
}

/* --------------------------------------------------------------------------
4. Header
-------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base), background var(--t-base);
}
.site-header.is-compact { box-shadow: var(--sh-sm); background: rgba(255, 255, 255, .97); }
.header-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--text);
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand:hover { color: var(--accent); }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-light) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  box-shadow: var(--sh-accent);
  flex-shrink: 0;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.2;
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: var(--sp-2); }
.main-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.main-nav a:hover { background: var(--accent-wash); color: var(--accent-dark); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-left: auto;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.nav-toggle:hover { background: var(--accent-wash); border-color: var(--accent-light); }
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform var(--t-base), background var(--t-base);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base), top var(--t-base);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
5. Boutons
-------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-title);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-align: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.btn-arrow { display: inline-block; transition: transform var(--t-base); font-size: 1.05em; line-height: 1; }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--sh-accent); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(124, 58, 237, .34); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--surface); color: var(--accent-dark); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--accent-wash); border-color: var(--accent-light); color: var(--accent-dark); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: var(--r-sm); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }

/* --------------------------------------------------------------------------
6. Barre de progression de lecture
-------------------------------------------------------------------------- */
.read-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  z-index: 90;
  transition: width 90ms linear;
  border-radius: 0 3px 3px 0;
}

/* --------------------------------------------------------------------------
7. Hero
-------------------------------------------------------------------------- */
.hero { background: radial-gradient(900px 420px at 12% -10%, #f3ecff 0%, rgba(243, 236, 255, 0) 62%), radial-gradient(700px 380px at 92% 4%, #ede9fe 0%, rgba(237, 233, 254, 0) 58%), var(--bg); border-bottom: 1px solid var(--border); padding: var(--sp-8) 0 var(--sp-8); position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(124, 58, 237, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 58, 237, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 400px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 400px at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: var(--sp-8);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: var(--sp-5);
  box-shadow: var(--sh-xs);
}
.hero-badge b {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-title);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 .hl { color: var(--accent); position: relative; white-space: nowrap; }
.hero-lead { font-size: clamp(1.05rem, .98rem + .4vw, 1.2rem); color: var(--text-soft); margin-bottom: var(--sp-5); max-width: 60ch; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  margin-bottom: var(--sp-5);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-soft); }
.hero-meta-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.byline { display: flex; align-items: center; gap: 11px; font-size: .88rem; color: var(--text-soft); }
.byline img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--accent-light);
  flex-shrink: 0;
}
.byline strong { display: block; color: var(--text); font-weight: 600; font-size: .93rem; line-height: 1.3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.hero-note { font-size: .84rem; color: var(--text-soft); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--sh-lg); object-fit: cover; aspect-ratio: 4 / 3; }
.hero-score {
  position: absolute;
  left: -22px;
  bottom: -22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: var(--sh-lg);
  text-align: center;
  min-width: 132px;
}
.hero-score .val { font-family: var(--font-title); font-size: 2.15rem; font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -.03em; }
.hero-score .val span { font-size: 1rem; color: var(--text-soft); font-weight: 500; }
.hero-score .lbl { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); font-weight: 600; margin-top: 5px; }
.hero-stars { color: #f59e0b; font-size: .95rem; letter-spacing: 2px; margin-top: 4px; }

/* Encadre "ce que vous saurez faire" */
.outcome-box { max-width: var(--shell-max); margin: var(--sp-7) auto 0; padding: 0 var(--sp-5); position: relative; z-index: 1; }
.outcome-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--sh-md); }
.outcome-inner h2 { font-size: 1.24rem; margin-bottom: var(--sp-4); display: flex; align-items: center; gap: 10px; }
.outcome-inner h2 svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.outcome-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-3) var(--sp-5); }
.outcome-grid li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; line-height: 1.55; }
.outcome-grid li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-wash);
  border: 1.5px solid var(--accent-light);
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
8. Shell : sidebar + contenu
-------------------------------------------------------------------------- */
.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-5) var(--sp-9);
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: start;
}

/* Sommaire lateral */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  max-height: calc(100vh - var(--header-h) - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.toc::-webkit-scrollbar { width: 6px; }
.toc::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.toc-head { padding: 0 0 var(--sp-4); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-4); }
.toc-title {
  font-family: var(--font-title);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: var(--sp-3);
}
.toc-progress { display: flex; align-items: center; gap: 10px; }
.toc-progress-track { flex: 1; height: 6px; background: var(--accent-wash); border-radius: var(--r-pill); overflow: hidden; }
.toc-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%); border-radius: var(--r-pill); transition: width 140ms linear; }
.toc-progress-val {
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.toc-list li { position: relative; }
.toc-list a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 12px 7px 14px;
  border-left: 2px solid transparent;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--text-soft);
  font-weight: 450;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.toc-list a:hover { color: var(--accent-dark); background: var(--accent-wash); }
.toc-list a .n {
  font-family: var(--font-title);
  font-size: .74rem;
  font-weight: 700;
  color: var(--accent-light);
  min-width: 20px;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-fast);
}
.toc-list a.is-active { color: var(--accent-dark); background: var(--accent-wash); border-left-color: var(--accent); font-weight: 600; }
.toc-list a.is-active .n { color: var(--accent); }
.toc-foot { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.toc-cta { background: var(--accent-wash); border: 1px solid var(--border-strong); border-radius: var(--r-md); padding: var(--sp-4); }
.toc-cta p { font-size: .84rem; color: var(--text-soft); margin-bottom: var(--sp-3); line-height: 1.5; }

/* Tiroir mobile */
.toc-drawer-btn {
  display: none;
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 40;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .93rem;
  color: var(--text);
  margin-bottom: var(--sp-5);
}
.toc-drawer-btn .chev { transition: transform var(--t-base); color: var(--accent); }
.toc-drawer-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
9. Contenu : chapitres
-------------------------------------------------------------------------- */
.content { min-width: 0; max-width: var(--content-max); }
.chapter { position: relative; padding: var(--sp-7) 0; border-bottom: 1px solid var(--border); }
.chapter:first-child { padding-top: 0; }
.chapter:last-child { border-bottom: 0; }
.chapter-head { position: relative; margin-bottom: var(--sp-5); }
.chapter-num {
  position: absolute;
  right: 0;
  top: -34px;
  font-family: var(--font-title);
  font-size: clamp(4.4rem, 3rem + 5vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: .085;
  letter-spacing: -.06em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.chapter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid var(--border-strong);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-3);
  position: relative;
  z-index: 1;
}
.chapter-head h2 { position: relative; z-index: 1; margin-bottom: var(--sp-3); }
.chapter-intro { font-size: 1.05rem; color: var(--text-soft); position: relative; z-index: 1; }
.chapter h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); padding-left: 14px; border-left: 3px solid var(--accent-light); }
.chapter h4 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); color: var(--accent-dark); }
.chapter p + h3, .chapter ul + h3, .chapter .table-wrap + h3 { margin-top: var(--sp-6); }

/* Listes de contenu */
.list { margin: 0 0 var(--sp-4); display: grid; gap: 10px; }
.list li { position: relative; padding-left: 26px; line-height: 1.62; max-width: 74ch; }
.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-light);
  transform: rotate(45deg);
}
.list-num { counter-reset: li; margin: 0 0 var(--sp-4); display: grid; gap: 12px; }
.list-num li { counter-increment: li; position: relative; padding-left: 38px; line-height: 1.62; max-width: 74ch; }
.list-num li::before {
  content: counter(li);
  position: absolute;
  left: 0;
  top: 1px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-dark);
  border: 1px solid var(--border-strong);
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* --------------------------------------------------------------------------
10. Callouts
-------------------------------------------------------------------------- */
.callout {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border-left: 4px solid;
  margin: var(--sp-5) 0;
  font-size: .96rem;
  line-height: 1.62;
}
.callout-icon { flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; }
.callout-icon svg { width: 24px; height: 24px; }
.callout-body strong.callout-title { display: block; font-family: var(--font-title); font-size: .96rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; }
.callout p { max-width: 68ch; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout-info { background: var(--info-bg); border-left-color: var(--info-border); }
.callout-info .callout-icon svg { color: var(--info-border); }
.callout-info .callout-title { color: #3730a3; }
.callout-tip { background: var(--tip-bg); border-left-color: var(--tip-border); }
.callout-tip .callout-icon svg { color: var(--tip-border); }
.callout-tip .callout-title { color: #065f46; }
.callout-warn { background: var(--warn-bg); border-left-color: var(--warn-border); }
.callout-warn .callout-icon svg { color: #d97706; }
.callout-warn .callout-title { color: #92400e; }

/* --------------------------------------------------------------------------
11. Cartes d'etape avec connecteur vertical
-------------------------------------------------------------------------- */
.steps { position: relative; margin: var(--sp-5) 0; display: grid; gap: var(--sp-4); }
.steps::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--border) 100%);
  border-radius: 2px;
}
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 5px var(--bg), var(--sh-accent);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); box-shadow: var(--sh-xs); transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base); }
.step-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--border-strong); }
.step-card h4 { margin: 0 0 6px; font-size: 1.06rem; color: var(--text); }
.step-card p { font-size: .95rem; margin-bottom: 8px; }
.step-card p:last-child { margin-bottom: 0; }
.step-meta {
  display: inline-block;
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-wash);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
12. Tableaux
-------------------------------------------------------------------------- */
.table-wrap {
  margin: var(--sp-5) 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow-x: auto;
  background: var(--surface);
  box-shadow: var(--sh-xs);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; min-width: 560px; font-size: .92rem; }
caption {
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-title);
  font-size: .96rem;
  font-weight: 600;
  color: var(--text);
  background: var(--accent-wash);
  border-bottom: 1px solid var(--border);
}
thead th {
  background: var(--bg-alt);
  text-align: left;
  padding: 11px 16px;
  font-family: var(--font-title);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody th, tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
tbody th { text-align: left; font-weight: 600; color: var(--text); font-size: .93rem; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover { background: var(--bg-alt); }
.t-num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; color: var(--accent-dark); }
.tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  letter-spacing: .02em;
  white-space: nowrap;
}
.tag-v { background: var(--accent-wash); color: var(--accent-dark); border: 1px solid var(--border-strong); }
.tag-g { background: var(--tip-bg); color: #065f46; border: 1px solid #a7f3d0; }
.tag-o { background: var(--warn-bg); color: #92400e; border: 1px solid #fde68a; }
.tag-b { background: var(--info-bg); color: #3730a3; border: 1px solid #c7d2fe; }

/* --------------------------------------------------------------------------
13. Grilles de cartes (raccourcis, profils, stats, glossaire)
-------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-4); margin: var(--sp-5) 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); box-shadow: var(--sh-xs); transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base); }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--border-strong); }
.card h4 { margin-bottom: 7px; font-size: 1.02rem; }
.card p { font-size: .92rem; color: var(--text-soft); margin-bottom: 0; line-height: 1.6; }

/* Cartes raccourcis compactes */
.shortcut {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.shortcut:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--accent-light); }
.shortcut-key {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.shortcut h4 { font-size: .95rem; margin-bottom: 4px; line-height: 1.3; }
.shortcut p { font-size: .87rem; color: var(--text-soft); line-height: 1.55; margin: 0; }

/* Statistiques */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sp-4); margin: var(--sp-5) 0; }
.stat { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5) var(--sp-4); text-align: center; transition: transform var(--t-base), border-color var(--t-base); }
.stat:hover { transform: translateY(-3px); border-color: var(--accent-light); }
.stat-val {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat-lbl { font-size: .84rem; color: var(--text-soft); margin-top: 6px; line-height: 1.45; }

/* Profils */
.profile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); border-top: 3px solid var(--accent); transition: transform var(--t-base), box-shadow var(--t-base); }
.profile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.profile-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-wash);
  padding: 3px 11px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}

/* Glossaire */
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); margin: var(--sp-5) 0; }
.gloss-item { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent-light); border-radius: 0 var(--r-md) var(--r-md) 0; padding: var(--sp-4); transition: border-left-color var(--t-base), box-shadow var(--t-base); }
.gloss-item:hover { border-left-color: var(--accent); box-shadow: var(--sh-sm); }
.gloss-item dt { font-family: var(--font-title); font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 5px; }
.gloss-item dd { font-size: .9rem; color: var(--text-soft); line-height: 1.6; }

/* --------------------------------------------------------------------------
14. Checklist interactive
-------------------------------------------------------------------------- */
.checklist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); margin: var(--sp-5) 0; box-shadow: var(--sh-xs); }
.checklist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}
.checklist-count {
  font-family: var(--font-title);
  font-size: .88rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-wash);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
}
.check-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  cursor: pointer;
  transition: opacity var(--t-base);
}
.check-item:last-of-type { border-bottom: 0; }
.check-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border-radius: var(--r-xs);
  border: 2px solid var(--border-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
  margin-top: 2px;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.check-box svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.55); transition: opacity var(--t-fast), transform var(--t-fast); }
.check-item input:checked ~ .check-box { background: var(--accent); border-color: var(--accent); }
.check-item input:checked ~ .check-box svg { opacity: 1; transform: scale(1); }
.check-item input:focus-visible ~ .check-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.check-text { font-size: .95rem; line-height: 1.55; transition: color var(--t-base), text-decoration-color var(--t-base); }
.check-item input:checked ~ .check-text { color: var(--text-soft); text-decoration: line-through; text-decoration-color: var(--accent-light); }
.check-text b { display: block; font-family: var(--font-title); font-weight: 600; color: var(--text); margin-bottom: 2px; }
.check-item input:checked ~ .check-text b { color: var(--text-soft); }
.checklist-foot {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  justify-content: space-between;
}
.checklist-bar { flex: 1; min-width: 160px; height: 8px; background: var(--accent-wash); border-radius: var(--r-pill); overflow: hidden; }
.checklist-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%); border-radius: var(--r-pill); transition: width var(--t-base); }

/* --------------------------------------------------------------------------
15. Accordeons (resolution de problemes, FAQ)
-------------------------------------------------------------------------- */
.accordion { display: grid; gap: 10px; margin: var(--sp-5) 0; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: border-color var(--t-base), box-shadow var(--t-base); }
.acc-item.is-open { border-color: var(--accent-light); box-shadow: var(--sh-sm); }
.acc-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 16px 18px;
  text-align: left;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  transition: background var(--t-fast), color var(--t-fast);
}
.acc-btn:hover { background: var(--accent-wash); color: var(--accent-dark); }
.acc-item.is-open .acc-btn { color: var(--accent-dark); }
.acc-q { display: flex; gap: 12px; align-items: flex-start; }
.acc-idx { font-size: .78rem; font-weight: 700; color: var(--accent-light); font-variant-numeric: tabular-nums; min-width: 22px; padding-top: 2px; }
.acc-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-wash);
  display: grid;
  place-items: center;
  transition: transform var(--t-base), background var(--t-base);
  margin-top: 1px;
}
.acc-icon svg { width: 14px; height: 14px; color: var(--accent); }
.acc-item.is-open .acc-icon { transform: rotate(180deg); background: var(--accent); }
.acc-item.is-open .acc-icon svg { color: #fff; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-body { padding: 0 18px 18px 52px; font-size: .95rem; color: var(--text-soft); line-height: 1.68; }
.acc-body p { max-width: 70ch; margin-bottom: 10px; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body strong { color: var(--text); }
.acc-body .list li { font-size: .93rem; }

/* --------------------------------------------------------------------------
16. Onglets
-------------------------------------------------------------------------- */
.tabs { margin: var(--sp-5) 0; }
.tab-list { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: var(--sp-5); }
.tab-btn {
  padding: 10px 18px;
  font-family: var(--font-title);
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-soft);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.tab-btn:hover { color: var(--accent-dark); background: var(--accent-wash); }
.tab-btn[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
17. Bandes speciales : image inline, citation, CTA
-------------------------------------------------------------------------- */
.figure { margin: var(--sp-5) 0; }
.figure img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--sh-sm); object-fit: cover; }
.figure figcaption { font-size: .85rem; color: var(--text-soft); margin-top: 10px; padding-left: 13px; border-left: 2px solid var(--accent-light); line-height: 1.5; }
.quote { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-5); margin: var(--sp-5) 0; position: relative; }
.quote::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 16px;
  font-family: var(--font-title);
  font-size: 3.4rem;
  color: var(--accent-light);
  opacity: .5;
  line-height: 1;
}
.quote p { font-size: 1rem; font-style: italic; color: var(--text); padding-left: 34px; margin-bottom: 10px; }
.quote cite { display: block; padding-left: 34px; font-style: normal; font-size: .86rem; color: var(--text-soft); font-weight: 500; }
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 55%, var(--accent-dark) 100%);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin: var(--sp-6) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 34px 34px; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2, .cta-band h3 { color: #fff; margin-bottom: var(--sp-3); }
.cta-band p { color: rgba(255, 255, 255, .9); margin-bottom: var(--sp-5); max-width: 62ch; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: 0 10px 26px rgba(0, 0, 0, .22); }
.cta-band .btn-primary:hover { background: #f5f3ff; color: var(--accent-dark); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cta-fine { font-size: .82rem; color: rgba(255, 255, 255, .78); margin-top: var(--sp-4); margin-bottom: 0; }

/* --------------------------------------------------------------------------
18. Verdict / notation
-------------------------------------------------------------------------- */
.score-grid { display: grid; gap: 12px; margin: var(--sp-5) 0; }
.score-row { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) 52px; gap: var(--sp-4); align-items: center; }
.score-name { font-size: .93rem; font-weight: 500; }
.score-track { height: 9px; background: var(--accent-wash); border-radius: var(--r-pill); overflow: hidden; }
.score-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%); border-radius: var(--r-pill); transition: width 900ms cubic-bezier(.22, .61, .36, 1); }
.score-val { font-family: var(--font-title); font-size: .92rem; font-weight: 700; color: var(--accent-dark); text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
19. Sources et bloc auteur
-------------------------------------------------------------------------- */
.sources-list { display: grid; gap: 12px; margin: var(--sp-5) 0; }
.source-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  align-items: flex-start;
  transition: border-color var(--t-base);
}
.source-item:hover { border-color: var(--accent-light); }
.source-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--r-xs);
  background: var(--accent-wash);
  color: var(--accent-dark);
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.source-item b { display: block; font-family: var(--font-title); font-size: .96rem; margin-bottom: 3px; }
.source-item span { font-size: .88rem; color: var(--text-soft); line-height: 1.55; }
.author-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin: var(--sp-6) 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
.author-photo { width: 150px; height: 150px; border-radius: var(--r-lg); object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--sh-md); }
.author-name { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; margin-bottom: 3px; }
.author-role { font-size: .9rem; color: var(--accent); font-weight: 600; margin-bottom: var(--sp-4); }
.author-bio { font-size: .95rem; color: var(--text-soft); line-height: 1.68; margin-bottom: var(--sp-4); }
.author-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--sp-4); }
.author-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
.author-link:hover { background: var(--accent-wash); border-color: var(--accent-light); color: var(--accent-dark); transform: translateY(-2px); }
.author-link svg { width: 15px; height: 15px; }
.author-updated { font-size: .84rem; color: var(--text-soft); padding-top: var(--sp-3); border-top: 1px solid var(--border); }

/* --------------------------------------------------------------------------
20. Footer
-------------------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: var(--sp-8) 0 var(--sp-5); margin-top: var(--sp-7); }
.footer-inner { max-width: var(--shell-max); margin: 0 auto; padding: 0 var(--sp-5); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--border); }
.footer-col h3 {
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: var(--sp-4);
  padding: 0;
  border: 0;
}
.footer-about p { font-size: .92rem; color: var(--text-soft); line-height: 1.65; margin-bottom: var(--sp-3); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--sp-4);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.footer-links { display: grid; gap: 9px; }
.footer-links a { font-size: .91rem; color: var(--text-soft); display: inline-flex; align-items: center; gap: 8px; transition: color var(--t-fast), transform var(--t-fast); }
.footer-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent-light);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.footer-links a:hover { color: var(--accent-dark); transform: translateX(3px); }
.footer-links a:hover::before { background: var(--accent); }
.footer-disclosure {
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: .86rem;
  color: var(--text-soft);
  line-height: 1.62;
}
.footer-disclosure strong { color: var(--text); }
.footer-bottom {
  padding-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--text-soft);
}
.footer-legal { max-width: 70ch; line-height: 1.6; }

/* --------------------------------------------------------------------------
21. Retour en haut
-------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), background var(--t-base);
  z-index: 70;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent-dark); color: #fff; }
.to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
22. Animations de reveal
-------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 480ms cubic-bezier(.22, .61, .36, 1), transform 480ms cubic-bezier(.22, .61, .36, 1); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 70ms; }
.reveal-d2 { transition-delay: 140ms; }
.reveal-d3 { transition-delay: 210ms; }
.reveal-d4 { transition-delay: 280ms; }

/* --------------------------------------------------------------------------
23. Page 404
-------------------------------------------------------------------------- */
.err-page { min-height: 72vh; display: grid; place-items: center; padding: var(--sp-9) var(--sp-5); text-align: center; }
.err-code {
  font-family: var(--font-title);
  font-size: clamp(5rem, 3rem + 12vw, 10rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: .16;
  letter-spacing: -.05em;
  margin-bottom: -.18em;
}
.err-page h1 { margin-bottom: var(--sp-4); }
.err-page p { margin: 0 auto var(--sp-5); color: var(--text-soft); max-width: 56ch; }
.err-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* --------------------------------------------------------------------------
24. Responsive
-------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root { --sidebar-w: 236px; --shell-max: 1120px; }
  .shell { gap: var(--sp-7); }
  .hero-inner { gap: var(--sp-6); }
  .main-nav a { padding: 7px 9px; font-size: .89rem; }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .content { max-width: none; }
  .toc-drawer-btn { display: flex; }
  .toc {
    position: static;
    max-height: none;
    overflow: visible;
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    margin-bottom: var(--sp-6);
    box-shadow: var(--sh-sm);
  }
  .toc.is-open { display: block; animation: drawer-in 300ms cubic-bezier(.22, .61, .36, 1); }
  .toc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2px; }
  .toc-foot { display: none; }
}
@keyframes drawer-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 62px; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-lg);
    padding: var(--sp-4) var(--sp-5) var(--sp-5);
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    margin-left: 0;
  }
  .main-nav.is-open { display: block; animation: drawer-in 260ms cubic-bezier(.22, .61, .36, 1); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav .header-cta-mobile { display: block; margin-top: var(--sp-4); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .hero-visual { order: -1; }
  .hero-score { left: auto; right: 14px; bottom: -18px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: var(--sp-6) 0 var(--sp-7); }
  .shell { padding: var(--sp-6) var(--sp-4) var(--sp-8); }
  .header-inner, .hero-inner, .outcome-box, .footer-inner { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .chapter { padding: var(--sp-6) 0; }
  .chapter-num { top: -18px; font-size: 4rem; opacity: .07; }
  .outcome-inner, .author-box, .cta-band, .checklist { padding: var(--sp-5); }
  .author-box { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); text-align: left; }
  .author-photo { width: 118px; height: 118px; }
  .acc-body { padding: 0 16px 16px 16px; }
  .acc-btn { padding: 14px 16px; font-size: .96rem; }
  .score-row { grid-template-columns: minmax(0, 1fr) 46px; gap: 8px var(--sp-3); }
  .score-name { grid-column: 1 / -1; font-size: .89rem; }
  .brand-sub { display: none; }
  .hero-score { position: static; margin-top: var(--sp-4); display: inline-block; }
  .steps::before { left: 16px; }
  .step { grid-template-columns: 34px minmax(0, 1fr); gap: var(--sp-3); }
  .step-dot { width: 34px; height: 34px; font-size: .9rem; }
}
@media (max-width: 520px) {
  :root { --sp-6: 24px; --sp-7: 34px; --sp-8: 44px; }
  .hero-actions .btn, .cta-actions .btn, .err-actions .btn { width: 100%; }
  .hero-meta { gap: 10px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callout { padding: var(--sp-4); gap: var(--sp-3); }
  .toc-list { grid-template-columns: minmax(0, 1fr); }
  .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
  .author-links { flex-direction: column; align-items: stretch; }
  .author-link { justify-content: center; }
}

/* --------------------------------------------------------------------------
25. Preferences de mouvement reduit
-------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .step-card:hover, .stat:hover, .shortcut:hover, .profile:hover, .author-link:hover { transform: none; }
}

/* --------------------------------------------------------------------------
26. Impression
-------------------------------------------------------------------------- */
@media print {
  .site-header, .toc, .toc-drawer-btn, .to-top, .read-bar, .cta-band, .hero-actions, .nav-toggle { display: none !important; }
  body { font-size: 11pt; line-height: 1.5; color: #000; background: #fff; }
  .shell { display: block; padding: 0; max-width: none; }
  .content { max-width: none; }
  a { color: #000; text-decoration: underline; }
  .acc-panel { grid-template-rows: 1fr !important; }
  .chapter, .card, .callout, .table-wrap { break-inside: avoid; page-break-inside: avoid; }
  .chapter-num { display: none; }
  h2, h3 { break-after: avoid; page-break-after: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
