/* Polices auto-hébergées (Instrument Serif + Instrument Sans, licence SIL OFL), tirées de Google Fonts le 12/10/2026 */
/* latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/instrument-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/instrument-serif-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
   Lunombre Studio · v2 « nuit prune »
   Mélange de trois références :
   - Dipsea   : nuit prune, corail en action, grand serif sensuel
   - Mùn      : la lune comme motif central, capitales très espacées, étoiles
   - Timeleft : vraies photos de soirée, boutons-pilules, sections claires arrondies
   Toute couleur, police ou durée passe par :root (documenté dans brand-book.html).
   ===================================================================== */

:root {
  /* --- Palette : 5 couleurs + 1 surface -------------------------- */
  --nuit:   #170C1C;  /* fond principal, prune presque noir */
  --prune:  #2E1633;  /* surfaces sombres : cartes, téléphone, formulaire */
  --aube:   #F7EADF;  /* texte clair + fond des sections claires */
  --corail: #FF6B4A;  /* action : boutons, liens forts */
  --miel:   #F6B65E;  /* lueur de lune, italiques, détails */
  --rose:   #E9A8B4;  /* accent doux, Meet & Heat */

  --ink-soft: rgba(247, 234, 223, .68);  /* texte secondaire sur fond nuit */
  --line:     rgba(247, 234, 223, .14);  /* filets sur fond nuit */
  --line-day: rgba(23, 12, 28, .12);     /* filets sur fond aube */

  /* --- Typographie ------------------------------------------------ */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(3.4rem, 10vw + .5rem, 8.5rem);
  --fs-h2:   clamp(2.5rem, 5vw + 1rem, 5rem);
  --fs-h3:   clamp(2.6rem, 3vw + 1.6rem, 4.4rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-caps: .72rem;

  /* --- Espace & formes -------------------------------------------- */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --section: clamp(88px, 12vw, 168px);
  --r-card: 28px;   /* photos et cartes, arrondi généreux façon Timeleft */
  --r-pill: 999px;

  /* --- Mouvement -------------------------------------------------- */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --t-fast: .25s;
  --t-slow: 1s;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--aube);
  font: 400 var(--fs-body)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain argentique très léger, statique */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; } /* sinon l'attribut height="…" écrase aspect-ratio */
a { color: inherit; }
::selection { background: var(--corail); color: var(--nuit); }
:focus-visible { outline: 2px solid var(--miel); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.015em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--miel); }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--aube); color: var(--nuit); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* Capitales très espacées, héritées de Mùn */
.caps { font: 500 var(--fs-caps)/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.soft { color: var(--ink-soft); }

/* =====================================================================
   Composants
   ===================================================================== */

/* --- Logo ----------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--miel); }
.logo span { font: 500 .8rem/1 var(--sans); letter-spacing: .42em; color: var(--aube); }

/* --- Boutons-pilules ----------------------------------------------- */
.btn {
  --bg: var(--corail); --fg: var(--nuit); --bd: var(--corail);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 1em 1.6em;
  border: 1px solid var(--bd); border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg);
  font: 600 .95rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
.btn:hover { --bg: var(--miel); --bd: var(--miel); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: var(--aube); --bd: var(--line); }
.btn--ghost:hover { --bg: transparent; --bd: var(--aube); }
.btn--dark { --bg: var(--nuit); --fg: var(--aube); --bd: var(--nuit); }
.btn--dark:hover { --bg: var(--prune); --bd: var(--prune); }
.btn[aria-disabled="true"] { --bg: transparent; --fg: var(--ink-soft); --bd: var(--line); cursor: default; transform: none; }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Petite étiquette arrondie (faits sur les jeux) */
.chip { display: inline-block; padding: .45em 1em; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-small); }

/* --- Apparition au scroll (seulement si JS actif) ------------------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =====================================================================
   En-tête (logo centré façon Mùn)
   ===================================================================== */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background var(--t-fast), border-color var(--t-fast);
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { background: rgba(23, 12, 28, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: var(--line); }
.top .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; height: 76px; }
.top nav { display: none; gap: 28px; }
.top nav a { font-size: var(--fs-small); text-decoration: none; color: var(--ink-soft); transition: color var(--t-fast); }
.top nav a:hover { color: var(--aube); }
.top .btn { padding: .75em 1.25em; font-size: var(--fs-small); justify-self: end; }
@media (min-width: 900px) {
  .top .wrap { grid-template-columns: 1fr auto 1fr; }
  .top nav { display: flex; }
  .top .logo { order: 2; }
  .top nav { order: 1; }
  .top .btn { order: 3; }
}

/* =====================================================================
   Hero : ciel étoilé, lune-photo, grand serif
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  padding: 120px 0 72px;
  display: grid; align-items: center;
  background:
    radial-gradient(ellipse 70% 55% at 70% 40%, rgba(246, 182, 94, .14), transparent 70%),
    radial-gradient(ellipse 60% 60% at 10% 100%, rgba(255, 107, 74, .12), transparent 70%),
    var(--nuit);
}
/* Étoiles : deux couches, la seconde scintille lentement */
.hero::before, .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 86%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 40%, #fff 50%, transparent 51%);
  opacity: .5;
}
.hero::after { transform: translate(7%, 9%) scale(1.1); animation: twinkle 7s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .1; } to { opacity: .55; } }

.hero .wrap { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero .caps { color: var(--miel); }
.hero h1 { font-size: var(--fs-hero); margin: 18px 0 26px; }
.hero h1 em { display: block; }
.hero .lead { max-width: 30rem; font-size: 1.15rem; color: var(--ink-soft); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .where { margin-top: 22px; font-size: var(--fs-small); color: var(--ink-soft); }

/* La lune : une photo de soirée dans un disque, éclairée comme un croissant */
.moon { position: relative; justify-self: center; width: min(76vw, 520px); aspect-ratio: 1; }
.moon .disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(246, 182, 94, .35), 0 0 120px -10px rgba(246, 182, 94, .45);
}
.moon img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: drift 22s ease-in-out infinite alternate; }
.moon .disc::after { /* ombre de la lune : la face cachée glisse doucement */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 74% 28%, transparent 34%, rgba(23, 12, 28, .6) 54%, rgba(23, 12, 28, .97) 72%);
}
@keyframes drift { to { transform: scale(1.16) translate(-3%, 2%); } }

/* Badge circulaire qui tourne (clin d'œil à Mùn) */
.badge { position: absolute; right: 2%; bottom: 4%; width: 26%; aspect-ratio: 1; color: var(--aube); }
.badge svg { width: 100%; height: 100%; animation: spin 28s linear infinite; }
.badge text { font: 500 8.2px var(--sans); letter-spacing: .32em; text-transform: uppercase; fill: currentColor; }
.badge i { position: absolute; inset: 34%; border-radius: 50%; background: var(--corail); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.1fr 1fr; }
  .moon { justify-self: end; }
}

/* =====================================================================
   Bandeau défilant (capitales espacées)
   ===================================================================== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; }
.marquee div { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee span { padding-right: 2.2em; white-space: nowrap; color: var(--ink-soft); }
.marquee b { color: var(--miel); font-weight: 400; padding-left: 2.2em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* =====================================================================
   Sections
   ===================================================================== */
.section { padding: var(--section) 0; }
.head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 96px); max-width: 52rem; }
.head .caps { color: var(--miel); }
.head h2 { font-size: var(--fs-h2); }
.head p { max-width: 34rem; color: var(--ink-soft); }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* =====================================================================
   Jeux : une grande rangée par jeu, photo + téléphone + texte
   ===================================================================== */
.games { display: grid; gap: clamp(96px, 12vw, 160px); }
.game { --accent: var(--corail); display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.game--miel { --accent: var(--miel); }
.game--rose { --accent: var(--rose); }

.game .media { position: relative; margin-right: 28px; }
.game .photo { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 3 / 2; } /* photos paysage */
.game .photo > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.game:hover .photo:not(.shot) > img { transform: scale(1.04); } /* pas de zoom sur une photo à écran incrusté */

.game .num { color: var(--accent); }
.game h3 { font-size: var(--fs-h3); margin: 14px 0 10px; }
.game .tagline { font: italic 400 1.5rem/1.3 var(--serif); color: var(--accent); }
.game .desc { margin: 22px 0 26px; color: var(--ink-soft); max-width: 30rem; }
.game .btn:not([aria-disabled]):not(.btn--ghost) { --bg: var(--accent); --bd: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Fiche d'un jeu : mêmes rubriques, même ordre pour les trois (accueil et hero des pages) */
.fiche { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 22px; margin: 0 0 32px; max-width: 34rem; }
.fiche > div { padding-top: 10px; border-top: 1px solid var(--line); }
.fiche dt { font: 600 var(--fs-caps)/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent, var(--miel)); }
.fiche dd { margin: 6px 0 0; font-size: var(--fs-small); line-height: 1.4; color: var(--aube); }

@media (min-width: 900px) {
  .game { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; }
  .game:nth-child(even) .media { order: 2; margin-right: 0; margin-left: 28px; }
}

/* --- Téléphone : un cadre noir autour d'une VRAIE capture de l'appli -
   Captures dans assets/captures/ (600 × 1298, ratio d'un iPhone).      */
.device {
  width: 100%; padding: 7px; border-radius: 34px;
  background: #0C0610;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1);
}
.device img { width: 100%; aspect-ratio: 600 / 1298; object-fit: cover; border-radius: 27px; }

/* Variante flottante posée sur une photo (page d'accueil, hero des jeux) */
.phone {
  position: absolute; right: -28px; bottom: -40px;
  width: clamp(110px, 26%, 190px);
  transform: rotate(4deg);
  animation: float 7s ease-in-out infinite alternate;
}
.game:nth-child(even) .phone { right: auto; left: -28px; transform: rotate(-4deg); animation-delay: -3s; }
@keyframes float { to { translate: 0 -10px; } }

/* --- Capture incrustée dans une photo où l'on voit un téléphone -------
   <figure class="shot" data-corners="x y, x y, x y, x y"> : coins de l'écran
   en % de la photo (haut-gauche, haut-droite, bas-gauche, bas-droite).
   main.js déforme la capture en perspective (matrix3d) pour épouser l'écran.
   La figure garde le ratio exact de la photo (style="aspect-ratio: L / H"). */
.shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-card); }
.shot > img { width: 100%; height: 100%; object-fit: cover; }
.shot-screen {
  position: absolute; top: 0; left: 0; width: 300px; aspect-ratio: 600 / 1298;
  transform-origin: 0 0; border-radius: 34px; overflow: hidden;
  filter: brightness(.94) saturate(1.05);
}
.shot-screen img { width: 100%; height: 100%; object-fit: cover; }
.shot-screen::after { /* reflet de vitre */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 38%, transparent 70%, rgba(255, 255, 255, .05));
}
/* Variante téléphone couché : capture portrait recadrée au ratio de l'écran photographié */
.shot-screen--couche { aspect-ratio: 1 / 2.6; }
.shot-screen--couche img { object-position: 50% 40%; }

.js .shot-screen { opacity: 0; transition: opacity .6s; }
.js .shot-screen.is-pinned { opacity: 1; }

/* --- Écran de télé (l'écran commun de Dice & Vice et Meet & Heat) ---- */
.tv { position: relative; padding: 10px; border-radius: 14px; background: #08050A; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 120px -40px var(--accent, var(--corail)); }
.tv img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 26%; height: 12px; translate: -50% 0; border-radius: 0 0 10px 10px; background: #08050A; }

/* =====================================================================
   Section claire (façon Timeleft) : comment ça se passe + avis
   ===================================================================== */
.day {
  background: var(--aube); color: var(--nuit);
  border-radius: clamp(28px, 4vw, 48px);
  margin-inline: clamp(8px, 1.4vw, 20px);
}
.day .head .caps { color: #B5482F; } /* corail assombri pour le contraste sur fond clair */
.day .head p, .day .soft { color: rgba(23, 12, 28, .68); }
.day h2 em, .day h3 em { color: #B5482F; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line-day); }
.steps li::before { content: counter(s); font: italic 400 4rem/1 var(--serif); color: #B5482F; }
.steps h3 { font-size: 2rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* Étapes illustrées : la photo passe au-dessus du numéro (order: -1) */
.steps--photos li { border-top: 0; padding-top: 0; }
.steps--photos li::before { font-size: 3rem; margin-top: 10px; }
.step-photo { order: -1; width: 100%; aspect-ratio: 1024 / 1436; object-fit: cover; border-radius: var(--r-card); }
@media (min-width: 900px) { .steps--photos li:nth-child(2) { translate: 0 56px; } } /* décalage éditorial */
@media (max-width: 899px) { /* mobile : rangée qui défile plutôt que trois photos géantes empilées */
  .steps--photos { grid-auto-flow: column; grid-auto-columns: min(78%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .steps--photos li { scroll-snap-align: start; }
}

.quotes { display: grid; gap: 16px; margin-top: clamp(96px, 12vw, 160px); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: 32px 28px; border-radius: var(--r-card); background: #FFF6EE; border: 1px solid var(--line-day); display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font: 400 1.6rem/1.2 var(--serif); }
.quote figcaption { margin-top: auto; font-size: var(--fs-small); }
.quote figcaption span { display: block; color: rgba(23, 12, 28, .6); }

/* =====================================================================
   Engagements (fond nuit)
   ===================================================================== */
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.promises li { padding: 28px 16px 28px 0; border-bottom: 1px solid var(--line); }
.promises li:nth-child(odd) { border-right: 1px solid var(--line); }
.promises li:nth-child(even) { padding-left: 16px; }
.promises strong { display: block; font: 400 1.6rem/1.1 var(--serif); margin-bottom: 6px; }
.promises span { font-size: var(--fs-small); color: var(--ink-soft); }
@media (min-width: 900px) {
  .promises { grid-template-columns: repeat(4, 1fr); }
  .promises li, .promises li:nth-child(even) { padding: 32px 24px; border-right: 1px solid var(--line); }
  .promises li:first-child { padding-left: 0; }
  .promises li:last-child { border-right: 0; }
}

/* =====================================================================
   Final : photo aux chandelles + lune qui se lève
   ===================================================================== */
.finale {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 92svh; display: grid; place-items: center; text-align: center;
  padding: var(--section) 0 calc(var(--section) * 1.6);
}
.finale > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.finale::before { /* voile prune pour lisibilité */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--nuit) 0%, rgba(23, 12, 28, .55) 40%, rgba(23, 12, 28, .7) 70%, var(--nuit) 100%);
}
.finale h2 { font-size: var(--fs-hero); }
.finale p { margin: 22px auto 34px; max-width: 30rem; color: var(--ink-soft); }
.finale .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rise {
  position: absolute; left: 50%; bottom: 0; z-index: -1;
  width: min(140vw, 1100px); aspect-ratio: 1; border-radius: 50%;
  translate: -50% 72%;
  background: radial-gradient(circle at 50% 40%, rgba(246, 182, 94, .55), rgba(255, 107, 74, .25) 45%, transparent 70%);
}
/* La lune monte pendant qu'on fait défiler (navigateurs récents seulement) */
@supports (animation-timeline: view()) {
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes rise { from { translate: -50% 95%; } to { translate: -50% 62%; } }
}

/* =====================================================================
   Contact
   ===================================================================== */
.contact { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.2fr; gap: 96px; } }
.contact h2 { font-size: var(--fs-h2); margin-top: 18px; }
.contact .caps { color: var(--miel); }
.contact .aside p { margin-top: 22px; color: var(--ink-soft); max-width: 26rem; }

.form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-card); background: var(--prune); }
.form .row { display: grid; gap: 22px; }
@media (min-width: 720px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--fs-small); color: var(--ink-soft); }
.input {
  width: 100%; padding: 14px 18px;
  background: rgba(23, 12, 28, .55); color: var(--aube);
  border: 1px solid var(--line); border-radius: 16px;
  font: 400 1rem/1.4 var(--sans);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.input:focus { outline: none; border-color: var(--miel); background: var(--nuit); }
.input:user-invalid { border-color: var(--corail); }
textarea.input { resize: vertical; min-height: 140px; }
select.input {
  appearance: none; cursor: pointer; padding-right: 44px;
  background: rgba(23, 12, 28, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F7EADF'/%3E%3C/svg%3E") right 18px center no-repeat;
}
select.input option { background: var(--prune); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); color: var(--ink-soft); }
.check input { accent-color: var(--corail); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; } /* pot de miel anti-robots */
.status { min-height: 1.5em; margin-top: 14px; font-size: var(--fs-small); }
.status[data-state="ok"] { color: var(--miel); }
.status[data-state="error"] { color: var(--corail); }

/* =====================================================================
   Pied de page
   ===================================================================== */
.foot { border-top: 1px solid var(--line); padding: 40px 0; font-size: var(--fs-small); color: var(--ink-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--aube); }

/* =====================================================================
   Pages de jeu (brain-and-bed.html, dice-and-vice.html, meet-and-heat.html)
   Déroulé inspiré de Toz : choix de la température, règles en étapes
   illustrées, modes, écran commun, consentement, FAQ, appel final.
   Chaque page fixe sa couleur d'accent : <body style="--accent: …">.
   ===================================================================== */
.g-hero { padding: 132px 0 var(--section); }
.g-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.g-hero .caps { color: var(--accent); }
.g-hero h1 { font-size: var(--fs-hero); margin: 16px 0 10px; }
.g-hero .tagline { font: italic 400 clamp(1.5rem, 2vw + 1rem, 2.2rem)/1.2 var(--serif); color: var(--accent); }
.g-hero .lead { margin: 24px 0 30px; max-width: 32rem; font-size: 1.1rem; color: var(--ink-soft); }
.g-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.g-hero .btn:not(.btn--ghost) { --bg: var(--accent); --bd: var(--accent); }
.g-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g-hero .media { position: relative; }
.g-hero .media--phone { margin-right: 28px; } /* place pour le téléphone qui déborde */
.g-hero .hero-photo, .scene { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); }
.price .btn { --bg: var(--accent); --bd: var(--accent); }
@media (min-width: 900px) { .g-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } }

/* --- Température : onglets façon « Soft ou Hot » de Toz ------------- */
.temps [role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.temps [role="tab"] {
  padding: .8em 1.3em; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  font: 500 .95rem/1 var(--sans); transition: all var(--t-fast);
}
.temps [role="tab"]:hover { color: var(--aube); border-color: var(--aube); }
.temps [role="tab"][aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--nuit); }
.temps .heat { height: 4px; border-radius: 4px; margin-bottom: 36px; background: linear-gradient(90deg, var(--miel), var(--corail), #B0275A); }
.temps [role="tabpanel"] { display: grid; gap: 24px; animation: fade .5s var(--ease); }
.temps [role="tabpanel"][hidden] { display: none; }
@keyframes fade { from { opacity: 0; translate: 0 10px; } }
@media (min-width: 900px) { .temps [role="tabpanel"] { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; } }
.temps .what h3 { font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem); }
.temps .what p { margin-top: 14px; color: var(--ink-soft); max-width: 30rem; }
.cards { display: grid; gap: 12px; }
.card { padding: 22px 24px; border-radius: 20px; background: var(--aube); color: var(--nuit); }
.card small { display: block; margin-bottom: 8px; font: 600 var(--fs-caps)/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #8A3A2A; }
.card p { font: 400 1.45rem/1.2 var(--serif); }
.card--lock { background: var(--prune); color: var(--ink-soft); border: 1px dashed var(--line); }
.card--lock p { font-size: 1.15rem; }

/* --- Comment on joue : étapes illustrées par de vraies captures ----- */
.walk { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: min(74%, 260px); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; counter-reset: w; }
.walk li { scroll-snap-align: start; counter-increment: w; display: grid; gap: 14px; align-content: start; }
.walk .device { box-shadow: 0 20px 40px -20px rgba(23, 12, 28, .5); }
.walk h3 { font-size: 1.7rem; }
.walk h3::before { content: counter(w) ". "; font-style: italic; color: #B5482F; }
@media (min-width: 1000px) { .walk { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* --- Modes / mécaniques --------------------------------------------- */
.modes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.mode { padding: 24px; border-radius: 22px; background: var(--prune); border: 1px solid var(--line); transition: border-color var(--t-fast), transform .4s var(--ease); }
.mode:hover { border-color: var(--accent); transform: translateY(-3px); }
.mode h3 { font-size: 1.7rem; margin-bottom: 8px; }
.mode h3 s { opacity: .55; }
.mode p { font-size: var(--fs-small); color: var(--ink-soft); }
.mode:has(.mode-voir) { display: flex; flex-direction: column; }
.mode-voir {
  align-self: flex-start; margin-top: auto; translate: 0 10px;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: none; color: var(--aube); font: 600 var(--fs-small)/1 var(--sans); cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.mode-voir:hover, .mode-voir:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mode-voir span { display: inline-block; transition: transform var(--t-fast) var(--ease); }
.mode-voir:hover span { transform: translateX(3px); }

/* --- Visite d'un mode : fenêtre native <dialog> ---------------------
   Étapes, vraies captures (téléphone et télé) en défilement, une carte par palier. */
.visite {
  width: min(1080px, 100% - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--nuit); color: var(--aube); overflow-y: auto; overscroll-behavior: contain;
}
.visite::backdrop { background: rgba(10, 5, 12, .78); backdrop-filter: blur(6px); }
.visite[open] { animation: visite-in .5s var(--ease); }
@keyframes visite-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
/* Le × reste visible pendant le défilement : formulaire collant de hauteur nulle */
.visite > form { position: sticky; top: 0; z-index: 3; height: 0; display: flex; justify-content: flex-end; }
.visite-x {
  flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--prune); color: var(--aube); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.visite-x:hover { border-color: var(--accent); }
.visite h2 { font-size: clamp(2.4rem, 4vw + 1rem, 4rem); margin-top: 10px; }
.visite .caps { color: var(--accent); }
.visite-pitch { margin-top: 8px; font: italic 400 clamp(1.3rem, 1.5vw + .9rem, 1.8rem)/1.2 var(--serif); color: var(--miel); }
.visite-pas { list-style: none; counter-reset: p; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .visite-pas { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.visite-pas li { counter-increment: p; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--fs-small); }
.visite-pas li::before { content: counter(p); display: block; margin-bottom: 6px; font: italic 400 1.8rem/1 var(--serif); color: var(--accent); }
.visite-vues {
  display: flex; gap: 20px; align-items: flex-start; margin: 36px calc(-1 * clamp(24px, 4vw, 48px)) 0; padding: 0 clamp(24px, 4vw, 48px) 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(247, 234, 223, .25) transparent;
}
.visite-vues figure { flex: none; margin: 0; scroll-snap-align: center; display: grid; gap: 12px; }
.visite-vues .v-tel { width: clamp(160px, 44vw, 190px); }
.visite-vues .v-tv { width: clamp(280px, 84vw, 580px); }
.visite-vues .v-tv figcaption { margin-top: 22px; } /* sous le pied de la télé */
.visite-vues figcaption { font-size: var(--fs-small); color: var(--ink-soft); max-width: 34ch; }
.visite-sous { margin-top: 32px; font-size: 1.6rem; }
.visite-cartes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.visite-cartes li { padding: 16px 18px; border-radius: 18px; background: var(--prune); border: 1px solid var(--line); }
.visite-cartes p { margin-top: 10px; font: 400 1.25rem/1.2 var(--serif); }
.tag { display: inline-block; padding: 5px 10px; border-radius: var(--r-pill); font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--nuit); background: var(--tc, var(--miel)); }
.t-warm { --tc: var(--miel); } .t-hot { --tc: var(--corail); } .t-spicy { --tc: var(--rose); } .t-fire { --tc: #E0465E; }
.vc { margin-left: 8px; font-size: .72rem; letter-spacing: .08em; color: var(--ink-soft); }
.visite-titres { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.visite-titres span { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); font: italic 400 1.15rem/1 var(--serif); }
.visite-note { margin-top: 14px; font-size: var(--fs-small); }

/* --- Bloc à deux colonnes (télé, consentement, prix) ---------------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; gap: 80px; } .split--rev > :first-child { order: 2; } }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }
.ticks b { color: var(--aube); font-weight: 600; }
.price { padding: 32px; border-radius: var(--r-card); background: var(--prune); border: 1px solid var(--line); }
.price h3 { font-size: 2.2rem; margin-bottom: 8px; }
.price .big { font: 400 3.4rem/1 var(--serif); color: var(--accent); margin: 18px 0 6px; }

/* --- FAQ : accordéon natif <details> -------------------------------- */
.faq { display: grid; max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 400 1.6rem/1.2 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--accent); transition: rotate var(--t-fast) var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 26px; max-width: 42rem; color: var(--ink-soft); }

/* --- Lien « Comment ça marche » sur les cartes de l'accueil ---------- */
.more { margin-left: 18px; font-size: var(--fs-small); color: var(--ink-soft); text-underline-offset: 4px; }
.more:hover { color: var(--aube); }

/* --- Les autres jeux, en bas des pages de jeu ----------------------- */
.others { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* =====================================================================
   Mouvement réduit : tout s'affiche, rien ne bouge
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---- Pages légales (mentions, confidentialité) ---------------------- */
.legal { max-width: 46rem; }
.legal h1 { font-size: var(--fs-h2); }
.legal h2 { font-size: 1.8rem; margin: 56px 0 16px; }
.legal h3 { font: 600 1.05rem/1.4 var(--sans); margin: 32px 0 10px; color: var(--aube); }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal a { color: var(--aube); }
