/* ECOM Profit — feuille de style. Thème sombre, accents or, titres en Space Grotesk. */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --bg: #07080c;
  --bg-2: #0a0c12;
  --surface: #0f121a;
  --surface-2: #141824;
  --surface-3: #1b2030;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --line-3: rgba(255, 255, 255, .2);
  --text: #eceef3;
  --text-2: #b4bac8;
  --muted: #7f879a;
  --gold: #f5b83d;
  --gold-2: #ffd98a;
  --gold-3: #e3960f;
  --gold-soft: rgba(245, 184, 61, .12);
  --gold-line: rgba(245, 184, 61, .35);
  --mint: #3ddc97;
  --mint-soft: rgba(61, 220, 151, .12);
  --rose: #ff6b81;
  --rose-soft: rgba(255, 107, 129, .12);
  --violet: #9d8cff;
  --violet-soft: rgba(157, 140, 255, .14);
  --sky: #5cc8ff;
  --sky-soft: rgba(92, 200, 255, .12);
  --grad-gold: linear-gradient(135deg, #ffe2a3 0%, #f5b83d 45%, #e3960f 100%);
  --r-xl: 28px; --r-lg: 22px; --r: 16px; --r-sm: 12px; --r-xs: 8px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-d: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --w: 1180px;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text-2); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-d); color: var(--text); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .55em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong, b { color: var(--text); font-weight: 700; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(245, 184, 61, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--gold); color: #0b0d12; padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 22px; }
.wrap-md { max-width: 960px; }
.wrap-sm { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tiny { font-size: .8rem; }
.gold { color: var(--gold); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-center { justify-content: center; }
.gold-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-family: var(--font-d); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--grad-gold); color: #120d02; box-shadow: 0 10px 30px -12px rgba(245, 184, 61, .7), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-gold:hover { color: #120d02; box-shadow: 0 14px 38px -12px rgba(245, 184, 61, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-line { background: rgba(255, 255, 255, .02); color: var(--text); border-color: var(--line-3); }
.btn-line:hover { color: #fff; border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .05); }
.btn-soft { background: var(--surface-3); color: var(--text); border-color: var(--line); }
.btn-soft:hover { color: #fff; background: #222840; }
.btn-ghost { background: transparent; color: var(--text-2); padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.btn-danger { background: rgba(255, 107, 129, .14); color: #ffc2cb; border-color: rgba(255, 107, 129, .4); }
.btn-danger:hover { background: rgba(255, 107, 129, .24); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.inline { display: inline; margin: 0; }

/* ---------- Petits éléments ---------- */
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-d); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.tag::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.5; border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255, 255, 255, .03); white-space: nowrap; }
.pill .i { width: 13px; height: 13px; }
.pill-gold { color: var(--gold-2); border-color: var(--gold-line); background: var(--gold-soft); }
.pill-mint { color: #8ff0c4; border-color: rgba(61, 220, 151, .35); background: var(--mint-soft); }
.pill-rose { color: #ffb3bf; border-color: rgba(255, 107, 129, .35); background: var(--rose-soft); }
.pill-violet { color: #c9c0ff; border-color: rgba(157, 140, 255, .35); background: var(--violet-soft); }
.divider { height: 1px; background: var(--line); border: 0; margin: 28px 0; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 60; background: rgba(7, 8, 12, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.topbar.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 8, 12, .88); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); flex: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-d); font-weight: 700; font-size: 1.18rem; letter-spacing: .01em; line-height: 1; }
.brand-name b { font-weight: 700; color: inherit; letter-spacing: .06em; }
.brand-name span { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 3px; }
.menu { display: flex; align-items: center; gap: 14px; flex: 1; justify-content: flex-end; }
.menu-links { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); margin-right: auto; margin-left: auto; }
.menu-links a { padding: 7px 15px; border-radius: 999px; color: var(--text-2); font-size: .92rem; font-weight: 600; }
.menu-links a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.menu-links a.is-active { color: #fff; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.menu-actions { display: flex; align-items: center; gap: 6px; }
.burger { display: none; }
.burger .i-close { display: none; }
.nav-open .burger .i-menu { display: none; }
.nav-open .burger .i-close { display: block; }

/* ---------- Messages (toasts) ---------- */
.toasts { position: fixed; top: 84px; right: 18px; z-index: 90; display: grid; gap: 10px; width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r-sm); background: rgba(20, 24, 36, .96); border: 1px solid var(--line-2); color: var(--text); box-shadow: var(--shadow); font-size: .93rem; font-weight: 600; animation: toast-in .35s ease both; }
.toast .i { margin-top: 2px; }
.toast-succes { border-color: rgba(61, 220, 151, .45); } .toast-succes .i { color: var(--mint); }
.toast-info { border-color: rgba(92, 200, 255, .4); } .toast-info .i { color: var(--sky); }
.toast-erreur { border-color: rgba(255, 107, 129, .5); } .toast-erreur .i { color: var(--rose); }
.toast.is-out { opacity: 0; transform: translateY(-6px); transition: opacity .5s, transform .5s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.alert { padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); margin-bottom: 18px; font-size: .94rem; }
.alert ul { margin: 0; padding-left: 1.1em; }
.alert-erreur { border-color: rgba(255, 107, 129, .45); background: rgba(255, 107, 129, .08); color: #ffd0d7; }
.alert-info { border-color: rgba(92, 200, 255, .35); background: rgba(92, 200, 255, .07); color: #cdeeff; }
.alert-gold { border-color: var(--gold-line); background: var(--gold-soft); color: #ffe7b8; }
.alert-mint { border-color: rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .08); color: #c7f7e1; }

/* ---------- Sections ---------- */
.sec { padding: 104px 0; position: relative; }
.sec-tight { padding: 72px 0; }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head p { font-size: 1.08rem; color: var(--text-2); margin: 0; }
.sec-head h2 { margin-bottom: .4em; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split-sticky { position: sticky; top: 110px; }

/* ---------- Accueil : hero ---------- */
.hero { position: relative; padding: 92px 0 36px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 820px; z-index: -2; background: radial-gradient(600px 340px at 50% 0%, rgba(245, 184, 61, .2), transparent 70%), radial-gradient(520px 380px at 88% 30%, rgba(157, 140, 255, .14), transparent 70%), radial-gradient(420px 320px at 8% 40%, rgba(92, 200, 255, .08), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 10%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 10%, #000 30%, transparent 75%); }
.hero-copy { text-align: center; max-width: 900px; margin: 0 auto; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: .86rem; font-weight: 600; color: var(--text-2); margin-bottom: 26px; }
.kicker b { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-2); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.display { font-size: clamp(2.5rem, 6.2vw, 4.9rem); line-height: 1; letter-spacing: -.035em; margin-bottom: 24px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 690px; margin: 0 auto 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .i { color: var(--mint); width: 16px; height: 16px; }

.hero-visual { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; margin: 64px auto 0; max-width: 1020px; }
.receipt { position: relative; padding: 26px 26px 22px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(27, 32, 48, .9), rgba(15, 18, 26, .95)); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.receipt::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(245, 184, 61, .55), transparent 40%, transparent 70%, rgba(157, 140, 255, .4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.receipt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.receipt-top span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(61, 220, 151, .15); }
.receipt-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.receipt-title h3 { margin: 0; font-size: 1.12rem; }
.receipt-title .num { font-size: 1.9rem; color: var(--text); font-weight: 700; }
.stack { display: block; width: 100%; height: 18px; border-radius: 6px; overflow: hidden; background: var(--surface-3); }
.stack rect { transition: x .5s ease, width .5s ease; }
.c-prod { fill: #5b6b8f; background: #5b6b8f; }
.c-liv { fill: var(--sky); background: var(--sky); }
.c-cot { fill: var(--violet); background: var(--violet); }
.c-frais { fill: #8b93a7; background: #8b93a7; }
.c-pub { fill: var(--rose); background: var(--rose); }
.c-tva { fill: #3d4559; background: #3d4559; }
.c-net { fill: var(--mint); background: var(--mint); }
.c-perte { fill: #ff3355; background: #ff3355; }
.legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 9px; color: var(--text-2); }
.legend li b { margin-left: auto; font-family: var(--font-d); font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.legend .net { grid-column: 1 / -1; padding-top: 11px; margin-top: 3px; border-top: 1px dashed var(--line-2); font-weight: 700; color: var(--text); }
.legend .net b { color: var(--mint); font-size: 1.15rem; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hero-kpis { display: grid; gap: 12px; }
.kpi { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.kpi-lbl { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.kpi-val { font-family: var(--font-d); font-size: 1.9rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-sub { font-size: .82rem; color: var(--text-2); }
.kpi-gold { background: linear-gradient(160deg, rgba(245, 184, 61, .16), rgba(245, 184, 61, .03)); border-color: var(--gold-line); }
.kpi-gold .kpi-val { color: var(--gold-2); }
.hero-note { grid-column: 1 / -1; text-align: center; font-size: .82rem; color: var(--muted); margin: 4px 0 0; }

/* ---------- Accueil : fuites ---------- */
.leaks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.leak { padding: 26px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.leak::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 107, 129, .16), transparent 70%); }
.leak-n { font-family: var(--font-d); font-size: .82rem; color: var(--rose); font-weight: 600; letter-spacing: .1em; }
.leak h3 { margin: 12px 0 8px; }
.leak p { margin: 0; font-size: .95rem; }
.leaks-foot { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; color: var(--text); font-weight: 600; }

/* ---------- Méthode (feuille de route) ---------- */
.road { list-style: none; margin: 0; padding: 0; position: relative; }
.road::before { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), rgba(245, 184, 61, .05)); }
.road li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding-bottom: 26px; }
.road li:last-child { padding-bottom: 0; }
.road-n { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-d); font-weight: 700; color: var(--gold-2); background: var(--bg-2); border: 1px solid var(--gold-line); position: relative; z-index: 1; }
.road-body { padding: 16px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.road-body:hover { border-color: var(--line-3); transform: translateX(3px); }
.road-body h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.road-body h3 .i { color: var(--gold); }
.road-body p { margin: 0 0 8px; font-size: .95rem; }
.road-meta { font-size: .8rem; color: var(--muted); font-weight: 600; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Simulateur ---------- */
.sim { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: start; }
.sim-form, .sim-out { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: 26px; }
.sim-out { position: sticky; top: 96px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-color: var(--line-2); }
.sim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.sim-grid .full { grid-column: 1 / -1; }
.sim-group { margin: 0 0 6px; padding: 0; border: 0; }
.sim-group + .sim-group { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.sim-group legend { font-family: var(--font-d); color: var(--text); font-weight: 600; font-size: 1rem; margin-bottom: 14px; padding: 0; display: flex; align-items: center; gap: 8px; }
.sim-group legend .i { color: var(--gold); }
.sim-more summary { cursor: pointer; color: var(--text); font-weight: 700; font-size: .92rem; list-style: none; display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.sim-more summary::-webkit-details-marker { display: none; }
.sim-more summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; color: var(--gold); }
.sim-more[open] summary::after { content: "−"; }
.sim-more .sim-grid { margin-top: 16px; }
.sim-big { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sim-big .num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--mint); line-height: 1; }
.sim-big.is-neg .num { color: var(--rose); }
.sim-verdict { margin: 12px 0 18px; }
.sim-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.sim-kpis .kpi { padding: 14px 16px; background: rgba(255, 255, 255, .02); }
.sim-kpis .kpi-val { font-size: 1.45rem; }
.sim-goal { margin-top: 16px; padding: 16px 18px; border-radius: var(--r); border: 1px dashed var(--gold-line); background: var(--gold-soft); font-size: .93rem; color: #ffe7b8; }
.sim-goal b { color: #fff; }
.sim-warn { margin-top: 12px; font-size: .85rem; color: #ffc9a1; display: flex; gap: 8px; }
.sim-warn[hidden] { display: none; }
.sim-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.sim-sticky { display: none; }
@media (max-width: 920px) {
  .sim-sticky { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; position: sticky; bottom: 12px; z-index: 5; margin: 22px -8px -8px; padding: 12px 16px; border-radius: 14px; background: rgba(20, 24, 36, .97); border: 1px solid var(--gold-line); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); font-size: .82rem; color: var(--text-2); }
  .sim-sticky > b { font-family: var(--font-d); font-size: 1.25rem; color: var(--mint); margin-right: auto; font-variant-numeric: tabular-nums; }
  .sim-sticky > b.is-neg { color: var(--rose); }
  .sim-sticky span b { color: var(--text); }
}

/* ---------- Formulaires ---------- */
.form .fld { margin-bottom: 18px; }
.lbl { display: block; font-size: .86rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.lbl .muted { font-weight: 500; }
.inp, .form select, .form textarea, .form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number], .form input[type=search] {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: #0b0e15; color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s;
}
.form textarea { resize: vertical; min-height: 140px; }
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.inp:focus, .form select:focus, .form textarea:focus, .form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 184, 61, .14); background: #0d1119; }
.form input::placeholder, .form textarea::placeholder { color: #5d6477; }
.hint { font-size: .82rem; color: var(--muted); margin: 7px 0 0; }
.affix { position: relative; display: flex; align-items: center; }
.affix .inp { padding-right: 44px; font-family: var(--font-d); font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.affix span { position: absolute; right: 14px; color: var(--muted); font-weight: 700; font-size: .9rem; pointer-events: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #0b0e15; border: 1px solid var(--line-2); gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--text-2); }
.seg input:checked + span { background: var(--surface-3); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .93rem; color: var(--text-2); cursor: pointer; line-height: 1.5; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; flex: none; accent-color: var(--gold); cursor: pointer; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-inline .inp, .form-inline select { width: auto; min-width: 230px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* ---------- Cartes et panneaux ---------- */
.panel { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.panel-2 { background: var(--surface-2); border-color: var(--line-2); }
.panel h2 { font-size: 1.22rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel h2 .i { color: var(--gold); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* ---------- Programme (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.mod { grid-column: span 2; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: border-color .2s, transform .2s, background .2s; position: relative; overflow: hidden; }
.mod:hover { color: var(--text-2); border-color: var(--line-3); transform: translateY(-2px); background: var(--surface-2); }
.mod-wide { grid-column: span 4; }
.mod-half { grid-column: span 3; }
.mod-feature { background: linear-gradient(150deg, rgba(245, 184, 61, .13), rgba(15, 18, 26, 1) 55%); border-color: var(--gold-line); }
.mod-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.mod-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-3); color: var(--gold); border: 1px solid var(--line-2); }
.mod-ico .i { width: 22px; height: 22px; }
.mod-n { font-family: var(--font-d); font-size: 2.4rem; font-weight: 700; color: rgba(255, 255, 255, .07); line-height: 1; letter-spacing: -.04em; }
.mod h3 { margin: 0 0 8px; font-size: 1.14rem; }
.mod p { font-size: .93rem; margin: 0 0 14px; }
.mod ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 6px; font-size: .86rem; }
.mod ul li { display: flex; gap: 8px; align-items: baseline; color: var(--text-2); }
.mod ul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-2px); }
.mod-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- Inclus ---------- */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feat { padding: 28px 26px; background: var(--bg-2); }
.feat .i { width: 26px; height: 26px; color: var(--gold); margin-bottom: 14px; }
.feat h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feat p { font-size: .93rem; margin: 0; }

/* ---------- Pour qui ---------- */
.fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fit-col { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.fit-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.fit-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.fit-col li { display: flex; gap: 12px; align-items: flex-start; }
.fit-col li .i { margin-top: 3px; }
.fit-yes h3 .i, .fit-yes li .i { color: var(--mint); }
.fit-no h3 .i, .fit-no li .i { color: var(--rose); }

/* ---------- Offre ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; padding: 34px; border-radius: var(--r-xl); background: radial-gradient(500px 240px at 20% 0%, rgba(245, 184, 61, .16), transparent 70%), var(--surface); border: 1px solid var(--gold-line); box-shadow: 0 40px 100px -50px rgba(245, 184, 61, .45); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.price { display: flex; align-items: flex-start; gap: 4px; font-family: var(--font-d); color: #fff; line-height: 1; margin-bottom: 8px; }
.price-int { font-size: 5rem; font-weight: 700; letter-spacing: -.05em; }
.price-dec { font-size: 1.6rem; font-weight: 700; margin-top: 10px; color: var(--gold-2); }
.price-note { color: var(--text-2); font-size: .93rem; margin-bottom: 24px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; color: var(--text); font-size: .96rem; }
.ticks .i { color: var(--gold); margin-top: 3px; }
.legal-note { font-size: .8rem; color: var(--muted); margin: 16px 0 0; }
.after { padding: 34px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.after ol { list-style: none; padding: 0; margin: 0; counter-reset: a; display: grid; gap: 22px; }
.after li { counter-increment: a; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.after li::before { content: counter(a); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); font-family: var(--font-d); font-weight: 700; color: var(--gold-2); }
.after h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.after p { margin: 0; font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; align-items: start; }
.qa { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.qa[open] { border-color: var(--line-3); }
.qa summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; color: var(--text); display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); margin-top: 5px; flex: none; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(225deg); margin-top: 9px; }
.qa div { padding: 0 20px 18px; font-size: .95rem; }
.qa div p:last-child { margin-bottom: 0; }

/* ---------- Appel final ---------- */
.final { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 64px 32px; text-align: center; background: radial-gradient(700px 300px at 50% 120%, rgba(245, 184, 61, .28), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--gold-line); }
.final h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 760px; margin-left: auto; margin-right: auto; }
.final p { max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }

/* ---------- Pied de page ---------- */
.foot { border-top: 1px solid var(--line); padding: 72px 0 34px; background: #05060a; margin-top: 0; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand p { font-size: .92rem; max-width: 330px; margin: 16px 0 0; }
.foot h3 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--text-2); font-size: .93rem; }
.foot ul a:hover { color: #fff; }
.foot-word { font-family: var(--font-d); font-weight: 700; font-size: clamp(3.2rem, 11vw, 9.5rem); letter-spacing: -.05em; line-height: .9; margin: 56px 0 26px; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09); user-select: none; white-space: nowrap; overflow: hidden; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* ---------- Pages intérieures ---------- */
.page-hero { padding: 76px 0 36px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: -40% 0 auto; height: 520px; z-index: -1; background: radial-gradient(520px 260px at 20% 30%, rgba(245, 184, 61, .12), transparent 70%), radial-gradient(420px 260px at 90% 10%, rgba(157, 140, 255, .1), transparent 70%); }
.page-hero .lead { font-size: 1.12rem; color: var(--text-2); max-width: 720px; margin: 0; }
.page-hero-compact { padding: 48px 0 20px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.meta li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--text-2); font-weight: 600; }
.meta .i { color: var(--gold); width: 16px; height: 16px; }

/* Programme détaillé */
.prog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.prog-index { position: sticky; top: 100px; }
.prog-index p { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.prog-index ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.prog-index ol a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: .88rem; color: var(--text-2); line-height: 1.35; }
.prog-index ol a span { font-family: var(--font-d); color: var(--muted); font-weight: 600; }
.prog-index ol a:hover { background: var(--surface); color: #fff; }
.pmod { padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; scroll-margin-top: 100px; }
.pmod-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 18px; }
.pmod-n { font-family: var(--font-d); font-size: 3rem; font-weight: 700; line-height: .9; letter-spacing: -.05em; }
.pmod-head h2 { font-size: 1.45rem; margin-bottom: 6px; }
.pmod-head p { margin: 0 0 10px; }
.lessons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lesson-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lesson-row:last-child { border-bottom: 0; padding-bottom: 0; }
.lesson-num { font-family: var(--font-d); font-weight: 600; color: var(--muted); font-size: .95rem; padding-top: 1px; }
.lesson-t { color: var(--text); font-weight: 700; display: block; }
a.lesson-t:hover { color: var(--gold-2); }
.lesson-r { font-size: .9rem; margin: 4px 0 0; color: var(--text-2); }
.lesson-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font-size: .84rem; color: var(--muted); }
.lesson-side .i { width: 15px; height: 15px; }

/* Offre (page) */
.offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; }
.facts { display: grid; gap: 14px; }
.fact { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.fact .mod-ico { width: 44px; height: 44px; }
.fact h3 { font-size: 1rem; margin: 2px 0 4px; }
.fact p { margin: 0; font-size: .93rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: start; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.aside-list li { display: flex; gap: 10px; font-size: .93rem; }
.aside-list .i { color: var(--gold); margin-top: 3px; }

/* ---------- Authentification (mise en page dédiée) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; background: radial-gradient(600px 400px at 0% 0%, rgba(245, 184, 61, .18), transparent 65%), radial-gradient(500px 400px at 100% 100%, rgba(157, 140, 255, .14), transparent 65%), var(--bg-2); border-right: 1px solid var(--line); }
.auth-side h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 480px; }
.auth-side .ticks li { color: var(--text-2); }
.auth-side .kpi { max-width: 360px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 430px; }
.auth-box h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-box .lead { color: var(--text-2); margin-bottom: 26px; }
.auth-alt { margin-top: 22px; font-size: .92rem; color: var(--muted); text-align: center; }
.auth-back { display: flex; width: max-content; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 30px; }
.auth-back:hover { color: #fff; }
.auth-foot { font-size: .78rem; color: var(--muted); }
.auth-foot a { color: var(--muted); }

/* ---------- Espace membre ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.ring { width: 96px; height: 96px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; }
.ring .ring-bg { stroke: var(--surface-3); }
.ring .ring-fg { stroke: var(--gold); stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ring-wrap { position: relative; display: inline-grid; place-items: center; }
.ring-wrap .num { position: absolute; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.prog-line { display: flex; align-items: center; gap: 22px; }
.status { display: flex; align-items: flex-start; gap: 10px; font-size: 1.02rem; color: var(--text); margin-bottom: 18px; }
.status .i { margin-top: 3px; }
.status-ok .i { color: var(--mint); }
.status-ko .i { color: var(--rose); }
.status-wait .i { color: var(--gold); }
.bar { width: 100%; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; appearance: none; -webkit-appearance: none; border: 0; display: block; }
.bar::-webkit-progress-bar { background: var(--surface-3); border-radius: 99px; }
.bar::-webkit-progress-value { background: var(--grad-gold); border-radius: 99px; }
.bar::-moz-progress-bar { background: var(--gold); border-radius: 99px; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }
.tbl { width: 100%; font-size: .9rem; }
.tbl th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; background: rgba(255, 255, 255, .02); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td a { font-weight: 700; }
.danger { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.danger summary { cursor: pointer; color: #ffb3bf; font-weight: 700; font-size: .93rem; }
.danger[open] summary { margin-bottom: 14px; }

/* ---------- Paiement ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 22px; align-items: start; }
.summary { position: sticky; top: 96px; }
.sum-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.sum-line:last-of-type { border-bottom: 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line-2); }
.sum-total .num { font-size: 2rem; color: #fff; font-weight: 700; }
.secure { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin-top: 18px; }
.secure .i { color: var(--mint); margin-top: 2px; }
.big-ico { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 22px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text-2); }
.big-ico .i { width: 34px; height: 34px; }
.big-ico-ok { background: var(--mint-soft); border-color: rgba(61, 220, 151, .4); color: var(--mint); }
.big-ico-gold { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.state { max-width: 620px; margin: 0 auto; text-align: center; padding: 56px 30px; }
.state .lead { color: var(--text-2); font-size: 1.08rem; }

/* ---------- Formation : sommaire ---------- */
.course-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.cmods { display: grid; gap: 14px; }
.cmod { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.cmod-head { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.cmod-head h2 { font-size: 1.12rem; margin: 0; }
.cmod-head .road-n { width: 52px; height: 52px; background: var(--surface-2); }
.cmod-list { list-style: none; margin: 0; padding: 6px 10px; }
.cmod-list a { display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 12px; color: var(--text-2); font-size: .94rem; }
.cmod-list a:hover { background: var(--surface-2); color: #fff; }
.cmod-list .st { display: grid; place-items: center; color: var(--muted); }
.cmod-list .st .i { width: 18px; height: 18px; }
.cmod-list .done .st { color: var(--mint); }
.cmod-list .done .t { color: var(--text); }
.cmod-list .locked { opacity: .62; }
.cmod-list .n { font-family: var(--font-d); color: var(--muted); font-weight: 600; font-size: .88rem; }
.cmod-list .d { font-size: .8rem; color: var(--muted); }

/* ---------- Leçon (mise en page de lecture) ---------- */
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; background: transparent; }
.readbar i { display: block; height: 100%; width: 100%; background: var(--grad-gold); transform-origin: 0 50%; transform: scaleX(0); }
.lecture { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.toc { position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-2); padding: 22px 16px 40px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.toc-back { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-2); font-weight: 700; margin: 0 6px 16px; }
.toc-prog { margin: 0 6px 20px; font-size: .8rem; color: var(--muted); }
.toc-prog .bar { margin-bottom: 7px; height: 6px; }
.toc details { margin-bottom: 4px; }
.toc summary { cursor: pointer; list-style: none; padding: 9px 8px; border-radius: 10px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; font-size: .86rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary span { font-family: var(--font-d); color: var(--gold); }
.toc summary:hover { background: var(--surface); }
.toc ul { list-style: none; margin: 2px 0 8px; padding: 0 0 0 10px; }
.toc li a { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 7px 8px; border-radius: 9px; font-size: .84rem; color: var(--text-2); line-height: 1.4; }
.toc li a:hover { background: var(--surface); color: #fff; }
.toc li .st { color: var(--muted); padding-top: 1px; }
.toc li .st .i { width: 14px; height: 14px; }
.toc li.done .st { color: var(--mint); }
.toc li.now a { background: var(--gold-soft); color: #fff; box-shadow: inset 2px 0 0 var(--gold); }
.reader { padding: 44px 48px 90px; min-width: 0; }
.reader-in { max-width: 740px; margin: 0 auto; }
.toc-toggle { display: none; margin-bottom: 18px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.crumb a { color: var(--text-2); }
.lesson-h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 16px; }
.lesson-no { display: block; font-family: var(--font-d); font-size: .95rem; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }

.prose { font-size: 1.06rem; line-height: 1.78; color: #cdd2dd; }
.prose > * + * { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.55rem; margin: 2em 0 .7em; padding-top: .2em; }
.prose h3 { font-size: 1.18rem; margin: 1.6em 0 .6em; }
.prose a { color: var(--gold-2); text-decoration: underline; text-decoration-color: rgba(255, 217, 138, .35); text-underline-offset: 3px; }
.prose a:hover { color: #fff; text-decoration-color: #fff; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold); }
.prose .intro { font-size: 1.2rem; line-height: 1.7; color: var(--text); padding-bottom: 1.4em; margin-bottom: 1.6em; border-bottom: 1px solid var(--line); }
.prose .steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.prose .steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin: 0; }
.prose .steps li::before { content: counter(s); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-2); font-family: var(--font-d); font-weight: 700; font-size: .95rem; }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); }
.prose table { font-size: .95rem; line-height: 1.5; min-width: 480px; }
.prose th { text-align: left; padding: 12px 16px; background: var(--surface-2); color: var(--text); font-weight: 700; border-bottom: 1px solid var(--line-2); }
.prose td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:last-child, .prose th:last-child { font-variant-numeric: tabular-nums; }
.callout { position: relative; margin: 0 0 1.4em; padding: 18px 20px 18px 56px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font-size: 1rem; line-height: 1.7; }
.callout p:last-child { margin-bottom: 0; }
.callout::before { content: ""; position: absolute; left: 18px; top: 19px; width: 24px; height: 24px; border-radius: 8px; background-repeat: no-repeat; background-position: center; background-size: 16px 16px; }
.callout-tip { border-color: rgba(245, 184, 61, .35); background: linear-gradient(90deg, rgba(245, 184, 61, .08), rgba(245, 184, 61, .02)); }
.callout-tip::before { background-color: var(--gold-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5b83d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.callout-warn { border-color: rgba(255, 107, 129, .38); background: linear-gradient(90deg, rgba(255, 107, 129, .08), rgba(255, 107, 129, .02)); }
.callout-warn::before { background-color: var(--rose-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b81' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l9 16H3z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E"); }
.callout-info { border-color: rgba(92, 200, 255, .32); background: linear-gradient(90deg, rgba(92, 200, 255, .07), rgba(92, 200, 255, .015)); }
.callout-info::before { background-color: var(--sky-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235cc8ff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.callout-example { border-color: rgba(61, 220, 151, .32); background: linear-gradient(90deg, rgba(61, 220, 151, .07), rgba(61, 220, 151, .015)); }
.callout-example::before { background-color: var(--mint-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M8 7h8M8.5 11h.01M12 11h.01M15.5 11h.01M8.5 15h.01M12 15h.01M15.5 15h.01'/%3E%3C/svg%3E"); }
.callout-law { border-color: rgba(157, 140, 255, .38); background: linear-gradient(90deg, rgba(157, 140, 255, .09), rgba(157, 140, 255, .02)); }
.callout-law::before { background-color: var(--violet-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239d8cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M7 20h10M5 7h14M5 7l-3 6a3 3 0 0 0 6 0zM19 7l-3 6a3 3 0 0 0 6 0z'/%3E%3C/svg%3E"); }
.formula { font-family: var(--font-d); font-size: 1.06rem; font-weight: 600; color: var(--text); padding: 16px 20px; border-radius: var(--r); background: repeating-linear-gradient(135deg, rgba(245, 184, 61, .05) 0 10px, transparent 10px 20px), var(--surface-2); border: 1px dashed var(--gold-line); text-align: center; line-height: 1.5; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 1.4em; }
.figures > div { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); display: grid; gap: 2px; }
.figures b { font-family: var(--font-d); font-size: 1.6rem; color: var(--gold-2); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.2; }
.figures span { font-size: .82rem; color: var(--muted); font-weight: 600; line-height: 1.4; }
.template { margin: 0 0 1.4em; padding: 20px 22px; border-radius: var(--r); background: #0b0e15; border: 1px solid var(--line-2); font-size: .98rem; position: relative; }
.template p:last-child { margin-bottom: 0; }
.template-title { font-family: var(--font-d); font-size: .8rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 12px !important; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.copy-btn { font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.copy-btn:hover { color: #fff; border-color: var(--line-3); }
.recap { margin: 2.2em 0 0; padding: 22px 24px; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(245, 184, 61, .12), rgba(245, 184, 61, .02) 60%); border: 1px solid var(--gold-line); }
.recap-title { font-family: var(--font-d); font-weight: 700; color: var(--gold-2); font-size: 1.05rem; margin: 0 0 10px !important; }
.recap ul { margin: 0; }
.recap li { color: var(--text); }

.todo { margin-top: 36px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); }
.todo h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.todo h2 .i { color: var(--mint); }
.todo ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.todo label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s; color: var(--text); font-size: .96rem; }
.todo label:hover { background: var(--surface-2); }
.todo input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--mint); flex: none; cursor: pointer; }
.todo input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.todo-count { font-size: .84rem; color: var(--muted); }
.res { margin-top: 18px; padding: 22px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.res h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.res h2 .i { color: var(--gold); }
.res ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.res a { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-weight: 700; }
.res a small { color: var(--muted); font-weight: 500; }
.lesson-end { margin-top: 30px; display: grid; gap: 16px; }
.pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pn a { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 700; line-height: 1.35; font-size: .95rem; }
.pn a:hover { border-color: var(--line-3); color: #fff; }
.pn a small { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 6px; }
.pn .next { text-align: right; grid-column: 2; }
.pn .next small { justify-content: flex-end; }
.done-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: var(--r); border: 1px dashed var(--line-2); }

/* Verrou */
.lock-card { max-width: 640px; margin: 0 auto; text-align: center; padding: 44px 34px; border-radius: var(--r-xl); background: radial-gradient(500px 220px at 50% 0%, rgba(245, 184, 61, .14), transparent 70%), var(--surface); border: 1px solid var(--gold-line); }

/* ---------- Pages légales ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.3rem; margin: 2.2em 0 .7em; scroll-margin-top: 100px; }
.legal h3 { font-size: 1.05rem; margin: 1.5em 0 .5em; }
.legal p, .legal li { font-size: .98rem; line-height: 1.75; }
.legal table { font-size: .92rem; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: table; }
.legal th { text-align: left; background: var(--surface-2); color: var(--text); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.legal td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal .box { padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); margin: 0 0 1.4em; }
.legal .box p:last-child { margin-bottom: 0; }
.legal .box-gold { border-color: var(--gold-line); background: var(--gold-soft); }
.legal .box-violet { border-color: rgba(157, 140, 255, .38); background: var(--violet-soft); }
.legal dl { display: grid; gap: 0; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.legal dl div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.legal dl div:last-child { border-bottom: 0; }
.legal dt { color: var(--muted); font-weight: 700; font-size: .9rem; }
.legal dd { margin: 0; color: var(--text); }
.legal-toc { padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-bottom: 30px; }
.legal-toc p { margin: 0 0 10px; font-weight: 700; color: var(--text); }
.legal-toc ol { margin: 0; columns: 2; column-gap: 30px; font-size: .92rem; }
.legal-toc li { break-inside: avoid; margin-bottom: 4px; }
.legal-date { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.legal code { font-size: .88em; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--gold-2); }

/* ---------- Administration ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.admin-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-weight: 700; font-size: .88rem; }
.admin-tabs a:hover { color: #fff; border-color: var(--line-3); }
.admin-tabs a.is-active { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-2); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis .kpi-val { font-size: 1.6rem; }
.dl { display: grid; margin: 0; }
.dl div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.dl div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); font-weight: 700; }
.dl dd { margin: 0; color: var(--text); }
.msg { padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.msg-done { opacity: .55; }
.msg-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.msg-body { white-space: pre-wrap; margin: 0; color: var(--text); font-size: .95rem; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--text-2); font-weight: 700; font-size: .88rem; }
.pager a.is-active { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-2); }

/* ---------- Erreurs ---------- */
.err { padding: 110px 0 120px; text-align: center; }
.err-code { font-family: var(--font-d); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; letter-spacing: -.06em; margin-bottom: 10px; }
.err pre { text-align: left; background: var(--surface); border: 1px solid var(--line); padding: 14px; border-radius: var(--r-sm); overflow: auto; font-size: .82rem; color: #ffb3bf; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Adaptatif ---------- */
@media (max-width: 1080px) {
  .menu-links a { padding: 7px 11px; }
  .leaks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split-sticky { position: static; }
  .lecture { grid-template-columns: 260px minmax(0, 1fr); }
  .reader { padding: 36px 32px 80px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .burger { display: inline-flex; }
  .menu { position: fixed; inset: 72px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 22px 26px; background: #07080c; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-open .menu { display: flex; }
  .nav-open .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: #07080c; border-bottom-color: var(--line); }
  .nav-open { overflow: hidden; }
  .menu-links { flex-direction: column; align-items: stretch; border-radius: var(--r); margin: 0; padding: 6px; }
  .menu-links a { padding: 12px 14px; border-radius: 12px; }
  .menu-actions { flex-wrap: wrap; }
  .menu-actions .btn { flex: 1; }
  .hero-visual, .sim, .offer, .offer-grid, .contact, .checkout, .dash, .fit, .faq { grid-template-columns: minmax(0, 1fr); }
  .sim-out, .summary { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod, .mod-wide, .mod-half { grid-column: span 1; }
  .mod-wide { grid-column: 1 / -1; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog { grid-template-columns: minmax(0, 1fr); }
  .prog-index { display: none; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .lecture { grid-template-columns: minmax(0, 1fr); }
  .toc { position: fixed; top: 72px; left: 0; bottom: 0; width: min(340px, 88vw); height: auto; z-index: 70; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 30px 0 60px rgba(0, 0, 0, .6); }
  .toc.is-open { transform: none; }
  .toc-toggle { display: inline-flex; }
  .course-top { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .display { letter-spacing: -.03em; }
  .hero-cta .btn { width: 100%; }
  .receipt { padding: 20px 18px; }
  .legend { grid-template-columns: minmax(0, 1fr); }
  .leaks, .bento, .feats, .grid-2, .sim-grid, .sim-kpis { grid-template-columns: minmax(0, 1fr); }
  .mod-wide { grid-column: auto; }
  .price-card, .after, .panel, .sim-form, .sim-out, .pmod { padding: 22px 18px; }
  .price-int { font-size: 4.2rem; }
  .final { padding: 48px 20px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lesson-row { grid-template-columns: 34px minmax(0, 1fr); }
  .lesson-side { grid-column: 2; justify-content: flex-start; }
  .reader { padding: 26px 16px 70px; }
  .prose { font-size: 1.02rem; }
  .prose .steps li { padding: 14px 14px 14px 56px; }
  .callout { padding: 16px 16px 16px 52px; }
  .pn { grid-template-columns: minmax(0, 1fr); }
  .pn .next { grid-column: auto; }
  .legal dl div, .dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal-toc ol { columns: 1; }
  .cmod-head { grid-template-columns: 44px minmax(0, 1fr); }
  .cmod-head .pill { grid-column: 2; justify-self: start; }
  .cmod-list a { grid-template-columns: 22px 30px minmax(0, 1fr); }
  .cmod-list .d { display: none; }
  .toasts { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; }
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .prog-line { flex-direction: column; align-items: flex-start; }
}
