/* ============================================================
   LUDOPIA — Site vitrine de l'éditeur
   Feuille de style unique. Aucune dépendance, aucun build.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #06060f;
  --bg-2: #0a0b1c;
  --bg-3: #101228;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);

  --ink: #f5f4ff;
  --ink-dim: #c5c2e6;
  --muted: #8e8bb8;

  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --brand-3: #ff5c9d;

  --tradopia: #ffb020;
  --worldblocks: #4d8dff;
  --villopia: #2ee6a8;
  --equipia: #ff7a45;

  --accent: var(--brand);
  --accent-2: var(--brand-2);
  --accent-ink: #080813;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 34px;

  --font-display: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0.05, 0.36, 1);

  --maxw: 1240px;
  --nav-h: 78px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  /* `clip` et non `hidden` : cela supprime le debordement horizontal sans creer de
     conteneur de defilement, donc sans casser les elements en `position: sticky`. */
  overflow-x: clip;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 0.55vw + 13.4px, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Plus de `overflow-x: hidden` ici : html gere le clip, et un conteneur de
     defilement sur body casserait les elements `position: sticky`. */
  min-height: 100vh;
}
body.is-locked {
  overflow: hidden;
}
/* html n'etant plus en `overflow: visible`, le verrou ne se propage plus depuis body :
   il faut le poser aussi sur la racine, sinon le menu ouvert laisse defiler la page.
   Le script pose la classe sur les deux elements ; la variante :has() ne sert que de
   filet pour un navigateur ou le script n'aurait pas tourne. */
html.is-locked,
html:has(body.is-locked) {
  overflow: hidden;
}
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
ul,
ol {
  list-style: none;
}
::selection {
  background: var(--brand);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.032em;
}
h1 {
  font-size: clamp(2.9rem, 8vw, 7rem);
}
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
}
h3 {
  font-size: clamp(1.22rem, 1.6vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
strong,
b {
  font-weight: 650;
  color: #fff;
}

/* ---------- 3. Ascenseur ---------- */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand), var(--brand-2));
  border-radius: 99px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--brand-3), var(--brand));
}

/* ---------- 4. Gabarit ---------- */
.wrap {
  width: min(100% - 2.6rem, var(--maxw));
  margin-inline: auto;
}
.section {
  position: relative;
  padding: clamp(5rem, 11vh, 9rem) 0;
}
.section--tight {
  padding-block: clamp(3.5rem, 7vh, 6rem);
}
.skip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-140%);
  z-index: 10001;
  padding: 0.8rem 1.2rem;
  /* Fond opaque plutot que le violet de marque : le blanc y passe le seuil AA. */
  background: #05050c;
  color: #fff;
  border: 2px solid var(--brand-2);
  border-radius: 0 0 12px 0;
  font-weight: 600;
}
.skip:focus {
  transform: none;
}

/* ---------- 5. Décor de fond ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.bg-fx::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(38% 42% at 18% 12%, rgba(124, 92, 255, 0.36), transparent 62%),
    radial-gradient(34% 38% at 84% 26%, rgba(34, 211, 238, 0.24), transparent 64%),
    radial-gradient(42% 46% at 62% 92%, rgba(255, 92, 157, 0.2), transparent 66%);
  filter: blur(40px);
  animation: auroraShift 28s var(--ease-io) infinite alternate;
}
@keyframes auroraShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(-3%, 2%, 0) scale(1.12) rotate(6deg);
  }
  100% {
    transform: translate3d(3%, -2%, 0) scale(1.05) rotate(-5deg);
  }
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(72% 62% at 50% 30%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(72% 62% at 50% 30%, #000 0%, transparent 100%);
}
.grain {
  position: fixed;
  /* Auparavant inset:-150%, soit un calque de 400 % de large : sur telephone il
     elargissait la fenetre de mise en page. On anime le motif, pas l'element. */
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.05;
  background-repeat: repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainMove 0.7s steps(3) infinite;
}
@keyframes grainMove {
  0% {
    background-position: 0 0;
  }
  33% {
    background-position: -5px 4px;
  }
  66% {
    background-position: 4px -3px;
  }
  100% {
    background-position: 0 0;
  }
}

/* ---------- 6. Curseur personnalisé ---------- */
.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor {
  width: 7px;
  height: 7px;
  background: #fff;
  transform: translate3d(-50%, -50%, 0);
}
.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  transform: translate3d(-50%, -50%, 0);
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    border-color 0.3s,
    background 0.3s,
    opacity 0.3s;
}
.cursor-ring.is-hot {
  width: 72px;
  height: 72px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.2);
}
.cursor-ring.is-down {
  width: 26px;
  height: 26px;
}
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor input {
  cursor: none;
}

/* ---------- 7. Progression de lecture ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 9998;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.85);
}

/* ---------- 8. Préchargeur ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition:
    opacity 0.7s var(--ease),
    visibility 0.7s;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.pre-inner {
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  width: min(320px, calc(100vw - 3rem));
}
.pre-logo {
  font-family: var(--font-display);
  font-weight: 800;
  /* L'interlettrage de 0,4em fait presque doubler la largeur du mot : sans `nowrap`
     et sans reduction sous 400 px, le « A » de LUDOPIA passait a la ligne. */
  font-size: clamp(1.1rem, 3.4vw, 2.2rem);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  white-space: nowrap;
}
@media (max-width: 380px) {
  .pre-logo {
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-indent: 0.3em;
  }
}
.pre-logo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) rotateX(-70deg);
  animation: preLetter 0.75s var(--ease) forwards;
}
@keyframes preLetter {
  to {
    opacity: 1;
    transform: none;
  }
}
.pre-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  border-radius: 99px;
}
.pre-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.25s linear;
}
.pre-pct {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 9. Transition de page ---------- */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 9995;
  pointer-events: none;
  background: linear-gradient(120deg, var(--bg-2), var(--bg));
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.page-fade.is-on {
  opacity: 1;
}

/* ---------- 10. Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    height 0.4s var(--ease),
    background 0.4s,
    backdrop-filter 0.4s,
    border-color 0.4s;
}
.nav.is-stuck {
  height: 64px;
  background: rgba(6, 6, 15, 0.74);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.6rem, var(--maxw));
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.7));
  transition: transform 0.7s var(--ease);
}
.brand:hover .brand-mark {
  transform: rotate(180deg) scale(1.08);
}
.brand-txt b {
  font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-txt em {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  position: relative;
  padding: 0.55rem 0.9rem;
  border-radius: 99px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-dim);
  transition:
    color 0.3s,
    background 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.32rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: var(--surface);
}
.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 38%;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.burger {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
/* Barres positionnées sur un même centre : la croix se forme sans calcul de marge. */
.burger i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: translate(-50%, -50%) translateY(var(--y, 0px));
  transition:
    transform 0.35s var(--ease),
    opacity 0.25s;
}
.burger i:nth-child(1) {
  --y: -6px;
}
.burger i:nth-child(3) {
  --y: 6px;
}
.burger.is-open i:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.burger.is-open i:nth-child(2) {
  opacity: 0;
}
.burger.is-open i:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 899;
  display: grid;
  place-content: center;
  gap: 0.2rem;
  text-align: center;
  background: rgba(5, 5, 13, 0.97);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease),
    visibility 0.4s;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.drawer a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  letter-spacing: -0.03em;
  padding: 0.3rem 1rem;
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    color 0.3s;
}
.drawer.is-open a {
  opacity: 1;
  transform: none;
}
.drawer a:hover {
  color: var(--brand-2);
}

/* ---------- 11. Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.92rem 1.6rem;
  border-radius: 99px;
  overflow: hidden;
  isolation: isolate;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow:
    0 14px 34px -14px var(--accent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px -16px var(--accent-2);
}
.btn:hover::before {
  opacity: 1;
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg {
  transform: translateX(4px);
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.btn--ghost::before {
  background: var(--surface-2);
}
.btn--ghost:hover {
  box-shadow: 0 18px 40px -22px #000;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--sm {
  padding: 0.58rem 1.1rem;
  font-size: 0.86rem;
}
.btn[aria-disabled='true'] {
  filter: grayscale(0.5) brightness(0.8);
  pointer-events: none;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  animation: rip 0.65s var(--ease) forwards;
}
@keyframes rip {
  to {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

/* ---------- 12. Titres de section ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.95rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}
.sec-head {
  display: grid;
  gap: 1.05rem;
  max-width: 760px;
  margin-bottom: 3.2rem;
}
.sec-head .eyebrow {
  justify-self: start;
}
.sec-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
}
.sec-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.gradient-txt {
  /* `background-clip: text` peint la boite, pas l'encre : l'italique deborde de son
     rectangle de mise en page et le dernier S de « MONDES » perdait sa peinture. On
     elargit la boite, la marge negative annule le decalage. Le rectangle mesure par
     getBoundingClientRect ne montre PAS ce debordement — il faut le voir a l'ecran. */
  display: inline-block;
  padding-right: 0.14em;
  margin-right: -0.14em;
  /* La rampe commence et finit sur la même teinte : la boucle est invisible. */
  background: linear-gradient(
    100deg,
    #fff 0%,
    var(--brand-2) 20%,
    var(--brand) 40%,
    var(--brand-3) 60%,
    var(--brand) 80%,
    #fff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradSlide 9s linear infinite;
}
@keyframes gradSlide {
  to {
    background-position: 220% 0;
  }
}

/* ---------- 13. Apparitions au défilement ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal='left'] {
  transform: translateX(-46px);
}
[data-reveal='right'] {
  transform: translateX(46px);
}
[data-reveal='zoom'] {
  transform: scale(0.9);
}
[data-reveal='blur'] {
  filter: blur(14px);
  transform: translateY(20px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  /* Le masque sert a la revelation verticale, mais il rogne aussi a l'horizontale :
     avec un interlettrage negatif et un mot en italique, le dernier S de « BATISSONS »
     et celui de « MONDES » etaient coupes. On elargit la boite de clip sans decaler
     la mise en page. */
  padding-right: 0.22em;
  padding-left: 0.04em;
}
.line-mask > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.line-mask.is-in > span {
  transform: none;
}

/* ---------- 14. Héros ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
}
#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}
.hero-in {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.9rem;
  justify-items: start;
  max-width: 940px;
}
.hero h1 {
  position: relative;
}
.hero h1 .word {
  display: inline-block;
}
.hero-title {
  font-size: clamp(2.5rem, 6.1vw, 5.4rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
}
.hero-title em {
  font-style: italic;
  display: inline-block;
}
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  color: var(--ink-dim);
  max-width: 60ch;
}
.hero-sub .scramble {
  color: #fff;
  font-weight: 650;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  will-change: transform;
}
.hero-orb--1 {
  width: 380px;
  height: 380px;
  right: -6%;
  top: 8%;
  background: radial-gradient(circle at 32% 30%, rgba(124, 92, 255, 0.75), rgba(124, 92, 255, 0) 66%);
  animation: float1 14s var(--ease-io) infinite alternate;
}
.hero-orb--2 {
  width: 300px;
  height: 300px;
  right: 16%;
  bottom: 6%;
  background: radial-gradient(circle at 40% 36%, rgba(34, 211, 238, 0.6), rgba(34, 211, 238, 0) 66%);
  animation: float2 18s var(--ease-io) infinite alternate;
}
.hero-orb--3 {
  width: 220px;
  height: 220px;
  left: 42%;
  top: 12%;
  background: radial-gradient(circle at 40% 36%, rgba(255, 92, 157, 0.5), rgba(255, 92, 157, 0) 66%);
  animation: float1 22s var(--ease-io) infinite alternate-reverse;
}
@keyframes float1 {
  to {
    transform: translate3d(-40px, 40px, 0) scale(1.14);
  }
}
@keyframes float2 {
  to {
    transform: translate3d(50px, -34px, 0) scale(0.88);
  }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.7rem;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--brand-2), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollBead 2.1s var(--ease-io) infinite;
}
@keyframes scrollBead {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* ---------- 15. Bandeau défilant ---------- */
.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 1.05rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 2.6rem;
  animation: tickerMove 32s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
@keyframes tickerMove {
  to {
    transform: translateX(-50%);
  }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.ticker-item span {
  transition: color 0.3s;
}
.ticker-item span:hover {
  color: #fff;
}
.ticker-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-2);
  flex: none;
}

/* ---------- 16. Cartes génériques ---------- */
.card {
  position: relative;
  padding: 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s,
    box-shadow 0.45s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 62%);
}
.card:hover::before {
  opacity: 1;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -34px #000;
}

/* ---------- 17. Manifeste + chiffres ---------- */
.manifest {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.manifest-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.manifest-lead em {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand-2), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifest p + p {
  margin-top: 1rem;
  color: var(--muted);
}
.stats {
  display: grid;
  /* minmax(0, 1fr) : sans cela le libelle le plus long impose sa largeur a la colonne. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.stat {
  min-width: 0;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s;
}
.stat:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--line-strong);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 18. Grille des jeux ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
  perspective: 1600px;
}
.game-card {
  --accent: var(--brand);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.15rem;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition:
    transform 0.5s var(--ease),
    border-color 0.45s,
    box-shadow 0.45s;
  will-change: transform;
}
.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(70% 55% at 50% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%);
}
.game-card:hover::after {
  opacity: 1;
}
.game-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow:
    0 40px 80px -40px #000,
    0 0 60px -28px var(--accent);
}
.game-card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-3), var(--bg));
  transform: translateZ(38px);
}
.game-card__art svg,
.game-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.game-card:hover .game-card__art img {
  transform: scale(1.06);
}
.game-card__art::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(200deg, transparent 40%, rgba(0, 0, 0, 0.55));
}
.game-card__body {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  transform: translateZ(24px);
}
.game-card__body p {
  color: var(--muted);
  font-size: 0.95rem;
}
.game-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.game-card h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.035em;
  color: #fff;
}
.game-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Sous 340 px, « Découvrir » et le nom de domaine ne tiennent plus cote a cote :
     le bouton se faisait comprimer et son libelle etait rogne. */
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  transform: translateZ(20px);
}
.game-card__foot .btn {
  flex: none;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  padding: 0.28rem 0.65rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.03);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.3rem 0.72rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulseDot 2s infinite;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--accent);
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}
.game-card:hover .link-arrow svg,
.link-arrow:hover svg {
  transform: translateX(5px);
}

/* ---------- 19. Piliers ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.2rem;
}
.pillar {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}
.pillar-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(124, 92, 255, 0.28), rgba(34, 211, 238, 0.14));
  color: #fff;
  transition: transform 0.45s var(--ease);
}
.pillar-ico svg {
  width: 24px;
  height: 24px;
}
.card:hover .pillar-ico {
  transform: rotate(-8deg) scale(1.08);
}
.pillar p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- 20. Feuille de route ---------- */
.road {
  position: relative;
}
.road-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.6rem;
  scrollbar-width: thin;
  cursor: grab;
}
.road-track.is-drag {
  cursor: grabbing;
  scroll-snap-type: none;
}
.road-track::-webkit-scrollbar {
  height: 6px;
}
.road-step {
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 30vw, 340px);
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  user-select: none;
}
.road-step h3 {
  font-size: 1.22rem;
}
.road-step p {
  color: var(--muted);
  font-size: 0.92rem;
}
.road-when {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.road-step[data-state='done'] {
  --accent: var(--villopia);
}
.road-step[data-state='live'] {
  --accent: var(--brand-2);
  border-color: color-mix(in srgb, var(--brand-2) 40%, transparent);
}
.road-step[data-state='next'] {
  --accent: var(--tradopia);
}
.road-step[data-state='later'] {
  --accent: var(--muted);
}
.road-dot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.road-dot i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.road-hint {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---------- 21. Bloc contact ---------- */
.cta-panel {
  position: relative;
  padding: clamp(2.4rem, 6vw, 4.6rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 12% 0%, rgba(124, 92, 255, 0.24), transparent 60%),
    radial-gradient(70% 110% at 96% 100%, rgba(34, 211, 238, 0.18), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  overflow: hidden;
  text-align: center;
  display: grid;
  gap: 1.4rem;
  justify-items: center;
}
.cta-panel h2 {
  max-width: 16ch;
}
.cta-panel p {
  color: var(--ink-dim);
  max-width: 56ch;
}
.form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  width: min(100%, 520px);
}
.form input {
  flex: 1 1 240px;
  padding: 0.92rem 1.2rem;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.form input::placeholder {
  color: var(--muted);
}
.form input:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}
.form-note {
  font-size: 0.78rem;
  color: var(--muted);
}
.form-ok {
  font-size: 0.9rem;
  color: var(--villopia);
  min-height: 1.4em;
}

/* ---------- 22. Pied de page ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3.4rem 0 2rem;
  background: linear-gradient(0deg, rgba(124, 92, 255, 0.07), transparent);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.9fr);
  gap: 2rem;
  margin-bottom: 2.6rem;
}
.footer-col h4,
.footer-col .footer-h {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 650;
}
.footer-col a,
.footer-col li {
  display: block;
  padding: 0.24rem 0;
  color: var(--ink-dim);
  font-size: 0.93rem;
  transition:
    color 0.3s,
    transform 0.3s var(--ease);
}
.footer-col a:hover {
  color: #fff;
  transform: translateX(4px);
}
/* la signature garde sa mise en page horizontale malgre la regle ci-dessus */
.footer-col a.brand {
  display: flex;
  padding: 0;
}
.footer-col a.brand:hover {
  transform: none;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 34ch;
  margin-top: 0.9rem;
}
.footer-bot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 15vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.11);
  user-select: none;
  margin-bottom: 1.4rem;
}

/* ---------- 23. Retour en haut ---------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 880;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 11, 28, 0.8);
  backdrop-filter: blur(12px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    visibility 0.4s,
    background 0.3s;
}
.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--brand);
}
.to-top svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   PAGES JEU
   ============================================================ */
.game-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3rem, 9vh, 6rem));
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}
.game-hero::before {
  content: '';
  position: absolute;
  inset: -20% 0 auto 0;
  height: 90%;
  z-index: -1;
  background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  filter: blur(20px);
}
.game-hero-in {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.game-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  letter-spacing: -0.045em;
  background: linear-gradient(110deg, #fff 20%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.game-hero .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-dim);
  max-width: 54ch;
}
.game-hero-col {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}
.game-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-3), var(--bg));
  box-shadow:
    0 50px 100px -50px #000,
    0 0 90px -50px var(--accent);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
}
.game-visual svg,
.game-visual img {
  width: 100%;
  height: auto;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.2rem;
}
.feat {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}
.feat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.feat p {
  color: var(--muted);
  font-size: 0.94rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.bullets {
  display: grid;
  gap: 0.9rem;
}
.bullets li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-dim);
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transform: rotate(45deg);
}
.bullets li b {
  color: #fff;
}

.faq {
  display: grid;
  gap: 0.7rem;
  max-width: 860px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.35s;
}
.faq-item.is-open {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.1rem 1.3rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.02rem;
}
.faq-q i {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}
.faq-q i::before,
.faq-q i::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.faq-q i::after {
  transform: rotate(90deg);
}
.faq-item.is-open .faq-q i::after {
  transform: rotate(0deg);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease);
}
.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  padding: 0 1.3rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.other-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.2rem;
}
.mini-game {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s,
    background 0.4s;
}
.mini-game:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: var(--surface-2);
}
.mini-game svg,
.mini-game img {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
}
.mini-game b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}
.mini-game > span > span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- 24. Utilitaires ---------- */
.center {
  text-align: center;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.glow-line {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 0;
}

/* ---------- 25. Réactif ---------- */
@media (max-width: 1024px) {
  .manifest {
    grid-template-columns: 1fr;
  }
  .game-hero-in {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 820px) {
  .hero-title .outline {
    -webkit-text-stroke-width: 1.5px;
  }
  .hero-orb--1,
  .hero-orb--3 {
    opacity: 0.55;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bot {
    justify-content: center;
    text-align: center;
  }
  .cta-panel {
    text-align: left;
    justify-items: start;
  }
  .form {
    justify-content: flex-start;
  }
}

/* ---------- 26. Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  .line-mask > span {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .grain,
  .cursor,
  .cursor-ring {
    display: none;
  }
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button {
    cursor: auto;
  }
}


/* ============================================================
   PAGES INTERNES — studio, actualités, presse, contact, légal
   ============================================================ */

/* ---------- 27. En-tête de page interne ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vh, 5.5rem));
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: -30% 0 auto 0;
  height: 130%;
  z-index: -1;
  background: radial-gradient(46% 62% at 30% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  filter: blur(24px);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  max-width: 18ch;
}
.page-hero .lead {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  color: var(--ink-dim);
  max-width: 62ch;
}

/* ---------- 28. Frise verticale ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 2.1rem;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--brand), var(--brand-2) 55%, transparent);
}
.tl-item {
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -2.22rem;
  top: 0.42rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--tl, var(--brand-2));
  box-shadow: 0 0 18px var(--tl, var(--brand-2));
}
.tl-when {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tl, var(--brand-2));
}
.tl-item h3 {
  margin: 0.35rem 0 0.5rem;
}
.tl-item p {
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- 29. Journal du studio ---------- */
.news {
  display: grid;
  gap: 1.1rem;
}
.news-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.8rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  transition:
    transform 0.45s var(--ease),
    border-color 0.45s,
    box-shadow 0.45s;
}
.news-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ac, var(--brand)) 50%, transparent);
  box-shadow: 0 30px 60px -38px #000;
}
.news-meta {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.news-date {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.news-chip {
  justify-self: start;
  padding: 0.26rem 0.7rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--ac, var(--brand));
  border: 1px solid color-mix(in srgb, var(--ac, var(--brand)) 45%, transparent);
  background: color-mix(in srgb, var(--ac, var(--brand)) 12%, transparent);
}
.news-ver {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.8rem;
  color: var(--ink-dim);
}
.news-body h3 {
  margin-bottom: 0.55rem;
}
.news-body p {
  color: var(--muted);
}
.news-body p + p {
  margin-top: 0.7rem;
}

/* ---------- 30. Presse ---------- */
.facts {
  display: grid;
  margin-top: 0.5rem;
}
.fact {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  color: var(--muted);
  font-size: 0.88rem;
}
.fact dd {
  color: var(--ink);
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.swatch {
  width: 118px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.4s var(--ease);
}
.swatch:hover {
  transform: translateY(-5px);
}
.swatch i {
  display: block;
  height: 62px;
}
.swatch b {
  display: block;
  padding: 0.55rem 0.65rem 0.05rem;
  font-size: 0.82rem;
}
.swatch span {
  display: block;
  padding: 0 0.65rem 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
.asset-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.asset-prev {
  display: grid;
  place-items: center;
  padding: 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #05050c;
}
.asset-prev img {
  width: 84px;
  height: 84px;
}
.asset-prev--light {
  background: #f4f1ff;
}

/* ---------- 31. Formulaire complet ---------- */
.form-full {
  display: grid;
  gap: 1.1rem;
  max-width: 660px;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.32);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.field textarea {
  min-height: 170px;
  resize: vertical;
  font-family: inherit;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

/* ---------- 32. Texte long (pages légales) ---------- */
.prose {
  max-width: 76ch;
  display: grid;
  gap: 1rem;
}
.prose h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  margin-top: 1.8rem;
}
.prose h3 {
  margin-top: 0.8rem;
  font-size: 1.1rem;
}
.prose p,
.prose li {
  color: var(--ink-dim);
}
.prose ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.3rem;
  list-style: disc;
}
.prose a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose .note {
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- 33. Page 404 ---------- */
.err {
  min-height: 82svh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 1.3rem;
  padding-top: var(--nav-h);
}
.err-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 21vw, 15rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  /* Meme teinte au depart et a l'arrivee : la boucle ne laisse pas de couture. */
  background: linear-gradient(
    120deg,
    #fff 0%,
    var(--brand-2) 22%,
    var(--brand) 44%,
    var(--brand-3) 66%,
    var(--brand) 84%,
    #fff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradSlide 8s linear infinite;
}
.err p {
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- 34. Réactif des pages internes ---------- */
@media (max-width: 820px) {
  .news-item,
  .fact {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .news-meta {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 0.8rem;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 2rem;
  }
}


/* ---------- 35. Garde-fous typographiques (anti-débordement) ---------- */
h1, h2, h3, h4, p, li, dt, dd, a, span, b, strong, em, label, button {
  overflow-wrap: break-word;
  word-break: normal;
}
h1, h2, h3, .manifest-lead, .lead {
  text-wrap: balance;
}
p, li {
  text-wrap: pretty;
}
/* Les grands mots decoratifs ne doivent jamais elargir la page. */
.footer-word, .err-code, .hero-title {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.footer-word {
  overflow: hidden;
}
/* Les URLs et identifiants longs cassent proprement. */
.fact dd, .swatch span, .news-ver, .prose a {
  overflow-wrap: anywhere;
}


/* ---------- 36. Tres petits ecrans ---------- */
@media (max-width: 420px) {
  /* Un libelle comme « De frais par transaction » ne rentre pas a deux colonnes. */
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 1.15rem 1.2rem;
  }
  .stat b {
    font-size: 2.1rem;
  }
  .wrap {
    width: min(100% - 2rem, var(--maxw));
  }
  .card,
  .game-card,
  .news-item,
  .road-step {
    padding: 1.25rem;
  }
  .cta-panel {
    padding: 1.8rem 1.4rem;
  }
}


/* ============================================================
   GALERIE MEDIA — visionneuse + rail de miniatures (facon Steam)
   ============================================================ */
.gallery {
  display: grid;
  gap: 1.4rem;
}

/* --- la grande visionneuse --- */
.gal-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #04040a;
  isolation: isolate;
  box-shadow: 0 40px 90px -50px #000;
}
/* Fond flou repris de l'image : aucune bande morte autour des captures verticales. */
.gal-blur {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) saturate(1.35) brightness(0.45);
  transform: scale(1.15);
}
.gal-shot {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--ease);
}
.gal-shot.is-on {
  opacity: 1;
  transform: none;
}

/* --- flèches --- */
.gal-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--line-strong);
  background: rgba(6, 6, 15, 0.72);
  backdrop-filter: blur(10px);
  color: #fff;
  opacity: 0;
  transition:
    opacity 0.3s,
    background 0.3s,
    color 0.3s;
}
.gal-stage:hover .gal-nav,
.gal-nav:focus-visible {
  opacity: 1;
}
.gal-nav:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.gal-nav--prev {
  left: 0.8rem;
}
.gal-nav--next {
  right: 0.8rem;
}
.gal-nav svg {
  width: 20px;
  height: 20px;
}

/* --- compteur + plein écran --- */
.gal-count {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 4;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
  background: rgba(6, 6, 15, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.gal-zoom {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ink-dim);
  background: rgba(6, 6, 15, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: color 0.3s, background 0.3s;
}
.gal-zoom:hover {
  color: #fff;
  background: var(--accent);
}
.gal-zoom svg {
  width: 16px;
  height: 16px;
}

/* --- colonne de droite : légende, miniatures, mention --- */
.gal-side {
  display: grid;
  gap: 1.1rem;
  align-content: center;
}
.gal-caption {
  font-size: 1rem;
  color: var(--ink-dim);
  min-height: 3.2em;
}
.gal-caption b {
  color: var(--accent);
  font-weight: 650;
}
.gal-rail {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.gal-rail::-webkit-scrollbar {
  height: 5px;
}
.gal-thumb {
  position: relative;
  flex: 0 0 124px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #04040a;
  scroll-snap-align: start;
  opacity: 0.48;
  transition:
    opacity 0.3s,
    border-color 0.3s,
    transform 0.35s var(--ease);
}
.gal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.gal-thumb:hover {
  opacity: 0.85;
  transform: translateY(-3px);
}
.gal-thumb.is-on {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 24px -14px var(--accent);
}
.gal-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* --- variante « téléphone » : capture verticale, deux colonnes --- */
.gallery--phone {
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.gallery--phone .gal-stage {
  /* Ratio de l'appareil, et un liseré épais qui fait chassis. */
  aspect-ratio: 44 / 94;
  border-radius: 30px;
  border: 7px solid #14141f;
  box-shadow:
    0 50px 90px -40px #000,
    0 0 60px -30px var(--accent);
}
.gallery--phone .gal-shot {
  object-fit: cover;
  object-position: top center;
}
.gallery--phone .gal-thumb {
  flex-basis: 84px;
  aspect-ratio: 44 / 94;
}
.gallery--phone .gal-rail {
  flex-wrap: wrap;
  overflow: visible;
}

/* --- plein écran --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9996;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3, 3, 8, 0.95);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s;
}
.lightbox.is-on {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 40px 100px -30px #000;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}
.lightbox.is-on img {
  transform: none;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: #fff;
}
.lightbox-close:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.lightbox-close svg {
  width: 20px;
  height: 20px;
}

/* --- le heros sans visuel occupe toute la largeur --- */
.game-hero-in--solo {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 820px) {
  .gallery--phone {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .gallery--phone .gal-stage {
    width: min(100%, 320px);
  }
  .gallery--phone .gal-side {
    width: 100%;
  }
  .gal-nav {
    opacity: 1;
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 560px) {
  .gal-thumb {
    flex-basis: 96px;
  }
  .gallery--phone .gal-thumb {
    flex-basis: 68px;
  }
}

/* --- outils sortis du cadre pour la variante telephone --- */
.gal-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.gal-tools .gal-count,
.gal-tools .gal-zoom {
  position: static;
  inset: auto;
}
.gal-tools .gal-zoom {
  width: 36px;
  height: 36px;
}

/* --- heros sans visuel : la galerie remonte sous la ligne de flottaison --- */
.game-hero:has(.game-hero-in--solo) {
  padding-bottom: clamp(1rem, 2.5vh, 2.2rem);
}
.game-hero:has(.game-hero-in--solo) + .section {
  padding-top: clamp(1.6rem, 3.5vh, 3rem);
}
.game-hero:has(.game-hero-in--solo) + .section .sec-head {
  margin-bottom: 2.2rem;
}


/* ============================================================
   FICHE BOUTIQUE — le panneau lateral facon Steam
   ============================================================ */
.media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1.5rem, 3vw, 2.4rem);
  align-items: start;
}
.store {
  /* Pas de `position: sticky` ici : mesure faite, le panneau est toujours l'element le
     plus haut de sa rangee, donc sans marge pour coller. Le bouton « Jouer » de la barre
     de navigation assure deja l'appel a l'action permanent. */
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px -45px #000;
}
.store-head {
  display: grid;
  gap: 0.55rem;
}
.store-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  line-height: 1;
}
.store-pitch {
  font-size: 0.92rem;
  color: var(--muted);
}
.store-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  row-gap: 0.15rem;
  padding-top: 0.2rem;
}
.store-price b {
  font-family: var(--font-display);
  font-weight: 800;
  /* Un libelle long comme « Non annonce » ne doit pas se couper en deux. */
  white-space: nowrap;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.store-price span {
  font-size: 0.8rem;
  color: var(--muted);
}
.store .btn {
  justify-content: center;
  width: 100%;
}
.store-rows {
  display: grid;
}
.store-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.58rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.87rem;
}
.store-row dt {
  color: var(--muted);
}
.store-row dd {
  color: var(--ink);
}
.store-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  padding-top: 0.2rem;
}
.store-tags a {
  padding: 0.28rem 0.68rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 550;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.03);
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s;
}
.store-tags a:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}
.store-req {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.84rem;
  color: var(--muted);
}
.store-req b {
  display: block;
  color: #fff;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}
@media (max-width: 1100px) {
  .media-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .store {
    max-width: 520px;
  }
}

/* ============================================================
   FIL DE MISES A JOUR — les notes de version sur la fiche
   ============================================================ */
.patch {
  display: grid;
  gap: 0.7rem;
  max-width: 900px;
}
.patch-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s;
}
.patch-item:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.patch-ver {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.82rem;
  color: var(--accent);
  padding-top: 0.15rem;
  white-space: nowrap;
}
.patch-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}
.patch-item p {
  font-size: 0.9rem;
  color: var(--muted);
}
.patch-date {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 560px) {
  .patch-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}

/* ============================================================
   BARRE « PREVENEZ-MOI » — l'equivalent d'une liste de souhaits
   ============================================================ */
.notify {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 885;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: calc(100vw - 2rem);
  padding: 0.65rem 0.65rem 0.65rem 1.3rem;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 11, 28, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -24px #000;
  transform: translateX(-50%) translateY(160%);
  transition: transform 0.55s var(--ease);
}
.notify.is-on {
  transform: translateX(-50%);
}
.notify p {
  font-size: 0.9rem;
  color: var(--ink-dim);
}
.notify p b {
  color: #fff;
}
.notify .btn {
  flex: none;
}
.notify.is-done {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
@media (max-width: 620px) {
  .notify {
    left: 1rem;
    right: 1rem;
    max-width: none;
    transform: translateY(160%);
    justify-content: space-between;
    padding-left: 1.1rem;
  }
  .notify.is-on {
    transform: none;
  }
  .notify p {
    font-size: 0.82rem;
  }
}

/* ============================================================
   CATALOGUE INTERACTIF — apercu au survol + filtres par etiquette
   ============================================================ */
.shots {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.shots img.is-on {
  opacity: 1;
}
.shot-dots {
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  z-index: 3;
  display: flex;
  gap: 0.3rem;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.game-card:hover .shot-dots {
  opacity: 1;
}
.shot-dots i {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s;
}
.shot-dots i.is-on {
  background: var(--accent);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filters-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.3rem;
}
.filter {
  padding: 0.45rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--ink-dim);
  transition:
    color 0.25s,
    background 0.25s,
    border-color 0.25s,
    transform 0.25s var(--ease);
}
.filter:hover {
  color: #fff;
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.filter.is-on {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #080813;
  border-color: transparent;
}
.filter b {
  color: inherit;
  font-weight: 650;
  opacity: 0.6;
  margin-left: 0.3rem;
}
.game-card.is-out {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}
.game-card.is-gone {
  display: none;
}
.filter-empty {
  padding: 2rem 0;
  color: var(--muted);
}

.notify-close {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.notify-close:hover {
  color: #fff;
  background: var(--surface-2);
}
.notify-close svg {
  width: 15px;
  height: 15px;
}

/* ============================================================
   ESPACE PRESSE — grille de captures telechargeables
   ============================================================ */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
}
.shot-dl {
  display: grid;
  gap: 0.7rem;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s,
    background 0.4s;
}
.shot-dl:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--surface-2);
}
.shot-dl__img {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #04040a;
}
.shot-dl__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}
.shot-dl:hover .shot-dl__img img {
  transform: scale(1.05);
}
.shot-dl__meta {
  display: grid;
  gap: 0.15rem;
  padding: 0 0.3rem 0.2rem;
}
.shot-dl__meta b {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.25;
}
.shot-dl__meta span {
  font-size: 0.76rem;
  color: var(--muted);
}
.shot-dl::after {
  content: '↓ Télécharger';
  position: absolute;
}
.shot-dl {
  position: relative;
}
.shot-dl::after {
  top: 1.1rem;
  right: 1.1rem;
  padding: 0.24rem 0.6rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--accent-ink);
  background: var(--accent);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.shot-dl:hover::after {
  opacity: 1;
  transform: none;
}

/* --- La barre « Prevenez-moi » a la priorite sur le bouton « remonter » --- */
body:has(.notify.is-on) .to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
}
.notify p {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 620px) {
  .notify {
    gap: 0.6rem;
    padding: 0.6rem 0.6rem 0.6rem 1rem;
  }
  .notify .btn--sm {
    padding: 0.52rem 0.9rem;
    font-size: 0.8rem;
  }
  .notify-close {
    width: 28px;
    height: 28px;
  }
}

/* --- Sur ecran etroit, les apparitions laterales debordent : on les verticalise --- */
@media (max-width: 900px) {
  [data-reveal='left'],
  [data-reveal='right'] {
    transform: translateY(34px);
  }
}

/* ============================================================
   IMPRESSION — pages legales, fiche presse, notes de version
   ============================================================ */
@media print {
  :root {
    --ink: #111;
    --ink-dim: #333;
    --muted: #555;
    --line: #ccc;
    --line-strong: #999;
  }
  html,
  body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
  }
  /* Tout le decor et la navigation disparaissent. */
  .bg-fx,
  .bg-grid,
  .grain,
  .cursor,
  .cursor-ring,
  .progress,
  .page-fade,
  .preloader,
  .nav,
  .drawer,
  .to-top,
  .notify,
  .lightbox,
  .skip,
  .scroll-hint,
  .ticker,
  .hero-orb,
  #stars,
  .gal-nav,
  .gal-zoom,
  .gal-count,
  .gal-rail,
  .footer-word {
    display: none !important;
  }
  main {
    padding-top: 0 !important;
  }
  .section,
  .page-hero,
  .game-hero {
    padding: 0.6cm 0 !important;
  }
  .wrap {
    width: 100% !important;
  }
  h1,
  h2,
  h3,
  h4 {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    background: none !important;
    page-break-after: avoid;
  }
  h1 {
    font-size: 22pt;
  }
  h2 {
    font-size: 16pt;
  }
  h3 {
    font-size: 12pt;
  }
  p,
  li,
  dd,
  dt {
    color: #222 !important;
  }
  /* Le gras est blanc sur tout le site : sur papier il disparaissait. */
  strong,
  b,
  em,
  .prose strong {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }
  .eyebrow b {
    background: #666 !important;
    box-shadow: none !important;
  }
  a {
    color: #000 !important;
    text-decoration: underline;
  }
  /* Les liens externes montrent leur destination une fois sur papier. */
  .prose a[href^='http']::after,
  .fact a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #555;
  }
  .card,
  .store,
  .patch-item,
  .news-item,
  .faq-item,
  .cta-panel,
  .stat {
    border: 1px solid #bbb !important;
    background: none !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .eyebrow,
  .badge,
  .tag {
    border: 1px solid #999 !important;
    background: none !important;
    color: #333 !important;
  }
  .btn {
    border: 1px solid #333 !important;
    background: none !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .gal-stage {
    aspect-ratio: auto;
    border: 1px solid #bbb;
  }
  .gal-shot {
    position: static;
    opacity: 1 !important;
    height: auto;
  }
  .gal-shot:not(.is-on) {
    display: none;
  }
  .media-row,
  .split,
  .feat-grid,
  .games,
  .pillars {
    display: block !important;
  }
  .media-row > * + *,
  .split > * + * {
    margin-top: 0.6cm;
  }
  [data-reveal],
  .line-mask > span {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  @page {
    margin: 1.6cm;
  }
}

/* ============================================================
   SELECTEUR DE LANGUE
   ============================================================ */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s,
    transform 0.3s var(--ease);
}
.lang:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.lang svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}
.drawer .lang {
  justify-self: center;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
}


/* --- Barre de navigation : elle bascule en menu des qu'elle est a l'etroit.
   Avec cinq entrees, le selecteur de langue et l'appel a l'action, le seuil est
   plus haut que celui de la mise en page (mesure : a 834 px le libelle du bouton
   etait rogne). Le selecteur reste accessible : il est dans le menu. --- */
@media (max-width: 980px) {
  .nav-links,
  .nav-cta .btn,
  .nav-cta .lang {
    display: none;
  }
  .burger {
    display: block;
  }
}

/* ============================================================
   ZONES SURES — encoche et barre d'accueil des telephones recents
   Sans cela, la barre « Prevenez-moi » et le bouton « remonter » passent
   sous l'indicateur d'accueil sur un iPhone sans bouton physique.
   ============================================================ */
.notify {
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
}
.to-top {
  right: calc(1.4rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
}
.nav-in,
.footer .wrap,
.section .wrap,
.page-hero .wrap,
.game-hero .wrap,
.hero .wrap {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
@media (max-width: 620px) {
  .notify {
    left: calc(1rem + env(safe-area-inset-left, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
  }
}
