/*
 * Site de Woot : même identité que le launcher (« Brut dehors, cristal dedans »).
 * La pierre est neutre ; le minéral (améthyste par défaut) est réservé au cristal, à l'action
 * principale et aux états actifs. `html[data-mineral]` change le minéral de tout le site.
 */

@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/ClashDisplay-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Couleurs du minéral déclarées : le changement de minéral est une transition douce. */
@property --m {
  syntax: "<color>";
  inherits: true;
  initial-value: #a66bf0;
}
@property --m-deep {
  syntax: "<color>";
  inherits: true;
  initial-value: #7b3fc4;
}
@property --m-edge {
  syntax: "<color>";
  inherits: true;
  initial-value: #d9c2ff;
}
@property --m-core {
  syntax: "<color>";
  inherits: true;
  initial-value: #22103a;
}
@property --m-fill {
  syntax: "<color>";
  inherits: true;
  initial-value: #7b3fc4;
}
@property --m-on {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffffff;
}

:root {
  color-scheme: dark;
  --basalt: #0b0a0f;
  --slate: #131119;
  --schist: #1c1924;
  --border: #2a2633;
  --border-strong: #383342;
  --text: #edebf2;
  --text-2: #8c8898;
  --text-3: #7d7989;
  --ruby: #e5484d;
  --jade: #30a46c;
  --sapphire: #3e9bf0;
  --quartz: #c9c9d1;
  --amber: #e2a336;

  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-sans: "Satoshi", "Segoe UI Variable", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius-control: 6px;
  --radius-card: 10px;
  --radius-panel: 14px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --max: 100rem;
  --gutter: clamp(20px, 4vw, 64px);
  --header: 64px;

  /* Grain de pierre très léger (statique). */
  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  transition:
    --m 600ms var(--ease),
    --m-deep 600ms var(--ease),
    --m-edge 600ms var(--ease),
    --m-core 600ms var(--ease),
    --m-fill 600ms var(--ease),
    --m-on 600ms var(--ease);
}

/* Minéraux : miroir de tokens/accents.css du launcher. */
:root,
:root[data-mineral="none"] {
  --m: #a66bf0;
  --m-deep: #7b3fc4;
  --m-edge: #d9c2ff;
  --m-core: #22103a;
  --m-fill: #7b3fc4;
  --m-on: #ffffff;
}
:root[data-mineral="pvp"] {
  --m: #e5484d;
  --m-deep: #b32f37;
  --m-edge: #ffc2c4;
  --m-core: #3a0d10;
  --m-fill: #e5484d;
  --m-on: #1b0a0b;
}
:root[data-mineral="builder"] {
  --m: #30a46c;
  --m-deep: #1e7a4f;
  --m-edge: #aef0cd;
  --m-core: #0b2a1b;
  --m-fill: #30a46c;
  --m-on: #06170f;
}
:root[data-mineral="survival"] {
  --m: #3e9bf0;
  --m-deep: #2170c2;
  --m-edge: #c4e2ff;
  --m-core: #0a2240;
  --m-fill: #3e9bf0;
  --m-on: #06121f;
}
:root[data-mineral="lowend"] {
  --m: #c9c9d1;
  --m-deep: #8e8e99;
  --m-edge: #ffffff;
  --m-core: #26242d;
  --m-fill: #c9c9d1;
  --m-on: #111116;
}
:root[data-mineral="topaz"] {
  --m: #f0883e;
  --m-deep: #c2621e;
  --m-edge: #ffd6b8;
  --m-core: #3a1c06;
  --m-fill: #f0883e;
  --m-on: #1f0e03;
}
:root[data-mineral="citrine"] {
  --m: #f5c542;
  --m-deep: #c49a1c;
  --m-edge: #fff0b8;
  --m-core: #3a2c06;
  --m-fill: #f5c542;
  --m-on: #1f1703;
}
:root[data-mineral="peridot"] {
  --m: #8cc63f;
  --m-deep: #64962a;
  --m-edge: #dcf5b8;
  --m-core: #1e2e0a;
  --m-fill: #8cc63f;
  --m-on: #10180a;
}
:root[data-mineral="aquamarine"] {
  --m: #2ec4b6;
  --m-deep: #1f948a;
  --m-edge: #b8f5ee;
  --m-core: #07302c;
  --m-fill: #2ec4b6;
  --m-on: #04191a;
}
:root[data-mineral="rose"] {
  --m: #e86bb0;
  --m-deep: #b8488a;
  --m-edge: #ffc9e6;
  --m-core: #3a0f27;
  --m-fill: #e86bb0;
  --m-on: #1f0915;
}
:root[data-mineral="onyx"] {
  --m: #8c88a0;
  --m-deep: #4a475a;
  --m-edge: #c9c6d6;
  --m-core: #141219;
  --m-fill: #6e6a80;
  --m-on: #ffffff;
}

:root {
  --m-glow: color-mix(in oklab, var(--m) 35%, transparent);
  --m-soft: color-mix(in oklab, var(--m) 12%, transparent);
  --m-line: color-mix(in oklab, var(--m) 45%, transparent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  min-height: 100vh;
  background: var(--texture), var(--basalt);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  word-spacing: 0.06em;
  line-height: 1.08;
  text-wrap: balance;
}

h3 {
  letter-spacing: -0.012em;
  word-spacing: 0.1em;
}

p {
  text-wrap: pretty;
}

::selection {
  background: color-mix(in oklab, var(--m) 40%, transparent);
}

:focus-visible {
  outline: 2px solid var(--m);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: var(--schist);
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Icônes au trait (même style que lucide). */
.i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- En-tête ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    border-color 200ms var(--ease),
    background-color 200ms var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgb(11 10 15 / 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 6px 12px;
  border-radius: var(--radius-control);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    color 150ms var(--ease),
    background-color 150ms var(--ease);
}

.nav a:hover {
  background: var(--slate);
  color: var(--text);
}

.nav a.is-active {
  color: var(--text);
}

/* Section en cours : petit éclat de minéral sous le lien. */
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 5px;
  height: 5px;
  translate: -50% 0;
  rotate: 45deg;
  background: var(--m);
  box-shadow: 0 0 8px var(--m-glow);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transition:
    border-color 150ms var(--ease),
    color 150ms var(--ease);
}

.lang:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.menu-btn {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--text-2);
}

/* ---------- Boutons ---------- */

.crystal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--m), white 6%), var(--m-deep));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    inset 0 -1px 0 rgb(0 0 0 / 0.18),
    0 0 0 1px color-mix(in oklab, var(--m-deep), black 25%),
    0 10px 28px -10px var(--m-glow);
  color: var(--m-on);
  font-size: 1rem;
  font-weight: 700;
  transition:
    transform 150ms var(--ease),
    box-shadow 200ms var(--ease),
    filter 200ms var(--ease);
}

.crystal-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.32),
    inset 0 -1px 0 rgb(0 0 0 / 0.18),
    0 0 0 1px color-mix(in oklab, var(--m-deep), black 25%),
    0 14px 36px -10px var(--m-glow);
}

.crystal-btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.crystal-btn svg {
  width: 16px;
  height: 16px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgb(19 17 25 / 0.5);
  color: var(--text);
  font-weight: 500;
  transition:
    background-color 150ms var(--ease),
    border-color 150ms var(--ease),
    transform 150ms var(--ease);
}

.ghost-btn:hover {
  border-color: color-mix(in oklab, var(--border-strong), var(--m) 30%);
  background: var(--slate);
}

.ghost-btn:active {
  transform: translateY(1px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Héros ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  margin-top: calc(-1 * var(--header));
  padding-block: var(--header) 0;
}

/* Lueur du minéral derrière la grappe : très large, elle s'éteint avant tout bord (aucune
   délimitation visible) et se fond doucement dans la section suivante. */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 72% 50%, color-mix(in oklab, var(--m) 16%, transparent), transparent),
    radial-gradient(closest-side at 20% 20%, color-mix(in oklab, var(--m-deep) 7%, transparent), transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, 5vw, 96px);
  min-height: min(860px, calc(100svh - var(--header)));
  padding-block: 48px 64px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgb(19 17 25 / 0.7);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  transition:
    border-color 150ms var(--ease),
    color 150ms var(--ease);
}

.status:hover {
  border-color: var(--m-line);
  color: var(--text);
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--m);
}

.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--m);
  opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% {
    opacity: 0.8;
    scale: 0.5;
  }
  80%,
  100% {
    opacity: 0;
    scale: 1.6;
  }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.7rem, 5.4vw, 4.4rem);
}

.hero h1 em {
  font-style: normal;
  color: var(--m);
}

.lead {
  max-width: 36rem;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 1.18rem;
}

.assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.9rem;
}

.assurances li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.assurances .i {
  width: 17px;
  height: 17px;
  color: var(--m);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--text-3);
  font-size: 0.85rem;
}

.os {
  padding: 1px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
}

.os.is-you {
  border-color: var(--m-line);
  color: var(--text);
}

/* Tableau de bord animé : une installation qui se déroule en boucle (jauge, étapes, blocs).
   Une seule variable --p (0 → 1), pilotée par site.js ; sans JavaScript ou avec les animations
   réduites, --p vaut 1 : l'état final, complet. */
.hero-art {
  --p: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
}

/* Trame de points derrière le tableau de bord, qui s'efface vers les bords. */
.hero-art::before {
  content: "";
  position: absolute;
  inset: -64px -48px;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 0.1) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
}

.art-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(to bottom, rgb(255 255 255 / 0.025), transparent 45%),
    var(--slate);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.75);
}

.art-label {
  color: var(--m);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.when-ready {
  display: none;
}

.is-ready .when-ready {
  display: inline;
}

.is-ready .when-busy {
  display: none;
}

/* Carte principale : jauge + pourcentage. */
.art-main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 28px;
}

/* Reflet du minéral dans le coin, comme une lumière posée sur la carte. */
.art-main::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--m) 14%, transparent), transparent);
  pointer-events: none;
}

.gauge {
  width: 100%;
  overflow: visible;
}

.gauge-dots {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 0 7;
}

.gauge-pin {
  fill: var(--m-deep);
}

.gauge-pin.mid {
  fill: var(--m);
}

.gauge-pin.end {
  fill: var(--m-edge);
}

.gauge-track,
.gauge-fill {
  fill: none;
  stroke-width: 24;
}

.gauge-track {
  stroke: var(--schist);
}

.gauge-fill {
  stroke: url(#jauge);
  stroke-dasharray: 100 100;
  stroke-dashoffset: calc(100 - 100 * var(--p));
}

.gs-0 {
  stop-color: var(--m-deep);
}

.gs-1 {
  stop-color: var(--m);
}

.gs-2 {
  stop-color: var(--m-edge);
}

/* Graduations : elles s'allument une à une, du minéral profond au plus clair. */
.gauge-ticks line {
  stroke: color-mix(in oklab, var(--m-deep), var(--m-edge) calc(var(--i, 14) * 7%));
  stroke-width: 4;
  stroke-linecap: round;
  opacity: clamp(0.14, var(--p) * 15 - var(--i, 0), 1);
}

.needle {
  transform-box: view-box;
  transform-origin: 120px 125px;
  transform: rotate(calc(-90deg + 180deg * var(--p)));
}

.needle line {
  stroke: var(--m);
  stroke-width: 5;
  stroke-linecap: round;
}

.needle circle {
  fill: var(--basalt);
  stroke: var(--m);
  stroke-width: 3;
}

.needle .hub {
  fill: var(--m);
  stroke: none;
}

.art-big {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.6vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.art-big em {
  font-style: normal;
  color: var(--m);
}

.art-sub {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.art-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.art-tiles div {
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--schist);
}

.art-tiles span {
  display: block;
  color: var(--text-2);
  font-size: 0.78rem;
}

.art-tiles b {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.art-tiles small {
  color: var(--text-3);
  font-size: 0.8rem;
}

/* Étapes qui se valident, comme une liste d'habitudes. */
.tasks {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.task {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--basalt);
}

.task:nth-child(1) {
  --s: 0;
  --e: 0.34;
}

.task:nth-child(2) {
  --s: 0.16;
  --e: 0.7;
}

.task:nth-child(3) {
  --s: 0.36;
  --e: 1;
}

.t-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in oklab, var(--m), white 8%), var(--m-deep));
  box-shadow: 0 8px 18px -8px var(--m-glow);
  color: var(--m-on);
}

.t-ico .i {
  width: 18px;
  height: 18px;
}

.task strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.task small {
  color: var(--text-3);
  font-size: 0.75rem;
}

.t-bar {
  display: block;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--schist);
}

.t-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--m-deep), var(--m));
  transform-origin: left;
  transform: scaleX(clamp(0, (var(--p) - var(--s)) / (var(--e) - var(--s)), 1));
}

.t-check {
  --d: clamp(0, (var(--p) - var(--e)) * 40 + 1, 1);
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
}

.t-check::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, color-mix(in oklab, var(--m), white 8%), var(--m-deep));
  box-shadow: 0 6px 16px -4px var(--m-glow);
  opacity: var(--d);
  scale: calc(0.6 + 0.4 * var(--d));
}

.t-check .i {
  position: relative;
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
  color: var(--m-on);
  opacity: var(--d);
}

/* Carte « prêt à jouer » : des blocs s'empilent, pierre brute puis cristal. */
.art-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.art-play::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1.5px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(60% 50% at 50% 42%, #000, transparent);
  mask-image: radial-gradient(60% 50% at 50% 42%, #000, transparent);
  pointer-events: none;
}

.cubes {
  position: relative;
  width: min(170px, 80%);
  margin: 8px auto 6px;
  overflow: visible;
}

.cube {
  --d: clamp(0, var(--p) * 7 - var(--i, 6), 1);
  opacity: var(--d);
  transform: translateY(calc((1 - var(--d)) * -46px));
}

.cube polygon {
  stroke: rgb(255 255 255 / 0.07);
  stroke-width: 0.8;
  stroke-linejoin: round;
}

.cube .top {
  fill: color-mix(in oklab, var(--c), white 16%);
}

.cube .left {
  fill: var(--c);
}

.cube .right {
  fill: color-mix(in oklab, var(--c), black 32%);
}

.cube.stone {
  --c: #3b3644;
}

.cube.deep {
  --c: var(--m-deep);
}

.cube.gem {
  --c: var(--m);
}

.is-ready .cube.gem {
  animation: gem-glow 2.4s ease-in-out infinite;
}

@keyframes gem-glow {
  50% {
    filter: drop-shadow(0 0 8px var(--m));
  }
}

.cubes-shadow {
  fill: rgb(0 0 0 / 0.5);
  filter: blur(4px);
}

.cubes-glow {
  fill: var(--m);
  opacity: calc(var(--p) * 0.22);
  filter: blur(10px);
}

.art-play strong {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.art-play small {
  position: relative;
  color: var(--text-3);
  font-size: 0.8rem;
}

.play-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin-top: 14px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--m), white 6%), var(--m-deep));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    0 8px 20px -8px var(--m-glow);
  color: var(--m-on);
  font-size: 0.9rem;
  font-weight: 700;
  transition: filter 300ms var(--ease);
}

.play-pill svg {
  width: 12px;
  height: 12px;
}

.hero-art:not(.is-ready) .play-pill {
  filter: grayscale(0.8) brightness(0.6);
}

/* Onde autour du bouton quand tout est prêt. */
.is-ready .play-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--m);
  border-radius: inherit;
  animation: ripple 1.8s var(--ease) infinite;
}

@keyframes ripple {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 0;
    scale: 1.25 1.6;
  }
}

/* ---------- Sections ---------- */

section {
  padding-block: 104px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--m);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Éclat de minéral devant chaque surtitre. */
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  rotate: 45deg;
  background: linear-gradient(135deg, var(--m-edge), var(--m-deep));
}

.section-head {
  max-width: 46rem;
  margin-bottom: 52px;
}

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 16px 64px;
  max-width: none;
}

.section-head.split .eyebrow {
  grid-column: 1 / -1;
}

.section-head.split h2,
.section-head.split p {
  margin-top: 0;
}

.section-head.split p {
  max-width: 34rem;
  padding-bottom: 6px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
}

.section-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.08rem;
}

.section-head a,
.qa a {
  color: var(--m);
  text-decoration: underline;
  text-decoration-color: var(--m-line);
  text-underline-offset: 3px;
}

/* Fenêtre du launcher (captures). */
.window {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1920 / 1200;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-panel);
  background: var(--slate);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.4),
    0 40px 100px -20px rgb(0 0 0 / 0.7),
    0 0 80px -30px var(--m-glow);
}

.window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Aperçu (visite) ---------- */

.tour {
  position: relative;
  padding-top: 96px;
}

.tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--slate);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs [role="tab"] {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition:
    color 150ms var(--ease),
    background-color 150ms var(--ease);
}

.tabs [role="tab"]:hover {
  color: var(--text);
}

.tabs [role="tab"][aria-selected="true"] {
  background: var(--schist);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.04),
    inset 0 -2px 0 var(--m);
  color: var(--text);
}

.tour-stage {
  perspective: 1600px;
}

.shot:not([hidden]) {
  animation: shot-in 450ms var(--ease);
}

@keyframes shot-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.995);
  }
}

.shot figcaption {
  max-width: 44rem;
  min-height: 3.4em;
  margin: 22px auto 0;
  color: var(--text-2);
  text-align: center;
}

.shot figcaption strong {
  color: var(--text);
}

.note {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- En jeu ---------- */

/* Captures du jeu : format 16:9. */
.window.game {
  aspect-ratio: 16 / 9;
}

.next-pill {
  padding: 2px 9px;
  border: 1px solid var(--m-line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.modules-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.modules-list > div {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--slate);
}

.modules-list h3 {
  color: var(--m);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modules-list p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .modules-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .modules-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Étapes ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--slate);
}

.step .num {
  color: var(--m);
  font-size: 0.85rem;
}

.step h3 {
  margin-top: 14px;
  font-size: 1.35rem;
}

.step p {
  margin-top: 10px;
  color: var(--text-2);
}

/* Mini-interfaces illustratives (pas des captures). */
.mock {
  position: relative;
  margin-top: auto;
  translate: 0 1px;
  padding: 18px;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--basalt);
  font-size: 0.82rem;
}

.step p + .mock {
  margin-top: 28px;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -18px -18px 16px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.78rem;
}

.mock-bar .i {
  width: 14px;
  height: 14px;
  color: var(--jade);
}

.mock-login {
  display: grid;
  gap: 8px;
}

.field {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--slate);
}

.mock-go {
  display: grid;
  place-items: center;
  height: 32px;
  border-radius: var(--radius-control);
  background: var(--schist);
  color: var(--text);
  font-weight: 500;
}

.mock-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--jade) 16%, transparent);
  color: #5fd49a;
  font-weight: 700;
  font-size: 0.78rem;
}

.mock-ok .i {
  width: 14px;
  height: 14px;
}

.mock-versions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mock-versions span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--slate);
  color: var(--text-2);
}

.mock-versions .is-on {
  border-color: var(--m-line);
  background: var(--m-soft);
  color: var(--text);
}

.mock-versions b {
  color: var(--m);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-checks {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.mock-checks li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  color: var(--text-2);
}

.mock-checks em {
  color: #5fd49a;
  font-style: normal;
  font-weight: 500;
}

.mini-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin-top: 14px;
  border-radius: 9px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--m), white 6%), var(--m-deep));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    0 0 0 1px color-mix(in oklab, var(--m-deep), black 25%);
  color: var(--m-on);
  font-weight: 700;
}

.mini-play svg {
  width: 13px;
  height: 13px;
}

/* ---------- Fonctionnalités : grille irrégulière ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  position: relative;
  grid-column: span 2;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--slate);
  transition: border-color 200ms var(--ease);
}

.feature:hover {
  border-color: var(--border-strong);
}

.feature.wide {
  grid-column: span 4;
}

.feature.half {
  grid-column: span 3;
}

/* Bande : trois atouts côte à côte, séparés par un trait. */
.feature.strip {
  display: grid;
  grid-column: span 6;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.feature.strip > div {
  padding: 28px;
}

.feature.strip > div + div {
  border-left: 1px solid var(--border);
}

.feature .pill-state.is-on span {
  background: var(--jade);
}

.feature h3 {
  font-size: 1.3rem;
}

.feature p {
  margin-top: 10px;
  color: var(--text-2);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: linear-gradient(to bottom, var(--schist), var(--slate));
  color: var(--m);
}

.soon {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--schist);
  color: var(--text-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.java-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.java-map div {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--basalt);
}

.java-map dt {
  color: var(--text-2);
  font-size: 0.78rem;
}

.java-map dd {
  margin-top: 2px;
  color: var(--m-edge);
  font-size: 0.9rem;
  font-weight: 500;
}

.dl {
  margin-top: 20px;
}

.dl-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 0.75rem;
}

.dl-bar {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--schist);
}

.dl-bar span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--m-deep), var(--m));
  box-shadow: 0 0 10px var(--m-glow);
}

.logs {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--basalt);
  color: var(--text-2);
  font-size: 0.75rem;
}

.logs i {
  display: inline-block;
  width: 3.4em;
  color: #7fa7e0;
  font-style: normal;
  font-weight: 600;
}

.logs .warn,
.logs .warn i {
  color: var(--amber);
}

.folders {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
}

.folders li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--basalt);
  color: var(--text);
}

.folders i {
  width: 8px;
  height: 8px;
  rotate: 45deg;
  background: var(--sw);
}

.folders span {
  margin-left: auto;
  color: var(--text-3);
}

.feature .stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  color: var(--text-3);
  font-size: 0.85rem;
}

.feature .stat b {
  color: var(--m-edge);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}

.feature .pill-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.8rem;
}

.feature .pill-state span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

/* Téléchargements parallèles : pistes qui se remplissent à des rythmes différents. */
.lanes {
  display: grid;
  gap: 6px;
  margin-top: 20px;
}

.lanes span {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--schist);
}

.lanes span::before {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--m-deep), var(--m));
  transform-origin: left;
  animation: lane 2.6s var(--ease) infinite;
}

.lanes span:nth-child(2)::before {
  animation-duration: 1.9s;
  animation-delay: -0.6s;
}

.lanes span:nth-child(3)::before {
  animation-duration: 3.1s;
  animation-delay: -1.4s;
}

.lanes span:nth-child(4)::before {
  animation-duration: 2.2s;
  animation-delay: -0.3s;
}

@keyframes lane {
  from {
    transform: scaleX(0);
  }
  80%,
  to {
    transform: scaleX(1);
  }
}

/* Barre de téléchargement : reflet qui la parcourt. */
.dl-bar span {
  position: relative;
  overflow: hidden;
}

.dl-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.45), transparent);
  translate: -100% 0;
  animation: sheen 2.4s ease-in-out infinite;
}

@keyframes sheen {
  60%,
  to {
    translate: 100% 0;
  }
}

/* Console : les lignes arrivent l'une après l'autre, en boucle. */
.logs span {
  animation: log-in 6s steps(1, end) infinite;
}

.logs span:nth-child(2) {
  animation-name: log-in-2;
}

.logs span:nth-child(3) {
  animation-name: log-in-3;
}

.logs span:nth-child(4) {
  animation-name: log-in-4;
}

@keyframes log-in {
  0% {
    opacity: 0;
  }
  8%,
  92% {
    opacity: 1;
  }
}

@keyframes log-in-2 {
  0% {
    opacity: 0;
  }
  22%,
  92% {
    opacity: 1;
  }
}

@keyframes log-in-3 {
  0% {
    opacity: 0;
  }
  36%,
  92% {
    opacity: 1;
  }
}

@keyframes log-in-4 {
  0% {
    opacity: 0;
  }
  50%,
  92% {
    opacity: 1;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chips span {
  padding: 3px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.82rem;
}

/* ---------- Profils (minéraux) ---------- */

.profiles {
  border-block: 1px solid var(--border);
  background:
    radial-gradient(50% 70% at 80% 50%, color-mix(in oklab, var(--m) 9%, transparent), transparent 70%),
    var(--slate);
}

.profiles .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 56px;
}

.profiles h2 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
}

.profiles-copy > p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.05rem;
}

.minerals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  margin-top: 28px;
}

.minerals button {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  text-align: left;
  transition:
    background-color 150ms var(--ease),
    border-color 150ms var(--ease);
}

.minerals button:hover {
  background: var(--schist);
}

.minerals button[aria-checked="true"] {
  border-color: var(--border-strong);
  background: var(--schist);
}

.minerals i {
  grid-row: span 2;
  justify-self: center;
  width: 12px;
  height: 12px;
  rotate: 45deg;
  background: linear-gradient(135deg, var(--sw-edge), var(--sw) 45%, var(--sw-deep));
  transition: box-shadow 200ms var(--ease);
}

.minerals button[aria-checked="true"] i {
  box-shadow: 0 0 0 3px var(--slate), 0 0 0 4px var(--sw), 0 0 14px var(--sw);
}

.minerals span {
  font-weight: 500;
}

.minerals small {
  color: var(--text-3);
  font-size: 0.78rem;
  line-height: 1.2;
}

.minerals small:empty {
  display: none;
}

.minerals button:has(small:empty) i {
  grid-row: auto;
}

.m-none {
  --sw: #a66bf0;
  --sw-deep: #7b3fc4;
  --sw-edge: #d9c2ff;
}
.m-pvp {
  --sw: #e5484d;
  --sw-deep: #b32f37;
  --sw-edge: #ffc2c4;
}
.m-builder {
  --sw: #30a46c;
  --sw-deep: #1e7a4f;
  --sw-edge: #aef0cd;
}
.m-survival {
  --sw: #3e9bf0;
  --sw-deep: #2170c2;
  --sw-edge: #c4e2ff;
}
.m-lowend {
  --sw: #c9c9d1;
  --sw-deep: #8e8e99;
  --sw-edge: #ffffff;
}
.m-topaz {
  --sw: #f0883e;
  --sw-deep: #c2621e;
  --sw-edge: #ffd6b8;
}
.m-citrine {
  --sw: #f5c542;
  --sw-deep: #c49a1c;
  --sw-edge: #fff0b8;
}
.m-peridot {
  --sw: #8cc63f;
  --sw-deep: #64962a;
  --sw-edge: #dcf5b8;
}
.m-aquamarine {
  --sw: #2ec4b6;
  --sw-deep: #1f948a;
  --sw-edge: #b8f5ee;
}
.m-rose {
  --sw: #e86bb0;
  --sw-deep: #b8488a;
  --sw-edge: #ffc9e6;
}
.m-onyx {
  --sw: #8c88a0;
  --sw-deep: #4a475a;
  --sw-edge: #c9c6d6;
}

.hint {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.85rem;
}

.profiles-shot img {
  transition: opacity 250ms var(--ease);
}

.profiles-shot img.is-swapping {
  opacity: 0.35;
}

/* ---------- Sécurité ---------- */

.trust .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 56px;
}

.trust .section-head {
  margin-bottom: 36px;
}

.points {
  display: grid;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.points li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.points .i {
  margin-top: 3px;
  color: var(--jade);
}

.points strong {
  display: block;
  font-size: 1.05rem;
}

.points span {
  color: var(--text-2);
}

.chain {
  position: sticky;
  top: calc(var(--header) + 32px);
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(to bottom, rgb(255 255 255 / 0.015), transparent),
    var(--slate);
}

.chain-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chain-title .i {
  color: var(--jade);
}

.chain ol {
  display: grid;
  gap: 22px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.chain li {
  position: relative;
  display: grid;
  padding-left: 44px;
  counter-increment: step;
}

.chain li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--basalt);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Trait qui relie les étapes. */
.chain li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 32px;
  bottom: -18px;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-strong), var(--border));
}

.chain li span {
  color: var(--text-2);
  font-size: 0.95rem;
}

.chain .is-woot::before {
  content: "";
  border-color: var(--m-line);
  background:
    url("logo.svg") center / 16px no-repeat,
    var(--basalt);
  box-shadow: 0 0 12px var(--m-glow);
}

/* ---------- Feuille de route ---------- */

.roadmap {
  border-top: 1px solid var(--border);
}

.roadmap .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 56px;
}

.roadmap-head {
  position: sticky;
  top: calc(var(--header) + 32px);
}

.roadmap-head .section-head {
  margin-bottom: 32px;
}

.progress-card {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 30rem;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--slate);
}

.ring-wrap {
  position: relative;
  flex-shrink: 0;
  width: 112px;
  height: 112px;
}

.ring {
  width: 100%;
  height: 100%;
  rotate: -90deg;
}

.ring circle {
  fill: none;
  stroke-width: 10;
}

.ring-track {
  stroke: var(--schist);
}

.ring-now {
  stroke: var(--m-line);
  stroke-dasharray: 100 100;
  stroke-dashoffset: 18;
  stroke-linecap: round;
}

.ring-fill {
  stroke: url(#anneau);
  stroke-dasharray: 100 100;
  stroke-dashoffset: 18;
  stroke-linecap: round;
}

.gr-0 {
  stop-color: var(--m-deep);
}

.gr-1 {
  stop-color: var(--m-edge);
}

.ring-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-text b {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
}

.ring-text span {
  color: var(--text-3);
  font-size: 0.78rem;
}

.progress-card strong {
  display: block;
  font-size: 1.05rem;
}

.progress-card p {
  color: var(--text-2);
  font-size: 0.92rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--m) 0%,
    var(--m) 30%,
    var(--border-strong) 44%,
    var(--border) 100%
  );
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 16px 20px 16px 0;
}

.timeline .node {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: 8px auto 0;
  rotate: 45deg;
  border: 2px solid var(--border-strong);
  background: var(--basalt);
}

.timeline .is-done .node {
  border-color: var(--m);
  background: var(--m);
}

.timeline .is-now .node {
  border-color: var(--m);
  background: var(--basalt);
  box-shadow: 0 0 0 4px var(--m-soft), 0 0 16px var(--m-glow);
}

.timeline .is-release .node {
  width: 18px;
  height: 18px;
  margin-top: 6px;
  border-color: var(--m-edge);
  background: linear-gradient(135deg, var(--m-edge), var(--m-deep));
}

.timeline li > div {
  padding: 16px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
}

.timeline .is-now > div {
  border-color: var(--border-strong);
  background: var(--slate);
}

.timeline .is-release > div {
  border-color: var(--m-line);
  border-style: dashed;
}

.timeline h3 {
  margin-top: 6px;
  font-size: 1.25rem;
}

.timeline p {
  margin-top: 6px;
  color: var(--text-2);
}

.tag {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--schist);
  color: var(--text-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.is-done .tag {
  background: var(--m-soft);
  color: var(--m);
}

.is-now .tag {
  background: var(--m);
  color: var(--m-on);
}

.is-release .tag {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--m-line);
  color: var(--m-edge);
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--border);
}

.faq .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 56px;
}

.faq .section-head {
  position: sticky;
  top: calc(var(--header) + 32px);
  margin-bottom: 0;
}

.qa {
  border-top: 1px solid var(--border);
}

.qa details {
  border-bottom: 1px solid var(--border);
}

.qa summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-size: 1.08rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  transition: color 150ms var(--ease);
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary:hover {
  color: var(--m-edge);
}

/* Signe + qui pivote en × à l'ouverture. */
.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text-2);
  transition:
    rotate 250ms var(--ease),
    background-color 150ms var(--ease);
}

.qa summary::after {
  rotate: 90deg;
}

.qa details[open] summary::before {
  rotate: 45deg;
  background: var(--m);
}

.qa details[open] summary::after {
  rotate: 135deg;
  background: var(--m);
}

.qa details p {
  max-width: 40rem;
  padding: 0 44px 22px 0;
  color: var(--text-2);
}

.qa details[open] p {
  animation: fade-down 300ms var(--ease);
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ---------- Final ---------- */

.closing {
  border-top: 1px solid var(--border);
}

.closing-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(50% 80% at 78% 50%, color-mix(in oklab, var(--m) 14%, transparent), transparent 70%),
    var(--slate);
}

.closing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
  mask-image: linear-gradient(to left, #000, transparent 70%);
}

.closing h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

.closing p {
  max-width: 34rem;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.08rem;
}

.orbit {
  width: min(440px, 100%);
  margin-inline: auto;
  overflow: visible;
}

.orbit-ring {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.2;
  stroke-dasharray: 2 6;
}

.orbit-ring.inner {
  stroke: var(--border);
  stroke-dasharray: none;
}

.orbit-spin {
  transform-box: view-box;
  transform-origin: 160px 160px;
  animation: spin 40s linear infinite;
}

.orbit-spin.reverse {
  animation-duration: 28s;
  animation-direction: reverse;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.orbit .gem polygon {
  stroke: rgb(255 255 255 / 0.35);
  stroke-width: 0.8;
}

.orbit .gem .shade {
  fill: rgb(0 0 0 / 0.25);
  stroke: none;
}

.g-none {
  fill: #a66bf0;
  filter: drop-shadow(0 0 6px #a66bf0);
}
.g-pvp {
  fill: #e5484d;
  filter: drop-shadow(0 0 6px #e5484d);
}
.g-builder {
  fill: #30a46c;
  filter: drop-shadow(0 0 6px #30a46c);
}
.g-survival {
  fill: #3e9bf0;
  filter: drop-shadow(0 0 6px #3e9bf0);
}
.g-lowend {
  fill: #c9c9d1;
  filter: drop-shadow(0 0 6px #c9c9d1);
}

.core {
  fill: url(#coeur);
}

.core-play {
  fill: var(--m-on);
}

.gc-0 {
  stop-color: color-mix(in oklab, var(--m), white 10%);
}

.gc-1 {
  stop-color: var(--m-deep);
}

.pulse {
  fill: none;
  stroke: var(--m);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 3s var(--ease) infinite;
}

.pulse.late {
  animation-delay: 1.5s;
}

@keyframes pulse {
  from {
    opacity: 0.6;
    scale: 1;
  }
  to {
    opacity: 0;
    scale: 2.1;
  }
}

/* ---------- Pied de page ---------- */

.footer {
  padding-block: 56px 48px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.9rem;
}

.footer .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 10px;
}

.footer .brand {
  color: var(--text);
}

.footer nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer nav h2 {
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer nav a {
  width: fit-content;
  transition: color 150ms var(--ease);
}

.footer a:hover {
  color: var(--text);
}

.disclaimer {
  grid-column: 1 / -1;
  padding-top: 24px;
  padding-right: max(0px, 100% - 52rem);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

/* ---------- Pages de texte (confidentialité, 404) ---------- */

.prose {
  max-width: 46rem;
  padding-block: 72px 96px;
}

.prose h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.prose .updated {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.9rem;
}

.prose h2 {
  margin-top: 44px;
  font-size: 1.5rem;
}

.prose p,
.prose li {
  margin-top: 12px;
  color: var(--text-2);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li::marker {
  color: var(--m);
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--m);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lost {
  display: grid;
  justify-items: center;
  min-height: calc(100svh - var(--header) - 200px);
  align-content: center;
  padding-block: 48px 96px;
  text-align: center;
}

.broken-gem {
  width: min(180px, 50%);
  margin-bottom: 16px;
  overflow: visible;
}

.broken-gem polygon {
  stroke: var(--m-edge);
  stroke-opacity: 0.35;
  stroke-width: 1;
  stroke-linejoin: round;
}

.broken-gem .face-a {
  fill: var(--m);
}

.broken-gem .face-b {
  fill: var(--m-deep);
}

.broken-gem .face-c {
  fill: color-mix(in oklab, var(--m-deep), black 30%);
}

.broken-gem .half-right {
  transform-box: view-box;
  transform-origin: 100px 180px;
  animation: crack 4s var(--ease) infinite alternate;
}

@keyframes crack {
  from {
    transform: translate(3px, 2px) rotate(3deg);
  }
  to {
    transform: translate(9px, 4px) rotate(8deg);
  }
}

.lost h1 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.lost p {
  margin-top: 14px;
  color: var(--text-2);
}

/* ---------- Animations au défilement (sans JavaScript, si le navigateur sait faire) ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    /* La fenêtre de l'aperçu se redresse en arrivant à l'écran. */
    .tour-stage .window {
      animation: tilt linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
      transform-origin: center top;
    }

    .ring-fill {
      animation: ring-fill linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }

    .timeline::before {
      animation: grow linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 50%;
      transform-origin: top;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 28px;
  }
}

@keyframes tilt {
  from {
    transform: rotateX(16deg) scale(0.92);
    opacity: 0.4;
  }
}

@keyframes ring-fill {
  from {
    stroke-dashoffset: 100;
  }
}

@keyframes grow {
  from {
    scale: 1 0;
  }
}

/* ---------- Adaptations ---------- */

@media (min-width: 1800px) {
  html {
    font-size: 17px;
  }
}

@media (min-width: 2300px) {
  html {
    font-size: 18px;
  }
}

@media (max-width: 1080px) {
  .nav a {
    padding-inline: 9px;
  }
}

@media (max-width: 960px) {
  :root {
    --header: 60px;
  }

  .menu-btn {
    display: grid;
  }

  /* Menu déroulant sous l'en-tête. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px var(--gutter) 16px;
    border-bottom: 1px solid var(--border);
    background: var(--basalt);
    box-shadow: 0 24px 40px -12px rgb(0 0 0 / 0.6);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px;
    font-size: 1rem;
  }

  .nav a.is-active::after {
    left: auto;
    right: 12px;
    top: 50%;
    bottom: auto;
    translate: 0 -50%;
  }

  .header-end {
    margin-left: auto;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 40px;
    gap: 0;
  }

  .hero-art {
    width: min(680px, 100%);
    margin: 48px auto 0;
  }

  .section-head.split {
    grid-template-columns: 1fr;
  }

  .roadmap .wrap,
  .closing-card {
    grid-template-columns: 1fr;
  }

  .roadmap-head {
    position: static;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .feature,
  .feature.wide,
  .feature.half {
    grid-column: span 6;
  }

  .feature.strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature.strip > div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .java-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profiles .wrap,
  .trust .wrap,
  .faq .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .minerals {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }

  .chain,
  .faq .section-head {
    position: static;
  }

  .footer .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  section {
    padding-block: 72px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3rem);
  }

  .hero-art,
  .art-main {
    grid-template-columns: 1fr;
  }

  .art-main {
    gap: 12px;
  }

  .gauge {
    width: min(260px, 100%);
    margin-inline: auto;
  }

  .progress-card {
    gap: 16px;
    padding: 18px;
  }

  .ring-wrap {
    width: 92px;
    height: 92px;
  }

  .lead {
    font-size: 1.06rem;
  }

  .cta .crystal-btn,
  .cta .ghost-btn {
    width: 100%;
  }

  /* Onglets défilants : fondu sur les bords pour montrer qu'il y en a d'autres. */
  .tabs {
    margin-inline: calc(-1 * var(--gutter));
    max-width: none;
    width: auto;
    padding-inline: var(--gutter);
    border-radius: 0;
    border-inline: 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 32px), transparent);
  }

  /* Minéraux en rangée compacte : la capture reste visible juste en dessous. */
  .minerals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .minerals i {
    grid-row: auto;
  }

  .minerals button {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 12px 0 10px;
    font-size: 0.74rem;
  }

  .minerals small {
    display: none;
  }

  .window {
    border-radius: var(--radius-card);
  }

  .step {
    padding: 22px 22px 0;
  }

  .feature {
    padding: 22px;
  }

  .java-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qa summary {
    font-size: 1rem;
  }

  .timeline li {
    gap: 12px;
    padding-right: 0;
  }

  .timeline li > div {
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  :root {
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Page Télécharger ---------- */
.download .dl-main {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 32px;
}

.prose .dl-main .crystal-btn {
  color: var(--m-on);
  font-size: 1.05rem;
  text-decoration: none;
}

.download .dl-note {
  margin-top: 0;
  color: var(--text-3);
  font-size: 0.9rem;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dl-card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--slate);
}

.dl-card.is-yours {
  border-color: var(--m);
}

.dl-card h3 {
  font-size: 1.15rem;
}

.dl-card p {
  margin: 0 0 6px;
  color: var(--text-3);
  font-size: 0.9rem;
}

.prose .dl-card a {
  width: fit-content;
  font-size: 0.95rem;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ---------- Cosmétiques ---------- */

.sets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.set {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background:
    radial-gradient(70% 55% at 50% 42%, color-mix(in oklab, var(--r) 22%, transparent), transparent 72%),
    var(--slate);
  transition: border-color 200ms var(--ease);
}

.set:hover {
  border-color: color-mix(in oklab, var(--r) 55%, transparent);
}

.set img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 10px 10px 0;
  transition: scale 400ms var(--ease);
}

.set:hover img {
  scale: 1.04;
}

.set div {
  display: grid;
  gap: 2px;
  padding: 0 16px 16px;
}

.set b {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}

.set span {
  color: var(--r);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.r-rare {
  --r: var(--sapphire);
}
.r-epic {
  --r: #b07cf2;
}
.r-legendary {
  --r: var(--amber);
}

.plus-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  margin-top: 16px;
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--m-line);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in oklab, var(--m) 18%, transparent), transparent 70%),
    var(--slate);
}

.plus-teaser h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.plus-teaser h3 small {
  margin-left: 10px;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
}

.plus-teaser p {
  max-width: 44rem;
  margin-top: 8px;
  color: var(--text-2);
}

@media (max-width: 1100px) {
  .sets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plus-teaser {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Page Woot+ ---------- */

.plus-page {
  padding-block: calc(var(--header) + 56px) 96px;
}

.plus-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 48px;
}

.plus-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.plus-hero h1 em {
  color: var(--m);
  font-style: normal;
}

.plus-hero .lead {
  max-width: 38rem;
  margin-top: 18px;
  color: var(--text-2);
  font-size: 1.12rem;
}

.price-card {
  padding: 32px;
  border: 1px solid var(--m-line);
  border-radius: var(--radius-panel);
  background:
    radial-gradient(80% 70% at 50% 0%, color-mix(in oklab, var(--m) 20%, transparent), transparent 70%),
    var(--slate);
  text-align: center;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
}

.price-card .price small {
  display: block;
  margin-top: 8px;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
}

.price-card .cta {
  justify-content: center;
  margin-top: 24px;
}

.price-card .note {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.88rem;
}

.perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 72px;
}

.perks > div {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--slate);
}

.perks h3 {
  font-size: 1.2rem;
}

.perks p {
  margin-top: 8px;
  color: var(--text-2);
}

.compare-wrap {
  margin-top: 72px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.compare caption {
  padding: 20px 22px 4px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  text-align: left;
}

.compare th,
.compare td {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  border-top: 0;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare tbody th {
  font-weight: 500;
}

.compare td {
  color: var(--text-2);
}

.compare td + td,
.compare thead th:last-child {
  color: var(--text);
  background: var(--m-soft);
}

.compare thead th:last-child {
  color: var(--m);
}

.plus-faq {
  max-width: 52rem;
  margin-top: 72px;
}

.plus-faq h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

@media (max-width: 860px) {
  .plus-hero,
  .perks {
    grid-template-columns: minmax(0, 1fr);
  }
}
