/* Polices hébergées localement (licence SIL OFL) : aucune requête vers des serveurs tiers */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2'); 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; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces-latin-wght-italic.woff2') format('woff2'); 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; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces-latin-ext-wght-italic.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); 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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0b0c14;
  --bg-2: #11131f;
  --card: #161929;
  --line: #262a44;
  --text: #f1f2fa;
  --muted: #9a9fc2;
  --accent: #ff5d73;
  --accent-2: #8b6bff;
  --gold: #f6c453;
  --ok: #3ddc97;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
em { font-style: italic; }

/* Typographie */
h1, h2, h3, .wordmark { font-family: var(--serif); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 em, h2 em, .wordmark em { font-weight: 600; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
code { background: rgba(139, 107, 255, 0.14); color: #cfc6ff; padding: 2px 8px; border-radius: 6px; font-size: 0.9em; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 12, 20, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.wordmark { font-size: 1.6rem; }
.wordmark.small { font-size: 1.25rem; }
.links { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.links a:not(.btn):hover { color: var(--text); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 0.95rem var(--sans); color: #fff; background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(139, 107, 255, 0.6); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); box-shadow: none; }
.btn.gold { background: linear-gradient(120deg, #f6c453, #ff9f5a); color: #1d1400; }
.btn.small { padding: 8px 18px; font-size: 0.88rem; }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; background: radial-gradient(55% 70% at 50% 0%, rgba(139, 107, 255, 0.22), transparent 70%), radial-gradient(35% 50% at 85% 20%, rgba(255, 93, 115, 0.12), transparent 70%); }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); }
.lead { max-width: 620px; margin: 24px auto 36px; color: var(--muted); font-size: 1.12rem; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Égaliseur décoratif */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 64px; margin-top: 56px; }
.eq span { width: 6px; height: 100%; border-radius: 3px; background: linear-gradient(to top, var(--accent), var(--accent-2)); transform-origin: bottom; animation: bounce var(--d) ease-in-out var(--o) infinite alternate; opacity: 0.85; }
@keyframes bounce { from { transform: scaleY(0.12); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .eq span { animation: none; transform: scaleY(0.5); } }

/* Statistiques */
.band { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; padding: 36px 0; text-align: center; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 0.9rem; }

/* Sections */
.block { padding: 80px 0; }
.block.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.sub { color: var(--muted); margin-bottom: 40px; max-width: 560px; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 800px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.radio .genre { color: var(--muted); font-size: 0.92rem; }
.radio .meta { color: var(--muted); font-size: 0.85rem; margin: 14px 0 22px; }
.step .n { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--accent); }
.step h3 { margin: 6px 0 8px; font-family: var(--sans); font-size: 1.15rem; letter-spacing: 0; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Tarifs */
.plan.gold { border-color: rgba(246, 196, 83, 0.6); background: linear-gradient(180deg, rgba(246, 196, 83, 0.09), var(--card)); }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: 800; margin: 6px 0 18px; line-height: 1.1; }
.price small { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* Compte */
.page { padding: 56px 0 96px; min-height: 68vh; }
.login { text-align: center; max-width: 520px; margin: 40px auto; }
.login h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 18px; }
.login p { color: var(--muted); margin-bottom: 28px; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.user { display: flex; align-items: center; gap: 14px; }
.user img { width: 48px; height: 48px; border-radius: 50%; }
.user strong { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.user span, .hint { color: var(--muted); font-size: 0.88rem; }
.guilds { display: grid; gap: 12px; }
.guild { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-radius: 16px; }
.gicon { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-weight: 700; color: var(--muted); object-fit: cover; }
.guild .info { flex: 1; min-width: 180px; }
.guild .name { font-weight: 600; }
.badge { display: inline-block; padding: 2px 12px; margin-top: 4px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--bg-2); color: var(--muted); }
.badge.premium { background: rgba(246, 196, 83, 0.14); color: var(--gold); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.notice { padding: 14px 20px; border-radius: 14px; margin-bottom: 22px; border: 1px solid var(--line); background: var(--card); font-size: 0.95rem; }
.notice.ok { border-color: var(--ok); }
.notice.err { border-color: var(--accent); }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 0.85rem; }
.foot-in { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }

@media (max-width: 640px) { .hide-sm { display: none; } .block { padding: 56px 0; } .hero { padding: 64px 0 48px; } }

/* Statuts */
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 0.88rem; font-weight: 600; margin-bottom: 18px; }
.status-pill i, .state i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.status-pill[data-global-status="online"] i, .state[data-status="online"] i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status-pill[data-global-status="partial"] i { background: var(--gold); }
.status-pill[data-global-status="maintenance"] i, .state[data-status="maintenance"] i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.status-pill[data-global-status="offline"] i, .state[data-status="offline"] i { background: var(--accent); }
.maint-note { color: var(--gold); font-size: 0.92rem; margin: -6px auto 16px; max-width: 560px; }
.radio-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.radio .maint-note { margin: 8px 0 0; }
[hidden] { display: none !important; }

/* Administration */
.admin-title { font-size: 2.2rem; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab { background: none; border: 0; color: var(--muted); font: 600 0.95rem var(--sans); padding: 12px 18px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--text); border-color: var(--accent); }
.panel { display: none; }
.panel.active { display: block; }
.sys { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 18px; }
.sys-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 20px 24px; }
.sys-card .k { color: var(--muted); font-size: 0.85rem; }
.sys-card .v { font-weight: 600; font-size: 0.92rem; }
.sys-card .v.node { grid-column: 1 / -1; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.dot[data-ok="true"] { background: var(--ok); }
.admin-bots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.abot { display: grid; gap: 14px; align-content: start; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.metric strong { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.metric span { color: var(--muted); font-size: 0.72rem; }
.err-note { color: var(--accent); font-size: 0.85rem; }
.state.big { font-size: 0.9rem; }
.form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input, select { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 10px 14px; font: 0.92rem var(--sans); min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.form input { flex: 1; min-width: 140px; }
.form input[type="number"] { flex: 0 0 76px; min-width: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.check { color: var(--muted); font-size: 0.9rem; display: inline-flex; gap: 6px; align-items: center; }
.logbox { background: #07080f; border: 1px solid var(--line); border-radius: 14px; height: 60vh; overflow: auto; padding: 12px; font: 0.8rem/1.55 ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.log { display: flex; gap: 12px; white-space: pre-wrap; word-break: break-word; }
.log .t { color: #5d6390; flex: none; }
.log .src { color: var(--accent-2); flex: none; min-width: 90px; }
.log.warn .msg { color: var(--gold); }
.log.error .msg { color: #ff7b8d; }
.two-col { margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.list { display: grid; gap: 8px; margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border: 0; }
.result { background: var(--bg-2); border-radius: 12px; padding: 12px; margin-top: 12px; user-select: all; font-size: 0.9rem; }
.panel .cards { margin-top: 0; }
.panel h3 { margin-bottom: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--ok); padding: 12px 22px; border-radius: 999px; font-size: 0.92rem; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.toast.err { border-color: var(--accent); }
@media (max-width: 640px) { .metrics { grid-template-columns: repeat(3, 1fr); } }

/* Panel d'un serveur */
.back { display: inline-block; color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.sec { font-size: 1.5rem; margin: 32px 0 14px; }
.premium-box { display: grid; gap: 16px; }
.premium-box.on { border-color: rgba(246, 196, 83, 0.5); }
.code-form { padding-top: 14px; border-top: 1px solid var(--line); }
.server-bots { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.sbot { display: grid; gap: 18px; align-content: start; }
.ctrl { display: grid; gap: 8px; }
.ctrl .k { color: var(--muted); font-size: 0.85rem; }
.ctrl .k strong { color: var(--text); }
.ctrl select { flex: 1; min-width: 160px; }
.row-ctrl { grid-template-columns: 1fr auto; align-items: center; }
.badge.on { background: rgba(61, 220, 151, 0.14); color: var(--ok); }
input[type="range"] { width: 100%; accent-color: var(--accent-2); padding: 0; border: 0; background: none; }
.switch { position: relative; width: 48px; height: 28px; display: inline-block; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; transition: background 0.2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform 0.2s, background 0.2s; }
.switch input:checked + span { background: rgba(61, 220, 151, 0.25); border-color: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); background: var(--ok); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: 0.5; }

/* Pages légales */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 30px 0 10px; font-family: var(--serif); }
.legal p, .legal li { color: #cfd2ec; font-size: 0.96rem; }
.legal p { margin-bottom: 10px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; margin-bottom: 10px; }
.legal a { color: #b9a9ff; text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.88rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { background: var(--bg-2); color: var(--text); }
.legal td { color: #cfd2ec; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); cursor: pointer; }
.terms input { margin-top: 3px; flex: none; accent-color: var(--accent-2); }
.terms a { color: #b9a9ff; text-decoration: underline; }

/* Support */
.support-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 24px; }
.stack { display: grid; gap: 14px; margin-top: 10px; }
.stack label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
textarea { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 10px 14px; font: 0.92rem/1.5 var(--sans); resize: vertical; width: 100%; }
textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.ticket-row { color: inherit; }
.ticket-row:hover strong { text-decoration: underline; }
.link { color: #b9a9ff; text-decoration: underline; }
.thread { display: grid; gap: 12px; margin: 22px 0; }
.msg { max-width: 760px; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.msg.staff { border-color: rgba(139, 107, 255, 0.5); background: rgba(139, 107, 255, 0.08); }
.msg .who { color: var(--muted); font-size: 0.8rem; margin-bottom: 6px; }
.msg .body { white-space: pre-wrap; word-break: break-word; font-size: 0.95rem; }

.support-admin { display: grid; gap: 18px; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.4fr); align-items: start; }
.ticket-item { cursor: pointer; }
.ticket-item:hover, .ticket-item.sel { background: rgba(139, 107, 255, 0.08); }
.count { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 0.72rem; margin-left: 4px; }
@media (max-width: 800px) { .support-admin { grid-template-columns: 1fr; } }

/* Offres et fonctions Premium */
.legal-note { font-size: 0.82rem; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 10px; margin-top: 8px; }
.plans { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan-opt { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-size: 0.92rem; }
.plan-opt:has(input:checked) { border-color: var(--gold); background: rgba(246, 196, 83, 0.07); }
.plan-opt input { accent-color: var(--gold); }
.deal { font-style: normal; background: rgba(61, 220, 151, 0.14); color: var(--ok); font-size: 0.74rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.trial { font-size: 0.88rem; color: var(--ok); }
.sched-row { padding: 6px 0; font-size: 0.9rem; }
.sched-form { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; align-items: end; margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sched-form > select, .sched-form .days, .sched-form > button { grid-column: 1 / -1; }
.sched-form label { display: grid; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { display: block; }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days span { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; cursor: pointer; color: var(--muted); }
.days input:checked + span { background: rgba(139, 107, 255, 0.2); border-color: var(--accent-2); color: var(--text); }
.days input:disabled + span { opacity: 0.5; cursor: not-allowed; }

.yearly { color: var(--muted); font-size: 0.92rem; margin: -8px 0 8px; }
.yearly strong { color: var(--text); }
.legal-box { max-width: 800px; margin: 32px auto 0; padding: 20px 24px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 14px; background: var(--card); }
.legal-box h3 { font-size: 1.05rem; margin-bottom: 6px; }
.legal-box p { color: #cfd2ec; font-size: 0.92rem; }
