/* =========================================================================
   ENA · Charte graphique du site (validée le 27/11/2026)
   -------------------------------------------------------------------------
   Esprit Apple / Vercel : sobre, noir et blanc, beaucoup d'espace, un message
   fort par écran, le produit mis en scène. Pas de jaune, pas d'effets gadget.
   · Clair : blanc #fff / texte #0a0a0a · Sombre : noir #000 / texte #ededed.
   · Une seule couleur d'accent (--accent, bleu #0070f3) : liens, état actif,
     interrupteurs. Le bouton principal est noir (clair) ou blanc (sombre).
   · Typo : Geist (tout), Geist Mono (étiquettes, chiffres, code).
   · Formes : rayons 8 px / 14 px, filets de 1 px, ombres très douces.
   · Le logo « E » prend la couleur du texte.
   Polices hébergées localement (RGPD + CSP), licence OFL : voir fonts/.
   ========================================================================= */
@font-face { font-family: "Geist"; src: url(fonts/Geist-latin.woff2) format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url(fonts/Geist-latin-ext.woff2) format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-latin.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Geist Mono"; src: url(fonts/GeistMono-latin-ext.woff2) format("woff2"); font-weight: 400 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }

:root {
  /* Sombre */
  --bg: #000000; --bar: #000000; --surface: #0a0a0a; --surface-2: #1a1a1a; --line: #242424; --line-2: #333333;
  --text: #ededed; --muted: #a1a1a1; --soft: #c7c7c7; --faint: #5e5e5e;
  --accent: #3291ff; --accent-2: #52a8ff; --on-accent: #ffffff;
  --ok: #5ed19a; --ok-bg: #0d1f16; --err: #ff6b6b; --err-bg: #2a1111; --warn-bg: #241c0a; --warn-text: #f5b545;
  --accent-soft: rgba(50, 145, 255, .14); --featured-bg: #0a0a0a; --link: #3291ff;
  --radius: 8px; --r-lg: 14px;
  --f-sans: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --f-serif: var(--f-sans);
  --glass: rgba(0, 0, 0, .72);
  --shadow: 0 40px 120px -40px rgba(0, 0, 0, 1);
  color-scheme: dark;
}
/* Clair (choisi, ou « Système » quand l'ordinateur est en clair). */
html[data-theme="light"] {
  --bg: #ffffff; --bar: #ffffff; --surface: #fafafa; --surface-2: #f2f2f2; --line: #eaeaea; --line-2: #d9d9d9;
  --text: #0a0a0a; --muted: #666666; --soft: #3f3f3f; --faint: #a3a3a3;
  --accent: #0070f3; --accent-2: #0761d1; --on-accent: #ffffff;
  --ok: #1a7f4b; --ok-bg: #e9f8f0; --err: #c62828; --err-bg: #fdecec; --warn-bg: #fff6e0; --warn-text: #8a5a00;
  --accent-soft: #e8f2ff; --featured-bg: #ffffff; --link: #0070f3;
  --glass: rgba(255, 255, 255, .8);
  --shadow: 0 40px 120px -50px rgba(0, 0, 0, .25);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html[data-theme="system"] {
    --bg: #ffffff; --bar: #ffffff; --surface: #fafafa; --surface-2: #f2f2f2; --line: #eaeaea; --line-2: #d9d9d9;
    --text: #0a0a0a; --muted: #666666; --soft: #3f3f3f; --faint: #a3a3a3;
    --accent: #0070f3; --accent-2: #0761d1; --on-accent: #ffffff;
    --ok: #1a7f4b; --ok-bg: #e9f8f0; --err: #c62828; --err-bg: #fdecec; --warn-bg: #fff6e0; --warn-text: #8a5a00;
    --accent-soft: #e8f2ff; --featured-bg: #ffffff; --link: #0070f3;
    --glass: rgba(255, 255, 255, .8);
    --shadow: 0 40px 120px -50px rgba(0, 0, 0, .25);
    color-scheme: light;
  }
}

/* Menu langue / thème */
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--line); cursor: pointer; font: 500 13px/1 var(--f-sans); min-height: 34px; color: var(--muted); }
.menu summary:hover { color: var(--text); border-color: var(--line-2); }
.menu summary::-webkit-details-marker { display: none; }
.flag { width: 18px; height: 12px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.chev { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .15s; }
.menu[open] .chev { transform: rotate(180deg); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 230px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px; box-shadow: 0 16px 50px rgba(0, 0, 0, .18); z-index: 50; display: flex; flex-direction: column; }
.menu-pop nav { display: flex; flex-direction: column; gap: 2px; }
.menu-pop a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 6px; color: var(--text); font-weight: 400; font-size: 14px; }
.menu-pop a:hover { background: var(--surface-2); color: var(--text); }
.menu-pop a[aria-current="true"] { background: var(--surface-2); font-weight: 500; }
.menu-pop .ico { width: 17px; height: 17px; }
.menu-label { margin: 10px 10px 4px; font: 500 11px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-sans); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.03em; font-weight: 600; }
h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.05em; line-height: 1.02; }
h2 { font-size: 20px; letter-spacing: -0.02em; }
h3 { font-size: 17px; letter-spacing: -0.015em; }
h1 em, h2 em, .h-section em, .display em { font-style: normal; color: var(--faint); }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--f-mono); }
code { font-size: .86em; color: var(--soft); background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 36px 24px 64px; flex: 1; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 60ch; letter-spacing: -0.01em; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: block; color: var(--muted); font: 500 13px/1.2 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; margin: 0 0 14px; }
.eyebrow::before { content: none; }
.center > .eyebrow, .eyebrow.center { text-align: center; }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 0 max(24px, calc((100vw - 1200px) / 2 + 24px)); min-height: 64px; border-bottom: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.logo-mark { width: 18px; height: 19px; fill: currentColor; }
.top-links { display: flex; gap: 22px; }
.top-links a { color: var(--muted); font-weight: 400; font-size: 14px; }
.top-links a:hover { color: var(--text); }
.spacer { flex: 1; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.lang a { padding: 6px 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.lang a[aria-current="true"] { background: var(--text); color: var(--bg); }
.user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.user img { border-radius: 50%; width: 26px; height: 26px; }
.topbar form { margin: 0; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 500 14px/1 var(--f-sans); cursor: pointer; transition: background .15s, border-color .15s, color .15s, opacity .15s; }
.btn:hover { color: var(--text); border-color: var(--line-2); background: var(--surface); }
.btn.primary, .btn.ink { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover, .btn.ink:hover { background: var(--text); color: var(--bg); opacity: .85; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 30%, transparent); color: var(--err); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions.center { justify-content: center; margin-top: 24px; }

.grid { display: grid; gap: 14px; }
.cards { list-style: none; padding: 0; margin: 0 0 40px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.cards li span { color: var(--muted); font-size: 14px; }

/* Badges, notices */
.badge { display: inline-block; font: 500 11px/1.4 var(--f-mono); letter-spacing: .02em; text-transform: uppercase; font-style: normal; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); width: fit-content; }
.badge.accent { background: var(--text); color: var(--bg); border-color: var(--text); }
.badge.muted { color: var(--muted); }
.notice { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.notice.ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.notice.error { background: var(--err-bg); border-color: color-mix(in srgb, var(--err) 30%, transparent); color: var(--err); }
.notice.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn-text) 30%, transparent); color: var(--warn-text); }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); margin-bottom: 18px; }
.callout p { margin: 4px 0 0; color: var(--muted); }
.empty { padding: 48px 0; color: var(--muted); }

/* Tarifs (version compacte, utilisée dans le panel) */
.plans { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 32px 0 20px; align-items: stretch; }
.plan { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.plan.featured { border-color: var(--text); }
.plan .ribbon { position: absolute; top: -11px; left: 20px; background: var(--text); color: var(--bg); font: 500 11px/1 var(--f-mono); padding: 5px 9px; border-radius: 999px; text-transform: uppercase; }
.price { font-size: 34px; font-weight: 600; margin: 6px 0; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plans.compact .plan { padding: 18px; }
.plans.compact .price { font-size: 26px; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); opacity: .9; }

/* Liste des serveurs */
.servers { list-style: none; padding: 0; margin: 24px 0 0; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.server { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.server img, .side-guild img { border-radius: var(--r-lg); }
.server > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.server strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 56px; height: 56px; border-radius: var(--r-lg); background: #2a3b5c; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* Coque d'un serveur */
.shell { display: flex; flex-wrap: wrap; align-items: flex-start; flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; }
.side { flex: 1 1 220px; max-width: 270px; padding: 24px 16px; display: flex; flex-direction: column; gap: 18px; }
.side-guild { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.side-guild .avatar { width: 40px; height: 40px; border-radius: var(--radius); font-size: 13px; }
.side-guild div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.side-guild strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { padding: 10px 12px; border-radius: var(--radius); color: var(--soft); font-weight: 500; }
.side nav a:hover { background: var(--surface); color: var(--text); }
.side nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.side > a { padding: 0 12px; }
.content { flex: 999 1 560px; min-width: 0; padding: 28px 32px 56px; display: flex; flex-direction: column; gap: 18px; }
.content h1 { font-size: 30px; margin: 0; }
.tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.tile strong { font-size: 28px; font-weight: 700; }
.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.panel.danger { border-color: #4a2626; }
.links { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* Modules */
.modules { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.module { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.module.on { border-color: var(--line-2); }
.module.soon { opacity: .6; }
.module > div:first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; }
.module span { color: var(--muted); font-size: 14px; }
.module form { margin: 0; }
.switch { width: 48px; height: 28px; border-radius: 999px; border: none; padding: 0; background: #2a3344; position: relative; cursor: pointer; }
.switch span { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"] span { left: 24px; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.form > :not(select):not(input) { max-width: 100%; }
label { font-weight: 500; font-size: 14px; }
select, input[type="text"], input:not([type]) { width: 100%; max-width: 520px; min-height: 44px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 14px var(--f-sans); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 6px 0; width: 100%; max-width: 720px; }
legend { padding: 0 6px; font-weight: 500; font-size: 14px; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; min-height: 32px; }
.check.disabled { opacity: .55; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; margin-top: 14px; }
.form.inline > div { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; }
.list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.list li div { display: flex; flex-direction: column; }
.list form { margin: 0; }
.radios { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); width: 100%; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; }
.radio-card input { margin-top: 4px; accent-color: var(--accent); }
.radio-card span { display: flex; flex-direction: column; gap: 2px; }
.radio-card small { color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--featured-bg); }

/* Tableaux */
.tabs { display: flex; gap: 6px; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); font-size: 13px; font-weight: 600; }
.tabs a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: var(--surface); }
tr:last-child td { border-bottom: none; }


/* ---------- Pages publiques ---------- */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn.big { min-height: 48px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.h-section { font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.04; margin-bottom: 14px; }

/* Accueil */
@keyframes hp-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hp-shot { from { opacity: 0; transform: translateY(40px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes hp-track { from { background: var(--line-2); } to { background: var(--accent); } }
@keyframes hp-knob { from { transform: none; } to { transform: translateX(16px); } }
.hp-u1 { animation: hp-up .7s .05s cubic-bezier(.2, .8, .2, 1) both; }
.hp-u2 { animation: hp-up .7s .15s cubic-bezier(.2, .8, .2, 1) both; }
.hp-u3 { animation: hp-up .7s .25s cubic-bezier(.2, .8, .2, 1) both; }
.hp-u4 { animation: hp-up .7s .35s cubic-bezier(.2, .8, .2, 1) both; }
.hp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hp-section { padding-top: 140px; }
.hp-hero { max-width: 1200px; margin: 0 auto; padding: 120px 24px 0; text-align: center; }
.hp-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 5px; }
.hp-pill:hover { color: var(--text); border-color: var(--line-2); }
.hp-pill span { background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 2px 9px; font-weight: 500; }
.hp-hero h1 { margin: 28px auto 0; font-size: clamp(46px, 7vw, 84px); line-height: 1; letter-spacing: -0.055em; max-width: 13ch; }
.hp-lead { margin: 26px auto 0; font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 40ch; letter-spacing: -0.01em; }
.hp-actions { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.hp-shot { margin: 72px 0 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); animation: hp-shot 1s .45s cubic-bezier(.2, .8, .2, 1) both; }
.hp-shot-bar { height: 44px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.hp-shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.hp-shot-bar span { margin: 0 auto; font: 12px var(--f-mono); color: var(--muted); background: var(--surface-2); padding: 4px 14px; border-radius: 6px; }
.hp-shot-body { display: grid; grid-template-columns: 230px minmax(0, 1fr) 360px; min-height: 460px; }
.hs-side { border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.hs-side > span { padding: 8px 10px; border-radius: 6px; color: var(--muted); }
.hs-side > span.on { background: var(--surface-2); color: var(--text); font-weight: 500; }
.hs-guild { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.hs-guild > span { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.hs-guild p { margin: 0; font-weight: 600; }
.hs-guild small { color: var(--muted); font-size: 12px; }
.hs-main { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.hs-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.hs-lead { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.hs-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; background: var(--bg); }
.hs-row > div { flex: 1; min-width: 0; }
.hs-row p { margin: 0; font-size: 14px; font-weight: 500; }
.hs-row span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-switch { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); flex-shrink: 0; }
.hs-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.hs-switch.on { background: var(--accent); }
.hs-switch.on::after { transform: translateX(16px); }
.hs-switch.flip { animation: hp-track .4s 1.9s ease both; }
.hs-switch.flip::after { animation: hp-knob .4s 1.9s ease both; }
.hs-preview { border-left: 1px solid var(--line); padding: 28px 22px; background: var(--surface-2); }
.hs-preview > .mono { margin: 0 0 14px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.hs-dc { background: #313338; border-radius: 10px; padding: 16px; color: #dbdee1; font: 13px/1.45 "Segoe UI", system-ui, sans-serif; }
.hs-author { margin: 0 0 8px; display: flex; gap: 6px; align-items: center; color: #f2f3f5; }
.hs-author em { font-style: normal; color: #949ba4; font-size: 11px; }
.hs-card { background: #2b2d31; border-radius: 6px; border-left: 3px solid var(--accent); padding: 12px; }
.hs-card small { color: #949ba4; font-size: 11px; display: block; }
.hs-card strong { display: block; margin: 2px 0 6px; color: #f2f3f5; font-size: 14px; }
.hs-card p { margin: 0; }
.hs-card .mock-btn { font-size: 12px; padding: 5px 10px; }
.hp-audience { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; margin-top: 56px; font-size: 15px; color: var(--faint); }

.hp-h2 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.045em; max-width: 18ch; }
.hp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.hp-tile { grid-column: span 2; border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: var(--surface); transition: border-color .2s; }
.hp-tile:hover { border-color: var(--line-2); }
.hp-tile.wide { grid-column: span 4; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.hp-tile.full { grid-column: span 6; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.hp-tile.full > div { max-width: 52ch; }
.hp-tile.full a { color: var(--text); font-weight: 500; }
.hp-tile h3 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.hp-tile p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.hp-list { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.hp-list > div { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); }
.hp-list span:last-child { color: var(--muted); }
.hp-list b { font-weight: 500; color: var(--accent); }
.hp-seg { display: inline-flex; margin-top: 26px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; font-size: 13px; font-weight: 500; background: var(--bg); }
.hp-seg span { padding: 6px 14px; border-radius: 6px; color: var(--muted); }
.hp-seg span.on { background: var(--surface-2); color: var(--text); }
.hp-member { margin-top: 22px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg); }
.hp-member > span { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.hp-member p { margin: 0 !important; color: var(--text) !important; font-size: 14px !important; font-weight: 500; }
.hp-member small { color: var(--muted); font-size: 12px; }
.hp-bars { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.hp-bars > div { display: flex; justify-content: space-between; }
.hp-bars > div span:last-child { color: var(--muted); }
.hp-bars i { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); position: relative; margin-bottom: 6px; }
.hp-bars i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--text); }
.hp-bars i.w62::after { width: 62%; }
.hp-bars i.w38::after { width: 38%; background: var(--faint); }
.hp-chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.hp-chips span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--bg); }
.hp-chips span.on { border-color: var(--text); }

.hp-statement { padding-top: 160px; padding-bottom: 140px; text-align: center; }
.hp-statement h2 { margin: 0 auto; font-size: clamp(44px, 6.4vw, 80px); line-height: 1; letter-spacing: -0.055em; max-width: 14ch; }
.hp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hp-step { padding: 36px 32px 0 0; }
.hp-step + .hp-step { padding-left: 32px; border-left: 1px solid var(--line); }
.hp-step .mono { margin: 0; font-size: 13px; color: var(--muted); }
.hp-step h3 { margin: 14px 0 6px; font-size: 19px; }
.hp-step p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.hp-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hp-row > a { color: var(--text); font-weight: 500; }
.hp-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.hp-price { border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.hp-price.featured { border-color: var(--text); }
.hp-price p { margin: 0; color: var(--muted); font-size: 15px; }
.hp-price strong { display: block; margin-top: 10px; font-size: 34px; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.hp-price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.narrow-faq { max-width: 760px; }
.narrow-faq .hp-h2 { margin-bottom: 28px; }
.hp-band { border-radius: 24px; background: var(--text); color: var(--bg); padding: 88px 40px; text-align: center; margin-bottom: 140px; }
.hp-band h2 { margin: 0 auto 36px; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.05em; max-width: 16ch; }
.hp-band h2 em { color: color-mix(in srgb, var(--bg) 55%, var(--text)); }
.hp-band .btn { background: var(--bg); color: var(--text); border-color: var(--bg); }
.hp-band .btn:hover { opacity: .85; background: var(--bg); color: var(--text); }
@media (max-width: 960px) {
  .hp-shot-body { grid-template-columns: 1fr; } .hs-side, .hs-preview { display: none; }
  .hp-bento { grid-template-columns: 1fr; } .hp-tile, .hp-tile.wide, .hp-tile.full { grid-column: auto; } .hp-tile.wide { grid-template-columns: 1fr; }
  .hp-steps { grid-template-columns: 1fr; } .hp-step + .hp-step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .hp-prices { grid-template-columns: 1fr 1fr; }
}

/* Aperçus Discord (éditeurs du panel) */
.mock { flex: 1 1 400px; max-width: 500px; margin: 0; background: #313338; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .08); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #2b2d31; color: #f2f3f5; font: 600 14px/1.4 "Segoe UI", system-ui, sans-serif; border-bottom: 1px solid #1f2023; }
.mock-hash { color: #80848e; font-size: 20px; font-weight: 400; }
.mock-msg { display: flex; gap: 14px; padding: 18px 16px 22px; font-family: "Segoe UI", system-ui, sans-serif; }
.mock-avatar { width: 40px; height: 40px; border-radius: 50%; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mock-avatar .logo-mark { width: 16px; height: 17px; }
.mock-body { flex: 1; min-width: 0; }
.mock-author { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; color: #f2f3f5; font-size: 15px; }
.mock-tag { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.mock-time { color: #949ba4; font-size: 12px; }
.mock-card { background: #2b2d31; border-radius: 8px; border-left: 4px solid #5865f2; padding: 14px 16px; color: #dbdee1; font-size: 14px; line-height: 1.45; }
.mock-card p { margin: 0 0 6px; }
.mock-card hr { border: 0; border-top: 1px solid #3f4147; margin: 10px 0; }
.mock-eyebrow { color: #949ba4; font-size: 12px; }
.mock-title { color: #f2f3f5; font-weight: 700; font-size: 16px; }
.mock-text { line-height: 1.5; }
.mock-buttons { display: flex; gap: 8px; margin-top: 12px; }
.mock-btn { padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #fff; background: #4e5058; }
.mock-btn.primary { background: #5865f2; }
.mock-btn.danger { background: #da373c; }
.mock-thumb { width: 52px; height: 52px; border-radius: 8px; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mock-thumb .logo-mark { width: 20px; height: 22px; }
.mock-thumb.avatar { border-radius: 50%; background: #5865f2; color: #fff; font-weight: 700; font-size: 20px; }
.mock-card.green { border-left-color: #3dd68c; }
.mock-card.purple { border-left-color: #c084fc; }

/* FAQ : liste à filets */
.faq { padding-top: 80px; }
.faq-item { border-top: 1px solid var(--line); background: transparent; margin: 0; }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 22px 4px; font-weight: 500; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::after { content: "+"; font: 300 22px/1 var(--f-sans); color: var(--muted); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 4px 22px; color: var(--muted); max-width: 70ch; line-height: 1.6; }
.faq-item summary .badge { flex-shrink: 0; }
.app-body { padding: 0 18px 8px; }
.app-body p { padding: 0 0 10px; }
.panel .faq-item, .content .faq-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-top: 10px; }
.panel .faq-item summary, .content .faq-item summary { padding: 16px 18px; }
.panel .faq-item p, .content .faq-item p { padding: 0 18px 16px; }

/* Pied de page */
.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px; font-size: 14px; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); }
.footer nav { display: flex; flex-direction: column; gap: 10px; }
.footer nav strong { font-weight: 500; color: var(--text); }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--text); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } }


/* ---------- Éditeur de panneau (tickets) ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.editor-preview { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 10px; }
.editor-preview .eyebrow { margin: 0; }
@media (max-width: 1150px) { .editor { grid-template-columns: 1fr; } .editor-preview { position: static; order: -1; } }
.mock.flat { flex: none; transform: none; max-width: none; box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.pv-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pv-thumb { border-radius: 8px; flex-shrink: 0; }
.pv-image { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; margin-top: 10px; }
.pv-small { color: #949ba4; font-size: 12px; }
.pv-mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; padding: 0 3px; border-radius: 3px; }
.pv-foot { margin: 12px 0 0; }
.mock-buttons { flex-wrap: wrap; }
.mock-btn.success { background: #248046; }
.mock-btn.draft { opacity: .55; outline: 1px dashed #949ba4; }
.mock-select { display: block; width: 100%; padding: 9px 12px; border-radius: 6px; background: #1e1f22; color: #b5bac1; font-size: 13px; }
.mock-options { display: flex; flex-direction: column; width: 100%; margin-top: 4px; border-radius: 6px; background: #2b2d31; border: 1px solid #1e1f22; }
.mock-options span { padding: 7px 12px; font-size: 13px; color: #dbdee1; border-top: 1px solid #1e1f22; }
.mock-options span:first-child { border-top: 0; }
.panel-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.panel-cards li { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.panel-cards li strong { font-size: 16px; }
.bf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; width: 100%; }
.bf-wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; color: var(--soft); }
.field input, .field select { max-width: none; }
.btn-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.btn-row .btn-form { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.btn-row > form:last-child { margin: 0; }
.btn-form.add { padding: 14px; border-radius: var(--radius); border: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.btn-form.add h3 { margin: 0; }
.upsell { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.upsell .ico { color: var(--accent); width: 28px; height: 28px; }
.upsell > div { flex: 1 1 240px; }
.upsell p { margin: 4px 0 0; }

/* ---------- Administration ---------- */
.admin-avatar { width: 40px; height: 40px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-2); }
.admin-avatar .logo-mark { width: 18px; height: 20px; }
.grid.tiles.kpis { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1100px) { .grid.tiles.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.module-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); }
.module-bar.on { border-color: #2e6b4f; background: linear-gradient(90deg, var(--ok-bg), var(--surface) 60%); }
.module-bar div { display: flex; flex-direction: column; gap: 2px; }
.module-bar span { color: var(--muted); font-size: 13px; }
.module-bar form { margin: 0; display: flex; align-items: center; gap: 10px; }
.module-bar .state { font-weight: 700; font-size: 13px; color: var(--soft); }
.kpis .tile.accent { border-color: var(--text); background: var(--bg); }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 230px; padding-top: 24px; }
.chart-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.chart-bar { width: 100%; max-width: 46px; min-height: 3px; border-radius: 8px 8px 3px 3px; background: var(--text); }
.chart-val { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chart-label { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.h0{height:0}.h5{height:5%}.h10{height:10%}.h15{height:15%}.h20{height:20%}.h25{height:25%}.h30{height:30%}.h35{height:35%}.h40{height:40%}.h45{height:45%}.h50{height:50%}.h55{height:55%}.h60{height:60%}.h65{height:65%}.h70{height:70%}.h75{height:75%}.h80{height:80%}.h85{height:85%}.h90{height:90%}.h95{height:95%}.h100{height:100%}
.chart-col .chart-bar { max-height: calc(100% - 40px); }
.grid-table td, .grid-table th { white-space: normal; }
.grid-table th[scope], .grid-table tbody th { text-align: left; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--soft); background: transparent; }
input.num { width: 110px; max-width: 110px; min-height: 38px; }
.grid-table select { min-height: 38px; max-width: 220px; }
.sticky-save { position: sticky; bottom: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 14px 0; background: linear-gradient(180deg, transparent, var(--bg) 35%); }
.form.inline.tight { margin: 0; gap: 6px; align-items: center; }

/* ---------- Roadmap : chapitres plein écran ---------- */
.rx { position: relative; --tone: 150, 150, 150; --tone-2: 90, 90, 90; overflow-x: clip; }
.rx[data-tone="done"] { --tone: 61, 214, 140; --tone-2: 40, 170, 200; }
.rx[data-tone="next"] { --tone: 0, 112, 243; --tone-2: 50, 145, 255; }
.rx[data-tone="planned"] { --tone: 160, 120, 255; --tone-2: 90, 140, 255; }
.rx[data-tone="later"] { --tone: 130, 145, 170; --tone-2: 90, 100, 130; }
.rx-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.rx-grid { position: absolute; inset: -2px; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 70%); }
.rx-orb { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(40px); transition: background 1s ease; }
.rx-orb.o1 { left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(var(--tone), .22), transparent 62%); animation: rx-drift 22s ease-in-out infinite; }
.rx-orb.o2 { right: -22vmax; bottom: -26vmax; background: radial-gradient(circle, rgba(var(--tone-2), .16), transparent 62%); animation: rx-drift 26s ease-in-out infinite reverse; }
.rx-noise { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .35), transparent 60%); }
@keyframes rx-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vmax, 4vmax) scale(1.12); } }
.rx > section { position: relative; z-index: 1; }

/* Ouverture */
.rx-hero { min-height: calc(100vh - 64px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px 150px; }
.rx-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); margin: 0 0 30px; }
.rx-kicker .logo-mark { width: 13px; height: 14px; }
.rx-title { margin: 0; display: flex; flex-direction: column; align-items: center; font-size: clamp(64px, 13vw, 188px); line-height: .86; font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; }
.rx-title span { display: block; }
.rx-title .hl { color: var(--faint); }
.rx-sub { margin: 30px 0 0; font-size: clamp(17px, 1.7vw, 22px); color: var(--muted); max-width: 640px; }
.rx-sub.strong { margin-top: 6px; color: var(--text); font-weight: 600; }
.rx-hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.rx-hero-stats div { min-width: 170px; padding: 18px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.rx-hero-stats strong { font-size: 42px; line-height: 1.05; }
.rx-hero-stats span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rx-scroll { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 46px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.rx-scroll svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; animation: rx-bob 1.8s ease-in-out infinite; }
@keyframes rx-bob { 50% { transform: translateY(7px); } }
.rx-marquee { position: absolute; left: 0; right: 0; bottom: 70px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rx-marquee-track { display: flex; gap: 12px; width: max-content; animation: rx-marquee 70s linear infinite; }
.rx-marquee span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.rx-marquee .ico { width: 16px; height: 16px; color: var(--accent); }
@keyframes rx-marquee { to { transform: translateX(-50%); } }

/* Grand chiffre entre deux chapitres */
.rx-interlude { min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; }
.rx-giant { font-size: clamp(170px, 32vw, 440px); line-height: .8; font-weight: 700; letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--text), rgba(var(--tone), .9)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rx-giant-label { margin: 18px 0 0; font-size: clamp(18px, 2.6vw, 34px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Chapitre */
.rx-chapter { min-height: 100vh; display: flex; align-items: center; padding: 90px 24px 130px; }
.rx-ghost { position: absolute; right: -2vw; top: 50%; z-index: -1; font-size: clamp(220px, 36vw, 560px); font-weight: 700; line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2px rgba(var(--tone), .26); transform: translateY(calc(-50% + var(--shift, 0px))); user-select: none; }
.rx-chapter.flip .rx-ghost { right: auto; left: -2vw; }
.rx-inner { width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.rx-chapter.flip .rx-copy { order: 2; }
.rx-num { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(var(--tone), 1); }
.rx-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(var(--tone), .12); color: rgba(var(--tone), 1); border: 1px solid rgba(var(--tone), .35); }
.rx-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rx-status.next::before { animation: rx-ping 1.6s ease-out infinite; }
@keyframes rx-ping { 0% { box-shadow: 0 0 0 0 rgba(0, 112, 243, .6); } 100% { box-shadow: 0 0 0 10px rgba(0, 112, 243, 0); } }
.rx-chapter h2 { margin: 18px 0 18px; font-size: clamp(40px, 5.4vw, 78px); line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.rx-text { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--soft); max-width: 560px; margin: 0; }
.rx-stats { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; max-width: 460px; }
.rx-stat { display: flex; align-items: baseline; gap: 14px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.rx-stat strong { font-size: 26px; min-width: 64px; }
.rx-stat span { color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.rx-stat.hi { background: linear-gradient(100deg, rgba(var(--tone), .22), rgba(var(--tone), .06)); border-color: rgba(var(--tone), .45); }
.rx-stat.hi strong { color: rgba(var(--tone), 1); }

/* Visuel */
.rx-visual { display: flex; flex-direction: column; gap: 14px; perspective: 1400px; }
.rx-stage { position: relative; padding: clamp(18px, 3vw, 34px); border-radius: 28px; border: 1px solid rgba(var(--tone), .28); overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, rgba(var(--tone), .22), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(var(--tone-2), .10), transparent 60%), #0a0a0a;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45); transform: rotateY(var(--tilt, 0deg)) rotateX(2deg); transform-style: preserve-3d; transition: transform .2s linear; }
.rx-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .06) 50%, transparent 60%); background-size: 250% 100%; animation: rx-sheen 7s ease-in-out infinite; }
@keyframes rx-sheen { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
.rx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rx-tile { position: relative; padding: 16px 16px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.rx-tile i { position: absolute; top: 14px; right: 14px; width: 10px; height: 10px; transform: rotate(45deg); background: rgba(var(--tone), 1); box-shadow: 0 0 14px rgba(var(--tone), .8); }
.rx-tile span { font-size: 12px; color: var(--muted); font-weight: 600; }
.rx-tile strong { font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .04em; overflow-wrap: anywhere; }

/* Maquettes (toujours façon Discord, sombres) */
.rx-dc { background: #313338; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); color: #dbdee1; }
.rx-chans { padding: 6px 16px 16px; border-top: 1px solid #26282c; background: #2b2d31; }
.rx-cat { margin: 10px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #949ba4; }
.rx-chan { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 7px 10px; border-radius: 6px; font-size: 14px; color: #b5bac1; }
.rx-chan:first-of-type { background: #404249; color: #f2f3f5; }
.rx-chan > span { color: #80848e; width: 18px; text-align: center; }
.rx-chan em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(61, 214, 140, .15); color: #3dd68c; }
.rx-users { margin-left: auto; display: flex; }
.rx-users b { width: 22px; height: 22px; margin-left: -6px; border-radius: 50%; border: 2px solid #2b2d31; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; background: #5865f2; }
.rx-users b:nth-child(2) { background: #c084fc; } .rx-users b:nth-child(3) { background: #f59e0b; }
.rx-bars { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.rx-bar { position: relative; display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 6px; background: #1e1f22; overflow: hidden; font-size: 13px; }
.rx-bar span, .rx-bar strong { position: relative; z-index: 1; }
.rx-fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(192, 132, 252, .32); transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.rx-fill.b1 { width: 62%; } .rx-fill.b2 { width: 27%; transition-delay: .15s; } .rx-fill.b3 { width: 11%; transition-delay: .3s; }
.rx-press { position: relative; }
.rx-press::after { content: ''; position: absolute; inset: -3px; border-radius: 9px; border: 2px solid rgba(255, 255, 255, .5); animation: rx-press 2.6s ease-out infinite; }
@keyframes rx-press { 0%, 55% { opacity: 0; transform: scale(1); } 65% { opacity: 1; } 100% { opacity: 0; transform: scale(1.18); } }

.rx-win { border-radius: 16px; overflow: hidden; background: #0e121a; box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .07); }
.rx-win-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #161b26; }
.rx-win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4254; }
.rx-win-bar i:first-child { background: #ff6b6b; } .rx-win-bar i:nth-child(2) { background: #f5a524; } .rx-win-bar i:nth-child(3) { background: #3dd68c; }
.rx-win-bar span { margin-left: 10px; padding: 4px 12px; border-radius: 6px; background: #0e121a; color: #8a93a6; font-size: 12px; }
.rx-win-body { display: flex; min-height: 290px; }
.rx-side { width: 58px; padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; background: #121722; }
.rx-side .logo-mark { width: 18px; height: 19px; margin-bottom: 8px; }
.rx-side b { width: 26px; height: 26px; border-radius: 8px; background: #1d2433; }
.rx-side b.on { background: rgba(0, 112, 243, .35); }
.rx-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.rx-main-title { margin: 0 0 4px; color: #e8ecf3; font-weight: 700; }
.rx-mod { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #151b27; border: 1px solid #222a39; color: #e8ecf3; font-size: 14px; }
.rx-mod-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #1d2433; color: var(--accent); }
.rx-mod-ico .ico { width: 16px; height: 16px; }
.rx-switch { margin-left: auto; width: 38px; height: 22px; border-radius: 999px; background: #2c3548; position: relative; transition: background .3s; }
.rx-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s; }
.rx-switch.on { background: #3dd68c; }
.rx-switch.on::after { transform: translateX(16px); }
.rx-mod:nth-child(5) .rx-switch { animation: rx-toggle 4s ease-in-out infinite; }
.rx-mod:nth-child(5) .rx-switch::after { animation: rx-knob 4s ease-in-out infinite; }
@keyframes rx-toggle { 0%, 40% { background: #2c3548; } 50%, 90% { background: #3dd68c; } 100% { background: #2c3548; } }
@keyframes rx-knob { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(16px); } 100% { transform: none; } }

.rx-brand { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 10px 4px; }
.rx-id { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; background: #2b2d31; color: #f2f3f5; }
.rx-id div { display: flex; align-items: center; gap: 6px; }
.rx-id.before { opacity: .55; }
.rx-id.after { box-shadow: 0 0 0 2px rgba(var(--tone), .8), 0 16px 40px rgba(0, 0, 0, .4); }
.rx-own { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: #5865f2; flex-shrink: 0; }
.rx-arrow { font-size: 28px; color: rgba(var(--tone), 1); animation: rx-nudge 1.6s ease-in-out infinite; }
@keyframes rx-nudge { 50% { transform: translateX(6px); } }
.rx-swatches { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.rx-swatches i { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); animation: rx-float 5s ease-in-out infinite; }
.rx-swatches .c1 { background: #0070f3; } .rx-swatches .c2 { background: #ff6b6b; animation-delay: -1s; } .rx-swatches .c3 { background: #3dd68c; animation-delay: -2s; }
.rx-swatches .c4 { background: #5865f2; animation-delay: -3s; } .rx-swatches .c5 { background: #c084fc; animation-delay: -4s; }
@keyframes rx-float { 50% { transform: translateY(-8px); } }
.rx-modes { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; padding: 5px; margin: 8px auto 0; border-radius: 999px; background: #1e1f22; }
.rx-modes span { padding: 7px 16px; border-radius: 999px; font-size: 13px; color: #b5bac1; }
.rx-modes span.on { background: #404249; color: #fff; }

.rx-pay { max-width: 420px; margin: 0 auto; padding: 22px; border-radius: 18px; background: #151a24; box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .07); color: #e8ecf3; display: flex; flex-direction: column; gap: 10px; }
.rx-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 12px; background: #0e121a; margin-bottom: 6px; }
.rx-plans span { text-align: center; padding: 8px; border-radius: 8px; font-size: 13px; color: #8a93a6; }
.rx-plans span.on { background: var(--accent); color: #0b0e14; font-weight: 700; }
.rx-line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; background: #1b2130; font-size: 14px; }
.rx-line span:last-child { color: #9aa4b5; }
.rx-paybtn { margin-top: 6px; padding: 13px; border-radius: 999px; text-align: center; font-weight: 700; background: #ffc439; color: #111; }
.rx-toast { margin: 4px 0 0; padding: 11px 14px; border-radius: 10px; background: rgba(61, 214, 140, .14); color: #3dd68c; font-size: 14px; font-weight: 600; text-align: center; }

.rx-mystery { position: relative; padding: 26px; min-height: 280px; display: flex; align-items: center; }
.rx-blur { width: 100%; display: flex; flex-direction: column; gap: 10px; filter: blur(5px); opacity: .75; color: #e8ecf3; }
.rx-qm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(70px, 9vw, 130px); letter-spacing: .08em; color: #fff;
  text-shadow: 3px 0 rgba(160, 120, 255, .9), -3px 0 rgba(90, 200, 255, .7); animation: rx-glitch 3.4s steps(1) infinite; }
@keyframes rx-glitch { 0%, 88%, 100% { transform: none; } 90% { transform: translate(-4px, 2px) skewX(8deg); } 93% { transform: translate(4px, -2px) skewX(-6deg); } 96% { transform: translate(-2px, 0); } }
.rx-scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, rgba(var(--tone), 1), transparent); box-shadow: 0 0 18px rgba(var(--tone), 1); animation: rx-scan 3.2s ease-in-out infinite; }
@keyframes rx-scan { 0%, 100% { top: 6%; } 50% { top: 92%; } }

.rx-locked { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rx-lock { position: relative; aspect-ratio: 1; border-radius: 16px; background: #171c27; border: 1px dashed #364056; color: #8a93a6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; text-align: center; padding: 8px; }
.rx-lock > .ico { width: 28px; height: 28px; opacity: .8; }
.rx-lock i { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #232a3a; }
.rx-lock i .ico { width: 12px; height: 12px; }

/* Fin */
.rx-end { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px 160px; }
.rx-end h2 { font-size: clamp(40px, 6vw, 84px); text-transform: uppercase; line-height: .95; margin: 0 0 18px; }
.rx-end .rx-text { margin: 0 auto; }
.rx-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Barre de progression fixe */
.rx-progress { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(980px, calc(100vw - 24px)); display: flex; align-items: center; gap: 18px;
  padding: 12px 20px; border-radius: 999px; background: rgba(15, 19, 27, .82); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #e8ecf3; }
html[data-theme="light"] .rx-progress { background: rgba(255, 255, 255, .86); border-color: var(--line); color: var(--text); box-shadow: 0 16px 40px rgba(20, 25, 40, .14); }
.rx-now { flex: 0 0 190px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(var(--tone), 1); transition: color .6s; }
.rx-track { position: relative; flex: 1; height: 4px; border-radius: 999px; background: rgba(140, 150, 170, .25); }
.rx-track-fill { position: absolute; inset: 0; border-radius: 999px; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #3dd68c, var(--accent)); }
.rx-marks { position: absolute; inset: -10px 0; display: flex; justify-content: space-between; align-items: center; }
.rx-mark { position: relative; width: 12px; height: 12px; transform: rotate(45deg); background: #1a2130; border: 2px solid #4a5468; transition: transform .3s, background .3s, border-color .3s, box-shadow .3s; }
.rx-mark.passed { background: rgba(var(--tone), 1); border-color: rgba(var(--tone), 1); }
.rx-mark.cur { transform: rotate(45deg) scale(1.7); background: var(--text); border-color: var(--bg); box-shadow: 0 0 0 3px rgba(0, 112, 243, .35); }
.rx-mark .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rx-pct { flex: 0 0 auto; font-size: 18px; }
.rx-progress { transition: opacity .4s ease, transform .4s ease; }
.rx-progress.gone { opacity: 0; transform: translate(-50%, 24px); pointer-events: none; }
@media (max-width: 720px) { .rx-now { display: none; } .rx-progress { bottom: 10px; padding: 10px 16px; } }

/* Apparition (uniquement si le script tourne) */
.js .rx-copy > *, .js .rx-tile, .js .rx-giant, .js .rx-giant-label, .js .rx-end > * { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .rx-stage { opacity: 0; transform: translateY(50px) scale(.94) rotateX(8deg); transition: opacity .8s ease, transform 1s cubic-bezier(.2, .8, .2, 1); }
.js .in .rx-copy > *, .js .in .rx-tile, .js .in.rx-interlude > *, .js .in.rx-end > * { opacity: 1; transform: none; }
.js .in .rx-stage { opacity: 1; transform: rotateY(var(--tilt, 0deg)) rotateX(2deg); transition: opacity .8s ease, transform .2s linear; }
.js .rx-copy > :nth-child(2) { transition-delay: .08s; } .js .rx-copy > :nth-child(3) { transition-delay: .16s; }
.js .rx-copy > :nth-child(4) { transition-delay: .26s; } .js .rx-copy > :nth-child(5) { transition-delay: .36s; }
.js .rx-tile:nth-child(1) { transition-delay: .3s; } .js .rx-tile:nth-child(2) { transition-delay: .42s; } .js .rx-tile:nth-child(3) { transition-delay: .54s; }
.js .rx-giant { transform: scale(.7); } .js .rx-giant-label { transition-delay: .25s; }
.js .rx-pop { opacity: 0; transform: translateX(-16px); transition: opacity .5s ease, transform .5s ease; }
.js .in .rx-pop { opacity: 1; transform: none; }
.js .in .rx-pop.p1 { transition-delay: .6s; } .js .in .rx-pop.p2 { transition-delay: .75s; } .js .in .rx-pop.p3 { transition-delay: .9s; } .js .in .rx-pop.p4 { transition-delay: 1.05s; } .js .in .rx-pop.p5 { transition-delay: 1.2s; }
.js .rx-fill { transform: scaleX(0); } .js .in .rx-fill { transform: scaleX(1); }
.js .rx-toast { opacity: 0; transform: translateY(8px); transition: opacity .5s ease 1.2s, transform .5s ease 1.2s; } .js .in .rx-toast { opacity: 1; transform: none; }
.js .rx-hero > * { animation: rx-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.js .rx-hero > :nth-child(2) { animation-delay: .1s; } .js .rx-hero > :nth-child(3) { animation-delay: .25s; } .js .rx-hero > :nth-child(4) { animation-delay: .35s; }
.js .rx-hero > :nth-child(5) { animation-delay: .45s; } .js .rx-hero > :nth-child(6) { animation-delay: .6s; }
@keyframes rx-rise { from { opacity: 0; transform: translateY(30px); } }
.js .rx-hero > .rx-marquee { animation-name: rx-fade; }
@keyframes rx-fade { from { opacity: 0; } }

@media (max-width: 960px) {
  .rx-inner { grid-template-columns: 1fr; }
  .rx-chapter.flip .rx-copy { order: 0; }
  .rx-chapter { min-height: 0; padding: 80px 20px 90px; }
  .rx-ghost { top: 120px; transform: none; font-size: 46vw; }
  .rx-locked { grid-template-columns: repeat(4, 1fr); }
  .rx-brand { grid-template-columns: 1fr; } .rx-arrow { transform: rotate(90deg); justify-self: center; animation: none; }
}
@media (max-width: 520px) { .rx-tiles { grid-template-columns: 1fr; } .rx-locked { grid-template-columns: repeat(2, 1fr); } .rx-marquee { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .rx *, .rx *::before, .rx *::after { animation: none !important; transition: none !important; }
  .js .rx-copy > *, .js .rx-tile, .js .rx-stage, .js .rx-giant, .js .rx-giant-label, .js .rx-end > *, .js .rx-pop, .js .rx-toast { opacity: 1; transform: none; }
  .js .rx-fill { transform: none; }
}

.locked { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.locked > .ico { width: 40px; height: 40px; color: var(--accent); }
.locked > div { flex: 1 1 320px; }
.addon-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 28px auto 0; max-width: 900px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.addon-card > .ico { width: 36px; height: 36px; color: var(--accent); }
.addon-card > div { flex: 1 1 360px; }
.addon-card h2 { margin-bottom: 6px; }
.addon-card p { margin: 0 0 4px; }
.bot-avatar { border-radius: 50%; object-fit: cover; }
textarea { width: 100%; max-width: 720px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 400 14px/1.5 var(--f-sans); resize: vertical; }
input[type="color"] { width: 64px; height: 44px; padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; }
input[type="file"] { color: var(--soft); font: 400 14px var(--f-sans); }

.preview { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #3dd68c; }
.dot.idle { background: #f5a524; }
.dot.dnd { background: #ff6b6b; }
.dot.invisible { background: #6b7385; }

.prose { max-width: 72ch; margin: 0 auto; }
.prose p { color: var(--soft); }


@media (max-width: 720px) {
  .content { padding: 20px 16px 40px; }
  .side { max-width: none; padding: 16px; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .top-links { order: 5; width: 100%; }
}

/* ---------- Tarifs ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-size: clamp(44px, 6.4vw, 88px); line-height: 1; letter-spacing: -0.032em; font-weight: 600; }
.pr-hero { padding-top: 88px; padding-bottom: 24px; flex: none; }
.pr-hero .display { max-width: 15ch; margin-bottom: 26px; }
.pr-main { padding-top: 24px; flex: none; }
.pr-radio { position: absolute; opacity: 0; pointer-events: none; }
.pr-switch { display: inline-flex; gap: 0; padding: 4px; margin-bottom: 28px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.pr-switch label { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 4px; cursor: pointer; font-weight: 500; color: var(--muted); }
.pr-gift { font: 600 11px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
#bill-m:checked ~ .pr-switch label[for="bill-m"], #bill-y:checked ~ .pr-switch label[for="bill-y"] { background: var(--text); color: var(--bg); }
#bill-y:checked ~ .pr-switch label[for="bill-y"] .pr-gift { color: var(--link); }
#bill-m:focus-visible ~ .pr-switch label[for="bill-m"], #bill-y:focus-visible ~ .pr-switch label[for="bill-y"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.pr-plans .py { display: none; }
#bill-y:checked ~ .pr-plans .pm { display: none; }
#bill-y:checked ~ .pr-plans .pr-price.py { display: flex; }
#bill-y:checked ~ .pr-plans .pr-eq.py { display: block; }

.pr-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pr-plans.pr-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pr-plans.pr-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pr-plan { position: relative; display: flex; flex-direction: column; padding: 26px 26px 34px; border-right: 1px solid var(--line); }
.pr-plan:last-child { border-right: 0; }
.pr-plan.featured { background: var(--surface); box-shadow: inset 0 4px 0 var(--accent); }
.pr-flag { margin: 0 0 18px; display: flex; align-items: center; gap: 10px; font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); min-height: 11px; }
html[data-theme="light"] .pr-flag { color: var(--link); }
.pr-flag::before { content: ""; width: 18px; height: 4px; border-radius: 1px; background: var(--accent); }
.pr-flag.blank::before { display: none; }
.pr-plan h2 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 6px; }
.pr-for { color: var(--muted); margin: 0 0 26px; min-height: 3.2em; }
.pr-price { display: flex; align-items: flex-end; gap: 10px; margin: 0; }
.pr-amount { font: 600 clamp(38px, 3.8vw, 52px)/1 var(--f-sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pr-per { font-size: 13px; line-height: 1.3; color: var(--muted); padding-bottom: 3px; }
.pr-eq { margin: 8px 0 0; font: 400 12px/1.4 var(--f-mono); color: var(--muted); }
.pr-cta { margin-top: 26px; width: 100%; justify-content: space-between; }
.pr-inc { margin: 30px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pr-plan .checks { gap: 10px; font-size: 15px; }
.pr-plan .checks b { font-weight: 600; margin-right: 2px; }
.pr-plan .checks .badge { margin-left: 4px; vertical-align: 1px; }
@media (max-width: 1080px) { .pr-plans, .pr-plans.pr-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pr-plan:nth-child(2n) { border-right: 0; } .pr-plan:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 620px) { .pr-plans, .pr-plans.pr-n3, .pr-plans.pr-n2 { grid-template-columns: 1fr; } .pr-plan { border-right: 0; border-bottom: 1px solid var(--line); } .pr-for { min-height: 0; } }

.pr-addon { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 96px; flex: none; }
.pr-addon-price { font-size: 15px; color: var(--soft); margin: 18px 0 6px; }
.pr-addon-price .mono { font-size: 26px; color: var(--text); letter-spacing: -0.03em; }
.pr-addon-visual { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 36px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pr-id { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 8px; background: #2b2d31; color: #f2f3f5; font-family: "Segoe UI", system-ui, sans-serif; }
.pr-id.off { opacity: .5; }
.pr-id.on { box-shadow: 0 0 0 2px var(--accent); }
.pr-id-arrow { align-self: center; font: 400 22px/1 var(--f-mono); color: var(--accent); }
.pr-own { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: #5865f2; }
@media (max-width: 860px) { .pr-addon { grid-template-columns: 1fr; gap: 32px; } }

.pr-compare { padding-top: 110px; flex: none; }
.pr-table-wrap { margin-top: 30px; overflow-x: auto; border-top: 1px solid var(--line-2); }
.pr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pr-table th, .pr-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; background: transparent; }
.pr-table thead th { position: sticky; top: 63px; z-index: 2; background: var(--bg); font: 600 16px/1.2 var(--f-sans); letter-spacing: -0.01em; text-transform: none; color: var(--text); padding: 18px 16px; }
.pr-table thead th.hl { box-shadow: inset 0 3px 0 var(--accent); }
.pr-table tbody th[scope="row"] { text-align: left; font-weight: 400; color: var(--soft); white-space: normal; text-transform: none; letter-spacing: 0; font-size: 15px; }
.pr-table td.hl { background: var(--surface); }
.pr-table thead th.hl { background: var(--surface); }
.pr-group th { text-align: left !important; padding-top: 34px !important; font: 500 11px/1 var(--f-mono) !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--muted) !important; }
.pr-yes { color: var(--accent); font-size: 12px; }
html[data-theme="light"] .pr-yes { color: var(--link); }
.pr-no { color: var(--line-2); }
.pr-opt { font: 400 13px var(--f-mono); color: var(--muted); }
.pr-table .mono { font-size: 15px; }

.pr-guarantees { list-style: none; margin: 96px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.pr-guarantees li { padding: 28px 28px 0 0; }
.pr-guarantees li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.pr-g-n { display: block; font: 500 13px/1 var(--f-mono); color: var(--muted); margin-bottom: 16px; }
.pr-guarantees strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.pr-guarantees p { color: var(--muted); margin: 6px 0 0; }
@media (max-width: 760px) { .pr-guarantees { grid-template-columns: 1fr; } .pr-guarantees li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } .pr-guarantees li { padding-bottom: 20px; } }
.pr-end { padding-top: 110px; padding-bottom: 110px; border-top: 1px solid var(--line); margin-top: 96px; max-width: none; }
.pr-end > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.pr-end .lead { margin-bottom: 30px; }body > section.container { flex: none; }
.pr-plan { justify-content: flex-start; }
.pr-specs li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pr-specs li b.mono { font-weight: 500; font-size: 14px; color: var(--text); white-space: nowrap; }
.pr-specs li > span:first-child { flex: 1; }
.pr-yes { font-size: 16px; font-weight: 600; }
.addon-card .price, .plans .price { font-variant-numeric: tabular-nums; }html[data-theme="light"] .pr-gift { color: var(--link); }

/* ---------- Tarifs : cartes (charte Apple / Vercel) ---------- */
.pr-hero { text-align: center; padding-top: 110px; }
.pr-hero .display, .pr-hero .lead { margin-left: auto; margin-right: auto; }
.pr-hero .display { max-width: 14ch; font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.055em; line-height: 1.02; }
.pr-hero .eyebrow { text-align: center; }
.pr-main { text-align: center; }
.pr-switch { border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: var(--surface); margin-bottom: 44px; }
.pr-switch label { border-radius: 7px; color: var(--text); font-size: 14px; }
#bill-m:checked ~ .pr-switch label[for="bill-m"], #bill-y:checked ~ .pr-switch label[for="bill-y"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px var(--line); }
.pr-gift { font: 500 12px/1 var(--f-sans); text-transform: none; letter-spacing: 0; color: var(--accent); }
html[data-theme="light"] .pr-gift, #bill-y:checked ~ .pr-switch label[for="bill-y"] .pr-gift { color: var(--accent); }
.pr-plans { text-align: left; border: 0; gap: 16px; }
.pr-plan { border: 1px solid var(--line) !important; border-radius: 16px; padding: 30px 28px; background: var(--bg); }
.pr-plan.featured { border-color: var(--text) !important; box-shadow: none; background: var(--bg); }
.pr-flag { position: absolute; top: -11px; left: 26px; margin: 0; padding: 5px 10px; border-radius: 999px; background: var(--text); color: var(--bg) !important; font: 500 11px/1 var(--f-mono); letter-spacing: .04em; min-height: 0; }
.pr-flag::before { content: none; }
.pr-flag.blank { display: none; }
.pr-plan h2 { font-size: 18px; letter-spacing: -0.02em; }
.pr-for { font-size: 14px; margin-bottom: 22px; }
.pr-amount { font: 600 clamp(38px, 3.6vw, 46px)/1 var(--f-sans); letter-spacing: -0.05em; }
.pr-cta { justify-content: center; }
.pr-inc { border-top: 0; padding-top: 0; font: 400 13px/1.4 var(--f-sans); text-transform: none; letter-spacing: 0; }
.pr-specs li b.mono { font-family: var(--f-mono); color: var(--muted); font-weight: 400; }
@media (max-width: 1080px) { .pr-plan:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.pr-addon-visual { background: var(--surface); }
.pr-id.on { box-shadow: 0 0 0 2px var(--accent); }
.pr-id-arrow { color: var(--muted); }
.pr-table thead th { background: var(--bg); font-size: 15px; font-weight: 600; }
.pr-table thead th.hl { box-shadow: none; }
.pr-table td.hl, .pr-table thead th.hl { background: var(--surface); }
.pr-yes { color: var(--text) !important; }
.pr-guarantees { border-top: 1px solid var(--line); }
.pr-end { text-align: center; border: 0; }
.pr-end .display { font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.05em; }
.pr-end .lead { margin-left: auto; margin-right: auto; }
.pr-end .actions { justify-content: center; }
/* ---------- Roadmap : version sobre (charte Apple / Vercel) ---------- */
.rx-orb, .rx-grid, .rx-noise, .rx-ghost, .rx-stage::after { display: none; }
.rx-kicker { border-color: var(--line); background: var(--bg); color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.rx-title { font-size: clamp(56px, 10vw, 140px); letter-spacing: -0.06em; line-height: .95; text-transform: none; font-weight: 600; }
.rx-sub.strong { font-weight: 500; }
.rx-hero-stats div { background: var(--bg); border-color: var(--line); border-radius: 14px; }
.rx-hero-stats strong { font-weight: 600; letter-spacing: -0.04em; }
.rx-hero-stats span, .rx-tile span { font-family: var(--f-mono); font-weight: 400; letter-spacing: .02em; }
.rx-marquee span { background: var(--bg); }
.rx-marquee .ico { color: var(--muted); }
.rx-giant { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); font-weight: 600; letter-spacing: -0.07em; }
.rx-giant-label { font-family: var(--f-mono); font-weight: 400; font-size: clamp(14px, 1.4vw, 18px); letter-spacing: .06em; color: var(--muted); }
.rx-num { font-family: var(--f-mono); font-weight: 400; letter-spacing: .06em; color: var(--muted); }
.rx-chapter h2 { text-transform: none; letter-spacing: -0.05em; font-weight: 600; line-height: 1; }
.rx-status { font-family: var(--f-mono); font-weight: 500; letter-spacing: .02em; }
.rx-stat, .rx-tile { background: var(--bg); border-color: var(--line); border-radius: 12px; }
.rx-stat.hi { background: var(--surface); border-color: var(--line-2); }
.rx-stat.hi strong { color: var(--text); }
.rx-stat span { font-weight: 400; text-transform: none; letter-spacing: 0; }
.rx-tile i { box-shadow: none; }
.rx-stage { border-color: var(--line); background: #0a0a0a; box-shadow: var(--shadow); border-radius: 20px; }
.rx-end h2 { text-transform: none; letter-spacing: -0.05em; }
.rx-progress { background: var(--glass); border-color: var(--line); color: var(--text); box-shadow: 0 10px 40px rgba(0, 0, 0, .12); }
.rx-now { font-family: var(--f-mono); font-weight: 500; letter-spacing: .04em; }
.rx-track-fill { background: var(--text); }
.rx-mark { background: var(--bg); border-color: var(--line-2); }
.rx-mark.passed { background: var(--text); border-color: var(--text); }
/* ---------- Pack recommandé : cadre lumineux animé ---------- */
@property --pr-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes pr-spin { to { --pr-angle: 360deg; } }
@keyframes pr-glow { 0%, 100% { opacity: .45; } 50% { opacity: .75; } }
.pr-plan.featured {
  isolation: isolate; border: 1.5px solid transparent !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--bg)), var(--bg) 42%) padding-box,
    conic-gradient(from var(--pr-angle), #0070f3, #7c3aed, #06b6d4, #3291ff, #0070f3) border-box;
  animation: pr-spin 6s linear infinite;
  transform: translateY(-10px);
  box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--accent) 60%, transparent);
}
.pr-plan.featured::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 18px;
  background: conic-gradient(from var(--pr-angle), #0070f3, #7c3aed, #06b6d4, #3291ff, #0070f3);
  filter: blur(22px); opacity: .5; animation: pr-spin 6s linear infinite, pr-glow 3s ease-in-out infinite;
}
.pr-plan.featured .pr-flag { background: linear-gradient(90deg, #0070f3, #7c3aed); color: #fff !important; box-shadow: 0 6px 18px -6px rgba(0, 112, 243, .7); }
.pr-plan.featured .btn.primary { background: linear-gradient(90deg, #0070f3, #6d3df0); border-color: transparent; color: #fff; }
.pr-plan.featured .btn.primary:hover { opacity: .9; }
.pr-plan.featured h2 { color: var(--text); }
.pr-plan.featured .checks li::before { color: var(--accent); opacity: 1; }
.hp-price.featured { border: 1.5px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(135deg, #0070f3, #7c3aed, #06b6d4) border-box; box-shadow: 0 20px 50px -28px rgba(0, 112, 243, .8); }
@media (max-width: 620px) { .pr-plan.featured { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pr-plan.featured, .pr-plan.featured::before { animation: none; } }/* Correctif : fond intérieur au-dessus du halo, halo seulement autour du cadre. */
.pr-plan.featured { background: conic-gradient(from var(--pr-angle), #0070f3, #7c3aed, #06b6d4, #3291ff, #0070f3) border-box; }
.pr-plan.featured::before { z-index: -2; }
.pr-plan.featured::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 14.5px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg)), var(--bg) 45%); }
html[data-theme="light"] .pr-plan.featured::before { opacity: .3; animation: pr-spin 6s linear infinite; }
@media (prefers-color-scheme: light) { html[data-theme="system"] .pr-plan.featured::before { opacity: .3; animation: pr-spin 6s linear infinite; } }
/* ---------- Espace serveur (dashboard client) ---------- */
.dash { display: flex; flex-wrap: wrap; align-items: flex-start; flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; }
.dside { flex: 1 1 230px; max-width: 260px; position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 24px 14px 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.dside-guild { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius); color: var(--text); }
.dside-guild:hover { background: var(--surface-2); color: var(--text); }
.dside-guild img, .dside-guild .avatar { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
.dside-guild div { display: flex; flex-direction: column; min-width: 0; }
.dside-guild strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dside-guild small { font-size: 12px; color: var(--muted); }
.dside nav { display: flex; flex-direction: column; gap: 1px; }
.dside nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: 14px; }
.dside nav a .ico { width: 16px; height: 16px; }
.dside nav a:hover { background: var(--surface-2); color: var(--text); }
.dside nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); font-weight: 500; }
.dside-label { margin: 16px 10px 6px; font: 500 11px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.dside-more { font-size: 13px !important; }
.dside-switch { margin-top: 8px; padding: 0 10px; font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin: 0 4px; background: var(--line-2); }
.dot.on { background: #22c55e; }
.dot.setup { background: #f59e0b; }
.dot.locked { background: transparent; border: 1.5px solid var(--faint); width: 7px; height: 7px; }
.dmain { flex: 999 1 560px; min-width: 0; padding: 36px 32px 80px; display: flex; flex-direction: column; gap: 20px; }
.dhead h1 { margin: 0; font-size: 30px; letter-spacing: -0.04em; }
.dhead p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 70ch; }
.dsec-head { margin-top: 18px; }
.dsec-head h2 { margin: 0; font-size: 20px; }
.dsec-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .dside { position: static; max-width: none; max-height: none; flex-basis: 100%; padding: 16px; } .dside nav { flex-direction: row; flex-wrap: wrap; gap: 4px; } .dside-label { width: 100%; margin: 8px 6px 2px; } .dmain { padding: 20px 16px 60px; } }

/* Pour bien démarrer */
.start { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 22px 24px; }
.start-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.start-head h2 { margin: 0; font-size: 18px; }
.start-head span { font: 500 13px var(--f-mono); color: var(--muted); }
.start-bar { height: 6px; border-radius: 3px; background: var(--surface-2); margin: 14px 0 6px; overflow: hidden; }
.start-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .4s; }
.start-bar i.w0 { width: 4%; } .start-bar i.w25 { width: 25%; } .start-bar i.w50 { width: 50%; } .start-bar i.w75 { width: 75%; } .start-bar i.w100 { width: 100%; }
.start ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.start li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.start li:first-child { border-top: 0; }
.start li > div { flex: 1; min-width: 0; }
.start li strong { font-weight: 500; font-size: 15px; }
.start li p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.start-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; position: relative; }
.start li.done .start-check { background: #22c55e; border-color: #22c55e; }
.start li.done .start-check::after { content: ""; position: absolute; left: 6px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.start li.done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--text); transition: border-color .15s; }
.stat:hover { border-color: var(--line-2); color: var(--text); }
.stat span { font-size: 13px; color: var(--muted); }
.stat strong { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Cartes de modules */
.mcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.mcard:hover { border-color: var(--line-2); box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .35); }
.mcard.on { border-color: color-mix(in srgb, #22c55e 35%, var(--line)); }
.mcard.setup { border-color: color-mix(in srgb, #f59e0b 45%, var(--line)); }
.mcard.soon { opacity: .55; }
.mcard-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mcard-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.mcard.on .mcard-ico { background: color-mix(in srgb, #22c55e 14%, var(--bg)); color: #16a34a; }
.mcard.setup .mcard-ico { background: color-mix(in srgb, #f59e0b 16%, var(--bg)); color: #d97706; }
.mcard h3 { margin: 16px 0 4px; font-size: 16px; }
.mcard p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; }
.mcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; min-height: 32px; }
.mcard-foot form { margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill .ico { width: 12px; height: 12px; }
.pill.on { background: color-mix(in srgb, #22c55e 15%, var(--bg)); color: #16a34a; }
.pill.setup { background: color-mix(in srgb, #f59e0b 18%, var(--bg)); color: #b45309; }
html[data-theme="dark"] .pill.on { color: #4ade80; } html[data-theme="dark"] .pill.setup { color: #fbbf24; }
.switch { width: 40px; height: 24px; border-radius: 999px; border: none; padding: 0; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .2s; }
.switch[aria-checked="true"] { background: #22c55e; }
.switch[aria-checked="true"] span { left: 19px; }

/* Étapes des pages de configuration */
.step { display: flex; flex-direction: column; gap: 10px; }
.step-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.step-head h2 { margin: 2px 0 2px; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-head p { margin: 0; color: var(--muted); font-size: 14px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font: 600 14px var(--f-mono); background: var(--text); color: var(--bg); position: relative; }
.step-n.done { background: #22c55e; }
.step-n.done::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: translateY(-2px) rotate(45deg); }
.panel { border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); padding: 24px; }
.editor { grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; }
.editor-main { gap: 16px; }
.editor-preview { top: 84px; }
.editor-preview .eyebrow { color: var(--text); }
.advanced { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 0 14px; width: 100%; max-width: 720px; }
.advanced summary { cursor: pointer; padding: 12px 0; font-size: 14px; color: var(--muted); list-style: none; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: "+ "; }
.advanced[open] summary::before { content: "– "; }
.advanced[open] { padding-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.inline-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; width: 100%; }
.inline-row select { flex: 1 1 240px; }
.wl-form { gap: 16px; align-items: stretch; }
.wl-form .step { align-items: flex-start; }
.save-bar { position: sticky; bottom: 0; z-index: 5; padding: 14px 0; background: linear-gradient(180deg, transparent, var(--bg) 40%); }
.module-bar { border-radius: var(--r-lg); background: var(--surface); border-color: var(--line); }
.module-bar.on { border-color: color-mix(in srgb, #22c55e 35%, var(--line)); background: var(--surface); }
.btn-row { background: var(--surface); }
.type-card { flex-direction: row; }
.type-mods { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; align-items: center; }
.type-mods em { font-style: normal; font-size: 12px; color: var(--muted); margin-right: 2px; }
.type-mods b { font-weight: 500; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.radio-card { border-color: var(--line); background: var(--bg); border-radius: var(--r-lg); }
.radio-card:has(input:checked) { border-color: var(--text); background: var(--surface); }
.brand-pv { display: flex; gap: 14px; padding: 18px 16px; border-radius: 10px; background: #313338; font-family: "Segoe UI", system-ui, sans-serif; margin-top: 10px; }
.brand-pv .bot-avatar { flex-shrink: 0; }
.brand-pv > div { flex: 1; min-width: 0; }