/* Site d'accueil de Glide Odyssey, version « Cabane » (24 novembre 2026, maquette validée par le propriétaire).
   Chaque section de l'accueil est posée sur un fond peint de l'accueil du jeu (images/cabin/) et l'interface
   reprend les objets de la cabane : écriteaux en bois, tableau à craie, polaroïds, cartes postales.
   Aucune ressource tierce : Outfit (brand-tokens.css) et Gochi Hand (police « craie », OFL) servies par le site.
   Pas de style en ligne (CSP stricte côté nginx) : inclinaisons et couleurs par :nth-child. Un seul thème. */
@font-face { font-family: 'Gochi Hand'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/gochi-hand-latin.woff2') format('woff2'); }
:root {
  /* Variables de marque (--brand-*, --tap) : branding/brand-tokens.css, copié en /brand-tokens.css par `npm run landing:build`. */
  --text: var(--brand-white);
  --muted: var(--brand-text-soft);
  --line: rgba(255, 255, 255, .2);
  --chalk: 'Gochi Hand', 'Chalkboard SE', 'Comic Sans MS', cursive;
  --chalk-board: #1d3a30;
  --chalk-ink: #f4f7f2;
  --wood-light: #d08a47;
  --wood: #b8672a;
  --wood-dark: #6b3612;
  --paper: #fffaf0;
  --paper-ink: #0b2440;
  --paper-soft: #46606d;
  --bar: 61px; /* hauteur de l'en-tête collant (60 px + sa bordure) */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar); background: var(--brand-deep); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--brand-font, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
  font-size: 17px; line-height: 1.6; color: var(--text); background: var(--brand-deep); overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-turquoise); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; }
:focus-visible { outline: 3px solid var(--brand-gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; margin-top: 28px; }
@media (min-width: 700px) { .wrap { width: min(1180px, 100% - 48px); } }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(4, 24, 47, .88); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; }
.brand img { height: 56px; width: auto; margin-block: -4px; }
.topbar__nav { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; justify-content: flex-end; }
/* Menu des pages : en ligne sur grand écran, derrière ☰ ailleurs ; la page affichée est soulignée (nav.js). */
.menu__inline { display: flex; align-items: center; gap: 2px 12px; flex-wrap: wrap; }
.menu__link { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 3px solid transparent; }
.menu__link:hover { color: var(--brand-turquoise); }
.menu__link--multi { color: var(--brand-turquoise); }
.menu__link[aria-current] { border-bottom-color: var(--brand-orange); }
.menu { position: relative; display: none; }
.menu__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px; border-radius: var(--brand-radius-pill); border: 1px solid var(--line); font-weight: 800; font-size: 15px; cursor: pointer; list-style: none; }
.menu__toggle::-webkit-details-marker { display: none; }
.menu[open] .menu__toggle { background: rgba(255, 255, 255, .1); }
.menu__links { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; display: grid; min-width: 220px; padding: 8px 14px; border-radius: 14px;
  background: rgba(4, 24, 47, .97); border: 1px solid rgba(24, 209, 209, .45); box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }
.menu__links .menu__link { padding-inline: 4px; font-size: 16px; }
@media (max-width: 1279px) { .menu__inline { display: none; } .menu { display: block; } }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--brand-radius-pill); overflow: hidden; }
.langs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.langs a:hover { color: var(--brand-white); }
.langs a[aria-current="page"] { background: var(--brand-turquoise); color: #032a2a; }
.menu__langs { display: none; }
.page--split .sign { align-self: flex-start; }
/* Téléphone : logo, ☰ et « Jouer » sur une ligne ; les langues passent dans le menu. */
@media (max-width: 640px) {
  .brand img { height: 44px; }
  .topbar__inner { flex-wrap: nowrap; }
  .topbar__nav { flex-wrap: nowrap; gap: 8px; }
  .topbar__nav > .langs { display: none; }
  .menu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu__toggle { padding: 0 14px; font-size: 20px; }
  .menu__links { left: auto; right: 0; }
  .menu__langs { display: inline-flex; margin: 8px 0 6px; justify-self: start; }
}

/* ---------- Boutons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 11px 24px; border-radius: var(--brand-radius-pill); background: linear-gradient(120deg, var(--brand-gold), var(--brand-orange)); color: var(--brand-deep); font-weight: 800; text-align: center; text-decoration: none; transition: transform .18s, filter .18s; }
.button:hover { filter: brightness(1.06); transform: translateY(-2px); }
.button--small { padding: 7px 18px; font-size: 15px; }
.button--ghost { background: rgba(4, 24, 47, .62); color: var(--brand-white); border: 2px solid rgba(255, 255, 255, .75); }
.button--ghost:hover { border-color: var(--brand-turquoise); color: var(--brand-foam); }
.link { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; }
/* Écriteau en bois (comme le « Jouer » et le GO du jeu) : orange = vers l'eau, turquoise = à plusieurs. */
.plank { --c: var(--brand-orange); --c2: #ff7a2e; display: inline-flex; align-items: center; gap: .5em; min-height: 54px; padding: .62em 1.3em .7em;
  font-weight: 900; font-size: clamp(18px, 2vw, 21px); line-height: 1; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--paper-ink);
  background: linear-gradient(180deg, var(--c), var(--c2)); border-radius: 14px; transform: rotate(-1.2deg);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(0, 0, 0, .18), 0 6px 0 var(--wood-dark), 0 12px 22px rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s; }
.plank:hover { transform: rotate(-1.2deg) translateY(-2px); }
.plank:active { transform: rotate(-1.2deg) translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), 0 2px 0 var(--wood-dark), 0 6px 12px rgba(0, 0, 0, .35); }
.plank--turq { --c: #3ee6e6; --c2: #13b3b8; transform: rotate(1deg); }
.plank--turq:hover { transform: rotate(1deg) translateY(-2px); }
.plank--turq:active { transform: rotate(1deg) translateY(4px); }
.plank small { font-size: .62em; font-weight: 800; opacity: .8; }
.plank svg { flex: none; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 24px; margin: 0; }

/* ---------- Héros : l'accueil peint du jeu ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; justify-content: flex-end !important; }
.wall__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero__bg { object-position: 50% 62%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 24, 47, .2) 0%, rgba(4, 24, 47, 0) 26%, rgba(4, 24, 47, .2) 52%, rgba(4, 24, 47, .93) 100%); }
.hero__inner { width: min(1180px, 100% - 32px); padding-block: 72px 36px; }
.hero__eyebrow { display: inline-block; margin: 0; padding: 5px 12px; border-radius: 6px; background: var(--brand-gold); color: var(--paper-ink);
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-1deg); }
.hero h1 { margin: 14px 0 0; font-size: clamp(40px, 7.4vw, 90px); font-weight: 900; line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(4, 24, 47, .55), 0 10px 30px rgba(4, 24, 47, .6); }
.hero h1 em { font-style: normal; color: var(--brand-turquoise); }
.hero__lede { max-width: 36em; margin: 14px 0 24px; font-size: clamp(17px, 1.6vw, 20px); text-shadow: 0 1px 8px rgba(4, 24, 47, .95), 0 0 2px rgba(4, 24, 47, .9); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; font-size: 14px; font-weight: 700; }
.chips li { padding: 4px 11px; border-radius: var(--brand-radius-pill); background: rgba(4, 24, 47, .7); border: 1px solid rgba(255, 255, 255, .2); }
.chips a { color: var(--brand-white); }
.hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 580px; list-style: none; margin: 26px 0 0; padding: 0; }
.hud li { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: rgba(4, 24, 47, .76); border: 1px solid rgba(24, 209, 209, .45); }
.hud strong { font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1; color: var(--brand-turquoise); font-variant-numeric: tabular-nums; }
.hud span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: rise .7s ease-out both; }
  .hero__inner > :nth-child(2) { animation-delay: .06s; } .hero__inner > :nth-child(3) { animation-delay: .12s; }
  .hero__inner > :nth-child(4) { animation-delay: .18s; } .hero__inner > :nth-child(n+5) { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Une section = une page d'écran (demande du propriétaire, 24 novembre 2026) ----------
   Chaque section remplit au moins l'écran sous l'en-tête, contenu centré. Sur ordinateur et tablette, le défilement
   s'aimante au début de chaque page (« proximity » : une page plus haute que l'écran se lit quand même en entier).
   Le contenu de chaque page entre en glissant quand elle arrive (animation liée au défilement, sans script ;
   immobile si l'appareil demande moins d'animation ou ne sait pas le faire). */
.page { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--bar)); }
.page--bottom { justify-content: flex-end; }
@media (min-width: 900px) and (min-height: 600px) {
  html { scroll-snap-type: y proximity; }
  .page { scroll-snap-align: start; }
  .footer { scroll-snap-align: end; }
  .wall.page, .screen.page, .patch.page { padding-block: clamp(28px, 5vh, 64px); }
  .screen.page { justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .page:not(.hero) > .wrap { animation: page-in linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}
@keyframes page-in { from { opacity: .15; transform: translateY(48px) scale(.98); } }

/* ---------- Sections « mur peint » ---------- */
.wall { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(52px, 7vw, 84px); }
.wall--dim::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(4, 24, 47, .3); }
.wall__lede { max-width: 40em; margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(4, 24, 47, .78); font-size: 16px; }
.sign { display: inline-block; padding: 12px 22px 14px; border-radius: 10px; transform: rotate(-1deg);
  background: linear-gradient(180deg, #c97a38, var(--wood)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 5px 0 var(--wood-dark), 0 12px 26px rgba(0, 0, 0, .35); }
.sign h2 { margin: 0; font-size: clamp(30px, 5vw, 54px); font-weight: 900; line-height: 1; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.sign__kicker, .kicker { margin: 0 0 4px; font-family: var(--chalk); font-size: 23px; line-height: 1; color: var(--brand-gold); }
.kicker { color: var(--brand-turquoise); }

/* Multijoueur : tableau à craie + salon façon interface du jeu */
.multi-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; margin-top: 28px; }
.board { padding: 22px 24px; border: 12px solid #8a4b1c; border-radius: 10px; font-family: var(--chalk); color: var(--chalk-ink);
  background: radial-gradient(120% 90% at 30% 20%, #27493d, var(--chalk-board)); box-shadow: inset 0 0 40px rgba(0, 0, 0, .45), 0 16px 34px rgba(0, 0, 0, .45); }
.board h3 { margin: 0; font-family: var(--chalk); font-weight: 400; font-size: 32px; color: var(--brand-gold); }
.board__steps { display: grid; gap: 14px; list-style: none; margin: 14px 0 0; padding: 0; }
.board__steps li { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: start; font-size: 22px; line-height: 1.25; }
.board__steps b { display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--chalk-ink); border-radius: 50%; font-size: 26px; font-weight: 400; }
.board__steps small { display: block; font-size: 17px; opacity: .8; }
.code-chip { display: flex; gap: 6px; margin: 6px 0 2px; }
.code-chip i { display: grid; place-items: center; width: 1.6em; height: 1.8em; border-radius: 6px; font: 900 20px/1 var(--brand-font, sans-serif); font-style: normal; background: var(--chalk-ink); color: var(--chalk-board); }
.lobby { margin: 0; padding: 18px; border-radius: 18px; background: rgba(5, 27, 53, .95); border: 1px solid rgba(24, 209, 209, .5); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.lobby__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lobby__title { margin: 0; font-size: 17px; font-weight: 900; }
.lobby__cond { margin: 8px 0 12px; font-size: 14.5px; color: var(--muted); }
.pill { display: inline-block; padding: 3px 9px; border-radius: var(--brand-radius-pill); background: var(--brand-turquoise); color: var(--paper-ink); font-size: 11.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.pill--live { background: #ff5f6d; color: var(--brand-white); }
.pill--multi { background: var(--brand-orange); }
.pill--new { background: var(--brand-gold); }
@media (prefers-reduced-motion: no-preference) { .pill--live { animation: blink 1.6s ease-in-out infinite; } }
@keyframes blink { 50% { opacity: .55; } }
.riders { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.riders li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-weight: 700; font-size: 15px; }
.riders .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--brand-white); background: var(--brand-orange); }
.riders li:nth-child(2) .dot { background: var(--brand-turquoise); }
.riders li:nth-child(3) .dot { background: var(--brand-gold); }
.riders li:nth-child(4) .dot { background: #b98cff; }
.riders .tag { font-size: 12.5px; font-weight: 800; color: var(--brand-turquoise); }
.riders .is-empty { opacity: .5; font-weight: 600; background: transparent; border: 1px dashed rgba(255, 255, 255, .35); }
.riders .is-empty .dot { background: transparent; border-style: dashed; }
.lobby__count { margin: 12px 0 0; text-align: center; font-size: 40px; font-weight: 900; line-height: 1; color: var(--brand-gold); font-variant-numeric: tabular-nums; }
.lobby__count small { display: block; margin-top: 4px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lobby__go { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.lobby__go span { flex: 1; min-width: 140px; padding: 10px; border-radius: 12px; text-align: center; font-weight: 900; background: var(--brand-orange); color: var(--paper-ink); }
.lobby__go span + span { background: transparent; color: var(--brand-white); border: 2px solid rgba(255, 255, 255, .4); }
.modes2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.page--split > .wrap { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 24px; }
.page--split .modes2 { margin-top: 0; }
.wall__bg--race { object-position: 50% 40%; }
#together::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(4, 24, 47, .65) 100%); }
.mcard { padding: 18px 20px; border-radius: 18px; background: rgba(5, 27, 53, .92); border: 2px solid rgba(255, 255, 255, .14); }
.mcard--race { border-color: var(--brand-orange); background: linear-gradient(180deg, rgba(110, 56, 22, .95), rgba(44, 24, 14, .95)); }
.mcard h3 { margin: 0; font-size: 22px; font-weight: 900; text-transform: uppercase; }
.mcard p { margin: 8px 0 10px; }
.mcard ul { margin: 0; padding-left: 1.1em; font-size: 15.5px; }
.mcard__for { margin: 12px 0 0 !important; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-turquoise); }
.mcard--race .mcard__for { color: var(--brand-gold); }
.chips--multi { margin: 18px 0 26px; }
.chips--multi li { background: rgba(5, 27, 53, .88); }

/* Sports : mur de polaroïds avec la note à la craie du jeu */
.polas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 30px 26px; list-style: none; margin: 28px 0 0; padding: 0; }
/* Neuf sports depuis le downwind foil (26 novembre 2026) : 3 × 3 sur grand écran plutôt qu'une carte seule en bas. */
@media (min-width: 1100px) { .polas { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; } }
.pola { --r: -2.4deg; position: relative; padding: 10px 10px 14px; border-radius: 3px; background: var(--paper); color: var(--paper-ink); transform: rotate(var(--r));
  box-shadow: 0 2px 3px rgba(30, 14, 4, .5), 0 12px 22px rgba(30, 14, 4, .45); transition: transform .2s ease; }
.pola:nth-child(2) { --r: 1.8deg; } .pola:nth-child(3) { --r: -1deg; } .pola:nth-child(4) { --r: 2.4deg; }
.pola:nth-child(5) { --r: -1.8deg; } .pola:nth-child(6) { --r: 1.2deg; } .pola:nth-child(7) { --r: -2deg; }
@media (hover: hover) { .pola:hover { transform: rotate(0) scale(1.04); z-index: 2; } }
.pola::before { content: ""; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd2a8, var(--brand-orange) 55%, #b4531a); box-shadow: 0 3px 4px rgba(0, 0, 0, .5); }
.pola img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.pola h3 { margin: 8px 0 2px; font-family: var(--chalk); font-weight: 400; font-size: 29px; line-height: 1; }
.pola p { margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--paper-soft); }
.pola__multi { position: absolute; top: 18px; right: 18px; z-index: 1; padding: 3px 8px; border-radius: var(--brand-radius-pill); background: var(--brand-orange); color: var(--paper-ink); font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; list-style: none; margin: 8px 0 0; padding: 0; }
.gauges li { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--paper-soft); }
.pips { display: flex; gap: 3px; }
.pips i { width: 11px; height: 7px; border-radius: 3px; background: #dce4e1; }
.pips i.on { background: var(--brand-teal, #0f86a3); }

/* Modes : écriteaux en bois du mur « Au programme » */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 30px 0 0; padding: 0; }
.post { --r: -1.5deg; padding: 16px 16px 18px; border-radius: 12px; transform: rotate(var(--r)); background: linear-gradient(180deg, var(--wood-light), #a85a22);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 6px 0 var(--wood-dark), 0 14px 26px rgba(0, 0, 0, .3); }
.post:nth-child(2) { --r: 1deg; } .post:nth-child(3) { --r: -.8deg; } .post:nth-child(4) { --r: 1.6deg; }
.post h3 { margin: 0; font-size: 21px; font-weight: 900; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.post p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.45; }
.post--race { background: linear-gradient(180deg, var(--brand-orange), #e9662a); color: var(--paper-ink); }
.post--race h3 { text-shadow: none; }
.post__tag { display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: var(--brand-radius-pill); background: rgba(4, 24, 47, .6); color: var(--brand-gold); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

/* Spots : cartes postales */
.postcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px; list-style: none; margin: 26px 0 0; padding: 0; }
@media (min-width: 1100px) { .postcards { grid-template-columns: repeat(5, 1fr); gap: 18px; } .postcard h3 { font-size: 24px; } .postcard__text { font-size: 13px; } .postcard__stamp { width: 58px; min-height: 50px; font-size: 9.5px; } }
.postcard { --r: -1deg; overflow: hidden; border-radius: 6px; background: var(--paper); color: var(--paper-ink); transform: rotate(var(--r)); box-shadow: 0 12px 24px rgba(30, 14, 4, .4); }
.postcard:nth-child(3n+2) { --r: .8deg; } .postcard:nth-child(3n) { --r: -.4deg; } .postcard:nth-child(4n) { --r: 1.1deg; }
.postcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.postcard__body { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 14px 14px; }
.postcard h3 { margin: 0; font-family: var(--chalk); font-weight: 400; font-size: 28px; line-height: 1.05; }
.postcard__stamp { grid-row: 1 / span 2; grid-column: 2; align-self: start; display: grid; place-items: center; width: 54px; min-height: 60px; padding: 4px;
  border: 2px dashed var(--brand-orange-ink, #c45f12); border-radius: 4px; color: var(--brand-orange-ink, #c45f12); font-size: 10.5px; font-weight: 900; line-height: 1.15; text-align: center; text-transform: uppercase; }
.postcard__place { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--paper-soft); }
.postcard__text { grid-column: 1 / -1; margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--paper-ink); }

/* Bande-annonce : sur une vraie vue du jeu au coucher du soleil (rider à gauche, la vidéo à droite sur le soleil). */
.screen { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(52px, 7vw, 84px); background: var(--brand-logo-bg, #04182F); }
.screen__bg { object-position: 30% 50%; }
.screen::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 24, 47, .1) 0%, rgba(4, 24, 47, 0) 30%, rgba(4, 24, 47, .35) 100%), linear-gradient(180deg, rgba(4, 24, 47, 0) 70%, rgba(4, 24, 47, .6) 100%); }
.screen__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); grid-template-rows: auto auto; gap: 14px 40px; align-items: start; }
.screen__copy { grid-row: 1 / span 2; align-self: start; }
.screen__frame { overflow: hidden; width: 100%; max-width: min(860px, (100svh - var(--bar) - 170px) * 16 / 9); justify-self: end; border-radius: 18px; border: 3px solid rgba(24, 209, 209, .7); background: #000; box-shadow: 0 0 0 6px rgba(24, 209, 209, .14), 0 24px 60px rgba(0, 0, 0, .55); transform: rotate(.6deg); }
.screen__frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.screen__note { grid-column: 2; justify-self: end; max-width: min(860px, 100%); margin: 0; padding: 6px 12px; border-radius: 8px; background: rgba(4, 24, 47, .72); font-size: 14px; }
@media (max-width: 899px) {
  .screen__inner { grid-template-columns: 1fr; }
  .screen__copy { grid-row: auto; }
  .screen__frame { justify-self: stretch; max-width: none; transform: none; }
  .screen__note { grid-column: 1; justify-self: start; }
  .screen__bg { object-position: 22% 50%; }
}

/* Nouveautés : tableau de liège de la cabane (liège en dégradés CSS, cadre en bois), notes punaisées. */
.patch { position: relative; padding-block: clamp(52px, 7vw, 84px);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 132px), repeating-linear-gradient(90deg, transparent 0 40px, rgba(255, 220, 170, .03) 40px 44px, transparent 44px 90px), linear-gradient(180deg, #4a2a10, #331b09); } /* mur de planches */
.cork { margin-top: 24px; padding: clamp(18px, 3vw, 34px); border-radius: 8px; border: 14px solid #8a4b1c;
  background:
    radial-gradient(circle at 20% 30%, rgba(90, 50, 15, .35) 0 1.5px, transparent 2px) 0 0 / 13px 11px,
    radial-gradient(circle at 70% 60%, rgba(255, 230, 190, .25) 0 1px, transparent 1.5px) 0 0 / 9px 13px,
    radial-gradient(circle at 40% 80%, rgba(70, 35, 8, .3) 0 1px, transparent 1.6px) 0 0 / 7px 9px,
    linear-gradient(135deg, #c99a62, #b9864c 50%, #c79660);
  box-shadow: inset 0 0 30px rgba(60, 30, 5, .45), inset 0 2px 0 rgba(255, 255, 255, .15), 0 18px 40px rgba(0, 0, 0, .5); }
@media (min-width: 900px) { .notes { grid-template-columns: repeat(4, 1fr) !important; } }
@media (min-width: 900px) and (max-height: 1100px) { .screen__copy { margin-top: -9vh; } }
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 26px 22px; list-style: none; margin: 0; padding: 0; }
.note { --r: -1.8deg; position: relative; padding: 18px 16px 16px; border-radius: 2px; background: var(--paper); color: var(--paper-ink); transform: rotate(var(--r));
  box-shadow: 0 2px 3px rgba(40, 20, 4, .4), 0 10px 18px rgba(40, 20, 4, .35); transition: transform .2s ease; }
.note:nth-child(2) { --r: 1.4deg; background: #fff3a6; } .note:nth-child(3) { --r: -.8deg; background: #d9f6f2; } .note:nth-child(4) { --r: 2deg; }
@media (hover: hover) { .note:hover { transform: rotate(0) scale(1.03); z-index: 2; } }
.note::before { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd2a8, var(--brand-orange) 55%, #b4531a); box-shadow: 0 3px 4px rgba(0, 0, 0, .45); }
.note--hot::before { background: radial-gradient(circle at 35% 30%, #c8fbfb, var(--brand-turquoise) 55%, #0b7f86); }
.note__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 8px; }
.stamp { display: inline-block; padding: 2px 8px; border: 2px solid var(--brand-orange-ink, #c45f12); border-radius: 4px; transform: rotate(-3deg);
  color: var(--brand-orange-ink, #c45f12); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.note--hot .stamp { border-color: #0b7f86; color: #0b7f86; }
.note__date { font-family: var(--chalk); font-size: 18px; color: var(--paper-soft); }
.note h3 { margin: 0; font-family: var(--chalk); font-weight: 400; font-size: 25px; line-height: 1.1; }
.note h3 a { color: var(--paper-ink); text-decoration-color: var(--brand-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.note__text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--paper-ink); }
.patch .ctas { margin-top: 26px; }
.plank--small { min-height: 46px; font-size: 16px; }

/* Appel final : retour à la cabane */
.final { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 10vw, 120px) clamp(64px, 8vw, 96px); text-align: center; }
.final .wall__bg { object-position: 50% 45%; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(4, 24, 47, .25), rgba(4, 24, 47, .78)); }
.final h2 { font-size: clamp(42px, 7vw, 84px); font-weight: 900; text-transform: uppercase; text-shadow: 0 3px 0 rgba(4, 24, 47, .6), 0 10px 30px rgba(4, 24, 47, .7); }
.final p { max-width: 34em; margin: 0 auto 28px; font-size: 18px; text-shadow: 0 1px 8px rgba(4, 24, 47, .95); }
.final .ctas { justify-content: center; }

/* ---------- Sections simples (FAQ, pages internes) ---------- */
.section { padding-block: clamp(44px, 6vw, 84px); background: var(--brand-deep); }
.section__lede { margin: 0 0 28px; max-width: 760px; color: var(--muted); font-size: 19px; }
.qa-list { display: grid; gap: 10px; }
.qa-list--cols { grid-template-columns: repeat(2, 1fr); align-items: start; gap: 10px 16px; }
.qa { padding: 0 18px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 14px 0; min-height: var(--tap); list-style-position: outside; }
.qa summary::marker { color: var(--brand-turquoise); }
.qa__q { display: inline; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.qa p { margin: 0 0 14px; color: var(--muted); }
.qa__more a { font-weight: 700; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; }
.homes { list-style: none; padding: 0; display: grid; gap: 4px; justify-items: center; }
.homes a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }
main > .section:only-child h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 900; }
.prose h2 { margin: 28px 0 8px; font-size: 1.25rem; }
.prose p, .prose li { line-height: 1.6; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
.prose ol li::marker { color: var(--text); font-weight: 700; }
.prose a { overflow-wrap: anywhere; }
main > .section:only-child { min-height: 60vh; }

/* ---------- Pied de page ---------- */
.footer { padding-block: 36px; border-top: 1px solid rgba(255, 255, 255, .1); background: var(--brand-night); color: var(--muted); font-size: 14px; }
.footer p { margin: 0 0 6px; }
.footer__tagline { margin-bottom: 12px !important; font-family: var(--chalk); font-size: 24px; line-height: 1.2; color: var(--brand-turquoise); }
.footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.footer__social a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 700; }
.footer__social svg { flex: none; }
.footer__legal a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }

.lang-hint { background: var(--brand-ocean); color: var(--brand-white); font-size: 15px; }
.lang-hint__inner { display: flex; align-items: center; gap: 14px; min-height: var(--tap); flex-wrap: wrap; }
.lang-hint a { color: var(--brand-white); font-weight: 800; }
.lang-hint button { margin-left: auto; min-width: var(--tap); min-height: var(--tap); background: none; border: 0; color: var(--brand-white); font-size: 22px; cursor: pointer; line-height: 1; }

/* ---------- Tablettes et petits écrans ---------- */
@media (max-width: 900px) {
  .multi-grid, .modes2 { grid-template-columns: 1fr; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .qa-list--cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hud { gap: 6px; } .hud li { padding: 8px; } .hud span { font-size: 11px; letter-spacing: .04em; }
  .posts { grid-template-columns: 1fr; }
  .ctas { gap: 18px; }
  .ctas .plank { flex: 1 1 100%; justify-content: center; }
  .board { padding: 16px; border-width: 9px; }
  .board__steps li { font-size: 20px; }
  .polas { gap: 30px; padding-inline: 6%; }
}
/* Smartphone en paysage : titre et écriteaux visibles sans défilement. */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --bar: 49px; }
  .topbar__inner { min-height: 48px; }
  .brand img { height: 40px; margin-block: -2px; }
  .hero__inner { padding-block: 16px 20px; }
  .hero h1 { font-size: 34px; }
  .hero__lede, .hud, .chips { display: none; }
  .hero__lede + .ctas { margin-top: 16px; }
  .plank { min-height: 46px; font-size: 17px; }
}
@media (max-width: 420px) { .langs a { padding: 0 8px; } }

/* Pages d'écran plus basses : on resserre (ordinateur et tablette en paysage ; le texte masqué reste dans la page). */
@media (min-width: 900px) and (max-height: 980px) {
  .sign h2 { font-size: clamp(28px, 5.4vh, 54px); }
  .sign { padding: 8px 18px 10px; }
  #sports .wall__lede, #spots .wall__lede { display: none; }
  .polas, .postcards { margin-top: 22px; }
  .pola p, .postcard__text { display: none; }
  .postcards { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .postcard h3 { font-size: 22px; }
  .postcard__stamp { width: 44px; min-height: 46px; font-size: 9px; }
  .multi-grid { margin-top: 18px; gap: 22px; }
  .board { padding: 14px 18px; }
  .board h3 { font-size: 27px; }
  .board__steps { gap: 10px; margin-top: 8px; }
  .board__steps li { font-size: 19px; }
  .board__steps small { font-size: 15px; }
  .lobby { padding: 14px; }
  .riders { gap: 6px; }
  .riders li { padding: 4px 10px; }
  .lobby__count { margin-top: 8px; font-size: 32px; }
  .lobby__go { margin-top: 10px; }
  .lobby__go span { padding: 7px; }
  .chips--multi { margin: 14px 0 18px; }
}
@media (min-width: 900px) and (max-height: 800px) {
  .pola img { aspect-ratio: 16 / 8; }
  .hero h1 { font-size: clamp(36px, min(7vw, 9vh), 90px); }
  .hero__lede { margin: 10px 0 18px; }
  .hud { margin-top: 18px; }
  .polas { gap: 24px 22px; }
  .board__steps small, .lobby__cond { display: none; }
}
/* Page « Course en direct / Navigation à plusieurs » sur téléphone et petite tablette : la capture du jeu passe en
   bandeau au-dessus des cartes, sinon les cartes cacheraient les riders. */
@media (max-width: 899px) {
  #together { justify-content: flex-start; padding-top: 0; }
  #together .wall__bg { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 58% 50%; margin-bottom: 18px; }
  #together .modes2 { margin-top: 0; }
}
@media (min-width: 900px) and (max-height: 800px) {
  .cork { margin-top: 14px; padding: 16px; border-width: 10px; }
  .note { padding: 14px 12px 12px; }
  .note h3 { font-size: 21px; }
  .note__text { font-size: 13px; }
  .patch .ctas { margin-top: 16px; }
}
/* Page à plusieurs sur ordinateur : cartes resserrées pour laisser les planches des riders visibles au-dessus. */
@media (min-width: 900px) {
  #together.page { padding-bottom: 22px; }
  #together .mcard { padding: 12px 18px; }
  #together .mcard h3 { font-size: 19px; }
  #together .mcard p { margin: 4px 0 6px; font-size: 15px; }
  #together .mcard ul { font-size: 14px; }
  #together .mcard__for { margin-top: 6px !important; font-size: 12px; }
}
