/* Stolas Dust Wave Events — feuille de style unique du site.
   Cadre studio : nuit violette, violet + rose (identité du site d'origine).
   Pages de jeux : couleurs propres via --g-* (définies dans src/data/games/<slug>.json > theme). */

:root {
  --bg: #08060f;
  --surface: #120d1d;
  --surface-2: #181126;
  --line: #ffffff17;
  --line-strong: #ffffff2e;
  --text: #f5f1fc;
  --muted: #b8b0c8;
  --soft: #8f87a1;
  --accent: #c084fc;
  --accent2: #f472b6;
  --glow1: #8b5cf640;
  --glow2: #ec489938;
  --radius: 22px;
  --radius-lg: 30px;
  --gutter: clamp(20px, 6vw, 96px);
  --maxw: 1320px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* Les pages de jeux reprennent les couleurs du jeu ; le cadre (en-tête, pied de page) reste celui du studio. */
.page-game, .page-legal {
  --bg: var(--g-bg, #08060f);
  --surface: var(--g-surface, #120d1d);
  --accent: var(--g-accent, #c084fc);
  --accent2: var(--g-accent2, #f472b6);
  --glow1: var(--g-glow1, #8b5cf640);
  --glow2: var(--g-glow2, #ec489938);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, var(--glow1), transparent 32%),
    radial-gradient(circle at 82% 38%, var(--glow2), transparent 30%),
    radial-gradient(circle at 50% 95%, #4f46e522, transparent 38%);
  filter: blur(40px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent2); }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--soft); }
.hl {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #111; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ */
/* En-tête et navigation                                              */
/* ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .25s var(--ease), border-color .25s var(--ease), backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header:focus-within {
  background: #08060fd9;
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  box-shadow: 0 6px 24px #a855f74d, inset 0 0 0 1px #ffffff33;
}
.brand__name { font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.15; }
.brand__name b { font-weight: 900; }

.mainnav { display: flex; align-items: center; gap: 6px; }
.mainnav > a, .mainnav__group > a {
  color: #e6e0f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background .2s, color .2s;
}
.mainnav > a:hover, .mainnav__group > a:hover, .mainnav a[aria-current="page"] { background: #ffffff10; color: #fff; }
.mainnav a[aria-current="page"] { box-shadow: inset 0 -2px 0 #f472b6; }
.mainnav__group { position: relative; }
.caret { font-size: 11px; opacity: .7; }
.mainnav__sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: #120c1ff2;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px #0009;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.mainnav__group:hover .mainnav__sub, .mainnav__group:focus-within .mainnav__sub { opacity: 1; visibility: visible; transform: none; }
.mainnav__sub a { color: #eee; text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.mainnav__sub a:hover, .mainnav__sub a[aria-current="page"] { background: #ffffff12; color: #fff; }
.mainnav__sub .mainnav__all { color: var(--soft); font-weight: 500; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 10px 10px; }

.mobilenav { display: none; position: relative; }
.mobilenav summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff0d;
  color: #f0e8ff;
  font-weight: 600;
  font-size: 14px;
}
.mobilenav summary::-webkit-details-marker { display: none; }
.mobilenav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: #120c1ff7;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px #000a;
}
.mobilenav nav a { color: #eee; text-decoration: none; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.mobilenav nav a.sub { padding-left: 30px; font-weight: 500; color: var(--muted); }
.mobilenav nav a:hover, .mobilenav nav a[aria-current="page"] { background: #ffffff12; color: #fff; }

/* ------------------------------------------------------------------ */
/* Boutons, pastilles, utilitaires                                    */
/* ------------------------------------------------------------------ */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 14px;
  background: #fff;
  color: #120c1f;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { color: #120c1f; transform: translateY(-2px); box-shadow: 0 12px 30px #0007, 0 0 0 4px #ffffff14; }
.btn--ghost { background: #ffffff0d; color: #fff; border-color: var(--line-strong); }
.btn--ghost:hover { color: #fff; background: #ffffff18; }
.btn--small { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent2);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.lead { max-width: 820px; font-size: clamp(17px, 1.6vw, 20px); color: #cfc8dd; line-height: 1.7; }
.note { margin-top: 26px; font-size: 14px; color: var(--soft); max-width: 900px; }
.pill {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: #e9e3f5;
  background: #ffffff08;
}
.pill--on { border-color: #34d39966; color: #a7f3d0; background: #10b9811f; }
.pill--wip { border-color: color-mix(in srgb, var(--accent2) 45%, transparent); color: #fde4f2; background: color-mix(in srgb, var(--accent2) 14%, transparent); }
.pill--idea, .pill--planned { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 24px 0 0; font-size: 14px; color: #ece4fb; }
.badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 14px var(--accent2); }
.plainlist { list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------------ */
/* Héros                                                              */
/* ------------------------------------------------------------------ */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; display: flex; }
.hero__panel { position: relative; flex: 1; overflow: hidden; }
.hero__panel img { width: 100%; height: 100%; object-fit: cover; }
.hero--studio .hero__panel:first-child { clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); margin-right: -7%; }
.hero--studio .hero__panel:last-child { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); margin-left: -7%; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #08060f80 0%, #08060f33 35%, #08060fd9 78%, var(--bg) 100%),
    linear-gradient(90deg, #08060fcc 0%, #08060f40 55%, #08060f00 100%);
}
.hero__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--header-h) + 80px) var(--gutter) clamp(60px, 9vh, 110px);
}
.hero__title { font-size: clamp(44px, 7.4vw, 108px); font-weight: 900; letter-spacing: -.045em; line-height: .98; margin: 0 0 24px; max-width: 14ch; }
.hero__studio { display: block; font-size: clamp(14px, 1.5vw, 18px); letter-spacing: .32em; text-transform: uppercase; font-weight: 700; color: #e9ddff; margin-bottom: 18px; }
.hero__lead { max-width: 700px; font-size: clamp(17px, 1.7vw, 21px); color: #ddd5ea; line-height: 1.65; margin: 0; }

.hero--game { min-height: min(92svh, 900px); }
.hero__panel--full img { animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__inner--game { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__logo {
  width: clamp(130px, 17vw, 240px);
  height: auto;
  border-radius: 28px;
  box-shadow: 0 30px 80px #000c, 0 0 0 1px #ffffff1f, 0 0 60px var(--glow1);
}
.hero__gametitle { font-size: clamp(50px, 9vw, 132px); font-weight: 900; letter-spacing: -.05em; line-height: .9; margin: 0 0 12px; }
.game--elyvara .hero__gametitle { background: linear-gradient(120deg, #fff 10%, #e9d5ff 45%, #f9a8d4 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game--cryo-arena .hero__gametitle { background: linear-gradient(100deg, #bfe9ff 0%, #5ec8ff 42%, #ff9b6a 58%, #ff6a2b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-transform: uppercase; letter-spacing: -.03em; }
.hero__tagline { font-weight: 800; letter-spacing: .3em; color: var(--accent2); font-size: clamp(12px, 1.3vw, 15px); margin: 0 0 18px; text-transform: uppercase; }
.game--cryo-arena .hero__tagline { letter-spacing: .08em; }

/* En-tête des pages internes */
.pagehead { max-width: var(--maxw); margin: 0 auto; padding: calc(var(--header-h) + clamp(60px, 10vh, 120px)) var(--gutter) 30px; }
.pagehead h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 900; letter-spacing: -.045em; }

/* Navigation interne des pages de jeux */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.subnav__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 14px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: #fff; border-bottom-color: var(--accent2); }

/* ------------------------------------------------------------------ */
/* Sections                                                           */
/* ------------------------------------------------------------------ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 10vw, 120px) var(--gutter); position: relative; }
.section h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 900; letter-spacing: -.035em; }
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: linear-gradient(180deg, #ffffff06, #ffffff00 70%);
  border-top: 1px solid #ffffff0a;
}
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section__head h2 { margin: 0; }

.grid { display: grid; gap: 20px; margin-top: 34px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #ffffff0f, #ffffff04);
  transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card address { font-style: normal; color: var(--muted); line-height: 1.7; }
.card__icon { display: block; font-size: 28px; margin-bottom: 14px; }
.card--center { text-align: center; }

.shot { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px #0009; background: var(--surface); }
.shot img { width: 100%; }
.shot figcaption { position: absolute; inset: auto 0 0; padding: 18px 22px; font-size: 14px; color: #ece4fb; background: linear-gradient(0deg, #08060fe6, #08060f00); }
.shot--wide { margin-top: 36px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; margin-top: 30px; }
.split--rev > :first-child { order: 2; }
.split__list { list-style: none; margin: 0; padding: 0; }
.split__list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
.split__list li strong { display: block; color: #fff; font-size: 18px; margin-bottom: 2px; }

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #ffffff08;
}
.strip p { margin: 0; color: #d7cfe4; max-width: 780px; }

.devpanel {
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent2) 35%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent2) 8%, transparent));
}
.devcol { padding: 24px; border-radius: 20px; background: #0000004d; border: 1px solid var(--line); }
.devcol h3 { font-size: 17px; }
.devcol ul { margin: 0; padding-left: 18px; color: #d5cde2; line-height: 1.75; }

/* ------------------------------------------------------------------ */
/* Cartes de jeux                                                     */
/* ------------------------------------------------------------------ */
.gamegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.gamelist { display: grid; gap: 28px; }
.gamecard {
  --c1: var(--g-accent, #c084fc);
  --c2: var(--g-accent2, #f472b6);
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--g-surface, var(--surface));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.gamecard:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c1) 50%, transparent); box-shadow: 0 30px 70px #000a, 0 0 50px color-mix(in srgb, var(--c1) 22%, transparent); }
.gamecard__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.gamecard__link:hover { color: inherit; }
.gamecard__media { aspect-ratio: 16 / 8; overflow: hidden; position: relative; }
.gamecard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gamecard:hover .gamecard__media img { transform: scale(1.04); }
.gamecard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--g-surface, var(--surface)) 100%); }
.gamecard__body { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 0 28px 30px; margin-top: -54px; align-items: start; }
.gamecard__logo { width: 92px; height: auto; border-radius: 18px; box-shadow: 0 12px 30px #000b, 0 0 0 1px #ffffff26; }
.gamecard h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; margin: 10px 0 8px; }
.gamecard p { color: var(--muted); margin: 0 0 18px; }
.gamecard .pill { margin-top: 56px; border-color: color-mix(in srgb, var(--c2) 50%, transparent); background: color-mix(in srgb, var(--c2) 15%, transparent); }
.gamecard .btn { background: linear-gradient(120deg, var(--c1), var(--c2)); color: #0b0812; }
.gamecard--large .gamecard__media { aspect-ratio: 16 / 7.5; }
.gamelist .gamecard--large .gamecard__link { display: grid; grid-template-columns: 1.25fr 1fr; }
.gamelist .gamecard--large .gamecard__media { aspect-ratio: auto; min-height: 340px; }
.gamelist .gamecard--large .gamecard__media::after { background: linear-gradient(90deg, transparent 55%, var(--g-surface, var(--surface)) 100%); }
.gamelist .gamecard--large .gamecard__body { margin: 0; padding: 36px 36px 36px 8px; align-self: center; grid-template-columns: 1fr; }
.gamelist .gamecard--large .pill { margin-top: 0; }

/* Actualités */
.newslist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.newscard { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #ffffff0c, #ffffff03); display: flex; flex-direction: column; }
.newscard__media { aspect-ratio: 16 / 8; overflow: hidden; }
.newscard__media img { width: 100%; height: 100%; object-fit: cover; }
.newscard__body { padding: 22px 24px 26px; }
.newscard__meta { font-size: 13px; color: var(--soft); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.newscard__meta a { color: var(--g-accent, var(--accent)); text-decoration: none; }
.newscard h3 { font-size: 21px; }
.newscard h3 a { color: #fff; text-decoration: none; }
.newscard h3 a:hover { color: var(--g-accent2, var(--accent2)); }
.newscard p { color: var(--muted); margin: 0; }

/* Modes (Cryo Arena) */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; margin-top: 16px; }
.modes__group { margin: 44px 0 0; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.modes--single { grid-template-columns: 1fr; }
.modes--single .mode { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
.modes--single .mode__media { aspect-ratio: auto; height: 100%; }
.modes--single .mode__body { padding: 28px 32px; }
.mode { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .25s var(--ease), border-color .25s; }
.mode:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.mode__media { aspect-ratio: 16 / 9; overflow: hidden; }
.mode__media img { width: 100%; height: 100%; object-fit: cover; }
.mode__body { padding: 18px 22px 22px; }
.mode__label {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  background: linear-gradient(100deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mode__players { margin: 4px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--soft); font-weight: 700; }
.mode__body > p:not([class]) { color: var(--muted); margin: 0; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.gallery__item { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 16 / 9; }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption { position: absolute; inset: auto 0 0; padding: 26px 16px 12px; font-size: 13.5px; color: #f2ecfb; background: linear-gradient(0deg, #000c, #0000); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; color: #fff; }
.lightbox::backdrop { background: #05030bf0; }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; border-radius: 14px; margin: 0 auto; }
.lightbox figcaption { text-align: center; margin-top: 12px; color: #e8e0f5; }
.lightbox__btn { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid #ffffff40; background: #00000080; color: #fff; font-size: 24px; cursor: pointer; }
.lightbox__btn--prev { left: 2vw; }
.lightbox__btn--next { right: 2vw; }
.lightbox__close { position: fixed; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #ffffff40; background: #00000080; color: #fff; font-size: 22px; cursor: pointer; }

/* Vidéos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; margin-top: 34px; }
.video iframe, .video video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; background: #000; }
.video p { color: var(--muted); margin-top: 10px; }

/* Équipe (src/data/team.json) */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 20px; margin-top: 30px; }
.member { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #ffffff08; }
.member__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.member__photo--empty { display: grid; place-items: center; font-size: 34px; font-weight: 900; background: linear-gradient(135deg, #7c3aed, #db2777); }
.member__role { color: var(--accent2); font-weight: 700; margin: 0 0 6px; }

/* Page légale */
.legal { max-width: 900px; margin: 0 auto; padding: calc(var(--header-h) + 60px) var(--gutter) 100px; }
.legal h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 900; margin: 22px 0 32px; }
.legal h2 { color: var(--accent2); margin-top: 40px; font-size: 24px; }
.legal p { color: #d6cde3; font-size: 17px; line-height: 1.7; }
.legal-intro { padding: 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); background: #06040bcc; margin-top: 40px; }
.site-footer__grid { max-width: var(--maxw); margin: 0 auto; padding: 60px var(--gutter) 30px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; color: var(--soft); margin-bottom: 14px; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer nav a { color: #e2dbee; text-decoration: none; }
.site-footer nav a:hover { color: var(--accent2); }
.site-footer address { font-style: normal; color: #d2cadf; line-height: 1.7; }
.site-footer .muted { margin-top: 16px; max-width: 360px; font-size: 14px; }
.site-footer__legal { max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter) 34px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }

/* Apparition légère au défilement (activée seulement si le script la prend en charge) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .mainnav { display: none; }
  .mobilenav { display: block; }
  .brand__name { font-size: 13px; letter-spacing: .1em; }
  .grid--3, .grid--2, .split { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item--wide { grid-column: span 2; grid-row: auto; }
  .hero__inner--game { grid-template-columns: 1fr; }
  .modes--single .mode { display: block; }
  .modes--single .mode__media { aspect-ratio: 16 / 9; }
  .hero__logo { width: 120px; border-radius: 22px; }
  .gamelist .gamecard--large .gamecard__link { display: flex; }
  .gamelist .gamecard--large .gamecard__media { min-height: 0; aspect-ratio: 16 / 8; }
  .gamelist .gamecard--large .gamecard__media::after { background: linear-gradient(180deg, transparent 40%, var(--g-surface, var(--surface)) 100%); }
  .gamelist .gamecard--large .gamecard__body { padding: 0 24px 28px; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .hero--studio .hero__bg { flex-direction: column; }
  .hero--studio .hero__panel:first-child, .hero--studio .hero__panel:last-child { clip-path: none; margin: 0; }
}
@media (max-width: 600px) {
  .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .gamecard__body { grid-template-columns: 1fr; margin-top: -40px; padding: 0 20px 24px; }
  .gamecard__logo { width: 72px; }
  .gamecard .pill { margin-top: 0; }
  .card { padding: 22px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 11px; letter-spacing: .08em; }
  .hero__studio { letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
