/* Fichier : site_v3/public/static/css/accueil_v3.css
   Accueil visiteur animé (2026-10-19), repris de design_review/accueil_motion.html.
   Chargé seulement pour les visiteurs ; la barre de navigation est dans
   site_nav.css. Classes propres (pas Tailwind) : éviter les noms d'utilitaires
   Tailwind (ex. « ring »), que tw.css générerait s'ils apparaissent dans index.php. */
  :root {
    --navy-900:#101B2D; --navy-800:#14304A; --navy-700:#1E4E76; --navy-600:#2563A6; --navy-500:#3B82C4; --navy-100:#DCEAF6; --navy-50:#F0F6FB;
    --paper-50:#F7F8FB; --paper-100:#EEF1F6;
    --coral-600:#DD6B20; --coral-500:#F0883E; --coral-100:#FDE6D2;
    --ink-900:#101B2D; --ink-600:#3E4A61; --ink-400:#7C8AA3;
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  /* Pas de scroll-behavior: smooth sur html : ScrollTrigger fait défiler la
     page en interne quand il recalcule, et le navigateur animait ces sauts
     (page qui remonte toute seule). Le défilement doux des liens internes
     est fait en JavaScript. */
  body { overflow-x: clip; }
  h1, h2, h3, .lex { font-family: Lexend, system-ui, sans-serif; }
  a { color: inherit; text-decoration: none; }
  .kick { font-family: Lexend, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

  .btn-navy { display: inline-flex; align-items: center; gap: 8px; background: var(--navy-800); color: #fff; font-family: Lexend, sans-serif; font-weight: 600; font-size: .9rem; padding: 12px 20px; border-radius: 12px; transition: background .2s; }
  .btn-navy:hover { background: var(--navy-700); }

  /* ---------- Haut de page ---------- */
  .hero { position: relative; overflow: hidden; background: var(--navy-800); color: #fff; }
  .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 85% 0%, rgba(59,130,196,.30) 0%, transparent 60%),
                radial-gradient(ellipse 45% 40% at 10% 100%, rgba(240,136,62,.10) 0%, transparent 55%); }
  /* Quadrillage de cahier, très discret, qui s'efface vers les bords. */
  .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 0%, transparent 75%); }
  .logo { font-family: Lexend, sans-serif; font-weight: 700; font-size: 1.25rem; }
  .logo .m { color: var(--navy-900); } .logo .c { color: var(--coral-500); }
  .mbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: max(16px, env(safe-area-inset-top)) 16px 0; }
  .mbar .logo { font-size: 1.125rem; } .mbar .logo .m { color: #fff; }
  .mbar a.login { font-size: .875rem; font-weight: 600; color: rgba(220,234,246,.85); }
  @media (min-width: 768px) { .mbar { display: none; } }
  .hero-in { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 24px 16px 24px; display: grid; gap: 8px; }
  @media (min-width: 900px) { .hero-in { grid-template-columns: 1.05fr .95fr; gap: 32px; padding: 108px 40px 24px; align-items: center; } }
  .launch { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 16px 24px; }
  @media (min-width: 900px) { .launch { padding: 0 40px 32px; } }
  .launch p { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; line-height: 1.5; color: rgba(220,234,246,.8); }
  .launch i { color: var(--coral-500); margin-top: 2px; }
  .launch strong { color: #fff; font-family: Lexend, sans-serif; font-weight: 600; }
  .launch a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
  .hero-title { font-size: clamp(1.85rem, 5vw, 3.5rem); line-height: 1.08; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; }
  .hero-title .accent { color: var(--coral-500); }
  .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
  .w > span { display: inline-block; }
  .js-motion .w > span { transform: translateY(105%); }
  .hero-lead { color: rgba(220,234,246,.85); font-size: 1.05rem; line-height: 1.6; max-width: 32rem; margin: 0 0 22px; }
  @media (min-width: 768px) { .hero-lead { font-size: 1.15rem; margin-bottom: 28px; } }
  .ctas { display: none; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
  @media (min-width: 768px) { .ctas { display: flex; } }
  .btn-coral { display: inline-flex; align-items: center; gap: 8px; background: var(--coral-500); color: #fff; font-family: Lexend, sans-serif; font-weight: 600; padding: 14px 24px; border-radius: 12px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); transition: background .2s; }
  .btn-coral:hover { background: var(--coral-600); }
  .btn-ghost { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-family: Lexend, sans-serif; font-weight: 600; padding: 14px 22px; border-radius: 12px; transition: background .2s; }
  .btn-ghost:hover { background: rgba(255,255,255,.08); }
  .btn-ghost i { transition: transform .25s; } .btn-ghost:hover i { transform: translateY(2px); }
  .levels-label { color: rgba(220,234,246,.7); margin: 0 0 10px; }
  .levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 26rem; }
  .lvl { background: #fff; color: var(--navy-800); font-family: Lexend, sans-serif; font-weight: 700; font-size: 1.15rem; text-align: center; padding: 12px 0; border-radius: 12px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.35); transition: transform .2s, box-shadow .2s; }
  .lvl:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(0,0,0,.45); }
  .mlinks { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: .875rem; font-weight: 600; }
  .mlinks a { display: inline-flex; align-items: center; gap: 6px; }
  .mlinks a + a { color: rgba(220,234,246,.75); }
  @media (min-width: 768px) { .mlinks { display: none; } }
  .stats { display: none; grid-template-columns: repeat(4, auto); justify-content: start; gap: 32px; margin-top: 32px; font-size: .875rem; }
  .stats b { display: block; font-family: Lexend, sans-serif; font-size: 1.5rem; font-weight: 700; }
  .stats span { color: rgba(220,234,246,.7); }
  @media (min-width: 900px) { .stats { display: grid; } }

  /* Scène du haut : téléphone + pastilles flottantes */
  .hstage { position: relative; height: 500px; display: flex; align-items: center; justify-content: center; }
  @media (min-width: 900px) { .hstage { height: 640px; } }
  .phone-pos { position: relative; z-index: 2; transform: scale(.8); }
  @media (min-width: 900px) { .phone-pos { transform: none; } }
  @media (min-width: 900px) and (max-width: 1199px) { .phone-pos { transform: scale(.86); } }
  .phone { position: relative; width: 292px; height: 600px; border-radius: 48px; background: #0b1220; padding: 11px; transform: rotate(2.5deg);
    box-shadow: 0 50px 90px -30px rgba(0,0,0,.65), 0 0 0 1.5px rgba(255,255,255,.08) inset, 0 0 0 1px rgba(0,0,0,.4); }
  .screen { position: relative; height: 100%; border-radius: 38px; background: var(--paper-50); overflow: hidden; color: var(--ink-900); }
  .island { position: absolute; top: 10px; left: 50%; width: 90px; height: 26px; margin-left: -45px; background: #0b1220; border-radius: 20px; z-index: 5; }
  .sbar { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 0 28px; font-family: Lexend, sans-serif; font-size: .78rem; font-weight: 600; }
  .sbar span:last-child { display: flex; gap: 5px; font-size: .8rem; }
  .pex { position: absolute; left: 0; right: 0; top: 46px; bottom: 0; padding: 4px 14px 18px; display: flex; flex-direction: column; gap: 10px; }
  .js-motion .pex { visibility: hidden; }
  .pex-bar { display: flex; align-items: center; gap: 8px; font-family: Lexend, sans-serif; font-weight: 600; font-size: .9rem; padding: 4px 2px 0; }
  .pex-bar i { color: var(--ink-400); }
  .pex-bar .lv { margin-left: auto; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--c-soft); color: var(--c-dark); }
  .pex-dots { display: flex; gap: 4px; padding: 0 2px; }
  .pex-dots i { flex: 1; height: 4px; border-radius: 4px; background: #e2e8f0; }
  .pex-dots i.on { background: var(--c); }
  .pcard { position: relative; flex: 1; display: flex; flex-direction: column; background: #fff; border: 1px solid #eef2f7; border-radius: 20px; box-shadow: 0 4px 14px rgba(16,27,45,.06); padding: 18px 16px 16px; overflow: hidden; transition: background .35s, border-color .35s; }
  .pcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c); transition: background .35s; }
  .pcard.ok { background: #f0fdf4; border-color: #bbf7d0; }
  .pcard.ok::before { background: #22c55e; }
  .pq { margin: 0; font-weight: 600; font-size: .95rem; color: var(--ink-600); }
  .pexpr { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: Lexend, sans-serif; font-weight: 600; font-size: 1.6rem; }
  .frac { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; font-size: 1.35rem; }
  .frac span:first-child { border-bottom: 2.5px solid currentColor; padding: 0 4px 2px; }
  .frac span:last-child { padding-top: 2px; }
  .ans { display: flex; align-items: center; gap: 8px; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 10px 14px; background: #fff; font-family: Lexend, sans-serif; }
  .ans .pre { color: #475569; font-size: 1rem; white-space: nowrap; }
  .ans .val { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 1.6em; font-weight: 800; font-size: 1.2rem; color: var(--c-dark); }
  .ans .unit { font-weight: 800; color: #64748b; }
  .pcard.ok .ans { border-color: #86efac; }
  .pcard.ok .ans .val { color: #15803d; }
  .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; background: #94a3b8; animation: blink 1s step-end infinite; }
  .pcard.ok .caret, .card.wrong .caret, .card.ok .caret, .card.locked .caret { display: none; }
  @keyframes blink { 50% { opacity: 0; } }
  .pbtns { display: flex; justify-content: center; padding-top: 14px; }
  .vbtn { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem;
    background: linear-gradient(150deg, var(--c-light) 0%, var(--c) 55%, var(--c-dark) 100%); box-shadow: 0 8px 18px -4px rgba(16,27,45,.3), inset 0 1px 2px rgba(255,255,255,.35); }
  .okpill { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 5px; background: #dcfce7; color: #15803d; font-family: Lexend, sans-serif; font-weight: 700; font-size: .75rem; padding: 4px 10px; border-radius: 999px; opacity: 0; }
  .pex:first-of-type .okpill { opacity: 1; }
  .js-motion .pex:first-of-type .okpill { opacity: 0; }

  /* Pastilles accrochées aux bords du téléphone (dans .phone-pos, donc à la
     même échelle que lui) : sur ordinateur elles ne recouvrent que la coque,
     jamais l'écran. Décalages ajustés à la rotation du téléphone (2,5°). */
  .fchip-pos { position: absolute; z-index: 3; }
  .fchip { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink-900); border-radius: 16px; padding: 9px 16px 9px 9px; white-space: nowrap; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); }
  .fchip .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.05rem; }
  .fchip b { display: block; font-family: Lexend, sans-serif; font-weight: 700; font-size: .84rem; line-height: 1.2; }
  .fchip small { display: block; font-size: .76rem; font-weight: 600; line-height: 1.25; color: var(--ink-600); }
  .c1 { left: calc(100% - 18px); top: 186px; }
  .c2 { left: calc(100% - 10px); top: 382px; }
  .c3 { right: calc(100% - 4px); top: 498px; }
  /* Mobile : pas de place sur les côtés ; deux pastilles posées dans les
     bandes vides de l'écran (au-dessus et au-dessous de l'exercice). */
  @media (max-width: 899px) {
    .c1 { left: auto; right: calc(100% - 96px); top: 172px; }
    .c2 { left: calc(100% - 96px); top: 376px; }
    .c3 { display: none; }
  }
  /* Carte « Méthode » devant le téléphone, entière et lisible (bureau large). */
  .back-pos { position: absolute; z-index: 3; display: none; right: calc(100% - 14px); top: 262px; }
  @media (min-width: 1100px) { .back-pos { display: block; } }
  .back-card { width: 214px; background: #fff; color: var(--ink-900); border-radius: 18px; padding: 14px; transform: rotate(-4deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
  .back-card .kick { color: #0369a1; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
  .back-card p { display: flex; gap: 8px; margin: 0 0 6px; font-size: .8rem; line-height: 1.38; color: #1e293b; }
  .back-card p:last-child { margin-bottom: 0; }
  .back-card p i { flex-shrink: 0; width: 19px; height: 19px; border-radius: 50%; background: #0f172a; color: #fff; font-style: normal; font-size: .68rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
  .back-card p:first-of-type { background: #eff6ff; border-left: 3px solid #1d4ed8; border-radius: 8px; padding: 8px; font-weight: 700; }
  .back-card p:first-of-type i { background: #1d4ed8; }

  /* ---------- La petite histoire ---------- */
  .story { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
  .story-pin { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 16px; }
  .lamp { position: absolute; left: 50%; top: 50%; width: 1000px; height: 1000px; margin: -500px 0 0 -500px; pointer-events: none; background: radial-gradient(circle, rgba(240,136,62,.13) 0%, rgba(240,136,62,.04) 35%, transparent 62%); }
  .story-text { position: relative; z-index: 2; text-align: center; max-width: 780px; }
  .story-time { font-family: Lexend, sans-serif; font-weight: 700; font-size: clamp(2.1rem, 6.2vw, 4.5rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 26px; }
  .story-time b { color: var(--coral-500); font-weight: 700; }
  .story-line { font-family: Lexend, sans-serif; font-weight: 500; font-size: clamp(1.2rem, 2.6vw, 1.75rem); color: rgba(220,234,246,.85); margin: 0 0 12px; }
  .story-line strong { color: #fff; font-weight: 600; }
  .ifrac, .sf { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; }
  .ifrac { font-size: .7em; margin: 0 .12em; }
  .ifrac i, .sf i { font-style: normal; }
  .ifrac i:first-child { border-bottom: 2px solid currentColor; padding: 0 .25em .06em; }
  .sf { font-size: .66rem; font-weight: 700; }
  .sf i:first-child { border-bottom: 1.5px solid currentColor; padding: 0 2px; }
  .js-motion .story-line { opacity: 0; transform: translateY(18px); }
  .story-final { position: relative; z-index: 2; text-align: center; margin-top: 56px; }
  .story-final h2 { font-size: clamp(1.8rem, 4.8vw, 3.4rem); line-height: 1.18; font-weight: 700; margin: 0; letter-spacing: -.01em; }
  .story-final h2 em { font-style: normal; color: var(--coral-500); position: relative; white-space: nowrap; }
  .uline { position: absolute; left: -3%; bottom: -.28em; width: 106%; height: .42em; overflow: visible; }
  .promise { list-style: none; margin: 34px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 60rem; }
  .promise li { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-family: Lexend, sans-serif; font-weight: 500; font-size: clamp(.88rem, 1.6vw, 1rem); color: #fff; }
  .promise i { color: var(--coral-500); font-size: 1.05em; }
  .js-motion .story-final { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 0 16px; opacity: 0; }
  .objs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .obj { position: absolute; }
  .obj-m { transform: scale(var(--s, .6)) rotate(var(--r, 0deg)); }
  @media (min-width: 900px) { .obj-m { --s: 1; } }
  .o1 { top: 4%; left: 2%; } .o1 .obj-m { --r: -8deg; transform-origin: top left; }
  .o2 { top: 3%; right: -4%; } .o2 .obj-m { --r: 6deg; transform-origin: top right; }
  .o3 { bottom: 4%; left: 1%; } .o3 .obj-m { --r: 4deg; transform-origin: bottom left; }
  .o4 { bottom: 4%; right: 2%; } .o4 .obj-m { --r: -10deg; transform-origin: bottom right; }
  @media (min-width: 900px) { .o1 { top: 13%; left: 7%; } .o2 { top: 11%; right: 6%; } .o3 { bottom: 11%; left: 9%; } .o4 { bottom: 13%; right: 11%; } }
  .postit { width: 200px; padding: 20px 16px 24px; background: #fde68a; color: #78350f; font-family: Caveat, cursive; font-size: 1.75rem; font-weight: 700; line-height: 1.05; box-shadow: 0 22px 36px -14px rgba(0,0,0,.6); }
  .postit small { display: block; font-size: 1.35rem; font-weight: 500; margin-top: 6px; }
  .corrige { width: 236px; background: #fff; color: #334155; border-radius: 4px; padding: 16px 18px; box-shadow: 0 22px 40px -14px rgba(0,0,0,.6); font-size: .9rem;
    background-image: repeating-linear-gradient(transparent 0 25px, #e2e8f0 25px 26px); background-position: 0 44px; }
  .corrige .hd { font-family: Lexend, sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 8px; }
  .corrige p { margin: 0; line-height: 26px; }
  .corrige mark { background: #fde047; color: #0f172a; font-weight: 700; padding: 0 3px; }
  .brouillon { width: 262px; padding: 14px 18px 18px; background-color: #fff; color: #1e3a8a; font-family: Caveat, cursive; font-size: 1.7rem; line-height: 1.15; box-shadow: 0 22px 40px -14px rgba(0,0,0,.6);
    background-image: linear-gradient(#dbeafe 1px, transparent 1px), linear-gradient(90deg, #dbeafe 1px, transparent 1px); background-size: 16px 16px; }
  .brouillon s { text-decoration-color: #dc2626; text-decoration-thickness: 3px; }
  .brouillon .red { color: #dc2626; font-weight: 700; }
  .calc { width: 118px; padding: 12px; background: linear-gradient(160deg, #334155, #1e293b); border-radius: 16px; box-shadow: 0 22px 40px -14px rgba(0,0,0,.7); }
  .calc .scr { background: #c7d2b8; color: #1f2937; border-radius: 6px; padding: 6px 8px; text-align: right; font-family: Lexend, sans-serif; font-weight: 600; font-size: 1.3rem; margin-bottom: 10px; }
  .calc .keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .calc .keys i { height: 14px; border-radius: 4px; background: #475569; }
  .calc .keys i:nth-child(4n) { background: var(--coral-500); }

  /* ---------- Comment ça marche ---------- */
  .how { background: var(--paper-50); padding: 88px 0 24px; }
  .how-head { max-width: 760px; margin: 0 auto 8px; padding: 0 16px; text-align: center; }
  .how-head .kick { color: var(--coral-600); }
  .how-head h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); line-height: 1.15; font-weight: 700; margin: 10px 0 0; }
  .how-head h2 em { font-style: normal; color: var(--navy-600); }
  .how-grid { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; }
  @media (min-width: 900px) { .how-grid { grid-template-columns: minmax(280px, 380px) 1fr; gap: 48px; padding: 0 32px; } }
  .stage-wrap { position: sticky; top: 0; z-index: 5; height: min(62svh, 500px); margin: 0 -16px; padding: 12px 16px 0; background: var(--paper-50); }
  .stage-wrap::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; background: linear-gradient(var(--paper-50), rgba(247,248,251,0)); pointer-events: none; }
  @media (min-width: 900px) {
    .stage-wrap { order: 2; top: max(84px, calc(50vh - 250px)); height: 540px; margin: 0; padding: 0; background: none; }
    .stage-wrap::after { display: none; }
  }
  .steps { position: relative; }
  @media (min-width: 900px) { .steps { order: 1; } }
  .step { min-height: 62svh; display: flex; align-items: flex-start; padding-top: 36px; }
  .step:last-child { min-height: 55svh; }
  @media (min-width: 900px) { .step, .step:last-child { min-height: 82vh; align-items: center; padding-top: 0; } }
  .step-in { position: relative; transition: opacity .4s; }
  .has-gsap .step:not(.on) .step-in { opacity: .32; }
  @media (min-width: 900px) { .step-in { padding-left: 64px; } }
  .snum { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-800); color: #fff; font-family: Lexend, sans-serif; font-weight: 700; margin-bottom: 14px; transition: background .3s, transform .3s; }
  .step.on .snum { background: var(--coral-500); transform: scale(1.06); }
  @media (min-width: 900px) { .snum { position: absolute; left: 0; top: -4px; margin: 0; } }
  .step h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.2; font-weight: 700; margin: 0 0 10px; }
  .step p { color: var(--ink-600); font-size: 1.06rem; line-height: 1.6; margin: 0; max-width: 26rem; }
  .rail { display: none; }
  @media (min-width: 900px) { .rail { display: block; position: absolute; left: 19px; top: 41vh; bottom: 41vh; width: 2px; background: var(--navy-100); border-radius: 2px; } }
  .rail i { display: block; height: 100%; background: var(--coral-500); transform-origin: top; transform: scaleY(0); border-radius: 2px; }

  /* La scène : dessinée à taille fixe, mise à l'échelle par le script. */
  .stage { position: absolute; top: 0; left: 50%; width: 640px; height: 540px; transform-origin: top center; transform: translateX(-50%) scale(var(--k, 1)); }
  .stage.m { width: 360px; height: 480px; }
  .card { position: absolute; left: 0; top: 24px; width: 384px; background: #fff; border: 1px solid #eef2f7; border-radius: 20px; padding: 18px 22px 16px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(190,18,60,.06), 0 30px 60px -30px rgba(16,27,45,.3); transition: background .35s, border-color .35s; }
  .stage.m .card { top: 0; width: 360px; }
  .card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #e11d48 0%, #fb7185 55%, #fecdd3 100%); }
  .card.wrong { background: #fff5f5; border-color: #fecaca; } .card.wrong::before { background: #ef4444; }
  .card.ok { background: #f0fdf4; border-color: #bbf7d0; } .card.ok::before { background: #22c55e; }
  .chead { display: flex; align-items: center; gap: 8px; height: 24px; font-family: Lexend, sans-serif; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #be123c; }
  .chead .lv { font-size: .7rem; letter-spacing: 0; padding: 2px 8px; border-radius: 999px; background: #ffe4e6; color: #9f1239; text-transform: none; }
  .cdots { margin-left: 4px; display: flex; gap: 4px; }
  .cdots i { width: 14px; height: 4px; border-radius: 3px; background: #fecdd3; }
  .cdots i.on { background: #e11d48; }
  .badge { position: absolute; top: 14px; right: 18px; display: inline-flex; align-items: center; gap: 6px; font-family: Lexend, sans-serif; font-size: .74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; opacity: 0; }
  .badge.lock { background: #fee2e2; color: #b91c1c; }
  .badge.juste { background: #dcfce7; color: #15803d; }
  .cq { margin: 12px 0 2px; font-weight: 600; font-size: 1.02rem; }
  .fig { display: block; width: 100%; height: auto; }
  .lbl text { font-family: Lexend, sans-serif; font-size: 12.5px; font-weight: 600; fill: #334155; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }
  .bdg text { font-family: Lexend, sans-serif; font-size: 12px; font-weight: 700; }
  .cans { display: flex; align-items: center; gap: 8px; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 10px 16px; background: #fff; font-family: Lexend, sans-serif; margin-top: 4px; transition: border-color .3s; }
  .cans .pre { color: #475569; font-size: 1.05rem; }
  .cans .val { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 1.6em; font-weight: 800; font-size: 1.2rem; color: #9f1239; }
  .cans .unit { font-weight: 800; color: #64748b; }
  .card.wrong .cans { border-color: #fca5a5; } .card.wrong .cans .val { color: #b91c1c; }
  .card.ok .cans { border-color: #86efac; } .card.ok .cans .val { color: #15803d; }
  .card.locked .cans .val { color: #94a3b8; }
  .cbtns { display: flex; justify-content: center; align-items: center; height: 74px; padding-top: 12px; }
  .mbtn { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 2px solid #bae6fd; background: #f0f9ff; color: #0369a1; font-size: 1.25rem; display: inline-flex; align-items: center; justify-content: center; margin-right: 14px; flex-shrink: 0; overflow: visible; }
  .mbtn.corr { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
  .mbtn .mring { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; pointer-events: none; }
  .vbtn2 { width: 58px; height: 58px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.35rem; flex-shrink: 0;
    background: linear-gradient(150deg, #fb7185 0%, #e11d48 55%, #be123c 100%); box-shadow: 0 8px 18px rgba(180,83,9,.3), inset 0 1px 2px rgba(255,255,255,.35); transition: background .3s, box-shadow .3s, color .3s; }
  .vbtn2.off { background: #e2e8f0; color: #94a3b8; box-shadow: none; }
  .panel { position: absolute; right: 0; top: 120px; width: 272px; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 18px; padding: 16px; box-shadow: 0 30px 60px -24px rgba(16,27,45,.35); visibility: hidden; }
  .stage.m .panel { left: 6px; right: 6px; width: auto; top: auto; bottom: 6px; background: #fff; padding: 14px; }
  .ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .ph .kick { color: #94a3b8; font-size: .68rem; }
  .ph .px { width: 26px; height: 26px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: grid; place-items: center; font-size: .65rem; }
  .warn { background: #fff7ed; border-left: 4px solid #ea580c; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
  .warn b { display: block; font-size: .98rem; line-height: 1.3; color: #0f172a; }
  .warn span { display: block; font-size: .86rem; color: #475569; margin-top: 3px; }
  .pstep { display: flex; align-items: baseline; gap: 9px; margin: 0 0 9px; font-size: .9rem; line-height: 1.4; color: #1e293b; }
  .pstep i { flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%; background: #0f172a; color: #fff; font-style: normal; font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; transform: translateY(4px); }
  .pstep.key { font-weight: 800; background: #fff1f2; border-left: 4px solid #e11d48; border-radius: 10px; padding: 9px 11px; }
  .pstep.key i { background: #e11d48; }
  .pstep:last-child { margin-bottom: 0; }
  .intro { margin: 0 0 12px; font-size: .9rem; line-height: 1.45; color: #334155; }
  .intro .b1 { display: inline-flex; width: 19px; height: 19px; border-radius: 50%; border: 2px solid #0369a1; color: #0369a1; font-size: .68rem; font-weight: 800; align-items: center; justify-content: center; font-family: Lexend, sans-serif; }
  .pline { margin: 0 0 8px; font-family: Lexend, sans-serif; font-size: .95rem; color: #1e293b; font-variant-numeric: tabular-nums; }
  .pline span { display: block; font-family: 'Source Sans 3', sans-serif; font-weight: 700; font-size: .8rem; color: #64748b; }
  .pline.res { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed #cbd5e1; }
  .pline.res b { color: #15803d; }

  /* ---------- Notions ---------- */
  section[id] { scroll-margin-top: 72px; }
  .sec-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
  @media (min-width: 900px) { .sec-in { padding: 0 32px; } }
  .notions { padding: 64px 0 80px; }
  .sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
  .sec-head .kick { color: var(--coral-600); margin: 0 0 8px; }
  .sec-head h2, .fcopy h2, .pcopy h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; font-weight: 700; margin: 0; }
  .lvf { position: relative; display: inline-flex; gap: 2px; padding: 4px; background: #fff; border: 1px solid var(--navy-100); border-radius: 14px; }
  .lvf button { position: relative; z-index: 1; border: 0; background: none; font: inherit; font-family: Lexend, sans-serif; font-weight: 600; font-size: .875rem; color: var(--ink-600); padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: color .25s; }
  .lvf button[aria-pressed="true"] { color: #fff; }
  .lvf .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px; background: var(--navy-800); }
  .ngrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
  @media (min-width: 640px) { .ngrid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
  @media (min-width: 1024px) { .ngrid { grid-template-columns: repeat(5, 1fr); } }
  .ntile { display: block; }
  .ntile.off { display: none; }
  .ncard { position: relative; height: 100%; min-height: 122px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 16px; background: #fff; border: 1px solid #eef2f7; border-radius: 18px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(16,27,45,.04), 0 4px 16px rgba(16,27,45,.05); transition: transform .25s, box-shadow .25s; }
  .ntile:hover .ncard { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,27,45,.05), 0 18px 36px -14px rgba(16,27,45,.25); }
  .ncard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
  .ntile:hover .ncard::before { transform: scaleX(1); }
  .ncard::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 13%, transparent), transparent 70%); }
  .ntile:hover .ncard::after { opacity: 1; }
  .nic { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
  .ntile:hover .nic { transform: rotate(-8deg) scale(1.1); }
  .nchev { position: absolute; top: 16px; right: 16px; color: var(--ink-400); font-size: .85rem; transition: transform .25s, color .25s; }
  .ntile:hover .nchev { transform: translate(2px, -2px); color: var(--c); }
  .ntitle { position: relative; z-index: 1; font-family: Lexend, sans-serif; font-weight: 600; font-size: .98rem; line-height: 1.25; }
  .nmore { display: flex; justify-content: center; margin-top: 28px; }
  .link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: Lexend, sans-serif; font-weight: 600; color: var(--navy-700); }
  .link-arrow i { transition: transform .2s; } .link-arrow:hover i { transform: translateX(3px); }

  /* ---------- Fiches PDF ---------- */
  .fiches { padding: 0 0 80px; }
  .fbox { position: relative; overflow: hidden; display: grid; gap: 4px; background: var(--navy-800); color: #fff; border-radius: 28px; padding: 28px 20px 36px; }
  .fbox::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 60% at 20% 30%, rgba(59,130,196,.35), transparent 60%), radial-gradient(ellipse 50% 50% at 90% 100%, rgba(240,136,62,.14), transparent 60%); }
  @media (min-width: 900px) { .fbox { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding: 48px 56px; } }
  .fan { position: relative; height: 300px; }
  @media (min-width: 900px) { .fan { height: 430px; } }
  .sheet { position: absolute; left: 50%; top: 50%; width: 150px; height: 212px; margin: -106px 0 0 -75px; background: #fff; border-radius: 6px; overflow: hidden; transform-origin: 50% 100%; box-shadow: 0 24px 48px -16px rgba(0,0,0,.6); }
  @media (min-width: 900px) { .sheet { left: 48%; width: 200px; height: 283px; margin: -141px 0 0 -100px; } }
  .sheet img { display: block; width: 100%; height: auto; }
  .sheet .lines { display: block; padding: 4px 16px; }
  .sheet .lines i { display: block; height: 5px; border-radius: 3px; background: #e5e7eb; margin: 8px 0; }
  .sheet .lines i:nth-child(3n) { width: 64%; } .sheet .lines i:nth-child(4n+1) { width: 86%; }
  .sheet .tag { position: absolute; right: 10px; bottom: 10px; font-family: Lexend, sans-serif; font-size: .62rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #dcfce7; color: #15803d; }
  .fcopy { position: relative; z-index: 1; }
  .fcopy .kick { color: var(--coral-500); margin: 0 0 8px; }
  .fcopy > p { color: rgba(220,234,246,.85); font-size: 1.05rem; line-height: 1.6; margin: 14px 0 18px; max-width: 30rem; }
  .fpoints { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
  .fpoints li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.92); }
  .fpoints i { color: var(--coral-500); margin-top: 1px; }
  .btn-white { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy-900); font-family: Lexend, sans-serif; font-weight: 600; padding: 13px 22px; border-radius: 12px; transition: transform .2s, box-shadow .2s; }
  .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.5); }

  /* ---------- Aux parents ---------- */
  .parents { padding: 16px 0 88px; }
  .pgrid { display: grid; gap: 36px; align-items: center; }
  @media (min-width: 900px) { .pgrid { grid-template-columns: 1fr 1fr; gap: 56px; } }
  .pcopy .kick { color: var(--coral-600); margin: 0 0 8px; }
  .pcopy h2 { margin-bottom: 16px; }
  .pcopy > p { color: var(--ink-600); line-height: 1.65; margin: 0 0 14px; }
  .plist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
  .plist li { display: flex; gap: 12px; }
  .plist i { color: var(--navy-600); font-size: 1.15rem; margin-top: 1px; }
  .plist strong { display: block; font-family: Lexend, sans-serif; font-size: .9rem; }
  .plist span { font-size: .9rem; color: var(--ink-600); }
  .creator { position: relative; overflow: hidden; background: var(--navy-800); color: #fff; border-radius: 24px; padding: 32px; }
  .creator .mono { position: absolute; right: -18px; bottom: -44px; font-family: Lexend, sans-serif; font-weight: 800; font-size: 10rem; line-height: 1; color: rgba(255,255,255,.05); pointer-events: none; }
  .creator .cbadge { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: var(--navy-100); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .creator h3 { position: relative; font-size: 1.25rem; line-height: 1.35; margin: 0 0 14px; }
  .creator p { position: relative; color: rgba(220,234,246,.85); font-size: .92rem; line-height: 1.6; margin: 0 0 12px; }
  .chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .chips span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); font-size: .75rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
  /* Demande de cours particulier (2026-11-08) : une ligne discrète sous les puces. */
  .creator p.creator-cours { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
  .creator-cours a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
  .creator-cours a:hover { color: var(--coral-500, #F0883E); }

  .cta { background: var(--coral-500); color: #fff; text-align: center; padding: 64px 16px; }
  .cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 10px; font-weight: 700; }
  .cta p { margin: 0 auto 26px; max-width: 30rem; color: rgba(255,255,255,.92); font-size: 1.05rem; }
  .cta .levels { margin: 0 auto; }
  .cta .lvl { color: var(--navy-900); }

  /* ---- Le regard d'un prof : les erreurs vues en classe (2026-10-21) ----
     Cartes façon copie d'élève (lignes bleues, marge rouge), réponse au stylo
     barrée en rouge, puis le message réel de MathClair. */
  .errs { padding: 72px 0 80px; background: #fff; border-top: 1px solid var(--paper-100); border-bottom: 1px solid var(--paper-100); }
  .errs-head { max-width: 46rem; margin-bottom: 30px; }
  .errs-head .kick { color: var(--coral-600); margin: 0 0 8px; }
  .errs-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; font-weight: 700; margin: 0 0 12px; }
  .errs-lead { margin: 0; color: var(--ink-600); font-size: 1.05rem; line-height: 1.55; }
  /* Téléphone : une rangée à faire glisser (la carte suivante dépasse). */
  .errs-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
  .errs-grid::-webkit-scrollbar { display: none; }
  .errs-grid > .err { flex: 0 0 84%; scroll-snap-align: center; }
  @media (min-width: 720px) { .errs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; overflow: visible; margin: 0; padding: 0; } .errs-grid > .err { flex: none; } }
  @media (min-width: 1100px) { .errs-grid { grid-template-columns: repeat(4, 1fr); } }
  .err { position: relative; display: flex; flex-direction: column; padding: 18px 18px 0 48px; border-radius: 16px; border: 1px solid #E3E9F2; overflow: hidden;
         box-shadow: 0 18px 36px -26px rgba(16,27,45,.45);
         background-color: #fff;
         background-image: linear-gradient(90deg, transparent 33px, rgba(239,68,68,.5) 33px, rgba(239,68,68,.5) 35px, transparent 35px),
                           repeating-linear-gradient(180deg, transparent 0 27px, rgba(59,130,196,.15) 27px 28px); }
  .err-tag { align-self: flex-start; font-family: Lexend, sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); background: var(--navy-50); padding: 4px 9px; border-radius: 999px; }
  .err-q { margin: 12px 0 2px; font-family: Lexend, sans-serif; font-weight: 600; font-size: .98rem; line-height: 1.35; color: var(--ink-900); }
  .err-copy { position: relative; align-self: flex-start; margin: 0 0 16px; padding: 0 4px 6px; display: inline-flex; align-items: center; gap: 12px; }
  .hand { font-family: Caveat, cursive; font-weight: 700; font-size: 2.7rem; line-height: 1.05; color: #1d4ed8; }
  .hfr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; font-size: .62em; line-height: 1; }
  .hfr i { font-style: normal; }
  .hfr i:first-child { border-bottom: 2.5px solid currentColor; padding: 0 .2em .04em; }
  .err .katex { font-size: 1.06em; }
  .err-q .katex-display { margin: 0; }
  /* Marque du prof : soulignement rouge ondulé sous la réponse, croix rouge à côté. */
  .hand { position: relative; display: inline-block; }
  .err-strike { position: absolute; left: -5px; bottom: -6px; width: calc(100% + 10px); height: 9px; overflow: visible; }
  .err-strike path { fill: none; stroke: #dc2626; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .err-x { font-family: system-ui, sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1; color: #dc2626; transform: rotate(-6deg); }
  .err-fix { margin: auto -18px 0 -48px; padding: 14px 18px 16px; background: #FFFBEB; border-top: 1px solid #FDE68A; }
  .err-by { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-family: Lexend, sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #B45309; }
  .err-main { margin: 0; font-weight: 700; color: #7C2D12; font-size: .95rem; line-height: 1.4; }
  .err-sub { margin: 4px 0 0; color: var(--ink-600); font-size: .92rem; line-height: 1.4; }

  /* ---- Ordinateur : « Fonctionne aussi sur téléphone » + QR code (2026-10-21) ---- */
  .cta-phone { display: none; }
  @media (min-width: 900px) and (pointer: fine) {
    .cta-phone { display: flex; align-items: center; gap: 16px; max-width: 34rem; margin: 30px auto 0; padding: 14px 18px 14px 14px; background: #fff; color: var(--ink-900); border-radius: 16px; text-align: left; box-shadow: 0 14px 30px -16px rgba(0,0,0,.35); }
    .cta-phone img { flex: 0 0 auto; width: 92px; height: 92px; }
    .cta .cta-phone p { margin: 0; max-width: none; color: var(--ink-600); font-size: .95rem; line-height: 1.45; }
    .cta-phone b { color: var(--ink-900); font-family: Lexend, sans-serif; font-weight: 600; }
  }
  /* Carte d'installation (téléphone) avant l'appel final. */
  .iapp-wrap { padding: 0 16px 28px; }

