/*
 * kokrea.art — kokrea-theme.css (site public)
 * ─────────────────────────────────────────────────────────────────
 * Complément à Bootstrap 5.3.3 (assets/css/bootstrap.min.css, chargé
 * juste avant ce fichier — voir config.php::htmlHead()). Ne redéfinit
 * PAS ce que Bootstrap fait déjà bien : grille, navbar, offcanvas,
 * boutons, formulaires, cartes, alertes, badges, tableaux → utiliser
 * les classes Bootstrap directement dans le HTML des pages.
 *
 * Ce fichier ne contient que ce qui est propre au produit kokrea.art
 * et n'a pas d'équivalent Bootstrap : parallax, écrans de jeu/GPS,
 * bannière PWA, bascule jour/nuit, animations d'apparition.
 *
 * Le back-office (admin/*) ne charge PAS ce fichier — il a son propre
 * squelette Bootstrap (admin/partials/navbar.php), sans dépendance à
 * assets/css/main.css depuis le 21/08/2026 (retiré, voir ce fichier).
 *
 * Éco-conçu : pas de !important, pas de duplication avec Bootstrap.
 * Accessible : WCAG AA (mêmes contrastes que l'admin), focus visible.
 * Auteur : Pierre-Yves Huan | design9 | contact@design9.fr
 */

/* ═══════════════════════════════════════════════════════════
   1. JETONS DE MARQUE
   (mêmes valeurs que assets/scss/kokrea.scss → --bs-primary etc.,
   mais exposées ici en variables sémantiques pour les besoins
   d'habillage propres au produit, ex. superposer du texte sur une
   photo — chose que les variables Bootstrap ne couvrent pas.)
═══════════════════════════════════════════════════════════ */
:root {
  --c-dark:    #071420;
  --c-mid:     #0d2238;
  --c-ocean:   #1a3a5c;
  --c-sand:    #d4b896;
  --c-salt:    #f0ebe3;
  --c-gold:    #c4923a;
  --c-gold-h:  #a67830;
  --c-green:   #2d5a3d;
  --c-green-l: #4caf82;
  --c-coral:   #c4573a;
  --c-blue:    #3a82c4;
  /* 23/08/2026 : couleurs de titres, éditables depuis admin/theme-colors.php.
     Défaut = même crème que .cc-title/.legal-section h2/.snav-title etc.
     (convention déjà établie partout ailleurs sur le site pour "couleur de
     titre"). Corrige le vrai bug derrière "les couleurs ne s'appliquent
     pas" : h1-h6 utilisaient --bs-heading-color (Bootstrap, figé en dur
     dans le CSS compilé : "inherit" en jour, "#f0ebe3" en dur en nuit),
     jamais connecté au système de jetons --c-* — aucun effet en jour,
     effet partiel en nuit (coïncidence de valeur, pas une vraie liaison). */
  --c-h1: #f0ebe3;
  --c-h2: #f0ebe3;
  /* Paragraphes : contrairement aux titres, le texte courant s'adapte déjà
     nativement au thème via Bootstrap (--bs-body-color). Défaut ici =
     même valeurs, pour ne rien changer visuellement tant que l'admin n'a
     rien réglé — mais devient éditable séparément par thème comme le
     reste. Nuit posée ici, jour posée juste en dessous. */
  --c-p: #f0ebe3;
  /* Fonds de section — éditables depuis admin/theme-colors.php.
     --c-bg remplace --bs-body-bg comme fond de page ; --c-bg-alt est le
     fond des sections alternées (.section-alt, déjà utilisées sur
     l'accueil et les landing pages via des bandes claires/sombres en
     alternance). Défauts repris de tons déjà présents dans la charte :
     nuit = mêmes valeurs que --c-dark/--c-mid, jour = mêmes valeurs que
     --bs-body-bg et le ton clair déjà utilisé dans .ob-bg (#e8e1d6). */
  --c-bg: #071420;
  --c-bg-alt: #0d2238;
  /* 26/08/2026 : converti de rgba(212,184,150,.45) (fixe, mêlé au fond
     derrière) en couleur solide, éditable par thème. C'était la vraie
     cause du texte quasi invisible des cartes "01/02/03/04" en mode jour
     (screenshot utilisateur) : ce ton sable translucide se fondait dans
     un fond de carte devenu clair lui aussi — .t-muted est utilisée sur
     31 éléments dans ce fichier (sous-titres, descriptions de carte,
     footer...), donc "texte en général" en pratique. */
  --c-muted:   #a89073;
  /* Fond et texte des cartes (.card, Bootstrap) — jusqu'ici Bootstrap
     gérait ça seul via --bs-card-bg/--bs-card-color, hors de portée du
     réglage jour/nuit personnalisé. Défauts = mêmes valeurs que --c-bg/
     --c-p pour ne rien changer visuellement au départ. */
  --c-card-bg:    #071420;
  --c-card-color: #f0ebe3;
  --c-border:  rgba(212,184,150,.15);
  --c-surface: rgba(13,34,56,.65);

  /* Texte posé sur une photo (hero/parallax) — fixe, ne suit pas le
     thème jour/nuit : la photo derrière ne change pas de luminosité. */
  --c-photo-text:      #f0ebe3;
  --c-photo-text-soft: rgba(240,235,227,.85);
  --c-photo-sand:      #d4b896;
  --c-photo-gold:      #c4923a;

  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Josefin Sans', system-ui, -apple-system, sans-serif;

  --sp-xs: .25rem; --sp-sm: .5rem; --sp-md: 1rem; --sp-lg: 1.5rem;
  --sp-xl: 2.5rem; --sp-2xl: 4rem; --sp-3xl: 6rem;

  --radius-sm: 2px; --radius-md: 4px; --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 56px rgba(0,0,0,.45);

  --t-fast: .15s ease; --t-base: .25s ease; --t-slow: .45s ease;
}
@media (max-width: 640px) { :root { --sp-3xl: 3rem; --sp-xl: 1.5rem; } }

/* Images de fond des sections parallax (une classe par photo plutôt
   qu'un style inline — l'URL est fixe, connue à l'écriture de la page) */
.pbg-accueil-hero { background-image: url('../img/hero-noirmoutier.webp');       background-color: #0d2238; }
.pbg-cta-bg       { background-image: url('../img/cta-bg.webp');                 background-color: #1a3a5c; }
.pbg-nm-hero      { background-image: url('../img/noirmoutier-hero.webp');       background-color: #0d2238; }
.pbg-nm-gois      { background-image: url('../img/gois.webp');                   background-color: #142d45; }
.pbg-nm-chateau   { background-image: url('../img/chateau-noirmoutier.webp');    background-color: #0d2238; }
.pbg-nm-salines   { background-image: url('../img/salines.webp');                background-color: #1a3a5c; }
.pbg-nm-sunset    { background-image: url('../img/noirmoutier-sunset.webp');     background-color: #1a3a5c; }
.pbg-gp-hero      { background-image: url('../img/guemene-penfao-hero.webp');           background-color: #1a2d0d; }
.pbg-nantes-hero  { background-image: url('../img/nantes-hero.webp');                   background-color: #1a1f26; }
.pbg-nantes-quai  { background-image: url('../img/nantes-memorial.webp');               background-color: #1a1f26; }
.pbg-gp-chapelle  { background-image: url('../img/guemene-chapelle-saint-georges.webp'); background-color: #1a2d0d; }
.pbg-gp-etang     { background-image: url('../img/guemene-etang.webp');                 background-color: #0d1f0d; }
.pbg-gp-fee       { background-image: url('../img/guemene-fee-carabosse.webp');         background-color: #1a1a0d; }
.pbg-gp-sunset    { background-image: url('../img/guemene-don-sunset.webp');            background-color: #1a2d0d; }

/* Material Symbols Sharp — icônes (remplace les emoji Unicode) */
.material-symbols-sharp {
  font-family: 'Material Symbols Sharp';
  font-weight: normal; font-style: normal; font-size: 1.15em; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
  vertical-align: -0.2em;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ═══════════════════════════════════════════════════════════
   2. ACCESSIBILITÉ (complète les valeurs par défaut de Bootstrap)
═══════════════════════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-data: reduce) {
  .parallax-bg { background-image: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   3. TYPOGRAPHIE DE MARQUE
   (nuances de texte propres à l'identité kokrea — Bootstrap gère la
   hiérarchie des titres via $headings-* dans kokrea.scss, ceci ajoute
   les teintes/traitements de marque que ses text-* n'ont pas)
═══════════════════════════════════════════════════════════ */
.t-display { font-family: var(--f-display); font-style: italic; color: var(--c-sand); }
.t-label   { font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--c-gold); display: block; margin-bottom: .5rem; }
.t-muted   { color: var(--c-muted); }
.t-gold, .t-green { color: var(--c-green-l); }
.t-coral   { color: var(--c-coral); }
.t-sand    { color: var(--c-sand); }
.t-serif   { font-family: var(--f-display); }
/* 23/08/2026 : même spécificité (sélecteur de balise) que la règle
   Bootstrap h1,h2,h3,h4,h5,h6{color:var(--bs-heading-color)} qu'elle
   doit remplacer — gagne uniquement parce que ce fichier charge après
   bootstrap.min.css (voir config.php::htmlHead()). Ne dépend PAS de
   [data-bs-theme] : var(--c-h1)/var(--c-h2) sont déjà elles-mêmes
   theme-aware via l'injection de admin/theme-colors.php. */
h1, .h1 { color: var(--c-h1); }
h2, h3, h4, h5, h6, .h2, .h3, .h4, .h5, .h6 { color: var(--c-h2); }
p { color: var(--c-p); }
/* Même mécanique que h1/p : gagne sur la règle Bootstrap body{background-
   color:var(--bs-body-bg)} par ordre de chargement, spécificité égale. */
body { background: var(--c-bg); }
.card { background: var(--c-card-bg); color: var(--c-card-color); }
/* 03/09/2026 : même correctif que côté admin (voir admin/partials/navbar.php)
   — Bootstrap gère .table via ses propres variables internes, jamais
   reliées au système de couleurs personnalisé. Utilisé sur mon-compte.php. */
.table { --bs-table-color: var(--c-card-color); --bs-table-bg: var(--c-card-bg); }
/* Seul --c-p a besoin d'une surcharge jour globale ici (les autres jetons
   sont theme-invariants par défaut, éditables mais pas divergents tant
   que l'admin ne le décide pas) : le texte courant doit rester lisible
   par défaut sur fond clair, comme avant l'introduction de ce jeton. */
[data-theme="light"] { --c-p: #1a1208; --c-bg: #f0ebe3; --c-bg-alt: #e8e1d6; --c-muted: #6b5c48; --c-card-bg: #f0ebe3; --c-card-color: #1a1208; }
/* 22/08/2026 : portées depuis main.css (jamais migrées). .feat-pad était
   groupée avec .p-lg dans main.css (padding: var(--sp-lg)) — intention
   évidente vu le nom et le regroupement, une virgule traînante y avait
   accidentellement raccroché un commentaire + .c-salt en aval, sans
   rapport ; reproduit ici l'intention, pas cette anomalie. */
.t-italic  { font-style: italic; }
.feat-pad  { padding: var(--sp-lg); }
.skip-link {
  position: absolute; top: -100%; left: var(--sp-md);
  background: var(--c-gold); color: var(--c-dark);
  padding: var(--sp-sm) var(--sp-md);
  font-size: .85rem; font-weight: 600;
  border-radius: var(--radius-sm); z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-md); }
/* 21/08/2026 : .section/.section-tight portées depuis l'ancien main.css
   (jamais migrées ici — seule .section-alt, purement décorative, l'avait
   été). Sans elles, les 33 sections publiques qui les utilisent (landing,
   pages légales, contributor.php…) n'avaient plus aucun padding vertical :
   c'est la cause des marges/paddings manquants signalés sur les sections. */
.section       { padding-block: clamp(3rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-alt { background: var(--c-bg-alt); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
/* Décalage du contenu sous la navbar Bootstrap fixed-top (dont la
   hauteur réelle dépend du padding py-2 + de la taille du logo). */
/* 22/08/2026 : 3 des 4 variantes de navbar publique (auth/minimal/public
   — tout sauf game.php) n'avaient aucun fond du tout, donc transparentes.
   rgba(var(--bs-body-bg-rgb)) : déjà exposée par Bootstrap, jour/nuit —
   s'adapte au thème actif plutôt que de figer une couleur comme le fait
   volontairement le header jeu (style inline, mode toujours sombre/immersif,
   prioritaire sur cette règle et donc non affecté). */
/* 26/08/2026 : couleur pleine, identique à --c-bg (demande explicite) —
   remplace la teinte translucide sur --bs-body-bg. Le flou n'a plus lieu
   d'être sur un fond opaque, retiré. */
.navbar { background: var(--c-bg); }
.navbar-offset { padding-top: 4.25rem; }
@media (max-width: 991.98px) { .navbar-offset { padding-top: 3.75rem; } }
.min-vh-50 { min-height: 50vh; }

/* ═══════════════════════════════════════════════════════════
   4. BASCULE JOUR / NUIT
   Pas d'équivalent Bootstrap (data-bs-theme se pilote par script,
   Bootstrap ne fournit aucun widget visuel de bascule).
═══════════════════════════════════════════════════════════ */
.kk-logo { text-decoration: none; line-height: 1; display: inline-block; }
.kk-logo-name { font-family: var(--f-display); font-size: 1.5rem; font-weight: 300; letter-spacing: .04em; color: var(--bs-body-color); }
.kk-logo-name span { color: var(--c-gold); }
.kk-logo-tag  { font-family: var(--f-body); font-size: .48rem; letter-spacing: .28em; text-transform: uppercase; color: var(--c-muted); display: block; margin-top: .1rem; }

.kk-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: none; padding: .3rem .45rem;
  border-radius: 999px; cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent; transition: background .2s;
}
.kk-toggle:hover { background: rgba(212,184,150,.08); }
[data-theme="light"] .kk-toggle:hover { background: rgba(50,28,8,.06); }
.kk-toggle-lbl {
  font-size: .57rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-muted); user-select: none; pointer-events: none; transition: color .25s;
}
:root:not([data-theme="light"]) .kk-toggle .kk-toggle-lbl:first-child { color: var(--c-salt); }
[data-theme="light"] .kk-toggle .kk-toggle-lbl:last-child { color: var(--c-salt); }
.kk-toggle-track {
  width: 46px; height: 25px; background: var(--c-mid); border: 1.5px solid var(--c-border);
  border-radius: 999px; position: relative; flex-shrink: 0;
  transition: background .3s, border-color .3s; pointer-events: none;
}
.kk-toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--c-sand); box-shadow: 0 1px 4px rgba(0,0,0,.4);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .25s; pointer-events: none;
}
.kk-toggle[aria-checked="true"] .kk-toggle-track { background: var(--c-gold); border-color: var(--c-gold-h); }
.kk-toggle[aria-checked="true"] .kk-toggle-thumb { transform: translateX(21px); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }

/* ═══════════════════════════════════════════════════════════
   5. PARALLAX
═══════════════════════════════════════════════════════════ */
.parallax-section { position: relative; overflow: hidden; min-height: 60vh; }
.parallax-bg {
  position: absolute; inset: -20%;
  background-attachment: fixed; background-size: cover; background-position: center;
  z-index: 0; will-change: transform;
}
.parallax-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(7,20,32,.65) 0%,rgba(7,20,32,.88) 100%); z-index: 1; }
.overlay-nm  { background: linear-gradient(180deg,rgba(7,20,32,.45) 0%,rgba(7,20,32,.82) 80%,rgba(7,20,32,.96) 100%); }
.overlay-l   { background: linear-gradient(90deg,rgba(7,20,32,.82) 0%,rgba(7,20,32,.3) 60%,transparent 100%); }
.overlay-r   { background: linear-gradient(270deg,rgba(7,20,32,.82) 0%,rgba(7,20,32,.3) 60%,transparent 100%); }
.parallax-content {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-3xl) var(--sp-lg);
  color: var(--c-photo-text);
}
.parallax-content .t-muted { color: var(--c-photo-text-soft); }
.parallax-content .t-label { color: var(--c-photo-gold); }
.parallax-content .t-gold, .parallax-content .t-green { color: var(--c-photo-gold); }
.parallax-content .t-display, .parallax-content .t-sand { color: var(--c-photo-sand); }
.pc-left  { justify-content: flex-start; padding-left: var(--sp-3xl); }
.pc-right { justify-content: flex-end;   padding-right: var(--sp-3xl); }
.pc-left .pc-box  { max-width: 360px; }
.pc-right .pc-box { max-width: 360px; text-align: right; }
@media (max-width: 768px) {
  .parallax-bg { background-attachment: scroll; inset: 0; }
  .parallax-content { padding: var(--sp-2xl) var(--sp-lg); }
  .pc-left  { justify-content: center; padding-left: var(--sp-lg); text-align: center; }
  .pc-right { justify-content: center; padding-right: var(--sp-lg); text-align: center; }
  .pc-left .pc-box, .pc-right .pc-box { max-width: 100%; text-align: center; }
}

/* Thème "forêt" (accent vert) — Guémené-Penfao : une classe sur un
   ancêtre bascule automatiquement tous les utilitaires .t-* */
.theme-forest {
  --c-gold: #6ab06a; --c-sand: #6ab06a;
  --c-photo-gold: #6ab06a; --c-photo-sand: #a8d5a2;
  --c-photo-text-soft: rgba(200,230,200,.85);
}
[data-theme="light"] .theme-forest { --c-gold: #2d6b2d; --c-sand: #2d6b2d; }
.overlay-forest-hero  { background: linear-gradient(180deg,rgba(7,20,10,.55) 0%,rgba(7,20,10,.88) 80%,rgba(7,20,10,.97) 100%); }
.overlay-forest-l     { background: linear-gradient(90deg,rgba(7,20,10,.85) 0%,rgba(7,20,10,.3) 60%,transparent 100%); }
.overlay-forest-r     { background: linear-gradient(270deg,rgba(7,20,10,.85) 0%,rgba(7,20,10,.3) 60%,transparent 100%); }
.overlay-forest-l-dark{ background: linear-gradient(90deg,rgba(7,10,7,.85) 0%,rgba(7,10,7,.3) 60%,transparent 100%); }

/* Cartes de circuit (accueil) — image de fond propre à chaque parcours */
.pcard-img-nm     { background-image: linear-gradient(180deg,rgba(7,20,32,.5) 0%,transparent 45%), url('../img/noirmoutier-aerial.webp');       background-size: cover; background-position: center; background-color: #0d2238; }
.pcard-img-forest { background-image: linear-gradient(180deg,rgba(7,20,10,.5) 0%,transparent 45%), url('../img/guemene-penfao-hero.webp'); background-size: cover; background-position: center; background-color: #1a2d0d; }
.pcard-img-nantes { background-image: linear-gradient(180deg,rgba(7,10,14,.55) 0%,transparent 45%), url('../img/nantes-hero.webp');        background-size: cover; background-position: center; background-color: #1a1f26; }

/* ═══════════════════════════════════════════════════════════
   5b. CARTES DE PARCOURS (choose-game.php) — portées depuis
   l'ancien main.css le 21-22/08/2026, jamais migrées jusqu'ici :
   choose-game.php était donc rendu sans AUCUN style (pas de fond
   de carte, pas de padding d'en-tête/de corps, pas de dégradé).
   Seul .cc-icon (et tout élément sans couleur de texte propre) se
   retrouvait invisible : son fond (.circuit-card) est volontairement
   toujours sombre, comme .pcard-img-* ci-dessus, mais sans couleur
   de texte fixe assortie il héritait de --bs-body-color — sombre
   lui aussi en mode jour → texte/icônes sombres sur fond sombre.
   Fix : color: var(--c-photo-text), même jeton que les sections
   photo (fixe, ne suit pas le thème, prévu pour ce cas exact). */
.choose-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 120% 60% at 80% 0%,   rgba(196,146,58,.08) 0%, transparent 55%),
    radial-gradient(ellipse 80%  70% at 10% 100%,  rgba(45,90,61,.1)   0%, transparent 55%),
    linear-gradient(160deg, var(--c-bg) 0%, var(--c-bg-alt) 50%, var(--c-bg) 100%);
}
.choose-hero { padding: 3rem 2rem 1.5rem; text-align: center; }
.choose-greeting {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300; color: var(--c-salt);
  margin-bottom: .4rem;
}
.choose-greeting em { color: var(--c-sand); }
.choose-sub { font-size: .78rem; color: var(--c-muted); letter-spacing: .06em; }

.circuit-card {
  background: rgba(13,34,56,.75);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--c-photo-text);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  display: flex; flex-direction: column;
}
.circuit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196,146,58,.4);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.circuit-card.has-active { border-color: rgba(76,175,130,.3); }
.circuit-card.has-active:hover { border-color: rgba(76,175,130,.55); }
.circuit-card.soon { opacity: .6; }

.cc-header {
  height: 130px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.4rem;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--cc-c1, var(--c-mid)), var(--cc-c2, var(--c-ocean)));
}
.cc-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
  z-index: 1;
}
.cc-header-info { text-align: right; z-index: 1; }
.cc-region {
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: .25rem;
}
.cc-mode {
  font-size: .65rem; color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: .3rem; justify-content: flex-end;
}
.cc-badge-active {
  position: absolute; top: .75rem; left: 50%; transform: translateX(-50%);
  background: rgba(76,175,130,.25); border: 1px solid rgba(76,175,130,.5);
  border-radius: var(--radius-full); padding: .2rem .7rem;
  font-size: .55rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-green-l); white-space: nowrap;
}

.cc-body { padding: 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.cc-title {
  font-family: var(--f-display);
  font-size: 1.25rem; font-weight: 300; color: var(--c-salt);
  margin-bottom: .15rem;
}
.cc-subtitle { font-size: .7rem; color: var(--c-muted); margin-bottom: .9rem; }
.cc-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1rem; }

.cc-player-stats {
  background: rgba(240,235,227,.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  margin-bottom: 1rem;
}
.cc-stats-title {
  font-size: .53rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-muted); margin-bottom: .6rem;
}
.cc-stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .4rem; }
.cc-stat { text-align: center; }
.cc-stat-val {
  font-family: var(--f-display);
  font-size: 1.3rem; font-weight: 300; color: var(--c-gold); line-height: 1;
}
.cc-stat-lbl { font-size: .55rem; color: var(--c-muted); margin-top: .1rem; letter-spacing: .05em; }

.cc-progress-mt0 { margin-top: .7rem; margin-bottom: 0; }
.cc-progress-label {
  display: flex; justify-content: space-between;
  font-size: .6rem; color: var(--c-muted); margin-bottom: .3rem;
}
.cc-progress-bar { height: 4px; background: rgba(212,184,150,.1); border-radius: var(--radius-full); overflow: hidden; }
.cc-progress-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--c-green), var(--c-gold));
  transition: width .6s ease;
  width: var(--fill, 0%);
}
.cc-note-box {
  padding: .7rem; background: rgba(196,146,58,.06);
  border: 1px solid rgba(196,146,58,.15); border-radius: var(--radius-sm);
  margin-bottom: 1rem; font-size: .72rem; color: var(--c-muted); line-height: 1.5;
}
.cc-stage-hint { font-size: .6rem; opacity: .8; }

.cc-actions { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; }
.cc-btn-start {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem; border-radius: var(--radius-sm);
  font-family: var(--f-body); font-size: .7rem;
  font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none;
  transition: all var(--t-base);
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-h));
  color: var(--c-dark);
}
.cc-btn-start:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(196,146,58,.42); }
.cc-btn-start.green { background: linear-gradient(135deg, #2d7a3d, #1e5229); color: #e0f5e0; }
.cc-btn-start.green:hover { box-shadow: 0 10px 28px rgba(45,122,61,.42); }
.cc-btn-replay {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem; border-radius: var(--radius-sm);
  font-size: .62rem; letter-spacing: .15em; text-transform: uppercase;
  text-decoration: none; color: var(--c-sand);
  background: none; border: 1px solid var(--c-border);
  cursor: pointer; transition: all var(--t-base);
}
.cc-btn-replay:hover { border-color: var(--c-gold); color: var(--c-gold); }
.cc-btn-landing {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .45rem; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-muted); text-decoration: none; text-align: center;
  transition: color var(--t-fast);
}
.cc-btn-landing:hover { color: var(--c-sand); }

/* ═══════════════════════════════════════════════════════════
   6. ÉTAPES (listes de parcours) — numérotation, icône lieu
═══════════════════════════════════════════════════════════ */
.etape-list { display: flex; flex-direction: column; gap: 0; margin-top: var(--sp-xl); }
.etape-row {
  display: grid; grid-template-columns: 40px 52px 1fr;
  gap: var(--sp-md); align-items: flex-start; padding: var(--sp-lg) 0;
  position: relative; transition: background var(--t-base);
}
.etape-row:hover { background: rgba(212,184,150,.02); border-radius: var(--radius-md); }
.etape-divider   { border-bottom: 1px solid rgba(212,184,150,.07); }
.etape-num-wrap  { display: flex; align-items: flex-start; padding-top: .2rem; justify-content: center; }
.etape-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(196,146,58,.12); border: 1.5px solid rgba(196,146,58,.3);
  color: var(--c-gold); font-size: .72rem; font-weight: 600; font-family: var(--f-body); flex-shrink: 0;
}
.etape-icon-wrap {
  flex-shrink: 0; width: 48px; height: 48px;
  background: rgba(240,235,227,.04); border: 1px solid var(--c-border); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
}
.etape-content { flex: 1; min-width: 0; padding-top: .1rem; }
.etape-header  { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-sm); flex-wrap: wrap; margin-bottom: .45rem; }
.etape-h3 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 400; color: var(--c-salt); line-height: 1.3; margin: 0; }
.etape-badges { display: flex; gap: .3rem; flex-shrink: 0; align-items: center; flex-wrap: wrap; }
.etape-desc { font-size: .78rem; color: color-mix(in srgb, var(--c-sand) 65%, transparent); line-height: 1.6; max-width: 100%; margin-bottom: .35rem; }
.etape-location { font-size: .68rem; color: color-mix(in srgb, var(--c-sand) 38%, transparent); letter-spacing: .04em; max-width: 100%; }
@media (max-width: 640px) {
  .etape-number    { width: 24px; height: 24px; font-size: .65rem; }
  .etape-icon-wrap { width: 40px; height: 40px; font-size: 1.1rem; }
}
.theme-forest .etape-number { background: rgba(106,176,106,.12); border-color: rgba(106,176,106,.35); }

/* ═══════════════════════════════════════════════════════════
   7. JEU — GPS, ÉTOILES, PROGRESSION, ÉCRANS
═══════════════════════════════════════════════════════════ */
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .25rem; }
.stars-input input { display: none; }
.stars-input label { font-size: 2rem; cursor: pointer; color: color-mix(in srgb, var(--c-sand) 18%, transparent); transition: color var(--t-fast); -webkit-text-stroke: 1px rgba(212,184,150,.25); }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--c-gold); -webkit-text-stroke: none; }
.stars-display { display: inline-flex; gap: 2px; }
.star-on  { color: var(--c-gold); }
.star-off { color: color-mix(in srgb, var(--c-sand) 18%, transparent); }

.progress-track { height: 3px; background: rgba(212,184,150,.1); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill  { height: 100%; background: linear-gradient(90deg,var(--c-green),var(--c-gold)); border-radius: var(--radius-full); transition: width .6s ease; }

.game-app  { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.game-header {
  flex-shrink: 0; background: rgba(13,34,56,.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border); padding: .8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.game-brand { font-family: var(--f-display); font-size: 1rem; font-weight: 300; color: var(--c-sand); letter-spacing: .05em; white-space: nowrap; }
.timer-badge { background: rgba(196,146,58,.15); border: 1px solid rgba(196,146,58,.3); border-radius: 20px; padding: .2rem .6rem; color: var(--c-gold); font-size: .7rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.game-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.game-screen  { display: none; }
.game-screen.active { display: block; }

.nav-screen { padding: 1.5rem 1.2rem; }
.stage-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .6rem; letter-spacing: .25em; text-transform: uppercase; color: var(--c-gold); margin-bottom: .8rem; }
.stage-title { font-family: var(--f-display); font-size: clamp(1.6rem,6vw,2.2rem); font-weight: 300; line-height: 1.15; color: var(--c-salt); margin-bottom: .4rem; }
.stage-location { font-size: .7rem; letter-spacing: .15em; color: var(--c-sand); opacity: .7; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .3rem; }
.stage-photo { width: 100%; border-radius: var(--radius-md); margin-bottom: 1rem; max-height: 200px; object-fit: cover; border: 1px solid var(--c-border); }
.stage-description { font-family: var(--f-display); font-size: 1rem; font-style: italic; color: var(--c-sand); opacity: .85; line-height: 1.6; margin-bottom: 1.2rem; }
.map-card { background: rgba(240,235,227,.05); border: 1px solid var(--c-border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1.2rem; }
.map-info { padding: .8rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.distance-display { font-size: .65rem; letter-spacing: .1em; color: var(--c-sand); opacity: .7; }
.distance-value   { font-size: 1.2rem; font-weight: 600; color: var(--c-gold); }
.location-status  { text-align: center; padding: .8rem; font-size: .7rem; color: var(--c-sand); opacity: .7; letter-spacing: .05em; }
.location-status.locating  { color: var(--c-gold); opacity: 1; animation: kk-pulse 1.5s ease infinite; }
.location-status.in-range  { color: var(--c-green-l); opacity: 1; }
.location-status.out-range { color: var(--c-coral); opacity: 1; }
.cultural-box   { background: rgba(45,90,61,.12); border: 1px solid rgba(45,90,61,.25); border-radius: var(--radius-md); padding: 1rem; margin-top: 1rem; }
.cultural-label { font-size: .55rem; letter-spacing: .25em; text-transform: uppercase; color: var(--c-green-l); margin-bottom: .5rem; }
.cultural-text  { font-family: var(--f-display); font-size: .95rem; color: var(--c-sand); opacity: .85; line-height: 1.6; }

.btn-nav {
  width: 100%; background: linear-gradient(135deg,var(--c-green),#1e4228);
  border: 1px solid rgba(45,90,61,.5); border-radius: var(--radius-sm); padding: 1rem;
  color: var(--c-salt); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  cursor: pointer; transition: all var(--t-base); display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: .8rem;
}
.btn-nav:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-arrived {
  width: 100%; background: linear-gradient(135deg,var(--c-gold),var(--c-gold-h));
  border: none; border-radius: var(--radius-sm); padding: 1rem;
  color: #0d1f30; font-size: .7rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase;
  cursor: pointer; transition: all var(--t-base); display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-arrived:disabled { opacity: .4; cursor: not-allowed; }
.btn-arrived-failed { background: linear-gradient(135deg,#c4573a,#8a3a20); }

.question-screen { padding: 1.5rem 1.2rem; }
.q-stage-label { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c-gold); margin-bottom: .5rem; }
.q-title       { font-family: var(--f-display); font-size: clamp(1.3rem,5vw,1.8rem); font-weight: 300; color: var(--c-salt); }
.question-card { background: rgba(240,235,227,.05); border: 1px solid rgba(212,184,150,.2); border-radius: var(--radius-md); padding: 1.5rem 1.2rem; margin-bottom: 1.2rem; position: relative; overflow: hidden; }
.question-text { font-family: var(--f-display); font-size: clamp(1rem,3.5vw,1.2rem); font-style: italic; font-weight: 400; color: var(--c-salt); line-height: 1.7; }
.diff-facile    { background: rgba(45,90,61,.25); color: var(--c-green-l); border: 1px solid rgba(45,90,61,.4); border-radius: var(--radius-full); display: inline-block; padding: .2rem .6rem; font-size: .6rem; margin-top: .8rem; }
.diff-moyen     { background: rgba(196,146,58,.15); color: var(--c-gold); border: 1px solid rgba(196,146,58,.3); border-radius: var(--radius-full); display: inline-block; padding: .2rem .6rem; font-size: .6rem; margin-top: .8rem; }
.diff-difficile { background: rgba(196,87,58,.15); color: #e0896e; border: 1px solid rgba(196,87,58,.3); border-radius: var(--radius-full); display: inline-block; padding: .2rem .6rem; font-size: .6rem; margin-top: .8rem; }
.errors-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; font-size: .7rem; color: var(--c-sand); opacity: .7; }
.error-dot  { width: 10px; height: 10px; border-radius: 50%; background: rgba(212,184,150,.2); border: 1px solid rgba(212,184,150,.3); transition: all var(--t-base); }
.error-dot.used { background: var(--c-coral); border-color: var(--c-coral); }
.answer-textarea {
  width: 100%; background: rgba(240,235,227,.06); border: 1px solid rgba(212,184,150,.25);
  border-radius: var(--radius-sm); color: var(--c-salt);
  font-family: var(--f-display); font-size: 1.1rem; padding: 1rem;
  resize: none; min-height: 90px; outline: none; transition: all var(--t-base); -webkit-appearance: none;
}
.answer-textarea:focus { border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(196,146,58,.1); }
.hint-btn { background: none; border: none; color: color-mix(in srgb, var(--c-sand) 50%, transparent); font-size: .65rem; letter-spacing: .1em; cursor: pointer; padding: .3rem 0; text-decoration: underline; text-underline-offset: 2px; transition: color var(--t-base); }
.hint-btn:hover { color: var(--c-sand); }
.hint-box { background: rgba(196,146,58,.1); border: 1px solid rgba(196,146,58,.2); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .8rem; color: var(--c-sand); opacity: .85; margin-top: .5rem; display: none; font-style: italic; }
.feedback-box { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .85rem; display: none; }
.feedback-box.show { display: block; animation: kk-slide-in .3s ease; }
.feedback-wrong   { background: rgba(196,87,58,.2); border: 1px solid rgba(196,87,58,.4); color: #e0896e; }
.feedback-correct { background: rgba(45,90,61,.25); border: 1px solid rgba(45,90,61,.5); color: var(--c-green-l); }
.btn-submit {
  width: 100%; background: linear-gradient(135deg,var(--c-ocean),#1e4a6e);
  border: 1px solid rgba(212,184,150,.2); border-radius: var(--radius-sm); padding: .9rem;
  color: var(--c-salt); font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; cursor: pointer; transition: all var(--t-base); margin-bottom: .6rem;
}
.btn-submit:hover { border-color: var(--c-gold); }
.btn-check {
  width: 100%; background: linear-gradient(135deg,var(--c-gold),var(--c-gold-h));
  border: none; border-radius: var(--radius-sm); padding: 1rem;
  color: #0d1f30; font-size: .75rem; font-weight: 600; letter-spacing: .25em; text-transform: uppercase;
  cursor: pointer; transition: all var(--t-base); display: none; align-items: center; justify-content: center; gap: .5rem;
}
.btn-check:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(196,146,58,.4); }
.game-modal-icon { font-size: 3rem; margin-bottom: .8rem; text-align: center; }
.game-finish     { font-size: 2rem; margin-bottom: .5rem; }
.game-failed-banner { background: rgba(196,87,58,.12); border: 1px solid rgba(196,87,58,.3); border-radius: var(--radius-sm); padding: .6rem .9rem; margin-bottom: .8rem; font-size: .82rem; line-height: 1.5; }
.game-failed-title  { display: block; margin-bottom: .3rem; color: var(--c-coral); font-weight: 600; }
.game-cultural-icon { font-size: 2.5rem; }

/* Carte OSM / Leaflet */
.prox-map-outer { margin: var(--sp-md) 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--c-border); }
#map-container  { height: 260px; width: 100%; background: var(--c-mid); }
@media (max-width: 768px) { #map-container { height: 220px; } }
.leaflet-container              { font-family: var(--f-body) !important; background: var(--c-mid) !important; }
.leaflet-popup-content-wrapper  { background: var(--c-mid) !important; color: var(--c-salt) !important; border: 1px solid var(--c-border) !important; border-radius: var(--radius-md) !important; }
.leaflet-popup-tip              { background: var(--c-mid) !important; }
.leaflet-control-zoom a         { background: var(--c-mid) !important; color: var(--c-salt) !important; border-color: var(--c-border) !important; }
.leaflet-control-attribution    { background: rgba(7,20,32,.7) !important; color: rgba(212,184,150,.5) !important; font-size: 9px !important; }
[data-theme="light"] .leaflet-popup-content-wrapper { background: #fff !important; color: #1a1208 !important; }
.prox-gate      { margin: var(--sp-md) 0; padding: var(--sp-lg) var(--sp-md); background: rgba(196,146,58,.07); border: 1px dashed rgba(196,146,58,.4); border-radius: var(--radius-md); text-align: center; }
.prox-gate-msg  { color: var(--c-sand); font-size: .88rem; line-height: 1.65; max-width: 290px; margin: 0 auto; }
.prox-gate-dist { font-family: var(--f-display); font-size: 1.4rem; color: var(--c-gold); font-style: italic; display: block; margin-top: .3rem; }

@media (max-width: 768px) {
  html { font-size: 17px; }
  .stage-title { font-size: 1.45rem; }
  .location-status { font-size: 1rem; padding: .85rem 1rem; }
  .distance-value  { font-size: 1.5rem; }
  .btn-arrived, .btn-nav { font-size: 1rem; padding: 1.1rem 1.5rem; min-height: 54px; }
  .question-text   { font-size: 1.05rem; }
  .answer-textarea { font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   8. PWA / INSTALL / PARTAGE
═══════════════════════════════════════════════════════════ */
.install-banner {
  position: fixed; bottom: var(--sp-md); left: var(--sp-md); right: var(--sp-md);
  background: var(--c-mid); border: 1px solid var(--c-border);
  border-radius: var(--radius-md); padding: var(--sp-md) var(--sp-lg);
  display: flex; align-items: center; gap: var(--sp-md);
  box-shadow: var(--shadow-lg); z-index: 500;
  transform: translateY(120%); transition: transform var(--t-slow);
}
.install-banner.visible { transform: translateY(0); }
.install-banner-icon { font-size: 2rem; flex-shrink: 0; }
.install-banner-text { flex: 1; }
.install-banner-text strong { display: block; font-size: .85rem; color: var(--c-salt); margin-bottom: .2rem; }
.install-banner-text small  { font-size: .7rem; color: var(--c-muted); }

.share-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: var(--radius-full);
  font-size: .65rem; font-weight: 600; letter-spacing: .1em;
  text-decoration: none; border: none; cursor: pointer;
  transition: filter var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.share-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.share-fb   { background: #1877f2; color: #fff; }
.share-tw   { background: #000;    color: #fff; }
.share-wa   { background: #25d366; color: #fff; }
.share-li   { background: #0077b5; color: #fff; }
.share-copy { background: rgba(212,184,150,.12); color: var(--c-sand); border: 1px solid var(--c-border); }

/* ═══════════════════════════════════════════════════════════
   9. DIVIDERS & REVEAL
═══════════════════════════════════════════════════════════ */
.divider-gold { width: 52px; height: 1px; background: linear-gradient(90deg,var(--c-gold),transparent); margin-block: var(--sp-md); }
.divider-center { margin-inline: auto; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; } .reveal-d4 { transition-delay: .4s; }

@keyframes kk-pulse    { 0%,100%{opacity:.6;} 50%{opacity:1;} }
@keyframes kk-bounce   { from{transform:translateY(0);} to{transform:translateY(-8px);} }
@keyframes kk-slide-in { from{opacity:0;transform:translateY(-8px);} to{opacity:1;transform:translateY(0);} }

/* ═══════════════════════════════════════════════════════════
   10. FOOTER — flourish de marque (la grille est du Bootstrap
   .row/.col dans partials/footer.php)
═══════════════════════════════════════════════════════════ */
.site-footer { border-top: 1px solid var(--c-border); background: rgba(7,20,32,.85); }
.footer-logo    { font-family: var(--f-display); font-size: 1.4rem; font-weight: 300; color: var(--c-salt); margin-bottom: .3rem; }
.footer-logo span { color: var(--c-gold); }
.footer-tagline { font-size: .62rem; color: var(--c-muted); line-height: 1.6; margin-bottom: var(--sp-md); }
.footer-credit  { font-size: .58rem; color: color-mix(in srgb, var(--c-sand) 28%, transparent); line-height: 1.8; font-style: normal; }
.footer-credit a { color: rgba(196,146,58,.45); text-decoration: none; transition: color var(--t-fast); }
.footer-credit a:hover { color: var(--c-gold); }
.footer-col-title { font-size: .53rem; letter-spacing: .26em; text-transform: uppercase; color: var(--c-gold); margin-bottom: var(--sp-md); opacity: .85; }
.footer-link { display: block; font-size: .68rem; color: var(--c-muted); text-decoration: none; margin-bottom: .48rem; transition: color var(--t-fast); }
.footer-link:hover { color: var(--c-sand); }
.footer-bar   { border-top: 1px solid var(--c-border); padding-top: var(--sp-md); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-sm); }
.footer-copy  { font-size: .56rem; color: color-mix(in srgb, var(--c-sand) 22%, transparent); }
.footer-legal { display: flex; gap: var(--sp-md); }
.footer-legal a { font-size: .56rem; color: color-mix(in srgb, var(--c-sand) 22%, transparent); text-decoration: none; }
.footer-legal a:hover { color: var(--c-muted); }
.footer-minimal { text-align: center; padding: var(--sp-lg); border-top: 1px solid var(--c-border); }
.footer-minimal .footer-legal { justify-content: center; margin-top: .4rem; }

/* ═══════════════════════════════════════════════════════════
   11. FONDS DÉCORATIFS — auth / onboarding
   (le .card qui repose dessus est un vrai .card Bootstrap)
═══════════════════════════════════════════════════════════ */
.auth-bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 100% 70% at 70% 110%,rgba(45,90,61,.2) 0%,transparent 60%),
    radial-gradient(ellipse 80% 50% at 20% -10%,rgba(196,146,58,.1) 0%,transparent 55%),
    linear-gradient(170deg,#071420 0%,#0d2238 35%,#1a3a5c 65%,#0f2d47 100%);
}
[data-theme="light"] .auth-bg {
  background:
    radial-gradient(ellipse 100% 70% at 70% 110%,rgba(122,78,12,.10) 0%,transparent 60%),
    radial-gradient(ellipse 80% 50% at 20% -10%,rgba(45,90,61,.08) 0%,transparent 55%),
    linear-gradient(170deg,#f0ebe3 0%,#e8e1d6 35%,#dcd3c4 65%,#e4ddd3 100%);
}
.auth-stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%,rgba(212,184,150,.5) 0%,transparent 100%),
    radial-gradient(1px 1px at 75% 15%,rgba(212,184,150,.35) 0%,transparent 100%),
    radial-gradient(2px 2px at 45% 55%,rgba(196,146,58,.3) 0%,transparent 100%),
    radial-gradient(1px 1px at 5% 50%,rgba(196,146,58,.4) 0%,transparent 100%);
}
[data-theme="light"] .auth-stars { display: none; }
.auth-logo  { font-family: var(--f-display); font-size: 2rem; font-weight: 300; color: var(--c-salt); text-decoration: none; display: inline-block; }
.auth-logo span { color: var(--c-gold); }
.auth-wave  { display: block; width: 50px; height: 1px; background: linear-gradient(90deg,transparent,var(--c-gold),transparent); margin: .7rem auto 0; }

.ob-bg { position: fixed; inset: 0; z-index: 0; background: radial-gradient(ellipse 100% 70% at 70% 110%,rgba(45,90,61,.2) 0%,transparent 60%),linear-gradient(170deg,#071420 0%,#0d2238 40%,#1a3a5c 100%); }
[data-theme="light"] .ob-bg { background: radial-gradient(ellipse 100% 70% at 70% 110%,rgba(45,90,61,.08) 0%,transparent 60%),linear-gradient(170deg,#f0ebe3 0%,#e8e1d6 40%,#dcd3c4 100%); }
.ob-logo { font-family: var(--f-display); font-size: 1.7rem; font-weight: 300; color: var(--c-salt); text-decoration: none; }
.ob-logo span { color: var(--c-gold); }
.ob-step-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; }
.ob-step-dot.done     { background: rgba(76,175,130,.2); border: 1px solid rgba(76,175,130,.5); color: var(--c-green-l); }
.ob-step-dot.current  { background: rgba(196,146,58,.2); border: 1px solid var(--c-gold); color: var(--c-gold); }
.ob-step-dot.upcoming { background: rgba(240,235,227,.05); border: 1px solid var(--c-border); color: var(--c-muted); }
.ob-step-lbl { font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.ob-step-lbl.current { color: var(--c-sand); }
.ob-connector { width: 20px; height: 1px; background: var(--c-border); }
.ob-steps { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 1.5rem .6rem; border-bottom: 1px solid var(--c-border); }
.ob-skip  { display: block; text-align: center; margin-top: .8rem; font-size: .62rem; color: var(--c-muted); text-decoration: none; border-bottom: 1px solid rgba(212,184,150,.2); width: fit-content; margin-inline: auto; transition: color var(--t-base); }
.ob-skip:hover { color: var(--c-sand); }
/* .ob-greeting/.ob-sub : cas différent des autres — jamais définies nulle
   part (ni ici ni dans l'ancien main.css), pas seulement orphelines. Alignées
   sur .choose-greeting/.choose-sub (même rôle : titre + sous-titre de hero). */
.ob-greeting { font-family: var(--f-display); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 300; color: var(--c-salt); margin-bottom: .3rem; }
.ob-sub { font-size: .78rem; color: var(--c-muted); letter-spacing: .06em; }
.mode-card { border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: .8rem .5rem; text-align: center; cursor: pointer; transition: all var(--t-base); background: rgba(240,235,227,.03); }
.mode-card:hover    { border-color: rgba(196,146,58,.4); }
.mode-card.selected { border-color: var(--c-gold); background: rgba(196,146,58,.1); }
.mode-icon  { font-size: 1.4rem; margin-bottom: .3rem; }
.mode-lbl   { font-size: .67rem; color: var(--c-muted); }
.mode-card.selected .mode-lbl { color: var(--c-gold); }

.pwd-strength-bar  { height: 3px; background: rgba(212,184,150,.1); border-radius: var(--radius-full); margin-top: .4rem; overflow: hidden; }
.pwd-strength-fill { height: 100%; border-radius: var(--radius-full); transition: all var(--t-base); }
.pwd-strength-text { font-size: .58rem; margin-top: .2rem; }

/* ═══════════════════════════════════════════════════════════
   12. FIN DE PARCOURS (review.php) & CONTRIBUTION
═══════════════════════════════════════════════════════════ */
.confetti-icon { font-size: 3.5rem; animation: kk-bounce .8s ease infinite alternate; }
.finish-title  { font-family: var(--f-display); font-size: clamp(2rem,6vw,3rem); font-weight: 300; color: var(--c-gold); margin: .5rem 0 .3rem; }
.finish-sub    { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--c-muted); }
.stat-val-r    { font-family: var(--f-display); font-size: 1.8rem; font-weight: 300; color: var(--c-gold); line-height: 1; }
.stat-lbl-r    { font-size: .55rem; letter-spacing: .15em; text-transform: uppercase; color: var(--c-muted); margin-top: .3rem; }
.review-quote  { font-family: var(--f-display); font-style: italic; font-size: .97rem; color: color-mix(in srgb, var(--c-sand) 82%, transparent); line-height: 1.65; margin: var(--sp-sm) 0 var(--sp-md); }

.avatar { width: 64px; height: 64px; border-radius: 50%; background: rgba(196,146,58,.15); border: 2px solid var(--c-border); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.type-option { display: none; }
.type-label  { display: block; padding: .7rem 1rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm); cursor: pointer; text-align: center; transition: all var(--t-base); font-size: .7rem; letter-spacing: .08em; }
.type-label:hover { border-color: rgba(196,146,58,.4); }
.type-option:checked + .type-label { border-color: var(--c-gold); background: rgba(196,146,58,.1); color: var(--c-gold); }
.type-icon { display: block; font-size: 1.5rem; margin-bottom: .3rem; }

/* ═══════════════════════════════════════════════════════════
   13. PAGE D'ACCUEIL — échelle typographique du hero, cartes de
   parcours/étapes/atouts, bloc suggestion. Layout (grille, largeurs
   max, colonnes) confié à Bootstrap dans le HTML ; ici uniquement le
   traitement visuel propre à la marque, sans équivalent générique.
═══════════════════════════════════════════════════════════ */
.card-link { position: relative; text-decoration: none; color: inherit; display: block; transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base); }
.card-link:hover, .card-link:focus-visible { transform: translateY(-4px); border-color: rgba(196,146,58,.38); box-shadow: var(--shadow-md); }
.card-link:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }

.hero-h1-xl  { font-size: clamp(2.5rem,8vw,5.5rem); font-weight: 300; color: var(--c-photo-text); line-height: 1.05; margin-bottom: .8rem; }
.hero-sub-xl { font-size: clamp(1rem,2.5vw,1.4rem);  margin-bottom: 2.5rem; margin-inline: auto; max-width: 520px; line-height: 1.65; }
.hero-cta-h  { font-size: clamp(2rem,5vw,3.4rem);    font-weight: 300; color: var(--c-photo-text); margin-bottom: .5rem; }
.hero-stat-v { font-size: 2rem; font-weight: 300; }
.hero-stat-l { font-size: .55rem; }
.cta-sub-text{ margin-bottom: 2rem; font-size: 1.1rem; }
@media (max-width: 640px) {
  .hero-stat-mb { flex-direction: column; align-items: center; }
  .hero-stat-mb .btn { width: 100%; max-width: 280px; }
}

.sec-lead-1 { font-size: 1.05rem; line-height: 1.7; }
.sec-lead-2 { font-size: 1.1rem;  line-height: 1.7; }

.pcard-img       { height: 145px; display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; background-color: var(--card-bg, transparent); }
.pcard-body      { padding: var(--sp-md); }
.pcard-name      { font-size: 1.2rem; margin-bottom: .3rem; }
.pcard-desc      { font-size: .72rem; line-height: 1.5; margin-bottom: .85rem; }
.pcard-foot      { border-top: 1px solid var(--c-border); padding-top: .7rem; }
.pcard-stages    { font-size: .6rem; }
.pcard-soon      { opacity: .62; }
.pcard-badge-pos { position: absolute; top: .7rem; right: .7rem; }

.feat-icon  { font-size: 1.4rem; margin-bottom: .6rem; }
.feat-title { font-size: .98rem; margin-bottom: .28rem; }
.feat-desc  { font-size: .71rem; line-height: 1.55; }

.step-body   { padding: var(--sp-lg); position: relative; overflow: hidden; }
.step-num-bg { font-size: 3.5rem; font-weight: 300; color: rgba(196,146,58,.1); position: absolute; top: .3rem; right: .9rem; line-height: 1; }
.step-icon   { font-size: 1.6rem; margin-bottom: .7rem; }
.step-title  { font-size: 1.05rem; margin-bottom: .35rem; }
.step-desc   { font-size: .74rem; line-height: 1.55; }

.review-footer { font-size: .6rem; }

.suggest-pill   { display: inline-flex; align-items: center; gap: .35rem; background: rgba(45,90,61,.15); border: 1px solid rgba(45,90,61,.3); border-radius: var(--radius-full); padding: .28rem .72rem; margin: .18rem; font-size: .66rem; color: color-mix(in srgb, var(--c-sand) 65%, transparent); }
.suggest-pill-v { font-size: .58rem; }
.suggest-box    { padding: var(--sp-md); background: rgba(196,146,58,.07); border: 1px solid rgba(196,146,58,.2); border-radius: var(--radius-md); }
.suggest-link   { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(196,146,58,.3); }
.share-label-sm { font-size: .58rem; color: color-mix(in srgb, var(--c-sand) 40%, transparent); margin-bottom: .7rem; }
.gal-label      { margin-bottom: .6rem; }

/* ═══════════════════════════════════════════════════════════
   13b. PAGES LÉGALES (cgu.php, rgpd.php) — portées depuis
   main.css le 22/08/2026, jamais migrées jusqu'ici. Contrairement
   à .circuit-card, déjà theme-safe telles quelles : chaque couleur
   de texte est explicite via un jeton --c-*, rien n'est laissé à
   hériter d'une couleur ambiante — pas de risque d'invisibilité
   en mode jour ici, portage à l'identique. */
.legal-page { padding: var(--sp-3xl) 0 var(--sp-3xl); }

.legal-header { margin-bottom: var(--sp-2xl); }
.legal-header h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: var(--sp-sm); }
.legal-date  { font-size: .7rem; color: var(--c-muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--sp-md); }
.legal-intro { font-size: 1rem; line-height: 1.7; color: var(--c-sand); max-width: 600px; }

.legal-toc {
  background: rgba(212,184,150,.06);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-gold);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-lg);
  margin-bottom: var(--sp-2xl);
}
.legal-toc-title {
  font-size: .65rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--c-gold); margin-bottom: .5rem;
}
.legal-toc-list { margin: 0; padding-left: 1.2rem; }
.legal-toc-list li { margin-bottom: .3rem; }
.legal-toc-list a  { font-size: .88rem; color: var(--c-muted); text-decoration: none; transition: color .2s; }
.legal-toc-list a:hover { color: var(--c-gold); }

.legal-section { margin-bottom: var(--sp-2xl); padding-bottom: var(--sp-2xl); border-bottom: 1px solid var(--c-border); }
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 { font-size: 1.4rem; color: var(--c-salt); margin-bottom: var(--sp-md); padding-bottom: .5rem; border-bottom: 1px solid rgba(196,146,58,.25); }
.legal-section h3 { font-size: 1rem; color: var(--c-sand); font-weight: 600; margin: var(--sp-md) 0 var(--sp-sm); letter-spacing: .04em; }
.legal-section p  { color: var(--c-sand); line-height: 1.7; margin-bottom: var(--sp-sm); }
.legal-section a  { color: var(--c-gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-section a:hover { color: var(--c-gold-h); }

.legal-list { color: var(--c-sand); line-height: 1.7; padding-left: 1.4rem; margin-bottom: var(--sp-sm); }
.legal-list li { margin-bottom: .35rem; }

.legal-card {
  background: rgba(212,184,150,.05);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-lg);
  margin: var(--sp-md) 0;
}
.legal-card p { margin: 0; color: var(--c-sand); line-height: 1.7; }
.legal-card strong { color: var(--c-salt); }

.legal-alert {
  background: rgba(196,146,58,.08);
  border: 1px solid rgba(196,146,58,.3);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-lg);
  margin: var(--sp-md) 0;
  color: var(--c-sand);
  line-height: 1.65;
  font-size: .92rem;
}
.legal-alert strong { color: var(--c-gold); }
.legal-alert a { color: var(--c-gold); }
.legal-alert--warning { background: rgba(196,87,58,.08); border-color: rgba(196,87,58,.3); }
.legal-alert--warning strong { color: var(--c-coral); }

.legal-table-wrap { overflow-x: auto; margin: var(--sp-md) 0; border-radius: var(--radius-md); border: 1px solid var(--c-border); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.legal-table th { background: rgba(212,184,150,.08); color: var(--c-sand); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .65rem 1rem; text-align: left; border-bottom: 1px solid var(--c-border); }
.legal-table td { padding: .65rem 1rem; color: var(--c-sand); border-bottom: 1px solid rgba(212,184,150,.08); vertical-align: top; line-height: 1.5; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table a { color: var(--c-gold); }

.legal-rights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-md); margin: var(--sp-md) 0; }
.legal-right-card { background: rgba(212,184,150,.05); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-md); }
.legal-right-card strong { display: block; color: var(--c-salt); margin-bottom: .35rem; font-size: .92rem; }
.legal-right-card p { margin: 0; color: var(--c-muted); font-size: .85rem; line-height: 1.55; }

.legal-footer-nav { display: flex; gap: var(--sp-md); flex-wrap: wrap; margin-top: var(--sp-2xl); padding-top: var(--sp-xl); border-top: 1px solid var(--c-border); }
/* Surcharges mode jour, retrouvées un peu plus loin dans l'ancien main.css
   (bloc distinct, manquées au premier portage). .page-legal body (fond
   .legal-page toujours forcé en --c-dark dans l'original) volontairement
   PAS porté : Bootstrap gère déjà --bs-body-bg de façon adaptative comme
   partout ailleurs sur le site migré ; forcer un fond figé ici recréerait
   l'incohérence jour/nuit que le reste de cette session corrige. */
[data-theme="light"] .legal-toc { background: rgba(50,28,8,.04); border-color: rgba(50,28,8,.15); }
[data-theme="light"] .legal-card { background: rgba(50,28,8,.04); border-color: rgba(50,28,8,.12); }
[data-theme="light"] .legal-alert { background: rgba(122,78,12,.07); border-color: rgba(122,78,12,.25); }
[data-theme="light"] .legal-table th { background: rgba(50,28,8,.06); }
[data-theme="light"] .legal-table td { border-color: rgba(50,28,8,.06); }
[data-theme="light"] .legal-right-card { background: rgba(50,28,8,.04); border-color: rgba(50,28,8,.12); }
[data-theme="light"] .legal-section h2 { border-color: rgba(122,78,12,.2); }
.footer-legal-link { font-size: .72rem; color: var(--c-muted); text-decoration: none; transition: color .2s; }
.footer-legal-link:hover { color: var(--c-gold); }

/* ═══════════════════════════════════════════════════════════
   13c. CONTRIBUTOR / REVIEW / MON-COMPTE — portées depuis
   main.css le 22/08/2026, jamais migrées jusqu'ici. Déjà theme-
   safe (couleurs explicites via jetons --c-*), portage à l'identique. */
.contrib-h1 { font-family: var(--f-display); font-size: clamp(1.6rem,4vw,2.2rem); font-weight: 300; color: var(--c-salt); }
.contrib-lead { font-family: var(--f-display); font-size: 1rem; font-style: italic; color: var(--c-muted); margin-top: .4rem; }
.contrib-empty { text-align: center; padding: 3rem; color: var(--c-muted); font-family: var(--f-display); font-size: 1.1rem; font-style: italic; }
.contrib-note2 { background: rgba(196,146,58,.05); border: 1px solid rgba(196,146,58,.15); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1rem; }
.contrib-status { font-size: .8rem; }
.contrib-admin-note { font-size: .78rem; color: var(--c-muted); line-height: 1.5; }
.proposal-card { background: rgba(240,235,227,.03); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: .8rem; }
.proposal-note { background: rgba(196,146,58,.08); border: 1px solid rgba(196,146,58,.2); border-radius: var(--radius-sm); padding: .5rem .8rem; font-size: .75rem; color: var(--c-sand); margin-top: .6rem; }

.review-item { padding: var(--sp-md) 0; border-bottom: 1px solid var(--c-border); }
.review-item:last-child { border-bottom: none; }
.review-text { font-size: .85rem; color: var(--c-sand); line-height: 1.6; margin-top: .3rem; }
.review-author  { font-size: .6rem; letter-spacing: .08em; color: var(--c-muted); }
.review-date    { font-size: .56rem; color: color-mix(in srgb, var(--c-sand) 28%, transparent); margin-left: .4rem; }
.stat-compare { font-size: .6rem; color: var(--c-green-l); margin-top: .2rem; }

/* ═══════════════════════════════════════════════════════════
   13d. CARTE — pin de circuit, popup tarif (noirmoutier.php) */
.kk-stage-pin { width: 28px; height: 28px; background: var(--c-gold); border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--c-dark); box-shadow: 0 2px 6px rgba(0,0,0,.45); cursor: pointer; transition: transform .15s; }
.kk-stage-pin:hover { transform: scale(1.15); }
.map-popup-tarif { color: var(--c-gold); }
.pcard-meta      { margin-bottom: .55rem; }
.suggest-box-t   { margin-bottom: .35rem; }
.suggest-box-p   { font-size: .73rem; line-height: 1.5; max-width: 100%; margin-bottom: .55rem; }

/* ═══════════════════════════════════════════════════════════
   13e. JEU (game.php) — portée depuis main.css le 22/08/2026,
   jamais migrée : c'est l'architecture même de l'écran de jeu
   (3 écrans plein cadre sans scroll, .screen/.active géré en CSS
   pure display:none/flex). Sans elle .app/.content/.screen ne
   sont pas stylées : les 3 écrans (nav/arrivée/question) se
   superposaient probablement tous, sans le mécanisme d'affichage
   exclusif — le bug le plus sérieux trouvé dans cette session.
   .finish-screen : l'original définissait .screen-finish (ordre
   inversé), qui ne correspond à aucune classe réellement posée
   dans le HTML (class="... finish-screen") — jamais fonctionnel
   même avant le retrait de main.css. Reproduit sous le bon nom.
   .snav-title et .sarrived-title : ajouté une surcharge
   [data-theme="light"] absente de l'original — sans elle, leur
   couleur crème fixe (var(--c-salt)) restait identique à celle du
   fond une fois celui-ci basculé en crème par sa PROPRE surcharge
   jour, donc invisible (même bug que .cc-icon, cette fois présent
   dans le code source d'origine et pas seulement causé par le
   retrait de main.css). */
.page-game .app {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.page-game .progress-track,
.page-game .progress-dots { flex-shrink: 0; }
.page-game .content {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.page-game .screen {
  position: absolute; inset: 0;
  display: none; flex-direction: column; overflow: hidden;
}
.page-game .screen.active { display: flex; }
@keyframes kk-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.page-game .screen-slide-in { animation: kk-slide-in .28s cubic-bezier(.4,0,.2,1) both; }

/* ── Écran navigation ── */
.screen-nav {
  background: var(--c-bg);
  display: flex; flex-direction: column;
}
.snav-head { flex-shrink: 0; padding: 1rem 1.2rem .5rem; }
.snav-title { font-family: var(--f-display); font-size: 1.1rem; font-weight: 300; color: var(--c-salt); margin-bottom: .3rem; }
.snav-map { flex: 1; position: relative; min-height: 0; }
.snav-distance { position: absolute; top: 1rem; right: 1rem; z-index: 400; background: rgba(13,34,56,.92); backdrop-filter: blur(8px); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: .6rem .9rem; text-align: center; }
.snav-dist-val { font-family: var(--f-display); font-size: 1.3rem; color: var(--c-gold); line-height: 1; }
.snav-dist-lbl { font-size: .55rem; color: var(--c-muted); letter-spacing: .08em; text-transform: uppercase; margin-top: .1rem; }
.snav-controls { flex-shrink: 0; padding: .8rem 1.2rem 1.2rem; }
.snav-manual { text-align: center; margin-top: .6rem; }
.snav-manual a { font-size: .68rem; color: var(--c-muted); text-decoration: underline; text-underline-offset: 2px; }
.snav-btns { display: flex; gap: .6rem; margin-top: .6rem; }
/* Mode paysage (téléphone couché) : l'architecture flex de .screen-nav ne
   casse pas sans ça (.snav-map se contente de l'espace restant, min-height:0
   déjà posé) — mais sur une hauteur d'écran réduite (~360-400px en paysage),
   l'en-tête + les contrôles prennent une part disproportionnée de la place,
   au détriment de la carte. Resserré ici plutôt que redessiné. */
@media (orientation: landscape) and (max-height: 500px) {
  .snav-head { padding: .5rem 1rem .3rem; }
  .snav-title { font-size: .92rem; margin-bottom: .1rem; }
  .snav-controls { padding: .4rem 1rem .6rem; }
  .snav-manual { margin-top: .3rem; }
}
[data-theme="light"] .snav-title { color: var(--bs-body-color); }
[data-theme="light"] .snav-distance { background: rgba(240,235,227,.92); }

.journal-hint { font-size: .78rem; margin-bottom: .8rem; }
.journal-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.journal-list li { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--c-border); }
.journal-list li:last-child { border-bottom: none; }
.journal-letter {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  background: rgba(196,146,58,.15); border: 1px solid rgba(196,146,58,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: .9rem; color: var(--c-gold);
}

/* ── Écran arrivée ── */
.screen-arrived { background: var(--c-bg); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sarrived-inner { padding: 1.2rem 1.2rem 1.8rem; }
.sarrived-photo { width: 100%; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1rem; aspect-ratio: 16/9; }
.sarrived-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sarrived-video { width: 100%; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1rem; aspect-ratio: 16/9; object-fit: cover; }
.sarrived-title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 300; color: var(--c-salt); margin-bottom: .5rem; }
.sarrived-desc  { font-size: .88rem; color: var(--c-sand); line-height: 1.65; margin-bottom: 1rem; }
.sarrived-culture { background: rgba(212,184,150,.05); border-left: 3px solid var(--c-gold); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1rem; font-size: .82rem; color: var(--c-sand); line-height: 1.6; }
.sarrived-paid { background: rgba(196,146,58,.08); border: 1px solid rgba(196,146,58,.25); border-radius: var(--radius-md); padding: .9rem 1rem; margin-bottom: 1rem; }
[data-theme="light"] .sarrived-title { color: var(--bs-body-color); }

/* ── Écran question ── */
.screen-question { background: var(--c-bg); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.question-screen { display: flex; flex-direction: column; gap: var(--sp-md); padding: var(--sp-md) var(--sp-md) var(--sp-lg); min-height: 100%; }
.game-char-count { font-size: .6rem; color: color-mix(in srgb, var(--c-sand) 40%, transparent); }

/* ── Écran finish ── */
.finish-screen { overflow-y: auto; overscroll-behavior: contain; }

/* ── Erreur étape (overlay plein écran) ── */
.stage-error-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #071420;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: 2rem; font-family: var(--f-body); color: var(--c-photo-text); text-align: center;
}
.stage-error-icon   { font-size: 2.5rem; margin-bottom: 1rem; }
.stage-error-title  { color: var(--c-photo-gold); margin-bottom: .8rem; }
.stage-error-p      { color: rgba(212,184,150,.7); margin-bottom: .4rem; }
.stage-error-value  { color: var(--c-photo-sand); }
.stage-error-detail { font-size: .72rem; color: rgba(212,184,150,.4); margin-bottom: 1.5rem; max-width: 400px; }

.kk-target-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 20px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }

/* ═══════════════════════════════════════════════════════════
   14. IMPRESSION
═══════════════════════════════════════════════════════════ */
@media print {
  .navbar, .site-footer, .install-banner, .offcanvas { display: none !important; }
  body { background: #fff; color: #000; }
}
