/* NRSTK — identité noir et blanc, sans dépendance externe */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("/fonts/inter-latin-800.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500.woff2") format("woff2"); }

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8a8a8a;
  --line: #2a2a2a;
  --accent: #fff;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.sr, .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stage {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(24px, 4vh, 48px);
  padding: var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}
.top, .foot { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.foot { justify-content: flex-start; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.foot a { text-decoration: none; }

.mark {
  margin: 0;
  align-self: center;
  font-weight: 800;
  font-size: clamp(72px, 24vw, 340px);
  line-height: .82;
  letter-spacing: -.06em;
  margin-left: -.04em;
}

.drop { display: grid; gap: 8px; }
.label { color: var(--muted); margin: 0; }
.count { display: flex; gap: clamp(12px, 3vw, 32px); font-size: 14px; color: var(--muted); }
.count b { display: inline-block; min-width: 2ch; color: var(--fg); font-weight: 500; font-size: clamp(36px, 8vw, 88px); letter-spacing: -.02em; line-height: 1; margin-right: 4px; font-variant-numeric: tabular-nums; }
.when { margin: 0; font-size: clamp(18px, 2.4vw, 24px); }
.tagline { margin: 8px 0 0; color: var(--muted); max-width: 560px; }
/* Visuel : affiché entier, jamais agrandi, sur un panneau de la couleur de ses bords (posée par nrstk.js) */
.visual { margin: 0; background: #111; display: flex; justify-content: center; align-items: center; padding: clamp(16px, 5vw, 64px); }
.visual picture { display: contents; }
.visual img { display: block; max-width: 100%; height: auto; max-height: 78svh; object-fit: contain; } /* largeur = attribut width (taille réelle, jamais agrandie) */

.panel { display: grid; gap: 16px; max-width: 560px; }
.lead { margin: 0; font-size: clamp(18px, 2.2vw, 22px); }
.flash { margin: 0; padding: 12px 14px; border: 1px solid var(--fg); }
.signup { display: flex; border-bottom: 1px solid var(--fg); }
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--fg);
  font: inherit;
  font-size: 18px;
  padding: 14px 0;
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus { outline: none; }
.btn {
  appearance: none;
  border: 0;
  background: var(--fg);
  color: var(--bg);
  font: 500 13px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 20px;
  min-height: 48px;
  cursor: pointer;
}
.signup .btn { margin-bottom: -1px; }
.btn:hover { background: var(--muted); }
.fine { margin: 0; color: var(--muted); font-size: 13px; }

/* Pages légales */
.legal { max-width: 720px; margin: 0 auto; padding: var(--gutter); }
.legal .back { display: inline-block; margin-bottom: 48px; text-decoration: none; }
.legal h1 { font-weight: 800; font-size: clamp(36px, 7vw, 64px); letter-spacing: -.04em; line-height: 1; margin: 0 0 8px; }
.legal h2 { font-size: 13px; margin: 40px 0 8px; color: var(--muted); }
.legal p, .legal li { color: #d6d6d6; }
.legal .foot { margin-top: 64px; }

@media (prefers-reduced-motion: no-preference) {
  .mark { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(4%); } }
}

/* ── Vitrine : pièces du drop ── */
.fg { color: var(--fg); }
.h1 { margin: 0; font-weight: 800; font-size: clamp(32px, 5vw, 56px); letter-spacing: -.04em; line-height: 1; }
.top a { text-decoration: none; }

.cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: clamp(16px, 2.5vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card { display: grid; gap: 6px; text-decoration: none; }
.card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: #111; padding: 8%; overflow: hidden; color: var(--muted); }
.card-img picture { display: contents; }
.card-img img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card:hover { color: var(--fg); }
.card-name { font-size: 18px; margin-top: 6px; }
.card-meta { color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line); background: #333; }

.piece { display: grid; gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .piece { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); } .info { position: sticky; top: var(--gutter); } }
.gallery { display: grid; gap: 12px; }
.gallery .visual { padding: clamp(16px, 4vw, 48px); }
.noimg { aspect-ratio: 4 / 5; color: var(--muted); }
.info { display: grid; gap: 20px; align-content: start; }
.price { margin: 0; font-size: 24px; }
.price .mono { color: var(--muted); }
.opt { display: grid; gap: 10px; }
.opt .label { margin: 0; }
.swatches { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.swatches a { display: block; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #333; outline-offset: 3px; }
.swatches a[aria-current="true"] { outline: 2px solid var(--fg); }
.sizes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.size { border: 1px solid var(--line); padding: 10px 8px; display: grid; gap: 2px; text-align: center; }
.size span { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 15px; }
.size small { font-size: 11px; color: var(--muted); }
.size.low small { color: var(--fg); }
.size.out { opacity: .45; }
.size.out span { text-decoration: line-through; }
.size-solo { margin: 0; }
.size-solo.out { text-decoration: line-through; color: var(--muted); }
.cta { display: grid; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta .when { font-size: 18px; }
.cta .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.desc { color: #d6d6d6; }
.specs { margin: 0; display: grid; gap: 12px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 2px 0 0; }
.guide summary { cursor: pointer; color: var(--muted); }
.guide-scroll { overflow-x: auto; margin-top: 12px; }
.guide table { border-collapse: collapse; font-size: 14px; }
.guide th, .guide td { padding: 6px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.guide tbody th { text-align: left; color: var(--muted); font-weight: 400; }

/* ── Composition centrée (accueil) : logo, drop, formulaire et pied de page dans l'axe du visuel ── */
.stage:not(.stage-piece) .mark { text-align: center; margin-left: 0; }
.stage:not(.stage-piece) .drop { justify-items: center; text-align: center; }
.count { justify-content: center; }
.stage-piece .count { justify-content: flex-start; }
.tagline { margin-inline: auto; }
.stage:not(.stage-piece) .panel { width: 100%; margin-inline: auto; text-align: center; }
.stage:not(.stage-piece) .panel form { text-align: left; }
.pieces-head { text-align: center; }
.foot { justify-content: center; }
.foot .bo { color: #555; }
