/* Site Tsuki UHC : direction artistique de la bannière « La constellation des UHC »
   (ciel indigo étoilé, lune à bandes lilas, constellation en croissant, relief en pixels).
   Aucun style ni script dans la page : la politique de sécurité du site (CSP) n'accepte que ces fichiers. */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --bg: #0b0b24;
  --bg-deep: #08081c;
  --sky-top: #272063;
  --sky-mid: #191741;
  --ground-back: #17154a;
  --ink: #f4f5ff;
  --text: #c0c4e6;
  --muted: #9aa0cf;
  --quiet: #7378a8;
  --line: rgba(167, 172, 240, .13);
  --line-strong: rgba(167, 172, 240, .22);
  --line-bright: rgba(196, 181, 253, .34);
  /* presque opaque : les étoiles du fond ne passent pas derrière le texte des cartes */
  --surface: linear-gradient(180deg, rgba(26, 25, 68, .93), rgba(15, 15, 46, .93));
  --surface-solid: #131338;
  --blue: #93c5fd;
  --lilac: #a78bfa;
  --lilac-soft: #c4b5fd;
  --grad: linear-gradient(95deg, #9ecbff 0%, #a9b6ff 48%, #b49bfb 100%);
  --grad-ink: #15123c;
  --good: #86e3b5;
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Manrope", "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; background: var(--bg-deep); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.65 "DM Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: linear-gradient(180deg, var(--bg) 0%, #0a0a22 55%, var(--bg-deep) 100%);
  overflow-x: hidden;
}
::selection { color: var(--grad-ink); background: var(--lilac-soft); }
:focus-visible { outline: 2px solid var(--lilac-soft); outline-offset: 3px; border-radius: 8px; }
a { color: var(--lilac-soft); }
img { max-width: 100%; }
.hidden { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); }
p { margin: 0; }
code {
  font-family: var(--mono); font-size: .88em; color: #ddd6ff; white-space: nowrap;
  background: rgba(167, 139, 250, .13); border: 1px solid rgba(196, 181, 253, .18); border-radius: 7px; padding: .1em .42em;
}
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--grad-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ciel fixe : étoiles et constellations animées. Il passe au-dessus des fonds (héros compris) et sous tout le contenu. */
.starfield { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.starfield svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cst { transition: opacity 1.8s ease; animation: drift 26s ease-in-out infinite alternate; }
.cst.out { opacity: 0; }
.cst path { fill: none; stroke: rgba(196, 190, 255, .34); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease; transition-delay: calc(var(--k, 0) * .3s + .4s); }
.cst.on path { stroke-dashoffset: 0; }
.cst use { color: #f2f3ff; opacity: 0; transition: opacity .8s ease; transition-delay: calc(var(--k, 0) * .3s); }
.cst use.lilac { color: var(--lilac-soft); }
.cst.on use { opacity: .9; }
@keyframes drift { to { transform: translate(12px, -9px); } }
.starfield .dot { fill: #fff; }
.starfield .spark { color: #eef0ff; }
.starfield .spark.lilac { color: var(--lilac); }
.twinkle { animation: twinkle var(--d, 4s) ease-in-out var(--delay, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: var(--o, .9); } 50% { opacity: .12; } }
/* le contenu passe devant le ciel ; le fond du héros, lui, reste derrière (la section n'a pas de niveau propre) */
main > section.shell, .hero-in, footer { position: relative; z-index: 2; }

/* ------------------------------------------------------------ barre du haut */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.top.scrolled, .top.open { background: rgba(11, 11, 36, .82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); box-shadow: 0 10px 40px rgba(4, 4, 20, .35); }
.top-in { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); width: min(1240px, calc(100% - 40px)); height: 70px; margin-inline: auto; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: none; }
.logo-moon { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(167, 139, 250, .5)); }
.logo-name { font: 800 1.22rem/1 var(--display); letter-spacing: -.045em; }
.logo-name span, .wordmark span, h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: #bfc3e8; font-size: .92rem; font-weight: 500; text-decoration: none; transition: color .16s, background .16s; }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="true"] { color: var(--ink); background: rgba(167, 139, 250, .13); }
.top-side { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, .035); color: #cdd1f0; font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .16s, color .16s; }
.pill:hover { border-color: var(--line-bright); color: var(--ink); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6d72a4; flex: none; }
.on .status-dot, .status-dot.on { background: var(--good); box-shadow: 0 0 0 4px rgba(134, 227, 181, .14), 0 0 14px rgba(134, 227, 181, .75); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(134, 227, 181, 0), 0 0 14px rgba(134, 227, 181, .75); } }
.menu-button { display: none; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--ink); font-size: 1.15rem; cursor: pointer; }
.menu-button .shut, .top.open .menu-button .open { display: none; }
.top.open .menu-button .shut { display: block; }

/* ------------------------------------------------------------ boutons */
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px;
  border: 1px solid var(--line-bright); border-radius: 14px; background: rgba(255, 255, 255, .04); color: var(--ink);
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s, filter .2s;
}
.button > span { display: inline-flex; align-items: center; gap: 10px; }
.button:hover { transform: translateY(-2px); border-color: var(--lilac-soft); background: rgba(167, 139, 250, .13); }
.button:active { transform: translateY(0); }
.button.primary { border-color: transparent; background: var(--grad); color: var(--grad-ink); box-shadow: 0 10px 34px rgba(150, 140, 250, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.button.primary:hover { box-shadow: 0 14px 44px rgba(150, 140, 250, .46), inset 0 1px 0 rgba(255, 255, 255, .45); filter: brightness(1.05); }
.button.small { min-height: 38px; padding: 7px 15px; border-radius: 999px; font-size: .86rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.text-link .icon { color: var(--lilac-soft); transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }
.copy-done { display: none !important; }
[data-copy].done .copy-idle { display: none !important; }
[data-copy].done .copy-done { display: inline-flex !important; }

/* ------------------------------------------------------------ héros */
.hero {
  position: relative; overflow: hidden; padding-top: 70px;
  background:
    radial-gradient(62rem 38rem at 6% -8%, rgba(78, 62, 176, .58), transparent 62%),
    radial-gradient(46rem 30rem at 96% 34%, rgba(110, 96, 220, .2), transparent 66%),
    linear-gradient(170deg, var(--sky-top) 0%, var(--sky-mid) 46%, #0e0e2c 100%);
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  width: min(1240px, calc(100% - 40px)); margin-inline: auto;
  padding: clamp(48px, 7vw, 96px) 0 clamp(150px, 15vw, 220px);
}
.hero-text { position: relative; z-index: 2; min-width: 0; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 20px; color: #b9bdea; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kicker span + span::before { content: "·"; margin-right: 12px; color: var(--quiet); }
.kicker .beta { padding: 2px 10px; border: 1px solid var(--line-bright); border-radius: 99px; color: var(--lilac-soft); background: rgba(167, 139, 250, .1); letter-spacing: .12em; }
.kicker .beta::before { content: none; }
.wordmark { font-size: clamp(3.5rem, 9.6vw, 7.4rem); font-weight: 800; line-height: .94; letter-spacing: -.055em; color: #f6f6ff; text-shadow: 0 0 70px rgba(150, 140, 250, .22); }
.wordmark span { padding-right: .04em; }
.tagline { margin: 20px 0 0 4px; color: #b9bde8; font-size: clamp(.82rem, 1.5vw, 1.08rem); font-weight: 500; letter-spacing: .34em; text-transform: uppercase; }
.lead { max-width: 540px; margin-top: 26px; color: #c2c6ea; font-size: clamp(1.02rem, 1.4vw, 1.12rem); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 26px; margin-top: 32px; }
.ip-card {
  display: inline-flex; align-items: center; gap: 22px; padding: 10px 10px 10px 20px;
  border: 1px solid var(--line-bright); border-radius: 20px; background: rgba(20, 18, 58, .7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 20px 56px rgba(5, 4, 22, .5), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.ip-text { display: grid; gap: 1px; min-width: 0; }
.ip-label { color: #a2a7d6; font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ip { font: 800 1.34rem/1.3 var(--display); letter-spacing: -.03em; color: var(--ink); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 18px 0; margin: 38px 0 0; }
.hs { padding: 0 clamp(14px, 2vw, 26px); border-left: 1px solid var(--line-strong); }
.hs:first-child { padding-left: 0; border-left: 0; }
.hs dt { color: #9ba0d2; font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hs dd { margin: 5px 0 0; font: 800 1.4rem/1.15 var(--display); letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hs-state dd { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; letter-spacing: -.01em; min-height: 1.61rem; }

.hero-art { position: relative; z-index: 1; display: grid; place-items: center; width: min(100%, 520px); aspect-ratio: 1; justify-self: center; }
.moon-glow { position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(circle, rgba(146, 134, 240, .4) 0%, rgba(110, 98, 210, .15) 36%, transparent 64%); pointer-events: none; }
.orbit { position: absolute; border: 1px solid rgba(196, 190, 255, .2); border-radius: 50%; pointer-events: none; }
.orbit.o1 { inset: -4%; transform: rotate(-22deg) scaleY(.36); }
.orbit.o2 { inset: -16%; transform: rotate(14deg) scaleY(.3); border-style: dashed; border-color: rgba(196, 190, 255, .13); }
.big-moon { position: relative; width: 74%; aspect-ratio: 1; filter: drop-shadow(0 0 42px rgba(167, 150, 255, .5)) drop-shadow(0 0 120px rgba(120, 110, 230, .28)); animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.constellation { position: absolute; left: -4%; top: 2%; width: 26%; height: auto; aspect-ratio: 180 / 210; color: #eef0ff; opacity: .92; }
.c-lines polyline { fill: none; stroke: rgba(196, 190, 255, .55); stroke-width: 1.4; stroke-linejoin: round; }
.c-stars use { color: #f2f3ff; }
.c-stars use:nth-child(3n) { color: var(--lilac-soft); }
.hero-spark { position: absolute; color: #f2f3ff; animation: twinkle 3.6s ease-in-out infinite; }
.hero-spark.s1 { width: 22px; height: 22px; top: 8%; right: 20%; }
.hero-spark.s2 { width: 14px; height: 14px; top: 26%; right: 2%; color: var(--lilac); animation-delay: 1.2s; }
.hero-spark.s3 { width: 18px; height: 18px; bottom: 6%; left: 22%; animation-delay: 2.1s; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px;
  border: 1px solid var(--line-bright); border-radius: 16px; background: rgba(22, 20, 62, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(5, 4, 22, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: float 7s ease-in-out infinite;
}
.fc-a { top: 15%; right: -5%; animation-delay: -2s; }
.fc-b { bottom: 12%; left: -7%; animation-delay: -4.5s; }
.fc-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--grad); color: var(--grad-ink); font-size: 1.05rem; }
.fc-text { display: grid; gap: 0; line-height: 1.3; }
.fc-text b { color: var(--ink); font: 700 .92rem/1.3 var(--display); letter-spacing: -.01em; }
.fc-text span { color: #a9aed8; font-size: .78rem; }
.skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 9vw, 120px); shape-rendering: crispEdges; z-index: 3; }
.sky-back { fill: var(--ground-back); }
.sky-front { fill: var(--bg); }

/* ------------------------------------------------------------ sections */
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
main > section.shell { padding-top: clamp(88px, 11vw, 148px); }
.section-head { margin-bottom: clamp(28px, 4vw, 46px); }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; gap: 18px clamp(28px, 5vw, 72px); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: #bdb4ec; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow svg { width: 13px; height: 13px; color: var(--lilac-soft); }
h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); font-weight: 800; line-height: 1.08; letter-spacing: -.05em; }
.section-lead { color: var(--text); font-size: 1.04rem; line-height: 1.75; max-width: 48ch; }
.split .section-lead { justify-self: end; padding-bottom: .35em; }
.card-base, .feature, .grade, .step-list li, .mode-card, .game, .live-side, .live-empty, .faq-list details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* en quatre points */
main > section.facts { padding-top: clamp(18px, 3vw, 34px); }
.facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.facts li { display: grid; gap: 4px; align-content: start; padding: 22px clamp(16px, 2vw, 26px); border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts b { font: 800 1.14rem/1.25 var(--display); letter-spacing: -.03em; color: var(--ink); }
.facts span { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* en direct */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); align-items: start; gap: 14px; }
.live-list { display: grid; gap: 10px; }
.game { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 18px; padding: 16px 20px; transition: border-color .2s, transform .2s var(--ease); }
.game:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.game-head, .mode-card img, .mode-card .noimg { width: 52px; height: 52px; flex: none; border-radius: 14px; image-rendering: pixelated; background: rgba(167, 139, 250, .14); border: 1px solid var(--line-bright); }
.game-head.noimg, .mode-card .noimg { display: grid; place-items: center; color: var(--lilac-soft); }
.game-head.noimg svg, .mode-card .noimg svg { width: 20px; height: 20px; }
.game-name { font: 800 1.06rem/1.3 var(--display); letter-spacing: -.02em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-host { display: flex; align-items: center; gap: 7px; margin-top: 2px; color: var(--muted); font-size: .88rem; }
.game-host .icon { color: var(--lilac-soft); font-size: .95rem; }
.game-side { display: grid; justify-items: end; gap: 8px; min-width: 132px; }
.state { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 99px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state.open { color: var(--good); border: 1px solid rgba(134, 227, 181, .38); background: rgba(134, 227, 181, .08); }
.state.playing { color: var(--lilac-soft); border: 1px solid var(--line-bright); background: rgba(167, 139, 250, .1); }
.fill { display: grid; justify-items: end; gap: 5px; width: 100%; color: var(--text); font-size: .86rem; font-variant-numeric: tabular-nums; }
.fill b { color: var(--ink); }
.fill-bar { width: 100%; height: 5px; border-radius: 99px; background: rgba(167, 172, 240, .14); overflow: hidden; }
.fill-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.live-empty { display: flex; align-items: center; gap: 18px; padding: 26px; border-style: dashed; border-color: var(--line-strong); }
.live-empty-icon { display: grid; width: 52px; height: 52px; flex: none; place-items: center; border: 1px solid var(--line-bright); border-radius: 15px; background: rgba(167, 139, 250, .11); color: var(--lilac-soft); font-size: 1.3rem; }
.live-empty b { display: block; color: var(--ink); font: 800 1.08rem/1.35 var(--display); letter-spacing: -.02em; }
.live-empty span { color: var(--muted); font-size: .95rem; }
.live-empty a { color: var(--lilac-soft); font-weight: 600; }
.live-side { display: grid; gap: 0; padding: 8px 22px 16px; }
.metric { display: flex; align-items: center; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.metric-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border: 1px solid var(--line-bright); border-radius: 13px; background: rgba(167, 139, 250, .11); color: var(--lilac-soft); font-size: 1.1rem; }
.metric-label { display: block; color: var(--muted); font-size: .82rem; }
.metric-value { display: block; font: 800 1.55rem/1.15 var(--display); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.updated { margin-top: 14px; color: var(--quiet); font-size: .8rem; }

/* le réseau */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 26px; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.feature::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(26rem 14rem at 100% 0%, rgba(167, 139, 250, .14), transparent 68%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.feature:hover { border-color: var(--line-bright); transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 60px rgba(5, 4, 24, .45); }
.feature:hover::after { opacity: 1; }
.feature > * { position: relative; z-index: 1; }
.feature-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 8px; border: 1px solid var(--line-bright); border-radius: 14px; background: rgba(167, 139, 250, .12); color: var(--lilac-soft); font-size: 1.25rem; }
.feature h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }
.feature p { color: var(--text); font-size: .96rem; line-height: 1.7; }
.feature.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: clamp(20px, 3vw, 40px); background: radial-gradient(30rem 18rem at 0% 0%, rgba(120, 104, 230, .22), transparent 70%), var(--surface); border-color: var(--line-strong); }
.feature-body { display: flex; flex-direction: column; gap: 10px; flex: 1.2; min-width: 0; }
.flow { flex: 1; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.flow li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(11, 11, 36, .5); color: var(--ink); font-size: .92rem; font-weight: 600; }
.flow span { display: grid; width: 26px; height: 26px; flex: none; place-items: center; border-radius: 8px; background: var(--grad); color: var(--grad-ink); font: 800 .8rem/1 var(--display); }
/* illustrations des cartes larges (décor, sans valeur réelle) */
.chat { flex: 1; display: grid; gap: 8px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(8, 8, 28, .62); font-family: var(--mono); font-size: .82rem; line-height: 1.6; }
.chat p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; color: #e6e8fb; font-size: inherit; line-height: inherit; }
.chat b { color: #b7bbdc; font-weight: 500; }
.chat-title { padding: 0 7px; border: 1px solid rgba(147, 197, 253, .4); border-radius: 6px; color: var(--blue); background: rgba(147, 197, 253, .1); white-space: nowrap; }
.chat-moon { color: var(--blue); font-weight: 700; }
.chat-sep { color: var(--quiet); }
.chat .chat-sys { flex-wrap: nowrap; align-items: flex-start; color: var(--lilac-soft); }
.chat-sys svg { width: 11px; height: 11px; flex: none; margin-top: .42em; color: var(--lilac-soft); }
.trend { flex: 1; display: grid; gap: 12px; min-width: 0; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(8, 8, 28, .62); }
.trend-bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; }
.trend-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--grad); opacity: .9; }
.trend-bars i:nth-child(1) { height: 34%; opacity: .45; }
.trend-bars i:nth-child(2) { height: 52%; opacity: .55; }
.trend-bars i:nth-child(3) { height: 41%; opacity: .6; }
.trend-bars i:nth-child(4) { height: 66%; opacity: .7; }
.trend-bars i:nth-child(5) { height: 58%; opacity: .75; }
.trend-bars i:nth-child(6) { height: 82%; opacity: .85; }
.trend-bars i:nth-child(7) { height: 73%; opacity: .9; }
.trend-bars i:nth-child(8) { height: 100%; }
.trend ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.trend li { padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .76rem; font-weight: 600; }

/* hub lunaire */
.hub-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; gap: 14px; }
.hub-shot, .hub-inset { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line-bright); border-radius: var(--radius); }
.hub-shot { box-shadow: 0 30px 80px rgba(5, 4, 24, .6), 0 0 90px rgba(140, 128, 235, .12); }
.hub-shot img, .hub-inset img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hub-shot:hover img, .hub-inset:hover img { transform: scale(1.035); }
.hub-shot figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 13px; border: 1px solid var(--line-bright); border-radius: 99px; background: rgba(11, 11, 36, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #d3d6f3; font-size: .8rem; }
.hub-side { display: grid; grid-template-rows: auto 1fr; gap: 14px; min-width: 0; }
.hub-inset { aspect-ratio: 16 / 9; }
.zones { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; align-content: stretch; }
.zones li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: .9rem; line-height: 1.45; }
.zones b { display: block; color: var(--ink); font: 800 .76rem/1.5 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.zone-dir { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--lilac-soft); font: 800 .8rem/1 var(--display); }

/* modes */
.mode-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: .86rem; font-weight: 600; color: #c3c7ea; background: transparent; border: 1px solid var(--line-bright); padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: color .16s, background .16s; }
.chip:hover { color: var(--ink); background: rgba(167, 139, 250, .1); }
.chip.on { color: var(--grad-ink); background: var(--grad); border-color: transparent; }
#search { font: inherit; font-size: .9rem; color: var(--ink); background: rgba(11, 11, 36, .7); border: 1px solid var(--line-bright); border-radius: 12px; padding: 9px 14px; min-width: 220px; margin-left: auto; }
#search::placeholder { color: var(--quiet); }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mode-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; transition: border-color .2s, transform .2s var(--ease); }
.mode-card:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.mode-card .name { font: 800 1.04rem/1.25 var(--display); letter-spacing: -.02em; color: var(--ink); }
.mode-card .cat { margin-top: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mode-card.soon { border-style: dashed; border-color: var(--line-strong); background: transparent; box-shadow: none; }
.mode-card.soon .name { color: #c9cdee; }
.empty-note { color: var(--muted); text-align: center; margin-top: 18px; }

/* grades */
.grade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.grade { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 26px; }
.grade.star { border-color: var(--line-bright); background: radial-gradient(26rem 16rem at 100% 0%, rgba(167, 139, 250, .22), transparent 70%), linear-gradient(160deg, rgba(46, 41, 112, .8), rgba(22, 20, 58, .75)); box-shadow: 0 24px 70px rgba(90, 70, 200, .22), inset 0 1px 0 rgba(255, 255, 255, .09); }
.grade-flag { position: absolute; top: 22px; right: 22px; padding: 4px 11px; border-radius: 99px; background: var(--grad); color: var(--grad-ink); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.grade h3 { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 1.42rem; font-weight: 800; letter-spacing: -.035em; }
.grade-mark { color: var(--blue); font-size: 1.1rem; }
.grade-how { margin: 5px 0 20px; color: var(--muted); font-size: .92rem; }
.grade ul { display: grid; gap: 10px; margin: 0 0 24px; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); width: 100%; color: #cdd0ef; font-size: .94rem; line-height: 1.5; }
.grade li { display: flex; align-items: baseline; gap: 11px; }
.grade li::before { content: "✦"; color: var(--lilac-soft); font-size: .78rem; flex: none; }
.grade .button { margin-top: auto; width: 100%; }
.grade-orb { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset -9px -4px 0 rgba(30, 24, 80, .35), 0 0 26px rgba(160, 150, 255, .38); }
.grade-orb.lunar { background: radial-gradient(circle at 35% 30%, #f3f5ff, #c9d3ff 70%); }
.grade-orb.beta { background: radial-gradient(circle at 35% 30%, #d9f1ff, #93c5fd 72%); }
.grade-orb.lilac { background: radial-gradient(circle at 35% 30%, #efe6ff, #a78bfa 72%); }

/* étapes */
.step-list { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.step-list li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 26px; }
.step-num { font: 800 2.5rem/1 var(--display); letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.step-list h3 { font-size: 1.14rem; font-weight: 800; letter-spacing: -.025em; }
.step-list p { color: var(--text); font-size: .95rem; line-height: 1.7; }
.mini-copy { margin-top: 8px; padding: 7px 14px; border: 1px solid var(--line-bright); border-radius: 999px; background: rgba(167, 139, 250, .1); color: var(--ink); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: background .16s, border-color .16s; }
.mini-copy:hover { background: rgba(167, 139, 250, .2); border-color: var(--lilac-soft); }

/* questions */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px clamp(28px, 5vw, 72px); align-items: start; }
.faq-head { position: sticky; top: 104px; }
.faq-head .section-lead { margin-top: 18px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 18px; transition: border-color .2s, background .2s; }
.faq-list details[open] { border-color: var(--line-bright); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; color: var(--ink); font: 700 1.04rem/1.4 var(--display); letter-spacing: -.02em; cursor: pointer; list-style: none; border-radius: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--lilac-soft); transition: transform .25s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 21px; color: var(--text); line-height: 1.75; max-width: 62ch; }

/* appel final */
.closing {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center;
  margin-top: clamp(88px, 11vw, 148px); padding: clamp(52px, 7vw, 84px) 24px !important;
  border: 1px solid var(--line-bright); border-radius: 30px;
  background: radial-gradient(38rem 22rem at 50% -12%, rgba(140, 128, 235, .36), transparent 70%), linear-gradient(170deg, #262061, #131237);
  box-shadow: 0 40px 100px rgba(5, 4, 24, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.closing .eyebrow { justify-content: center; }
.closing-ip { margin-top: 18px; color: var(--ink); font: 700 1.1rem/1.4 var(--display); letter-spacing: -.01em; }
.closing-ip span { color: var(--muted); font-weight: 500; }
.closing-moon { position: absolute; width: 280px; height: 280px; right: -76px; top: -96px; opacity: .22; }
.closing-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }

/* pied de page */
.foot { margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); background: rgba(8, 8, 28, .6); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; width: min(1180px, calc(100% - 40px)); margin-inline: auto; padding: 48px 0 30px; }
.foot-brand p { margin-top: 14px; max-width: 34ch; color: var(--muted); font-size: .92rem; }
.foot .logo-moon { width: 28px; height: 28px; }
.foot-col { display: grid; align-content: start; gap: 9px; }
.foot-col b { margin-bottom: 4px; color: var(--ink); font: 800 .76rem/1.5 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.foot-col a { color: var(--muted); font-size: .93rem; text-decoration: none; width: max-content; max-width: 100%; }
.foot-col a:hover { color: var(--ink); }
.copyright { width: min(1180px, calc(100% - 40px)); margin-inline: auto; padding: 20px 0 34px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .78rem; }

/* message bref (adresse copiée) */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); padding: 11px 18px; border: 1px solid var(--line-bright); border-radius: 999px; background: rgba(22, 20, 62, .95); color: var(--ink); font-size: .92rem; font-weight: 600; box-shadow: 0 18px 50px rgba(5, 4, 22, .55); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* apparition au défilement : le script ne cache (.pre) que ce qui est encore sous l'écran, donc rien ne reste invisible sans lui */
[data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
[data-reveal].pre { opacity: 0; transform: translateY(20px); }

/* ------------------------------------------------------------ écrans moyens et petits */
@media (max-width: 1080px) {
  .fc-a { right: 0; }
  .fc-b { left: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature.wide, .bento .feature:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-button { display: grid; }
  .nav { position: absolute; top: 70px; left: 12px; right: 12px; display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px; border: 1px solid var(--line-strong); border-radius: 18px; background: #12113a; box-shadow: 0 30px 80px rgba(4, 4, 20, .6); }
  .top.open .nav { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .hero-in { grid-template-columns: 1fr; padding-top: 34px; }
  .hero-art { order: -1; width: min(72vw, 340px); }
  .float-card { display: none; }
  .section-head.split { grid-template-columns: 1fr; }
  .split .section-lead { justify-self: start; }
  .live-grid, .hub-grid { grid-template-columns: 1fr; }
  .live-side { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; padding: 6px 20px 14px; }
  .live-side .metric { border-bottom: 0; }
  .updated { grid-column: 1 / -1; margin-top: 2px; }
  .hub-side { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: stretch; }
  .hub-inset { aspect-ratio: auto; min-height: 220px; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .grade-grid, .step-list { grid-template-columns: 1fr; }
  .feature.wide { flex-direction: column; align-items: stretch; }
  .hub-side { grid-template-columns: 1fr; }
  .hub-inset { aspect-ratio: 16 / 9; min-height: 0; }
  .live-side { grid-template-columns: 1fr; }
  .live-side .metric { border-bottom: 1px solid var(--line); }
  .updated { margin-top: 14px; }
  #search { margin-left: 0; }
}
@media (max-width: 560px) {
  .top-in { width: calc(100% - 28px); gap: 10px; }
  .top-side .button { display: none; }
  .shell, .hero-in, .foot-in, .copyright { width: calc(100% - 32px); }
  .bento { grid-template-columns: 1fr; }
  .ip-card { width: 100%; justify-content: space-between; gap: 12px; }
  .ip { font-size: 1.14rem; }
  .tagline { letter-spacing: .22em; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .hs:nth-child(odd) { padding-left: 0; border-left: 0; }
  .game { grid-template-columns: auto minmax(0, 1fr); }
  .game-side { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 12px; min-width: 0; }
  .live-empty { flex-direction: column; align-items: flex-start; }
  .facts ul { grid-template-columns: 1fr; }
  .facts li { border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .closing-actions .button { width: 100%; }
  #search, .mode-tools { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal].pre { opacity: 1; transform: none; }
}
