/* MansoBots — site vitrine et documentation */
:root {
  --bg: #0d0e11;
  --ink: #eceef2;
  --soft: #a8adb8;
  --dim: #71767f;
  --blue: #6b8cff;
  --blue-2: #4f6ef5;
  --ok: #4ade9a;
  --warn: #ffcf70;
  --bad: #ff8a8a;
  --surface: #15171c;
  --surface-2: #1b1e24;
  --line: #24272e;
  --line-2: #32363f;
  --field: #101216;
  --radius: 14px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #0f1115; }
code, .mono { font-family: var(--mono); }
code { background: rgba(107, 140, 255, .1); border: 1px solid var(--line); color: #dee1e8; padding: 1px 7px; border-radius: 7px; font-size: .86em; white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Fond : uni, gris neutre (même thème que les dashboards) ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg); }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 30px;
  padding: 8px 8px 8px 18px; background: rgba(17, 19, 23, .72); backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--line); border-radius: 12px; max-width: calc(100vw - 24px); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; font-size: 17px; white-space: nowrap; }
.logo .mark { width: 22px; height: 30px; background: url(logo.svg) center / contain no-repeat; filter: drop-shadow(0 0 7px rgba(0, 0, 0, .7)); }
.nav .links { display: flex; gap: 26px; font-size: 14px; font-weight: 600; color: var(--soft); }
.nav .links a { position: relative; transition: color .2s; }
.nav .links a:hover, .nav .links a.active { color: var(--ink); }
.nav .links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--blue); }

.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; font-family: inherit; border: 1px solid var(--line-2); background: rgba(22, 24, 28, .6); color: var(--ink); cursor: pointer; white-space: nowrap; transition: transform .2s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--blue); }
.btn.primary { background: var(--blue-2); color: #fff; border-color: var(--blue-2); }
.btn.primary:hover { box-shadow: 0 12px 40px -8px rgba(0, 0, 0, .7), 0 0 0 4px rgba(0, 0, 0, .18); }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn svg.i { font-size: 18px; transition: transform .2s; }
.btn:hover svg.i { transform: translateX(2px); }

/* ---------- Accueil ---------- */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: 56px; padding-top: 130px; padding-bottom: 70px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--soft); background: rgba(22, 24, 28, .5); }
.pill.off .dot { background: var(--bad); animation: none; }
[hidden] { display: none !important; }
.fact b { font-variant-numeric: tabular-nums; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 154, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 154, 0); } }
.hero h1 { font-weight: 900; font-size: clamp(36px, 4.4vw, 56px); line-height: .98; letter-spacing: -.045em; margin: 22px 0 22px; }
.hero h1 span { display: block; }
.grad { color: var(--blue); }
.hero p.sub { color: var(--soft); font-size: 19px; margin: 0 0 32px; max-width: 31em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.fact b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.fact span { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Console interactive de l'accueil */
.stage { perspective: 1400px; min-width: 0; }
.console { position: relative; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .85), 0 0 90px -30px rgba(0, 0, 0, .55); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.console .tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); }
.console .tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--dim); background: none; border: 0; cursor: pointer; font-family: inherit; transition: color .2s, background .2s; }
.console .tab svg.i { font-size: 16px; }
.console .tab:hover { color: var(--ink); }
.console .tab.on { color: var(--ink); background: rgba(107, 140, 255, .16); }
.console .pane { display: none; padding: 20px 22px 22px; min-height: 330px; }
.console .pane.on { display: block; animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.cmdline { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--dim); margin-bottom: 16px; }
.cmdline b { color: var(--ink); font-weight: 500; }
.cmdline .caret { width: 8px; height: 16px; background: var(--blue); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.rowset { display: grid; gap: 8px; }
.sw { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(18, 20, 24, .55); border: 1px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s; }
.sw:hover { border-color: var(--line-2); }
.sw small { display: block; color: var(--dim); font-weight: 500; font-size: 12px; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw .knob { width: 42px; height: 24px; border-radius: 99px; background: #1b1d21; position: relative; transition: background .25s; flex: none; }
.sw .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #71767f; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .25s; }
.sw input:checked + .knob { background: var(--blue-2); }
.sw input:checked + .knob::after { transform: translateX(18px); background: #fff; }
.sw input:focus-visible + .knob { outline: 2px solid var(--blue); outline-offset: 2px; }
.thread { display: grid; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; background: rgba(18, 20, 24, .6); border: 1px solid var(--line); }
.bubble.me { margin-left: auto; background: rgba(79, 110, 245, .28); border-color: rgba(107, 140, 255, .4); }
.bubble b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tag { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: rgba(107, 140, 255, .14); color: #dee1e8; border: 1px solid var(--line); }
.tag.ok { background: rgba(74, 222, 154, .14); color: #b8f5d6; border-color: rgba(74, 222, 154, .3); }
.wallet { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.wallet div { padding: 12px 14px; border-radius: 12px; background: rgba(18, 20, 24, .55); border: 1px solid var(--line); }
.wallet span { color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wallet b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.meter { height: 8px; border-radius: 99px; background: #191b1f; overflow: hidden; }
.meter i { display: block; height: 100%; width: 64%; border-radius: 99px; background: var(--blue-2); }
.caption { color: var(--dim); font-size: 12px; margin: 8px 0 0; }

/* Bandeau défilant */
.marquee { border-block: 1px solid var(--line); padding: 20px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 46px; width: max-content; animation: slide 60s linear infinite; font-family: var(--mono); font-size: 15px; color: var(--dim); }
.marquee .track b { color: var(--blue); font-weight: 500; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; scroll-margin-top: 100px; }
#modules { scroll-margin-top: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 800; letter-spacing: .16em; font-size: 12px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 5px; border-radius: 9px; background: var(--blue); }
h2.title { font-size: clamp(26px, 3vw, 38px); font-weight: 900; letter-spacing: -.04em; line-height: 1.04; margin: 16px 0 16px; }
.lead { color: var(--soft); font-size: 18px; max-width: 38em; margin: 0 0 48px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Grille des modules */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cell { position: relative; grid-column: span 2; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.cell.wide { grid-column: span 3; }
.cell.big { grid-column: span 4; }
.cell::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--px, 50%) var(--py, 0%), rgba(255, 255, 255, .035), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cell:hover { transform: translateY(-4px); border-color: var(--line-2); }
.cell:hover::before { opacity: 1; }
.cell > * { position: relative; }
.cell .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: var(--blue); background: rgba(107, 140, 255, .12); border: 1px solid var(--line-2); }
.cell h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.cell p { margin: 0; color: var(--soft); font-size: 15px; max-width: 34em; }
.cell.big p { max-width: 27em; }
.cell .cmds { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.radar { position: absolute !important; right: -50px; top: -50px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; overflow: hidden; }
.radar::before, .radar::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); inset: 44px; }
.radar::after { inset: 88px; }
.radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(107, 140, 255, .35), transparent 22%); animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; margin-top: 20px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--blue-2); }

/* Vidéo de présentation (chargée seulement au clic) */
.video { position: relative; max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #121418 center / cover no-repeat; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 90px -40px rgba(0, 0, 0, .6); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 17, 21, .15), rgba(15, 17, 21, .65)); pointer-events: none; transition: opacity .3s; }
.video.playing::after { display: none; }
.video button { position: absolute; inset: 0; z-index: 1; width: 100%; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.video button span { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #0f1115; background: var(--ink); box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); animation: halo 2.4s infinite; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.video button span svg.i { fill: currentColor; margin-left: 4px; }
.video button:hover span { transform: scale(1.1); }
@keyframes halo { 70% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Captures des panneaux du bot */
.shots { columns: 3 300px; column-gap: 16px; }
.shot { break-inside: avoid; margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; background: #1a1b1f; border: 1px solid var(--line-2); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.shot:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(19, 21, 25, .96); border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; font-weight: 600; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 13px; color: var(--blue); letter-spacing: .1em; }
.step h3 { margin: 14px 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--soft); font-size: 15px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 36px; right: -17px; width: 18px; height: 1px; background: var(--line-2); }

/* Explorateur de commandes */
.explorer { max-width: 780px; margin: 0 auto; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); overflow: hidden; text-align: left; }
.explorer .field { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 20px; color: var(--blue); }
.explorer input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font-family: var(--mono); font-size: 17px; }
.explorer input::placeholder { color: var(--dim); }
.explorer .hints { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 22px 0; }
.hint { font-family: var(--mono); font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); background: none; cursor: pointer; transition: border-color .2s, color .2s; }
.hint:hover { border-color: var(--blue); color: var(--ink); }
.results { padding: 12px; min-height: 296px; }
.result { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; align-items: center; padding: 11px 12px; border-radius: 12px; }
.result:hover { background: rgba(107, 140, 255, .1); }
.result code { background: none; border: 0; padding: 0; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.result .d { color: var(--soft); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results .more { display: block; text-align: center; padding: 12px; color: var(--blue); font-weight: 700; font-size: 14px; }
.badge { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); white-space: nowrap; }
.badge.admin { color: var(--warn); border-color: rgba(255, 207, 112, .35); }
.badge.owner { color: var(--bad); border-color: rgba(255, 138, 138, .35); }
.badge.everyone { color: var(--ok); border-color: rgba(74, 222, 154, .35); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg.i { font-size: 20px; color: var(--blue); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.faq details[open] summary svg.i { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--soft); }
.faq a { color: var(--blue); }

/* Appel final */
.closing { border-radius: 14px; padding: 70px 40px; text-align: center; position: relative; overflow: hidden; border: 1px solid var(--line-2);
  background: var(--surface); }
.closing h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 14px; }
.closing p { color: var(--soft); font-size: 18px; margin: 0 0 30px; }
.closing .cta { justify-content: center; }

footer { padding: 70px 0 50px; }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--soft); font-weight: 500; }
footer ul a:hover { color: var(--ink); }
footer p { color: var(--soft); margin: 14px 0 0; max-width: 24em; }
footer .fine { color: var(--dim); font-size: 13px; padding-top: 22px; }

/* Apparition au défilement (seulement quand le script tourne) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s cubic-bezier(.2, .8, .2, 1), transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
/* les cartes d'une même grille arrivent l'une après l'autre */
.js .reveal.in > .cell, .js .reveal.in > .shot, .js .reveal.in > details { animation: rise .45s cubic-bezier(.2, .8, .2, 1) backwards; }
.js .reveal.in > :nth-child(2) { animation-delay: .05s; } .js .reveal.in > :nth-child(3) { animation-delay: .1s; } .js .reveal.in > :nth-child(4) { animation-delay: .15s; }
.js .reveal.in > :nth-child(5) { animation-delay: .2s; } .js .reveal.in > :nth-child(n+6) { animation-delay: .25s; }
.nav { transition: background .25s, border-color .25s, box-shadow .25s; }
.nav.stuck { background: rgba(17, 19, 23, .92); border-color: var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.btn { transition: background .15s, border-color .15s, color .15s, transform .08s; }
.btn:active { transform: scale(.97); }
.console .pane.on, .console [role="tabpanel"]:not([hidden]) { animation: rise .25s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Documentation ---------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 120px; padding-bottom: 90px; align-items: start; }
.side { position: sticky; top: 100px; max-height: calc(100vh - 124px); overflow: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #1d1f23 transparent; }
.side h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 22px 0 8px; }
.side h4:first-child { margin-top: 0; }
.side a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--soft); font-size: 14px; font-weight: 600; transition: background .15s, color .15s; }
.side a svg.i { font-size: 16px; color: var(--blue); }
.side a em { margin-left: auto; font-style: normal; color: var(--dim); font-weight: 500; font-size: 12px; }
.side a:hover { background: rgba(107, 140, 255, .1); color: var(--ink); }
.search { width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 15px; font-family: var(--mono); outline: none; transition: border-color .2s, box-shadow .2s; }
.search:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 0, 0, .15); }
.search::placeholder { color: var(--dim); }
.doc h1 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; margin: 12px 0 14px; }
.doc h2 { display: flex; align-items: center; gap: 12px; font-size: 27px; font-weight: 800; letter-spacing: -.025em; margin: 60px 0 8px; scroll-margin-top: 104px; }
.doc h2 svg.i { color: var(--blue); font-size: 24px; }
.doc > p, .doc li, .doc #cmd-list > p { color: #dee1e8; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 16px 20px; color: #dee1e8; margin: 18px 0; }
.cmd { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px 20px; margin-top: 10px; scroll-margin-top: 104px; transition: border-color .2s; }
.cmd:hover { border-color: var(--line-2); }
.cmd .top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cmd .top code { font-size: 14px; white-space: normal; background: none; border: 0; padding: 0; color: var(--ink); }
.cmd p { margin: 6px 0 0; color: var(--soft); font-size: 15px; }
.cmd .alias { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 6px; }
.empty { color: var(--soft); padding: 30px 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 140px; }
  .nav .links { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell, .cell.wide, .cell.big { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  footer .cols { grid-template-columns: 1fr; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; max-height: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr auto; }
  .result .d { display: none; }
  section { padding: 80px 0; }
  .console .tab span { display: none; }
}
/* ---------- Pages : statut, nouveautés, conditions, confidentialité ---------- */
.page { padding-top: 130px; padding-bottom: 60px; min-height: 80vh; }
.page.narrow { max-width: 820px; }
.page h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 12px; }
.page .lead { color: var(--soft); font-size: 16px; margin: 0 0 30px; max-width: 46em; }
.page .muted, .muted { color: var(--dim); font-size: 14px; }
footer.slim { padding: 26px 0 40px; }
footer .fine { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }

/* Statut */
.st-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); margin: 18px 0 14px; }
.st-hero div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.st-hero b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.st-hero div span { color: var(--soft); font-size: 14px; }
.st-updated { color: var(--dim); font-size: 12.5px; font-family: var(--mono); white-space: nowrap; }
.st-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dim); flex: none; }
.st-hero.ok { border-color: rgba(74, 222, 154, .35); }
.st-hero.ok .st-dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 154, .6); animation: pulse 2.2s infinite; }
.st-hero.incident { border-color: rgba(255, 207, 112, .4); }
.st-hero.incident .st-dot { background: var(--warn); }
.st-hero.down, .st-hero.lost { border-color: rgba(255, 138, 138, .4); }
.st-hero.down .st-dot, .st-hero.lost .st-dot { background: var(--bad); }
.st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.st-tile { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 4px; }
.st-tile span { color: var(--dim); font-size: 12.5px; }
.st-tile b { font-size: 21px; font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.st-block { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px; }
.st-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.st-head h2 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: 0; }
.st-head span { color: var(--dim); font-size: 12.5px; }
.st-days { display: flex; gap: 3px; height: 38px; }
.st-days i { flex: 1; min-width: 0; border-radius: 3px; background: var(--surface-2); transition: opacity .12s, transform .12s; }
.st-days i.ok { background: var(--ok); }
.st-days i.warn { background: var(--warn); }
.st-days i.bad { background: var(--bad); }
.st-days i.none { background: var(--line-2); opacity: .5; }
.st-days:hover i { opacity: .45; }
.st-days i:hover { opacity: 1; transform: scaleY(1.12); }
.st-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--dim); font-size: 12px; }
.st-legend span:nth-child(2) { color: var(--soft); text-align: center; }
.st-chart svg { display: block; width: 100%; height: 160px; }
.st-chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.st-chart .line { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.st-chart .area { fill: rgba(107, 140, 255, .1); stroke: none; }
.st-chart-foot { margin-top: 10px; color: var(--dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.st-events { display: grid; }
.st-event { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.st-event:first-child { border-top: 0; padding-top: 0; }
.st-event div { display: grid; gap: 1px; flex: 1; min-width: 0; }
.st-event b { font-size: 14px; font-weight: 600; }
.st-event div span { color: var(--dim); font-size: 12.5px; }
.st-event em { font-style: normal; font-size: 11.5px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--soft); white-space: nowrap; }
.st-event-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.st-event.restart .st-event-dot { background: var(--blue); }
.st-event.open .st-event-dot { background: var(--warn); }
.st-event.incident.open .st-event-dot { background: var(--bad); }

/* Nouveautés */
.news { display: grid; gap: 12px; }
.news-item { padding: 20px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.js .news-item { animation: rise .4s cubic-bezier(.2, .8, .2, 1) backwards; }
.news-item:nth-child(2) { animation-delay: .05s; } .news-item:nth-child(3) { animation-delay: .1s; } .news-item:nth-child(n+4) { animation-delay: .15s; }
.news-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.news-head time { color: var(--dim); font-size: 12.5px; }
.news-tag { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--soft); }
.news-tag.new { color: var(--blue); border-color: rgba(107, 140, 255, .35); }
.news-tag.better { color: var(--ok); border-color: rgba(74, 222, 154, .3); }
.news-tag.fix { color: var(--warn); border-color: rgba(255, 207, 112, .35); }
.news-tag.security { color: var(--bad); border-color: rgba(255, 138, 138, .35); }
.news-item h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
.news-item ul { margin: 0; padding-left: 18px; color: var(--soft); font-size: 14.5px; }
.news-item li { margin: 4px 0; }

/* Pages légales */
.legal h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 34px 0 8px; scroll-margin-top: 104px; }
.legal p, .legal li { color: var(--soft); font-size: 15px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin: 6px 0; }
.legal b { color: var(--ink); font-weight: 600; }
.legal a { color: var(--blue); }
.legal a:hover { text-decoration: underline; }
.legal .todo { color: var(--warn); border-bottom: 1px dashed rgba(255, 207, 112, .6); }
.legal-list { margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.legal-list div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.legal-list div:first-child { border-top: 0; }
.legal-list dt { color: var(--dim); }
.legal-list dd { margin: 0; color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 12px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.legal-table th { text-align: left; padding: 10px 14px; color: var(--dim); font-weight: 500; font-size: 12.5px; border-bottom: 1px solid var(--line-2); }
.legal-table td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--soft); vertical-align: top; }
.legal-table tr:first-child td { border-top: 0; }
.legal-table td:first-child { color: var(--ink); width: 44%; }
@media (max-width: 760px) {
  .page { padding-top: 104px; }
  .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-hero { flex-wrap: wrap; }
  .st-updated { width: 100%; }
  .st-days { gap: 1px; }
  .legal-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
