/* AntiFast — site vitrine. Blanc, violet en accent, beaucoup d'air. */

/* Palette propre au site (toujours en clair) ; la page de connexion garde celle du panel. */
.site {
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: #faf9fd;
  --surface: #ffffff;
  --surface-2: #f4f2fa;
  --border: #ebe8f2;
  --border-strong: #dcd8e8;
  --text: #15131d;
  --text-2: #4a4659;
  --muted: #7b778e;
  --brand: #6b4eff;
  --brand-strong: #5a3cf0;
  --brand-text: #5433e6;
  --brand-soft: #f2eeff;
  --brand-tint: #e7e0ff;
  --brand-ring: rgba(107, 78, 255, 0.32);
  --shadow: 0 1px 2px rgba(21, 19, 29, 0.04), 0 10px 30px rgba(42, 24, 120, 0.07);
  --shadow-lg: 0 24px 64px rgba(42, 24, 120, 0.16);
  scroll-behavior: smooth;
}

body { background: var(--surface); font-size: 16px; line-height: 1.65; }
.site body { font-size: 16.5px; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--text); color: var(--surface); border-radius: 6px; }
.skip:focus { left: 12px; }

h1 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(27px, 3vw, 37px); line-height: 1.14; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
h3 { font-size: 17px; letter-spacing: -0.01em; font-weight: 600; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--brand-text); margin-bottom: 16px; }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--text-2); max-width: 600px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fineprint { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-text); }
.text-link:hover { text-decoration: none; }
.text-link svg { transition: transform 0.15s; }
.text-link:hover svg { transform: translateX(3px); }
.link-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.section-link { margin-top: 40px; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); border: 1px solid var(--border-strong); vertical-align: 2px; white-space: nowrap; }

/* Boutons du site : un peu plus généreux que ceux du panel. */
.site .btn { border-radius: 8px; font-weight: 600; }
.site .btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.site .btn-primary { box-shadow: 0 1px 2px rgba(42, 24, 120, 0.25); }
.btn.is-disabled { opacity: 0.55; pointer-events: none; }
.btn-light { background: #fff; border-color: #fff; color: var(--brand-text); }
.btn-light:hover { background: #f4f1ff; border-color: #f4f1ff; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

/* ─── En-tête ─── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 40px; height: 70px; }
.site-nav { display: flex; gap: 26px; flex: 1; }
.site-nav a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current='page'] { color: var(--brand-text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

/* ─── Accueil : hero ─── */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 510px); gap: 64px; align-items: center; }
.hero-copy h1 { max-width: 620px; }
.hero-visual { position: relative; padding: 28px; border-radius: 20px; background: var(--brand-soft); }
.hero-visual::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--brand-tint); pointer-events: none; }

/* Cadre de salon Discord (toujours sombre, comme l'application). */
.dc-frame { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid #1f2023; box-shadow: var(--shadow-lg); background: #313338; }
.dc-frame-head { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; background: #313338; border-bottom: 1px solid #26272b; color: #f2f3f5; font-weight: 600; font-size: 15px; font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Arial, sans-serif; }
.dc-hash { color: #80848e; font-size: 20px; font-weight: 400; }
.dc-frame-body { display: flex; flex-direction: column; gap: 18px; max-height: none; border-radius: 0; padding: 18px 16px 22px; }
.dc-frame .dc-embed { max-width: none; }
.dc-embed.dc-embed-high { border-left-color: #E5484D; }
.dc-embed.dc-embed-low { border-left-color: #E0A33A; }
/* Avatar du bot : pastille ronde, comme une vraie photo de profil Discord. */
.dc-frame .dc-avatar { background: #ece8ff; padding: 3px; box-sizing: border-box; }

/* ─── En bref ─── */
.facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.facts-grid > div { padding: 30px 28px 32px; border-left: 1px solid var(--border); }
.facts-grid > div:first-child { border-left: 0; padding-left: 0; }
.facts-grid dt { font-weight: 600; font-size: 16px; }
.facts-grid dd { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.live-stats { padding: 0 0 24px; color: var(--muted); font-size: 14px; }

/* ─── Sections ─── */
.section { padding: 112px 0; }
.section.tight-top { padding-top: 16px; }
.section-muted { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section + .section:not(.section-muted):not(.tight-top) { border-top: 1px solid var(--border); }
.section-muted + .section { border-top: 0; }
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--text-2); font-size: 17.5px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; max-width: none; align-items: end; }
.split-head p:not(.eyebrow) { margin-top: 0; }
.section-note { margin-top: 40px; color: var(--muted); font-size: 15px; max-width: 680px; }
.side-note { margin-top: 16px; color: var(--text-2); }
.small-note { font-size: 14px; color: var(--muted); }

.narrow-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
.prose { color: var(--text-2); font-size: 16.5px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { color: var(--text); margin-top: 56px; font-size: 26px; }
.prose h3 { color: var(--text); margin-top: 32px; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--text); font-weight: 600; }
.prose code, .data-table code, .columns code, .section-head code { font-size: 0.86em; padding: 1px 6px; border-radius: 5px; background: var(--brand-soft); border: 1px solid var(--brand-tint); color: var(--brand-text); }

/* Déroulé d'une attaque */
.attack { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.attack-copy > p { margin-top: 18px; color: var(--text-2); }
.attack-copy .small-note { margin-top: 24px; }
.timeline { list-style: none; margin: 0; padding: 8px 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 92px; top: 22px; bottom: 22px; width: 1px; background: var(--border-strong); }
.timeline li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 32px; padding: 14px 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 88px; top: 23px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.timeline li.alert::before { border-color: var(--danger); background: var(--danger); }
.timeline li.ok::before { background: var(--brand); }
.timeline time { font-family: var(--mono); font-size: 13.5px; color: var(--muted); padding-top: 2px; }
.timeline p { color: var(--text-2); }
.timeline strong { color: var(--text); font-weight: 600; }

/* Index des modules */
.module-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.module-index > div { padding: 22px 22px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.module-index h3 { font-size: 15px; color: var(--brand-text); margin-bottom: 8px; }
.module-index ul { list-style: none; margin: 0; padding: 0; }
.module-index li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--border); }
.module-index li:first-child { border-top: 0; }
.module-index li span { font-weight: 500; font-size: 15px; }
.module-index li small { font-size: 13px; color: var(--muted); }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { padding-top: 20px; border-top: 1px solid var(--border-strong); }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-size: 13.5px; font-weight: 600; }
.steps h3 { margin-top: 14px; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }

/* Texte + visuel */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy h2 { max-width: 520px; }
.split-copy > p { margin-top: 18px; color: var(--text-2); }
.split-copy > .text-link { margin-top: 26px; }
.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); }
.checklist svg { flex-shrink: 0; margin-top: 4px; color: var(--brand); }
.checklist.two-cols { grid-template-columns: 1fr 1fr; gap: 14px 40px; }

/* Fenêtre du panel */
.app-window { margin: 0; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.app-window-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg); }
.app-window-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.app-window-bar em { margin-left: 10px; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pv-list { display: flex; flex-direction: column; }
.pv-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.pv-row:last-child { border-bottom: 0; }
.pv-switch { position: relative; width: 34px; height: 19px; border-radius: 999px; background: var(--border-strong); flex-shrink: 0; }
.pv-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.pv-switch.on { background: var(--brand); }
.pv-switch.on::after { left: 17px; }
.pv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pv-text strong { font-size: 14px; font-weight: 600; }
.pv-text small { font-size: 12.5px; color: var(--muted); }
.pv-select { padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.pv-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--surface-2); color: var(--text-2); }
.pv-badge.brand { background: var(--brand-soft); color: var(--brand-text); }
.pv-btn { padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: 6px; font-size: 12.5px; font-weight: 550; }
.pv-avatar { width: 30px; height: 30px; border-radius: 50%; }
.pv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pv-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 550; padding: 10px 18px; border-bottom: 1px solid var(--border); }
.pv-table td { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.pv-table tr:last-child td { border-bottom: 0; }
.pv-table td:last-child { text-align: right; }

/* Application Windows dessinée */
.desk { position: relative; margin: 0; padding-bottom: 36px; }
.desk-window { border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.desk-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 0 0 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.desk-bar img { width: 18px; height: 18px; }
.desk-ctrl { display: flex; margin-left: auto; height: 100%; }
.desk-ctrl i { width: 40px; display: grid; place-items: center; }
.desk-ctrl i::before { content: ''; width: 10px; height: 1.5px; background: var(--muted); }
.desk-body { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-height: 236px; }
.desk-nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--border); background: var(--bg); }
.desk-nav span { padding: 6px 10px; border-radius: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-nav span.on { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.desk-main { min-width: 0; }
.desk-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.desk-main .pv-table td { padding: 11px 18px; color: var(--text-2); }
.desk-main .pv-table td:first-child { color: var(--muted); width: 1%; }
.desk-toast { position: absolute; right: -14px; bottom: 0; display: flex; gap: 12px; align-items: flex-start; width: min(340px, 90%); padding: 14px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); }
.desk-toast img { width: 28px; height: 28px; flex-shrink: 0; }
.desk-toast strong { display: block; font-size: 14px; }
.desk-toast span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.app-hero .hero-visual { padding: 32px 36px 28px 28px; }

/* Colonnes de texte */
.columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.columns.two { grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.columns h3 { padding-top: 18px; border-top: 2px solid var(--brand-tint); }
.columns p, .columns ul { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }
.plain-list { padding-left: 20px; }
.plain-list li + li { margin-top: 8px; }
.plain-list li::marker { color: var(--brand); }

/* Comparatif */
.compare-wrap { background: var(--surface); }
.data-table.compare tbody th { width: 28%; }
.data-table.compare td { width: 36%; }
.data-table.compare .us { background: var(--brand-soft); color: var(--text); }
.data-table.compare thead .us { color: var(--brand-text); background: var(--brand-soft); }

/* Résumé des tarifs */
.pricing-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.pricing-band > div:first-child p { margin: 16px 0 24px; color: var(--text-2); max-width: 440px; }
.price-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-summary > div { padding: 28px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); }
.price-summary > div.featured { border-color: var(--brand); background: var(--brand-soft); }
.price-summary span { font-weight: 600; }
.price-summary strong { font-size: 42px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.15; }
.price-summary small { color: var(--muted); font-size: 14px; }

/* Conclusion : seul aplat violet du site */
.closing { padding: 0 0 112px; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 64px; border-radius: 22px; background: var(--brand); color: #fff; }
.closing-inner h2 { max-width: 560px; }
.closing-inner p { margin-top: 14px; color: rgba(255, 255, 255, 0.82); max-width: 540px; }
.closing-inner .actions { margin-top: 0; }
.section-muted + .closing { padding-top: 112px; }

/* ─── Pages intérieures ─── */
.page-hero { padding: 88px 0 72px; }
.page-hero.compact { padding: 72px 0 48px; }
.page-hero h1 { max-width: 820px; font-size: clamp(34px, 4.4vw, 50px); }
.page-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.page-toc a { padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.page-toc a:hover { border-color: var(--brand); color: var(--brand-text); text-decoration: none; }
.app-hero { padding-bottom: 96px; }

.table-block + .table-block { margin-top: 48px; }
.table-block h3 { margin-bottom: 14px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.data-table thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg); }
.data-table tbody th { font-weight: 600; width: 26%; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table td { color: var(--text-2); }
.data-table small { display: block; margin-top: 4px; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.data-table.commands tbody th { width: 38%; }
.data-table.commands code { white-space: nowrap; }
.callout-plain { margin-top: 48px; padding: 26px 30px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-tint); }
.callout-plain p { margin-top: 8px; color: var(--text-2); }

/* Profil Discord (rôles liés) */
.linked-result { max-width: 680px; margin-top: 32px; padding: 18px 22px; }
.linked-result[data-state="ok"] { background: var(--success-soft); border-color: var(--success); }
.linked-result[data-state="error"] { background: var(--danger-soft); border-color: var(--danger); }
.linked-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.linked-steps .callout-plain { margin-top: 0; }
.linked-steps h2 { font-size: 19px; }
@media (max-width: 860px) { .linked-steps { grid-template-columns: 1fr; } }

.definition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; margin: 0; }
.definition-grid > div { padding: 22px 0; border-top: 1px solid var(--border); }
.definition-grid dt { font-weight: 600; }
.definition-grid dd { margin: 6px 0 0; color: var(--text-2); font-size: 15.5px; }

/* Formules */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; }
.plan { padding: 36px; border: 1px solid var(--border-strong); border-radius: 16px; display: flex; flex-direction: column; background: var(--surface); }
.plan-featured { border-color: var(--brand); background: var(--brand-soft); }
.plan h2 { font-size: 20px; display: flex; align-items: center; }
.plan-featured .tag { color: var(--brand-text); border-color: var(--brand-tint); background: #fff; }
.plan-price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.plan-price strong { font-size: 50px; letter-spacing: -0.035em; font-weight: 600; line-height: 1; }
.plan-price span { color: var(--muted); }
.plan-note { margin: 14px 0 28px; color: var(--text-2); flex: 1; }
.plan .plan-list { margin-top: 22px; gap: 10px; }
.included { margin-top: 64px; max-width: 880px; }
.included h2 { font-size: 22px; }

/* FAQ */
.faq-group + .faq-group { margin-top: 64px; }
.faq-group h2 { font-size: 22px; margin-bottom: 8px; }
.faq-list { border-top: 1px solid var(--border-strong); }
.faq-list details { border-bottom: 1px solid var(--border-strong); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq-list summary:hover { color: var(--brand-text); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; flex-shrink: 0; width: 9px; height: 9px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq-list details p { padding: 0 40px 22px 0; color: var(--text-2); }

/* Documentation */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding-top: 16px; padding-bottom: 120px; }
.docs-nav { position: sticky; top: 94px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 120px); overflow-y: auto; }
.docs-nav-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.docs-nav a { padding: 6px 0 6px 14px; border-left: 2px solid var(--border); color: var(--text-2); font-size: 14.5px; }
.docs-nav a:hover { color: var(--text); text-decoration: none; }
.docs-nav a.active { border-left-color: var(--brand); color: var(--brand-text); font-weight: 550; }
.docs-body { max-width: 780px; }
.docs-body section { scroll-margin-top: 96px; }
.docs-body section + section { margin-top: 64px; padding-top: 8px; }
.docs-body section > h2:first-child { margin-top: 0; }
.docs-body h3[id] { scroll-margin-top: 96px; }
.note { padding: 16px 20px; border-radius: 12px; background: var(--warning-soft); color: var(--text); font-size: 15px; }
.troubleshoot dt { font-weight: 600; color: var(--text); margin-top: 20px; }
.troubleshoot dd { margin: 6px 0 0; }

/* Pages légales */
.legal { max-width: 760px; }
.legal h2 { font-size: 21px; margin-top: 44px; }
mark.todo { background: var(--warning-soft); color: var(--text); padding: 0 4px; border-radius: 4px; }

/* ─── Pied de page ─── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 64px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 320px; }
.footer-brand .footer-host { margin-top: 10px; }
.footer-grid h2 { font-size: 13.5px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--brand-text); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* ─── Connexion ─── */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-card { width: min(400px, 100%); padding: 40px 32px; text-align: center; }
.auth-card .brand { justify-content: center; }
.auth-card h1 { margin-top: 28px; font-size: 22px; letter-spacing: -0.02em; }
.auth-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.auth-card .btn { width: 100%; margin-top: 28px; }
.discord-btn { background: #5865f2; border-color: #5865f2; color: #fff; }
.discord-btn:hover { background: #4752c4; border-color: #4752c4; }
.auth-card .error { margin-top: 20px; text-align: left; }
.auth-card .back { display: inline-block; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.auth-card .powered { margin-top: 22px; padding: 0; font-size: 12.5px; }

/* ─── Responsive ─── */
/* Notes de mise à jour (/update) */
.changelog { list-style: none; padding: 0; margin: 0; }
.changelog-entry { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 40px 0; border-top: 1px solid var(--border); scroll-margin-top: 96px; }
.changelog-entry:first-child { border-top: 0; padding-top: 8px; }
.changelog-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; color: var(--muted); }
.changelog-meta .tag { margin-left: 0; color: var(--brand-text); border-color: var(--brand-tint); }
.changelog-version { font-size: 17px; font-weight: 600; color: var(--text); }
.changelog-app { font-size: 13px; }
.changelog-body h2 { font-size: 24px; }
.changelog-body ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.changelog-body li { display: flex; align-items: baseline; gap: 12px; color: var(--text-2); }
.change-type { flex-shrink: 0; min-width: 84px; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-align: center; background: var(--surface-2); color: var(--text-2); }
.change-type.new { background: var(--brand-soft); color: var(--brand-text); }
.change-type.improved { background: var(--success-soft); color: var(--success); }
.change-type.fixed { background: var(--warning-soft); color: var(--warning); }
@media (max-width: 760px) {
  .changelog-entry { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .changelog-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
}

/* État du service (/status) */
.status-banner { display: flex; align-items: center; gap: 18px; --state: var(--muted); --state-soft: var(--surface-2); }
.status-banner[data-state='operational'] { --state: var(--success); --state-soft: var(--success-soft); }
.status-banner[data-state='degraded'] { --state: var(--warning); --state-soft: var(--warning-soft); }
.status-banner[data-state='outage'], .status-banner[data-state='unreachable'] { --state: var(--danger); --state-soft: var(--danger-soft); }
.status-banner .status-dot { width: 18px; height: 18px; flex-shrink: 0; box-shadow: 0 0 0 7px var(--state-soft); }
.status-banner[data-state='loading'] .status-dot { animation: status-pulse 1.2s ease-in-out infinite; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--state, var(--muted)); }
@keyframes status-pulse { 50% { opacity: 0.35; } }
.status-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.status-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 24px 26px; border-left: 1px solid var(--border); }
.status-stats > div:first-child { border-left: 0; }
.status-stat-label { font-size: 14px; color: var(--muted); }
.status-stat-value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.status-stat-meta { font-size: 13.5px; color: var(--muted); }
.status-heading { margin: 64px 0 20px; font-size: 24px; }
.status-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.status-list:empty { display: none; }
.status-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 26px; border-top: 1px solid var(--border); }
.status-item:first-child { border-top: 0; }
.status-item-text p { margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.status-item-side { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.status-item-detail { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; min-width: 128px; padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--state-soft, var(--surface-2)); color: var(--state, var(--muted)); --state: var(--muted); --state-soft: var(--surface-2); }
.status-pill.operational { --state: var(--success); --state-soft: var(--success-soft); }
.status-pill.degraded { --state: var(--warning); --state-soft: var(--warning-soft); }
.status-pill.outage { --state: var(--danger); --state-soft: var(--danger-soft); }
@media (max-width: 900px) {
  .status-stats { grid-template-columns: 1fr 1fr; }
  .status-stats > div:nth-child(3) { border-left: 0; }
  .status-stats > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .status-banner { gap: 14px; }
  .status-banner .status-dot { width: 14px; height: 14px; box-shadow: 0 0 0 5px var(--state-soft); }
  .status-stats > div { padding: 18px; }
  .status-stat-value { font-size: 22px; }
  .status-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .status-item-side { flex-wrap: wrap; }
}

@media (max-width: 1024px) {
  .hero-grid, .split, .narrow-grid, .attack, .pricing-band, .split-head { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split-head { gap: 16px; }
  .split.reverse .split-copy { order: 0; }
  .hero-visual, .split-visual { max-width: 620px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .columns, .module-index { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-grid > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
  .docs-nav-title { width: 100%; margin-bottom: 0; }
  .docs-nav a { border-left: 0; padding: 2px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .desk-toast { right: 0; }
}
@media (max-width: 1080px) {
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 16px; }
  .header-inner { justify-content: space-between; gap: 12px; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 64px; }
  .hero-visual { padding: 14px; border-radius: 16px; }
  .app-hero .hero-visual { padding: 14px 14px 18px; }
  .section { padding: 72px 0; }
  .page-hero { padding: 56px 0 40px; }
  .steps, .columns, .columns.two, .facts-grid, .definition-grid, .plans, .checklist.two-cols, .module-index, .price-summary { grid-template-columns: minmax(0, 1fr); }
  .facts-grid > div { border-left: 0; padding: 22px 0; border-top: 1px solid var(--border); }
  .facts-grid > div:first-child { border-top: 0; }
  .plan { padding: 28px 24px; }
  .header-actions .btn-ghost:not(.nav-toggle) { padding: 0 10px; }
  .timeline::before { left: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 26px; }
  .timeline li::before { left: 0; top: 19px; }
  .desk-body { grid-template-columns: 1fr; }
  .desk-nav { display: none; }
  .desk-toast { position: relative; right: auto; margin: -20px 12px 0 auto; }
  .desk { padding-bottom: 0; }
  .closing { padding-bottom: 72px; }
  .section-muted + .closing { padding-top: 72px; }
  .closing-inner { padding: 36px 24px; border-radius: 18px; }
  .data-table.compare { min-width: 560px; }
  .pv-table th, .pv-table td { padding-left: 12px; padding-right: 12px; }
  .pv-table th:nth-child(3), .pv-table td:nth-child(3):not(:last-child) { display: none; }
}
