/* Layout: "studio néon" — fond nuit bleutée, une seule lueur bleue (le néon du studio), typographie display serrée, contenus en colonnes sobres. */
:root {
  --bg: #0A0C16;
  --bg-2: #0F1222;
  --surface: #141831;
  --surface-2: #1B2040;
  --line: #262C4E;
  --fg: #ECEEF9;
  --muted: #9CA3C6;
  --neon: #7D95FF;
  --neon-soft: rgba(125,149,255,.16);
  --neon-glow: 0 0 18px rgba(125,149,255,.55), 0 0 42px rgba(125,149,255,.25);
  --ice: #DDE4FF;
  --ok: #43D694; --ok-soft: rgba(67,214,148,.14);
  --warn: #F4B64E; --warn-soft: rgba(244,182,78,.14);
  --no: #FF6F7E; --no-soft: rgba(255,111,126,.14);
  --shadow: 0 20px 50px -20px rgba(0,0,0,.6);

  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 14px;
  --wrap: 1120px;
  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F2F3FA; --bg-2: #E9EBF6; --surface: #FFFFFF; --surface-2: #F4F5FC; --line: #D9DCEC;
    --fg: #11142A; --muted: #575E82; --neon: #3B55E6; --neon-soft: rgba(59,85,230,.10);
    --neon-glow: 0 0 0 rgba(0,0,0,0); --ice: #3B55E6;
    --ok: #13895A; --ok-soft: rgba(19,137,90,.10); --warn: #A26600; --warn-soft: rgba(162,102,0,.10);
    --no: #C8323F; --no-soft: rgba(200,50,63,.10); --shadow: 0 18px 40px -22px rgba(30,40,90,.35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F2F3FA; --bg-2: #E9EBF6; --surface: #FFFFFF; --surface-2: #F4F5FC; --line: #D9DCEC;
  --fg: #11142A; --muted: #575E82; --neon: #3B55E6; --neon-soft: rgba(59,85,230,.10);
  --neon-glow: 0 0 0 rgba(0,0,0,0); --ice: #3B55E6;
  --ok: #13895A; --ok-soft: rgba(19,137,90,.10); --warn: #A26600; --warn-soft: rgba(162,102,0,.10);
  --no: #C8323F; --no-soft: rgba(200,50,63,.10); --shadow: 0 18px 40px -22px rgba(30,40,90,.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--neon);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; box-shadow: var(--neon-glow); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font: 800 22px/1 var(--f-display); letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; color: var(--ice); filter: drop-shadow(0 0 6px var(--neon)); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); background: var(--surface); text-decoration: none; }
.nav a.btn:not(.ghost), .nav a.btn:not(.ghost):hover { color: #0A0C16; background: var(--neon); }
:root[data-theme="light"] .nav a.btn:not(.ghost) { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .nav a.btn:not(.ghost) { color: #fff; } }
.nav a.btn.ghost { color: var(--fg); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .25s, opacity .25s; }
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav .btn { margin-top: 6px; }
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--neon);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 15px/1 var(--f-body); padding: 14px 20px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; background: var(--b); color: #0A0C16;
  transition: transform .2s, box-shadow .25s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--neon); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--neon); box-shadow: none; }
.btn.small { padding: 10px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
:root[data-theme="light"] .btn:not(.ghost) { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn:not(.ghost) { color: #fff; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 64px 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; max-width: 100%;
  background: radial-gradient(circle, var(--neon-soft), transparent 65%); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 800; letter-spacing: -.045em; margin-block: 18px 22px; }
.hero h1 .neon-word { color: var(--ice); text-shadow: var(--neon-glow); }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font: 500 13px/1.3 var(--f-mono); color: var(--muted); }
.hero-meta b { color: var(--fg); font-weight: 700; }

.portrait { position: relative; justify-self: center; width: min(360px, 100%); }
.portrait-frame {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 9/16; max-width: 100%;
  border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 0 1px var(--neon-soft), 0 0 60px -10px var(--neon-soft);
  background: var(--surface);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.rec { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,12,22,.7); color: #fff; font: 600 12px/1 var(--f-mono); padding: 8px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF4D5E; animation: blink 1.4s infinite; }
.sub-bubble { position: absolute; left: 14px; right: 14px; bottom: 16px; background: rgba(10,12,22,.78); color: #fff; padding: 12px 14px;
  border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.35; text-align: center; backdrop-filter: blur(6px); min-height: 3.2em; }
.sub-bubble .caret { display: inline-block; width: 2px; height: 1em; background: #fff; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.chip-float { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  font: 600 12px/1.2 var(--f-mono); box-shadow: var(--shadow); color: var(--fg); }
.chip-float small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 3px; }
.chip-float.a { top: 18%; left: -18%; animation: float 6s ease-in-out infinite; }
.chip-float.b { bottom: 24%; right: -14%; animation: float 7s ease-in-out -2s infinite; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { width: min(300px, 100%); }
  .chip-float.a { left: -6%; } .chip-float.b { right: -6%; }
}
@media (max-width: 420px) { .chip-float { display: none; } }

/* entrance */
.rise { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .05s } .d2 { animation-delay: .15s } .d3 { animation-delay: .25s } .d4 { animation-delay: .35s } .d5 { animation-delay: .5s }
@keyframes rise { from { transform: translateY(18px); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes flicker { 0%, 100% { opacity: 1 } 92% { opacity: 1 } 93% { opacity: .35 } 94% { opacity: 1 } 96% { opacity: .5 } 97% { opacity: 1 } }
.flicker { animation: flicker 5s infinite; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee-track { display: flex; gap: 48px; width: max-content; padding-block: 18px; animation: scroll 38s linear infinite; }
.marquee-track span { font: 700 20px/1 var(--f-display); color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; color: var(--neon); font-size: 12px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.problem-grid > div { background: var(--bg); padding: 28px; display: grid; gap: 10px; align-content: start; }
.section.alt .problem-grid > div { background: var(--bg-2); }
.problem-grid .big { font: 800 44px/1 var(--f-display); color: var(--ice); text-shadow: var(--neon-glow); }
.problem-grid h3 { font-size: 20px; }
.problem-grid p { color: var(--muted); }
@media (max-width: 760px) { .problem-grid { grid-template-columns: 1fr; } }

/* Modules grid (landing + dashboard) */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.mod-card {
  position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); color: var(--fg); overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.mod-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--neon-soft), transparent 70%);
}
.mod-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--neon) 55%, var(--line)); text-decoration: none; }
.mod-card:hover::before { opacity: 1; }
.mod-card .n { font: 600 12px/1 var(--f-mono); color: var(--neon); letter-spacing: .1em; }
.mod-card h3 { font-size: 20px; font-weight: 700; }
.mod-card p { color: var(--muted); font-size: 15px; }
.mod-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font: 500 12px/1 var(--f-mono); color: var(--muted); }
.lock { display: inline-flex; align-items: center; gap: 6px; }
.lock svg { width: 14px; height: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font: 600 11px/1 var(--f-mono); }
.status.done { background: var(--ok-soft); color: var(--ok); }
.status.todo { background: var(--neon-soft); color: var(--neon); }

/* Steps (comment ça marche) */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.how > div { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); position: relative; }
.how > div::before { counter-increment: s; content: "0" counter(s); font: 600 13px/1 var(--f-mono); color: var(--neon); }
.how > div::after { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--neon); box-shadow: var(--neon-glow); }
.how h3 { font-size: 22px; }
.how p { color: var(--muted); }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* Access block */
.access {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 40px; border-radius: 22px;
  background: linear-gradient(140deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.access h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.access p { color: var(--muted); }
.access-ways { display: grid; gap: 12px; }
.way { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.way .k { font: 800 22px/1 var(--f-display); color: var(--ice); text-shadow: var(--neon-glow); min-width: 64px; text-align: center; padding: 12px 8px; border: 1px dashed var(--neon); border-radius: 10px; }
.way b { display: block; }
.way span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .access { grid-template-columns: 1fr; padding: 26px 20px; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--f-mono); color: var(--neon); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding-block: 40px; position: relative; overflow: hidden; }
.login-page::before { content: ""; position: absolute; width: 700px; height: 700px; max-width: 140%; border-radius: 50%; background: radial-gradient(circle, var(--neon-soft), transparent 60%); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.login-card { position: relative; width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px 28px; box-shadow: var(--shadow); display: grid; gap: 18px; text-align: center; }
.login-card .crown-big { width: 64px; height: 64px; margin: 0 auto; color: var(--ice); filter: drop-shadow(0 0 10px var(--neon)); }
.login-card h1 { font-size: 30px; font-weight: 800; }
.field { display: grid; gap: 8px; text-align: left; }
.field label { font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.input-row { position: relative; }
.input {
  width: 100%; font: 600 18px/1 var(--f-mono); letter-spacing: .12em; padding: 16px 52px 16px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 4px var(--neon-soft); }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; }
.eye svg { width: 20px; height: 20px; }
.form-msg { min-height: 1.4em; font-size: 14px; font-weight: 600; }
.form-msg.err { color: var(--no); }
.form-msg.ok { color: var(--ok); }
.shake { animation: shake .45s; }
@keyframes shake { 20%,60% { transform: translateX(-8px) } 40%,80% { transform: translateX(8px) } }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); justify-content: center; }
.unlocking .crown-big { animation: unlock .9s ease forwards; }
@keyframes unlock { 40% { transform: scale(1.25) rotate(-6deg); filter: drop-shadow(0 0 24px var(--neon)); } 100% { transform: scale(1); } }

/* ---------- App (formation) ---------- */
.app-hero { padding-block: 44px 28px; }
.app-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.app-hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; margin-block: 12px; }
.app-hero p { color: var(--muted); max-width: 56ch; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--neon); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 0 6px var(--neon)); }
.ring .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .val b { font: 800 34px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.ring .val span { font: 500 10px/1.4 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 640px) { .app-hero .wrap { grid-template-columns: 1fr; } .ring { width: 120px; height: 120px; } }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.quick a { display: grid; gap: 6px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--fg); transition: border-color .2s, transform .2s; }
.quick a:hover { border-color: var(--neon); transform: translateY(-2px); text-decoration: none; }
.quick b { font: 700 18px/1.2 var(--f-display); }
.quick span { color: var(--muted); font-size: 14px; }
.quick .primary { background: var(--neon); color: #0A0C16; border-color: var(--neon); }
.quick .primary span { color: inherit; opacity: .78; }
:root[data-theme="light"] .quick .primary { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .quick .primary { color: #fff; } }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr; } }
.block-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.block-title h2 { font-size: 26px; }

/* Module page */
.mod-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-block: 40px 80px; align-items: start; }
.mod-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 2px; }
.mod-side .label { font: 600 11px/1 var(--f-mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.mod-side a { display: flex; gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.mod-side a:hover { background: var(--surface); color: var(--fg); text-decoration: none; }
.mod-side a.active { background: var(--neon-soft); color: var(--fg); }
.mod-side a i { font: 500 11px/1 var(--f-mono); font-style: normal; color: var(--neon); min-width: 18px; }
.mod-side a.done::after { content: "✓"; margin-left: auto; color: var(--ok); }
@media (max-width: 900px) { .mod-layout { grid-template-columns: 1fr; gap: 24px; } .mod-side { display: none; } }

.mod-head { display: grid; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.mod-head h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.mod-head p { color: var(--muted); font-size: 19px; max-width: 60ch; }
.mod-head .meta { display: flex; gap: 14px; flex-wrap: wrap; font: 500 13px/1 var(--f-mono); color: var(--muted); }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 36px; }
.tool { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; align-content: start; }
.tool b { font: 700 17px/1.2 var(--f-display); }
.tool p { color: var(--muted); font-size: 14px; }
.tool small { font: 500 11px/1 var(--f-mono); color: var(--neon); text-transform: uppercase; letter-spacing: .08em; }

.prose { max-width: 70ch; }
.prose h2 { font-size: 26px; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding: 0; margin: 0 0 18px; list-style: none; display: grid; gap: 10px; }
.prose .checklist li, .prose .nolist li { padding-left: 30px; position: relative; }
.prose .checklist li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--neon); box-shadow: var(--neon-glow); }
.prose .nolist li::before { content: "✕"; position: absolute; left: 4px; top: 0; color: var(--no); font-weight: 800; }
.prose .steps { counter-reset: st; }
.prose .steps li { counter-increment: st; padding-left: 44px; position: relative; min-height: 30px; }
.prose .steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--f-mono); color: var(--neon); border: 1px solid var(--neon); }
.callout { padding: 16px 18px; border-radius: 12px; background: var(--neon-soft); border: 1px solid color-mix(in srgb, var(--neon) 35%, transparent); margin: 18px 0; }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.callout.warn strong { color: var(--warn); }
.exo { padding: 18px; border-radius: 12px; border: 1px dashed var(--neon); background: var(--surface); }
.exo::before { content: "EXERCICE"; display: block; font: 600 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--neon); margin-bottom: 8px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.compare-col { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.compare-col .tag { display: inline-block; font: 600 11px/1 var(--f-mono); padding: 5px 8px; border-radius: 6px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .08em; }
.compare-col.bad .tag { background: var(--no-soft); color: var(--no); }
.compare-col.good .tag { background: var(--ok-soft); color: var(--ok); }
.compare-col p { margin: 0; }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } }

.mod-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.done-btn.is-done { background: var(--ok); }

/* Prompt cards */
.prompt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .prompt-list { grid-template-columns: 1fr; } }
.prompt { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.prompt header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.prompt h3 { font-size: 17px; }
.prompt .cat { font: 600 11px/1 var(--f-mono); color: var(--neon); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.prompt pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 13px/1.6 var(--f-mono); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 220px; overflow: auto; }
.copy { justify-self: start; display: inline-flex; gap: 8px; align-items: center; font: 600 13px/1 var(--f-body); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; transition: border-color .2s, background .2s; }
.copy:hover { border-color: var(--neon); }
.copy.copied { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.copy svg { width: 15px; height: 15px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill { font: 600 14px/1 var(--f-body); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; transition: .2s; }
.pill:hover { color: var(--fg); border-color: var(--neon); }
.pill[aria-pressed="true"] { background: var(--neon); color: #0A0C16; border-color: var(--neon); }
:root[data-theme="light"] .pill[aria-pressed="true"] { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pill[aria-pressed="true"] { color: #fff; } }

/* Finder */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .finder { grid-template-columns: 1fr; } }
.q-label { font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 26px; }
.need { text-align: left; font: 700 15px/1.25 var(--f-body); padding: 16px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; transition: .2s; }
.need:hover { border-color: var(--neon); transform: translateY(-1px); }
.need[aria-pressed="true"] { border-color: var(--neon); background: var(--neon-soft); box-shadow: inset 0 0 0 1px var(--neon); }
.budget { display: inline-flex; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); gap: 4px; }
.budget button { font: 600 14px/1 var(--f-body); border: 0; padding: 10px 14px; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.budget button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }

.result { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 18px; min-height: 360px; align-content: start; }
.result.swap { animation: rise .45s cubic-bezier(.2,.7,.2,1); }
.verdict { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font: 700 13px/1 var(--f-mono); padding: 8px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.verdict.oui { background: var(--ok-soft); color: var(--ok); }
.verdict.prudence { background: var(--warn-soft); color: var(--warn); }
.verdict.non { background: var(--no-soft); color: var(--no); }
.result h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.result .pick { padding: 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 4px; }
.result .pick small { font: 600 11px/1 var(--f-mono); color: var(--neon); text-transform: uppercase; letter-spacing: .1em; }
.result .pick b { font: 800 24px/1.15 var(--f-display); }
.result .pick span { color: var(--muted); }
.result .alt { color: var(--muted); font-size: 15px; }
.result .alt b { color: var(--fg); }
.result-empty { color: var(--muted); display: grid; gap: 10px; place-content: center; text-align: center; min-height: 300px; }
.result-empty svg { width: 54px; height: 54px; margin: 0 auto; color: var(--neon); opacity: .7; }

.page-head { padding-block: 44px 28px; }
.page-head h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin-block: 12px; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 60ch; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; transition: .3s; pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
}

/* ---------- Accès découverte & paywall ---------- */
.tier-banner { background: linear-gradient(90deg, var(--neon-soft), transparent); border-bottom: 1px solid var(--line); }
.tier-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 10px; font-size: 14px; color: var(--muted); }
.tier-banner b { color: var(--fg); }
.status.locked { background: var(--surface-2); color: var(--muted); }
.status svg, .cat svg, .pill svg, .btn svg.inline { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
.pill svg { width: 13px; height: 13px; }
.prompt .cat { display: inline-flex; align-items: center; }
.mod-card.is-locked h3, .mod-card.is-locked p { opacity: .62; }
.mod-card.is-locked:hover h3, .mod-card.is-locked:hover p { opacity: .85; }
.mod-card.is-free { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.mod-side a { align-items: center; }
.side-lock { margin-left: auto; display: inline-flex; color: var(--muted); }
.side-lock svg { width: 13px; height: 13px; }
.mod-side a.is-locked { opacity: .7; }
.prompt.locked pre { filter: blur(4px); user-select: none; pointer-events: none; }
.prompt.locked .copy { border-color: var(--neon); color: var(--neon); }

.locked-wrap { position: relative; }
.locked-preview { filter: blur(6px); opacity: .45; pointer-events: none; user-select: none; max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.locked-card, .pw-card .pw-body { display: grid; gap: 14px; text-align: center; }
.locked-card { position: relative; margin: -260px auto 0; width: min(500px, 100%); padding: 30px 24px; border-radius: 22px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--neon) 40%, var(--line)); box-shadow: var(--shadow), 0 0 60px -20px var(--neon); }
.locked-card h2, .pw-card h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.pw-crown { width: 56px; height: 56px; margin: 0 auto; color: var(--ice); filter: drop-shadow(0 0 10px var(--neon)); animation: float 4s ease-in-out infinite; }
.pw-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 10px; text-align: left; }
.pw-list li { display: flex; gap: 10px; align-items: flex-start; }
.pw-list svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 3px; }
.pw-price { display: grid; gap: 2px; }
.pw-price b { font: 800 40px/1 var(--f-display); color: var(--ice); text-shadow: var(--neon-glow); }
.pw-price span { font: 500 12px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.pw-pay { width: 100%; }
.pw-code { display: grid; gap: 8px; text-align: left; padding-top: 14px; border-top: 1px solid var(--line); }
.pw-code label { font-size: 13px; color: var(--muted); font-weight: 600; }
.pw-row { display: flex; gap: 8px; }
.pw-row .input { font-size: 15px; padding: 12px 14px; letter-spacing: .06em; min-width: 0; }

.pw-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(5,7,15,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; overflow-y: auto; }
.pw-overlay.open { opacity: 1; }
.pw-card { position: relative; width: min(460px, 100%); padding: 32px 24px 24px; border-radius: 22px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--neon) 40%, var(--line)); box-shadow: var(--shadow), 0 0 80px -20px var(--neon);
  transform: translateY(16px) scale(.97); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.pw-overlay.open .pw-card { transform: none; }
.pw-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-close:hover { color: var(--fg); border-color: var(--neon); }
.pw-close svg { width: 16px; height: 16px; }

/* Vidéo de présentation */
.portrait-frame video.promo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.portrait-frame.has-video video.promo { opacity: 1; z-index: 1; }
.portrait-frame.has-video .sub-bubble { display: none; }
.portrait-frame .rec { z-index: 2; }
.sound-btn { position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); display: none; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(10,12,22,.75); color: #fff; font: 700 13px/1 var(--f-body); backdrop-filter: blur(6px); white-space: nowrap; }
.portrait-frame.has-video .sound-btn { display: inline-flex; }
.sound-btn svg { width: 18px; height: 18px; }

/* ---------- Ajouts v3 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mod-card .n b.new { color: var(--ok); font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--fg); }
.empty-note { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; grid-column: 1 / -1; }

.search-row { margin-bottom: 16px; max-width: 520px; }
.input.search { font: 500 16px/1.2 var(--f-body); letter-spacing: 0; padding: 14px 16px 14px 44px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B93B8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px 50% / 18px; }

/* favoris */
.prompt header { align-items: center; }
.prompt header h3 { flex: 1; min-width: 0; }
.fav { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.fav svg { width: 16px; height: 16px; fill: none; }
.fav:hover { color: var(--warn); border-color: var(--warn); }
.fav.on { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.fav.on svg { fill: currentColor; }
.fav.pop { animation: pop .4s cubic-bezier(.2,.7,.2,1.4); }
@keyframes pop { 50% { transform: scale(1.35); } }
.pill svg { fill: none; }

/* streak + badges + certificat */
.streak { margin-top: 14px !important; display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--f-mono); color: var(--muted); padding: 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.streak:empty { display: none; }
.streak b { color: var(--warn); font-size: 15px; }
.streak::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); opacity: .55; }
.badge .b-ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.badge .b-ico svg { width: 22px; height: 22px; }
.badge b { font: 700 15px/1.2 var(--f-display); }
.badge span:last-child { font-size: 13px; color: var(--muted); }
.badge.on { opacity: 1; border-color: color-mix(in srgb, var(--neon) 45%, var(--line)); }
.badge.on .b-ico { color: var(--ice); border-color: var(--neon); box-shadow: 0 0 18px -4px var(--neon); }
.cert-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 18px; border-radius: var(--r); border: 1px solid var(--neon); background: var(--neon-soft); color: var(--fg); }
.cert-card:hover { text-decoration: none; transform: translateY(-2px); }
.cert-card > span { width: 40px; height: 40px; flex: none; color: var(--ice); filter: drop-shadow(0 0 8px var(--neon)); }
.cert-card b { display: block; font: 700 18px/1.2 var(--f-display); }
.cert-card div span { color: var(--muted); font-size: 14px; }
.cert-frame { margin: 18px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 900px; }
.cert-frame canvas { display: block; width: 100%; height: auto; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cert-msg { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 40px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); max-width: 620px; }
.cert-msg h2 { font-size: 26px; }

/* quiz */
.quiz { margin-top: 44px; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 18px; }
.quiz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.quiz-head h2 { font-size: 24px; }
.qq { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.qq legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.qc { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; }
.qc:hover { border-color: var(--neon); }
.qc input { accent-color: var(--neon); width: 18px; height: 18px; flex: none; margin: 0; }
.qc:has(input:checked) { border-color: var(--neon); background: var(--neon-soft); }
.qc.right { border-color: var(--ok); background: var(--ok-soft); }
.qc.wrong { border-color: var(--no); background: var(--no-soft); }
.quiz-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.quiz-res { font-weight: 600; }
.quiz-res.ok { color: var(--ok); }
.quiz-res.err { color: var(--no); }
.spark { position: fixed; z-index: 120; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: var(--ice); pointer-events: none; filter: drop-shadow(0 0 6px var(--neon)); animation: spark 1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(30deg) scale(.4); opacity: 0; } }

/* lecture */
.read-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--neon); box-shadow: var(--neon-glow); transform-origin: 0 50%; transform: scaleX(0); }
#remaining { color: var(--neon); }

/* bulle question */
.ask-bubble { position: fixed; z-index: 80; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--neon); color: #0A0C16; font-weight: 700; font-size: 14px; box-shadow: 0 12px 30px -10px var(--neon); }
.ask-bubble:hover { text-decoration: none; transform: translateY(-2px); }
.ask-bubble svg { width: 18px; height: 18px; }

/* ressources */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.anchor-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-weight: 600; font-size: 14px; }
.anchor-nav a:hover { border-color: var(--neon); text-decoration: none; }
.res-sec { padding-top: 36px; scroll-margin-top: 90px; }
.cas-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .cas-list { grid-template-columns: 1fr; } }
.cas { display: grid; gap: 14px; align-content: start; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.cas header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cas h3 { font-size: 18px; }
.cas .cat { font: 600 11px/1 var(--f-mono); color: var(--neon); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; display: inline-flex; align-items: center; }
.cas .cat svg { width: 12px; height: 12px; margin-right: 4px; }
.cas-steps { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 10px; }
.cas-steps li { counter-increment: c; position: relative; padding-left: 36px; font-size: 15px; }
.cas-steps li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--f-mono); color: var(--neon); border: 1px solid var(--neon); }
.cas.locked { opacity: .8; }
.glossary { margin: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.gl-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 18px; background: var(--surface); }
.gl-row + .gl-row { border-top: 1px solid var(--line); }
.gl-row dt { font: 700 16px/1.4 var(--f-display); }
.gl-row dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .gl-row { grid-template-columns: 1fr; gap: 4px; } }
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 6px; }
.news li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 0 0 22px 22px; }
.news li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--neon); box-shadow: var(--neon-glow); }
.news time { font: 500 13px/1.6 var(--f-mono); color: var(--muted); }
@media (max-width: 600px) { .news li { grid-template-columns: 1fr; gap: 2px; } }

/* tarifs */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; margin: 8px auto 0; align-items: stretch; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; padding: 30px 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.plan.best { border-color: var(--neon); box-shadow: var(--shadow), 0 0 70px -24px var(--neon); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.plan-tag { position: absolute; top: -12px; left: 26px; font: 700 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--neon); color: #0A0C16; }
.plan-name { font: 600 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--neon); }
.plan-price { display: grid; gap: 4px; }
.plan-price b { font: 800 48px/1 var(--f-display); letter-spacing: -.03em; }
.plan.best .plan-price b { color: var(--ice); text-shadow: var(--neon-glow); }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.plan-list li { position: relative; padding-left: 28px; }
.plan-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.plan-list li.y::before { content: "✓"; color: var(--ok); }
.plan-list li.n { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.plan-list li.n::before { content: "✕"; color: var(--muted); }
:root[data-theme="light"] .plan-tag { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .plan-tag { color: #fff; } }

/* qui suis-je */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; padding-block: 48px; }
.about-photo { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 60px -16px var(--neon-soft); max-width: 380px; justify-self: center; aspect-ratio: 9/16; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: grid; gap: 16px; max-width: 60ch; }
.about-text h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; }
.about-text .lead-p { font-size: 19px; }
.about-text p { color: var(--muted); }
.about-text .lead-p { color: var(--fg); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; gap: 28px; } .about-photo { max-width: 260px; } }

/* tableaux dans les modules */
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 600 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface); }
.prose tr:last-child td { border-bottom: 0; }
.legal { max-width: 75ch; }

/* ---------- V4 ---------- */
.theme-toggle { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, transform .3s; }
.theme-toggle:hover { color: var(--fg); border-color: var(--neon); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.site-header .wrap > .theme-toggle { order: 0; }
.nav { order: 1; }
@media (max-width: 1180px) { .theme-toggle { margin-left: auto; } .nav-toggle { margin-left: 8px !important; } }
@media (min-width: 1181px) { .site-header .wrap > .theme-toggle { order: 2; } .nav { margin-left: auto; } }
.nav a.admin-link { color: var(--warn); }
.input.soft { font: 500 15px/1.4 var(--f-body); letter-spacing: 0; padding: 12px 14px; }
textarea.input { resize: vertical; min-height: 64px; }
select.input { appearance: auto; }
.small-note { font-size: 13px; }
.count-line { font: 500 13px/1 var(--f-mono); margin: -8px 0 14px; }

/* module enrichi */
.example { padding: 18px 20px; border-radius: 12px; border-left: 3px solid var(--neon); background: var(--surface); margin-bottom: 18px; }
.recap { margin: 28px 0 8px; padding: 20px 22px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--neon) 40%, var(--line)); background: var(--neon-soft); display: grid; gap: 12px; }
.recap .checklist { margin: 0; }
.notes { margin-top: 28px; display: grid; gap: 12px; }
.notes-area { font: 500 15px/1.6 var(--f-body); letter-spacing: 0; padding: 14px 16px; min-height: 120px; }

/* tableau de bord : du jour */
.daily { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; margin: -20px 0 40px; }
@media (max-width: 760px) { .daily { grid-template-columns: 1fr; } }
.daily-card { padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; min-width: 0; }
.daily-card h3 { font-size: 18px; line-height: 1.3; }
.daily-card .eyebrow { margin-bottom: 4px; }
.daily-card pre { max-height: 140px; }
.daily-card.defi { background: linear-gradient(150deg, var(--surface-2), var(--surface)); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.daily-card.defi .eyebrow { color: var(--warn); }
.daily-card.defi .eyebrow::before { box-shadow: none; }
.daily-card.defi p { font: 700 20px/1.35 var(--f-display); }
.daily-card.defi .btn { justify-self: start; }

/* outils */
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card { display: grid; gap: 16px; align-content: start; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); min-width: 0; color: var(--fg); }
.tool-card.prompt { grid-template-rows: none; }
.tool-card.wide { grid-column: 1 / -1; }
.tool-head { display: grid; gap: 8px; }
.tool-head h2 { font-size: 22px; }
.link-card { transition: border-color .2s, transform .2s; }
.link-card:hover { border-color: var(--neon); transform: translateY(-2px); text-decoration: none; }
.gen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) { .gen { grid-template-columns: 1fr; } }
.gen-fields { display: grid; gap: 12px; }
.gen-out { display: grid; gap: 12px; align-content: start; }
.gen-out pre { min-height: 180px; max-height: none; }
.gen-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.meter { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.meter-bar { position: relative; flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter-bar::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--v, 0)); background: linear-gradient(90deg, var(--warn), var(--ok)); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.calc { display: grid; gap: 12px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.calc-out div { background: var(--bg); padding: 14px; display: grid; gap: 4px; }
.calc-out span { font-size: 12px; color: var(--muted); }
.calc-out b { font: 800 22px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.calc-out div:first-child b { color: var(--ice); text-shadow: var(--neon-glow); }
.idea { min-height: 3.2em; font: 700 22px/1.35 var(--f-display); padding: 18px; border-radius: 12px; border: 1px dashed var(--line); }
.idea.final { border-color: var(--neon); }
.idea.flip { animation: flipIn .18s ease; }
@keyframes flipIn { from { transform: translateY(-6px); opacity: .3; } }
.timer-ring { --p: 0; position: relative; width: 180px; height: 180px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--neon) calc(var(--p) * 360deg), var(--line) 0); }
.timer-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.timer-ring span { position: relative; font: 800 40px/1 var(--f-display); font-variant-numeric: tabular-nums; }

/* forum */
.forum-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-block: 44px 36px; }
@media (max-width: 860px) { .forum-hero { grid-template-columns: 1fr; } }
.forum-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin-block: 12px; }
.forum-hero > div > p { color: var(--muted); font-size: 18px; max-width: 56ch; }
.forum-action { display: grid; gap: 10px; justify-items: start; margin-top: 24px; }
.forum-action .btn svg { width: 16px; height: 16px; }
.soon { padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.forum-preview { display: grid; gap: 8px; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.fp-row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.fp-row i { grid-column: 2; font-style: normal; font-size: 13px; color: var(--muted); }
.fp-dot { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--neon); box-shadow: var(--neon-glow); }
.fp-row:nth-child(2) .fp-dot { background: var(--warn); box-shadow: none; }
.fp-row:nth-child(3) .fp-dot { background: var(--ok); box-shadow: none; }
.forum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .forum-grid { grid-template-columns: 1fr; } }
.forum-grid section { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.forum-grid h2 { font-size: 20px; }
.forum-grid .prompt { padding: 0; border: 0; background: none; }
.rules { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card, .contact-side { display: grid; gap: 14px; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.contact-card h2, .contact-side h2 { font-size: 22px; }
.contact-card > .btn { justify-self: start; }
.contact-out { padding: 16px; border-radius: 12px; border: 1px solid var(--ok); background: var(--ok-soft); display: grid; gap: 10px; }
.contact-side .way { color: var(--fg); }
.contact-side a.way:hover { border-color: var(--neon); text-decoration: none; }
.way .sel { user-select: all; }
.small-copy { margin-left: auto; padding: 8px 10px; }
.way > div { min-width: 0; }
.way .k { min-width: 52px; font-size: 18px; }

/* admin */
.adm-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
@media (max-width: 760px) { .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-stats div { background: var(--surface); padding: 16px; display: grid; gap: 4px; }
.adm-stats b { font: 800 30px/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--ice); }
.adm-stats span { font-size: 13px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } }
.cfg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cfg-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; min-width: 0; }
.cfg-list li b { font: 600 12px/1.3 var(--f-mono); overflow-wrap: anywhere; text-align: right; }
.cfg-list li.ok b { color: var(--ok); }
.cfg-list li.todo b { color: var(--warn); }
.cfg-list code { font: 600 13px/1.3 var(--f-mono); color: var(--ice); overflow-wrap: anywhere; }
.cfg-list.codes li span { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- V5 : catégories ---------- */
.cat-list { display: grid; gap: 40px; }
.cat-block { display: grid; gap: 16px; }
.cat-head { display: grid; gap: 6px; padding-left: 16px; border-left: 2px solid var(--neon); }
.cat-num { font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--neon); }
.cat-head h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.cat-head p { color: var(--muted); }
.cat-money .cat-head { border-left-color: var(--ok); }
.cat-money .cat-num { color: var(--ok); }
.cat-money .mod-card { border-color: color-mix(in srgb, var(--ok) 28%, var(--line)); }
.mod-side .label:not(:first-child) { margin-top: 18px; }
.mod-side .label { line-height: 1.4; }

/* ---------- Accès gratuit : pages verrouillées ---------- */
.nav a.nav-locked { display: inline-flex; align-items: center; gap: 6px; opacity: .7; }
.nav a.nav-locked svg { width: 12px; height: 12px; }
.locked-page { padding-block: 56px 88px; display: grid; place-items: center; }
.locked-card.standalone { margin: 0 auto; }

/* ---------- Panneau admin flottant ---------- */
.adm-fab { position: fixed; z-index: 95; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--warn);
  background: var(--surface); color: var(--fg); font: 700 14px/1 var(--f-body); cursor: pointer; box-shadow: var(--shadow), 0 0 24px -8px var(--warn); }
.adm-fab svg { width: 18px; height: 18px; color: var(--warn); }
.adm-fab:hover { transform: translateY(-2px); }
.adm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.adm-drawer { position: fixed; z-index: 96; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: grid; grid-template-rows: auto auto 1fr;
  background: var(--bg-2); border-left: 1px solid var(--line); box-shadow: -30px 0 60px -30px rgba(0,0,0,.6);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.adm-drawer.open { transform: none; }
@media (max-width: 600px) {
  .adm-drawer { top: auto; left: 0; width: 100%; max-height: 86vh; max-height: 86dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; transform: translateY(100%); padding-left: env(safe-area-inset-left, 0px); }
  .adm-drawer.open { transform: none; }
}
.adm-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.adm-top .pw-close { position: static; }
.adm-title { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--f-display); }
.adm-title svg { width: 22px; height: 22px; color: var(--warn); }
.adm-tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.adm-tabs button { flex: none; font: 600 13px/1 var(--f-body); padding: 9px 12px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.adm-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.adm-body { overflow-y: auto; padding: 18px; display: grid; gap: 14px; align-content: start; }
.adm-body h3 { font-size: 16px; margin-top: 8px; }
.adm-p { color: var(--muted); font-size: 14px; }
.adm-p b { color: var(--fg); }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-stat-line { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); }
.adm-stat-line b { color: var(--fg); }
.adm-checks { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 14px; }
.adm-checks label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.adm-checks input { accent-color: var(--neon); }
.adm-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.adm-hint { font-size: 12px; color: var(--muted); }
.adm-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.adm-steps code, .adm-p code { font: 600 12px/1 var(--f-mono); color: var(--ice); }
.input.mono { font: 500 12.5px/1.55 var(--f-mono); letter-spacing: 0; }
.adm-x { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.adm-x:hover { color: var(--no); border-color: var(--no); }
.adm-x svg { width: 14px; height: 14px; }
.cfg-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.linkish { background: none; border: 0; padding: 0; color: var(--neon); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.linkish.danger { color: var(--no); font-size: 14px; }
.cat-block .mod-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cat-money .mod-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 400px) { .cat-money .mod-grid { grid-template-columns: 1fr; } }

/* ---------- V6 : visuels ---------- */
canvas.constellation { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .9; }
.hero > .wrap, .login-page > .wrap { position: relative; z-index: 1; }
:root[data-theme="light"] canvas.constellation { opacity: .45; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) canvas.constellation { opacity: .45; } }
.reveal { transform: translateY(18px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { transform: none; }
.tilting { transition: transform .12s ease-out !important; will-change: transform; }

/* prompts variables */
.prompt .gen-actions { gap: 8px; }
.vary { display: inline-flex; gap: 6px; align-items: center; font: 600 13px/1 var(--f-body); padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.vary:hover { color: var(--neon); border-color: var(--neon); }
.vary svg { width: 14px; height: 14px; }
pre.swapin { animation: swapin .35s cubic-bezier(.2,.7,.2,1); }
@keyframes swapin { from { opacity: .2; transform: translateY(4px); } }
.surprise-wrap { margin-bottom: 22px; }
.surprise-card { border-color: color-mix(in srgb, var(--neon) 45%, var(--line)); background: linear-gradient(150deg, var(--surface-2), var(--surface)); }
.surprise-card h3 { font-size: 18px; line-height: 1.3; }
.tool-card .surprise-card { padding: 0; border: 0; background: none; }
.tool-card.wide-2 { grid-column: 1 / -1; }

/* assistant */
.bot-fab { position: fixed; z-index: 94; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--neon); color: #0A0C16; font: 700 14px/1 var(--f-body); box-shadow: 0 14px 34px -12px var(--neon); transition: transform .2s; }
.bot-fab:hover { transform: translateY(-2px); }
.bot-fab svg { width: 18px; height: 18px; }
:root[data-theme="light"] .bot-fab { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .bot-fab { color: #fff; } }
.bot { position: fixed; z-index: 97; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(144px + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); height: min(600px, calc(100dvh - 110px));
  display: grid; grid-template-rows: auto 1fr auto auto; border-radius: 20px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 60px -24px var(--neon);
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: opacity .22s, transform .22s; }
.bot.open { opacity: 1; transform: none; }
.bot-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.bot-head > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bot-head b { font: 700 16px/1.2 var(--f-display); }
.bot-head span { font-size: 12px; color: var(--muted); }
.bot-head .pw-close { position: static; }
.bot-ava { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--neon); color: var(--ice); box-shadow: 0 0 14px -4px var(--neon); }
.bot-ava svg { width: 20px; height: 20px; }
.bot-log { min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { flex: none; max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; animation: rise .3s cubic-bezier(.2,.7,.2,1); }
.msg p { margin: 0; }
.msg.ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; display: grid; gap: 10px; }
.msg.me { align-self: flex-end; background: var(--neon); color: #0A0C16; border-bottom-right-radius: 4px; font-weight: 600; }
:root[data-theme="light"] .msg.me { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .msg.me { color: #fff; } }
.msg.typing { display: flex; gap: 4px; padding: 14px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; } .msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .4; } }
.bot-prompt { padding: 0; border: 0; background: none; gap: 8px; display: grid; grid-template-rows: none; }
.bot-prompt pre { max-height: 160px; font-size: 12.5px; }
.bot-prompt .copy, .bot-prompt .vary { padding: 8px 10px; font-size: 12.5px; }
.bot-links { display: flex; flex-wrap: wrap; gap: 6px; }
.bot-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 7px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--neon) 45%, var(--line)); color: var(--neon); }
.bot-link:hover { text-decoration: none; background: var(--neon-soft); }
.bot-link svg { width: 12px; height: 12px; }
.bot-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 10px; }
.bot-chips .pill { flex: none; font-size: 13px; padding: 8px 12px; }
.bot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.bot-form .input { flex: 1; min-width: 0; padding: 11px 13px; }
@media (max-width: 600px) {
  .bot { right: 0; left: 0; bottom: 0; width: 100%; height: 82vh; height: 82dvh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bot-fab span { display: none; }
  .bot-fab { padding: 14px; }
  .adm-fab span { display: none; }
}

/* ---------- V7 : illustrations ---------- */
.illus { width: 100%; height: 100%; display: block; color: var(--neon); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--neon) 45%, transparent)); }
.cat-head { position: relative; padding-right: 96px; }
.cat-illus { position: absolute; right: 0; top: 50%; width: 84px; height: 84px; transform: translateY(-50%); }
.cat-money .illus, .cat-money .card-illus .illus { color: var(--ok); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--ok) 40%, transparent)); }
.cat-key .cat-head { border-left-color: var(--warn); }
.cat-key .cat-num { color: var(--warn); }
.cat-key .illus { color: var(--warn); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--warn) 40%, transparent)); }
.cat-key .mod-card { border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--warn) 6%, var(--surface)), var(--surface)); }
.mod-card .card-illus { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; opacity: .55; transition: opacity .25s, transform .4s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.mod-card:hover .card-illus { opacity: 1; transform: scale(1.12) rotate(-6deg); }
.mod-card .n, .mod-card h3 { padding-right: 36px; }
.mod-head { position: relative; }
.head-illus { position: absolute; right: 0; top: 0; width: 120px; height: 120px; opacity: .9; }
.mod-head h1, .mod-head > p { padding-right: 130px; }
@media (max-width: 700px) { .head-illus { width: 72px; height: 72px; } .mod-head h1, .mod-head > p { padding-right: 0; } .mod-head .eyebrow { padding-right: 80px; } .cat-head { padding-right: 70px; } .cat-illus { width: 60px; height: 60px; } }
.has-decor { position: relative; overflow: hidden; }
.decor { position: absolute; width: 220px; height: 220px; opacity: .22; pointer-events: none; z-index: 0; }
.decor-r { right: -40px; top: 40px; transform: rotate(8deg); }
.decor-l { left: -60px; top: 120px; transform: rotate(-10deg); }
.decor-r2 { right: -50px; bottom: 60px; transform: rotate(10deg); }
.has-decor > .wrap { position: relative; z-index: 1; }
@media (max-width: 1100px) { .decor { display: none; } }
@media (prefers-reduced-motion: no-preference) { .decor .illus { animation: float 9s ease-in-out infinite; } }

/* tableau de bord : avatar */
.dash-intro { position: relative; }
.dash-ava { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--neon); box-shadow: 0 0 22px -6px var(--neon); margin-bottom: 14px; }

/* ---------- V7 : message à tous ---------- */
.ann-overlay { z-index: 110; }
.ann-card { text-align: left; display: grid; gap: 14px; padding: 26px 24px 22px; }
.ann-head { display: flex; gap: 12px; align-items: center; }
.ann-head > div { display: grid; gap: 2px; }
.ann-head b { font: 700 15px/1.2 var(--f-display); }
.ann-head span { font-size: 12px; color: var(--muted); }
.ann-ava img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--neon); }
.ann-card h2 { font-size: 24px; font-weight: 800; }
.ann-card p { color: var(--muted); }
.ann-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ann-current { display: grid; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--warn); background: var(--warn-soft); }
.ann-current p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- V8 : forum intégré ---------- */
.forum-app { padding-block: 36px 88px; display: grid; gap: 22px; }
.fa-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; }
.fa-top h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; margin-top: 10px; }
.fa-me { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fa-me > span:nth-child(2) { display: grid; gap: 2px; }
.fa-me .btn svg { width: 16px; height: 16px; }
.fa-ava { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 800 18px/1 var(--f-display); color: var(--ice); background: var(--neon-soft); border: 1px solid var(--neon); }
.fa-ava.sm { width: 34px; height: 34px; font-size: 14px; }
.fa-pseudo-in { padding: 6px 10px; font-size: 14px; width: 180px; }
.fa-demo { margin: 0; }
.fa-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .fa-grid { grid-template-columns: 1fr; } }
.fa-cats { display: grid; gap: 4px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
@media (max-width: 860px) { .fa-cats { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; } .fa-cats a { flex: none; } .fa-cats a span { display: none; } }
.fa-cats a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 11px 13px; border-radius: 12px; color: var(--fg); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.fa-cats a:hover { background: var(--surface); text-decoration: none; }
.fa-cats a.on { background: var(--neon-soft); border-color: color-mix(in srgb, var(--neon) 40%, var(--line)); }
.fa-cats b { font-size: 14.5px; }
.fa-cats span { grid-column: 1; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.fa-cats i { grid-column: 2; grid-row: 1; font: 600 12px/1 var(--f-mono); font-style: normal; color: var(--neon); align-self: center; }
.fa-main { display: grid; gap: 16px; min-width: 0; }
.fa-head h2 { font-size: 24px; }
.fa-head p { margin-top: 4px; }
.fa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fa-list a { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); transition: border-color .2s, transform .2s; }
.fa-list a:hover { border-color: var(--neon); transform: translateX(3px); text-decoration: none; }
.fa-row-main { display: grid; gap: 4px; min-width: 0; }
.fa-row-main b { font-size: 16px; overflow-wrap: anywhere; }
.fa-meta { font-size: 12.5px; color: var(--muted); }
.fa-pin { display: inline-block; font: 700 10.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 7px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); justify-self: start; }
.fa-lock svg { width: 12px; height: 12px; color: var(--muted); }
.fa-stats { display: flex; gap: 14px; flex: none; font: 600 13px/1 var(--f-mono); color: var(--muted); }
.fa-stats span { display: inline-flex; gap: 5px; align-items: center; }
.fa-stats svg { width: 14px; height: 14px; }
.fa-back { font-weight: 600; justify-self: start; }
.fa-post { display: grid; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fa-post.first { border-color: color-mix(in srgb, var(--neon) 35%, var(--line)); }
.fa-post header { display: flex; gap: 12px; align-items: center; }
.fa-post header > div { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; flex: 1; min-width: 0; }
.fa-post h2 { font-size: 24px; }
.fa-body { line-height: 1.65; overflow-wrap: anywhere; }
.fa-badge { display: inline-flex; gap: 4px; align-items: center; font: 600 10.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.fa-badge.admin { background: var(--warn-soft); color: var(--warn); }
.fa-badge svg { width: 11px; height: 11px; }
.fa-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fa-like { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: 600 13px/1 var(--f-mono); }
.fa-like svg { width: 15px; height: 15px; fill: none; }
.fa-like.on { color: var(--warn); border-color: var(--warn); }
.fa-like.on svg { fill: currentColor; }
.fa-replies { display: grid; gap: 10px; padding-left: 22px; border-left: 2px solid var(--line); }
.fa-reply, .fa-new { display: grid; gap: 12px; }
.fa-new { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fa-new h2 { font-size: 22px; }
.fa-loading { display: flex; gap: 6px; padding: 30px; justify-content: center; }
.fa-loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--neon); animation: dot 1s infinite; }
.fa-loading span:nth-child(2) { animation-delay: .15s; } .fa-loading span:nth-child(3) { animation-delay: .3s; }
.auth-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.auth-body { display: grid; gap: 12px; text-align: left; }

/* ---------- V8 : gadgets ---------- */
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; flex: none; order: 2; transition: border-color .2s, color .2s; }
.search-btn:hover { color: var(--fg); border-color: var(--neon); }
.search-btn svg { width: 17px; height: 17px; }
kbd { font: 600 11px/1 var(--f-mono); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
@media (max-width: 1180px) { .search-btn { margin-left: auto; } .search-btn kbd { display: none; } .search-btn + .theme-toggle { margin-left: 8px; } }
@media (min-width: 1181px) { .search-btn { order: 2; margin-left: 8px; } .site-header .wrap > .theme-toggle { margin-left: 8px; } }
.cmdk { position: fixed; inset: 0; z-index: 120; background: rgba(5,7,15,.55); backdrop-filter: blur(4px); display: grid; justify-items: center; align-items: start; padding: 12vh max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); opacity: 0; transition: opacity .15s; }
.cmdk.open { opacity: 1; }
.cmdk-box { width: min(620px, 100%); border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 60px -20px var(--neon); overflow: hidden; transform: translateY(-8px); transition: transform .2s; }
.cmdk.open .cmdk-box { transform: none; }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.cmdk-in input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 500 17px/1.3 var(--f-body); outline: none; }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow-y: auto; }
.cmdk-list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.cmdk-list li[aria-selected="true"], .cmdk-list li:hover { background: var(--neon-soft); }
.cmdk-list b { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.cmdk-type { font: 600 10.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--neon); width: 82px; flex: none; }
.cmdk-lock svg { width: 14px; height: 14px; color: var(--muted); }
.cmdk-act { font: 600 11px/1 var(--f-mono); color: var(--muted); }
.cmdk-empty { color: var(--muted); justify-content: center; cursor: default; }
.to-top { position: fixed; z-index: 93; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(148px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; }
.prog-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 5px 10px 5px 6px; border-radius: 999px; border: 1px solid var(--line); font: 600 12px/1 var(--f-mono); color: var(--muted); }
.prog-pill:hover { text-decoration: none; border-color: var(--neon); color: var(--fg); }
.prog-pill span { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--neon) calc(var(--p) * 1%), var(--line) 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }
@media (max-width: 420px) { .prog-pill { display: none; } }
.prose { font-size: var(--prose-fs, 16px); }
.read-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin: -10px 0 28px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.toc span { font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 4px; }
.toc a { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); }
.toc a:hover { border-color: var(--neon); text-decoration: none; }
.rt-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.rt-btns button { font: 600 13px/1 var(--f-body); padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.rt-btns button:hover { color: var(--fg); border-color: var(--neon); }
body.focus-mode .mod-side, body.focus-mode .site-header, body.focus-mode .tier-banner, body.focus-mode .site-footer, body.focus-mode .bot-fab, body.focus-mode .adm-fab { display: none !important; }
body.focus-mode .mod-layout { grid-template-columns: minmax(0, 1fr); max-width: 780px; margin: 0 auto; }
.tip-card { display: flex; gap: 14px; align-items: flex-start; margin-top: 36px; padding: 18px 20px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--warn) 40%, var(--line)); background: linear-gradient(150deg, var(--warn-soft), transparent); }
.tip-card p { margin: 6px 0 0; }
.tip-ico { width: 34px; height: 34px; flex: none; color: var(--warn); }
.tip-card .eyebrow { color: var(--warn); }
.tip-card .eyebrow::before { box-shadow: none; }
.daily { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) { .daily { grid-template-columns: 1fr; } }
.tip-day p { font: 600 16px/1.45 var(--f-body); }
.news-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(140deg, var(--surface-2), var(--surface)); }
@media (max-width: 760px) { .news-box { grid-template-columns: 1fr; padding: 24px 20px; } }
.news-text h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin: 10px 0 8px; }
.news-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.news-form .form-msg { grid-column: 1 / -1; min-height: 1.4em; }
@media (max-width: 420px) { .news-form { grid-template-columns: 1fr; } }
.nav a { white-space: nowrap; }
@media (min-width: 1181px) { .nav a { padding: 8px 10px; font-size: 14.5px; } .nav { gap: 2px; } }
@media (max-width: 1400px) { .search-btn kbd { display: none; } }
@media (max-width: 1180px) { .site-header .wrap > .search-btn { order: 0; margin-left: auto; } .site-header .wrap > .search-btn ~ .theme-toggle { margin-left: 8px; } }
.mail-card { display: grid; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.mail-card .prompt { padding: 0; border: 0; background: none; grid-template-rows: none; gap: 8px; }
.mail-card pre { max-height: 180px; font-size: 12px; }
.mail-line { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.mail-line span { color: var(--muted); font-weight: 600; }
.mail-line code { flex: 1; min-width: 0; font: 600 12.5px/1.3 var(--f-mono); color: var(--ice); overflow-wrap: anywhere; }
.price-note { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.price-note span { display: inline-flex; gap: 6px; align-items: center; }
.price-note span::before { content: "✓"; color: var(--ok); font-weight: 800; }
.plan-once { display: inline-block; justify-self: start; font: 700 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.wait-form { display: grid; gap: 10px; text-align: left; padding: 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line)); background: var(--ok-soft); }
.wait-t { font-size: 14px; margin: 0; }

/* ---------- V10 : page de paiement ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .co-grid { grid-template-columns: 1fr; } .co-pay { order: -1; } }
.co-card { display: grid; gap: 16px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.co-card h2 { font-size: 22px; }
.co-summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
@media (max-width: 860px) { .co-summary { position: static; } }
.co-product { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.co-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--neon); color: var(--ice); box-shadow: 0 0 18px -6px var(--neon); }
.co-ico svg { width: 24px; height: 24px; }
.co-product div { display: grid; gap: 2px; }
.co-product div span { font-size: 13px; color: var(--muted); }
.co-price { font: 800 20px/1 var(--f-display); }
.co-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.co-list li { position: relative; padding-left: 26px; }
.co-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px dashed var(--line); }
.co-total span { font-weight: 600; }
.co-total b { font: 800 34px/1 var(--f-display); color: var(--ice); text-shadow: var(--neon-glow); }
.co-small { font-size: 13px; color: var(--muted); margin: 0; }
.co-pay #co-form { display: grid; gap: 14px; }
.co-hint { font-size: 12.5px; color: var(--muted); }
.co-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.co-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--neon); flex: none; }
.co-paybox { display: grid; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); transition: border-color .3s, box-shadow .3s; }
.co-paybox.ready { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); box-shadow: 0 0 30px -14px var(--ok); }
.co-paylabel { font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.co-buttons { min-height: 50px; color-scheme: light; }
.co-ext { width: 100%; }
.co-unavailable { display: grid; gap: 10px; }
.co-unavailable p { margin: 0; font-size: 14px; }
.co-trust { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.co-trust span { display: flex; gap: 8px; align-items: center; }
.co-trust svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.co-success { display: grid; gap: 14px; text-align: left; }
.co-ok { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-soft); color: var(--ok); border: 1px solid var(--ok); }
.co-ok svg { width: 28px; height: 28px; }
.co-success .btn { justify-self: start; }
.co-test { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); font-size: 13px; }
.co-test b { color: var(--warn); }

/* ---------- V11 : espace Détente (chat de groupe) ---------- */
.fa-cats a.fa-chat-link { border-color: color-mix(in srgb, var(--neon) 35%, var(--line)); background: linear-gradient(135deg, var(--neon-soft), transparent); }
.fa-live { display: inline-flex; align-items: center; gap: 5px; font: 700 10.5px/1 var(--f-mono) !important; text-transform: uppercase; letter-spacing: .08em; color: var(--ok, #3ddc97) !important; }
.fa-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: livepulse 1.8s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .fa-live::before { animation: none; } }
.chat-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.chat-head > div { flex: 1 1 320px; min-width: 0; }
.chat-head .btn svg { width: 15px; height: 15px; }
.chat { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.chat-log { height: min(62vh, 600px); height: min(62dvh, 600px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 2px; scroll-behavior: smooth; }
.chat-log > .empty-note { margin: auto 0; }
.cm { display: flex; gap: 10px; align-items: flex-end; max-width: min(78%, 560px); margin-top: 10px; }
.cm.cont { margin-top: 2px; }
.cm.cont .fa-ava { visibility: hidden; height: 0; }
.cm .fa-ava.sm { width: 30px; height: 30px; font-size: 13px; }
.cm.mine { align-self: flex-end; flex-direction: row-reverse; }
.cm-b { position: relative; display: grid; gap: 3px; padding: 9px 13px; border-radius: 16px 16px 16px 6px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.cm.cont .cm-b { border-radius: 6px 16px 16px 6px; }
.cm.mine .cm-b { background: var(--neon); color: #0A0C16; border-color: transparent; border-radius: 16px 16px 6px 16px; }
.cm.mine.cont .cm-b { border-radius: 16px 6px 6px 16px; }
.cm-h { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12.5px; }
.cm-h b { font-size: 13px; }
.cm-h time { color: var(--muted); font: 500 11px/1 var(--f-mono); }
.cm.mine .cm-h time { color: rgba(10,12,22,.65); }
.cm-b p { margin: 0; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.cm-act { display: none; position: absolute; top: -12px; right: 6px; gap: 6px; align-items: center; padding: 2px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.cm.mine .cm-act { right: auto; left: 6px; }
.cm:hover .cm-act, .cm:focus-within .cm-act { display: inline-flex; }
@media (hover: none) { .cm-act { display: inline-flex; position: static; justify-self: start; background: transparent; border: 0; padding: 0; } }
.cm-act .linkish { font-size: 12px; }
.cm-act .adm-x { width: 22px; height: 22px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--bg-2); }
.chat-form .input { flex: 1; min-width: 0; border-radius: 999px; padding-left: 16px; }
.chat-form .btn { border-radius: 999px; width: 48px; padding: 0; display: grid; place-items: center; flex: none; }
.chat-form .btn svg { width: 18px; height: 18px; }
.chat-msg { padding: 0 16px; min-height: 0; }
.chat-msg:not(:empty) { padding-bottom: 10px; }
.chat-banned { margin: 0; padding: 6px 4px; }
.chat-mod { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; padding: 18px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--warn) 50%, var(--line)); background: var(--warn-soft); }
.chat-mod h3 { font-size: 16px; margin-bottom: 4px; }
.chat-mod h3 small { color: var(--muted); font-weight: 500; }
.chat-mod-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.chat-addw { display: flex; gap: 8px; }
.chat-addw .input { flex: 1; min-width: 0; }
.chat-words { display: flex; flex-wrap: wrap; gap: 6px; max-height: 190px; overflow-y: auto; }
.chat-words .chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.chat-words .adm-x { width: 20px; height: 20px; }
@media (max-width: 600px) { .cm { max-width: 88%; } .chat-log { height: 64vh; height: 64dvh; padding: 14px 10px 8px; } }
:root[data-theme="light"] .cm.mine .cm-b { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .cm.mine .cm-b { color: #fff; } }
:root[data-theme="light"] .cm.mine .cm-h time { color: rgba(255,255,255,.75); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .cm.mine .cm-h time { color: rgba(255,255,255,.75); } }
.cm.mine .fa-badge { background: rgba(255,255,255,.22); color: inherit; }
@media (max-width: 860px) { body.in-chat .bot-fab, body.in-chat .adm-fab, body.in-chat .to-top { display: none !important; } }
.tip-next { display: block; margin-top: 6px; color: var(--muted); font: 500 11.5px/1.3 var(--f-mono); }
.tip-in { animation: tipin .5s ease; }
@keyframes tipin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tip-in { animation: none; } }
.auth-spam { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--neon-soft); border: 1px solid color-mix(in srgb, var(--neon) 30%, var(--line)); font-size: 13.5px; line-height: 1.45; text-align: left; color: var(--fg); }
.auth-spam svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--neon); }

/* ---------- V12 : photos de profil + fiche membre ---------- */
.fa-ava { position: relative; overflow: hidden; }
.fa-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--surface); }
.fa-ava.lg { width: 72px; height: 72px; font-size: 28px; }
.fa-ava-btn { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; flex: none; color: inherit; display: inline-grid; }
.fa-ava-btn:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.fa-ava-btn > i { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--neon); color: #0A0C16; border: 2px solid var(--bg); }
.fa-ava-btn > i svg { width: 11px; height: 11px; }
.fa-ava-btn.sm:hover .fa-ava, .fa-ava-btn:hover > .fa-ava { box-shadow: 0 0 0 2px var(--neon); }
.fa-me-links { display: flex; gap: 12px; flex-wrap: wrap; }
.cm-name { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; font-size: 13px; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.cm-name:hover { color: var(--neon); }
.fiche { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; text-align: left; }
.fiche-body { display: grid; gap: 16px; }
.fiche-top { display: flex; gap: 16px; align-items: center; padding-right: 32px; }
.fiche-top h2 { font-size: 24px; margin-bottom: 6px; overflow-wrap: anywhere; }
.fa-badge.ban { background: var(--err-soft, rgba(255,90,90,.14)); color: var(--err, #ff6b6b); }
.fiche-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.fiche-dl dt { color: var(--muted); }
.fiche-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .fiche-dl { grid-template-columns: 1fr; gap: 2px; } .fiche-dl dd { margin-bottom: 8px; } }
.fiche-prog { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.fiche-prog-h { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.fiche-prog-h span { font: 600 13px/1.3 var(--f-mono); color: var(--neon); }
.fiche-prog .bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.fiche-prog .bar i { display: block; height: 100%; background: var(--neon); border-radius: inherit; }
.fiche-prog p { margin: 0; font-size: 13.5px; }
.fiche-prog details { font-size: 14px; }
.fiche-prog ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.fiche-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fiche-stats span { display: grid; gap: 2px; text-align: center; padding: 10px 6px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.fiche-stats b { font: 800 22px/1 var(--f-display); color: var(--fg); }
.fiche-act { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- V13 : offre, parrainage, défis, classement, fiche, admin ---------- */
.launch-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: linear-gradient(90deg, var(--neon-soft), color-mix(in srgb, var(--warn) 14%, transparent)); border-bottom: 1px solid var(--line); color: var(--fg); font-size: 14.5px; text-align: center; }
.launch-bar:hover { text-decoration: none; }
.launch-bar s { color: var(--muted); }
.lb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 25%, transparent); flex: none; }
.lb-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--neon); }
.lb-go svg { width: 15px; height: 15px; }
.co-launch { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--fg); font-size: 14px; }
.co-discount { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--ok); }
.co-old { color: var(--muted); font-weight: 500; font-size: .8em; }
.co-promo { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.co-promo summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.co-promo-row { display: flex; gap: 8px; margin-top: 10px; }
.co-promo-row .input { flex: 1; min-width: 0; text-transform: uppercase; }
.co-promo .form-msg { margin: 6px 0 0; }
.dash-social { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: -24px 0 40px; }
.ds-card { display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: var(--r, 16px); background: var(--surface); border: 1px solid var(--line); }
.ds-card h3 { font-size: 20px; }
.ds-card p { margin: 0; }
.ds-link { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ds-link code { flex: 1 1 200px; min-width: 0; padding: 9px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-link .btn svg { width: 15px; height: 15px; }
.ds-count b { font: 800 22px/1 var(--f-display); color: var(--neon); }
.ds-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ds-top li, .top-list li { display: flex; align-items: center; gap: 10px; }
.ds-top b, .top-list b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.ds-top i, .top-list i { font: 600 13px/1 var(--f-mono); font-style: normal; color: var(--neon); }
.ds-rank, .top-rank { width: 24px; text-align: center; font: 800 15px/1 var(--f-display); color: var(--muted); flex: none; }
.ds-me { font-size: 14px; color: var(--muted); }
.fa-cats a.fa-special i { color: var(--warn); }
.defi-hero { display: grid; gap: 10px; padding: 22px; border-radius: 18px; background: linear-gradient(135deg, var(--neon-soft), transparent 70%), var(--surface); border: 1px solid color-mix(in srgb, var(--neon) 35%, var(--line)); }
.defi-hero h2 { font-size: clamp(22px, 3vw, 28px); }
.defi-hero p { margin: 0; }
.defi-weeks { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 600 13px/1 var(--f-body); cursor: pointer; }
.chip-btn.on { background: var(--neon); color: #0A0C16; border-color: transparent; }
.defi-form { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.defi-img { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.defi-img .btn svg { width: 14px; height: 14px; }
.defi-img img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.defi-done { display: flex; gap: 8px; align-items: center; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.defi-done svg { width: 18px; height: 18px; }
.defi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.defi-card { display: grid; align-content: start; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.defi-pic { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); }
.defi-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.defi-meta { display: flex; align-items: center; gap: 10px; }
.defi-meta > div { flex: 1; min-width: 0; display: grid; }
.defi-card p { margin: 0; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.top-tabs { max-width: 360px; display: grid; grid-template-columns: 1fr 1fr; }
.top-me { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--neon-soft); font-size: 15px; }
.top-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.top-list li { padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.top-list li.me { border-color: var(--neon); }
.top-list li.podium .top-rank { color: #0A0C16; background: var(--warn); border-radius: 50%; height: 24px; line-height: 24px; font-size: 13px; }
.top-list li.r2 .top-rank { background: #B9C2D6; } .top-list li.r3 .top-rank { background: #D49A6A; }
.top-how { font-size: 14.5px; } .top-how summary { cursor: pointer; font-weight: 600; } .top-how ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
/* fiche à onglets */
.fiche { width: min(640px, 100%); }
.fiche-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
.fiche-tabs button { flex: none; padding: 10px 12px; border: 0; background: none; color: var(--muted); font: 600 14px/1 var(--f-body); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.fiche-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--neon); }
.fiche-pane { display: grid; gap: 18px; }
.fiche-sec { display: grid; gap: 10px; }
.fiche-sec h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: var(--f-mono); font-weight: 600; }
.fiche-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fiche-stats b { font-size: 20px; }
.fiche-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fiche-list li { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.fiche-list li > span { color: var(--muted); font-size: 12.5px; }
.fiche-list q { color: var(--fg); font-style: italic; }
.fiche-cat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fiche-cat summary { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 14px; }
.fiche-cat summary span { font: 600 13px/1.3 var(--f-mono); color: var(--neon); flex: none; }
.fiche-mods { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; font-size: 13.5px; }
.fiche-mods li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.fiche-mods li.ok { color: var(--fg); }
.fiche-mods i { margin-left: auto; font: 500 11.5px/1 var(--f-mono); font-style: normal; color: var(--muted); flex: none; }
.fm-ico { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; }
.fiche-mods li.ok .fm-ico { background: var(--ok); border-color: var(--ok); color: #fff; }
.fm-ico svg { width: 11px; height: 11px; }
.fiche-cal { display: grid; grid-template-columns: repeat(35, 1fr); gap: 3px; }
.fiche-cal i { aspect-ratio: 1; border-radius: 3px; background: var(--line); }
.fiche-cal i.on { background: var(--neon); }
.fiche-cal-l { font-size: 12px; margin: 0; }
.warn-txt { color: var(--warn); font-weight: 600; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; }
/* tableau de bord admin */
.adm-dash { display: grid; gap: 18px; margin-bottom: 40px; }
.adm-tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.adm-tabs button[role="tab"] { padding: 11px 14px; border: 0; background: none; color: var(--muted); font: 600 15px/1 var(--f-body); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.adm-tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--neon); }
.adm-tabs #adm-refresh { margin-left: auto; font-size: 14px; }
.adm-pane { display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.kpi { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi b { font: 800 28px/1.1 var(--f-display); }
.kpi small { font-size: 12.5px; color: var(--muted); }
.adm-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.adm-3col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.adm-box { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.adm-box h3 { font-size: 17px; } .adm-box h3 small { color: var(--muted); font-weight: 500; font-size: 13px; }
.adm-chart { margin: 0; display: grid; gap: 8px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.adm-chart figcaption { font-weight: 700; font-size: 15px; }
.ac-bars { display: flex; align-items: flex-end; gap: 2px; height: 150px; border-bottom: 1px solid var(--line); }
.ac-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; outline: none; }
.ac-col i { display: block; width: 100%; background: var(--neon); border-radius: 4px 4px 0 0; min-height: 0; }
.ac-col em { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 12px/1 var(--f-body); font-style: normal; padding: 6px 8px; border-radius: 8px; background: var(--fg); color: var(--bg); pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 2; }
.ac-col:hover em, .ac-col:focus em { opacity: 1; }
.ac-col:hover i, .ac-col:focus i { filter: brightness(1.15); }
.ac-col:first-child em { left: 0; transform: none; } .ac-col:last-child em { left: auto; right: 0; transform: none; }
.ac-axis { display: flex; justify-content: space-between; font: 500 11.5px/1 var(--f-mono); color: var(--muted); }
.ac-table summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.ac-table table { width: 100%; font-size: 13px; border-collapse: collapse; margin-top: 6px; }
.ac-table td { padding: 4px 0; border-bottom: 1px solid var(--line); } .ac-table td + td { text-align: right; }
.hb, .funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hb li, .funnel li { display: grid; grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.funnel li { grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto 40px; }
.funnel small { color: var(--muted); font: 500 12px/1 var(--f-mono); text-align: right; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.hb-t { height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.hb-t i { display: block; height: 100%; background: var(--neon); border-radius: 99px; }
.hb b, .funnel b { font: 700 13px/1 var(--f-mono); }
.adm-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-filters input { flex: 1 1 260px; min-width: 0; } .adm-filters select { flex: 0 1 220px; }
.mtable { display: grid; gap: 6px; }
.mrow { display: grid; grid-template-columns: minmax(220px, 2.2fr) 1fr 1.2fr 1fr 1fr .8fr; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; font: inherit; font-size: 13.5px; color: var(--fg); cursor: pointer; width: 100%; }
button.mrow:hover { border-color: var(--neon); }
.mhead { background: none; border: 0; cursor: default; color: var(--muted); font: 600 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 0; }
.m-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m-who > span:last-child { display: grid; min-width: 0; }
.m-who b, .m-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-who small { color: var(--muted); font-size: 12px; }
.m-prog { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono); }
.m-prog .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; } .m-prog .bar i { display: block; height: 100%; background: var(--neon); }
.tier { display: inline-block; font: 600 11px/1 var(--f-mono); font-style: normal; text-transform: uppercase; letter-spacing: .05em; padding: 4px 7px; border-radius: 6px; background: var(--bg-2); color: var(--muted); }
.tier.t-full { background: var(--ok-soft); color: var(--ok); } .tier.t-admin { background: var(--warn-soft); color: var(--warn); } .tier.t-ban { background: rgba(255,90,90,.14); color: #e5484d; }
@media (max-width: 900px) { .mhead { display: none; } .mrow { grid-template-columns: 1fr auto; } .mrow > span:nth-child(n+3) { display: none; } }
.vtable-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.vtable { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.vtable th { text-align: left; padding: 10px 12px; font: 600 12px/1 var(--f-mono); text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.vtable td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.vtable small { color: var(--muted); }
.adm-form { display: grid; gap: 12px; }
.promo-new { grid-template-columns: 1.4fr .7fr 1fr; gap: 8px; } .promo-new #p-note { grid-column: span 2; }
@media (max-width: 700px) { .promo-new { grid-template-columns: 1fr 1fr; } .promo-new #p-code, .promo-new #p-note { grid-column: 1 / -1; } }
.promo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.promo-list li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.promo-list li.off { opacity: .55; }
.promo-list li > div { display: grid; gap: 3px; min-width: 0; }
.promo-list small { color: var(--muted); font-size: 12.5px; }
.promo-link { font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.promo-act { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
