/* ==========================================================================
   OuiSup — design system v5 « Épuré »
   Une seule source de vérité : tokens → base → layout → composants → pages.
   ========================================================================== */

:root {
  /* ===== CHARTE OUISUP « Corail & Encre » =====
     5 couleurs de marque : Encre, Papier, Corail, Citron + 3 pastels de verdict.
     Règle : Corail = action (1 bouton principal par écran). Citron = 1 chiffre surligné par écran.
     Les verdicts n'utilisent que Menthe / Ambre / Lavande. */

  /* Neutres chauds */
  --ink: #16131F;          /* Encre : texte, blocs forts, onglet actif */
  --text-2: #5E5868;       /* texte secondaire (AA sur papier) */
  --text-3: #6F6878;       /* légendes : contraste AA sur le papier */
  --bg: #FBF8F5;           /* Papier */
  --surface: #FFFFFF;
  --surface-2: #F4F0EC;    /* Brume : champs, pastilles */
  --surface-3: #EAE4DF;
  --line: #ECE6E1;
  --line-strong: #DAD2CB;

  /* Marque */
  --brand: #D6324A;        /* Corail : blanc lisible dessus */
  --brand-hover: #C2263C;
  --brand-soft: #FFE9EC;
  --brand-ink: #FFFFFF;
  --peach: #FF8A4C;
  --berry: #E0367E;
  --marker: #FFD84A;       /* Citron */
  --marker-soft: #FFF5CC;

  /* Verdicts (pastels assortis, texte foncé pour le contraste) */
  --sur: #0E9F6E;          /* Menthe : sécurité */
  --sur-soft: #DDF5EC;
  --possible: #C27400;     /* Ambre : réaliste */
  --possible-soft: #FFF0D4;
  --ambitieux: #6D5BF2;    /* Lavande : ambition */
  --ambitieux-soft: #ECE9FF;
  --danger: #D92D20;
  --danger-soft: #FEE4E2;

  /* Dégradés */
  --grad-text: linear-gradient(95deg, var(--peach) 0%, var(--brand) 50%, var(--berry) 100%);
  --grad-brand: linear-gradient(120deg, var(--peach) -10%, var(--brand) 45%, var(--berry) 110%);
  --grad-ink: linear-gradient(135deg, #221C30 0%, var(--ink) 60%);
  --grad-page: radial-gradient(55% 45% at 0% 0%, #FFE3DC 0%, transparent 70%), radial-gradient(50% 45% at 100% 8%, #ECE6FF 0%, transparent 70%), radial-gradient(60% 50% at 50% 100%, #FFF1D9 0%, transparent 70%);

  /* Alias historiques (utilisés par le JS / anciennes pages) */
  --card: var(--surface);
  --text: var(--ink);
  --muted: var(--text-2);
  --border: var(--line);
  --action: var(--brand);
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  --highlight: var(--marker);
  --surligneur: var(--marker);
  --yellow: var(--ink);
  --yellow-deep: #000;
  --on-mark: #FFFFFF;
  --success: var(--sur);
  --success-soft: var(--sur-soft);
  --warning: var(--possible);
  --warning-soft: var(--possible-soft);
  --neutre: var(--text-2);

  /* Typographie : 2 polices, 8 tailles, 3 graisses (400 / 600 / 800) */
  --font-d: "Bricolage Grotesque", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-b: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-display: clamp(44px, 6.6vw, 80px);
  --t-h1: clamp(30px, 4.2vw, 44px);
  --t-h2: clamp(24px, 3vw, 32px);
  --t-h3: 20px;
  --t-lead: 18px;
  --t-body: 16px;
  --t-small: 14px;
  --t-micro: 12px;

  /* Formes et ombres (teintées encre, jamais grises) */
  --radius: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-sm: 0 1px 2px rgba(22, 19, 31, .05);
  --shadow: 0 1px 2px rgba(22, 19, 31, .04), 0 10px 28px rgba(22, 19, 31, .07);
  --shadow-high: 0 2px 6px rgba(22, 19, 31, .06), 0 28px 64px rgba(22, 19, 31, .16);
  --shadow-brand: 0 12px 28px -6px rgba(242, 69, 92, .45);
  --ring: 0 0 0 4px rgba(242, 69, 92, .22);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --mast-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.shell { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a, button, summary, label, .chip { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-d);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--t-h2); margin-top: var(--s6); }
h3 { font-size: var(--t-h3); letter-spacing: -0.015em; }
p { margin: 0 0 var(--s4); }
strong, b { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; font-family: var(--font-d); font-weight: 800; letter-spacing: -0.03em; }
mark, .hl {
  background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%);
  color: inherit;
  padding: 0 .12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 60; background: var(--surface); padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow); }

/* ---------- Layout ---------- */
main { padding: var(--s6) 0 var(--s8); }
.wrap, .wrap-wide, .quiet {
  width: min(680px, calc(100% - 32px));
  margin-inline: auto;
  position: relative;
}
.wrap-wide { width: min(1120px, calc(100% - 32px)); }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.lead { font-size: var(--t-lead); color: var(--text-2); max-width: 58ch; line-height: 1.55; }
.meta, .note, .tick, .warn, .dots-cap { color: var(--text-2); font-size: 14px; }
.note { max-width: 46ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px 6px 8px; margin: 0 0 var(--s5);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sur); box-shadow: 0 0 0 4px var(--sur-soft); }
.page-h { font-size: clamp(30px, 4.4vw, 44px); max-width: 22ch; }
.bloc { margin-top: var(--s7); }
.bloc h2 { margin-top: 0; margin-bottom: var(--s3); }
.stack { display: grid; gap: var(--s2); }
.plain { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- Header ---------- */
.mast {
  position: sticky; top: 0; z-index: 30;
  height: var(--mast-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s5);
  padding: 0 max(16px, calc((100% - 1180px) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.mast.is-scrolled { border-bottom-color: var(--line); }
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-d); font-weight: 800; font-size: 20px;
  letter-spacing: -0.04em; text-decoration: none;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--ink); color: var(--marker);
  display: grid; place-items: center;
}
.logo-mark svg { width: 16px; height: 16px; }
.mast-nav, .vnav { display: flex; justify-content: center; gap: 2px; }
.mast-nav a, .vnav a {
  text-decoration: none; font-size: 14px; font-weight: 600;
  min-height: 38px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; color: var(--text-2);
  transition: background .15s, color .15s;
}
.mast-nav a:hover, .vnav a:hover { color: var(--ink); background: var(--surface-2); }
.mast-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.mast-nav a svg { width: 18px; height: 18px; }
.mast-end { display: flex; align-items: center; gap: 8px; }
.nav-account {
  text-decoration: none; font-size: 14px; font-weight: 600;
  min-height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
}
.nav-account:hover { background: var(--surface-2); }
.mast .btn, #nav-start { width: auto; min-width: 0; min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-demo { min-height: 40px !important; padding: 0 14px !important; font-size: 14px; }
.pill-saison {
  display: inline-block; font-size: 12px; font-weight: 800;
  background: var(--marker); color: var(--ink);
  border-radius: 999px; padding: 2px 8px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.2;
  cursor: pointer; width: 100%;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { background: #000; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(22,19,31,.18); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn-brand, .btn-yellow { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover, .btn-yellow:hover { background: var(--brand-hover); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--s5) 0; align-items: center; }
.btn-row .btn { width: auto; flex: 1 1 180px; }
.text-btn, .back {
  background: none; border: 0; padding: 0; min-height: 44px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 600; text-decoration: none; cursor: pointer;
}
.text-btn:hover, .back:hover { text-decoration: underline; }
.back { color: var(--text-2); font-size: 14px; margin-bottom: var(--s3); }
.back-row { width: min(680px, calc(100% - 32px)); margin: 0 auto; }
.icon-btn {
  width: 50px; height: 50px; min-height: 50px; flex: 0 0 auto;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px;
}
.icon-btn:hover { background: var(--surface-2); }

@media (min-width: 768px) {
  .btn { width: auto; }
}

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; }
.field-lab { font-size: 14px; font-weight: 600; color: var(--ink); }
.field-err { color: var(--danger); font-size: 14px; margin: 6px 0 0; }
.inp, .field input, .field select, textarea.inp, select.inp {
  width: 100%; min-height: 52px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.inp::placeholder { color: var(--text-3); }
.inp:hover { border-color: var(--text-3); }
.inp:focus, .field input:focus, .field select:focus, textarea.inp:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
textarea.inp { min-height: 180px; resize: vertical; line-height: 1.6; }
.calc { display: grid; gap: var(--s4); padding-top: var(--s2); }
.calc .btn { margin-top: 4px; }

.search { position: relative; flex: 1 1 auto; }
.search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search .inp { padding-left: 46px; }

.suggest {
  list-style: none; margin: 8px 0 0; padding: 6px;
  max-height: 340px; overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-high);
}
.suggest li { list-style: none; }
.suggest button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 48px; cursor: pointer;
}
.suggest button:hover, .suggest button[aria-selected="true"] { background: var(--surface-2); }
.suggest strong { display: block; font-weight: 600; }
.suggest small { display: block; color: var(--text-2); font-size: 13px; }
.suggest .meta { padding: 10px 12px; margin: 0; }

/* Chips & contrôles segmentés */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
button.chip { font: inherit; font-size: 15px; }
.chip:hover { border-color: var(--ink); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip.is-on, .chip[aria-pressed="true"], .chip:has(input:checked) {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.chip:has(input:focus-visible) { box-shadow: var(--ring); }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: var(--s4) 0; scrollbar-width: none; }
.chip-scroll .chip { flex: 0 0 auto; }

.bac, .seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 4px; background: var(--surface-2); border-radius: var(--radius-md);
}
.bac label, .seg label {
  position: relative;
  display: grid; place-items: center; gap: 0;
  min-height: 44px; padding: 6px 10px; margin: 0;
  border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--text-2);
  text-align: center;
  transition: background .15s, color .15s, box-shadow .15s;
}
.bac label small, .seg label small { font-weight: 400; font-size: 12px; color: var(--text-3); }
.bac input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bac label:hover, .seg label:hover { color: var(--ink); }
.bac label:has(input:checked), .seg label:has(input:checked) {
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
}
.bac label:has(input:focus-visible), .seg label:has(input:focus-visible) { box-shadow: var(--ring); }

/* ---------- Cartes & surfaces ---------- */
.card, .panel, .next-card, .offre, .diag-col, .parent-mock, .promesses li, .demo-card,
.action-now, .flash-card, .why li, .quiz-opt, .tool-card, .action-card, .mission, .calque, .etat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card, .panel { padding: var(--s5); }
.panel { margin-top: var(--s5); }
.panel h2 { margin-top: 0; }
.next-card {
  display: grid; gap: 4px; padding: 18px 20px; text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.next-card:hover, .tool-card:hover, .action-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.next-card h2, .next-card h3 { margin: 0; font-size: 17px; }
.next-card p, .next-card .meta { margin: 0; color: var(--text-2); }
.tool-card, .action-card { display: block; padding: 20px 22px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.tool-card p, .action-card p { color: var(--text-2); margin: 4px 0 0; }
.action-card h3 { margin: 0; }
.outils-grid, .actions-home, .tool-grid { display: grid; gap: 12px; }
.compte-hub, .plan-list { display: grid; gap: 8px; margin: 8px 0 36px; }
@media (min-width: 768px) {
  .outils-grid, .actions-home { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
}
.tool { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 20px; text-decoration: none; }
.tool img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 14px; }
.tool strong { font-family: var(--font-d); font-size: 18px; margin-bottom: 4px; }
.tool span { color: var(--text-2); font-size: 14px; }

.etat { display: flex; gap: 12px; padding: 18px 20px; align-items: flex-start; }
.etat .ico { color: var(--text-2); margin-top: 2px; }
.etat-err .ico { color: var(--danger); }
.etat-t { font-weight: 600; margin: 0 0 4px; }
.etat p:last-of-type { margin-bottom: 0; }
.etat .btn { margin-top: 12px; }

.skel { padding: 4px 0; }
.skel i {
  display: block; height: 12px; margin: 12px 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.skel i:nth-child(2n) { width: 72%; }
.skel i:nth-child(3n) { width: 54%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.garde { background: var(--marker); color: var(--ink); padding: 12px 16px; border-radius: var(--radius-md); font-weight: 600; }

/* Pills & badges */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pill {
  display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px;
  border-radius: 999px; background: var(--surface-2); color: var(--text-2);
  font-size: 13px; font-weight: 600;
}
.pill-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; width: fit-content; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2);
}
.pill-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-badge.is-neutre::before { display: none; }
.pill-badge.is-sur { background: var(--sur-soft); color: var(--sur); }
.pill-badge.is-possible { background: var(--possible-soft); color: var(--possible); }
.pill-badge.is-ambitieux { background: var(--ambitieux-soft); color: var(--ambitieux); }
.pill-badge.is-urgent { background: var(--danger-soft); color: var(--danger); }
.pill-reco {
  display: inline-block; margin: 0 0 12px;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  border-radius: 999px; padding: 4px 10px;
}

/* ---------- Toasts, sheets, modales ---------- */
.toasts {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 70; display: grid; gap: 8px; width: min(420px, calc(100% - 32px));
}
.toast {
  background: var(--ink); color: #fff;
  padding: 14px 18px; border-radius: var(--radius-md); font-size: 15px;
  box-shadow: var(--shadow-high);
  animation: toast-in .28s var(--ease) both;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
#app.has-sticky { padding-bottom: 96px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

#fiche-offre, .sheet { position: fixed; inset: 0; z-index: 50; }
.fiche-fond, .sheet-fond { position: absolute; inset: 0; background: rgba(22, 19, 31, .45); backdrop-filter: blur(2px); animation: fade .2s both; }
.fiche-carte, .sheet-carte {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--surface); color: var(--ink);
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 86dvh; overflow: auto;
  box-shadow: var(--shadow-high);
  animation: sheet-up .3s var(--ease) both;
}
.fiche-head, .sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head h2 { margin: 0; }
.fiche-mail { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.fiche-mail .inp { flex: 1; min-width: 0; }
.fiche-mail .btn { width: auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 900px) {
  .fiche-carte, .sheet-carte {
    top: 50%; bottom: auto; left: 50%; right: auto;
    transform: translate(-50%, -50%);
    width: min(500px, calc(100% - 48px));
    border-radius: 24px; max-height: min(86dvh, 680px);
    animation: fade .2s both;
  }
}

/* ---------- Footer ---------- */
footer.site {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: var(--s7) 0 calc(var(--s5) + env(safe-area-inset-bottom));
  font-size: 14px; color: var(--text-2);
}
.foot-grid { display: grid; gap: var(--s5); margin-bottom: var(--s6); }
.foot-brand p { max-width: 34ch; margin-top: 12px; }
.foot-title { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.foot-grid a { display: block; color: var(--text-2); text-decoration: none; padding: 5px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: var(--s5); border-top: 1px solid var(--line); font-size: 13px; }
.foot-bottom p { margin: 0; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
body.is-user footer.site { display: none; }

/* ==========================================================================
   LANDING (accueil visiteur)
   ========================================================================== */
main:has(.landing) { padding: 0; }
.landing section { padding: var(--s8) 0; }
.landing .sec-head { max-width: 640px; margin: 0 auto var(--s6); text-align: center; }
.landing .sec-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 var(--s3); letter-spacing: -0.035em; }
.landing .sec-head p { color: var(--text-2); font-size: 18px; margin: 0; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 var(--s3); }

.hero { position: relative; padding: var(--s7) 0 var(--s8) !important; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: -1;
  background:
    radial-gradient(40% 50% at 18% 30%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    radial-gradient(35% 45% at 85% 20%, color-mix(in srgb, var(--marker) 45%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: .98; letter-spacing: -0.05em; font-weight: 800;
  max-width: 13ch; margin: 0 0 var(--s5);
}
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 46ch; margin-bottom: var(--s5); }

.search-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-high);
  max-width: 560px;
}
.search-card .hero-search { display: grid; gap: 10px; margin: 0; }
.search-card .field-lab { font-size: 13px; color: var(--text-2); font-weight: 600; padding: 2px 4px 0; }
.search-card .search .inp { min-height: 56px; border-radius: var(--radius-md); font-size: 17px; }
.search-card .btn { width: 100%; min-height: 56px; }
.hero-search { display: grid; gap: 10px; }
.hero-search .suggest { margin-top: 0; }

.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: var(--s4) 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 14px; }
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { color: var(--sur); }
.gate-login { display: inline-block; margin-top: var(--s4); font-size: 14px; color: var(--text-2); }
.gate-login a { color: var(--ink); font-weight: 600; }

/* Aperçu produit */
.preview { position: relative; max-width: 460px; justify-self: center; width: 100%; }
.preview-card {
  position: relative; z-index: 2;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 24px; box-shadow: var(--shadow-high);
}
.preview-tag { display: inline-flex; font-size: 12px; font-weight: 600; color: var(--text-3); margin: 0 0 12px; }
.preview-school { font-size: 13px; color: var(--text-2); margin: 0 0 4px; }
.preview-card h3 { font-size: 22px; margin: 0 0 14px; }
.verdict-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--ambitieux-soft); margin-bottom: 16px; }
.verdict-line strong { font-family: var(--font-d); font-size: 22px; color: var(--ambitieux); letter-spacing: -0.02em; }
.verdict-line span { font-size: 13px; color: var(--text-2); text-align: right; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.mini-stats div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.mini-stats b { display: block; font-family: var(--font-d); font-size: 22px; letter-spacing: -0.03em; }
.mini-stats span { font-size: 12px; color: var(--text-2); }
.preview-float {
  position: absolute; z-index: 3;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 10px 14px; box-shadow: var(--shadow-high); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.preview-float .score { font-family: var(--font-d); font-size: 22px; font-weight: 800; }
.preview-float .score small { font-size: 13px; color: var(--text-3); }
.pf-1 { right: -18px; top: -22px; transform: rotate(3deg); }
.pf-2 { left: -22px; bottom: -26px; transform: rotate(-3deg); }
.pf-2 .jtrack { width: 120px; margin: 0; }

/* Bandeau filières */
.strip { padding: var(--s5) 0 !important; border-block: 1px solid var(--line); background: var(--surface); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; }
.strip-inner p { margin: 0 12px 0 0; font-size: 14px; color: var(--text-2); }
.strip-inner a {
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface-2);
}
.strip-inner a:hover { background: var(--ink); color: #fff; }

/* Étapes */
.steps { display: grid; gap: 16px; counter-reset: st; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: st;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.steps li::before {
  content: counter(st);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
  background: var(--ink); color: var(--marker);
  font-family: var(--font-d); font-weight: 800; font-size: 18px;
}
.steps h3 { font-size: 20px; margin: 0 0 8px; }
.steps p { color: var(--text-2); margin: 0; }

/* Bento fonctionnalités */
.bento { display: grid; gap: 16px; }
.bento-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px; display: flex; flex-direction: column; gap: 6px;
  min-height: 260px;
}
.bento-card h3 { font-size: 22px; margin: 0; }
.bento-card > p { color: var(--text-2); margin: 0; max-width: 40ch; }
.bento-card .bento-viz { margin-top: auto; padding-top: 20px; }
.bento-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.bento-dark > p { color: rgba(255,255,255,.7); }
.bento-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.bento-brand > p { color: rgba(255,255,255,.82); }
.balance { display: grid; gap: 10px; }
.balance-row { display: grid; grid-template-columns: 90px 1fr 28px; align-items: center; gap: 10px; font-size: 14px; }
.balance-row i { display: block; height: 10px; border-radius: 99px; }
.letter-mock { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 16px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.85); }
.letter-mock mark { color: var(--ink); }
.letter-mock .flag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--marker); }
.cal-mock { display: grid; gap: 8px; }
.cal-mock div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,.12); font-size: 14px; }
.cal-mock b { font-weight: 600; }
.parent-viz { display: flex; gap: 10px; flex-wrap: wrap; }
.parent-viz span { background: var(--surface-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }

/* Honnêteté / comparatif */
.compare { display: grid; gap: 16px; }
.compare-col { border-radius: 24px; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.compare-col h3 { font-size: 18px; margin-bottom: 16px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare-col li { display: flex; gap: 10px; align-items: flex-start; }
.compare-col li svg { flex: 0 0 auto; margin-top: 3px; }
.compare-col.is-bad { background: var(--surface-2); border-color: transparent; color: var(--text-2); }
.compare-col.is-bad svg { color: var(--danger); }
.compare-col.is-good { border: 2px solid var(--ink); }
.compare-col.is-good svg { color: var(--sur); }

/* Prix teaser */
.price-teaser { display: grid; gap: 16px; align-items: stretch; }
.price-box { border-radius: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.price-box h3 { margin: 0 0 4px; }
.price-box .price { font-family: var(--font-d); font-size: 48px; font-weight: 800; letter-spacing: -0.04em; margin: 8px 0 4px; }
.price-box .price small { font-size: 16px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.price-box ul { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; gap: 10px; }
.price-box li { display: flex; gap: 10px; }
.price-box li svg { color: var(--sur); flex: 0 0 auto; margin-top: 3px; }
.price-box .btn { margin-top: auto; width: 100%; }
.price-box.is-pick { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-box.is-pick .price small, .price-box.is-pick .meta { color: rgba(255,255,255,.65); }
.price-box.is-pick li svg { color: var(--marker); }
.price-box.is-pick .btn { background: var(--marker); color: var(--ink); }

/* FAQ */
.faq, .home-faq { max-width: 760px; margin: 0 auto; }
.faq details, .home-faq details { border-bottom: 1px solid var(--line); }
.faq summary, .home-faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker, .home-faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .home-faq summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--text-3);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after, .home-faq details[open] summary::after { transform: rotate(45deg); }
.faq p, .home-faq p { color: var(--text-2); margin: 0 0 20px; max-width: 64ch; }

/* CTA final */
.final-cta {
  text-align: center; border-radius: 32px;
  background: var(--ink); color: #fff;
  padding: clamp(40px, 7vw, 80px) 24px;
  position: relative; overflow: hidden;
}
.final-cta::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 60%, transparent), transparent 70%);
  pointer-events: none;
}
.final-cta h2 { font-size: clamp(30px, 5vw, 56px); letter-spacing: -0.04em; margin: 0 auto 16px; max-width: 16ch; }
.final-cta p { color: rgba(255,255,255,.72); font-size: 18px; margin: 0 auto 28px; max-width: 44ch; }
.final-cta .btn { background: var(--marker); color: var(--ink); position: relative; z-index: 1; }
.final-cta .btn:hover { background: #fff; }
.final-cta .meta { color: rgba(255,255,255,.55); margin: 16px 0 0; font-size: 14px; }

@media (min-width: 900px) {
  .hero { padding: var(--s8) 0 var(--s9) !important; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-card:nth-child(1) { grid-column: span 4; }
  .bento-card:nth-child(2) { grid-column: span 2; }
  .bento-card:nth-child(3) { grid-column: span 2; }
  .bento-card:nth-child(4) { grid-column: span 4; }
  .compare { grid-template-columns: 1fr 1fr; }
  .price-teaser { grid-template-columns: 1fr 1fr; max-width: 860px; margin: 0 auto; }
}
@media (max-width: 899px) {
  .pf-1 { right: 8px; top: -18px; }
  .pf-2 { left: 8px; bottom: -22px; }
  .preview { margin-top: var(--s4); }
}

/* ==========================================================================
   RÉSULTAT (fiche « chances »)
   ========================================================================== */
#res { padding-top: var(--s2); }
.result-school { font-size: 14px; color: var(--text-2); margin: 0 0 6px; }
#res h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.result-hero {
  margin: var(--s5) 0;
  padding: var(--s5);
  border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.result-hero.is-sur { background: linear-gradient(180deg, var(--sur-soft), var(--surface) 70%); }
.result-hero.is-possible { background: linear-gradient(180deg, var(--possible-soft), var(--surface) 70%); }
.result-hero.is-ambitieux { background: linear-gradient(180deg, var(--ambitieux-soft), var(--surface) 70%); }
.verdict-kicker { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 4px; }
.chance-top { display: flex; align-items: flex-start; gap: 2px; margin: 0; color: var(--ink); }
.chance-num { font-family: var(--font-d); font-size: clamp(72px, 14vw, 112px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.85; }
.chance-unit { font-family: var(--font-d); font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-top: 8px; }
.chance-cap { margin: 8px 0 12px; font-size: 14px; color: var(--text-2); max-width: 36ch; }
.badge-hero.is-under { font-size: clamp(22px, 3vw, 28px); margin: 0 0 8px; }
.badge-hero {
  font-family: var(--font-d);
  font-size: clamp(44px, 8vw, 68px);
  font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  margin: 0 0 12px;
}
.badge-hero.is-sur { color: var(--sur); }
.badge-hero.is-possible { color: var(--possible); }
.badge-hero.is-ambitieux { color: var(--ambitieux); }
.result-phrase { font-size: 17px; color: var(--ink); max-width: 52ch; margin: 0 0 12px; }
.bac-switch { margin-top: 16px; max-width: 360px; }
.bac-switch .field-lab { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.gauge { margin: 18px 0 4px; }
.gauge-track { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--ambitieux) 0 25%, var(--possible) 25% 60%, var(--sur) 60% 100%); opacity: .9; }
.gauge-pin { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); transform: translate(-50%, -50%); box-shadow: var(--shadow); }
.gauge-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 8px; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: var(--s4) 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; }
.stat .num { font-size: clamp(24px, 3.4vw, 34px); margin: 2px 0 0; }
.kpi-lab { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.mix-wrap { margin: var(--s5) 0 var(--s2); }
.mix-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-2); margin-top: 10px; }
.mix-legend b { color: var(--ink); font-weight: 600; }
.bar-svg { width: 100%; height: 10px; display: block; border-radius: 99px; overflow: hidden; }
.bar-g { fill: var(--ink); }
.bar-sur { fill: var(--sur); }
.bar-t, .bar-possible { fill: var(--possible); }
.bar-p, .bar-ambitieux { fill: var(--ambitieux); }
.bar-track { fill: var(--surface-3); }
.bar-fill { fill: var(--brand); }

.convert {
  margin: var(--s6) 0;
  padding: var(--s5);
  border-radius: 24px;
  background: var(--ink); color: #fff;
  display: grid; gap: 16px;
}
.convert h2 { margin: 0; font-size: 24px; }
.convert p { margin: 0; color: rgba(255,255,255,.72); }
.convert ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.convert li { display: flex; gap: 10px; align-items: flex-start; }
.convert li svg { color: var(--marker); flex: 0 0 auto; margin-top: 3px; }
.convert .btn { background: var(--marker); color: var(--ink); }
.convert .btn:hover { background: #fff; }
.convert .meta { color: rgba(255,255,255,.55); font-size: 13px; }

.bloc-alts { margin-top: var(--s6); }
.bloc-alts h2 { margin-top: 0; }
.alts { display: grid; gap: 8px; }
.alt-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  text-decoration: none; padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, transform .15s;
  font: inherit; color: inherit;
}
.alt-row > * { min-width: 0; }
.alt-row:hover { border-color: var(--ink); transform: translateX(2px); }
.alt-row strong { display: block; font-size: 16px; }
.alt-row span { font-size: 13px; color: var(--text-2); }
button.alt-row { flex-direction: column; align-items: flex-start; }

/* Calque payant */
.calque { position: relative; padding: 20px; margin: 12px 0; overflow: hidden; }
.calque-sheet { position: absolute; inset: 44px 0 0; backdrop-filter: blur(7px); background: color-mix(in srgb, var(--surface) 55%, transparent); pointer-events: none; }
.calque-open .calque-body { filter: none; color: var(--ink); }
.calque-body { filter: blur(6px); user-select: none; color: var(--text-2); min-height: 40px; }
.calque-title { font-weight: 600; margin: 0 28px 8px 0; }
.calque-title:empty { display: none; }
.calque-clip { position: absolute; top: 14px; right: 14px; opacity: .5; }
.bloc-lock { margin-top: 8px; }
.lock-cta { margin: 16px 0 0; }
.lock-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.lock-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--surface-2); }
.lock-row span { font-weight: 600; }
.lock-row b { font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--marker); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
.flou-ligne { letter-spacing: .08em; color: var(--text-3); }
.pay-moment { margin: 20px 0; padding: 18px; border-radius: var(--radius); background: var(--brand-soft); }

/* Tampon */
.tampon { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 132px; min-height: 44px; transform: rotate(-3deg); font-family: var(--font-d); font-weight: 800; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.tampon-edge { position: absolute; inset: 0; width: 100%; height: 100%; }
.tampon-edge path { fill: none; stroke-width: 2.2; }
.tampon-sur { color: var(--sur); } .tampon-sur path { stroke: var(--sur); }
.tampon-possible { color: var(--possible); } .tampon-possible path { stroke: var(--possible); }
.tampon-ambitieux { color: var(--ambitieux); } .tampon-ambitieux path { stroke: var(--ambitieux); }
.tampon span { position: relative; padding: 6px 14px; }
.tampon-saison { display: inline-block; border: 2px solid var(--ink); font-family: var(--font-d); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; }

.dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 16px 0 8px; }
.dots i { width: 9px; height: 9px; border-radius: 3px; border: 1.5px solid var(--ink); }
.dots i.on { background: var(--ink); }

/* Jauges */
.jtrack { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-3); margin: 12px 0; }
.jbar { display: block; height: 100%; }
.jbar-sur { background: var(--sur); }
.jbar-possible { background: var(--possible); }
.jbar-ambitieux { background: var(--ambitieux); }
.bar { height: 8px; border-radius: 99px; margin: 12px 0; background: linear-gradient(90deg, var(--brand) var(--p, 0%), var(--surface-3) var(--p, 0%)); }
.bar.is-done { background: linear-gradient(90deg, var(--sur) var(--p, 0%), var(--surface-3) var(--p, 0%)); }

/* ==========================================================================
   LISTES : recherche, vœux, explorer
   ========================================================================== */
.hits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hit {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 18px 20px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.hit:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.hit h3 { grid-column: 1; margin: 0; font-size: 17px; }
.hit h3 a { text-decoration: none; }
.hit-school { grid-column: 1; margin: 0; font-size: 13px; color: var(--text-2); }
.hit .pills { grid-column: 1; margin: 4px 0 0; }
.hit-side { grid-column: 2; grid-row: 1 / span 3; display: grid; justify-items: end; align-content: center; gap: 4px; }
.hit-side .meta { font-family: var(--font-d); font-weight: 800; color: var(--ink); font-size: 16px; }
.hit-meta { margin: 0 0 10px; font-size: 14px; color: var(--text-2); }
.hit-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--text-2); }
.hit-cta { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--brand); }

.seek { width: min(880px, calc(100% - 32px)); margin: 0 auto; }
.seek-bar {
  position: sticky; top: calc(var(--mast-h) + 8px); z-index: 6;
  display: flex; gap: 8px; align-items: center;
  padding: 8px; margin-bottom: var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow);
}
.seek-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seek-bar .inp { flex: 1; border: 0; min-height: 46px; border-radius: 999px; background: transparent; box-shadow: none; }
.seek-bar .inp:focus { box-shadow: none; }
.seek-bar .btn { width: auto; min-height: 46px; }
.explore-count { font-size: 14px; color: var(--text-2); margin: 0 4px 12px; }
.explore-top { position: sticky; top: var(--mast-h); z-index: 5; background: var(--bg); padding-bottom: 8px; }
.search-bar { display: flex; gap: 10px; align-items: center; }
.search-bar .inp { flex: 1; min-width: 0; }
.search-bar .btn { width: auto; }
.fr-map { position: relative; height: 240px; background: var(--surface-2); border-radius: var(--radius); margin-top: 16px; }
.fr-svg { width: 100%; height: 100%; }
.fr-map .pin { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); transform: translate(-50%, -50%); }

.wishes { width: min(880px, calc(100% - 32px)); margin: 0 auto; }
.wishes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: var(--s4); }
.wishes-head h1 { margin: 0; }
.wish-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wish-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center;
  min-height: 76px; padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.wish-row:last-child { border-bottom: 0; }
.wish-row a { text-decoration: none; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wish-row a strong { overflow: hidden; text-overflow: ellipsis; }
.wish-row a span, .wish-rate { color: var(--text-2); font-size: 14px; }
.wish-rate { font-family: var(--font-d); font-weight: 800; color: var(--ink); }
.wish-add, .wish-empty {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; margin-bottom: 12px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; color: var(--ink);
}
.wish-empty { flex-direction: column; min-height: 160px; }
.wish-empty span { font-weight: 400; color: var(--text-2); }
.wish-add:hover, .wish-empty:hover { border-color: var(--ink); background: var(--surface); }
.wish-foot { padding: 16px 4px; color: var(--text-2); font-size: 14px; }
.wish-meter { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.wish-meter .jtrack { width: 160px; margin: 0; }

.voeux-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.voeu-row { display: grid; grid-template-columns: 44px 1fr auto 44px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; }
.voeu-row a { text-decoration: none; display: grid; gap: 2px; min-height: 44px; align-content: center; }
.voeu-row .btn { width: auto; min-height: 36px; padding: 6px 12px; }
.voeu-menu { position: absolute; right: 0; top: 48px; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 6px; display: grid; min-width: 200px; box-shadow: var(--shadow-high); }
.voeu-menu button { min-height: 44px; display: flex; align-items: center; background: none; border: 0; border-radius: 8px; padding: 0 10px; text-align: left; }
.voeu-menu button:hover { background: var(--surface-2); }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }

/* ==========================================================================
   ESPACE CONNECTÉ : tableau de bord
   ========================================================================== */
.stage-day { width: min(880px, calc(100% - 32px)); margin: 0 auto; display: grid; gap: var(--s5); }
.stage-meta { color: var(--text-2); font-size: 14px; margin: 0; }
.stage-hello { font-size: clamp(28px, 4vw, 40px); margin: 0; }
.stage-center { display: grid; gap: var(--s4); }
.stage-task {
  background: var(--ink); color: #fff;
  border-radius: 28px; padding: clamp(24px, 4vw, 40px);
  position: relative; overflow: hidden;
}
.stage-task::after { content: ""; position: absolute; width: 300px; height: 300px; right: -90px; bottom: -140px; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%); }
.stage-min { display: inline-flex; gap: 6px; align-items: center; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--marker); border-radius: 999px; padding: 4px 10px; }
.stage-task h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 8px; color: #fff; max-width: 18ch; }
.stage-task p { color: rgba(255,255,255,.7); max-width: 46ch; margin: 0 0 20px; }
.stage-task .btn { background: var(--marker); color: var(--ink); position: relative; z-index: 1; width: auto; }
.stage-task .btn:hover { background: #fff; }
.stage-next { display: grid; gap: 10px; }
.stage-next a {
  display: flex; flex-direction: column; gap: 2px;
  text-decoration: none; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s;
}
.stage-next a:hover { border-color: var(--ink); }
.stage-next a span { color: var(--text-2); font-size: 13px; }
.stage-next a em { font-style: normal; color: var(--text-2); font-size: 14px; }
.stage-foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stage-status { display: flex; gap: 16px; align-items: center; margin: 0; font-size: 15px; flex-wrap: wrap; }
.frise-fold summary { color: var(--text-2); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.frise { display: grid; gap: 14px; margin: 12px 0 0; padding: 0; }
.frise li { list-style: none; padding: 6px 0 6px 52px; position: relative; }
.frise li::before { content: attr(data-n); position: absolute; left: 0; top: 4px; width: 36px; height: 36px; border-radius: 12px; background: var(--ink); color: var(--marker); display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; }
@media (min-width: 768px) { .stage-next { grid-template-columns: 1fr 1fr; } }

/* Divers écrans */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; }
.kpi-val { font-size: 30px; margin: 0; line-height: 1.1; }
.kpi-sub { margin: 4px 0 0; font-size: 13px; color: var(--text-2); }
.bac-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 8px; }
.bac-cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; }
.facts { list-style: none; padding: 0; margin: 16px 0; }
.facts li { padding: 12px 0; border-top: 1px solid var(--line); }
.score-hero { font-family: var(--font-d); font-weight: 800; font-size: clamp(64px, 14vw, 96px); line-height: .9; letter-spacing: -0.05em; margin: 8px 0; }
.score-hero span, .score-num span { font-size: .42em; color: var(--text-3); }
.score-num { font-family: var(--font-d); font-weight: 800; font-size: clamp(44px, 8vw, 60px); letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
.moy-hero { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; margin: 8px 0 24px; }
.moy-hero .meta, .moy-hero .moy-lab { color: rgba(255,255,255,.7); }
.moy-hero .kpi-val { font-size: clamp(40px, 8vw, 56px); color: #fff; }
.note-row { display: grid; grid-template-columns: 1fr 72px 56px 40px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.note-row .btn { min-height: 36px; min-width: 36px; width: auto; padding: 0; }
.note-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spe-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ia-log { display: grid; gap: 10px; margin: 20px 0; }
.ia-msg { padding: 14px 16px; border-radius: 18px; max-width: 88%; }
.ia-msg p { margin: 0 0 6px; } .ia-msg p:last-child { margin: 0; }
.ia-user { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 6px; }
.ia-bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ia-form { display: grid; gap: 10px; }
@media (min-width: 640px) { .ia-form { grid-template-columns: 1fr auto; align-items: start; } }
.check-list { list-style: none; padding: 0; margin: 12px 0 0; }
.check-list li { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.check-list li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; border: 1.5px solid var(--line-strong); flex-shrink: 0; }
.check-list li.is-on::before { background: var(--sur); border-color: var(--sur); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { font-weight: 600; color: var(--text-2); }
.diag-cols { display: grid; gap: 12px; margin: 16px 0 8px; }
.diag-col { padding: 14px 16px; }
.diag-col h2 { font-size: 16px; margin: 0 0 8px; }
.diag-card { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.diag-card a { text-decoration: none; display: grid; gap: 2px; }
@media (min-width: 800px) { .diag-cols { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.coach-steps { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.coach-steps li { color: var(--text-2); padding: 6px 0; font-size: 14px; }
.coach-steps li.is-on { color: var(--ink); font-weight: 800; border-bottom: 2px solid var(--brand); }
.critere, .critere-pub { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.critere .meta, .critere-pub .meta { grid-column: 1 / -1; }
.lettre-note { white-space: pre-wrap; line-height: 1.7; margin: 16px 0; }
.mission { padding: 16px 18px; margin: 12px 0; }
.mission h3 { margin: 0 0 8px; }
.quiz-opt { display: flex; width: 100%; text-align: left; min-height: 64px; padding: 16px 20px; margin: 0 0 10px; font-weight: 600; transition: border-color .15s, transform .15s; }
.quiz-opt:hover { border-color: var(--ink); transform: translateX(2px); }
.cmp-pick { display: grid; gap: 8px; }
.cmp-pick label { display: flex; gap: 12px; align-items: center; min-height: 44px; }
.flash-card { padding: 24px; }
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; }
.guide { padding: 16px 0; border-bottom: 1px solid var(--line); }
.guide h2 { margin: 0 0 4px; font-size: 18px; }
.guide p { margin: 0; color: var(--text-2); }
.def { display: grid; gap: 2px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.def span { color: var(--text-2); }
.filieres { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.filieres a { text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; background: var(--surface); font-weight: 600; }
.filieres a:hover { border-color: var(--ink); }
.parent-mock { padding: 18px; }
.spark { width: 160px; height: 48px; }
.week-line { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; }
.action-now { padding: 18px; }
.action-now .btn { margin-top: 12px; }
.sg-row { display: grid; gap: 12px; margin: 24px 0; }
.legal-main { padding: 48px 0 64px; }

/* Offres */
.offres-head { text-align: center; max-width: 720px; margin: 0 auto var(--s6); }
.offres-head .page-h { margin-inline: auto; }
.offres-head .lead { margin-inline: auto; }
.offres-grid { display: grid; gap: 14px; margin-top: 12px; }
.offre { padding: 24px; display: flex; flex-direction: column; }
.offre h3 { margin: 0 0 4px; font-size: 18px; }
.offre .num { font-size: 40px; margin: 6px 0 14px; }
.offre .plain { list-style: none; padding: 0; gap: 10px; margin: 0; }
.offre .plain li { position: relative; padding-left: 26px; font-size: 15px; }
.offre .plain li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--sur-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313804B' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }
.offre.is-pick { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-high); }
.offre.is-pick .plain li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFE45C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.offre.is-pick .pill-reco { background: var(--marker); color: var(--ink); }
.offres-note { text-align: center; color: var(--text-2); margin-top: var(--s5); }
.offres-actions { max-width: 520px; margin: var(--s6) auto 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .offres-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .offres-grid.quatre { grid-template-columns: repeat(4, 1fr); } }

/* Connexion */
.auth { width: min(1040px, calc(100% - 32px)); margin: 0 auto; display: grid; gap: var(--s6); align-items: start; }
.auth-side h1 { font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -0.04em; }
.auth-side ul { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; }
.auth-side li svg { flex: 0 0 auto; color: var(--sur); margin-top: 3px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-high); }
.auth-card h2 { margin: 0 0 4px; font-size: 24px; }
.auth-card .calc { gap: 14px; }
.auth-card .btn { width: 100%; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-md); margin-bottom: var(--s5); }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 10px; background: none; font-weight: 600; color: var(--text-2); }
.auth-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.auth-alt { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; margin-top: 12px; }
.auth-legal { font-size: 13px; color: var(--text-3); text-align: center; margin: 12px 0 0; }
#auth-err:not(:empty) { color: var(--danger); background: var(--danger-soft); padding: 10px 14px; border-radius: var(--radius-sm); }
@media (min-width: 900px) { .auth { grid-template-columns: 1fr 440px; gap: var(--s8); padding-top: var(--s5); } }

/* Onboarding */
#onb h1 { margin-top: var(--s5); }
#onb .chip { margin: 0 6px 6px 0; }

/* Démo animée (anciennes pages) */
.demo-stage { position: relative; min-height: 210px; margin-top: 12px; }
.demo-card { padding: 18px; }
.demo-a, .demo-b { position: absolute; inset: 0; }
.demo-b { animation: demo-in 10s infinite; }
.demo-a { animation: demo-out 10s infinite; }
@keyframes demo-in { 0%, 42% { opacity: 0; } 52%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes demo-out { 0%, 42% { opacity: 1; } 52%, 92% { opacity: 0; } 100% { opacity: 1; } }
.promesses { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.promesses li { padding: 18px; display: grid; gap: 4px; }
.promesses span { color: var(--text-2); font-size: 14px; }
@media (min-width: 800px) { .promesses { grid-template-columns: repeat(3, 1fr); } }
.home h1 { max-width: 20ch; }
.home section { margin-top: var(--s8); }

/* ---------- Responsive : navigation mobile ---------- */
@media (max-width: 860px) {
  :root { --mast-h: 58px; }
  .mast { gap: 8px; }
  .vnav { display: none; }
  .mast .nav-account { display: none; }
  body.is-user .mast .nav-account { display: inline-flex; }
  body.is-user .mast-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    justify-content: space-around; gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  body.is-user .mast-nav a { flex: 1; flex-direction: column; gap: 2px; font-size: 11px; min-height: 52px; padding: 0; border-radius: 12px; justify-content: center; }
  body.is-user .mast-nav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
  body.is-user { padding-bottom: 76px; }
  body.is-user .sticky-cta { bottom: 70px; }
  .toasts { bottom: 90px; }
  .wish-row { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .wish-rate { display: none; }
  .wish-row .text-btn { grid-column: 1 / -1; justify-self: start; min-height: 32px; }
  .stat-row { gap: 8px; }
  .stat { padding: 12px; }
  .landing section { padding: var(--s7) 0; }
}
@media (min-width: 861px) {
  .mast-nav a svg { display: none; }
}

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion: no-preference) {
  #app.page-in { animation: rise .35s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .tampon-in { animation: stamp 180ms ease-out; }
  @keyframes stamp { from { transform: rotate(-3deg) scale(1.12); } }
  .gauge-pin { animation: pin-in .9s var(--ease) both .15s; }
  @keyframes pin-in { from { left: 0 !important; opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .demo-a { display: none; }
  .demo-b { position: relative; opacity: 1; }
}

/* Compléments landing (barres SVG : la CSP interdit les styles en ligne) */
.viz-note { margin: 12px 0 0; }
.preview-lab { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.preview-legend { font-size: 13px; color: var(--text-2); margin: 8px 0 0; }
.pf-2 .bar-svg { width: 120px; }
.balance-row .bar-svg { height: 10px; }
#app:focus, #app:focus-visible { outline: none; }
.final-cta .meta { margin: 16px auto 0; }
.mast .logo { grid-column: 1; }
.vnav, .mast-nav { grid-column: 2; }
.mast-end { grid-column: 3; justify-self: end; }
.sticky-cta.is-away { transform: translateY(110%); }
@media (prefers-reduced-motion: no-preference) { .sticky-cta { transition: transform .25s var(--ease); } }
.gauge-svg { width: 100%; height: 14px; display: block; overflow: visible; }
.gauge-svg .bar-ambitieux, .gauge-svg .bar-possible, .gauge-svg .bar-sur { opacity: .85; }
.gauge-mark { fill: var(--ink); }
.auth-ref summary { list-style: none; font-size: 14px; min-height: 32px; }
.auth-ref summary::-webkit-details-marker { display: none; }
.auth-ref .inp { margin-top: 8px; }
.auth-side .garde { margin-bottom: var(--s5); }
.stage-task h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.04; letter-spacing: -0.04em; margin: 0 0 10px; color: #fff; max-width: 20ch; }
.stage-day > div:first-child .stage-meta { margin-top: 6px; }
.stage-center > .field-lab { margin: 4px 0 -4px; color: var(--text-2); }
.wish-meter { flex-direction: column; align-items: flex-end; }
.wish-meter .bar-svg { width: 220px; }
@media (max-width: 600px) { .wish-meter { align-items: flex-start; } }
/* Mobile connecté : le flou du header crée un bloc conteneur et piège la barre d’onglets fixe. */
@media (max-width: 860px) {
  body.is-user .mast { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}

/* ==========================================================================
   KIT v6 : en-tête de page, lignes de liste, interrupteurs, profil
   ========================================================================== */
.ph { margin: 0 0 var(--s6); }
.ph-kicker { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 6px; }
.ph h1 { margin: 0 0 8px; }
.ph-sub { color: var(--text-2); font-size: 17px; margin: 0; max-width: 56ch; }

.li-group { margin-top: var(--s6); }
.li-group > h2 { font-family: var(--font-b); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text-2); margin: 0 0 8px 4px; }
.li-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.li {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 64px; padding: 12px 16px;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; text-decoration: none; color: var(--ink); font: inherit;
  cursor: pointer; transition: background .15s;
}
.li:last-child { border-bottom: 0; }
.li:hover { background: var(--surface-2); }
.li:focus-visible { outline-offset: -2px; }
.li-ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); }
.li-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.li-txt strong { font-weight: 600; font-size: 16px; }
.li-txt small { font-size: 14px; color: var(--text-2); }
.li-end { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--text-2); }
.li-chev { flex: 0 0 auto; color: var(--text-3); display: grid; }
.li.is-danger { color: var(--danger); }
.li.is-danger .li-ico { background: var(--danger-soft); color: var(--danger); }
.li-note { margin: 10px 4px 0; }
.li-group .seg { max-width: 360px; }

/* Interrupteur */
.li-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; flex: 0 0 auto; width: 46px; height: 28px; border-radius: 99px; background: var(--line-strong); transition: background .2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.li-switch input:checked + .switch { background: var(--sur); }
.li-switch input:checked + .switch::after { transform: translateX(18px); }
.li-switch input:focus-visible + .switch { box-shadow: var(--ring); }

/* Profil */
.me-head { display: flex; align-items: center; gap: 16px; margin-bottom: var(--s5); }
.me-head h1 { margin: 0; font-size: clamp(26px, 3.6vw, 34px); }
.me-head .meta { margin: 2px 0 0; }
.me-head .pill-badge { margin-left: auto; }
.avatar { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 26px; color: #fff; background: var(--grad-text); box-shadow: 0 8px 20px rgba(242, 69, 92, .28); }
.pill-badge.is-saison { background: var(--ink); color: var(--marker); }
.pill-badge.is-saison::before { display: none; }
.plan-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; }
.plan-card .li-ico { background: rgba(255,255,255,.12); color: var(--marker); }
.plan-card div { flex: 1; display: grid; gap: 2px; }
.plan-card small { color: rgba(255,255,255,.7); font-size: 14px; }
.plan-card > .ico { color: rgba(255,255,255,.6); }
a.plan-card { background: var(--grad-ink); transition: transform .2s var(--ease), box-shadow .2s; }
a.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-high); }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.me-stats a { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .15s; }
.me-stats a:hover { border-color: var(--ink); transform: translateY(-1px); }
.me-stats b { font-family: var(--font-d); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.me-stats b small { font-size: 14px; color: var(--text-3); font-weight: 600; }
.me-stats span { font-size: 13px; color: var(--text-2); }

/* Anneau de progression */
.ring { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-track { stroke: var(--surface-3); }
.ring-fill { stroke: var(--sur); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ring b { position: relative; font-family: var(--font-d); font-size: 15px; font-weight: 800; }
.ring b small { font-size: 10px; }

/* État vide */
.empty { text-align: center; padding: var(--s7) var(--s5); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.empty h2 { margin: 0 0 8px; font-size: 22px; }
.empty p { color: var(--text-2); max-width: 40ch; margin: 0 auto 20px; }

/* Texte en dégradé (accent façon Edumapper) */
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* Coach */
.coach-msg { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.coach-msg .li-ico { background: rgba(255,255,255,.12); color: var(--marker); }
.coach-msg p { margin: 0; font-size: 17px; line-height: 1.5; }
.chat { margin-top: var(--s6); }
.chat .chip-scroll { margin: 12px 0; }
.chat-form { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow-sm); }
.chat-form:focus-within { border-color: var(--ink); box-shadow: var(--ring); }
.chat-form .inp { border: 0; min-height: 44px; background: transparent; box-shadow: none !important; }
.btn-send { width: 44px; height: 44px; min-height: 44px; border: 0; background: var(--brand); color: #fff; }
.btn-send:hover { background: var(--brand-hover); }
.ia-log:empty { display: none; }

/* Dossier */
.dos-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: var(--s5); }
.dos-head h1 { margin: 0 0 8px; }
.dos-head .ring { width: 88px; height: 88px; flex: 0 0 auto; }
.dos-head .ring b { font-size: 22px; }
.tick-box { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; border: 1.75px solid var(--line-strong); display: grid; place-items: center; color: var(--marker); transition: background .2s, border-color .2s; }
.is-done > .tick-box { background: var(--ink); border-color: var(--ink); }
.li-check.is-done strong { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--text-3); }
.missions { display: grid; gap: 12px; }
@media (min-width: 768px) { .missions { grid-template-columns: 1fr 1fr; } }
.mission { padding: 20px; margin: 0; display: grid; gap: 10px; align-content: start; }
.mission-top { display: flex; justify-content: space-between; align-items: center; }
.mission-top .meta { margin: 0; }
.mission h3 { margin: 0; font-size: 18px; }
.mission-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mission-list li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.mission-list li > span:nth-child(2) { flex: 1; }
.mission-list .text-btn { min-height: 32px; font-size: 14px; }
.mission-tip { margin: 4px 0 0; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 14px; }
.mission .meta { display: flex; gap: 6px; align-items: center; margin: 0; }

/* Notes */
.moy-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin: 0 0 var(--s5); }
.moy-hero .moy-lab { color: rgba(255,255,255,.7); font-size: 14px; margin: 0 0 4px; }
.moy-hero .kpi-val { font-size: clamp(44px, 9vw, 60px); color: #fff; margin: 0; font-weight: 800; }
.moy-hero .kpi-val small { font-size: .38em; color: rgba(255,255,255,.55); margin-left: 4px; }
.moy-tranche { background: var(--marker); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.note-add h2 { font-size: 18px; margin: 0 0 12px; }
.note-add .chip-scroll { margin: 6px 0 14px; }
.note-add .calc { padding: 0; }
@media (min-width: 640px) { .note-add .calc { grid-template-columns: 1.4fr 1fr auto; align-items: end; } .note-add .note-fields { grid-column: auto; } }
.note-li { cursor: default; }
.note-val { font-size: 22px; }
.note-val small { font-size: 13px; color: var(--text-3); }
.icon-sm { width: 40px; height: 40px; min-height: 40px; border: 0; background: transparent; color: var(--text-3); }
.icon-sm:hover { color: var(--danger); background: var(--danger-soft); }

/* Parrainage */
.code-card { text-align: center; padding: 28px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.code-card .meta { margin: 0; }
.code-big { font-family: var(--font-d); font-weight: 800; font-size: clamp(40px, 10vw, 60px); letter-spacing: .04em; margin: 4px 0; }
.code-url { display: inline-block; word-break: break-all; }
.code-card .btn-row { justify-content: center; margin-bottom: 0; }
.me-stats.two { grid-template-columns: 1fr 1fr; margin: 12px 0 var(--s6); }
.me-stats > div { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.steps-sm li { padding: 20px; }
.steps-sm li::before { width: 32px; height: 32px; font-size: 15px; margin-bottom: 12px; }
.steps-sm h3 { font-size: 17px; }
@media (min-width: 640px) { .steps-sm { grid-template-columns: repeat(3, 1fr); } }

/* Badges */
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .badge-grid { grid-template-columns: repeat(3, 1fr); } }
.badge-tile { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 24px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.badge-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.badge-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); margin-bottom: 8px; }
.badge-tile.is-on .badge-ico { background: var(--grad-text); color: #fff; box-shadow: 0 10px 24px rgba(242, 69, 92, .28); }
.badge-tile strong { font-size: 15px; }
.badge-tile small { font-size: 13px; color: var(--text-2); }
.badge-tile:not(.is-on) strong { color: var(--text-2); }

/* Frise calendrier */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 var(--s5); }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -26px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.timeline .is-past .tl-dot { background: var(--ink); border-color: var(--ink); }
.timeline .is-past h3, .timeline .is-past p { color: var(--text-3); }
.timeline .is-now .tl-dot { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); }
.timeline .is-now { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 var(--s5) -8px; box-shadow: var(--shadow); }
.timeline .is-now .tl-dot { left: -18px; top: 20px; }
.tl-date { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 2px; display: flex; gap: 8px; align-items: center; }
.timeline h3 { margin: 0 0 4px; font-size: 18px; }
.timeline li > p:last-child { margin: 0; color: var(--text-2); font-size: 15px; }

/* Pages de contenu */
.guide-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.guide-card .li-ico { margin-bottom: 10px; background: var(--brand-soft); color: var(--brand); }
.guide-card h2 { font-size: 19px; margin: 0; }
.guide-card p { color: var(--text-2); margin: 0; flex: 1; }
.guide-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--brand); }
.strip-inner.left { justify-content: flex-start; }
.faq-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; max-width: none; }
.faq-card details:last-child { border-bottom: 0; }
.steps-col { grid-template-columns: 1fr !important; }
.callout { display: flex; gap: 14px; align-items: flex-start; margin: var(--s5) 0; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); }
.callout p { margin: 0; }
.fil-dl { display: grid; grid-template-columns: 1fr; gap: 4px 16px; margin: 0 0 20px; }
.fil-dl dt { font-weight: 600; font-size: 14px; margin-top: 8px; }
.fil-dl dd { margin: 0; color: var(--text-2); }
@media (min-width: 640px) { .fil-dl { grid-template-columns: 170px 1fr; } .fil-dl dt { margin-top: 0; } }
.gloss { padding: 0 20px; }
.gloss-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.gloss-row:last-child { border-bottom: 0; }
.gloss-row strong { font-size: 16px; }
.gloss-row p { margin: 4px 0 0; color: var(--text-2); }
/* Avec GSAP, c’est lui qui gère les apparitions. */
html.gsap #app.page-in { animation: none; }
html.gsap .reveal { opacity: 1; transform: none; transition: none; }

/* ==========================================================================
   HERO v2 façon Edumapper
   ========================================================================== */
.landing { background: var(--grad-page), var(--bg); background-repeat: no-repeat; background-size: 100% 1400px; }
.hero-stage2 { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px) !important; min-height: min(860px, calc(100dvh - var(--mast-h))); display: grid; align-items: center; }
.hero-center { position: relative; z-index: 2; text-align: center; max-width: 1000px; }
.hero-center .eyebrow { margin-inline: auto; }
.hero-center h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 800; margin: 0 auto var(--s5); }
.hero-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-line { display: inline-block; }
.hero-center .lead { margin: 0 auto var(--s6); font-size: clamp(17px, 1.7vw, 20px); max-width: 52ch; }
.hero-center .search-card { margin: 0 auto; text-align: left; max-width: 600px; }
.hero-center .trust-row { justify-content: center; }

.floaty-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floaty { position: absolute; will-change: transform; }
img.floaty { border-radius: 30px; object-fit: cover; box-shadow: 0 24px 50px -12px rgba(140, 40, 70, .30); }
.tag { padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px -8px rgba(22, 19, 31, .18); white-space: nowrap; }
.tag::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--grad-text); vertical-align: 1px; }
.f-a { top: 9%; left: 6%; width: 120px; height: 120px; }
.f-b { bottom: 12%; right: 7%; width: 108px; height: 108px; }
.f-c { bottom: 10%; left: 9%; width: 112px; height: 112px; }
.f-d { top: 12%; right: 8%; width: 96px; height: 96px; }
.t-a { top: 30%; left: 3%; }
.t-b { top: 6%; left: 27%; }
.t-c { bottom: 30%; right: 3%; }
.t-d { top: 34%; right: 4%; }
.t-e { bottom: 6%; left: 30%; }
.t-f { bottom: 7%; right: 25%; }
.t-g { top: 8%; right: 26%; }
@media (max-width: 1100px) { .t-b, .t-g, .t-e, .t-f { display: none; } }
@media (max-width: 760px) {
  .hero-stage2 { min-height: 0; padding-top: 128px !important; padding-bottom: 72px !important; }
  img.floaty { border-radius: 20px; }
  .f-a { top: 18px; left: 16px; width: 72px; height: 72px; }
  .f-d { top: 26px; right: 18px; width: 64px; height: 64px; }
  .f-b, .f-c, .t-a, .t-c { display: none; }
  .t-d { top: 44px; right: auto; left: calc(50% - 28px); }
  .hero-center h1 { font-size: clamp(36px, 10vw, 48px); }
}

/* Section aperçu */
.split { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-copy h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.035em; margin: 0 0 var(--s5); }
.big-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 17px; }
.big-list li { display: flex; gap: 12px; align-items: flex-start; }
.big-list svg { flex: 0 0 auto; margin-top: 4px; color: var(--sur); }

/* Atelier : étapes */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; padding: 6px; margin: 0 0 var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; color: var(--text-3); font-size: 13px; border: 0; transition: background .2s, color .2s; }
.stepper li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--surface-2); color: var(--text-2); transition: background .2s, color .2s; }
.stepper li.is-on { background: var(--ink); color: #fff; font-weight: 600; }
.stepper li.is-on b { background: var(--marker); color: var(--ink); }
@media (min-width: 640px) { .stepper li { flex-direction: row; justify-content: center; font-size: 14px; } }
#coach-step, #form-pick { margin-bottom: var(--s5); }
#coach-step textarea.inp { min-height: 220px; }
.grille { padding: 4px 20px; }
.grille .critere-pub:last-child { border-bottom: 0; }
.critere-pub.total { font-weight: 800; }
.ent-panel .chips { margin-bottom: 8px; }
.ent-panel .calc { margin-top: 8px; }
#ent-q { margin-top: var(--s5); }
.lettre-note mark { background: var(--ambitieux-soft); color: var(--ink); border-bottom: 2px solid var(--ambitieux); padding: 0 .1em; }

/* Explorer v2 */
.seek .ph { margin-bottom: var(--s5); }
.seek-bar { padding: 6px 6px 6px 16px; }
.seek-ico { color: var(--text-3); display: grid; }
.seek-bar .inp { padding-left: 4px; }
.seek-bar .btn-ghost { border-color: var(--line); min-height: 44px; padding: 0 16px; }
.seek #ex-types { margin: 0 0 var(--s4); }
#ex-out .hits { gap: 12px; }
@media (min-width: 900px) { #ex-out .hits, #ex-out > div:not(.skel):not(.etat) { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } }
.seek .hit { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; margin: 0; }
.seek .hit:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.hit { transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.sheet-carte .chips { margin-bottom: 14px; }
.sheet-carte .field-lab { display: block; margin: 14px 0 8px; }
.sheet-carte > .chip { margin: 6px 0; height: auto; padding: 10px 14px; border-radius: var(--radius-md); }

/* Onboarding */
.onb { max-width: 560px; }
.onb-top { display: grid; grid-template-columns: 44px 1fr 64px; align-items: center; gap: 12px; margin-bottom: var(--s6); }
.onb-sp { width: 44px; }
.onb-prog { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.onb-prog .bar-svg { height: 8px; }
.onb-prog .meta { margin: 0; font-size: 13px; }
.onb-top .text-btn { justify-self: end; color: var(--text-2); }
.onb-form h1 { font-size: clamp(28px, 4vw, 36px); margin: 0 0 var(--s4); }
.onb-form .lead { margin-bottom: var(--s4); }
.onb-form .chip { min-height: 52px; padding: 0 20px; font-size: 16px; margin: 0 8px 8px 0; border-radius: var(--radius-md); }
.onb-form .bac label { min-height: 72px; font-size: 17px; }
.onb-form .inp { font-size: 18px; min-height: 58px; }
.onb-next { width: 100%; margin-top: var(--s5); }
@media (max-width: 860px) { .onb-next { position: sticky; bottom: 84px; box-shadow: 0 10px 30px rgba(242, 69, 92, .32); } }
.btn-row.center { justify-content: center; }
.btn-row.center .btn { flex: 0 0 auto; }
.parents-hero { min-height: 0; padding-bottom: var(--s7) !important; }
.parent-preview .mini-stats b { font-size: 26px; }
.landing .offres-grid .offre { text-align: left; }
.quiz h2 { margin: var(--s5) 0 var(--s4); }
.quiz .quiz-opt { font-size: 17px; }
/* Tableau : mini-cartes */
.dash-row { display: grid; gap: 10px; }
@media (min-width: 700px) { .dash-row { grid-template-columns: repeat(3, 1fr); } }
.dash-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.dash-card > div:last-child { flex: 1; display: grid; gap: 4px; min-width: 0; }
.dash-card small { color: var(--text-2); font-size: 13px; }
.dash-big { font-family: var(--font-d); font-weight: 800; font-size: 34px; letter-spacing: -0.04em; line-height: 1; min-width: 56px; text-align: center; }
.dash-big small { font-size: 14px; color: var(--text-3); }
.stage-day .li-group { margin-top: 0; }
#score-slot .stage-status { margin-top: 12px; }
/* Rouge = action principale uniquement */
.text-btn { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.text-btn:hover { text-decoration-color: var(--ink); }
.back { text-decoration: none; }
.wish-row .text-btn { color: var(--text-2); font-weight: 600; text-decoration: none; }
.wish-row .text-btn:hover { color: var(--danger); }
.stage-task .stage-min { color: var(--ink); }
.stepper li.is-on { border-bottom: 0; }

/* ==========================================================================
   CHARTE appliquée : bouton principal, logo, sélection
   ========================================================================== */
::selection { background: var(--marker); color: var(--ink); }
.logo-mark { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 14px -4px rgba(242, 69, 92, .5); }
.btn-brand, .btn-yellow {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-brand); background-size: 140% 100%; background-position: 0% 50%;
  box-shadow: var(--shadow-brand);
  transition: background-position .5s var(--ease), transform .2s var(--ease), box-shadow .2s;
}
.btn-brand:hover, .btn-yellow:hover { background: var(--grad-brand); background-size: 140% 100%; background-position: 100% 50%; box-shadow: 0 16px 32px -8px rgba(242, 69, 92, .55); }
/* Reflet qui traverse le bouton : attire l'œil sans clignoter */
.btn-brand::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-brand:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
  .btn-shine::after { animation: shine 3.8s var(--ease) infinite 1.5s; }
  @keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
}
.pill-badge.is-saison { background: var(--grad-ink); color: var(--marker); }
mark, .hl { background: linear-gradient(transparent 14%, var(--marker) 14%, var(--marker) 86%, transparent 86%); }
.kicker, .ph-kicker { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; width: fit-content; }
.ph-kicker { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.landing .sec-head .kicker { margin-inline: auto; }
.mast-nav a[aria-current="page"] { background: var(--ink); }
body.is-user .mast-nav a[aria-current="page"] svg { color: var(--brand); }
.stage-task, .coach-msg, .plan-card, .moy-hero, .convert, .final-cta, .bento-dark, .price-box.is-pick, .offre.is-pick { background: var(--grad-ink); }
.bento-brand { background: var(--grad-brand); border-color: transparent; }
.dash-card .ring-fill, .ring-fill { stroke: url(#ringGrad), var(--brand); }

/* ==========================================================================
   DÉMOS INTERACTIVES (landing)
   ========================================================================== */
.floaty { pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none; }
.floaty.is-grab { cursor: grabbing; filter: drop-shadow(0 20px 30px rgba(22, 19, 31, .25)); }
.play-grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .play-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.play-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-high); }
.play-card h3 { margin: 0; font-size: 22px; }
.play-card .preview-school { margin: 0; }
.play-tag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-hover); font-size: 13px; font-weight: 800; }

.pv-verdict { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface-2); transition: background .35s var(--ease); }
.pv-word { display: inline-block; font-family: var(--font-d); font-weight: 800; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.04em; line-height: 1; transition: color .35s var(--ease); }
.pv-taux { font-size: 14px; color: var(--text-2); font-weight: 600; }
.pv-verdict.is-sur { background: var(--sur-soft); } .pv-verdict.is-sur .pv-word { color: var(--sur); }
.pv-verdict.is-possible { background: var(--possible-soft); } .pv-verdict.is-possible .pv-word { color: var(--possible); }
.pv-verdict.is-ambitieux { background: var(--ambitieux-soft); } .pv-verdict.is-ambitieux .pv-word { color: var(--ambitieux); }
.play-card .gauge { position: relative; margin: 0; }
.pv-pin { position: absolute; top: 7px; left: 50%; width: 22px; height: 22px; margin-left: -11px; margin-top: -11px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); box-shadow: var(--shadow); }
.range-lab { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.range-lab output { font-family: var(--font-d); font-size: 22px; font-weight: 800; color: var(--ink); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--p, 45%), var(--surface-3) var(--p, 45%)); outline: none; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: var(--shadow-brand); transition: transform .15s var(--ease-spring); }
.range::-webkit-slider-thumb:active { transform: scale(1.18); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.range:focus-visible { box-shadow: var(--ring); }
.pv-note { margin: 0; min-height: 2.6em; }
.pv-cta, .play-card .pl-actions { margin-top: auto; }
.pv-cta { width: 100%; }

.pl-score { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pl-num { font-family: var(--font-d); font-weight: 800; font-size: 64px; line-height: .9; letter-spacing: -0.05em; transition: color .3s; }
.pl-num.is-sur { color: var(--sur); } .pl-num.is-possible { color: var(--possible); } .pl-num.is-ambitieux { color: var(--ambitieux); }
.pl-sur { font-size: 20px; font-weight: 800; color: var(--text-3); }
.pl-msg { flex-basis: 100%; font-weight: 600; color: var(--text-2); }
.pl-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.pl-bar { display: grid; gap: 4px; font-size: 12px; color: var(--text-2); }
.pl-bar i { display: block; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pl-bar b { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad-brand); transition: width .5s var(--ease); }
.pl-editor { position: relative; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line); }
.pl-editor:focus-within { border-color: var(--brand); box-shadow: var(--ring); background: #fff; }
.pl-mirror, .pl-input { font: 500 16px/1.6 var(--font-b); padding: 14px 16px; margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.pl-mirror { position: absolute; inset: 0; color: transparent; overflow: hidden; pointer-events: none; }
.pl-mirror mark { color: transparent; background: rgba(109, 91, 242, .22); border-bottom: 2px solid var(--ambitieux); border-radius: 3px; }
.pl-input { position: relative; display: block; width: 100%; min-height: 130px; border: 0; background: transparent; resize: vertical; color: var(--ink); outline: none; }
.pl-tip { margin: 0; min-height: 1.5em; font-size: 14px; font-weight: 600; color: var(--ambitieux); }
.pl-actions { margin-bottom: 0; }

.confetti { position: fixed; z-index: 90; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 2px; pointer-events: none; }

/* ==========================================================================
   CONVERSION : paywall, tarifs, compte à rebours
   ========================================================================== */
.lock-zone { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.ghost-rows { display: grid; gap: 10px; padding: 18px; filter: blur(3px); opacity: .7; }
.ghost-rows div { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--surface-2); }
.ghost-rows i, .ghost-rows b, .ghost-rows em { display: block; height: 10px; border-radius: 6px; background: var(--surface-3); }
.ghost-rows i { width: 70%; } .ghost-rows em { width: 40%; grid-column: 1; } .ghost-rows b { width: 64px; height: 22px; grid-row: span 2; background: var(--sur-soft); }
.lock-over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 16px; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.92) 55%); }
.lock-over p { margin: 0; font-weight: 600; max-width: 34ch; }
.lock-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--grad-ink); color: var(--marker); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .lock-zone:hover .lock-ico { animation: wiggle .6s var(--ease); }
  @keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }
}

.countdown-box { display: inline-flex; align-items: baseline; gap: 4px; margin-top: var(--s4); padding: 10px 18px; border-radius: 999px; background: var(--grad-ink); color: #fff; font-size: 14px; box-shadow: var(--shadow); }
.countdown-box span { margin-right: 8px; color: rgba(255,255,255,.75); }
.countdown-box b { font-family: var(--font-d); font-size: 20px; color: var(--marker); font-variant-numeric: tabular-nums; }
.countdown-box small { margin-right: 8px; color: rgba(255,255,255,.6); }
.offre { transition: transform .3s var(--ease), box-shadow .3s; }
.offre:hover { transform: translateY(-6px); box-shadow: var(--shadow-high); }
.offre.is-pick { position: relative; isolation: isolate; border: 0; transform: translateY(-8px); }
.offre.is-pick::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: calc(var(--radius) + 2px); background: conic-gradient(from var(--a, 0deg), var(--peach), var(--brand), var(--berry), var(--marker), var(--peach)); }
.offre.is-pick::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--radius); background: var(--grad-ink); }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) { .offre.is-pick::before { animation: spin 6s linear infinite; } @keyframes spin { to { --a: 360deg; } } }
.pill-reco { display: inline-flex; align-items: center; gap: 4px; }


/* ==========================================================================
   RÉDUCTION DES COULEURS (v7) : Encre + Papier + Corail, Citron pour 1 chiffre
   ========================================================================== */
.kicker, .ph-kicker { background: none; -webkit-text-fill-color: currentColor; color: var(--text-2); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tag::before { background: var(--brand); }
.play-tag { background: var(--surface-2); color: var(--ink); }
.guide-card .li-ico, .empty-ico { background: var(--surface-2); color: var(--ink); }
.pl-mirror mark { background: var(--marker); border-bottom: 0; }
.pl-tip { color: var(--text-2); }
.pl-num.is-ambitieux, .pl-num.is-possible { color: var(--ink); }
.pl-num.is-sur { color: var(--sur); }
.pl-bar b { background: var(--ink); }
/* Sur fond encre : bouton blanc, pas jaune */
.final-cta .btn, .convert .btn, .stage-task .btn, .price-box.is-pick .btn { background: #fff; color: var(--ink); }
.final-cta .btn:hover, .convert .btn:hover, .stage-task .btn:hover, .price-box.is-pick .btn:hover { background: var(--surface-2); }
.final-cta::after, .stage-task::after { background: radial-gradient(circle, rgba(242, 69, 92, .45), transparent 70%); }
.price-box.is-pick li svg, .convert li svg { color: #fff; }
.plan-card .li-ico, .coach-msg .li-ico { color: #fff; }
.landing { background: radial-gradient(70% 45% at 50% 0%, #FFE6DE 0%, transparent 70%), var(--bg); background-repeat: no-repeat; background-size: 100% 1100px; }
.badge-tile.is-on .badge-ico, .avatar { background: var(--grad-brand); }
.pill-badge.is-saison { color: #fff; }

/* Réalité en chiffres */
.reality { border-block: 1px solid var(--line); background: var(--surface); }
.big-nums { display: grid; gap: 16px; }
@media (min-width: 860px) { .big-nums { grid-template-columns: repeat(3, 1fr); } }
.big-num { text-align: center; padding: 28px 20px; border-radius: var(--radius); background: var(--bg); }
.big-num b { display: block; font-family: var(--font-d); font-weight: 800; font-size: clamp(56px, 8vw, 88px); line-height: 1; letter-spacing: -0.05em; }
.big-num b mark { padding: 0 .08em; }
.big-num p { margin: 10px auto 0; max-width: 24ch; color: var(--text-2); font-size: 17px; }
.big-num strong { color: var(--ink); }
.reality-reassure { display: flex; gap: 12px; align-items: center; justify-content: center; max-width: 680px; margin: var(--s6) auto var(--s3); padding: 16px 20px; border-radius: var(--radius); background: var(--sur-soft); color: var(--ink); font-weight: 600; }
.reality-reassure svg { flex: 0 0 auto; color: var(--sur); }
.center { text-align: center; }

/* Pour toi / pour tes parents */
.duo { display: grid; gap: 16px; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.duo-card h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 0; }
.duo-card > p { margin: 0; color: var(--text-2); font-size: 17px; }
.duo-card .big-list { font-size: 16px; margin: 6px 0; }
.duo-card .big-list svg { color: var(--ink); }

/* Témoignages (si réels) */
.proofs { display: grid; gap: 14px; }
@media (min-width: 860px) { .proofs { grid-template-columns: repeat(3, 1fr); } }
.proof { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.proof blockquote { margin: 0 0 12px; font-size: 17px; }
.proof figcaption { font-size: 14px; color: var(--text-2); font-weight: 600; }

/* Profil scolaire */
.ps-form { gap: 0; }
.ps-form .panel { margin-top: 0; margin-bottom: 14px; display: grid; gap: 12px; }
.ps-form .panel h2 { font-size: 18px; margin: 0; }
.ps-form .chips .chip { min-height: 44px; }
.chip.is-off { opacity: .4; pointer-events: none; }
.ps-save { width: 100%; margin-top: 6px; }

/* Options à la carte */
.carte-section { margin-top: var(--s8); }
.carte-section .sec-head { text-align: center; max-width: 620px; margin: 0 auto var(--s5); }
.carte-section .sec-head .kicker { margin-inline: auto; }
.carte-section .sec-head h2 { margin: 0 0 8px; }
.carte-section .sec-head p:last-child { color: var(--text-2); margin: 0; }
.carte-grid { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.carte-item { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.carte-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.carte-item > div { flex: 1; }
.carte-item h3 { margin: 0 0 2px; font-size: 17px; }
.carte-item p { margin: 0; color: var(--text-2); font-size: 15px; }
.carte-prix { font-family: var(--font-d); font-weight: 800; font-size: 22px !important; color: var(--ink) !important; white-space: nowrap; }

/* ==========================================================================
   PAGES SEO (formations/, sujets/, guides/) habillées par scripts/seo-habillage.mjs
   ========================================================================== */
.seo-page { background: radial-gradient(70% 40% at 50% 0%, #FFE6DE 0%, transparent 70%), var(--bg); background-repeat: no-repeat; background-size: 100% 700px; }
.seo { padding: var(--s6) 0 var(--s8); }
.seo-art { width: min(780px, calc(100% - 32px)); margin: 0 auto; }
.seo-art > h1 { font-size: var(--t-h1); margin: var(--s3) 0 var(--s4); }
.seo-art > .lead, .seo-art > h1 + p { font-size: var(--t-lead); color: var(--text-2); }
.seo-art > p { max-width: 64ch; }
.seo-art > h2 { margin: var(--s7) 0 var(--s4); font-size: var(--t-h2); }
.seo-art > h3 { margin: var(--s5) 0 var(--s2); }
.seo-art .result-school { margin: var(--s4) 0 0; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; font-size: 14px; color: var(--text-2); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "›"; color: var(--text-3); }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Bloc taux + chiffres clés */
.seo-rate { display: grid; gap: 16px; align-items: center; margin: var(--s5) 0; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 640px) { .seo-rate { grid-template-columns: auto 1fr; gap: 28px; } }
.seo-rate-lab { margin: 0; font-size: 13px; font-weight: 800; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.seo-rate-num { margin: 0; font-family: var(--font-d); font-weight: 800; font-size: clamp(56px, 10vw, 84px); line-height: 1; letter-spacing: -0.05em; }
.seo-rate > p { margin: 0; color: var(--text-2); }
.seo-stats { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.seo-stats li { padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); font-weight: 600; }

/* Carte « ton verdict » */
.seo-cta { display: grid; gap: 16px; align-items: center; margin: var(--s6) 0; padding: 24px; border-radius: 24px; background: var(--grad-ink); color: #fff; }
@media (min-width: 720px) { .seo-cta { grid-template-columns: 1fr auto; } }
.seo-cta-k { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.seo-cta-t { margin: 4px 0 0; font-family: var(--font-d); font-weight: 800; font-size: 22px; }
.seo-cta-b { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-cta-b .btn { width: auto; min-height: 44px; padding: 0 16px; font-size: 15px; }
.seo-cta-b .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.seo-cta-b .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Listes de liens → cartes */
.seo-cards { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: 10px; }
@media (min-width: 640px) { .seo-cards { grid-template-columns: 1fr 1fr; } }
.seo-cards li { margin: 0; }
.seo-cards a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; min-height: 60px; padding: 14px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.seo-cards a::after { content: "→"; color: var(--text-3); flex: 0 0 auto; transition: transform .2s var(--ease), color .2s; }
.seo-cards a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.seo-cards a:hover::after { color: var(--ink); transform: translateX(3px); }
.seo-cards a b { margin-left: auto; font-family: var(--font-d); font-weight: 800; font-size: 18px; white-space: nowrap; }
.seo-cards a:has(b)::after { display: none; }
.seo-hub .seo-cards { grid-template-columns: 1fr; }
.seo-btn { margin: var(--s5) 0; }
.seo-btn .btn { width: auto; }
.seo-art .faq-card { margin-bottom: var(--s5); }
.seo-art > p.meta { margin-top: var(--s6); }

/* Fin de page */
.seo-end { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: var(--s7); padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.seo-end-t { margin: 0; font-family: var(--font-d); font-weight: 800; font-size: 20px; max-width: 26ch; }
.seo-end .btn { width: auto; }
.mast.is-static .btn { width: auto; }
@media (max-width: 860px) { .mast.is-static .mast-end .btn { min-height: 38px; padding: 0 14px; font-size: 13px; } }
.seo-btn .btn { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.seo-btn .btn::after { display: none; }
.seo-art > ol { padding-left: 22px; display: grid; gap: 10px; margin: 0 0 var(--s5); }
.seo-art > ol li { padding-left: 4px; }
.seo-art > ol li::marker { font-family: var(--font-d); font-weight: 800; }
.seo-cards.plainlist li > span { display: block; padding: 14px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.callout.retenir { display: block; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.callout.retenir ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.callout.ok { background: var(--sur-soft); }
.callout { margin: var(--s4) 0; }
.seo-maj { margin: -8px 0 var(--s5); }

/* Admission */
.adm-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.adm-sum > div { display: grid; gap: 2px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.adm-sum b { font-family: var(--font-d); font-size: 36px; font-weight: 800; line-height: 1; }
.adm-sum span { font-size: 14px; color: var(--text-2); }
.adm-sum .is-oui b { color: var(--sur); } .adm-sum .is-att b { color: var(--possible); }
.adm-list { display: grid; gap: 12px; margin-top: 14px; }
.adm-card { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); }
.adm-card.st-oui, .adm-card.st-oui-si { border-left-color: var(--sur); }
.adm-card.st-attente { border-left-color: var(--possible); }
.adm-card.st-non { opacity: .75; }
.adm-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.adm-top > div { display: grid; gap: 2px; }
.adm-top .meta { margin: 0; }
.adm-st { flex: 0 0 auto; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.st-oui .adm-st, .st-oui-si .adm-st { background: var(--sur-soft); color: var(--sur); }
.st-attente .adm-st { background: var(--possible-soft); color: var(--possible); }
.seg-5 { grid-template-columns: repeat(5, 1fr); }
.seg-5 label { font-size: 13px; padding: 6px 4px; }
@media (max-width: 520px) { .seg-5 { grid-template-columns: repeat(3, 1fr); } }

/* Liste d'attente */
.att-res { margin-top: 16px; }
.att-tag { font-family: var(--font-d); font-weight: 800; font-size: 40px; letter-spacing: -0.04em; margin: 0 0 12px; text-transform: capitalize; }
.att-res.is-oui .att-tag { color: var(--sur); } .att-res.is-att .att-tag { color: var(--possible); } .att-res.is-non .att-tag { color: var(--ink); }
.att-bar { position: relative; height: 12px; margin: 34px 0 36px; border-radius: 99px; background: var(--surface-3); }
.att-zone { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--sur-soft); border: 2px solid var(--sur); }
.att-me, .att-last { position: absolute; transform: translateX(-50%); font-size: 12px; font-weight: 800; white-space: nowrap; }
.att-me { top: -28px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.att-last { top: 20px; color: var(--sur); }

/* Simulateur */
.sim-ctrl { display: grid; gap: 12px; margin-top: 0; margin-bottom: 14px; }
.sim-ctrl .meta { margin: 0; }
.sim-li { cursor: default; flex-wrap: wrap; }
.sim-ba { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.sim-arrow { color: var(--text-3); font-weight: 800; }
.sim-li.is-moved { background: var(--marker-soft); }
.sim-sum { margin-top: 12px; font-weight: 600; color: var(--ink); }

/* Comparer */
.cmp-chips { margin-bottom: 6px; }
.cmp-wrap { overflow-x: auto; margin-top: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cmp-v2 { min-width: 560px; font-size: 15px; }
.cmp-v2 thead th { vertical-align: bottom; padding: 18px 16px; }
.cmp-v2 thead th strong { display: block; font-size: 16px; color: var(--ink); }
.cmp-v2 thead th small { display: block; font-weight: 400; font-size: 13px; color: var(--text-2); }
.cmp-v2 tbody th { font-weight: 600; color: var(--text-2); width: 170px; }
.cmp-v2 td, .cmp-v2 tbody th { padding: 14px 16px; }
.cmp-v2 tbody tr:last-child > * { border-bottom: 0; }
.cmp-v2 b { font-family: var(--font-d); font-size: 20px; }

/* Concours */
.conc-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .conc-grid { grid-template-columns: 1fr 1fr; } }
.conc-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.conc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.conc-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.conc-top h2 { margin: 0; font-size: 22px; }
.conc-top .pill { flex: 0 0 auto; }
.conc-ecoles { margin: 0; color: var(--text-2); font-size: 15px; }
.conc-dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 4px 0; font-size: 15px; }
.conc-dl dt { font-weight: 600; color: var(--text-2); }
.conc-dl dd { margin: 0; }
.conc-card > .meta { margin: 0; }
.conc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: auto; padding-top: 8px; }
.conc-actions .btn { width: auto; }
.conc-src { font-size: 12px; color: var(--text-3); }
.conc-diag:not(:empty) { margin: var(--s6) 0; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Classements SEO */
.seo-rank { list-style: none; padding: 0; margin: var(--s5) 0; display: grid; gap: 8px; counter-reset: none; }
.seo-rank a { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.seo-rank a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.r-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--surface-2); font-family: var(--font-d); font-weight: 800; }
.seo-rank li:nth-child(-n+3) .r-n { background: var(--ink); color: #fff; }
.r-t { display: grid; gap: 2px; min-width: 0; }
.r-t strong { font-size: 16px; }
.r-t small { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-v { display: grid; justify-items: end; gap: 0; }
.r-v b { font-family: var(--font-d); font-weight: 800; font-size: 22px; }
.r-v small { font-size: 12px; color: var(--text-3); white-space: nowrap; }
@media (max-width: 520px) { .seo-rank a { grid-template-columns: 32px 1fr auto; gap: 10px; padding: 12px 14px; } .r-n { width: 30px; height: 30px; } }
#auth-err.is-ok { color: var(--sur); background: var(--sur-soft); }
.offre-btn { width: 100%; margin-top: auto; }
.offre .plain { margin-bottom: 18px; }
.offre.is-pick .offre-btn { background: #fff; color: var(--ink); }
.offres-actions .retract, .retract { height: auto; padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.4; }
.retract-top { display: flex; max-width: 760px; margin: 0 auto var(--s5); }

/* ==========================================================================
   IDENTITÉ « Oui » (v8)
   ========================================================================== */
.logo-txt { font-family: var(--font-d); font-weight: 800; letter-spacing: -0.04em; }
.logo-txt b { color: var(--brand); font-weight: 800; }
.logo-mark { background: var(--brand); box-shadow: none; }
/* Le tampon « Oui » : motif de marque */
.stamp-oui { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border: 3px solid var(--brand); border-radius: 16px; color: var(--brand); font-family: var(--font-d); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; transform: rotate(-6deg); background: rgba(255,255,255,.9); }
.stamp-oui svg { width: 26px; height: 26px; }

/* ==========================================================================
   ACCUEIL v3 — identité « Oui », 3 couleurs (Encre, Papier, Corail)
   ========================================================================== */
.landing-v3 { background: radial-gradient(60% 40% at 50% 0%, #FFE7E2 0%, transparent 70%), var(--bg); background-repeat: no-repeat; background-size: 100% 900px; }
.hero-oui h1 { font-size: clamp(38px, 6vw, 74px); }
.oui-mot { position: relative; display: inline-block; color: var(--brand); white-space: nowrap; }
.oui-mot::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .16em; border-radius: 99px; background: var(--brand); opacity: .22; z-index: -1; }

/* Cartes de l'app qui flottent autour du titre */
.fc { display: grid; gap: 6px; padding: 14px 16px; min-width: 170px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 44px -16px rgba(22, 19, 31, .22); }
.fc-k { font-size: 12px; font-weight: 800; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.fc-big { font-family: var(--font-d); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.fc-big small { font-size: 15px; color: var(--text-3); }
.fc-s { font-size: 13px; color: var(--text-2); }
.fc-bars { display: flex; gap: 4px; height: 8px; }
.fc-bars i { display: block; border-radius: 99px; background: var(--ink); }
.fc-bars .b1 { width: 30%; } .fc-bars .b2 { width: 45%; opacity: .45; } .fc-bars .b3 { width: 25%; background: var(--brand); }
.fc-1 { top: 14%; left: 5%; transform: rotate(-4deg); }
.fc-2 { top: 12%; right: 6%; transform: rotate(5deg); }
.fc-3 { bottom: 14%; left: 7%; transform: rotate(3deg); }
.fc-4 { bottom: 18%; right: 9%; }
.fc-5 { top: 46%; right: 3%; transform: rotate(-3deg); min-width: 0; }
@media (max-width: 1180px) { .fc-5, .fc-3 { display: none; } }
@media (max-width: 860px) {
  .floaty, .floaty-layer { display: none; }
  .hero-oui { padding-top: 28px !important; min-height: 0; }
}

/* Tu te reconnais ? */
.pains { display: grid; gap: 14px; }
@media (min-width: 860px) { .pains { grid-template-columns: 1fr 1fr; } }
.pain { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.pain-q { margin: 0; font-family: var(--font-d); font-weight: 800; font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
.pain-a { margin: 0; display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 16px; }
.pain-ok { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff; }
.pain-ok svg { width: 16px; height: 16px; }

/* Simulateur : recherche libre */
.pv-search { display: grid; gap: 8px; position: relative; }
.pv-search .suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; margin-top: 4px; }
.pv-idees { margin-top: 4px; }
.pv-idees .chip { min-height: 36px; font-size: 14px; }
.pv-zone { display: grid; gap: 14px; }
.pv-zone h3 { margin: 0; }

/* Bloc parents : sombre, plein écran */
.parents-block { background: var(--grad-ink); color: #fff; border-radius: 0; }
.parents-block .kicker { color: rgba(255,255,255,.6); }
.pb-head { max-width: 720px; margin: 0 auto var(--s6); text-align: center; }
.pb-head .kicker { margin-inline: auto; }
.pb-head h2 { color: #fff; font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.035em; margin: 0 0 var(--s3); }
.pb-head p:last-child { color: rgba(255,255,255,.72); font-size: 18px; margin: 0; }
.parents-block .big-num { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.parents-block .big-num b { color: #fff; }
.parents-block .big-num p { color: rgba(255,255,255,.7); }
.parents-block .big-num strong { color: #fff; }
.pb-save { display: grid; gap: 22px; justify-items: center; text-align: left; max-width: 720px; margin: var(--s7) auto 0; padding: 32px; border-radius: 28px; background: #fff; color: var(--ink); }
.pb-save .stamp-oui { margin-top: -62px; }
.pb-save .big-list svg { color: var(--brand); }
.pb-save .btn-row { margin: 0; justify-content: center; }
.pb-save .btn { background: var(--brand); color: #fff; }
.pb-link { color: var(--ink); }
.pb-src { text-align: center; color: rgba(255,255,255,.45); margin-top: var(--s5); }

/* Offres */
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.plan h3 { margin: 0; font-size: 22px; }
.plan-promise { margin: 0 0 8px; font-weight: 600; color: var(--text-2); }
.plan-price { margin: 0; font-family: var(--font-d); font-size: 22px; font-weight: 800; }
.plan-price b { font-size: 56px; letter-spacing: -0.05em; line-height: 1; }
.plan-price small { font-family: var(--font-b); font-size: 14px; font-weight: 600; color: var(--text-3); margin-left: 6px; }
.plan-day { margin: 0 0 14px; font-size: 14px; color: var(--text-2); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: 0 0 auto; margin-top: 3px; color: var(--ink); }
.plan .btn { margin-top: auto; width: 100%; }
.plan.is-pick { background: var(--grad-ink); color: #fff; border: 0; transform: translateY(-8px); box-shadow: var(--shadow-high); }
.plan.is-pick h3 { color: #fff; }
.plan.is-pick .plan-promise, .plan.is-pick .plan-day, .plan.is-pick .plan-price small { color: rgba(255,255,255,.65); }
.plan.is-pick li svg { color: var(--brand); }
.plan.is-pick .pill-reco { background: var(--brand); color: #fff; width: fit-content; }
.plans-more { text-align: center; color: var(--text-2); margin-top: var(--s5); }
.affiner { margin-top: 18px; }
.affiner-row { display: flex; align-items: center; gap: 14px; }
.affiner-row .range { flex: 1; }
.affiner output { font-family: var(--font-d); font-weight: 800; font-size: 28px; min-width: 2.2ch; }

/* CTA final avec le tampon */
.final-cta .stamp-oui { background: transparent; color: #fff; border-color: #fff; margin-bottom: 18px; }
.final-cta { background: var(--brand); }
.final-cta::after { display: none; }
.final-cta p { color: rgba(255,255,255,.85); }
.final-cta .btn { background: #fff; color: var(--ink); }
.offre .plan-promise { margin: 0 0 6px; font-size: 14px; } .offre.is-pick .plan-promise { color: rgba(255,255,255,.65); }
.lock-plan { margin: 0; font-size: 13px; }
.plan-up { margin-top: 10px; background: var(--surface) !important; color: var(--ink); border: 1px solid var(--line); } .plan-up small { color: var(--text-2) !important; } .plan-up .li-ico { background: var(--brand-soft); color: var(--brand); } .plan-up > .ico { color: var(--text-3); } .credits { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 16px; padding: 12px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); } .credits b { font-family: var(--font-d); font-size: 32px; font-weight: 800; } .credits span { color: var(--text-2); }

/* Tarifs : comparatif et offre ciblée */
.comp-section { margin-top: var(--s8); }
.comp-section .sec-head { text-align: center; margin: 0 auto var(--s5); }
.comp-section .sec-head .kicker { margin-inline: auto; }
.comp-section .sec-head h2 { margin: 0; }
.comp-table { min-width: 640px; }
.comp-table thead th { text-align: center; font-family: var(--font-d); font-size: 17px; color: var(--ink); padding: 18px 12px; }
.comp-table thead th:first-child { text-align: left; }
.comp-table tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.comp-table td { text-align: center; padding: 14px 10px; }
.comp-table td.is-yes { color: var(--sur); } .comp-table td.is-yes svg { margin: 0 auto; }
.comp-table td.is-no { color: var(--text-3); }
.comp-table td.is-val { font-weight: 800; }
.comp-table .is-pick { background: var(--brand-soft); }
.comp-table thead th.is-pick { color: var(--brand-hover); border-radius: 14px 14px 0 0; }
.offre.is-target { outline: 3px solid var(--brand); outline-offset: 4px; }
.offre-btn.is-current { pointer-events: none; color: var(--sur); border-color: var(--sur-soft); background: var(--sur-soft); }
.offre.is-pick .offre-btn.is-current { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.offres-v2 { max-width: 1040px; margin: 0 auto; }
@media (min-width: 900px) { .offres-v2 { grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; } }
.offre-sub { margin: -8px 0 14px; font-size: 14px; color: var(--text-2); }
.offre.is-pick .offre-sub { color: rgba(255,255,255,.6); }
.offre-coach { border-style: dashed; }
.coach-soon { margin: auto 0 8px; font-weight: 800; color: var(--brand-hover); }
.coach-prev { padding: 0; grid-template-columns: 1fr auto; }
.coach-prev .btn { width: auto; }
@media (min-width: 900px) { .plans-2 { grid-template-columns: 1fr 1.2fr; max-width: 860px; margin: 0 auto; } }
.chip-sub { font-size: 13px; opacity: .7; font-weight: 500; }
.chip-add { border-style: dashed; }
.form-autre { margin-top: 10px; position: relative; }
.form-autre .suggest { position: absolute; left: 0; right: 0; z-index: 10; }

/* ==========================================================================
   VERDICT PERSONNALISÉ (accueil) + FENÊTRE D'OFFRE
   ========================================================================== */
.pv-form { display: grid; gap: 12px; }
.pv-step { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.pv-step .field-lab { flex: 1; font-size: 15px; }
.pv-n { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--ink); color: #fff; font-family: var(--font-d); font-weight: 800; font-size: 13px; }
.pv-moy-out { font-family: var(--font-d); font-weight: 800; font-size: 24px; }
.pv-chips .chip { min-height: 36px; font-size: 14px; padding: 0 12px; }
.pv-search { position: relative; }
.pv-search .suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; margin-top: 4px; }
.pv-go { width: 100%; margin-top: 6px; }
.pv-gate { display: grid; gap: 12px; }
.pv-gate > h3 { margin: 0; }
.pv-blur { filter: blur(9px); user-select: none; pointer-events: none; }
.pv-gate-box { display: grid; gap: 12px; justify-items: center; text-align: center; margin-top: -54px; position: relative; padding: 26px 20px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-high); }
.pv-gate-box .stamp-oui { font-size: 20px; padding: 6px 14px 6px 10px; margin-top: -46px; }
.pv-gate-box h3 { margin: 4px 0 0; font-size: 22px; }
.pv-gate-box > p { margin: 0; color: var(--text-2); max-width: 36ch; }
.pv-signup { width: 100%; padding: 0; gap: 10px; }
.pv-signup .btn { width: 100%; }

.upsell .sheet-carte { display: grid; gap: 12px; padding: 28px 24px calc(24px + env(safe-area-inset-bottom)); max-width: 520px; }
@media (min-width: 900px) { .upsell .sheet-carte { width: min(520px, calc(100% - 48px)); } }
.up-x { position: absolute; top: 14px; right: 14px; }
.up-k { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--sur); }
.upsell h2 { margin: 0; font-size: clamp(26px, 4vw, 32px); letter-spacing: -0.03em; }
.upsell .sheet-carte > p { margin: 0; color: var(--text-2); }
.up-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.up-list li { display: flex; gap: 10px; align-items: flex-start; }
.up-list svg { flex: 0 0 auto; margin-top: 3px; color: var(--brand); }
.up-prix { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.up-prix b { font-family: var(--font-d); font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.up-prix span { color: var(--text-2); font-size: 14px; }
.up-pre { margin: 0; font-size: 14px; font-weight: 600; color: var(--brand-hover) !important; }
.up-go, .up-parent { width: 100%; }
.up-foot { margin: 0; text-align: center; font-size: 13px; color: var(--text-3) !important; }
.up-foot .text-btn { font-size: 13px; min-height: 0; }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  max-width: 720px; margin: 0 auto; padding: 14px 16px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: var(--shadow);
}
.cookie p { margin: 0; font-size: 14px; color: var(--text-2); }
.cookie a { color: var(--ink); font-weight: 700; }
.cookie .btn { flex: 0 0 auto; }
.cookie[hidden] { display: none; }
@media (max-width: 640px) {
  .cookie { flex-direction: column; align-items: stretch; }
}
