/* Nidbot — nuit indigo, ambre du nid, menthe réservée à « en ligne ». */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #14162b; --ink-2: #1a1d38; --ink-3: #23274a; --ink-4: #2b3058;
  --line: #2e3360; --line-2: #3b4177;
  --text: #eef0ff; --text-2: #b4b9dd; --muted: #8288b4;
  --amber: #ffb547; --amber-ink: #2a1a00; --amber-soft: rgba(255, 181, 71, .13);
  --mint: #5ee3b5; --mint-soft: rgba(94, 227, 181, .12);
  --rose: #ff6b81; --rose-soft: rgba(255, 107, 129, .12);
  --sky: #8fb3ff;
  --r-xl: 22px; --r-lg: 16px; --r-md: 11px; --r-sm: 8px;
  --display: "Bricolage", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ink); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 500px at 85% -120px, rgba(143, 179, 255, .10), transparent 70%);
  background-repeat: no-repeat;
}
a { color: var(--amber); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .45em; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
code, .mono { font-family: var(--mono); font-size: .86em; }
code { background: var(--ink-3); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); }
pre { font-family: var(--mono); font-size: 13px; line-height: 1.6; background: #0f1124; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; overflow: auto; margin: 8px 0; color: var(--text-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.spacer { flex: 1; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── En-tête ── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(20, 22, 43, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand .beta { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--amber); background: var(--amber-soft); border-radius: 99px; padding: 2px 9px; letter-spacing: 0; }
.nav { display: flex; gap: 22px; margin-left: 18px; }
.nav a { color: var(--text-2); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.who { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 14px; min-width: 0; }
.who img { width: 30px; height: 30px; border-radius: 50%; background: var(--ink-3); }
.who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--ink-3); color: var(--text); font: 600 15px/1 var(--body); padding: 11px 16px; border-radius: var(--r-md); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--ink-4); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn.primary:hover { background: #ffc46b; }
.btn.danger { color: var(--rose); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--ink-3); }
.btn.big { padding: 15px 22px; font-size: 17px; border-radius: 14px; }
.btn.sm { padding: 7px 11px; font-size: 14px; border-radius: var(--r-sm); }
.btn .ico { width: 20px; height: 20px; flex: none; }

/* ── Surfaces ── */
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.card + .card { margin-top: 16px; }
.features > .card, .two > .card, .plans > .card, .grid > .card { margin-top: 0; }
.notice { border-radius: var(--r-md); padding: 12px 16px; background: var(--ink-3); color: var(--text-2); margin: 12px 0; border-left: 3px solid var(--line-2); }
.notice.bad { background: var(--rose-soft); color: #ffd3da; border-left-color: var(--rose); }
.notice.warn { background: var(--amber-soft); color: #ffe4bb; border-left-color: var(--amber); }
.notice.ok { background: var(--mint-soft); color: #c9f7e7; border-left-color: var(--mint); }
.notice a { color: inherit; text-decoration: underline; }

/* ── Formulaires ── */
label.field { display: block; margin: 12px 0; }
label.field > span, .lbl { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
input[type=text], input[type=url], input[type=number], input[type=password], select, textarea {
  width: 100%; background: #101229; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--r-md); padding: 11px 13px; font: 15px var(--body);
}
input::placeholder, textarea::placeholder { color: #5f6595; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 160px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; cursor: pointer; }
.check input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--amber); }
.seg { display: inline-flex; background: #101229; border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 3px; gap: 3px; }
.seg button { background: transparent; border: 0; color: var(--text-2); font: 600 14px var(--body); padding: 8px 14px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--ink-4); color: var(--text); }

/* ── États (toujours texte + forme, jamais la couleur seule) ── */
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 4px 12px 4px 10px; border-radius: 99px; background: var(--ink-3); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.badge.running { background: var(--mint-soft); color: #c9f7e7; }
.badge.running::before { background: var(--mint); box-shadow: 0 0 0 4px rgba(94, 227, 181, .2); }
.badge.crashed, .badge.error, .badge.quota, .badge.suspended { background: var(--rose-soft); color: #ffd3da; }
.badge.crashed::before, .badge.error::before, .badge.quota::before, .badge.suspended::before { background: var(--rose); border-radius: 2px; transform: rotate(45deg); }
.badge.deploying, .badge.installing, .badge.starting { background: var(--amber-soft); color: #ffe4bb; }
.badge.deploying::before, .badge.installing::before, .badge.starting::before { background: var(--amber); animation: blink 1.1s infinite; }
.badge.expired { background: var(--amber-soft); color: #ffe4bb; }
.badge.expired::before { background: var(--amber); border-radius: 2px; }
@keyframes blink { 50% { opacity: .3; } }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); white-space: nowrap; }
.pill.grey { background: var(--ink-3); color: var(--text-2); }
.pill.mint { background: var(--mint-soft); color: var(--mint); }

/* ════════ Page d'accueil ════════ */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 80px 0 64px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.018em; line-height: 1; margin-bottom: 22px; }
.hero .lead { font-size: 20px; color: var(--text-2); max-width: 30em; line-height: 1.55; }
.hero .cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.hero .fine { color: var(--muted); font-size: 15px; }
.places { margin-bottom: 22px; }

/* Salon Discord du hero : le moment fort de la page */
.chan { background: #1e2143; border: 1px solid var(--line-2); border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 30px 80px rgba(5, 6, 20, .55); transform: rotate(-1.2deg); }
.chan-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 15px; }
.chan-head b { color: var(--text); font-family: var(--display); font-size: 17px; }
.chan-head .hash { color: var(--muted); font-size: 20px; line-height: 1; }
.chan-body { padding: 18px 18px 8px; display: grid; gap: 16px; min-height: 230px; align-content: start; }
.msg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.msg .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--display); }
.msg .av.lina { background: #6c5ce7; color: #fff; }
.msg .av.bot { background: var(--amber); }
.msg .av.bot img { width: 26px; height: 26px; }
.msg .name { font-weight: 700; font-size: 15px; }
.msg .name .tag { font-size: 11px; font-weight: 700; background: #5865f2; color: #fff; border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.msg .name time { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 8px; }
.slash { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 15px; }
.slash .cmd { background: rgba(88, 101, 242, .25); color: #c9cdff; border-radius: 5px; padding: 1px 7px; font-weight: 600; }
.embed { margin-top: 6px; background: #181a36; border-radius: 6px; border-left: 4px solid var(--mint); padding: 12px 14px; max-width: 390px; }
.embed h4 { margin: 0 0 8px; font-size: 15px; font-family: var(--body); }
.embed dl { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 22px; margin: 0; font-size: 14px; }
.embed dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.embed dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.embed .ok { color: var(--mint); }
.typing { color: var(--muted); font-size: 13px; padding: 0 18px 14px; height: 34px; display: flex; align-items: center; gap: 8px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); display: inline-block; animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 40% { transform: translateY(-4px); opacity: 1; } 0%, 80%, 100% { opacity: .4; } }
.chan-input { margin: 0 18px 18px; background: #262a52; border-radius: 10px; padding: 12px 14px; color: var(--muted); font-size: 15px; }
/* Séquence d'arrivée (une seule fois) */
.play .m2 { opacity: 0; animation: show .01s 1.9s forwards; }
.play .typing { opacity: 0; animation: show .01s .7s forwards, hide .01s 1.9s forwards; }
.play .m1 { opacity: 0; animation: rise .45s .2s ease-out forwards; }
.play .m2 .embed { transform-origin: left top; animation: pop .35s 1.9s ease-out both; }
@keyframes show { to { opacity: 1; } }
@keyframes hide { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

section.block { padding: 64px 0; border-top: 1px solid var(--line); }
section.block > h2, .h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.025em; margin-bottom: 14px; max-width: 18em; }
section.block > .intro { color: var(--text-2); font-size: 18px; max-width: 38em; margin-bottom: 34px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--amber); margin-bottom: 14px; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--text-2); }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.spec { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec svg { width: 28px; height: 28px; color: var(--amber); margin-top: 2px; }
.spec h3 { font-family: var(--body); font-size: 18px; font-weight: 700; letter-spacing: 0; margin-bottom: 4px; }
.spec p { color: var(--text-2); margin: 0; font-size: 15px; }
.limits { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 34px; }
.limits div b { display: block; font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.limits div span { color: var(--muted); font-size: 15px; }

/* Section IA */
.ai-demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.ai-demo .list { color: var(--text-2); padding-left: 20px; }
.ai-demo .list li { margin: 6px 0; }
.convo { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; display: grid; gap: 12px; }
.bubble { border-radius: 16px; padding: 12px 16px; max-width: 88%; font-size: 15px; }
.bubble.me { background: var(--ink-4); justify-self: end; border-bottom-right-radius: 4px; }
.bubble.ai { background: transparent; border: 1px solid var(--line-2); border-bottom-left-radius: 4px; color: var(--text-2); }
.tool { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--sky); background: rgba(143, 179, 255, .1); border-radius: 7px; padding: 4px 10px; margin: 3px 4px 3px 0; }
.tool::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--sky); }
.works { color: var(--muted); font-size: 15px; margin-top: 18px; }

/* Tarifs */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; }
.plan h3 { font-family: var(--body); font-size: 18px; letter-spacing: 0; }
.plan .price { font-family: var(--display); font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 6px 0 4px; }
.plan .price small { font-family: var(--body); font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { padding: 9px 0 9px 28px; border-top: 1px solid var(--line); position: relative; color: var(--text-2); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 6px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.plan li.no { color: var(--muted); }
.plan li.no::before { border: 0; width: 10px; height: 2px; background: var(--muted); transform: none; top: 20px; }
.plan.paid { border-color: rgba(255, 181, 71, .5); background: linear-gradient(180deg, rgba(255, 181, 71, .07), transparent 60%), var(--ink-2); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 14px; margin: 0; }

.foot { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--muted); font-size: 14px; margin-top: 40px; }
.foot .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--text-2); }
.prose { max-width: 760px; padding: 48px 20px 20px; margin: 0 auto; }
.prose h1 { font-size: 40px; letter-spacing: -.03em; }
.prose h2 { font-size: 22px; margin-top: 1.7em; }
.prose li { margin: 5px 0; color: var(--text-2); }
.prose p { color: var(--text-2); }

/* ════════ Tableau de bord ════════ */
.dash { padding-top: 30px; padding-bottom: 50px; }
.bothead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bothead h1 { font-size: 34px; margin: 0; letter-spacing: -.03em; }
.bothead .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.botmeta { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 22px 0 6px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.tile { padding: 16px 20px; border-left: 1px solid var(--line); }
.tile:first-child { border-left: 0; }
.tile .k { font-size: 14px; color: var(--muted); font-weight: 500; }
.tile .v { font-family: var(--display); font-size: 26px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tile .v small { font-family: var(--body); font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.meter { height: 5px; background: var(--ink-4); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--amber); border-radius: 99px; min-width: 3px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-2); font: 600 15px var(--body); padding: 12px 14px; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--amber); }
.tabs .lock { font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-soft); border-radius: 99px; padding: 1px 7px; }
.panel { padding-top: 20px; }

.console { background: #0f1124; border: 1px solid var(--line); border-radius: var(--r-lg); height: 470px; overflow: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; padding: 12px 0; }
.console div { padding: 0 16px; white-space: pre-wrap; word-break: break-word; color: #d9dcf5; }
.console div:hover { background: rgba(255, 255, 255, .025); }
.console .t { color: #575d8f; margin-right: 12px; user-select: none; }
.console .err { color: #ff9cab; }
.console .err .t { color: #8b4d5a; }
.console .empty { color: var(--muted); padding: 22px 16px; font-family: var(--body); }
.consolebar { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.consolebar input[type=text] { width: 220px; padding: 7px 11px; font-size: 14px; }

.drop { border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: 30px; text-align: center; color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--amber); background: var(--amber-soft); }
.drop b { color: var(--text); font-size: 17px; }
.envrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.envrow .masked { font-family: var(--mono); font-size: 13px; color: var(--text-2); background: #101229; border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 11px 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.botlist { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.botlist button { background: transparent; border: 1px solid var(--line); color: var(--text-2); border-radius: 99px; padding: 7px 14px; font: 600 14px var(--body); cursor: pointer; }
.botlist button.on { border-color: var(--amber); color: var(--text); background: var(--amber-soft); }

/* Éditeur de fichiers */
.ide { display: grid; grid-template-columns: 250px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #0f1124; min-height: 520px; }
.tree { border-right: 1px solid var(--line); background: var(--ink-2); overflow: auto; max-height: 620px; padding: 8px 0; }
.tree [data-f] { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text-2); font: 13px var(--mono); padding: 5px 14px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree [data-f]:hover { background: var(--ink-3); color: var(--text); }
.tree [data-f].on { background: var(--amber-soft); color: var(--text); }
.tree .dir { color: var(--muted); font: 600 12px var(--body); padding: 9px 14px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor { display: flex; flex-direction: column; min-width: 0; }
.edbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); background: var(--ink-2); flex-wrap: wrap; }
.edbar .fname { font-family: var(--mono); font-size: 13px; color: var(--text); flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edbar .dirty { color: var(--amber); font-size: 13px; }
.code { display: grid; grid-template-columns: auto minmax(0, 1fr); flex: 1; min-height: 460px; }
.gutter { font: 13px/1.65 var(--mono); color: #4d5385; text-align: right; padding: 12px 10px 12px 14px; user-select: none; overflow: hidden; white-space: pre; }
.code textarea, .console, pre { font-variant-ligatures: none; }
.code textarea { border: 0; border-radius: 0; background: transparent; resize: none; font: 13px/1.65 var(--mono); padding: 12px 14px 12px 6px; white-space: pre; overflow: auto; tab-size: 2; color: #e3e6ff; min-height: 460px; }
.code textarea:focus { outline: none; }
.ide-empty { display: grid; place-items: center; color: var(--muted); padding: 40px; text-align: center; flex: 1; }

/* Accès IA */
.locked { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; }
.locked h2 { font-size: 28px; letter-spacing: -.02em; }
.tokenbox { display: flex; gap: 8px; align-items: center; background: #101229; border: 1px solid var(--amber); border-radius: var(--r-md); padding: 10px 12px; font-family: var(--mono); font-size: 13px; word-break: break-all; }
.tokenbox span { flex: 1; }
.howto { margin-top: 14px; }
.howto .seg { margin-bottom: 12px; flex-wrap: wrap; }
.howto pre { white-space: pre-wrap; word-break: break-all; }
.keys { list-style: none; padding: 0; margin: 0; }
.keys li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.keys li:last-child { border-bottom: 0; }
.keys .kname { font-weight: 600; }
.feed { list-style: none; padding: 0; margin: 0; max-height: 380px; overflow: auto; }
.feed li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.feed li:last-child { border-bottom: 0; }
.feed li time { color: var(--muted); font-size: 13px; margin-right: 10px; font-variant-numeric: tabular-nums; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink-4); border: 1px solid var(--line-2); color: var(--text); padding: 12px 18px; border-radius: var(--r-md); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); z-index: 50; max-width: calc(100% - 32px); font-size: 15px; }
.toast.bad { border-color: var(--rose); }

/* Tableaux (propriétaire) */
.osec { margin-top: 36px; }
.osec h2 { font-size: 24px; }
.tiles .tile:nth-child(4n+1) { border-left: 0; }
.tiles .tile:nth-child(n+5) { border-top: 1px solid var(--line); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-2); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--ink-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions { white-space: normal; }
td.actions .row { gap: 6px; }
dialog { background: var(--ink-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-lg); max-width: min(780px, calc(100% - 32px)); width: 100%; padding: 20px; }
dialog::backdrop { background: rgba(5, 6, 20, .7); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; gap: 40px; }
  .chan { transform: none; }
  .steps, .specs { grid-template-columns: 1fr; gap: 24px; }
  .specs { gap: 0; }
  .ai-demo, .locked { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile:nth-child(odd) { border-left: 0; }
  .tiles .tile:nth-child(even) { border-left: 1px solid var(--line); }
  .tiles .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
  .two { grid-template-columns: 1fr; }
  .ide { grid-template-columns: 1fr; }
  .tree { max-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: none; }
  .who span { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; row-gap: 6px; }
  .top .wrap > .pill { order: 10; }
  .brand .beta { display: none; }
  .hero h1 { font-size: 44px; }
  .hero .lead { font-size: 18px; }
  .embed dl { grid-template-columns: repeat(2, auto); }
  .bothead h1 { font-size: 28px; }
  .bothead .actions { margin-left: 0; width: 100%; }
  .bothead .actions .btn { flex: 1; }
  .envrow { grid-template-columns: 1fr; }
  .console { height: 380px; }
  .consolebar input[type=text] { width: 100%; }
  section.block { padding: 48px 0; }
  .limits { gap: 24px; }
  td.actions { min-width: 210px; }
}

/* ── v1.2 : annonce, tutoriel, formules, liste de départ, installation ── */
.annbar { background: var(--amber); color: var(--amber-ink); text-align: center; font-weight: 600; font-size: 15px; padding: 9px 16px; }
.plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan .price small { white-space: nowrap; }
.tuto { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 40px; align-items: start; }
.toc { position: sticky; top: 90px; display: grid; gap: 2px; }
.toc-t { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.toc a { color: var(--text-2); padding: 6px 10px; border-radius: 8px; font-size: 15px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--text); background: var(--ink-2); text-decoration: none; border-left-color: var(--amber); }
.tuto-body { max-width: 760px; }
.tuto-body h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.03em; }
.tuto-body .lead { font-size: 19px; color: var(--text-2); }
.tuto-body section { padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.tuto-body h2 { font-size: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tuto-body h2 .n { font-family: var(--display); font-weight: 800; color: var(--amber-ink); background: var(--amber); width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 18px; flex: none; }
.tuto-body ol, .tuto-body ul { color: var(--text-2); padding-left: 22px; }
.tuto-body li { margin: 8px 0; }
.tuto-body p { color: var(--text-2); }
.tuto-body b { color: var(--text); }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.ways > div { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.ways h3 { font-family: var(--body); font-size: 17px; letter-spacing: 0; }
.ways p { font-size: 15px; margin: 0; }
.errs td { white-space: normal; min-width: 150px; vertical-align: top; color: var(--text-2); }
.checklist { margin: 16px 0; }
.checklist h2 { font-size: 18px; }
.checklist ol { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.checklist li { counter-increment: c; display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.checklist li::before { content: counter(c); width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); flex: none; }
.checklist li.done { color: var(--muted); }
.checklist li.done span { text-decoration: line-through; text-decoration-color: var(--line-2); }
.checklist li.done::before { content: "✓"; background: var(--mint); border-color: var(--mint); color: var(--ink); }
.checklist li span { flex: 1; min-width: 180px; }
.checklist li a { font-weight: 600; }
.diag { margin: 0 0 12px; }
.setup { max-width: 720px; padding-top: 40px; padding-bottom: 50px; }
.setup h1 { font-size: 40px; letter-spacing: -.03em; }
.setup-steps { color: var(--text-2); padding-left: 22px; margin-bottom: 24px; }
.setup-steps li { margin: 12px 0; }
.setup-steps b { color: var(--text); }
@media (max-width: 900px) {
  .plans.three, .ways { grid-template-columns: 1fr; }
  .tuto { grid-template-columns: 1fr; gap: 10px; padding-top: 24px; }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc a { font-size: 14px; overflow-wrap: anywhere; }
  .toc-t { grid-column: 1 / -1; }
}

/* ── v1.3 : objectif de revenus, commandes ── */
.goal h2 { font-size: 24px; }
.goalbar { position: relative; height: 14px; background: var(--ink-4); border-radius: 99px; margin: 16px 0 18px; }
.goalbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), #ffd27f); border-radius: 99px; min-width: 6px; }
.goalbar .cost { position: absolute; top: -5px; width: 2px; height: 24px; background: var(--text-2); border-radius: 2px; }
.goalnums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.goalnums b { display: block; font-family: var(--display); font-size: 28px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.goalnums b.pos { color: var(--mint); } .goalnums b.neg { color: var(--rose); }
.goalnums span { color: var(--muted); font-size: 14px; }
.order { border-color: rgba(255, 181, 71, .5); margin-bottom: 14px; }
.order h2 { font-size: 20px; }
@media (max-width: 900px) { .goalnums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
