/*
 * Zen Blocks — feuille de style unique.
 *
 * Aucun style en ligne nulle part : la politique de sécurité du serveur
 * (`style-src 'self'`) les bloquerait, y compris un simple attribut `style`.
 * Même règle pour les scripts.
 *
 * Les couleurs reprennent la charte « Néon » du jeu, à l'identique.
 */

:root {
  --fond: #0a0713;
  --fond-carte: rgba(255, 255, 255, 0.045);
  --bord: rgba(255, 255, 255, 0.10);
  --texte: #f4f1ff;
  --texte-doux: rgba(244, 241, 255, 0.62);
  --texte-faible: rgba(244, 241, 255, 0.40);
  --turquoise: #5cffe6;
  --rose: #ff52bd;
  --citron: #d1ff66;
  --violet: #a885ff;
  --largeur: 1080px;
  --rayon: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Trois halos fixes, comme le fond du jeu. En `fixed` pour qu'ils ne défilent
   pas : le fond du jeu ne défile pas non plus. */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -20vw;
  z-index: -1;
  background:
    radial-gradient(38vw 38vw at 18% 12%, rgba(20, 112, 143, 0.55), transparent 70%),
    radial-gradient(42vw 42vw at 82% 30%, rgba(87, 36, 158, 0.55), transparent 70%),
    radial-gradient(40vw 40vw at 50% 92%, rgba(230, 41, 163, 0.40), transparent 70%);
}

.wrap { width: min(var(--largeur), calc(100% - 44px)); margin-inline: auto; }

a { color: var(--turquoise); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(10, 7, 19, 0.72);
  border-bottom: 1px solid var(--bord);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--texte);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.site-header nav { display: flex; gap: 20px; margin-left: auto; }
.site-header nav a { color: var(--texte-doux); font-size: 15px; font-weight: 600; }
.site-header nav a:hover { color: var(--texte); text-decoration: none; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--bord);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--texte-faible);
  font: 700 12px/1 inherit;
  padding: 8px 12px;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: var(--texte);
}

/* ---------- Hero ---------- */

.hero { padding: 84px 0 64px; text-align: center; }

.hero img.icon {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(255, 82, 189, 0.32);
}

.hero h1 {
  margin: 26px 0 10px;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero .baseline {
  margin: 0 auto 10px;
  max-width: 30ch;
  font-size: clamp(19px, 2.6vw, 24px);
  color: var(--texte-doux);
}

.hero .facts {
  margin: 0;
  color: var(--texte-faible);
  font-size: 15px;
  font-weight: 600;
}

.cta { margin: 30px 0 0; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(92, 255, 230, 0.45);
  background: rgba(92, 255, 230, 0.10);
  color: var(--turquoise);
  font-weight: 800;
  font-size: 16px;
}
.store:hover { text-decoration: none; background: rgba(92, 255, 230, 0.16); }

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

section { padding: 56px 0; }

h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lede { margin: 0 0 34px; color: var(--texte-doux); max-width: 60ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--fond-carte);
}
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 750; }
.card p { margin: 0; color: var(--texte-doux); font-size: 15.5px; }

/* Un liseré coloré par carte, comme les blocs du jeu. */
.card:nth-child(4n+1) { border-top: 3px solid var(--turquoise); }
.card:nth-child(4n+2) { border-top: 3px solid var(--rose); }
.card:nth-child(4n+3) { border-top: 3px solid var(--citron); }
.card:nth-child(4n+4) { border-top: 3px solid var(--violet); }

/* ---------- Captures ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.shots img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--bord);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/* ---------- Pages de texte ---------- */

.prose { max-width: 68ch; padding-bottom: 40px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 850; letter-spacing: -0.02em; }
.prose h2 { margin-top: 38px; font-size: 22px; }
.prose h3 { margin: 26px 0 6px; font-size: 17px; font-weight: 750; color: var(--texte); }
.prose em { color: var(--turquoise); font-style: normal; font-weight: 650; }
.prose p, .prose li { color: var(--texte-doux); }
.prose ul { padding-left: 20px; }
.prose .maj { color: var(--texte-faible); font-size: 14px; }

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

.site-footer {
  border-top: 1px solid var(--bord);
  padding: 30px 0 46px;
  color: var(--texte-faible);
  font-size: 14.5px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; }
.site-footer a { color: var(--texte-doux); }
.site-footer .spacer { margin-left: auto; }

/* ---------- Langues ---------- */

/* Le script pose `fr` ou `en` sur <html>. Tant qu'il ne l'a pas fait — et si
   jamais il ne s'exécute pas — c'est l'anglais qui s'affiche, comme le déclare
   l'attribut `lang` du document.
   
   On **masque la langue de trop** plutôt que d'afficher la bonne : une règle
   qui rétablit l'affichage écraserait le `display` propre à chaque élément, et
   un `inline-flex` retomberait en `inline`. */
html.fr [data-lang="en"], html.en [data-lang="fr"] { display: none; }
html:not(.fr):not(.en) [data-lang="fr"] { display: none; }

@media (max-width: 620px) {
  .site-header nav { display: none; }
  .hero { padding: 56px 0 40px; }
}

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