/* Volp Interactive — site du studio.
   Studio : sobre, clair, encre du logo (#222023) sur papier chaud.
   Pages d'un jeu : même mise en page, couleurs du jeu (body.theme-memory = nuit de la roulotte, or, crème).
   Toutes les couleurs passent par les variables ci-dessous : un thème ne change que ces variables. */

/* Titres : Bebas Neue (SIL OFL, BebasNeue-OFL.txt), le lettrage le plus proche de « VOLP » dans le logo */
@font-face {
  font-family: "Bebas Neue";
  src: url("BebasNeue-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Lilita One";
  src: url("LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #f5f3ef;
  --bg-raised: #ffffff;
  --fg: #222023;
  --muted: #6c6862;
  --line: rgba(34, 32, 35, 0.12);
  --accent: #222023;
  --btn-bg: #222023;
  --btn-fg: #f5f3ef;
  --header-bg: rgba(245, 243, 239, 0.8);
  --radius: 20px;
  --radius-lg: 28px;
  --wrap: 1120px;
  --font-title: "Bebas Neue", "Arial Narrow", sans-serif;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Couleurs de Memory Cats, aussi utilisées pour la vignette du jeu sur l'accueil */
  --mc-night: #1c2148;
  --mc-night-deep: #12152f;
  --mc-gold: #fad166;
  --mc-cream: #fff7e0;
}

body.theme-memory {
  --bg: var(--mc-night-deep);
  --bg-raised: #1c2149;
  --fg: var(--mc-cream);
  --muted: rgba(255, 247, 224, 0.66);
  --line: rgba(255, 247, 224, 0.12);
  --accent: var(--mc-gold);
  --btn-bg: var(--mc-gold);
  --btn-fg: var(--mc-night-deep);
  --header-bg: rgba(18, 21, 47, 0.78);
}

body.theme-eok {
  /* Couleurs du jeu : nuit bleue de la forêt, énergie rose de la magie, cuivre de l'interface */
  --bg: #0b1320;
  --bg-raised: #13213a;
  --fg: #e6eefb;
  --muted: rgba(214, 228, 250, 0.66);
  --line: rgba(150, 185, 235, 0.16);
  --accent: #f063d6;
  --btn-bg: #f063d6;
  --btn-fg: #170a1f;
  --header-bg: rgba(11, 19, 32, 0.78);
  --eok-pink: #f063d6;
  --eok-copper: #e0915a;
  --eok-teal: #79d6c3;
  --eok-blue: #3a6598;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3 { font-family: var(--font-title); font-weight: normal; letter-spacing: 0.01em; line-height: 0.95; margin: 0; }
h1 { font-size: clamp(3.4rem, 8.5vw, 6.6rem); }
h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.6rem; line-height: 1; }
p { margin: 0 0 1em; }

/* ---------- Langues : seul le texte de la langue choisie est affiché ---------- */
html[data-lang="fr"] .l-en, html[data-lang="fr"] .l-es,
html[data-lang="en"] .l-fr, html[data-lang="en"] .l-es,
html[data-lang="es"] .l-fr, html[data-lang="es"] .l-en { display: none !important; }

/* ---------- Logo (le SVG sert de masque : il prend la couleur du texte) ---------- */
.logo, .logo-mark { display: block; background: currentColor; }
.logo {
  aspect-ratio: 500 / 862;
  -webkit-mask: url("img/volp-logo.svg") center / contain no-repeat;
          mask: url("img/volp-logo.svg") center / contain no-repeat;
}
.logo-mark {
  aspect-ratio: 500 / 568;
  -webkit-mask: url("img/volp-mark.svg") center / contain no-repeat;
          mask: url("img/volp-mark.svg") center / contain no-repeat;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-title); letter-spacing: 0.04em; font-size: 1.45rem; line-height: 1; padding-top: 3px; }
.brand .logo-mark { width: 34px; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }
.site-nav .nav-link { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color .15s; }
.site-nav .nav-link:hover, .site-nav .nav-link[aria-current="page"] { color: var(--fg); }

.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); font: 600 0.78rem/1 var(--font); letter-spacing: 0.04em;
  padding: 7px 10px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s;
}
.lang-switch button:hover { color: var(--fg); }
.lang-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ---------- Mise en page ---------- */
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.narrow { width: min(720px, 100% - 40px); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Boutons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  transition: transform .15s, opacity .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--fg); opacity: 1; }
.btn.store { background: transparent; color: var(--fg); border-color: var(--line); cursor: default; padding: 10px 22px; }
.btn.store:hover { transform: none; opacity: 1; }
.btn.store span { display: block; line-height: 1.25; }
.btn.store small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Accueil du studio ---------- */
.studio-hero { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.studio-hero h1 { max-width: 13ch; }
.studio-hero .lead { margin-top: 26px; }
.studio-hero .logo { width: min(100%, 280px); margin-left: auto; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.section-head p { margin: 0; max-width: 40ch; }

/* Vignette d'un jeu : aux couleurs du jeu, même sur le site du studio */
.game-tile {
  display: grid; grid-template-columns: 1.1fr 0.9fr; overflow: hidden;
  border-radius: var(--radius-lg); text-decoration: none;
  background: radial-gradient(900px 500px at 85% 0%, #2c3672 0%, transparent 60%), var(--mc-night);
  color: var(--mc-cream);
  transition: transform .25s ease, box-shadow .25s ease;
}
.game-tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(18, 21, 47, 0.6); }
.game-tile .tile-body { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: start; }
.game-tile .tile-tag { color: var(--mc-gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.game-tile .game-title { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--mc-gold); }
.game-tile p { color: rgba(255, 247, 224, 0.72); margin: 18px 0 0; max-width: 42ch; }
.game-tile .tile-link { margin-top: 28px; font-weight: 600; color: var(--mc-gold); display: inline-flex; gap: 8px; }
.game-tile .tile-link .arrow { transition: transform .15s; }
.game-tile:hover .tile-link .arrow { transform: translateX(4px); }
.game-tile .tile-art { min-height: 380px; background: url("img/caravan.jpg") center 32% / cover no-repeat; }

.game-list { display: grid; gap: 20px; }
.game-tile.tile-eok { background: radial-gradient(900px 500px at 85% 0%, #24406a 0%, transparent 60%), #0b1320; color: #e6eefb; }
.game-tile.tile-eok:hover { box-shadow: 0 30px 60px -30px rgba(11, 19, 32, 0.7); }
.game-tile.tile-eok .tile-tag, .game-tile.tile-eok .tile-link { color: #f063d6; }
.game-tile.tile-eok p { color: rgba(214, 228, 250, 0.72); }
.game-tile.tile-eok .tile-art { background-image: url("img/eok/cover.jpg"); background-position: center 30%; }
.game-tile .tile-logo { width: min(100%, 340px); height: auto; display: block; }

.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.fact { background: var(--bg); padding: 20px; }
.fact strong { display: block; font-family: var(--font-title); font-weight: normal; font-size: 1.9rem; letter-spacing: 0.02em; line-height: 1.1; }
.fact span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Page d'un jeu ---------- */
.game-title { font-family: "Lilita One", var(--font); font-weight: normal; letter-spacing: 0.005em; line-height: 1; }
.theme-memory .game-title, .theme-memory .accent { color: var(--mc-gold); }
.theme-memory .eyebrow { color: var(--mc-gold); }

.game-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.game-hero .lead { margin-top: 24px; }
.game-hero .game-title { font-size: clamp(3.2rem, 7vw, 5.2rem); }
.theme-memory .game-hero { position: relative; }

.fan { position: relative; height: 420px; }
.fan img {
  position: absolute; bottom: 20px; left: 50%; width: 168px; border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 130%; transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.fan img:nth-child(1) { transform: translateX(-50%) rotate(-26deg); }
.fan img:nth-child(2) { transform: translateX(-50%) rotate(-13deg); }
.fan img:nth-child(3) { transform: translateX(-50%) translateY(-16px); z-index: 1; }
.fan img:nth-child(4) { transform: translateX(-50%) rotate(13deg); }
.fan img:nth-child(5) { transform: translateX(-50%) rotate(26deg); }
.fan:hover img:nth-child(1) { transform: translateX(-50%) rotate(-32deg); }
.fan:hover img:nth-child(2) { transform: translateX(-50%) rotate(-16deg); }
.fan:hover img:nth-child(3) { transform: translateX(-50%) translateY(-28px); }
.fan:hover img:nth-child(4) { transform: translateX(-50%) rotate(16deg); }
.fan:hover img:nth-child(5) { transform: translateX(-50%) rotate(32deg); }

.showcase { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: url("img/caravan.jpg") center 38% / cover no-repeat; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feature { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature .num { display: block; color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; margin-bottom: 40px; }
.feature h3 { margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); }

.help-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.help-row .btn-row { margin-top: 0; }

/* ---------- Textes longs (confidentialité, mentions, support) ---------- */
.prose h1 { font-size: clamp(3rem, 7vw, 4.4rem); margin-bottom: 14px; }
.prose h2 { font-size: 1.9rem; margin: 1.8em 0 0.5em; }
.prose h3 { margin: 1.6em 0 0.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; width: 34%; }
.updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.4em; }

.contact-box {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 28px 0;
}
.contact-box a { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
h2 + details { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0.8em 0 0; color: var(--muted); }

.todo { background: #ffde59; color: #222023; padding: 0 6px; border-radius: 4px; font-weight: 700; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; padding: 32px 0 40px; }
.site-footer .brand { color: var(--fg); font-size: 1.2rem; }
.site-footer .brand .logo-mark { width: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer nav a:hover { color: var(--fg); }

/* ---------- Eat Or Keep ---------- */
.theme-eok .eyebrow { color: var(--eok-pink); }
.theme-eok .section + .section { border-top: 0; }
.eok-hero {
  position: relative; min-height: min(88vh, 780px); display: flex; align-items: end;
  background: linear-gradient(180deg, rgba(11, 19, 32, 0.1) 0%, rgba(11, 19, 32, 0.5) 50%, var(--bg) 100%),
              url("img/eok/hero.jpg") center 30% / cover no-repeat;
}
.eok-hero .wrap { padding: 120px 0 clamp(40px, 7vw, 80px); }
.eok-hero .game-logo { width: min(100%, 560px); height: auto; display: block; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)); }
.eok-hero .lead { margin-top: 22px; color: rgba(230, 238, 251, 0.86); max-width: 52ch; }
.eok-hero .btn.ghost { background: rgba(11, 19, 32, 0.45); backdrop-filter: blur(6px); }

/* Carrousel de captures : défilement natif avec aimantation, flèches et points en plus */
.carousel { position: relative; }
.carousel-track {
  display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; border-radius: var(--radius-lg);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
  flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; scroll-snap-align: center;
  border-radius: var(--radius-lg); display: block; background: var(--bg-raised);
}
.carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--line); transition: background .2s, width .2s;
}
.carousel-dots button[aria-current="true"] { background: var(--accent); width: 52px; }
.carousel-arrows { display: flex; gap: 8px; }
.carousel-arrows button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--fg); font-size: 1.1rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.carousel-arrows button:hover { border-color: var(--fg); background: var(--bg-raised); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); }
.split h2 { margin-bottom: 20px; }
.split p { color: var(--muted); }
.split .kicker { color: var(--fg); font-size: 1.15rem; }

.dilemma { text-align: center; padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 60px); border-radius: var(--radius-lg);
  background: radial-gradient(600px 300px at 20% 0%, rgba(240, 99, 214, 0.16), transparent 70%),
              radial-gradient(600px 300px at 80% 100%, rgba(224, 145, 90, 0.14), transparent 70%), var(--bg-raised);
  border: 1px solid var(--line); }
.dilemma h2 { margin-bottom: 14px; }
.dilemma > p { color: var(--muted); max-width: 52ch; margin: 0 auto; font-size: 1.15rem; }
.choice { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; max-width: 620px; margin: 36px auto 0; }
.choice .or { font-family: var(--font-title); color: var(--muted); font-size: 1.6rem; }
.choice div:not(.or) { border-radius: var(--radius); padding: 20px; background: rgba(11, 19, 32, 0.6); }
.choice strong { display: block; font-family: var(--font-title); font-weight: normal; font-size: 2.2rem; line-height: 1; margin-bottom: 6px; }
.choice .eat { border: 1px solid rgba(240, 99, 214, 0.5); }
.choice .eat strong { color: var(--eok-pink); }
.choice .keep { border: 1px solid rgba(224, 145, 90, 0.5); }
.choice .keep strong { color: var(--eok-copper); }
.choice span { color: var(--muted); font-size: 0.92rem; }

.theme-eok .feature .num { color: var(--eok-teal); }
.closing { text-align: center; }
.closing h2 { max-width: 18ch; margin: 0 auto 16px; }
.closing p { color: var(--muted); max-width: 50ch; margin: 0 auto; }
.closing .btn-row { justify-content: center; }

@media (max-width: 860px) {
  .split, .choice { grid-template-columns: 1fr; }
  .carousel-dots button { width: 18px; }
  .carousel-dots button[aria-current="true"] { width: 30px; }
  .eok-hero { min-height: 640px; }
  .studio-hero, .game-hero, .about, .game-tile { grid-template-columns: 1fr; }
  .studio-hero .logo { order: -1; margin: 0; width: 120px; }
  .game-tile .tile-art { min-height: 240px; order: -1; }
  .features, .facts { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .fan { height: 300px; }
  .fan img { width: 120px; }
  .showcase { aspect-ratio: 4 / 3; }
  .site-nav .nav-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
