/* orbjar — DA « laboratoire quantique » : noir bleuté, encre froide, chiffres en mono, étiquettes en pixel.
   Une seule couleur d'action (le cyan du Quark) ; les autres couleurs n'appartiennent qu'aux niveaux. */
:root {
  --bg: #07080c;
  --bg2: #0b0d13;
  --panel: #0e1118;
  --line: #1b2030;
  --line2: #262c40;
  --ink: #e8ecf6;
  --mute: #8a93a8;
  --dim: #5b6378;
  --accent: #7fd8ff;
  --accent-ink: #04121a;
  --warn: #ffb46b;
  --ok: #8ff0b5;
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pix: "Silkscreen", var(--mono);
  --r: 10px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(150,170,220,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.pix { font-family: var(--pix); letter-spacing: 0.04em; }
.mute { color: var(--mute); }

/* ---------------------------------------------------------------- en-tête */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7,8,12,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.03em; font-size: 21px; }
.logo img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(127,216,255,.25)); }
.logo small { font: 9px var(--pix); color: var(--dim); border: 1px solid var(--line2); border-radius: 4px; padding: 2px 5px; }
.nav { display: flex; gap: 18px; margin-left: 8px; }
.nav a { text-decoration: none; color: var(--mute); font-size: 14px; }
.nav a:hover, .nav a.on { color: var(--ink); }
.top .spacer { flex: 1; }

/* ---------------------------------------------------------------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font: 600 14px var(--sans);
  text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, transform .08s; white-space: nowrap; }
.btn:hover { border-color: #3a4260; background: #131726; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(127,216,255,0.15), 0 8px 30px -10px rgba(127,216,255,0.55); }
.btn.primary:hover { background: #a2e3ff; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn .k { font: 10px var(--pix); opacity: .7; }

/* ---------------------------------------------------------------- accueil */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 36px; align-items: center; padding: 46px 0 30px; min-height: calc(100vh - 60px); max-height: 860px; }
.kicker { font: 11px var(--pix); color: var(--accent); letter-spacing: .06em; display: flex; gap: 10px; align-items: center; }
.kicker i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.0; letter-spacing: -0.035em; margin: 16px 0 14px; font-weight: 700; }
h1 span { color: var(--mute); font-weight: 500; }
.lede { color: var(--mute); font-size: 17px; max-width: 520px; margin: 0 0 22px; }
.formula { font: 13px var(--mono); color: #b9c3dc; border: 1px solid var(--line); background: rgba(14,17,24,0.7);
  border-radius: var(--r); padding: 12px 14px; display: grid; gap: 4px; max-width: 520px; margin-bottom: 24px; }
.formula b { color: var(--accent); font-weight: 500; }
.formula .c { color: var(--dim); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.facts div { display: grid; }
.facts b { font: 600 20px var(--mono); }
.facts span { font-size: 12px; color: var(--dim); }

.stage { position: relative; border: 1px solid var(--line); border-radius: 16px; background:
  radial-gradient(120% 80% at 50% 100%, rgba(127,216,255,0.07), transparent 60%), var(--bg2); height: min(76vh, 640px); overflow: hidden; }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage .tag { position: absolute; right: 12px; top: 12px; font: 9px var(--pix); color: var(--dim); border: 1px solid var(--line2);
  border-radius: 4px; padding: 3px 6px; background: rgba(7,8,12,.6); }
.stage .feed { position: absolute; right: 12px; bottom: 12px; display: grid; gap: 4px; justify-items: end; pointer-events: none; }
.stage .feed span { font: 11px var(--mono); color: var(--mute); background: rgba(7,8,12,.7); border: 1px solid var(--line);
  border-radius: 5px; padding: 2px 7px; animation: arrive .35s ease-out; }
.stage .feed span b { color: var(--accent); font-weight: 500; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }

section { padding: 56px 0; border-top: 1px solid var(--line); }
.sh { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
h2 { font-size: 28px; letter-spacing: -0.02em; margin: 6px 0 0; }
.sh p { margin: 0; color: var(--mute); max-width: 520px; }

/* table des niveaux */
.levels { width: 100%; border-collapse: collapse; font-size: 14px; }
.levels th { text-align: left; font: 10px var(--pix); color: var(--dim); letter-spacing: .05em; padding: 0 12px 10px; border-bottom: 1px solid var(--line); font-weight: 400; }
.levels td { padding: 6px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.levels tr:hover td { background: rgba(255,255,255,0.015); }
.levels .n { font: 11px var(--pix); color: var(--dim); width: 74px; white-space: nowrap; }
.levels canvas { width: 54px; height: 54px; display: block; }
.levels .nm { font-weight: 600; }
.levels .num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.levels th.num { text-align: right; }
.levels .au { color: var(--mute); }
.levels tr.cur td { background: rgba(127,216,255,0.05); }
.levels tr.cur .n { color: var(--accent); }
.levels tr.done .nm::after { content: " ✓"; color: var(--ok); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); padding: 14px 6px 4px; }

/* étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--bg2); }
.step .pix { font-size: 10px; color: var(--accent); }
.step h3 { margin: 10px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--mute); font-size: 14px; }
.split { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 16px 0 8px; }
.split i:first-child { background: var(--accent); }
.split i:last-child { background: #ffc95c; }
.split-l { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--mute); }

/* cartes de coins */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px; background: var(--bg2); text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--line2); transform: translateY(-2px); }
.card img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--panel); }
.card .t { font-weight: 700; }
.card .t small { color: var(--mute); font-weight: 400; margin-left: 6px; }
.card .lv { display: flex; align-items: center; gap: 8px; font: 10px var(--pix); margin-top: 6px; }
.card .lv i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; background: currentColor; }
.bar { height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: currentColor; border-radius: 3px; transition: width .6s; }
.badge { font: 9px var(--pix); color: var(--warn); border: 1px solid rgba(255,180,107,.35); border-radius: 4px; padding: 1px 5px; margin-left: 6px; }
.empty { border: 1px dashed var(--line2); border-radius: 14px; padding: 30px; text-align: center; color: var(--mute); }

/* ---------------------------------------------------------------- formulaire de lancement */
.launch { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding-top: 36px; padding-bottom: 60px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); padding: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--mute); display: flex; justify-content: space-between; }
.field label em { font-style: normal; color: var(--dim); font-size: 12px; }
input[type=text], input[type=number], input[type=url], textarea {
  width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line2); border-radius: 8px;
  padding: 11px 12px; font: 15px var(--sans); outline: none; transition: border-color .15s; }
input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 84px; }
input.mono { font-family: var(--mono); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.imgrow { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; margin-bottom: 18px; }
.drop { width: 132px; height: 132px; border: 1px dashed var(--line2); border-radius: 12px; display: grid; place-items: center;
  color: var(--dim); font-size: 12px; cursor: pointer; overflow: hidden; position: relative; background: var(--bg); text-align: center; }
.drop img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.drop.busy::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent, rgba(127,216,255,.18), transparent); animation: scan 1.1s linear infinite; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.imgbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.ai { border-color: rgba(127,216,255,.45); color: var(--accent); }
.ai .k { opacity: 1; }
.hint { font-size: 12px; color: var(--dim); margin-top: 8px; }
.err { color: #ff8f8f; font-size: 13px; margin-top: 8px; }
.err[hidden] { display: none; }
.lock { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font: 13px var(--mono); color: var(--mute); }
.lock svg { flex: none; }
.steps-l { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 13px; color: var(--dim); }
.steps-l li::before { content: "○ "; font-family: var(--mono); }
.steps-l li.fait { color: var(--ok); }
.steps-l li.fait::before { content: "● "; }
.side h3 { margin: 0 0 4px; font-size: 16px; }
.side .mini { height: 300px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); margin: 12px 0; overflow: hidden; }
.side .mini canvas { width: 100%; height: 100%; display: block; }
.kv { display: grid; gap: 8px; font-size: 13px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.kv span { color: var(--mute); }
.kv b { font: 500 13px var(--mono); text-align: right; }
.done { text-align: center; padding: 30px; }

/* ---------------------------------------------------------------- page d'un coin */
.coin { display: grid; grid-template-columns: 1fr 360px; gap: 22px; padding-top: 26px; padding-bottom: 60px; align-items: start; }
.coin .stage { height: min(80vh, 760px); }
.head { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin-bottom: 16px; }
.head img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.head h1 { font-size: 26px; margin: 0; letter-spacing: -0.02em; }
.head h1 small { color: var(--mute); font-weight: 500; font-size: 16px; margin-left: 6px; }
.ca { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--mute); margin-top: 4px; cursor: pointer; }
.ca:hover { color: var(--ink); }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.lvl { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; background: var(--bg); }
.lvl .big { display: flex; align-items: baseline; gap: 10px; }
.lvl .big b { font: 22px var(--pix); }
.lvl .big span { font-weight: 600; font-size: 18px; }
.lvl .meta { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--mute); margin-top: 10px; }
.buys { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; font: 12px var(--mono); }
.buys li { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px solid var(--line); color: var(--mute); }
.buys li b { color: var(--ink); font-weight: 500; }
.buys li.nouveau { animation: arrive .4s ease-out; }
.h4 { font: 10px var(--pix); color: var(--dim); margin: 18px 0 8px; letter-spacing: .05em; }
.h4.row { display: flex; align-items: center; justify-content: space-between; }
.hist-btn { height: 26px; padding: 0 10px; font-size: 12px; }
.hist-btn[aria-expanded="true"] .k { display: inline-block; transform: rotate(180deg); }
.hist { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 10px; margin-bottom: 10px; }
.hist-t { font-size: 11px; color: var(--dim); margin-bottom: 6px; }
.hist-l { list-style: none; margin: 0 0 8px; padding: 0; max-height: 340px; overflow: auto; font: 12px var(--mono); }
.hist-l li { display: grid; grid-template-columns: 18px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 2px;
  border-bottom: 1px solid var(--line); color: var(--mute); }
.hist-l li b { color: var(--ink); font-weight: 500; text-align: right; }
.hist-l li.non b { color: var(--mute); }
.hist-l a { color: inherit; text-decoration: none; }
.hist-l a:hover { color: var(--ink); text-decoration: underline; }
.ok-i, .ko-i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.ok-i { color: #04140b; background: var(--ok); }
.ko-i { color: #fff; background: #ff5c5c; }
.grow { display: inline-block; margin-top: 10px; font-size: 10px; letter-spacing: .05em; color: var(--accent);
  border: 1px solid rgba(127,216,255,.6); background: rgba(127,216,255,.08); padding: 4px 8px; border-radius: 4px; }
.grow[hidden] { display: none; }
.grow.on { animation: gonfle 4.5s ease-out forwards; }
@keyframes gonfle { 0% { opacity: 0; transform: translateX(-6px); } 4% { opacity: 1; transform: none; }
  8%, 16% { opacity: .35; } 12%, 20% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs a { font: 10px var(--pix); letter-spacing: .05em; text-decoration: none; color: var(--mute); border: 1px solid var(--line2);
  border-radius: 6px; padding: 7px 10px; background: var(--bg2); }
.tabs a:hover { color: var(--ink); border-color: #3a4260; }
.tabs a.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.field label.theme { display: grid; justify-content: stretch; color: var(--ink); position: relative; }
.theme { display: grid; gap: 2px; border: 1px solid var(--line2); border-radius: 10px; padding: 10px; cursor: pointer;
  background: var(--bg); transition: border-color .15s, background .15s; }
.theme:hover { border-color: #3a4260; }
.theme.on { border-color: var(--accent); background: rgba(127,216,255,.06); }
.theme input { position: absolute; opacity: 0; pointer-events: none; }
.theme .trio { display: flex; gap: 2px; margin-bottom: 6px; }
.theme .trio canvas { width: 36px; height: 36px; }
.theme b { font-size: 14px; }
.theme small { font-size: 11px; color: var(--dim); line-height: 1.3; }
.info-l { display: inline-flex; align-items: center; gap: 8px; }
.info { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line2); color: var(--mute);
  display: inline-grid; place-items: center; font: 600 11px var(--mono); letter-spacing: 0; cursor: help; text-transform: none; }
.info:hover, .info:focus { color: var(--accent); border-color: var(--accent); outline: none; }
.info .bulle { position: absolute; left: -10px; top: calc(100% + 10px); width: 300px; z-index: 20; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.45);
  font: 13px/1.5 var(--sans); letter-spacing: 0; color: var(--mute); text-align: left; display: grid; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.info .bulle b { color: var(--ink); font-weight: 600; }
.info .bulle .pas { display: flex; gap: 10px; }
.info .bulle em { font-style: normal; font-family: var(--mono); color: var(--accent); min-width: 48px; }
.info:hover .bulle, .info:focus .bulle, .info:focus-within .bulle { opacity: 1; visibility: visible; transform: none; }
/* accueil (18/10) */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how .step img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px; box-shadow: 0 0 24px rgba(127,216,255,.25); }
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.world { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 18px 12px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--bg2); text-decoration: none; transition: border-color .15s, transform .15s; }
.world:hover { border-color: var(--line2); transform: translateY(-2px); }
.world img { width: 104px; height: 104px; border-radius: 50%; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.world b { display: block; font-size: 16px; }
.world small { color: var(--dim); font-size: 12px; }
.ladder { list-style: none; margin: 0; padding: 4px 0 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px;
  overflow-x: auto; scrollbar-width: thin; }
.ladder li { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 12px 6px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--bg2); }
.ladder img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 4px; }
.ladder .pix { font-size: 9px; color: var(--dim); }
.ladder b { font-size: 13px; line-height: 1.2; }
.ladder small { font: 11px var(--mono); color: var(--mute); }
.full { margin-top: 16px; }
.full summary { cursor: pointer; color: var(--mute); font-size: 14px; margin-bottom: 12px; }
.full summary:hover { color: var(--ink); }
.feesbox { border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); padding: 22px; }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; color: var(--mute); font-size: 14px; }
.trust b { color: var(--ink); display: block; margin-bottom: 4px; }
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--mute); font-size: 14px; }
.cta-band { text-align: center; display: grid; justify-items: center; gap: 18px; padding: 70px 0 80px; }
.cta-band h2 { font-size: 40px; }
@media (max-width: 900px) { .how, .trust { grid-template-columns: 1fr; } }
.xbtn { gap: 7px; }
.xbtn svg { display: block; }
@media (max-width: 560px) { .xbtn { padding: 0 10px; } .xbtn .opt { display: none; } }
.dev { margin-top: 14px; border: 1px dashed rgba(255,180,107,.4); border-radius: 10px; padding: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--warn); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- téléphone */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-top: 22px; gap: 22px; }
  .stage { height: 62vh; }
  .steps { grid-template-columns: 1fr; }
  .launch, .coin { grid-template-columns: 1fr; }
  .coin .stage { height: 64vh; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav a.opt { display: none; }
  .top .wrap { gap: 12px; }
  h1 { font-size: 40px; }
  .lede { font-size: 15px; }
  .formula { font-size: 12px; }
  .row2 { grid-template-columns: 1fr; }
  .levels .au, .levels .jar { display: none; }
  .facts { gap: 18px; }
}
