/* Marvelous : nuit bleutée et dégradé Nitro (blurple, violet, rose). Titres en Bricolage Grotesque, texte en Geist. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/static/fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/static/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0b1a;
  --bg-raised: #14162d;
  --bg-sunk: #07081a;
  --hair: rgba(167, 139, 250, 0.12);
  --hair-strong: rgba(167, 139, 250, 0.24);
  --ink: #f3f2ff;
  --ink-soft: #d4d2f0;
  --muted: #9a98c0;
  --blurple: #5865f2;
  --accent: #8b5cf6;
  --accent-soft: #c4b5fd;
  --pink: #e879f9;
  --on-accent: #ffffff;
  --nitro: linear-gradient(100deg, #5865f2 0%, #8b5cf6 50%, #e879f9 100%);
  --ok: #57f287;
  --wait: #fbbf24;
  --bad: #f87171;
  --off: #7c7a9e;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.28s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.45s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
.menu-open body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-soft); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color 0.3s var(--ease); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font: 500 0.84em/1 var(--mono); }
::selection { background: rgba(139, 92, 246, 0.35); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 40; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- logo */
.logo .star-small { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .logo .star-main { transform-box: fill-box; transform-origin: center; animation: turn 0.9s var(--spring); }
}
@keyframes turn { from { transform: rotate(-90deg) scale(0.8); } to { transform: rotate(0) scale(1); } }

/* ---------------------------------------------------------------- navigation */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(10, 11, 26, 0.92); border-bottom: 1px solid var(--hair); }
.island {
  max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 28px;
  min-height: 72px; padding: 0 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.avatar { width: 20px; height: 20px; border-radius: 50%; }

.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair-strong); background: transparent; cursor: pointer; margin-left: auto; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.55s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 15; display: grid; align-content: center; padding: 120px 32px 48px;
  background: var(--bg);
  opacity: 0; transition: opacity 0.45s var(--ease); overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu:not(.is-open) { pointer-events: none; }
.menu.is-open { opacity: 1; }
.menu nav { display: grid; gap: 6px; }
.menu a { font: 800 40px/1.15 var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open a:nth-child(4) { transition-delay: 0.15s; }
.menu.is-open a:nth-child(5) { transition-delay: 0.2s; color: var(--accent-soft); }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.5s var(--ease), color 0.3s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-large { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--nitro); color: var(--on-accent); box-shadow: 0 8px 30px -8px rgba(139, 92, 246, 0.7); }
.btn-primary:hover { color: var(--on-accent); box-shadow: 0 10px 40px -6px rgba(232, 121, 249, 0.6); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--ink); border-color: var(--hair-strong); }
.btn-ghost:hover { color: var(--ink); border-color: rgba(139, 92, 246, 0.6); }
.btn .icon { flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--accent-soft); text-decoration: none; }
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------- messages */
.flashes { margin-top: 20px; display: grid; gap: 8px; }
.flash { padding: 13px 18px; border-radius: 10px; border: 1px solid var(--hair-strong); background: var(--bg-raised); }
.flash-ok { border-color: rgba(87, 242, 135, 0.45); }
.flash-bad { border-color: rgba(248, 113, 113, 0.55); }
.flash-info { border-color: rgba(139, 92, 246, 0.45); }

/* ---------------------------------------------------------------- apparitions */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- shaders */
.shader { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 98%); mask-image: linear-gradient(to bottom, #000 45%, transparent 98%); opacity: 0; transition: opacity 1.6s var(--ease); pointer-events: none; }
.shader.is-live { opacity: 1; }
.has-shader > .wrap { position: relative; }
.closing .shader { -webkit-mask-image: linear-gradient(to top, #000 45%, transparent 98%); mask-image: linear-gradient(to top, #000 45%, transparent 98%); }
.center .lead { margin-inline: auto; }

/* ---------------------------------------------------------------- héros */
.hero { position: relative; padding: 112px 0 120px; overflow: clip; }
.hero-grid { z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; position: relative; }
.hero-title { font: 800 clamp(42px, 5.6vw, 72px)/0.98 var(--display); letter-spacing: -0.04em; }
@media (min-width: 901px) { .hero-title .line > span { white-space: nowrap; } }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: block; }
.hero-title em, .grad { font-style: normal; background: var(--nitro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-soft); margin-top: 28px; max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 16px; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
  .js .hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
  .js .hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
  .js .hero-in { opacity: 0; animation: fade-up 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
  .js .msg-late { opacity: 0; animation: fade-up 0.9s var(--ease) 1.5s forwards; }
}

.d1 { --d: 0.45s; } .d2 { --d: 0.55s; } .d3 { --d: 0.7s; } .d4 { --d: 0.85s; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Fenêtre Discord du héros et scènes de démo : couleurs de l'appli Discord, accent du bot en --bot. */
.hero-visual { --bot: var(--accent); min-width: 0; }
.dc {
  display: grid; grid-template-columns: 60px 150px minmax(0, 1fr); min-height: 400px; border-radius: 16px; overflow: hidden;
  background: #313338; color: #dbdee1; font: 400 14px/1.45 var(--sans); border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 30px 90px -20px rgba(88, 101, 242, 0.6), 0 0 120px -40px rgba(232, 121, 249, 0.5);
}
.dc p { margin: 0; }
.dc-rail { background: #1e1f22; display: grid; gap: 8px; align-content: start; justify-items: center; padding: 12px 0; }
.dc-rail span { width: 40px; height: 40px; border-radius: 50%; background: #313338; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.dc-rail .cur { border-radius: 14px; background: var(--blurple); color: #fff; }
.dc-chans { background: #2b2d31; padding: 14px 8px; display: grid; gap: 2px; align-content: start; color: #949ba4; }
.dc-chans p { padding: 4px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-chans .dc-srv { color: #f2f3f5; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid #1f2023; border-radius: 0; margin-bottom: 6px; }
.dc-chans .dc-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; padding-top: 10px; }
.dc-chans .on { background: #404249; color: #f2f3f5; }
.dc-chat { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.dc-head { padding: 12px 16px; border-bottom: 1px solid #26282c; font-weight: 600; color: #f2f3f5; }
.dc-msgs { padding: 16px; display: grid; gap: 16px; align-content: end; }
.dc-compose { margin: 0 16px 16px; background: #383a40; border-radius: 8px; padding: 11px 14px; color: #6d6f78; }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.msg-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.av-user { background: #c27c0e; }
.bot-av { background: var(--bot); transition: background-color 0.3s var(--ease); }
.msg-body { min-width: 0; }
.msg-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.msg-name { color: #f2f3f5; font-weight: 600; }
.msg-name.bot-name-out { color: var(--bot); transition: color 0.3s var(--ease); }
.app-badge { background: var(--blurple); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.msg-time { color: #949ba4; font-size: 12px; }
.slash { font: 500 13px var(--mono); color: #c9cdfb; background: rgba(88, 101, 242, 0.22); padding: 1px 6px; border-radius: 4px; }
.card { margin-top: 6px; background: #2b2d31; border-left: 4px solid #4e5058; border-radius: 4px; padding: 10px 14px 12px; display: grid; gap: 6px; max-width: 440px; }
.bot-card { border-left-color: var(--bot); transition: border-color 0.3s var(--ease); }
.card-bad { border-left-color: #da373c; }
.card-ok { border-left-color: #23a55a; }
.card-title { font-weight: 700; color: #f2f3f5; }
.card-text { color: #dbdee1; }
.card-text code, .card-fields code { background: #1e1f22; padding: 1px 4px; border-radius: 3px; font-size: 0.85em; }
.card-fields { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; font-size: 13px; }
.card-fields dt { color: #f2f3f5; font-weight: 700; font-size: 12px; }
.card-fields dd { margin: 0; overflow-wrap: anywhere; }
.card-foot { color: #949ba4; font-size: 12px; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.dc-btn { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 4px; background: #4e5058; color: #fff; }
.dc-btn.blurple { background: var(--blurple); }
.dc-btn.green { background: #248046; }

/* Essai du nom dans le héros (affiché seulement avec JavaScript) */
.try { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 440px; margin-top: 28px; }
.hero-copy { min-width: 0; }
.try label { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.try-row { display: flex; gap: 8px; align-items: center; padding: 6px; background: var(--bg-raised); border: 1px solid var(--hair-strong); border-radius: 14px; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.try-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2); }
.try-row input { flex: 1; min-width: 0; min-height: 40px; background: transparent; border: 0; color: var(--ink); font: 600 16px var(--sans); padding: 0 10px; }
.try-row input:focus-visible { outline: none; }
.swatches { display: flex; gap: 4px; padding-right: 4px; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 3px var(--bg-raised); }
.sw-violet { background: #8b5cf6; } .sw-blurple { background: #5865f2; } .sw-rose { background: #e879f9; } .sw-vert { background: #23a55a; }
.swatches button[aria-pressed="true"] { border-color: #fff; }
.try[hidden] { display: none; }

/* ---------------------------------------------------------------- étapes, fonctionnalités */

.section { padding: 128px 0; }
.section-tight { padding: 40px 0 120px; }
.section-title { font: 800 clamp(32px, 4.4vw, 50px)/1.04 var(--display); letter-spacing: -0.035em; margin-bottom: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head .section-title { margin-bottom: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps > li { counter-increment: step; border-top: 1px solid var(--hair-strong); padding-top: 26px; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--nitro); font: 800 17px/1 var(--display); margin-bottom: 18px; color: #fff; }
.steps h3 { font: 600 19px/1.35 var(--sans); margin-bottom: 8px; }
.steps-compact { grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
.steps-compact > li { border: 0; padding: 0 0 0 40px; position: relative; font-size: 15px; }
.steps-compact > li::before { position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px; font-size: 13px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.feature { padding: 32px 0 36px; border-top: 1px solid var(--hair); }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(88, 101, 242, 0.16); color: #b9bdff; margin-top: 4px; }
.feature h3 { font: 600 19px/1.35 var(--sans); margin-bottom: 8px; }
.feature p { font-size: 15px; }

.closing { position: relative; overflow: clip; border-top: 1px solid var(--hair); }
.closing > .wrap { position: relative; z-index: 1; }
.closing .section-title { margin-bottom: 0; }
.closing .lead { margin-top: 18px; margin-bottom: 36px; }

/* ---------------------------------------------------------------- accueil */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 16px; }
.section-intro { max-width: 680px; margin-bottom: 48px; }
.section-intro .section-title { margin-bottom: 0; }
.section-intro .lead { margin-top: 16px; }
.section-intro.center { margin-inline: auto; }
.section-head .section-intro { margin-bottom: 0; }
.section-flush { padding-top: 0; }

.stats { border-block: 1px solid var(--hair); background: linear-gradient(90deg, rgba(88, 101, 242, 0.07), rgba(232, 121, 249, 0.07)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid p { display: grid; gap: 6px; padding: 28px 22px; border-left: 1px solid var(--hair); }
.stats-grid p:first-child { border-left: 0; padding-left: 0; }
.stats-grid b { font: 800 36px/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats-grid span { font-size: 14px; color: var(--muted); }

.demo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.demo-tabs { display: grid; gap: 8px; }
.demo-tab {
  display: grid; gap: 4px; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--hair);
  background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.demo-tab code { font: 500 13px/1.2 var(--mono); color: var(--accent-soft); }
.demo-tab strong { font-size: 16px; font-weight: 600; }
.demo-tab span { font-size: 14px; color: var(--muted); }
.demo-tab:hover { border-color: var(--hair-strong); }
.demo-tab[aria-selected="true"] { background: var(--bg-raised); border-color: rgba(139, 92, 246, 0.6); box-shadow: inset 3px 0 0 var(--accent); }
.demo-tab[aria-selected="true"] span { color: var(--ink-soft); }
.demo-stage {
  --bot: var(--accent); background: #313338; color: #dbdee1; font: 400 14px/1.45 var(--sans); border-radius: 16px; padding: 20px; min-height: 300px;
  border: 1px solid rgba(88, 101, 242, 0.35); box-shadow: 0 20px 70px -30px rgba(88, 101, 242, 0.7);
}
.demo-stage p { margin: 0; }
.dc-scene { display: grid; gap: 16px; }
.dc-scene[hidden] { display: none; }
.js .demo-stage .dc-scene:not([hidden]) { animation: fade-up 0.5s var(--ease); }

.steps-cards { gap: 16px; }
.steps-cards > li { border: 1px solid var(--hair); border-radius: 18px; background: var(--bg-raised); padding: 26px; display: grid; gap: 8px; align-content: start; }
.steps-cards > li::before { margin-bottom: 8px; }
.steps-cards h3 { margin-bottom: 0; }
.mini { margin-top: 10px; background: var(--bg-sunk); border: 1px solid var(--hair); border-radius: 10px; padding: 12px; font: 500 12px/1.5 var(--mono); color: var(--muted); display: grid; gap: 4px; }
.mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-strong { color: var(--ink); }
.mini-ok { color: var(--ok); }

.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; }
.module { background: var(--bg); padding: 28px; display: grid; gap: 10px; align-content: start; transition: background-color 0.3s var(--ease); }
.module:hover { background: var(--bg-raised); }
.module h3 { font: 600 18px/1.3 var(--sans); }
.module p { font-size: 15px; }
.module .commands { justify-content: flex-start; margin-top: 4px; }
.module .commands code { font-size: 12px; padding: 3px 7px; }

/* ---------------------------------------------------------------- tarifs */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan { padding: 32px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--hair-strong); border-radius: 14px; background: var(--bg-raised); }
.plan-best { background: linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box, var(--nitro) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 80px -30px rgba(139, 92, 246, 0.7); }
.plan h3 { font: 600 18px/1.3 var(--sans); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { font: 700 12px/1 var(--sans); color: #fff; background: var(--nitro); padding: 5px 10px; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: 10px; }
.amount { font: 800 60px/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.per { color: var(--muted); }
.plan .btn, .plan-form { margin-top: auto; }
.plan-form { display: grid; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.included { list-style: none; padding: 0; margin: 36px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.included li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.included .icon { color: var(--accent); flex: none; margin-top: 4px; }

/* ---------------------------------------------------------------- FAQ */
.faq details { border-top: 1px solid var(--hair); interpolate-size: allow-keywords; }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 48px 24px 0; position: relative; font-weight: 600; font-size: 17px; transition: color 0.3s var(--ease); }
.faq summary:hover { color: var(--accent-soft); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 34px/1 var(--display); color: var(--accent); transition: transform 0.6s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.6s var(--ease), content-visibility 0.6s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding: 0 0 26px; color: var(--ink-soft); max-width: 60em; }

/* ---------------------------------------------------------------- pages intérieures */
.page-head { position: relative; overflow: clip; padding: 104px 0 56px; }
.page-head-tight { padding: 72px 0 40px; }
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 + .muted, .page-head h1 + .lead { margin-top: 22px; }
.page-head h1 { font: 800 clamp(42px, 6vw, 72px)/1 var(--display); letter-spacing: -0.04em; }
.page-head .btn { margin-top: 32px; }

.feature-list { display: grid; }
.feature-row { display: grid; grid-template-columns: 40px 1fr minmax(0, 0.8fr); gap: 28px; padding: 36px 0; border-top: 1px solid var(--hair); align-items: start; }
.feature-row h2 { font: 700 30px/1.05 var(--display); letter-spacing: -0.03em; margin-bottom: 10px; }
.commands { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.commands code { display: inline-block; padding: 5px 9px; border-radius: 6px; background: rgba(88, 101, 242, 0.16); border: 1px solid rgba(88, 101, 242, 0.3); color: #c9cdfb; font-family: var(--mono); }

.prose { max-width: 70ch; }
.prose h2 { font: 700 24px/1.2 var(--display); letter-spacing: -0.02em; margin: 40px 0 10px; }
.prose p, .prose ul { color: var(--ink-soft); margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---------------------------------------------------------------- espace client */
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.account-head h1 { font-size: clamp(44px, 6vw, 64px); }
.who { display: flex; gap: 18px; align-items: center; }
.avatar-lg { border-radius: 50%; width: 52px; height: 52px; flex: none; box-shadow: 0 0 0 1px var(--hair-strong); }
.bot-id .avatar-lg { width: 60px; height: 60px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.panel {
  border: 1px solid var(--hair-strong); border-radius: 14px; padding: 32px; display: grid; gap: 20px; min-width: 0;
  background: var(--bg-raised);
}
.panel > h2 { font: 700 30px/1.05 var(--display); letter-spacing: -0.03em; }
.panel .plans { grid-template-columns: 1fr; }
.panel .included { grid-template-columns: 1fr; }
.bot-id { display: flex; gap: 16px; align-items: center; }
.bot-name { font-weight: 700; font-size: 19px; overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 4px; }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--off); }
.pill-ok { color: var(--ok); }
.pill-ok .dot { background: var(--ok); }
@media (prefers-reduced-motion: no-preference) { .pill-ok .dot, .pill-wait .dot { animation: pulse 2.2s var(--ease) infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.5); } 100% { box-shadow: 0 0 0 9px rgba(87, 242, 135, 0); } }
.pill-wait .dot { background: var(--wait); }
.pill-bad { color: var(--bad); }
.pill-bad .dot { background: var(--bad); }
.token-form { display: grid; gap: 10px; }
.token-form label { font-weight: 600; font-size: 15px; }
.token-form input {
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--hair-strong);
  background: var(--bg-sunk); color: var(--ink); font: 400 15px/1 ui-monospace, Menlo, Consolas, monospace;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.token-form input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); }
.token-form .btn { justify-self: start; }
.hint { display: flex; gap: 8px; align-items: center; }
.replace summary { cursor: pointer; color: var(--accent-soft); font-size: 15px; margin-bottom: 14px; }
.facts { margin: 0; display: grid; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------------------------------------------------------------- tableau de bord */
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 14px; }
.back .icon { transform: rotate(-135deg); }
.back:hover { color: var(--ink); }
.bot-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.guilds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guild-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--hair-strong);
  background: var(--bg-raised); color: var(--ink); text-decoration: none; transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.guild-card:hover { color: var(--ink); border-color: rgba(139, 92, 246, 0.55); }
.guild-card:active { transform: scale(0.99); }
.guild-card img, .guild-initial { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.guild-initial { display: grid; place-items: center; background: var(--nitro); border: 0; font: 700 20px/1 var(--display); color: #fff; }
.guild-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.guild-go { flex: none; margin-left: auto; color: var(--accent); transition: transform 0.3s var(--ease); }
.guild-card:hover .guild-go { transform: translateX(3px); }
.guilds-foot { margin-top: 22px; }
.empty { max-width: 560px; }
.empty .btn { justify-self: start; }

.dash-head { border-bottom: 1px solid var(--hair); padding: 28px 0 22px; }
.dash-head .back { margin-bottom: 10px; }
.dash-guild { display: flex; align-items: center; gap: 14px; }
.dash-guild img, .dash-guild .guild-initial { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.dash-guild h1 { font: 700 clamp(26px, 3.4vw, 34px)/1.05 var(--display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.dash-guild .pill { margin-top: 2px; font-size: 13px; }
.pill-off { color: var(--muted); }

.dash { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 120px; align-items: start; }
.dash-nav { position: sticky; top: 96px; display: grid; gap: 2px; }
.dash-nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--muted);
  text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.dash-nav a:hover { color: var(--ink); background: rgba(167, 139, 250, 0.04); }
.dash-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-raised); box-shadow: inset 2px 0 0 var(--accent); }
.dash-nav a[aria-current="page"] .icon { color: var(--accent-soft); }
.dash-nav .dash-help { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--hair); border-radius: 0; color: var(--muted); font-size: 14px; }
.dash-main { min-width: 0; max-width: 760px; }
.dash-title { margin-bottom: 28px; }
.dash-title h2 { font: 700 clamp(30px, 3.8vw, 40px)/1.04 var(--display); letter-spacing: -0.03em; margin-bottom: 8px; }
.dash-title h2 code { font-size: 0.6em; color: var(--accent-soft); }
.dash-title .back { margin-bottom: 8px; }
.dash-form { display: grid; gap: 22px; }

.group { border: 1px solid var(--hair-strong); border-radius: 14px; background: var(--bg-raised); padding: 6px 24px 22px; margin: 0; min-width: 0; display: grid; gap: 18px; }
.group legend { font: 700 22px/1 var(--display); letter-spacing: -0.02em; padding: 0 8px; margin-left: -8px; }
.group h3 { font: 700 22px/1 var(--display); letter-spacing: -0.02em; padding-top: 22px; }
.group-intro { margin-top: -6px; }
.words { margin-top: 22px; padding-bottom: 24px; }

.field { display: grid; gap: 7px; min-width: 0; }
.field > label { font-weight: 600; font-size: 15px; }
.field-row { gap: 0; }
.field-inline { grid-template-columns: minmax(0, 1fr) 160px; align-items: center; column-gap: 20px; }
.field-inline > label { font-weight: 500; }
.field-inline > .muted { grid-column: 1 / -1; margin-top: -2px; }
.input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--hair-strong);
  background: var(--bg-sunk); color: var(--ink); font: 400 15px/1.3 var(--sans);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
select.input {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a78bfa' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
select.input option:disabled { color: var(--off); }
.input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); }
.input-num { max-width: 160px; font-variant-numeric: tabular-nums; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rows { display: grid; gap: 10px; }
.color-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.input-color { width: 58px; height: 46px; padding: 4px; border-radius: 10px; border: 1px solid var(--hair-strong); background: var(--bg-sunk); cursor: pointer; }
.inline-num { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.inline-num .input-num { width: 84px; min-height: 38px; }

.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 42px; height: 24px; border-radius: 12px; background: var(--bg-sunk); border: 1px solid var(--hair-strong); flex: none; transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease); }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform 0.45s var(--spring), background-color 0.35s var(--ease); }
.switch input:checked + .switch-ui { background: rgba(139, 92, 246, 0.22); border-color: rgba(139, 92, 246, 0.7); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); background: var(--accent); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch-text { display: grid; gap: 2px; font-weight: 500; font-size: 15px; }

.picker { border: 1px solid var(--hair-strong); border-radius: 10px; background: var(--bg-sunk); overflow: hidden; }
.picker-search { width: 100%; min-height: 40px; border: 0; border-bottom: 1px solid var(--hair); background: transparent; color: var(--ink); padding: 0 14px; font: 400 14px/1 var(--sans); }
.picker-search:focus-visible { outline: none; background: rgba(167, 139, 250, 0.04); }
.picker-list { max-height: 220px; overflow-y: auto; padding: 6px; display: grid; gap: 1px; overscroll-behavior: contain; }
.picker-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; font-size: 14px; cursor: pointer; }
.picker-item[hidden] { display: none; }
.picker-item:hover { background: rgba(167, 139, 250, 0.05); }
.picker-item input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; margin: 0; }
.picker-item span { min-width: 0; overflow-wrap: anywhere; }
.picker-item:has(input:checked) { color: var(--accent-soft); }
.picker-list .muted { padding: 6px 8px; }
.role-dot { flex: none; }
.fold summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; align-items: baseline; gap: 10px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "+"; font: 400 22px/1 var(--display); color: var(--accent); width: 12px; transition: transform 0.4s var(--spring); }
.fold[open] summary::before { transform: rotate(45deg); }
.fold[open] summary { margin-bottom: 4px; }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
.grid-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.grid-table th, .grid-table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.grid-table thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.grid-table tbody th { font-weight: 600; }
.grid-table tbody th .small { display: block; font-weight: 400; }
.grid-table tr:last-child > * { border-bottom: 0; }
.grid-table .input-num { width: 96px; min-height: 40px; }

.save-bar {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, rgba(10, 11, 26, 0));
}
.save-bar p { margin-right: auto; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-soft); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.word-add { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.word-add .input { flex: 1 1 220px; width: auto; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips form { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 8px; border: 1px solid var(--hair-strong); background: var(--bg-sunk); font-size: 14px; }
.chips em { color: var(--accent-soft); font-style: normal; font-size: 12px; }
.chips button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.chips button:hover { color: var(--bad); background: rgba(248, 113, 113, 0.08); }

.facts-tight { margin-bottom: 22px; }
.cmd-filter { margin-bottom: 14px; }
.cmds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.cmd a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2px 20px; padding: 13px 4px; border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none; transition: background-color 0.3s var(--ease); }
.cmd a:hover { background: rgba(167, 139, 250, 0.03); color: var(--ink); }
.cmd code { color: var(--accent-soft); font-size: 14px; }
.cmd-desc { grid-column: 1; }
.cmd-rule { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.cmd .tag { font-size: 11px; padding: 3px 6px; margin-right: 4px; }
.cmd.depth-1 a { padding-left: 24px; }
.cmd.depth-2 a { padding-left: 44px; }
.cmd[hidden] { display: none; }
.cmd-kids { border-bottom: 1px solid var(--hair); }
.cmd:has(> .cmd-kids) > a { border-bottom: 0; padding-bottom: 4px; }
.cmd-kids summary { cursor: pointer; padding: 8px 4px 10px 24px; font-size: 13px; color: var(--muted); list-style: none; }
.cmd-kids summary::-webkit-details-marker { display: none; }
.cmd-kids summary::before { content: "+ "; color: var(--accent); }
.cmd-kids[open] summary::before { content: "− "; }
.cmd-kids ul { list-style: none; margin: 0; padding: 0; }
.cmd-kids .cmd:last-child a { border-bottom: 0; }
.reset-form { margin-top: 6px; }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
  .dash-nav {
    position: sticky; top: 64px; z-index: 6; display: flex; gap: 4px; overflow-x: auto; margin: 0 -16px; padding: 10px 16px;
    background: rgba(10, 11, 26, 0.96); border-bottom: 1px solid var(--hair); scrollbar-width: none;
  }
  .dash-nav::-webkit-scrollbar { display: none; }
  .dash-nav a { flex: none; padding: 8px 12px; font-size: 14px; }
  .dash-nav .dash-help { margin: 0; padding-top: 8px; border-top: 0; }
  .dash-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
}
@media (max-width: 640px) {
  .group { padding: 4px 16px 18px; }
  .row-2 { grid-template-columns: 1fr; }
  .cmd a { grid-template-columns: 1fr; }
  .cmd-rule { grid-column: 1; grid-row: auto; }
  .save-bar .btn { flex: 1 1 auto; }
  .save-bar p { display: none; }
  .input-num { max-width: none; }
  .grid-table .input-num { width: 72px; }
  .grid-table th, .grid-table td { padding: 10px 4px; }
  .inline-num { flex-wrap: wrap; }
  .field-inline { grid-template-columns: minmax(0, 1fr) 110px; }
}

/* ---------------------------------------------------------------- pied de page */
.site-footer { border-top: 1px solid var(--hair); padding: 72px 0 36px; background: rgba(7, 8, 26, 0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-grid .brand { margin-bottom: 14px; font-size: 21px; }
.footer-grid h2 { font: 700 13px/1 var(--sans); letter-spacing: 0.04em; color: var(--ink); margin-bottom: 16px; }
.footer-grid nav { display: grid; gap: 10px; align-content: start; }
.footer-grid nav a { color: var(--muted); text-decoration: none; font-size: 15px; width: fit-content; }
.footer-grid nav a:hover { color: var(--ink); }
.footer-note { margin-top: 48px; font-size: 13px; }

/* ---------------------------------------------------------------- petits écrans */
@media (max-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid, .account-grid { grid-template-columns: 1fr; gap: 56px; }
  .features, .modules { grid-template-columns: 1fr 1fr; }
  .demo { grid-template-columns: 1fr; }
  .dc { grid-template-columns: 60px minmax(0, 1fr); }
  .dc-chans { display: none; }
  .feature-row { grid-template-columns: 40px 1fr; }
  .commands { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .nav, .nav-cta { display: none; }
  .burger { display: block; }
  .island { min-height: 64px; padding: 0 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 88px 0; }
  .steps, .features, .modules, .plans, .included, .footer-grid { grid-template-columns: 1fr; }
  .dc { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .dc-rail, .dc-chans { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid p { padding: 18px 14px; }
  .stats-grid p:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-grid b { font-size: 28px; }
  .demo-stage { padding: 14px; }
  .panel, .plan { padding: 24px; }
  .actions .btn { width: 100%; }
}
@media (min-width: 901px) and (max-width: 1180px) { .dc { grid-template-columns: 60px minmax(0, 1fr); } .dc-chans { display: none; } }
