/* ==========================================================================
   linkavista-seo.fr
   Feuille de style unique. Concept : outil d'analyse de croissance.
   Mode clair uniquement. Ecrite a la main, sans framework.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables de theme
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de fond */
  --bg: #FFFFFF;
  --bg-alt: #F0F9FF;
  --bg-soft: #F7FBFE;
  --surface: #FFFFFF;
  --surface-tint: #EAF6FE;
  /* Texte */
  --ink: #0C1B2A;
  --ink-soft: #51687D;
  --ink-faint: #7D93A6;
  /* Accents */
  --accent: #0284C7;
  --accent-dark: #0369A1;
  --accent-deep: #075985;
  --accent-light: #38BDF8;
  --accent-wash: #E0F2FE;
  --growth: #65A30D;
  --growth-dark: #4D7C0F;
  --growth-wash: #F1F8E5;
  --warn: #D97706;
  --warn-dark: #B45309;
  --warn-wash: #FEF6E7;
  /* Bordures */
  --line: #D8E9F5;
  --line-strong: #B9D8ED;
  --line-warn: #F3DCB4;
  --line-growth: #D5E8B4;
  /* Rayons */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  /* Ombres */
  --sh-1: 0 1px 2px rgba(12, 27, 42, .05);
  --sh-2: 0 4px 14px rgba(12, 27, 42, .06);
  --sh-3: 0 14px 38px rgba(12, 27, 42, .09);
  --sh-accent: 0 8px 20px rgba(2, 132, 199, .22);
  --sh-accent-hover: 0 12px 26px rgba(2, 132, 199, .3);
  /* Espacements */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;
  /* Transitions */
  --t-fast: 160ms cubic-bezier(.4, 0, .2, 1);
  --t-base: 260ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 460ms cubic-bezier(.22, .61, .36, 1);
  /* Mesures */
  --wrap: 1180px;
  --wrap-narrow: 860px;
  --header-h: 72px;
  /* Polices */
  --font-title: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset moderne
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, .55vw + 14.4px, 17.5px);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 var(--s-4);
  letter-spacing: -.018em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.16rem, 1.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.03rem; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
a {
  color: var(--accent-dark);
  text-decoration-color: rgba(2, 132, 199, .35);
  text-underline-offset: 3px;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25rem; }
li { margin-bottom: var(--s-2); }
li:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }
code, kbd {
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: .88em;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 1px 6px;
}
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }
::selection { background: var(--accent-wash); color: var(--accent-deep); }

/* --------------------------------------------------------------------------
   3. Utilitaires de mise en page
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 34px); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   4. Barre de progression de lecture
   -------------------------------------------------------------------------- */
.readbar {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 100%;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.readbar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--growth) 100%);
  transform-origin: left center;
  transition: width 90ms linear;
}

/* --------------------------------------------------------------------------
   5. Header et navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-base), border-color var(--t-base), background var(--t-base);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-2); }
.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
  transition: min-height var(--t-base);
}
.site-header.is-stuck .header-inner { min-height: 60px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.brand,
.brand__name { white-space: nowrap; }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--surface-tint);
  padding: 3px;
}
.brand__tag {
  display: block;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.2;
}
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  display: inline-block;
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: var(--r-sm);
  font-size: .89rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav .btn { white-space: nowrap; }
/* Ancres supplementaires : reservees au panneau mobile, masquees en desktop. */
.nav__list--more { display: none; }
.nav__list a:hover { background: var(--surface-tint); color: var(--accent-deep); }
.nav__list a.is-active { color: var(--accent-deep); background: var(--accent-wash); font-weight: 600; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  font-size: .85rem;
  font-weight: 600;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 17px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: background var(--t-fast);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-base), top var(--t-base);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .96rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: transform var(--t-fast), box-shadow var(--t-base),
              background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn svg { flex-shrink: 0; }
.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: var(--sh-accent-hover); }
.btn--ghost { background: var(--surface); color: var(--accent-deep); border-color: var(--line-strong); box-shadow: var(--sh-1); }
.btn--ghost:hover { background: var(--accent-wash); color: var(--accent-deep); border-color: var(--accent-light); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: .87rem; }
.btn--wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.btn-note { font-size: .84rem; color: var(--ink-faint); margin: var(--s-3) 0 0; }

/* --------------------------------------------------------------------------
   7. Sections generiques
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); }
.section--tint { background: var(--bg-alt); }
.section--soft { background: var(--bg-soft); }
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.section__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section__head { max-width: 760px; margin-bottom: var(--s-6); }
.section__lead { font-size: 1.06rem; color: var(--ink-soft); margin-bottom: 0; }
.lede { font-size: clamp(1.04rem, 1.3vw, 1.18rem); color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 5.5vw, 76px) clamp(48px, 6vw, 88px);
  background:
    radial-gradient(760px 420px at 88% -8%, #DCF0FB 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--bg-alt) 0%, #FFFFFF 78%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(2, 132, 199, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 132, 199, .055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 72%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 7px 15px 7px 9px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-deep);
  box-shadow: var(--sh-1);
  margin-bottom: var(--s-5);
}
.hero__badge span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--growth);
  box-shadow: 0 0 0 4px rgba(101, 163, 13, .16);
}
.hero__title { margin-bottom: var(--s-4); }
.hero__title em { font-style: normal; color: var(--accent-dark); position: relative; white-space: nowrap; }
.hero__lead { font-size: clamp(1.04rem, 1.35vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; margin-bottom: var(--s-5); }
.hero__figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  background: var(--surface);
}
.hero__figure img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__figcaption {
  font-size: .8rem;
  color: var(--ink-faint);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin: 0;
}
.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--growth);
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--sh-1);
  margin-bottom: var(--s-5);
}
.hero__rating-value {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.hero__rating-value small { font-size: .78rem; font-weight: 600; color: var(--ink-faint); }
.hero__rating-label { font-size: .8rem; color: var(--ink-soft); line-height: 1.4; }
/* Signature courte sous le h1 */
.byline {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0 0;
  margin-bottom: var(--s-5);
  border-top: 1px dashed var(--line-strong);
}
.byline img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-wash);
  flex-shrink: 0;
}
.byline__text { font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }
.byline__text strong { display: block; color: var(--ink); font-size: .94rem; }

/* --------------------------------------------------------------------------
   9. Cartes de KPI
   -------------------------------------------------------------------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.kpi {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-4) var(--s-4);
  box-shadow: var(--sh-1);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}
.kpi--growth::before { background: linear-gradient(90deg, var(--growth), #A3D14B); }
.kpi--warn::before { background: linear-gradient(90deg, var(--warn), #F0B357); }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.kpi__label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 6px;
}
.kpi__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 2.3vw, 2.05rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.kpi__unit { font-size: .92rem; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.kpi__trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--growth-dark);
  background: var(--growth-wash);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  margin-bottom: 8px;
}
.kpi__trend--flat { color: var(--accent-deep); background: var(--accent-wash); }
.kpi__trend--warn { color: var(--warn-dark); background: var(--warn-wash); }
.kpi__desc { font-size: .84rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* --------------------------------------------------------------------------
   10. Cartes generiques et grilles
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
.card h3 { margin-bottom: var(--s-2); }
.card p { font-size: .93rem; color: var(--ink-soft); }
.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: var(--s-3);
}
.card--growth .card__num { background: var(--growth-wash); color: var(--growth-dark); }
.card--warn .card__num { background: var(--warn-wash); color: var(--warn-dark); }

/* --------------------------------------------------------------------------
   11. Chaine en maillons
   -------------------------------------------------------------------------- */
.chain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}
.chain__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  box-shadow: var(--sh-1);
  margin: 0;
}
.chain__item::after {
  content: "";
  position: absolute;
  left: 55px;
  bottom: -17px;
  width: 2px;
  height: 16px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 8px);
}
.chain__item:last-child::after { display: none; }
.chain__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--sh-accent);
}
.chain__title { margin-bottom: 6px; font-size: 1.1rem; }
.chain__meta {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.chain__item p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. Blocs graphiques SVG
   -------------------------------------------------------------------------- */
.chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-2);
  overflow: hidden;
}
.chart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.chart__title { font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; margin: 0; }
.chart__sub { font-size: .8rem; color: var(--ink-faint); margin: 4px 0 0; }
.chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
  font-size: .8rem;
  color: var(--ink-soft);
}
.chart__legend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.legend-swatch {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}
.chart__svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__note {
  font-size: .82rem;
  color: var(--ink-faint);
  margin: var(--s-4) 0 0;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
}
/* Animation de trace des courbes */
.draw-line { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 1600ms cubic-bezier(.22, .61, .36, 1); }
.is-drawn .draw-line { stroke-dashoffset: 0; }
.draw-area { opacity: 0; transform: translateY(10px); transition: opacity 900ms ease 340ms, transform 900ms ease 340ms; }
.is-drawn .draw-area { opacity: 1; transform: translateY(0); }
.draw-point { opacity: 0; transition: opacity 500ms ease; }
.is-drawn .draw-point { opacity: 1; }
.is-drawn .draw-point:nth-of-type(1) { transition-delay: 700ms; }
.is-drawn .draw-point:nth-of-type(2) { transition-delay: 900ms; }
.is-drawn .draw-point:nth-of-type(3) { transition-delay: 1100ms; }
.is-drawn .draw-point:nth-of-type(4) { transition-delay: 1300ms; }
.chart-axis-label { font-family: var(--font-body); font-size: 11px; font-weight: 500; fill: var(--ink-faint); }
.chart-phase-label { font-family: var(--font-title); font-size: 12px; font-weight: 700; fill: var(--accent-deep); }
.chart-grid-line { stroke: var(--line); stroke-width: 1; }

/* --------------------------------------------------------------------------
   13. Encadres bleu / ambre en deux colonnes
   -------------------------------------------------------------------------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.panel { border-radius: var(--r-md); padding: var(--s-5); border: 1px solid var(--line); background: var(--surface); }
.panel--can { background: var(--accent-wash); border-color: var(--line-strong); }
.panel--cannot { background: var(--warn-wash); border-color: var(--line-warn); }
.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.panel--can .panel__title { color: var(--accent-deep); }
.panel--cannot .panel__title { color: var(--warn-dark); }
.panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid currentColor;
  flex-shrink: 0;
}
.panel ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.panel li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--ink); }
.panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.panel--can li::before { background: var(--accent); }
.panel--cannot li::before { background: var(--warn); }
/* Encadre generique */
.callout {
  border-radius: var(--r-md);
  padding: var(--s-5);
  border-left: 4px solid var(--accent);
  background: var(--accent-wash);
  margin-block: var(--s-5);
}
.callout--warn { border-left-color: var(--warn); background: var(--warn-wash); }
.callout--growth { border-left-color: var(--growth); background: var(--growth-wash); }
.callout h3 { font-size: 1.02rem; margin-bottom: var(--s-2); }
.callout p { font-size: .93rem; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
/* Encadre methodologie */
.method {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--sh-2);
  position: relative;
}
.method::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--growth));
}
.method ol { counter-reset: m; list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.method ol li {
  counter-increment: m;
  position: relative;
  padding-left: 40px;
  margin-bottom: var(--s-3);
  font-size: .94rem;
  color: var(--ink-soft);
}
.method ol li::before {
  content: counter(m);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   14. Tableaux
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .91rem; min-width: 580px; }
caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  padding: var(--s-4) var(--s-4) var(--s-3);
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--surface-tint);
  color: var(--accent-deep);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
tbody th,
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
tbody th { text-align: left; font-weight: 600; color: var(--ink); font-size: .92rem; }
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); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr.is-total th,
tbody tr.is-total td { background: var(--surface-tint); color: var(--accent-deep); font-weight: 700; border-top: 2px solid var(--line-strong); }
tbody tr.is-total:hover th,
tbody tr.is-total:hover td { background: var(--accent-wash); }
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.tag--high { background: var(--growth-wash); color: var(--growth-dark); }
.tag--mid { background: var(--accent-wash); color: var(--accent-deep); }
.tag--low { background: var(--warn-wash); color: var(--warn-dark); }
.table-note { font-size: .82rem; color: var(--ink-faint); margin: var(--s-3) 0 0; }
.scroll-hint { font-size: .78rem; color: var(--ink-faint); margin: var(--s-2) 0 0; display: none; }

/* --------------------------------------------------------------------------
   15. Calendrier d'observation
   -------------------------------------------------------------------------- */
.calendar {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1);
  padding: var(--s-4);
}
.calendar__grid { display: grid; grid-template-columns: 190px repeat(8, minmax(58px, 1fr)); gap: 5px; min-width: 720px; }
.cal-head {
  font-family: var(--font-title);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  padding: 8px 4px;
  border-bottom: 2px solid var(--line);
}
.cal-head--row { text-align: left; padding-left: 10px; }
.cal-row-label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  padding: 10px;
  background: var(--bg-alt);
  border-radius: var(--r-xs);
  line-height: 1.35;
}
.cal-cell {
  border-radius: var(--r-xs);
  background: #F4F8FB;
  border: 1px dashed var(--line);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-align: center;
  padding: 4px;
  transition: transform var(--t-fast);
}
.cal-cell:hover { transform: scale(1.06); }
.cal-cell--on { background: var(--accent-wash); border: 1px solid var(--accent-light); color: var(--accent-deep); }
.cal-cell--key {
  background: linear-gradient(150deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-accent);
}
.cal-cell--growth { background: var(--growth-wash); border: 1px solid var(--line-growth); color: var(--growth-dark); }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: .8rem;
  color: var(--ink-soft);
  margin-top: var(--s-4);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 15px; height: 15px; border-radius: 4px; display: inline-block; }

/* --------------------------------------------------------------------------
   16. Selecteur de scenario
   -------------------------------------------------------------------------- */
.scenario {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-2);
}
.scenario__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: 6px;
  background: var(--bg-alt);
  border-radius: 12px;
  margin-bottom: var(--s-5);
}
.scenario__tab {
  flex: 1 1 180px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-soft);
  text-align: center;
  transition: background var(--t-fast), color var(--t-fast),
              box-shadow var(--t-base), border-color var(--t-fast);
}
.scenario__tab:hover { color: var(--accent-deep); background: rgba(255, 255, 255, .7); }
.scenario__tab[aria-selected="true"] { background: var(--accent); color: #fff; box-shadow: var(--sh-accent); }
.scenario__tab small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .74rem;
  opacity: .85;
  margin-top: 2px;
}
.scenario__body { transition: opacity 260ms ease; }
.scenario__body.is-fading { opacity: 0; }
.scenario__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
.scenario__stat { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--s-4); }
.scenario__stat dt {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.scenario__stat dd {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--accent-deep);
  letter-spacing: -.02em;
}

/* --------------------------------------------------------------------------
   17. Listes de controle
   -------------------------------------------------------------------------- */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li { margin: 0; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: .92rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-base);
  height: 100%;
}
.check-item:hover { border-color: var(--accent-light); box-shadow: var(--sh-1); }
.check-item input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.check-item input:checked { background: var(--growth); border-color: var(--growth); }
.check-item input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-item input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.check-item:has(input:checked) { background: var(--growth-wash); border-color: var(--line-growth); }
.check-item:has(input:checked) span { color: var(--growth-dark); text-decoration: line-through; text-decoration-color: rgba(101, 163, 13, .5); }
.checklist-progress {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
  font-size: .86rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.checklist-progress__track {
  flex: 1;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-tint);
  overflow: hidden;
  border: 1px solid var(--line);
}
.checklist-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--growth));
  border-radius: var(--r-pill);
  transition: width var(--t-slow);
}
/* Listes oppposees */
.split-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.split-list__col { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); padding: var(--s-5); }
.split-list__col--keep { border-top: 4px solid var(--growth); }
.split-list__col--drop { border-top: 4px solid var(--warn); }
.split-list__col h3 { font-size: 1.05rem; }
.split-list__col ol { padding-left: 1.15rem; font-size: .92rem; color: var(--ink-soft); margin-bottom: 0; }
.split-list__col li { margin-bottom: 11px; }
.split-list__col li strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: .97rem;
  margin-bottom: 2px;
}
.split-list__col li span { display: block; font-size: .89rem; line-height: 1.6; }
.split-list__col--keep li::marker { color: var(--growth); font-weight: 700; }
.split-list__col--drop li::marker { color: var(--warn); font-weight: 700; }
/* Listes a l'interieur des cartes et des encadres */
.card ul,
.callout ol { padding-left: 1.15rem; font-size: .93rem; color: var(--ink-soft); margin-bottom: 0; }
.card ul { list-style: none; padding-left: 0; }
.card ul li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent-light);
}
.callout ol li { margin-bottom: 10px; }
.callout ol li::marker { color: var(--growth-dark); font-weight: 700; }
.callout ol li strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   18. Glossaire
   -------------------------------------------------------------------------- */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); margin: 0; }
.glossary div { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.glossary dt {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 5px;
}
.glossary dt::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 6px;
}
.glossary dd { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.62; }

/* --------------------------------------------------------------------------
   19. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--s-3); }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-base);
}
.faq__item:hover { border-color: var(--line-strong); }
.faq__item.is-open { border-color: var(--accent-light); box-shadow: var(--sh-2); }
.faq__btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  background: transparent;
  border: 0;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.45;
  transition: background var(--t-fast), color var(--t-fast);
}
.faq__btn:hover { background: var(--bg-alt); color: var(--accent-deep); }
.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-wash);
  margin-top: 1px;
  transition: background var(--t-fast), transform var(--t-base);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--accent-deep);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--t-base), opacity var(--t-fast);
}
.faq__icon::before { width: 11px; height: 2px; }
.faq__icon::after { width: 2px; height: 11px; }
.faq__item.is-open .faq__icon { background: var(--accent); }
.faq__item.is-open .faq__icon::before { background: #fff; }
.faq__item.is-open .faq__icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow); }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p { padding: 0 20px 18px; margin: 0; font-size: .94rem; color: var(--ink-soft); }
.faq__panel p + p { padding-top: 0; }

/* --------------------------------------------------------------------------
   20. Sources
   -------------------------------------------------------------------------- */
.sources {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.sources li {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 0;
}
.sources li strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: .95rem;
  margin-bottom: 3px;
}
.sources__date {
  display: inline-block;
  margin-top: 6px;
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--surface-tint);
  border-radius: var(--r-pill);
  padding: 2px 10px;
  font-variant-numeric: tabular-nums;
}
.sources li > span { display: block; }
/* Sous titre de section place hors de section__head */
.section > .wrap > h3 { margin-top: var(--s-7); font-size: clamp(1.24rem, 1.8vw, 1.55rem); font-weight: 700; }
.section > .wrap > p { max-width: 78ch; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   21. Bloc auteur
   -------------------------------------------------------------------------- */
.author {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: var(--sh-2);
}
.author__photo {
  width: 150px;
  height: 150px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: 3px solid var(--accent-wash);
  box-shadow: var(--sh-2);
}
.author__name { font-size: 1.42rem; margin-bottom: 3px; }
.author__role {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.author__bio { font-size: .96rem; color: var(--ink-soft); }
.author__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: var(--s-4) 0 0;
}
.author__links li { margin: 0; }
.author__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.author__links a:hover { background: var(--accent-wash); border-color: var(--accent-light); transform: translateY(-2px); }
.author__updated {
  font-size: .82rem;
  color: var(--ink-faint);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
}

/* --------------------------------------------------------------------------
   22. CTA final
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  background: linear-gradient(160deg, #04384F 0%, #075985 55%, #0284C7 100%);
  color: #EAF6FE;
  border-radius: var(--r-lg);
  padding: clamp(28px, 4.5vw, 58px);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.final-cta > * { position: relative; }
.final-cta h2 { color: #fff; max-width: 22ch; }
.final-cta p { color: #C9E6F7; max-width: 62ch; font-size: 1.02rem; }
.final-cta .btn--primary { background: #fff; color: var(--accent-deep); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.final-cta .btn--primary:hover { background: var(--accent-wash); color: var(--accent-deep); }
.final-cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.final-cta .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.final-cta .btn-note { color: rgba(234, 246, 254, .72); }
.final-cta__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.final-cta__stats div strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.final-cta__stats div span { font-size: .82rem; color: #B9DCF0; }

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 66px) var(--s-5);
  font-size: .92rem;
  color: var(--ink-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  margin-bottom: var(--s-6);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: var(--s-3);
}
.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--surface);
  padding: 3px;
}
.footer-col h3 {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color var(--t-fast), transform var(--t-fast);
}
.footer-col a:hover { color: var(--accent-deep); transform: translateX(3px); }
.footer-col a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
}
.footer-disclosure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  font-size: .85rem;
  line-height: 1.65;
  margin-bottom: var(--s-5);
}
.footer-disclosure p { margin-bottom: 10px; }
.footer-disclosure p:last-child { margin-bottom: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-strong);
  font-size: .84rem;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   24. Bouton retour en haut
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), background var(--t-fast);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* --------------------------------------------------------------------------
   25. Reveal au scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(.22, .61, .36, 1),
              transform 520ms 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; }

/* --------------------------------------------------------------------------
   26. Bandeau image intercalaire
   -------------------------------------------------------------------------- */
.media-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 3.5vw, 44px); align-items: center; }
.media-band__fig {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  background: var(--surface);
}
.media-band__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.media-band__fig figcaption { font-size: .8rem; color: var(--ink-faint); padding: 10px 14px; border-top: 1px solid var(--line); }
.media-band--rev .media-band__fig { order: 2; }

/* --------------------------------------------------------------------------
   27. Page 404
   -------------------------------------------------------------------------- */
.err {
  min-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--s-8);
  background:
    radial-gradient(680px 380px at 50% 0%, #DCF0FB 0%, rgba(255, 255, 255, 0) 70%),
    var(--bg);
}
.err__code {
  font-family: var(--font-title);
  font-size: clamp(4.5rem, 15vw, 9rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  background: linear-gradient(150deg, var(--accent), var(--growth));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--s-4);
}
.err p { max-width: 52ch; margin-inline: auto; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   28. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .nav__list a { padding: 8px 9px; font-size: .85rem; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__figure { order: -1; }
  .media-band,
  .media-band--rev { grid-template-columns: minmax(0, 1fr); }
  .media-band--rev .media-band__fig { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scroll-hint { display: block; }
}

/* Bascule burger : en dessous de 1120px, la navigation desktop cede la place
   au panneau mobile qui reprend l'integralite des ancres de la page. */
@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: block;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-3);
    padding: var(--s-4) clamp(18px, 4vw, 34px) var(--s-5);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; margin-bottom: var(--s-4); }
  .nav__list a { display: block; padding: 12px 14px; font-size: .96rem; border-radius: var(--r-sm); }
  .nav .nav__list--more {
    display: flex;
    padding-top: var(--s-3);
    border-top: 1px solid var(--line);
  }
  .nav .btn { width: 100%; }
  .nav__list a,
  .nav .btn { white-space: normal; }
}
@media (max-width: 760px) {
  .kpi-grid,
  .grid--2,
  .grid--3,
  .grid--4,
  .duo,
  .split-list,
  .checklist,
  .sources,
  .glossary { grid-template-columns: minmax(0, 1fr); }
  .scenario__summary { grid-template-columns: minmax(0, 1fr); }
  .final-cta__stats { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .author { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .author__photo { width: 120px; height: 120px; }
  .chain__item { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .chain__item::after { left: 26px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .glossary div { padding: var(--s-3) 0; }
}
@media (max-width: 520px) {
  :root { --s-7: 36px; --s-8: 46px; }
  body { font-size: 16px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn--sm { width: auto; }
  .hero__rating { width: 100%; }
  .brand__tag { display: none; }
  .to-top { right: 12px; bottom: 12px; width: 42px; height: 42px; }
  .scenario { padding: var(--s-4); }
  .scenario__tab { flex: 1 1 100%; }
  .calendar { padding: var(--s-3); }
  .method { padding: var(--s-4); }
  .final-cta { padding: var(--s-5) var(--s-4); }
}

/* --------------------------------------------------------------------------
   29. 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; }
  .draw-line { stroke-dashoffset: 0; }
  .draw-area, .draw-point { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .kpi:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   30. Impression
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .to-top,
  .readbar,
  .nav-toggle,
  .final-cta,
  .scenario__tabs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .section { padding-block: 14pt; border-top: 1px solid #ccc; break-inside: avoid; }
  .card, .kpi, .chart, .panel, .method, .author { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .faq__panel { grid-template-rows: 1fr; }
  .faq__panel > div { overflow: visible; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .reveal { opacity: 1; transform: none; }
}

/* Corrections de contraste
   Le bleu ciel #0284C7 ne donnait que 4,1:1 avec du texte blanc.
   Les surfaces qui portent du texte blanc passent sur la teinte plus profonde. */
.btn--primary,
.btn--primary:focus-visible { background: #0369A1; }
.btn--primary:hover { background: #075985; }
.scenario__tab.is-active,
.scenario__tab[aria-selected="true"] { background: #0369A1; }
.footer-col h3 { color: #3E556B; }
