/* =====================================================================================================
   Site vitrine LanisysGames
   Un thème par univers, choisi par la page (attribut data-theme de <html>) :
     launcher  accueil, launcher, actualités, pages légales — couleurs du thème « default » du launcher
     exovival  Exovival Zombie Reborn — couleurs du thème « exovival » du launcher, titres condensés
     multi     jeu multijoueur en préparation
   Aucune ressource externe : polices servies par le site (licence OFL, dossier /fonts).
   ===================================================================================================== */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---- Jetons de thème ----------------------------------------------------------------------------- */
:root,
:root[data-theme="launcher"] {
  --bg: #0b0d13;
  --bg-deep: #07080d;
  --surface: #151922;
  --surface-2: #1c2130;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f4f6fb;
  --text-2: #a6aec0;
  --text-3: #8790a4;
  --accent: #7c5cff;
  --accent-2: #00c2ff;
  --on-accent: #ffffff;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --success: #2bd48b;
  --warning: #ffb547;
  --font-body: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.025em;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 9px;
  --button-bg: linear-gradient(100deg, #7c5cff 0%, #00c2ff 100%);
  color-scheme: dark;
}

:root[data-theme="exovival"] {
  --bg: #060708;
  --bg-deep: #030404;
  --surface: #0c0f0e;
  --surface-2: #131816;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(157, 255, 200, 0.22);
  --text: #e9eeea;
  --text-2: #a3b0a8;
  --text-3: #7d8a83;
  --accent: #22c46e;
  --accent-2: #6cf0a0;
  --on-accent: #04140b;
  --accent-soft: rgba(34, 196, 110, 0.14);
  --uv: #b892ff;
  --danger: #e5384d;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --display-weight: 700;
  --display-tracking: 0.005em;
  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 6px;
  --button-bg: linear-gradient(100deg, #1db866 0%, #7cf2a8 100%);
}

:root[data-theme="multi"] {
  --bg: #0a0f14;
  --bg-deep: #060a0e;
  --surface: #111a22;
  --surface-2: #172431;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #eef4f8;
  --text-2: #a4b4c2;
  --text-3: #7f8f9d;
  --accent: #ffb547;
  --accent-2: #2dd4bf;
  --on-accent: #1d1303;
  --accent-soft: rgba(255, 181, 71, 0.14);
  --button-bg: linear-gradient(100deg, #ffb547 0%, #ffd38a 100%);
}

/* ---- Base ------------------------------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:where(:root[data-theme="exovival"]) body { font-size: 1.125rem; line-height: 1.6; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.28rem; line-height: 1.25; }
h4 { font-size: 1.06rem; }
/* :where() : spécificité minimale, les composants (pied de page, notes…) gardent leurs tailles. */
:where(:root[data-theme="exovival"]) h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
:where(:root[data-theme="exovival"]) h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.wrap-narrow { max-width: 760px; }

main { flex: 1; }

.section { padding-block: clamp(56px, 9vw, 112px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section + .section { padding-top: 0; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.small { font-size: 0.92rem; }

/* ---- En-tête -------------------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-header .wrap { flex-wrap: wrap; gap: 0 12px; }
  .site-nav, .header-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }
  .site-nav { padding-top: 8px; }
  .header-actions { padding: 8px 0 16px; }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .site-header.is-open .site-nav,
  .site-header.is-open .header-actions { display: flex; }
}

/* ---- Boutons ----------------------------------------------------------------------------------------- */
.btn {
  --btn-pad-y: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-family: "Sora", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
:root[data-theme="exovival"] .btn {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 8px;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--button-bg); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-3); background: rgba(255, 255, 255, 0.07); }
.btn-large { --btn-pad-y: 16px; padding-inline: 28px; font-size: 1.04rem; }
:root[data-theme="exovival"] .btn-large { font-size: 1.3rem; }

/* ---- Accueil ------------------------------------------------------------------------------------------ */
.home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/launcher/planete.webp") right 22% center / cover no-repeat;
  opacity: 0.85;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 18%, rgba(11, 13, 19, 0.82) 48%, rgba(11, 13, 19, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.home-hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.home-hero h1 { max-width: 13ch; }
.home-hero .lead { margin-bottom: 28px; }

.hero-shot {
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(124, 92, 255, 0.12);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg);
  transform-origin: left center;
}
.hero-shot img { width: 100%; }

@media (max-width: 900px) {
  .home-hero .wrap { grid-template-columns: 1fr; }
  .hero-shot { transform: none; }
  .home-hero::after { background: linear-gradient(180deg, rgba(11, 13, 19, 0.6) 0%, var(--bg) 70%); }
}

/* Bloc de téléchargement */
.download {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.download-meta { margin: 0; font-size: 0.92rem; color: var(--text-2); }
.download-meta strong { color: var(--text); font-weight: 600; }
.download-check {
  font-size: 0.88rem;
  color: var(--text-2);
  max-width: 52ch;
}
.download-check summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  list-style: none;
}
.download-check summary::-webkit-details-marker { display: none; }
.download-check summary svg { width: 16px; height: 16px; }
.download-check[open] summary { margin-bottom: 8px; }
.download-check p { margin: 0 0 8px; }
.hash {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}
.notice {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.95rem;
}
.notice strong { color: var(--text); }
.badge-priority {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 181, 71, 0.16);
  color: var(--warning);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Jeux (accueil et liste) */
.game-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(157, 255, 200, 0.14);
  background: #060708;
  color: #e9eeea;
  text-decoration: none;
}
.game-feature:hover { color: #e9eeea; }
.game-feature-media { position: relative; }
.game-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.game-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, #060708 100%);
}
.game-feature-body {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  font-family: "Barlow", sans-serif;
  font-size: 1.12rem;
}
.game-feature-body h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin-bottom: 14px;
}
.game-feature-body p { color: #a3b0a8; }
.game-feature-link {
  margin-top: 12px;
  color: #6cf0a0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.game-feature:hover .game-feature-link { text-decoration: underline; text-underline-offset: 0.2em; }
.status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #6cf0a0;
  margin-bottom: 10px;
}
.status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.game-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 20px;
  padding: 26px clamp(22px, 3vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 181, 71, 0.4);
  background: linear-gradient(110deg, rgba(255, 181, 71, 0.07), rgba(45, 212, 191, 0.04));
  color: #eef4f8;
  text-decoration: none;
}
.game-teaser:hover { color: #eef4f8; border-style: solid; }
.game-teaser h3 { margin: 0; font-size: 1.35rem; }
.game-teaser p { margin: 4px 0 0; color: #a4b4c2; max-width: 60ch; }
.game-teaser .status { color: #ffb547; margin: 0; }

@media (max-width: 820px) {
  .game-feature { grid-template-columns: 1fr; }
  .game-feature-media { aspect-ratio: 16 / 9; }
  .game-feature-media::after { background: linear-gradient(180deg, transparent 50%, #060708 100%); }
}

/* Titres de section avec action à droite */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.section-head h2 { margin: 0; }
.section-head a { font-size: 0.95rem; }

/* ---- Actualités ----------------------------------------------------------------------------------------- */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.news-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
}
.news-item:hover { border-color: var(--line-strong); color: var(--text); }
.news-item img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-item-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.news-item h3 { font-family: "Sora", sans-serif; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.news-item p { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.news-date { font-size: 0.85rem; color: var(--text-3); }
.news-topic { color: var(--accent-2); }
.news-item[data-topic-theme="exovival"] .news-topic { color: #6cf0a0; }
.news-item[data-topic-theme="multi"] .news-topic { color: #ffb547; }

/* Article */
.article-head { padding-block: clamp(48px, 7vw, 88px) 24px; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.article-cover { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--accent-2); }
.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-2);
}
.prose code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 6px;
}
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-deep); border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { font-size: 0.88rem; color: var(--text-3); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose strong { color: var(--text); }
.article-back { display: inline-block; margin-top: 40px; }

/* ---- Page du launcher ----------------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 5vw, 64px); }
.page-hero + .section-tight { padding-top: 0; }
.launcher-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}
.launcher-hero h1 { max-width: 14ch; }
@media (max-width: 900px) { .launcher-hero .wrap { grid-template-columns: 1fr; } }

.download-panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.download-panel h2 { font-size: 1.15rem; font-family: "Sora", sans-serif; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 18px 0 0; font-size: 0.93rem; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; color: var(--text); }

.shot-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.shot { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid var(--line-strong); width: 100%; }
.shot figcaption { font-size: 0.88rem; color: var(--text-2); margin-top: 10px; }
.shot-main { grid-column: span 7; }
.shot-side { grid-column: span 5; display: grid; gap: 18px; align-content: start; }
@media (max-width: 820px) { .shot-main, .shot-side { grid-column: 1 / -1; } }

.feature-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 40px 48px;
}
.feature-group h3 { display: flex; align-items: center; gap: 12px; }
.feature-group h3 svg { width: 26px; height: 26px; color: var(--accent-2); flex: none; }
.feature-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-group li { color: var(--text-2); padding-left: 18px; position: relative; }
.feature-group li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.feature-group li strong { color: var(--text); font-weight: 600; }

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 194, 255, 0.08), transparent 55%),
    var(--surface);
}
.trust img { border-radius: 12px; border: 1px solid var(--line-strong); justify-self: center; max-width: 360px; }
@media (max-width: 820px) { .trust { grid-template-columns: minmax(0, 1fr); } .trust img { width: 100%; } }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 68ch; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--text-2); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}
.steps strong { color: var(--text); display: block; margin-bottom: 2px; }
.steps code { font-size: 0.85em; background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 6px; }

.faq { display: grid; gap: 10px; max-width: 78ch; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 20px;
}
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.faq details p { color: var(--text-2); }

/* ---- Notes de version (même structure que dans le launcher) ----------------------------------------- */
.changelog { display: grid; gap: 22px; }
.release {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(20px, 3vw, 32px);
}
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.version-pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.85rem;
  font-family: "Sora", sans-serif;
}
:root[data-theme="exovival"] .version-pill { font-family: "Barlow Condensed", sans-serif; font-size: 1rem; letter-spacing: 0.02em; }
.release time { color: var(--text-3); font-size: 0.9rem; }
.release h3 { margin: 6px 0 4px; font-size: 1.45rem; }
:root[data-theme="exovival"] .release h3 { font-size: 1.8rem; }
.release-subtitle { color: var(--text-2); margin-bottom: 14px; white-space: pre-line; }
.release-intro { color: var(--text-2); }
.release-section { margin-top: 22px; }
.release-section h4 {
  font-size: 0.95rem;
  color: var(--accent-2);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
:root[data-theme="exovival"] .release-section h4 { font-size: 1.2rem; letter-spacing: 0.03em; }
.release-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.release-items > li { position: relative; padding-left: 18px; }
.release-items > li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.release-items > li.is-comment { padding-left: 0; color: var(--text-2); font-style: italic; }
.release-items > li.is-comment::before { display: none; }
.tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 0.12em;
}
.release-details { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 4px; }
.release-details li::marker { color: var(--text-3); }
.release-note { margin: 6px 0 0; color: var(--text-2); }
.release-more { margin-top: 18px; }

/* ---- Exovival : en-tête à la lampe UV --------------------------------------------------------------- */
.exo-hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #030404;
  touch-action: pan-y;
}
.exo-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.exo-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: brightness(0.85); }

/* Encre invisible : révélée seulement sous le faisceau UV (masque radial suivant le pointeur). */
.exo-uv {
  position: absolute;
  z-index: -2;
  right: 4%;
  top: 14%;
  width: min(46vw, 640px);
  aspect-ratio: 2 / 1;
  background: url("../img/exovival/uv-lea-papa.webp") center / contain no-repeat;
  transform: rotate(-4deg);
  opacity: 0;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle var(--torch-r, 170px) at var(--uv-x, -999px) var(--uv-y, -999px), #000 0%, rgba(0, 0, 0, 0.85) 45%, transparent 100%);
  mask-image: radial-gradient(circle var(--torch-r, 170px) at var(--uv-x, -999px) var(--uv-y, -999px), #000 0%, rgba(0, 0, 0, 0.85) 45%, transparent 100%);
}
.js .exo-uv { opacity: 1; }

/* Faisceau : halo violet + obscurité autour */
.exo-torch {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle var(--torch-r, 170px) at var(--x, 70%) var(--y, 32%), rgba(150, 100, 255, 0.2) 0%, rgba(110, 60, 220, 0.08) 55%, transparent 100%),
    linear-gradient(0deg, #030404 4%, rgba(3, 4, 4, 0.55) 42%, rgba(3, 4, 4, 0.15) 100%);
}
.js .exo-torch { opacity: 1; }
.exo-hero .wrap { position: relative; padding-block: clamp(120px, 18vh, 200px) clamp(48px, 8vh, 96px); }

.exo-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6cf0a0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.exo-mark svg { width: 30px; height: 30px; }
.exo-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(3.1rem, 10vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  margin: 0 0 22px;
  max-width: 9ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.8);
}
.exo-hero .lead { color: #c9d3cd; max-width: 46ch; margin-bottom: 28px; }
.exo-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.uv-hint {
  margin: 26px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--uv);
  font-size: 0.98rem;
}
.uv-hint svg { width: 20px; height: 20px; }
.uv-hint { display: none; }
.js .uv-hint { display: inline-flex; }

/* Récit */
.exo-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.exo-story .prose { font-size: 1.22rem; color: #c9d3cd; }
.exo-story .prose p:first-child::first-letter {
  float: left;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 4.6em;
  line-height: 0.8;
  padding: 0.06em 0.1em 0 0;
  color: #6cf0a0;
}
.cast { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cast li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.cast b { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--text); }
.cast span { color: var(--text-2); font-size: 1rem; }
@media (max-width: 860px) { .exo-story { grid-template-columns: 1fr; } }

/* Ce qui vous attend : lignes à deux colonnes, titre condensé à gauche */
.exo-features { border-top: 1px solid var(--line); }
.exo-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.exo-feature h3 { margin: 0; display: flex; gap: 14px; align-items: flex-start; }
.exo-feature h3 svg { width: 28px; height: 28px; color: #22c46e; flex: none; margin-top: 2px; }
.exo-feature p { margin: 0; color: var(--text-2); }
@media (max-width: 760px) { .exo-feature { grid-template-columns: 1fr; } }

/* Cassettes VHS */
.tapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 26px;
}
.tape { margin: 0; }
.tape-screen {
  position: relative;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(160deg, #1a1d1c, #0b0d0c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.tape-screen img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tape-screen::after {
  /* lignes de balayage */
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.tape figcaption { margin-top: 12px; display: grid; gap: 2px; }
.tape-label {
  justify-self: start;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #101311;
  background: #e9e4d6;
  padding: 2px 10px;
  border-radius: 3px;
  transform: rotate(-1deg);
}
.tape-text { color: var(--text-2); font-size: 1rem; }

/* L'abri (en développement) */
.abri {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(157, 255, 200, 0.14);
  overflow: hidden;
  background: #070908;
}
.abri-head { padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 44px) 8px; max-width: 72ch; }
.abri-head p { color: var(--text-2); }
.abri-tag {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #e8b04a;
  border: 1px solid rgba(232, 176, 74, 0.45);
  border-radius: 6px;
  padding: 1px 10px;
  margin-bottom: 14px;
}
.abri-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 24px 4px 4px;
}
.abri-grid figure { margin: 0; position: relative; }
.abri-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.abri-grid figcaption {
  position: absolute;
  left: 10px; bottom: 8px;
  font-size: 0.85rem;
  color: #e9eeea;
  text-shadow: 0 1px 6px #000;
}
.abri-grid figure:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.abri-grid figure:nth-child(2), .abri-grid figure:nth-child(3) { grid-column: span 2; }
.abri-grid figure:nth-child(4), .abri-grid figure:nth-child(5) { grid-column: span 3; }
@media (max-width: 760px) {
  .abri-grid { grid-template-columns: 1fr 1fr; }
  .abri-grid figure:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .abri-grid figure:nth-child(1) { grid-column: 1 / -1; }
}

/* Configuration et taille */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec { background: var(--surface); padding: 18px 20px; }
.spec dt { color: var(--text-3); font-size: 0.95rem; }
.spec dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--text); }

/* ---- Jeu en préparation ----------------------------------------------------------------------------- */
.upcoming {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.upcoming::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 181, 71, 0.38);
  box-shadow: 0 0 0 80px rgba(45, 212, 191, 0.03), 0 0 0 160px rgba(255, 181, 71, 0.025);
}
.upcoming .wrap { position: relative; padding-block: clamp(80px, 14vw, 180px); }
.upcoming h1 { max-width: 16ch; }
.upcoming .status, .game-teaser .status { color: var(--accent, #ffb547); }
:root[data-theme="launcher"] .game-teaser .status { color: #ffb547; }

/* ---- Pages simples (légal, erreurs) ----------------------------------------------------------------- */
.legal h2 { font-size: 1.35rem; margin-top: 2em; font-family: "Sora", sans-serif; }
.legal address { font-style: normal; }
.placeholder { color: var(--warning); }
.error-page { padding-block: clamp(80px, 14vw, 160px); }
.error-code { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; line-height: 1; color: var(--surface-2); margin-bottom: 0; }

/* ---- Pied de page ------------------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--text-2);
  font-size: 0.93rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 48px;
}
.site-footer h2 { font-family: "Sora", sans-serif; font-size: 0.95rem; color: var(--text); margin-bottom: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-note { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.85rem; color: var(--text-3); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---- Mouvement réduit ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- Exovival sur petit écran : l'encre au-dessus du titre, sans le chevaucher ----------------------- */
@media (max-width: 700px) {
  .exo-uv { top: 76px; right: 5%; width: 74vw; }
  .exo-hero .wrap { padding-top: calc(76px + 37vw + 24px); }
}
