/* Page d'accueil de KairoBot v2. */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: var(--s-4);
}
.section-head { max-width: 640px; margin-bottom: var(--s-7); }
.section-head p { margin-top: var(--s-4); font-size: 1.0625rem; }

/* Hero -------------------------------------------------------------------- */
.hero { padding-block: var(--s-8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-7); align-items: center; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero-text h1 span { color: var(--accent); }
.hero-lead { margin-top: var(--s-5); font-size: 1.1875rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-actions .btn { height: 48px; padding-inline: var(--s-6); font-size: 1rem; }
.hero-note { margin-top: var(--s-4); font-size: 0.875rem; font-family: var(--font-mono); }

/* Démo Discord (reproduction de l'interface) ------------------------------ */
.dc {
  --dc-bg: #313338; --dc-side: #2b2d31; --dc-rail: #1e1f22;
  --dc-t1: #f2f3f5; --dc-t2: #dbdee1; --dc-t3: #949ba4;
  display: grid; grid-template-columns: 72px 200px minmax(0, 1fr);
  height: 600px; width: 100%;
  background: var(--dc-bg); border: 1px solid var(--border-strong); border-radius: 10px;
  font-family: "gg sans", "Noto Sans", Inter, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden; user-select: none;
  zoom: 0.72; /* réduit toute la fenêtre d'un bloc, proportions conservées */
}
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Colonne des serveurs */
.dc-rail { background: var(--dc-rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 12px; }
.dc-srv {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--dc-bg); color: var(--dc-t2); font-weight: 600; overflow: visible; transition: border-radius .2s, background .2s;
}
.dc-srv.home { background: #5865f2; color: #fff; }
.dc-srv.on { border-radius: 16px; background: #14151f; }
.dc-srv img { width: 34px; height: 34px; object-fit: contain; }
.dc-pill { position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 4px; height: 40px; background: #fff; border-radius: 0 4px 4px 0; }
.dc-sep { width: 32px; height: 2px; background: #35363c; }

/* Salons */
.dc-side { background: var(--dc-side); display: flex; flex-direction: column; min-width: 0; }
.dc-side-title { height: 48px; flex: none; display: flex; align-items: center; justify-content: space-between; padding-inline: 16px; color: var(--dc-t1); font-weight: 700; font-size: 1rem; border-bottom: 1px solid #1f2023; box-shadow: 0 1px 0 rgb(0 0 0 / .05); }
.dc-chans { flex: 1; padding: 8px 8px 0; overflow: hidden; }
.dc-cat { display: flex; align-items: center; gap: 2px; margin: 16px 0 4px 0; padding-left: 2px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--dc-t3); }
.dc-cat .ic { width: 12px; height: 12px; stroke-width: 3; }
.dc-chan { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 8px; margin-bottom: 2px; border-radius: 4px; color: var(--dc-t3); font-size: 1rem; font-weight: 500; }
.dc-chan .ic { width: 20px; height: 20px; color: #80848e; }
.dc-chan.on { background: #404249; color: #fff; }
.dc-chan.on .ic { color: #fff; }
.dc-user { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding-inline: 8px; background: #232428; }
.dc-user-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.dc-user-t b { color: var(--dc-t1); font-size: 0.875rem; font-weight: 600; }
.dc-user-t span { color: var(--dc-t3); font-size: 0.75rem; }
.dc-user-i { margin-left: auto; display: flex; gap: 10px; color: #b5bac1; }
.dc-user-i .ic { width: 18px; height: 18px; }

/* Zone centrale */
.dc-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dc-bar { height: 48px; flex: none; display: flex; align-items: center; gap: 8px; padding-inline: 16px; border-bottom: 1px solid #26272b; color: var(--dc-t1); font-size: 1rem; }
.dc-bar > .ic { color: #80848e; }
.dc-div { width: 1px; height: 24px; background: #4e5058; margin-inline: 4px; }
.dc-topic { color: var(--dc-t3); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-bar-i { margin-left: auto; display: flex; align-items: center; gap: 16px; color: #b5bac1; }
.dc-search { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 144px; height: 24px; padding: 0 6px 0 8px; background: #1e1f22; border-radius: 4px; color: var(--dc-t3); font-size: 0.8125rem; }
.dc-search .ic { width: 14px; height: 14px; }

.dc-feed { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 8px; }
.dc-date { display: flex; align-items: center; margin: 12px 16px 6px; border-top: 1px solid #3f4147; height: 0; justify-content: center; }
.dc-date span { background: var(--dc-bg); padding: 0 8px; font-size: 0.75rem; font-weight: 600; color: var(--dc-t3); }

.dm { display: flex; gap: 16px; padding: 2px 16px; margin-top: 14px; animation: dm-in 0.3s ease-out both; }
.dm:hover { background: #2e3035; }
@keyframes dm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dm-av { position: relative; flex: none; width: 40px; height: 40px; margin-top: 2px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; }
.dm-av img { width: 100%; height: 100%; object-fit: contain; }
.dm-av.bot { background: #14151f; }
.dm-av.bot img { width: 70%; height: 70%; }
.dm-av.sm { width: 32px; height: 32px; margin: 0; font-size: 0.875rem; }
.dm-av .st { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #23a559; border: 3px solid var(--dc-side); box-sizing: content-box; width: 10px; height: 10px; }
.dm-body { min-width: 0; flex: 1; }
.dm-head { display: flex; align-items: center; gap: 6px; line-height: 1.375; }
.dm-name { font-weight: 500; font-size: 1rem; color: var(--dc-t1); }
.dm-tag { display: inline-flex; align-items: center; height: 15px; padding: 0 5px; background: #5865f2; color: #fff; font-size: 0.625rem; font-weight: 600; border-radius: 3px; }
.dm-time { font-size: 0.75rem; color: var(--dc-t3); margin-left: 2px; }
.dm-text { color: var(--dc-t2); font-size: 1rem; line-height: 1.375; }
.dm-use { display: flex; align-items: center; gap: 6px; color: var(--dc-t3); font-size: 0.75rem; margin-bottom: 2px; }
.dm-use .mini { width: 16px; height: 16px; border-radius: 50%; background: #14151f; display: flex; align-items: center; justify-content: center; }
.dm-use .mini img { width: 11px; height: 11px; }
.dm-use b { color: #00a8fc; font-weight: 500; }
.cmd { color: #00a8fc; }

.emb { margin-top: 6px; max-width: 432px; background: #2b2d31; border: 1px solid #1e1f22; border-left: 4px solid var(--accent); padding: 8px 16px 16px 12px; border-radius: 4px; }
.emb-t { color: var(--dc-t1); font-weight: 600; font-size: 1rem; margin-top: 8px; }
.emb-d { color: var(--dc-t2); font-size: 0.875rem; margin-top: 8px; line-height: 1.3; }
.emb-d b { color: var(--dc-t1); }
.emb-f { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; margin-top: 8px; font-size: 0.875rem; }
.emb-f b { display: block; color: var(--dc-t1); font-size: 0.875rem; font-weight: 600; }
.emb-f span { color: var(--dc-t2); }
.bar { height: 10px; background: #1e1f22; margin-top: 12px; border-radius: 5px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 5px; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.emb-g { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; color: var(--dc-t2); font-size: 0.875rem; }
.btns { display: flex; gap: 8px; margin-top: 8px; }
.dbtn { padding: 0 16px; height: 32px; display: inline-flex; align-items: center; font-size: 0.875rem; font-weight: 500; color: #fff; background: #4e5058; border-radius: 3px; }
.dbtn.p { background: #5865f2; }
.rx { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; height: 24px; padding: 0 6px; background: rgb(88 101 242 / .3); border: 1px solid #5865f2; border-radius: 8px; font-size: 0.875rem; color: var(--dc-t2); }

.dc-typing { height: 24px; flex: none; padding-left: 16px; font-size: 0.8125rem; color: var(--dc-t2); display: flex; align-items: center; gap: 6px; visibility: hidden; }
.dc-typing.on { visibility: visible; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; background: var(--dc-t2); border-radius: 50%; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }

.dc-inputwrap { position: relative; flex: none; padding: 0 16px 24px; }
.dc-input { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #383a40; border-radius: 8px; font-size: 1rem; color: #6d6f78; }
.dc-input .plus { color: #b5bac1; width: 24px; height: 24px; }
.dc-input-txt { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-input-txt.typing { color: var(--dc-t2); }
.dc-input-i { margin-left: auto; display: flex; gap: 14px; color: #b5bac1; }
.dc-caret { display: none; width: 2px; height: 20px; background: var(--dc-t2); margin-left: -10px; animation: blink 1s steps(1) infinite; }
.dc-caret.on { display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }

/* Menu de saisie des commandes */
.dc-ac { position: absolute; left: 16px; right: 16px; bottom: 74px; background: #2b2d31; border-radius: 8px; padding: 8px; box-shadow: 0 0 0 1px #1e1f22; display: none; }
.dc-ac.on { display: block; animation: dm-in .15s ease-out both; }
.dc-ac-h { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--dc-t3); padding: 8px 8px 6px; }
.dc-ac-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 4px; background: #404249; font-size: 0.9375rem; }
.dc-ac-row img { width: 24px; height: 24px; border-radius: 50%; background: #14151f; padding: 4px; }
.dc-ac-row b { color: var(--dc-t1); font-weight: 600; }
.dc-ac-row span { color: var(--dc-t3); font-size: 0.875rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-ac-row em { font-style: normal; color: var(--dc-t3); font-size: 0.75rem; }

/* Membres */
.dc-members { background: var(--dc-side); padding: 8px 8px 0; overflow: hidden; }
.dc-mcat { margin: 20px 8px 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--dc-t3); }
.dc-mem { display: flex; align-items: center; gap: 12px; height: 42px; padding-inline: 8px; color: var(--dc-t3); font-size: 1rem; font-weight: 500; }
.dc-mem .dm-av { border: 0; }
.dc-mem .st { border-color: var(--dc-side); }

/* colonne des membres : masquée dans le hero (place limitée) */
.dc-members { display: none; }
@media (max-width: 800px) { .dc { grid-template-columns: 72px minmax(0, 1fr); } .dc-side { display: none; } .dc-topic, .dc-search, .dc-div { display: none; } }
@media (max-width: 520px) { .dc { grid-template-columns: minmax(0, 1fr); height: 520px; } .dc-rail { display: none; } .dc-bar-i { display: none; } }

/* Fonctionnalités -------------------------------------------------------- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}
.feature { padding: var(--s-6); background: var(--bg); transition: background-color 0.15s; }
.feature:hover { background: var(--surface); }
.feature:not(:nth-child(3n)) { border-right: 1px solid var(--border); }
.feature:nth-child(n+4) { border-top: 1px solid var(--border); }
.feature-ico {
  width: 40px; height: 40px; margin-bottom: var(--s-5);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); color: var(--accent);
}
.feature-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: square; }
.feature h3 { margin-bottom: var(--s-2); }
.feature p { font-size: 0.9375rem; }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.stat { padding: var(--s-7) var(--s-6); }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.stat-num span { color: var(--accent); }
.stat p { margin-top: var(--s-3); }

/* Appel final ------------------------------------------------------------ */
.cta { text-align: center; }
.cta .container { display: flex; flex-direction: column; align-items: center; }
.cta h2 { max-width: 20ch; }
.cta p { margin-top: var(--s-4); max-width: 46ch; font-size: 1.0625rem; }
.cta .btn { margin-top: var(--s-6); height: 52px; padding-inline: var(--s-7); font-size: 1.0625rem; }

/* Mobile ----------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { padding-block: var(--s-8) var(--s-7); }
  .hero-grid { grid-template-columns: 1fr; }
  .dc { zoom: 0.85; }
  .section { padding-block: var(--s-8); }
  .features { grid-template-columns: 1fr 1fr; }
  .feature { border-right: 0 !important; border-top: 0 !important; }
  .feature:nth-child(odd) { border-right: 1px solid var(--border) !important; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--border) !important; }
}
@media (max-width: 600px) {
  .features, .stats { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(odd) { border-right: 0 !important; }
  .feature + .feature { border-top: 1px solid var(--border) !important; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
}

/* Améliorations accueil ---------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); }
.live { width: 8px; height: 8px; background: var(--ok); border-radius: 50% !important; animation: pouls 2s ease-in-out infinite; }
@keyframes pouls { 50% { opacity: 0.35; } }

/* Apparition au défilement */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
[data-reveal].vu { opacity: 1; transform: none; }
.features .feature:nth-child(3n+2) { transition-delay: 0.08s; }
.features .feature:nth-child(3n) { transition-delay: 0.16s; }

/* Cartes : liseré indigo au survol */
.feature { position: relative; }
.feature::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); transition: width 0.25s; }
.feature:hover::before { width: 100%; }
.feature-ico { transition: color 0.15s; }
.feature:hover .feature-ico { color: var(--accent); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.step { padding: var(--s-6); }
.step + .step { border-left: 1px solid var(--border); }
.step-n { display: block; margin-bottom: var(--s-5); font-family: var(--font-mono); font-size: 0.875rem; color: var(--accent); }
.step h3 { margin-bottom: var(--s-2); }
.step p { font-size: 0.9375rem; }

/* Commandes */
.cmd-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-7); align-items: center; }
.cmd-grid .section-head { margin-bottom: 0; }
.cmd-grid .section-head .btn { margin-top: var(--s-5); }
.section-head code { font-family: var(--font-mono); color: var(--accent); }
.cmd-list { border: 1px solid var(--border); background: var(--surface); }
.cmd-list li { display: flex; align-items: baseline; gap: var(--s-5); padding: var(--s-4) var(--s-5); transition: background-color 0.15s; }
.cmd-list li + li { border-top: 1px solid var(--border); }
.cmd-list li:hover { background: var(--surface-2); }
.cmd-list code { flex: none; min-width: 7ch; color: var(--accent); font-weight: 600; }
.cmd-list span { color: var(--text-2); font-size: 0.9375rem; }

/* FAQ */
.faq { border: 1px solid var(--border); max-width: 760px; }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-5); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--surface); }
.faq details p { padding: 0 var(--s-5) var(--s-5); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--border); }
  .cmd-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 520px) { .cmd-list li { flex-direction: column; gap: var(--s-1); } }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }
.stat-num i { font-style: normal; }
.cta h2, .section-head h2 { text-wrap: balance; }
.cta h2 { max-width: 24ch; }

/* Bandeau défilant */
.band { overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); }
.band-track { display: flex; width: max-content; animation: defile 40s linear infinite; }
.band-track span { padding: var(--s-4) var(--s-6); font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.band-track span::before { content: "/"; margin-right: var(--s-6); color: var(--accent); }
.band-track span b { color: var(--text); font-weight: 600; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Aperçu du dashboard (maquette plate) */
.dash-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.dash { border: 1px solid var(--border-strong); background: var(--surface); }
.dash-bar { display: flex; align-items: center; gap: 6px; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); }
.dash-bar i { width: 9px; height: 9px; background: var(--border-strong); }
.dash-bar span { margin-left: var(--s-3); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); }
.dash-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.dash-nav { padding: var(--s-3); border-right: 1px solid var(--border); }
.dash-nav li { padding: var(--s-2) var(--s-3); font-size: 0.8125rem; color: var(--text-2); }
.dash-nav li.on { background: var(--surface-2); color: var(--text); border-left: 2px solid var(--accent); }
.dash-main { padding: var(--s-3) var(--s-4); }
.dash-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; }
.dash-row + .dash-row { border-top: 1px solid var(--border); }
.dash-row b { display: block; font-size: 0.875rem; }
.dash-row span { font-size: 0.75rem; color: var(--text-2); }
.tg { flex: none; width: 34px; height: 18px; background: var(--border-strong); position: relative; border-radius: 9px !important; transition: background-color 0.3s; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50% !important; transition: transform 0.3s; }
.tg.on { background: var(--ok); }
.tg.on::after { transform: translateX(16px); }
.dash-log { margin-top: var(--s-3); padding: var(--s-3); border: 1px solid var(--border); font-size: 0.75rem; color: var(--text-2); line-height: 1.9; }
.dash-log code { color: var(--accent); margin-right: var(--s-2); }
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid .section-head { order: -1; }
}
@media (max-width: 520px) { .dash-body { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .band-track { animation: none; } }

/* Dashboard interactif */
.dash-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ok); }
.dash-live u { width: 6px; height: 6px; background: var(--ok); border-radius: 50% !important; animation: pouls 2s ease-in-out infinite; }
.dash-body { min-height: 330px; }
.dash-nav { display: flex; flex-direction: column; padding: var(--s-3); border-right: 1px solid var(--border); }
.dash-nav button { text-align: left; padding: var(--s-2) var(--s-3); font-size: 0.8125rem; color: var(--text-2); border-left: 2px solid transparent; transition: background-color 0.15s, color 0.15s; }
.dash-nav button:hover { color: var(--text); }
.dash-nav button.on { background: var(--surface-2); color: var(--text); border-left-color: var(--accent); }
.dash-pane { display: none; }
.dash-pane.on { display: block; animation: entree 0.3s; }
@keyframes entree { from { opacity: 0; transform: translateY(6px); } }
button.tg { border: 0; padding: 0; cursor: pointer; }
.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); margin-top: var(--s-2); }
.dash-tiles div { padding: var(--s-3) var(--s-4); }
.dash-tiles div + div { border-left: 1px solid var(--border); }
.dash-tiles b { display: block; font-size: 1.375rem; letter-spacing: -0.02em; }
.dash-tiles small { font-size: 0.8125rem; color: var(--text-2); font-weight: 500; }
.dash-tiles span { font-size: 0.75rem; color: var(--text-2); }
.dash-h { margin: var(--s-4) 0 var(--s-2); font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.dash-log { margin-top: 0; min-height: 140px; overflow: hidden; }
.dash-log div { animation: entree 0.3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-log .w { color: var(--warn); } .dash-log .d { color: var(--danger); } .dash-log .o { color: var(--ok); }
.badge { flex: none; padding: 2px var(--s-2); border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-2); }
.badge.ok { border-color: var(--ok); color: var(--ok); }
.dash-val { flex: none; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); }
@media (max-width: 520px) {
  .dash-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .dash-nav button { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .dash-nav button.on { border-bottom-color: var(--accent); }
  .dash-tiles { grid-template-columns: 1fr; }
  .dash-tiles div + div { border-left: 0; border-top: 1px solid var(--border); }
}

/* Fond quadrillé (lignes fines, aplat : ni dégradé ni ombre) */
.hero, .cta {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0v48' fill='none' stroke='%23202020' stroke-width='1'/%3E%3C/svg%3E");
  background-position: center top;
}
.hero { border-bottom: 1px solid var(--border); }

/* Bloc indigo décalé derrière la démo Discord */
.hero-demo > .dc { position: relative; z-index: 1; }
.hero-demo { position: relative; }
.hero-demo::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; background: var(--accent); opacity: 0.35; border: 1px solid var(--accent); border-radius: 12px !important; }
@media (max-width: 900px) { .hero-demo::before { inset: 12px -8px -12px 8px; } }

/* Numéros de section géants */
main { counter-reset: sec; }
.section-head { counter-increment: sec; position: relative; isolation: isolate; }
.section-head::after {
  content: "0" counter(sec); position: absolute; z-index: -1; top: -0.55em; right: 0;
  font-family: var(--font-mono); font-weight: 600; font-size: clamp(5rem, 11vw, 8rem); line-height: 1;
  color: #171717; pointer-events: none;
}
.cmd-grid .section-head::after, .dash-grid .section-head::after { right: auto; left: 55%; top: -0.9em; }

@media (max-width: 900px) { .section-head::after { opacity: 0.6; } .cmd-grid .section-head::after, .dash-grid .section-head::after { left: auto; right: 0; top: -0.6em; } }
.section-head::after, .cmd-grid .section-head::after, .dash-grid .section-head::after { left: 0; right: auto; top: -0.75em; }

/* Pastille d'état en direct */
.live-pill { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-5); padding: 6px var(--s-4); border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); border-radius: 999px !important; transition: border-color 0.15s, color 0.15s; }
.live-pill:hover { border-color: var(--accent); color: var(--text); }
.live-pill i { width: 8px; height: 8px; background: var(--text-2); border-radius: 50% !important; }
.live-pill.ok i { background: var(--ok); animation: pouls 2s ease-in-out infinite; }
.live-pill.ok { color: var(--text); }
.live-pill em { font-style: normal; color: var(--accent); }
.hero-text .eyebrow { margin-bottom: var(--s-4); }

/* Trois points forts */
.hero-checks { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); font-size: 0.875rem; color: var(--text-2); }
.hero-checks li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-checks li::before { content: ""; width: 5px; height: 9px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.cta-checks { justify-content: center; margin-top: var(--s-5); }

/* Cartes : points concrets */
.feature-pts { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.feature-pts li { position: relative; padding-left: var(--s-4); font-size: 0.8125rem; color: var(--text-2); line-height: 1.9; }
.feature-pts li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 6px; height: 1px; background: var(--accent); }

/* Chiffres en direct */
.live-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--s-4); border: 1px solid var(--border); }
.live-stats[hidden] { display: none; }
.live-stats div { padding: var(--s-5) var(--s-6); display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; }
.live-stats div + div { border-left: 1px solid var(--border); }
.live-stats b { font-size: 1.75rem; letter-spacing: -0.02em; color: var(--accent); font-family: var(--font-mono); }
.live-stats span { font-size: 0.9375rem; color: var(--text-2); }
@media (max-width: 600px) { .live-stats { grid-template-columns: 1fr; } .live-stats div + div { border-left: 0; border-top: 1px solid var(--border); } }

/* Comparatif */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.9375rem; }
.cmp th, .cmp td { padding: var(--s-4) var(--s-5); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); background: var(--surface); }
.cmp tbody th { width: 28%; font-weight: 500; color: var(--text); }
.cmp tbody th small { display: block; margin-top: 2px; font-size: 0.75rem; font-weight: 400; color: var(--text-2); }
.cmp td { color: var(--text-2); }
.cmp .cmp-us { background: var(--surface-2); border-left: 1px solid var(--accent); border-right: 1px solid var(--accent); color: var(--text); }
.cmp thead .cmp-us { color: var(--accent-hover); box-shadow: inset 0 2px 0 var(--accent); }
.cmp tbody tr:last-child .cmp-us { border-bottom: 1px solid var(--accent); }
.cmp span[class^="cmp-"] { display: inline-flex; align-items: center; gap: var(--s-2); }
.cmp span[class^="cmp-"]::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50% !important; }
.cmp-yes::before { background: var(--ok); }
.cmp-mid::before { background: var(--warn); }
.cmp-no::before { background: var(--danger); }
.cmp-note { margin-top: var(--s-4); font-size: 0.8125rem; color: var(--text-2); }


/* Tactile (13/10/2026) : pastille d'état du bot à 44 px ; petites mentions lisibles. */
@media (pointer: coarse) {
  .live-pill { min-height: 44px; }
  .dash-h, .dash-live { font-size: 0.75rem; }
}

/* Tactile (13/10/2026, suite) : heures du fil d'activité lisibles (12 px). */
@media (pointer: coarse) { .dash-log code { font-size: 0.75rem; } }
