/* =========================================================
   BASE — tokens et éléments communs à Loterie et Anatomie
   (mêmes valeurs que le portfolio)
   ========================================================= */
:root {
  --bg: #0a0a0a;
  --fg: #efefef;
  --muted: #8c8c8c;
  --line: rgba(255, 255, 255, 0.14);
  --blue: #2e3cff;
  --panel: #111111;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(14px, 1.8vw, 28px);
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a, button, select { color: inherit; font: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- en-tête ---------- */
.top {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0; padding: var(--pad);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; pointer-events: none;
}
.top > * { pointer-events: auto; }
.logo { display: grid; gap: 4px; text-decoration: none; }
.logo-name { font-weight: 800; font-stretch: 125%; font-size: 15px; letter-spacing: -0.01em; text-transform: uppercase; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pills a, .pills button {
  height: 30px; padding: 0 12px; display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 30px; text-decoration: none;
  background: rgba(13, 13, 13, 0.92);   /* opaque : les panneaux défilent dessous */
  transition: background .25s, color .25s, border-color .25s;
}
.pills a:hover, .pills button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- bouton principal ---------- */
.btn-main {
  height: 58px; padding: 0 36px; border-radius: 60px;
  background: var(--blue); color: #fff;
  font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: -0.01em; text-transform: uppercase;
  transition: transform .35s var(--ease-out), background .2s, opacity .3s;
}
.btn-main:hover { transform: scale(1.04); }
.btn-main:disabled { opacity: .4; cursor: progress; transform: none; }

.big-name { font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.86; }

/* ---------- message bref ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--pad) + 44px);
  transform: translate(-50%, -8px); opacity: 0; pointer-events: none;
  background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 30px;
  transition: opacity .3s, transform .5s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation-duration: .01s !important; }
}
