/* GamX Studio — feuille de style unique du site.
   Couleurs d'accent reprises de l'icône de Neurova (turquoise, lavande, rose). */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3efe8;
  --text: #1d1f24;
  --muted: #5d6270;
  --line: #e7e1d7;
  --accent: #6f5bd6;
  --danger: #c23a49;
  --danger-soft: #fbe9ec;
  --ok: #1f8a5b;
  --ok-soft: #e4f5ec;
  --grad: linear-gradient(115deg, #2fb9c9, #9b87e6 52%, #ee8fb7);
  --radius: 24px;
  --shadow: 0 12px 32px rgba(29, 31, 36, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1015;
    --surface: #171920;
    --surface-2: #1f222b;
    --text: #eceef2;
    --muted: #a3a9b6;
    --line: #2b2e38;
    --accent: #b3a4ff;
    --danger: #ff6b79;
    --danger-soft: #2c1519;
    --ok: #5fd39b;
    --ok-soft: #12271d;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

/* Bilingue : le texte de la langue inactive est masqué. Sans JavaScript,
   le français s'affiche. */
html[data-lang="en"] .fr,
html:not([data-lang="en"]) .en {
  display: none !important;
}

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

/* `form { display: grid }` would otherwise beat the attribute. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand .x {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand .studio {
  font-weight: 500;
  color: var(--muted);
}

.lang-toggle {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--muted);
}

/* ── Accueil ─────────────────────────────────────────────── */

.hero {
  padding: 48px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 20px;
  max-width: 15ch;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0;
  max-width: 56ch;
  font-size: 1.15rem;
  color: var(--muted);
}

h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.games {
  padding-bottom: 64px;
}

.game {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.game-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 30px;
  background: radial-gradient(circle at 32% 28%, #2d3242, #0c0d11 72%);
}

.game-art img {
  display: block;
  width: 82%;
  height: auto;
}

.status {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px;
}

.game h3 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 2px 0 14px;
  font-weight: 600;
  color: var(--muted);
}

.game p {
  margin-top: 0;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface-2);
  border-radius: 999px;
}

.soon {
  margin-top: 16px;
  padding: 22px 28px;
  color: var(--muted);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
}

.soon p {
  margin: 0;
}

/* ── Boutons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.btn-outline {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--muted);
}

.btn-outline-danger {
  color: var(--danger);
  background: transparent;
  border-color: var(--danger);
}

.btn-outline-danger:hover {
  background: var(--danger-soft);
}

.btn-danger {
  color: #fff;
  background: var(--danger);
}

.btn-danger:hover {
  filter: brightness(1.06);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* ── Page de suppression ─────────────────────────────────── */

.page {
  max-width: 720px;
  padding-bottom: 64px;
}

.back {
  display: inline-block;
  margin: 12px 0 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

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

.page h1 {
  max-width: none;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.card {
  margin-top: 22px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card ol,
.card ul {
  margin: 0;
  padding-left: 1.2em;
}

.card li + li {
  margin-top: 6px;
}

.card p:last-child {
  margin-bottom: 0;
}

form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  margin-bottom: 8px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--accent);
  outline: none;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 10px;
  font-weight: 400;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--danger);
}

.form-status {
  min-height: 1.5em;
  margin: 4px 0 0;
  font-weight: 600;
}

.form-status.error {
  color: var(--danger);
}

.done {
  padding: 18px 20px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: 16px;
}

/* ── Pages juridiques ────────────────────────────────────── */

.legal .updated {
  margin: -6px 0 26px;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal h2 {
  margin: 34px 0 10px;
  font-size: 1.2rem;
}

.legal h3 {
  margin: 20px 0 6px;
  font-size: 1rem;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 6px;
}

.legal .data {
  margin: 12px 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.legal .data h3 {
  margin-top: 0;
}

.legal .data p {
  margin: 4px 0 0;
}

.legal .why {
  color: var(--muted);
}

.legal address {
  font-style: normal;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 16px;
  font-size: 0.85rem;
}

.links a {
  color: var(--muted);
}

/* Bouton de la carte de jeu et ses liens, sur une même ligne. */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.card-actions .links {
  margin-top: 0;
}

mark.todo {
  padding: 0 4px;
  color: #000;
  background: #ffe066;
  border-radius: 4px;
}

/* ── Pied de page ────────────────────────────────────────── */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 26px 0 40px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.foot a {
  color: var(--muted);
}

/* ── Petits écrans ───────────────────────────────────────── */

@media (max-width: 720px) {
  .hero {
    padding: 28px 0 40px;
  }

  .game {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .game-art {
    width: 168px;
  }
}
