:root {
    /* Palette "Alchimiste" (identique au dashboard) */
    --nuit: #13111c;
    --creuset: #1c1928;
    --alambic: #262236;
    --trait: #332e47;
    --parchemin: #ece6f5;
    --cendre: #9a93ad;
    --or: #e8b04b;
    --or-sombre: #b8862f;
    --vif: #4fd18b;
    --braise: #f0616d;
    --blurple: #5865f2;

    --display: 'Syne', 'Manrope', system-ui, sans-serif;
    --body: 'Manrope', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --radius: 14px;
    --radius-sm: 9px;
    --max: 1120px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(232, 176, 75, .10), transparent 60%),
        radial-gradient(700px 500px at -10% 30%, rgba(124, 92, 255, .08), transparent 60%),
        var(--nuit);
    color: var(--parchemin);
    font: 16px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--or); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--alambic); border: 1px solid var(--trait); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--cendre); }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: var(--or); color: var(--nuit); }
.btn-gold:hover { background: #f0bf62; }
.btn-ghost { color: var(--parchemin); border-color: var(--trait); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--cendre); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ── Navigation ── */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; max-width: var(--max); margin: 0 auto; padding: 14px 20px; backdrop-filter: blur(12px); background: rgba(19, 17, 28, .72); border-bottom: 1px solid rgba(51, 46, 71, .6); }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--parchemin); font: 700 18px var(--display); }
.brand:hover { text-decoration: none; }
.brand b { color: var(--or); }
.brand svg { width: 26px; height: 26px; fill: none; stroke: var(--or); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--cendre); font-weight: 600; font-size: 14px; }
.nav nav a:hover { color: var(--parchemin); text-decoration: none; }
.nav .btn { padding: 8px 16px; font-size: 14px; }

main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 72px 0 56px; }
.eyebrow { margin: 0 0 14px; color: var(--or); font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.02; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--or); }
.lead { margin: 20px 0 28px; color: var(--cendre); font-size: 18px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.namer { display: flex; flex-direction: column; gap: 6px; margin-top: 32px; max-width: 320px; }
.namer span { color: var(--cendre); font-size: 13px; font-weight: 600; }
.namer input { background: var(--alambic); border: 1px solid var(--trait); border-radius: var(--radius-sm); padding: 11px 14px; color: var(--parchemin); font: 600 15px var(--body); outline: none; transition: border-color .15s; }
.namer input:focus { border-color: var(--or); }

/* ── Faux Discord ── */
.discord { background: #313338; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .05); font-family: 'gg sans', 'Noto Sans', var(--body); font-size: 15px; color: #dbdee1; overflow: hidden; transform: rotate(.6deg); }
.discord-bar { padding: 12px 16px; border-bottom: 1px solid #1f2023; font-weight: 700; color: #f2f3f5; }
.discord-bar .hash { color: #80848e; margin-right: 4px; }
.msg { display: flex; gap: 14px; padding: 12px 16px; }
.msg p { margin: 2px 0 0; }
.msg code { background: #2b2d31; border-color: #1e1f22; color: #dbdee1; }
.msg-body { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: center; gap: 6px; }
.msg-head b { color: #f2f3f5; }
.msg-head time { color: #949ba4; font-size: 12px; }
.tag { background: var(--blurple); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; }
.avatar.user { background: #4e5058; }
.avatar.bot { background: linear-gradient(135deg, var(--or), #c97a2a); color: var(--nuit); font-family: var(--display); }
.embed { margin-top: 6px; background: #2b2d31; border-left: 4px solid var(--or); border-radius: 4px; padding: 12px 16px; max-width: 420px; }
.embed-title { font-weight: 700; color: #f2f3f5; margin-bottom: 8px; }
.embed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.embed li { display: flex; align-items: center; gap: 8px; }
.on { width: 8px; height: 8px; border-radius: 50%; background: var(--vif); box-shadow: 0 0 8px var(--vif); }
.mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; padding: 0 3px; border-radius: 3px; }
.embed-foot { margin-top: 10px; font-size: 12px; color: #949ba4; }
.gold { color: var(--or); }
.msg.system { align-items: center; background: rgba(240, 97, 109, .07); border-top: 1px solid #1f2023; font-size: 14px; }
.shield { flex: 0 0 40px; text-align: center; font-size: 18px; }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--trait); border-radius: var(--radius); background: var(--creuset); }
.stats div { padding: 22px; text-align: center; }
.stats div + div { border-left: 1px solid var(--trait); }
.stats b { display: block; font: 800 30px/1.2 var(--body); letter-spacing: -0.02em; color: var(--or); }
.stats span { color: var(--cendre); font-size: 14px; }

/* ── Sections ── */
.section { padding: 88px 0 0; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.section-lead { color: var(--cendre); margin: 10px 0 0; max-width: 40em; }
.narrow { max-width: 760px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.features article { background: var(--creuset); border: 1px solid var(--trait); border-radius: var(--radius); padding: 24px; transition: border-color .2s; }
.features article:hover { border-color: rgba(232, 176, 75, .45); }
.features article.wide { grid-column: span 3; background: linear-gradient(120deg, rgba(232, 176, 75, .09), var(--creuset) 55%); }
.features h3 { font-size: 18px; margin-bottom: 8px; }
.features p { margin: 0; color: var(--cendre); font-size: 15px; }
.features p b { color: var(--parchemin); }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); border: 1px solid var(--trait); background: var(--creuset); }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(232, 176, 75, .14); color: var(--or); font: 800 16px var(--body); margin-bottom: 16px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--cendre); font-size: 15px; }

/* ── Tarifs ── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 36px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--creuset); border: 1px solid var(--trait); border-radius: var(--radius); padding: 26px 22px 22px; }
.plan.highlight { border-color: var(--or); box-shadow: 0 0 0 1px var(--or), 0 20px 60px -20px rgba(232, 176, 75, .35); }
.plan .badge { position: absolute; top: -11px; left: 22px; background: var(--or); color: var(--nuit); font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 6px; }
.plan h3 { font-size: 18px; }
.plan .tagline { color: var(--cendre); font-size: 14px; margin: 4px 0 0; min-height: 1.5em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 6px; font-family: var(--body); font-variant-numeric: tabular-nums; }
.plan .amount { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.plan .currency { font-size: 20px; font-weight: 700; color: var(--cendre); }
.plan .per { color: var(--cendre); font-size: 13px; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; font-size: 14px; color: var(--cendre); }
.plan li::before { content: '✓'; color: var(--vif); font-weight: 700; margin-right: 8px; }
.plan .btn { margin-top: auto; width: 100%; }

/* ── FAQ ── */
details { border-bottom: 1px solid var(--trait); padding: 18px 0; }
details:first-of-type { margin-top: 28px; border-top: 1px solid var(--trait); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--or); font: 700 20px/1 var(--display); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--cendre); }

.footer { max-width: var(--max); margin: 96px auto 0; padding: 28px 20px 40px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--trait); color: var(--cendre); font-size: 14px; }

:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
    .discord { transform: none; }
    .features { grid-template-columns: 1fr 1fr; }
    .features article.wide { grid-column: span 2; }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .nav nav { display: none; }
    .nav .btn { margin-left: auto; }
    main, .nav, .footer { padding-left: 16px; padding-right: 16px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats div:nth-child(3) { border-left: 0; }
    .stats div:nth-child(n+3) { border-top: 1px solid var(--trait); }
    .features { grid-template-columns: 1fr; }
    .features article.wide { grid-column: auto; }
    .section { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
