/* School Manager - site vitrine, feuille de style commune (v2).
   Référence : docs/refonte-site/SPEC.md (tokens §4, composants §6, accessibilité §7).
   Toute modification : renommer en site.v3.css et mettre à jour les 8 pages dans le même commit.
   Mobile d'abord : styles de base pour 320 px, puis paliers en em (sm 600, md 900, lg 1200). */

/* ------------------------------------------------------------------ Polices (§8.3) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/outfit-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Polices de repli aux métriques ajustées sur Arial, pour limiter le décalage au chargement.
   Valeurs calculées avec fontTools (méthode Capsize : largeur moyenne pondérée par la fréquence
   des lettres d'un corpus français tiré des fiches de pages, métriques verticales OS/2). */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 106.38%;
  ascent-override: 91.07%;
  descent-override: 22.68%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Outfit Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 99.56%;
  ascent-override: 100.44%;
  descent-override: 26.12%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------- Tokens (§4) */
:root {
  --paper: #f7f4ec;
  --paper-2: #efebe0;
  --surface: #ffffff;
  --line: #ddd7c8;
  --ink: #12241f;
  --ink-2: #4a5a55;
  --green: #0f5c4c;
  --green-hover: #0b4a3d;
  --green-pale: #e4eee9;
  --night: #0b231e;
  --night-2: #12352d;
  --on-night: #f1f5f3;
  --on-night-2: #b9ccc5;
  --gold: #c9a227;
  --gold-hover: #ddb63a;
  --gold-ink: #1a1403;
  --gold-dark: #7a5f0c;
  --outline-light: rgba(241, 245, 243, .55);

  --font-title: "Outfit", "Outfit Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --pad: clamp(1rem, 4vw, 2.5rem);
  --shell: 1180px;
  --narrow: 820px;
  --header-h: 64px;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(18, 36, 31, .06), 0 4px 12px rgba(18, 36, 31, .05);
  --shadow-shot: 0 12px 32px rgba(18, 36, 31, .16);
  --shadow-shot-dark: 0 24px 60px rgba(0, 0, 0, .35);
  --shadow-menu: 0 16px 40px rgba(0, 0, 0, .35);

  --t-fast: 150ms ease-out;
  --t-base: 200ms ease-out;
}

/* -------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  /* L'en-tête collant ne masque jamais une ancre ni l'élément focalisé (2.4.11). */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); line-height: 1.12; max-width: 22ch; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); line-height: 1.12; max-width: 24ch; margin-bottom: var(--s-6); }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
p, li { max-width: 65ch; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
strong { font-weight: 600; }

a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--green-hover); }

/* Focus : vert sur fond clair, or sur fond nuit (§7.2). Outline, pas box-shadow (contraste forcé). */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.topbar :focus-visible,
.hero :focus-visible,
.closer :focus-visible,
.footer :focus-visible { outline-color: var(--gold); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  padding: .75rem 1rem;
  text-decoration: none;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 1rem; top: .75rem; color: var(--gold-ink); outline-color: var(--night); }

/* ------------------------------------------------------------- Mise en page */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.shell-narrow { max-width: calc(var(--narrow) + 2 * var(--pad)); }
.shell-mid { max-width: calc(1000px + 2 * var(--pad)); }
.section { padding-block: var(--section-y); }
.section-tint { background: var(--paper-2); }

.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--s-3);
}
.eyebrow-dark { color: var(--gold); }

.lede {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.1875rem);
  line-height: 1.6;
  max-width: 56ch;
  color: var(--ink-2);
}
h2 + .lede { margin-top: calc(-1 * var(--s-4)); margin-bottom: var(--s-6); }
.small { font-size: .9375rem; line-height: 1.5; }
.p-gap { margin-top: var(--s-4); }
.more-list .more, span.more { display: block; }

/* ------------------------------------------------------------------- Icônes (§8.4) */
.ico {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-sm { width: 16px; height: 16px; vertical-align: -.15em; }
.ico-lg { width: 32px; height: 32px; color: var(--green); }

/* ------------------------------------------------------------------ Boutons (§6.3) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font: 600 1rem/1.25 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t-base), border-color var(--t-base), color var(--t-base);
}
.btn:active { filter: brightness(.95); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-hover); color: #fff; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hover); color: var(--gold-ink); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-pale); color: var(--green-hover); }
.btn-outline-light { background: transparent; color: var(--on-night); border-color: var(--outline-light); }
.btn-outline-light:hover { color: var(--on-night); border-color: var(--gold); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.btn-row > .btn { flex: 1 1 100%; }
.btn-row-center { justify-content: center; }

/* ------------------------------------------------------------- Liens texte (§6.4) */
.more { margin-top: var(--s-5); }
.more a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding-block: 8px;
  font-weight: 600;
  text-decoration: none;
}
.more a:hover { text-decoration: underline; }
.more-list { display: grid; gap: 0 var(--s-5); margin-top: var(--s-4); }
.more-list .more { margin-top: 0; }

/* ------------------------------------------------------------- En-tête (§6.1) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--night);
  color: var(--on-night);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  color: var(--on-night);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--on-night); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav-desktop { display: none; gap: 28px; }
.nav-desktop a, .link-quiet {
  color: var(--on-night-2);
  text-decoration: none;
  font-size: .9375rem;
  padding-block: 10px;
}
.nav-desktop a:hover, .link-quiet:hover {
  color: var(--on-night);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.nav-desktop a[aria-current="page"] {
  color: var(--on-night);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.link-quiet { display: none; }
.topbar-actions { display: flex; align-items: center; gap: var(--s-3); }

.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(241, 245, 243, .35);
  border-radius: var(--r-pill);
  color: var(--on-night);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary .ico-close { display: none; }
.nav-mobile[open] summary { border-color: var(--gold); }
.nav-mobile[open] summary .ico-open { display: none; }
.nav-mobile[open] summary .ico-close { display: block; }
.nav-mobile nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 2rem));
  display: grid;
  padding: var(--s-2);
  background: var(--night);
  border: 1px solid var(--night-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-menu);
}
.nav-mobile nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--on-night);
  text-decoration: none;
}
.nav-mobile nav a:hover { background: var(--night-2); color: var(--on-night); }
.nav-mobile nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-mobile hr { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--night-2); }

/* < 440 px : « Menu » masqué visuellement (nom accessible conservé), en-tête resserré. */
@media (max-width: 27.4375em) {
  .topbar-inner { gap: var(--s-2); }
  .topbar-actions { gap: var(--s-2); }
  .brand { gap: 8px; font-size: .9375rem; }
  .brand img { width: 30px; height: 30px; }
  .nav-mobile summary { padding: 0; width: 44px; }
  .nav-mobile .menu-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .topbar .btn-sm { padding: .5rem .8rem; font-size: .875rem; white-space: nowrap; }
}
/* < 360 px : le nom visible disparaît, l'icône reste et le nom reste lu. */
@media (max-width: 22.4375em) {
  .brand-name {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
@media (min-width: 37.5em) {
  .link-quiet { display: inline-block; }
}
@media (min-width: 56.25em) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
}

/* ----------------------------------------------------------- Pied de page (§6.2) */
.footer {
  background: var(--night);
  color: var(--on-night-2);
  padding-block: 48px 32px;
  font-size: .9375rem;
  line-height: 1.5;
}
.footer a {
  display: inline-block;
  padding-block: 6px;
  color: var(--on-night);
  text-decoration: none;
}
.footer a:hover { color: var(--gold); text-decoration: underline; }
.footer a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
.footer-about { max-width: 40ch; }
.footer-about > p + p { margin-top: var(--s-3); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--on-night);
}
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-contact { margin-top: var(--s-3); }
.footer-title {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-night-2);
  margin-bottom: var(--s-2);
  max-width: none;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  margin-top: 40px;
  padding-top: var(--s-5);
  border-top: 1px solid var(--night-2);
  font-size: .8125rem;
  line-height: 1.45;
}
.footer-base a { padding-block: 0; }
@media (min-width: 37.5em) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 56.25em) {
  .footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------- Haut de page (§6.6) */
.hero {
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(201, 162, 39, .14), transparent 60%),
    radial-gradient(60% 80% at 0% 0%, rgba(15, 92, 76, .6), transparent 65%),
    var(--night);
  color: var(--on-night);
  padding-top: clamp(2.5rem, 7vw, 5rem);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-7); }
.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(2rem, 1.35rem + 3vw, 3.4rem);
  line-height: 1.1;
  max-width: 18ch;
}
.hero h1 .gold { color: var(--gold); }
.hero .lede { color: var(--on-night-2); margin-top: 20px; }
.micro { color: var(--on-night-2); font-size: .9375rem; line-height: 1.5; margin-top: var(--s-4); }
.hero-visual { position: relative; display: flex; justify-content: center; min-width: 0; }

/* ------------------------------------------------- Captures (§6.12) */
.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(18, 36, 31, .08);
  background: var(--night);
  box-shadow: var(--shadow-shot);
  aspect-ratio: 9 / 16;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot-crop { aspect-ratio: 9 / 15; }
.shot-240 { width: 240px; max-width: 100%; margin-inline: auto; }
.hero .shot { border-radius: var(--r-xl); box-shadow: var(--shadow-shot-dark); background: var(--night-2); }
.shot-main {
  position: relative;
  z-index: 2;
  width: min(270px, 68vw);
  aspect-ratio: 9 / 15;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.shot-back {
  display: none;
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 220px;
  aspect-ratio: 9 / 15;
  opacity: .55;
  transform: translateY(-48px);
}
.shot-figure figcaption,
.shots-rail figcaption {
  margin-top: 10px;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
}
.shot-figure { max-width: 240px; margin-inline: auto; }
.shot-figure .shot { width: 100%; }

.rail-title { margin: var(--s-7) 0 var(--s-5); }
.shots-rail {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px var(--s-4);
  margin-inline: -4px;
}
.shots-rail > figure { flex: 0 0 72%; scroll-snap-align: center; }
.shots-rail .shot { width: 100%; }
.rail-hint { font-size: .9375rem; color: var(--ink-2); margin-top: var(--s-2); }
@media (min-width: 37.5em) {
  .shots-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-5);
    overflow: visible;
    padding: 0;
    margin-inline: 0;
  }
  .shots-rail > figure { max-width: 260px; width: 100%; margin-inline: auto; }
  .rail-hint { display: none; }
}

/* ------------------------------------------------ Bandeau parents (§6.9) */
.switch { background: var(--green-pale); border-bottom: 1px solid var(--line); }
.switch p { padding-block: 14px; font-size: .96875rem; line-height: 1.5; max-width: none; }
.switch a { display: inline; padding-block: 4px; font-weight: 600; }
.switch a .ico { margin-left: 2px; }

/* --------------------------------------------------------- Faits (§6.10) */
.facts { border-bottom: 1px solid var(--line); }
.facts-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2) 28px;
  padding-block: 20px;
  font-size: .9375rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink-2);
}
.facts-list li { display: inline-flex; align-items: center; gap: var(--s-2); }
.facts-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
@media (min-width: 37.5em) {
  .facts-list { flex-direction: row; flex-wrap: wrap; }
}

/* ----------------------------------------------------------- Cartes (§6.11) */
.card, .role, .module, .feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.card { color: var(--ink-2); }
.card h3 { color: var(--ink); margin: var(--s-4) 0 6px; }
.card-sub { font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.card-for { margin: var(--s-3) 0 var(--s-4); font-size: .96875rem; color: var(--ink-2); }
.card-for strong { color: var(--ink); }
/* Intitulé de problème (h3) : sélecteur à deux classes pour primer sur .card h3 */
.card .card-problem {
  margin-top: 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: var(--s-3);
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}
.card .tag-plan { margin-top: var(--s-4); }
.grid-3, .grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
.grid-3 { margin-top: var(--s-6); }
@media (min-width: 37.5em) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
}

.role { display: flex; flex-direction: column; gap: var(--s-4); }
.role h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.module h3, .feature h3 { margin: var(--s-4) 0 6px; }
.module p, .feature p { font-size: .96875rem; color: var(--ink-2); }
.module .tag-plan { margin-top: var(--s-3); }

.cols { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 37.5em) {
  .cols-sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
}
@media (min-width: 56.25em) {
  .cols-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 75em) {
  .cols-lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Coches */
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .96875rem; color: var(--ink-2); }
.ticks .ico { color: var(--green); margin-top: .15em; }
.ticks-lg li { font-size: 1.0625rem; color: var(--ink); }
.ticks-minus .ico { color: var(--ink-2); }

/* ---------------------------------------------------------- Pastilles (§6.13) */
.tag, .tag-plan {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.tag { background: var(--green-pale); color: var(--green); }
.tag-plan { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }

/* ----------------------------------------------------------- Encadré (§6.14) */
.notice {
  margin-top: var(--s-5);
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--r-md);
  color: var(--ink-2);
  max-width: 65ch;
}
.notice p { max-width: none; }
.notice strong { color: var(--ink); }
.notice-gold { border-left-color: var(--gold); }

/* --------------------------------------------------------- Badges stores (§6.15) */
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: var(--s-5);
}
.store-badge { display: inline-block; line-height: 0; border-radius: var(--r-sm); margin: 0; }
.store-badge img { height: 44px; width: auto; }
.store-badge-soon { opacity: .6; cursor: default; }
.store-note { flex: 1 1 100%; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 22.4375em) {
  .store-row { flex-direction: column; align-items: flex-start; }
}

.share { margin-top: var(--s-4); }
.share a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font-weight: 600;
}

/* ---------------------------------------------- Deux colonnes et photos (§6.21) */
.split { display: grid; grid-template-columns: 1fr; gap: var(--s-7); }
.split > * { min-width: 0; }
.photo img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
}
.photo figcaption { margin-top: var(--s-2); font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }
.photo-16-11 img { aspect-ratio: 16 / 11; }
@media (min-width: 56.25em) {
  .split { grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
  .split-top { align-items: start; }
  .photo-4-3 img { aspect-ratio: 4 / 3; }
  .photo-4-5 img, .photo-16-11.photo-4-5 img { aspect-ratio: 4 / 5; }
}

/* ------------------------------------------------------- Étapes (§6.18) */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--s-4); counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  max-width: none;
  padding: 72px var(--s-5) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: var(--s-5);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold);
  font-family: var(--font-title);
  font-weight: 600;
}
.steps h3 { margin-bottom: 6px; }
.steps p { font-size: .96875rem; color: var(--ink-2); }
@media (min-width: 47.5em) {
  .steps:not(.steps-vertical) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.steps-vertical > li { padding: 20px var(--s-5) 20px 76px; }
.steps-vertical > li::before { top: 20px; left: 20px; }

/* ----------------------------------------------------------- Confiance */
.trust-item h3 { margin: 14px 0 6px; }
.trust-item p { font-size: .96875rem; color: var(--ink-2); }
.trust-item p + p { margin-top: var(--s-3); }
.trust-wide { gap: var(--s-6) var(--s-7); }

/* ------------------------------------------------------------ Tarifs (§6.17) */
.plans { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.plan-scale { color: var(--green); font-weight: 600; font-size: .9375rem; margin: 4px 0 20px; }
.plan-price {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.plan-price small { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.plan-price span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
}
.plan-eq { margin: var(--s-2) 0 20px; font-size: .90625rem; line-height: 1.5; color: var(--ink-2); }
.plan .ticks { margin-bottom: var(--s-5); }
.plan-push { flex: 1; }
.plan .btn { width: 100%; margin-top: auto; }
.note { margin-top: var(--s-5); font-size: .96875rem; color: var(--ink-2); max-width: 70ch; }
.note + .note { margin-top: var(--s-2); }
.plans-stack { max-width: 560px; margin-inline: auto; }
@media (min-width: 56.25em) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans-stack { max-width: none; }
}

/* ------------------------------------------------------- Tableaux (§6.16, §6.22) */
/* position: relative : les textes masqués (.sr-only, en absolu) restent dans le conteneur
   défilant au lieu d'élargir la page. */
.table-scroll { position: relative; overflow-x: auto; border-radius: var(--r-md); }
/* Anneau dessiné vers l'intérieur : le conteneur peut toucher les bords de l'écran. */
.table-scroll:focus-visible { outline-offset: -3px; }
.compare, .roles-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .9375rem;
  line-height: 1.45;
}
.compare th, .compare td, .roles-table th, .roles-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.compare thead th, .roles-table thead th {
  background: var(--night);
  color: var(--on-night);
  font-weight: 600;
}
.compare thead th:not(:first-child), .compare td { text-align: center; }
.compare tbody tr:nth-child(odd) > * { background: var(--paper); }
.compare tbody tr:nth-child(even) > * { background: var(--surface); }
.compare tbody th { font-weight: 400; color: var(--ink); }
.compare td .ico { width: 20px; height: 20px; margin-inline: auto; display: block; color: var(--green); }
.compare td .ico-no { color: var(--ink-2); }
.compare .opt { font-size: .8125rem; color: var(--ink); }
.compare .row-price > * { font-family: var(--font-title); font-weight: 600; }
.compare-wrap, .roles-wrap { max-width: 900px; margin-inline: auto; }
.roles-table tbody tr:nth-child(odd) > * { background: var(--paper); }
.roles-table tbody th { font-weight: 600; }
.roles-table td:nth-child(2) { font-size: .875rem; color: var(--ink-2); white-space: nowrap; }
.roles-table td:last-child { color: var(--ink-2); }
/* < 600 px : tableau resserré pour tenir à 320 px (libellé ≈ 120 px, 3 colonnes étroites). */
@media (max-width: 37.4375em) {
  .compare { font-size: .8125rem; }
  .compare th, .compare td { padding: 10px 4px; }
  .compare th:first-child { padding-left: 10px; width: 40%; }
  .compare thead th { font-size: .75rem; }
  .compare .cur { display: block; }
  .compare .row-price td { font-size: .75rem; }
  .compare-wrap .table-scroll { margin-inline: calc(-1 * var(--pad)); border-radius: 0; }
  /* Tableau des rôles : tient sans défilement à 320 / 375 px. */
  .roles-table { font-size: .8125rem; }
  .roles-table th, .roles-table td { padding: 10px 6px; }
  .roles-table th:first-child { padding-left: 10px; }
  .roles-table td:nth-child(2) { white-space: normal; }
  .roles-table td:last-child { hyphens: auto; }
}
@media (min-width: 37.5em) {
  .compare th, .compare td, .roles-table th, .roles-table td { padding: 12px 16px; }
}

/* ------------------------------------------------------------- FAQ (§6.19) */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.faq summary {
  position: relative;
  list-style: none;
  min-height: 52px;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  color: var(--green);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq details[open] .answer { animation: fade-in var(--t-fast); }
.faq .answer p + p { margin-top: var(--s-2); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.after-faq { margin-top: var(--s-5); }
.after-faq a { display: inline-flex; align-items: center; gap: var(--s-2); padding-block: 8px; }

/* --------------------------------------------------------- Appel final (§6.20) */
.closer {
  background:
    radial-gradient(50% 80% at 50% 0%, rgba(201, 162, 39, .16), transparent 70%),
    var(--night);
  color: var(--on-night);
  text-align: center;
  padding-block: var(--section-y);
}
.closer h2 { margin-inline: auto; margin-bottom: var(--s-4); }
.closer p { color: var(--on-night-2); margin-inline: auto; }

/* ----------------------------------------- Introduction des pages intérieures (§6.7) */
.page-intro {
  background: var(--paper);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.page-intro h1 { margin-bottom: var(--s-4); }
.page-intro .btn-row { margin-top: var(--s-5); } /* 24 px du chapô (SPEC §6.7) */
.intro-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
.intro-grid > * { min-width: 0; }
.intro-visual-md { display: none; }
@media (min-width: 56.25em) {
  .intro-grid { grid-template-columns: 1.15fr .85fr; align-items: end; gap: clamp(2rem, 5vw, 4rem); }
  .intro-visual-md { display: block; }
}

/* -------------------------------------------------------------- Sommaire (§6.8) */
.toc { margin-top: var(--s-6); }
.toc ul { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--green);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color var(--t-fast);
}
.toc a:hover { background: var(--green-pale); }

/* ------------------------------------------------- Blocs de fonctionnalités */
.feature-block { display: grid; grid-template-columns: 1fr; gap: var(--s-7); }
.feature-block > * { min-width: 0; }
.mod-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5) var(--s-6); }
.mod-grid > div { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.mod-grid h3 { margin-bottom: 6px; }
.mod-grid h3 .ico-lg { display: block; margin-bottom: var(--s-3); }
.mod-grid p { font-size: .96875rem; color: var(--ink-2); }
.block-after { margin-top: var(--s-7); }
@media (min-width: 37.5em) {
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-grid-3 > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 56.25em) {
  .feature-block.has-media { grid-template-columns: 1.2fr .8fr; align-items: start; }
  .mod-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mod-grid-3 > div:last-child:nth-child(odd) { grid-column: auto; }
}

/* Parents : étapes et capture côte à côte */
.access-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); }
.access-grid > * { min-width: 0; }
@media (min-width: 56.25em) {
  .access-grid { grid-template-columns: 1.3fr .7fr; align-items: start; }
}

/* Petites icônes de section (sécurité) */
.section-icon { margin-bottom: var(--s-3); }

/* ----------------------------------------------------------------- Page 404 */
.notfound { padding-block: clamp(4rem, 12vw, 8rem); }
.notfound h1 { margin-bottom: var(--s-4); }
.notfound-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: var(--s-5); }
.notfound h2 { font-size: 1.25rem; max-width: none; margin: var(--s-7) 0 var(--s-2); }
@media (min-width: 37.5em) {
  .more-list-inline { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
}

/* -------------------------------------------------------- Texte juridique (§6.22) */
.legal {
  max-width: calc(46rem + 2 * var(--pad));
  margin-inline: auto;
  padding: 48px var(--pad) 96px;
  color: var(--ink);
}
.legal h1 { margin-bottom: 6px; }
.legal .updated { font-size: .9375rem; color: var(--ink-2); margin-bottom: var(--s-6); }
.legal h2 { font-size: 1.375rem; line-height: 1.25; max-width: none; margin: 48px 0 var(--s-4); }
.legal h3 { font-size: 1.125rem; margin: 28px 0 var(--s-2); }
.legal p, .legal li { line-height: 1.7; max-width: none; }
.legal p + p { margin-top: var(--s-4); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin: var(--s-3) 0; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--green); text-decoration: underline; }
.legal .table-scroll { margin: 20px 0; border: 1px solid var(--line); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.legal th, .legal td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal .table-scroll th, .legal .table-scroll td { border-width: 0 1px 1px 0; }
.legal .table-scroll tr > :last-child { border-right: 0; }
.legal .table-scroll tbody tr:last-child > * { border-bottom: 0; }
.legal th { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.legal tbody tr:nth-child(even) td { background: var(--surface); }
.legal .toc { margin: var(--s-5) 0 0; }
.legal .toc ul { list-style: none; padding: 0; margin: 0; }
.legal .toc li + li { margin-top: 0; }
.legal .toc a { text-decoration: none; }
.legal .notice { max-width: none; }
.legal address { font-style: normal; margin: var(--s-3) 0 var(--s-4); }
@media (max-width: 37.4375em) {
  /* 8,5rem (136 px) : deux colonnes tiennent dans 286 px à 320 px ; les tableaux plus larges défilent */
  .legal th, .legal td { min-width: 8.5rem; }
}

/* ------------------------------------------------------------------ Paliers */
@media (min-width: 37.5em) {
  .btn-row > .btn { flex: 0 1 auto; }
}
@media (min-width: 56.25em) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
  .hero-copy { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
  .shot-back { display: block; }
}

/* ---------------------------------------------------------- Contraste forcé */
@media (forced-colors: active) {
  .ico { stroke: CanvasText; }
  .tag, .tag-plan, .toc a { border: 1px solid CanvasText; }
}

/* --------------------------------------------------------- Mouvement réduit (§4.5) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ Impression */
@media print {
  .topbar, .skip-link, .nav-mobile, .btn-row, .closer, .store-row, .share, .rail-hint { display: none !important; }
  body, .section-tint, .page-intro, .hero, .footer { background: #fff !important; color: #000 !important; }
  .hero h1 .gold, .hero .lede, .micro, .footer, .footer a, .footer-title, .eyebrow-dark { color: #000 !important; }
  .compare thead th, .roles-table thead th { background: #fff !important; color: #000 !important; border-bottom: 2px solid #000; }
  .legal a[href^="http"]::after { content: " (" attr(href) ")"; }
  .shot { box-shadow: none; }
}
