/* Le site porte la même palette que le jeu : c'est la première chose qu'un
   visiteur reconnaîtra quand il ouvrira l'app. */
:root {
  --sand: #F4EDE2;
  --sand-deep: #EDE2D1;
  --ink: #3A3129;
  --ink-soft: rgba(58, 49, 41, .68);
  --accent: #D2691E;
  --seed: #8B6F47;
  --outline: rgba(53, 44, 34, .20);
  --radius: 18px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .10);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* ------------------------------------------------------------------ barre */

header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 237, 226, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--outline);
}
.bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: inherit; font-weight: 800; }
.brand img { width: 34px; height: 34px; }
nav { margin-inline-start: auto; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
nav a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .95rem; }
nav a:hover { color: var(--accent); }

.langs { display: flex; gap: .35rem; }
.langs a {
  padding: .2rem .55rem; border-radius: 999px; font-size: .8rem;
  border: 1px solid var(--outline); color: var(--ink-soft); text-decoration: none;
}
.langs a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ------------------------------------------------------------------- hero */

.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; }
.hero-grid { display: grid; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }

.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 800; color: var(--accent); margin: 0 0 .8rem; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; margin: 0 0 1rem; white-space: pre-line; }
.lead { font-size: clamp(1.02rem, 2.2vw, 1.18rem); color: var(--ink-soft); margin: 0 0 1.8rem; max-width: 46ch; }

/* Les captures font 1290x2796 : sans plafond, une seule d'entre elles occupe
   trois écrans de haut et repousse tout le texte hors de vue. */
.shot {
  border-radius: 26px; box-shadow: var(--shadow);
  border: 1px solid var(--outline);
  width: auto; max-width: 100%; margin-inline: auto;
}
.hero .shot { max-height: min(70vh, 620px); }
.story-grid .shot { max-height: min(60vh, 520px); }
.gallery .shot { height: clamp(240px, 34vh, 380px); object-fit: contain; }

/* --------------------------------------------------------------- boutons */

.stores { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.3rem; border-radius: 14px; text-decoration: none;
  background: var(--ink); color: var(--sand); font-weight: 700;
  box-shadow: 0 4px 0 rgba(0,0,0,.18); transition: transform .08s ease;
}
.store:hover { transform: translateY(-1px); }
.store:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.store[aria-disabled="true"] { background: var(--seed); opacity: .55; pointer-events: none; }
.store small { display: block; font-weight: 600; font-size: .72rem; opacity: .8; }

/* -------------------------------------------------------------- sections */

section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section + section { border-top: 1px solid var(--outline); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin: 0 0 1.6rem; }

.pillars { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow);
}
.card h3 { margin: .2rem 0 .5rem; font-size: 1.12rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card img { width: 56px; height: 56px; margin-bottom: .4rem; }

.story-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .story-grid { grid-template-columns: .95fr 1.05fr; } }
.prose p { white-space: pre-line; color: var(--ink-soft); }

blockquote {
  margin: 1.6rem 0 0; padding: 1.1rem 1.3rem;
  background: var(--sand-deep); border-inline-start: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { margin: 0 0 .4rem; font-size: 1.06rem; }
blockquote cite { font-style: normal; font-weight: 800; font-size: .9rem; color: var(--accent); }

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.fair { display: flex; flex-wrap: wrap; gap: .7rem; padding: 0; list-style: none; margin: 0; }
.fair li {
  background: #fff; border: 1px solid var(--outline); border-radius: 999px;
  padding: .5rem 1.05rem; font-weight: 700; font-size: .95rem;
}

/* ---------------------------------------------------------- pages texte */

.doc { max-width: 68ch; }
.doc h2 { margin-top: 2.2rem; font-size: 1.25rem; }
.doc p { white-space: pre-line; color: var(--ink-soft); }
.updated { color: var(--ink-soft); font-size: .9rem; }

/* ------------------------------------------------------------------- pied */

footer { border-top: 1px solid var(--outline); padding: 2.5rem 0 3rem; color: var(--ink-soft); font-size: .92rem; }
footer a { font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }

/* --------------------------------------------------- liste d'attente */

.notify { margin-top: 2.6rem; max-width: 34rem; }
.notify h2 { margin-bottom: .5rem; }
.notify .row { display: flex; gap: .6rem; flex-wrap: wrap; }
.notify input {
  flex: 1 1 14rem; min-width: 0;
  padding: .8rem 1rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--outline); border-radius: 14px;
  background: #fff; color: var(--ink);
}
.notify input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.notify button {
  padding: .8rem 1.4rem; font: inherit; font-weight: 700;
  border: 0; border-radius: 14px; cursor: pointer;
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 0 #a2521a;
}
.notify button:active { transform: translateY(2px); box-shadow: 0 2px 0 #a2521a; }
.notify button[disabled] { opacity: .6; cursor: default; }
.note { min-height: 1.4em; margin: .7rem 0 0; font-weight: 700; font-size: .95rem; }
.note.ok { color: #4f7a3a; }
.note.bad { color: #b4432f; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------- presse */

.facts { border-collapse: collapse; width: 100%; max-width: 46rem; margin-bottom: 1rem; }
.facts th, .facts td { text-align: start; padding: .6rem .8rem; border-bottom: 1px solid var(--outline); vertical-align: top; }
.facts th { width: 11rem; color: var(--ink); }
.facts td { color: var(--ink-soft); }
.gallery a { display: block; }
