/* motpop.com v4 (27/11/2026, R805) : vitrine à la DA actuelle du jeu (Circuit et Néon). Couleurs de src/autoload/palette.gd
   (fond de la partie #060A26, bleu roi #2140E0, turquoise #19E0C4, magenta #FF3E8A, or #FFC83D, tuiles blanches à rebord),
   polices du jeu : Fredoka (titres, boutons) et Figtree (textes), licences OFL dans fonts/. Mise en page de la v3 (27/10) inchangée. */
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
[hidden] { display: none !important; }
:root {
  color-scheme: dark;
  --nuit: #060A26;
  --plateau: rgba(10, 15, 56, .78);
  --bleu: #2140E0;       --bleu-t: #0B1440;
  --magenta: #FF3E8A;    --magenta-t: #C81F63;
  --or: #FFC83D;         --or-t: #D99A12;
  --turquoise: #19E0C4;  --turquoise-t: #0FA894;
  --tuile: #FFFFFF;      --tuile-t: #B9C3EE;   --tuile-encre: #0B1440;
  --encre: #FFFFFF; --encre-2: #D3DAF5; --encre-3: #AEB8E6;
  --filet: rgba(130, 165, 255, .24);
  --police: "Figtree", "Segoe UI", system-ui, sans-serif;
  --affiche: "Fredoka", "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--nuit); scroll-behavior: smooth; }
/* R811 : fond = celui de l'écran titre et du menu du jeu (#fond-jeu, fond-jeu.css et fond-jeu.js générés depuis la page de
   chargement du jeu) ; le body reste transparent pour le laisser voir (nuit, diodes et halo en CSS même sans JavaScript). */
body { margin: 0; min-height: 100vh; color: var(--encre); font: 400 18px/1.55 var(--police); background: none; }
a { color: inherit; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }
main, .wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.saut { position: absolute; left: 8px; top: -60px; background: var(--or); color: #0B1440; font-weight: 700; padding: 12px 16px; border-radius: 10px; z-index: 20; }
.saut:focus { top: 8px; }

/* En-tête de vitrine (27/10/2026) : une barre plate et un seul bouton « Jouer gratuitement ». Plus de pilule ni
   de logo animé, plus de tuiles pleines aux couleurs des modes : c'était le menu du jeu, que le joueur
   retrouvait juste après le clic. La vitrine garde la palette et le fond du jeu, pas son menu. */
header.barre { position: sticky; top: 0; z-index: 10; background: rgba(6, 10, 38, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--filet); padding-top: env(safe-area-inset-top, 0px); }
.barre-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 8px; min-height: 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; margin-right: auto; }
/* R811 : la croix de l'en-tête est l'image rendue par le jeu (img/logo-croix.png, tools/web/make_site_logo.py), jamais redessinée ;
   le nom à côté reprend l'écriture du nom sous le logo du jeu (Fredoka 700 blanc sur un rebord LOGO_EDGE de 7 %, R571). */
.marque .croix { flex: none; width: 40px; height: 40px; display: block; }
.marque b { font: 700 25px/1 var(--affiche); letter-spacing: .01em; text-shadow: 0 .07em 0 #9FAEE6; }
nav.site { display: flex; align-items: center; gap: 2px; margin-right: 8px; }
nav.site .lien { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 17px; text-decoration: none; color: var(--encre-2); border-bottom: 2px solid transparent; }
nav.site .lien:hover { color: var(--encre); border-bottom-color: var(--turquoise); }
.langue { display: inline-flex; flex: none; }
.langue a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--encre-3); }
.langue a[aria-current] { color: var(--encre); text-decoration: underline; text-decoration-color: var(--turquoise); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.langue a:hover { color: var(--encre); }
.barre .cta { flex: none; display: inline-flex; align-items: center; gap: .3em; min-height: 44px; padding: 0 18px; margin-left: 4px; border-radius: 12px; font-family: var(--affiche); font-weight: 700; text-decoration: none; white-space: nowrap; }


/* Accueil : texte à gauche, vidéo de présentation à droite (une colonne sur téléphone). */
.accueil { padding-top: clamp(24px, 3.4vw, 44px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
main { max-width: 1180px; }
/* R811 : logo de l'écran titre du jeu en tête de l'accueil (img/logo-motpop.webp rendu par le jeu, joué une fois, rejoué au clic).
   L'image garde autour du logo la place de l'onde et des rayons du coup du O : les marges négatives (valeurs « repos » de
   img/logo-motpop.json) calent la mise en page sur le logo posé, et l'onde déborde sans rien pousser. */
.logo-jeu { display: block; width: fit-content; margin: 0 0 18px; --l: 200px; }
.logo-jeu img { display: block; width: var(--l); height: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
  margin: calc(var(--l) * -.1915) 0 calc(var(--l) * -.0197) calc(var(--l) * -.1933); }
h1 { margin: 0; font-family: var(--affiche); font-weight: 700; font-size: clamp(36px, 4vw, 52px); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 4px 30px rgba(6, 10, 38, .6); }
.lead { margin: 18px 0 0; max-width: 34ch; font-size: clamp(19px, 2vw, 23px); line-height: 1.4; color: var(--encre-2); text-shadow: 0 2px 16px rgba(6, 10, 38, .7); }
.actions { margin-top: 26px; }
.gros { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 32px; border-radius: 18px; font-family: var(--affiche); font-weight: 700; font-size: clamp(20px, 2.2vw, 23px); text-decoration: none; }
/* R811 : boutons « Jouer » = touche VALIDER du menu du jeu (GridKit.validate : UiKit.neon_button « turq » de Palette.NEON_TILE_FACES,
   face en dégradé #7DFFF0, #19E0C4, #0C9C88, liseré #E8FFFC, tranche #0FA894 de 5 px, lueur turquoise de 18 px, lettres #0B1440).
   Appuyée, la touche descend sur sa tranche (pressed = copy_with(4) dans le jeu). */
.gros, .barre .cta { color: #0B1440; background: radial-gradient(100% 80% at 50% 25%, #7DFFF0 0%, #19E0C4 60%, #0C9C88 100%);
  box-shadow: inset 0 0 0 2px #E8FFFC, 0 5px 0 #0FA894, 0 0 18px rgba(25, 224, 196, .75); transition: transform .08s ease-out, box-shadow .08s ease-out, filter .12s; }
.gros:hover, .barre .cta:hover { filter: brightness(1.08); }
.gros:active, .barre .cta:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px #E8FFFC, 0 1px 0 #0FA894, 0 0 18px rgba(25, 224, 196, .75); }
@media (prefers-reduced-motion: reduce) { .gros, .barre .cta { transition: none; } }
.note { margin: 10px 0 0; color: var(--encre-3); font-size: 16px; }
.suivre { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 16px; padding: 0 18px; border: 1px solid var(--filet); border-radius: 12px; background: #000; color: #fff; font-weight: 700; text-decoration: none; }
.suivre:hover { border-color: rgba(255, 255, 255, .5); }
.liens { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.liens .suivre { margin-top: 0; }
.souhaits { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1px solid var(--turquoise); border-radius: 12px; background: rgba(6, 10, 38, .5); color: var(--encre); font-weight: 700; text-decoration: none; }
.souhaits:hover { background: var(--turquoise); color: #060A26; }
.souhaits:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }
.suivre:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }
.suivre .x-logo { flex: none; }

.video { position: relative; margin: 0; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--nuit); border: 1px solid var(--filet); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.pause { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border: 1px solid var(--filet); border-radius: 10px; background: rgba(6, 10, 38, .72); cursor: pointer; display: grid; place-items: center; }
.pause::before { content: ""; width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; box-sizing: border-box; }
.pause.en-pause::before { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.pause:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }
/* Bouton son (27/10/2026) : la vidéo démarre toujours muette, le visiteur active le son ; haut-parleur barré = muet. */
.son { position: absolute; right: 62px; bottom: 10px; width: 44px; height: 44px; border: 1px solid var(--filet); border-radius: 10px; background: rgba(6, 10, 38, .72) center / 22px 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z' fill='%23fff'/%3E%3Cpath d='m22 9-6 6M16 9l6 6'/%3E%3C/svg%3E"); cursor: pointer; }
.son[aria-pressed="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z' fill='%23fff'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); border-color: var(--turquoise); }
.son:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; }

/* Le jeu : trois points séparés par des filets, la couleur des modes en simple trait. */
.discret { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main section.jeu { padding-top: clamp(40px, 6vw, 72px); }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* R811 : textes posés sur les cartes de la partie (GridKit.card, Palette.NEON_FACES « card » : dégradé #17216A, #131B5D, #0F1650,
   liseré rgba(130,165,255,.35), tranche #050A2E de 6 px, coin de 18 px), comme dans le menu du jeu : le fond de lettres reste lisible. */
.point, .faq div, .puces, .recompense { background: linear-gradient(180deg, #17216A, #131B5D 50%, #0F1650); border: 0;
  box-shadow: inset 0 0 0 2px rgba(130, 165, 255, .35), 0 6px 0 #050A2E; border-radius: 18px; }
.point { padding: 20px 22px 22px; }
.trois { gap: 16px; }
.point h3 { margin: 0 0 8px; font-family: var(--affiche); font-weight: 700; font-size: clamp(21px, 2.2vw, 25px); line-height: 1.15; }
.point h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; margin-bottom: 14px; background: var(--bleu); }
.point.or h3::before { background: var(--or); }
.point.turquoise h3::before { background: var(--turquoise); }
.point p { margin: 0; color: var(--encre-2); line-height: 1.5; }

main section { padding-top: clamp(48px, 7vw, 84px); scroll-margin-top: 80px; }
h2 { text-wrap: balance; }
section > h2 { font-family: var(--affiche); font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; margin: 0 0 10px; }
.chapo { color: var(--encre-2); max-width: 56ch; margin: 0 0 22px; }
.sous { margin: 16px 0 0; color: var(--encre-3); font-size: 16px; }
.sous a { display: inline-block; padding: 10px 0; }

/* Où jouer : une liste à filets ; seule la ligne disponible est un lien. */
.puces { list-style: none; margin: 0; padding: 4px 20px; max-width: 760px; }
.puces li + li { border-top: 1px solid var(--filet); }
.puces li:has(> [hidden]) { display: none; }
.puces .puce, .puces .dispo a { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-height: 52px; padding: 8px 0; color: var(--encre-2); text-decoration: none; }
.puces .dispo a { color: var(--encre); font-weight: 600; }
.puces .dispo a span { color: var(--turquoise); }
.puces .dispo a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.puce.steam { font-weight: 800; color: var(--encre); text-decoration: underline; }

/* Page de la série GTA (R692) : une colonne, avis de marque en tête. */
.accueil.gta { display: block; }
.accueil.gta .texte { max-width: 760px; }
.avis { display: inline-block; margin: 0 0 18px; padding: 8px 14px; border: 1px solid var(--or); border-radius: 999px; color: var(--or); font-size: 16px; }

footer { margin-top: 90px; border-top: 1px solid var(--filet); padding-block: 26px 44px; color: var(--encre-3); font-size: 16px; background: rgba(6, 10, 38, .5); }
footer .wrap { max-width: 1180px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 28px; align-items: center; }
footer .wrap > span a { display: inline-flex; align-items: center; min-height: 44px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 8px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--encre-2); }

/* Questions fréquentes (24/10/2026, filets au lieu de cartes le 27/10). */
.faq { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.faq div { padding: 18px 20px 20px; }
.faq dt { font-weight: 800; font-size: 18px; line-height: 1.25; }
.faq dd { margin: 6px 0 0; color: var(--encre-2); }

/* Préviens-moi à la sortie (18/10/2026) : formulaire facultatif, cibles de 44 px au moins. */
.sortie { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.sortie form { display: grid; gap: 16px; }
.champ label, .champ legend { display: block; font-weight: 700; margin-bottom: 6px; }
.champ input[type=email], .champ input[type=text] { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid #34437F; background: #0F1650; color: var(--encre); font: 500 18px/1.3 var(--police); }
.champ input:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; border-color: var(--turquoise); }
fieldset.champ { border: 0; margin: 0; padding: 0; min-width: 0; }
.plateformes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.plateformes label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px; border-radius: 12px; border: 2px solid #34437F; background: #0F1650; font-weight: 700; font-size: 16px; cursor: pointer; margin: 0; }
.plateformes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plateformes input:checked + span { color: #0B1440; }
.plateformes label:has(input:checked) { background: var(--turquoise); border-color: var(--turquoise); color: #0B1440; }
.plateformes label:has(input:focus-visible) { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.case { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-size: 16px; line-height: 1.45; cursor: pointer; }
.case input { flex: none; width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--turquoise); cursor: pointer; }
.boutons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.boutons button { min-height: 52px; border: 0; border-radius: 12px; font: 700 19px/1 var(--affiche); cursor: pointer; }
.boutons .ok { background: var(--turquoise); color: #0B1440; box-shadow: 0 4px 0 var(--turquoise-t); }
.boutons .non { background: #34437F; color: #fff; box-shadow: 0 4px 0 #050A2E; }
.boutons button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.boutons button:disabled { opacity: .6; cursor: wait; }
.retour { margin: 0; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.retour.ok { background: rgba(0, 245, 212, .12); color: var(--turquoise); }
.retour.erreur { background: rgba(255, 59, 78, .14); color: #FF8A96; }
.recompense { padding: 20px; }
.recompense h3 { margin: 0 0 8px; font-family: var(--affiche); font-weight: 700; font-size: 22px; color: var(--or); }
.recompense ul { margin: 0; padding-left: 20px; color: var(--encre-2); }
.recompense li { margin-bottom: 6px; }
.petit { color: var(--encre-3); font-size: 15px; margin: 0; }
.petit a { min-height: 44px; display: inline-flex; align-items: center; }



@media (max-width: 960px) {
  nav.site { display: none; }
  .accueil { grid-template-columns: minmax(0, 1fr); }
  .lead { max-width: 40ch; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .trois { grid-template-columns: minmax(0, 1fr); }
  .sortie, .faq { grid-template-columns: minmax(0, 1fr); }
  .plateformes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gros { width: 100%; }
  .logo-jeu { --l: 160px; margin-bottom: 14px; }
}
/* Téléphone debout : version verticale choisie par presentation.js (classe .verticale posée avant tout chargement).
   Pleine largeur utile, ratio 9/16 gardé : pas de bande, pas de recadrage (08/11/2026, retour d'Antoine). */
@media (max-width: 760px) and (orientation: portrait) {
  .video video.verticale { aspect-ratio: 9 / 16; width: 100%; max-height: none; object-fit: cover; }
}
/* Téléphone couché : la vidéo paysage prend toute la hauteur visible, le cadre épouse l'image (pas de bandes
   noires dans le cadre), centré. Jamais plus large que la colonne. */
@media (orientation: landscape) and (max-height: 500px) {
  .video video { width: auto; max-width: 100%; height: calc(100svh - 96px); max-height: none; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 auto; }
  .accueil { padding-top: 12px; }
  .video { order: -1; }
}
@media (max-width: 480px) { .barre .cta .plus { display: none; } .barre .cta { padding: 0 16px; } }
@media (max-width: 360px) { .marque b { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
