/* Application mobile WesternGo (/app) — d'après les écrans mobiles validés de la maquette. */
:root {
  --lien-site: 24px; /* lien « Voir le site complet » sous les onglets (absent de l'aperçu de l'accueil) */
  --barre: calc(74px + var(--lien-site));
  --bas: calc(var(--barre) + env(safe-area-inset-bottom, 0px));
}
html, body.app { height: 100%; }
body.app { overflow: hidden; overscroll-behavior: none; }
#app { height: 100%; display: flex; flex-direction: column; }
#vue { flex: 1 1 auto; position: relative; min-height: 0; outline: none; }
.vue { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(var(--bas) + 24px) max(16px, env(safe-area-inset-left, 0px)); }
.vue-carte { padding: 0; overflow: hidden; }
.vue > .col { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

/* Barre d'onglets */
.onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; background: var(--encre); padding: 6px max(4px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px)); }
.onglets a { flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #D8CBB5; text-decoration: none; font-size: 11.5px; font-weight: 800; border-radius: 12px; }
.onglets a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.onglets a[aria-current="page"] { color: var(--moutarde); font-weight: 900; }
.onglets a:focus-visible { outline-color: var(--moutarde); outline-offset: -2px; }

/* En-tête des écrans */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.entete h1 { margin: 0; font-weight: 900; font-stretch: 115%; font-size: 26px; line-height: 1.1; }
.retour { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--encre); color: var(--encre); background: transparent; cursor: pointer; flex: 0 0 auto; }
.retour svg, .icone svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Segmenté */
.segment { display: flex; padding: 4px; border-radius: 14px; background: #E2D2B6; gap: 4px; }
.segment button { flex: 1; min-height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--encre); font: 800 14px var(--texte); cursor: pointer; }
.segment button[aria-selected="true"], .segment button[aria-pressed="true"] { background: var(--encre); color: #fff; }

/* Défilement horizontal de pastilles */
.defile { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.defile::-webkit-scrollbar { display: none; }
.defile > * { flex: 0 0 auto; }

/* ——— Carte ——— */
#carte-leaflet { position: absolute; inset: 0; bottom: var(--bas); background: #F1E2C6; z-index: 1; }
.carte-haut { position: absolute; z-index: 500; left: 0; right: 0; top: 0; padding: calc(10px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.carte-haut > * { pointer-events: auto; }
.recherche { display: flex; gap: 8px; align-items: stretch; }
.recherche label { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 16px; background: var(--papier); border: 3px solid var(--encre); box-shadow: 0 4px 0 rgba(35,27,20,.25); }
.recherche input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: 400 16px var(--texte); color: var(--encre); }
.recherche input:focus { outline: none; }
.recherche label:focus-within { outline: 3px solid var(--moutarde); outline-offset: 2px; }
.retour-site { flex: 0 0 auto; display: grid; place-items: center; width: 48px; min-height: 48px; border-radius: 16px; background: var(--encre); border: 3px solid var(--encre); box-shadow: 0 4px 0 rgba(35,27,20,.25); }
.retour-site img { width: 30px; height: 30px; display: block; }
@media (max-width: 420px) { .recherche { gap: 6px; } .recherche label { padding: 0 10px; } .points-pastille { padding: 0 10px; } }
.retour-site:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 2px; }
.retour-site-lien { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--encre); background: var(--papier); color: var(--encre); font: 800 14px var(--texte); text-decoration: none; white-space: nowrap; }
/* dans l'aperçu de l'accueil, le site est déjà autour du téléphone */
.apercu .retour-site, .apercu .retour-site-lien { display: none; }
.points-pastille { flex: 0 0 auto; display: flex; align-items: center; padding: 0 12px; min-height: 48px; border-radius: 16px; background: var(--moutarde); border: 3px solid var(--encre); font-weight: 900; font-size: 15px; color: var(--encre); text-decoration: none; }
.resultats { background: var(--papier); border: 3px solid var(--encre); border-radius: 16px; max-height: 46vh; overflow-y: auto; margin: 0; padding: 4px; list-style: none; }
.resultats button { width: 100%; text-align: left; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; font: 600 15px var(--texte); color: var(--encre); display: flex; gap: 10px; align-items: center; cursor: pointer; }
.resultats button:hover, .resultats button:focus-visible { background: var(--sable); }
.resultats .vide { padding: 12px; color: var(--gris); font-size: 14px; }
.filtres { padding-right: 12px; }
.filtres .chip { box-shadow: 0 2px 0 rgba(35,27,20,.2); }
.carte-boutons { position: absolute; z-index: 500; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(var(--bas) + 16px); display: flex; flex-direction: column; gap: 10px; }
.carte-boutons button { width: 52px; height: 52px; border-radius: 16px; border: 3px solid var(--encre); background: var(--papier); color: var(--denim); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 0 rgba(35,27,20,.3); }
.carte-boutons button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.carte-boutons button[aria-pressed="true"] { background: var(--denim); color: #fff; }
.carte-maj { position: absolute; z-index: 500; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(var(--bas) + 16px); background: rgba(255,248,236,.92); border: 2px solid var(--encre); border-radius: 10px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--gris); }
.carte-erreur { position: absolute; z-index: 600; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); }

/* Repères de la carte (divIcon) */
.leaflet-div-icon.wg-icone { background: none; border: 0; }
.wg-pin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--encre); display: flex; align-items: center; justify-content: center; background: var(--papier); box-shadow: 0 3px 0 rgba(35,27,20,.35); }
.wg-pin svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wg-pin.partenaire { background: var(--denim); color: #fff; }
.wg-pin.nourriture { background: var(--moutarde); color: var(--encre); }
.wg-pin.mode { background: var(--papier); color: var(--encre); }
.wg-pin.curiosite { background: var(--prune); color: #fff; }
.wg-pin.service { background: #fff; color: var(--bandana); border-radius: 10px; }
.wg-pin.post { background: var(--ciel); color: var(--encre); }
.wg-pin.parking { background: var(--cactus); color: #fff; border-radius: 11px; font-weight: 900; font-size: 18px; }
.wg-pin.parking.a_confirmer { border-style: dashed; background: #8DB89E; }
.wg-pin.perso { width: 46px; height: 46px; overflow: hidden; padding: 0; background: var(--moutarde); }
.wg-pin.perso img { width: 100%; height: 200%; object-fit: cover; object-position: 50% 0; transform: translateY(14%); }
.wg-pin.favori { outline: 3px solid var(--bandana); outline-offset: 2px; }
/* Commerce en vedette (article gratuit ou lot à gagner) : plus grand, halo doré et étoile */
.wg-pin.vedette { position: relative; width: 48px; height: 48px; box-shadow: 0 0 0 4px var(--moutarde), 0 0 14px 6px rgba(232,169,58,.55), 0 3px 0 rgba(35,27,20,.35); }
.wg-pin.vedette svg { width: 23px; height: 23px; }
.wg-pin.vedette .pin-etoile { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--encre); background: var(--moutarde); color: var(--encre); display: flex; align-items: center; justify-content: center; }
.wg-pin.vedette .pin-etoile svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
@media (prefers-reduced-motion: no-preference) { .wg-pin.vedette::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--moutarde); animation: wgVedette 2.4s ease-out infinite; pointer-events: none; } }
@keyframes wgVedette { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.offre-fiche.vedette { border-color: var(--moutarde); box-shadow: 0 0 0 3px rgba(232,169,58,.35); }
.wg-scene { position: relative; width: 52px; height: 52px; }
.wg-scene .anneau { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; background: var(--moutarde); opacity: .45; animation: wgHalo 2.4s ease-out infinite; pointer-events: none; }
.wg-scene .anneau.b { background: var(--bandana); opacity: .35; animation-delay: 1.2s; }
.wg-scene.a_venir .anneau { background: var(--ciel); animation-duration: 3.4s; }
.wg-scene .coeur { position: absolute; inset: 0; border-radius: 50%; background: var(--bandana); border: 3px solid var(--encre); display: flex; align-items: center; justify-content: center; color: #fff; }
.wg-scene .coeur svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wg-scene.termine .coeur { background: #A89A84; }
.wg-scene.termine .anneau { display: none; }
@keyframes wgHalo { 0% { transform: scale(.45); opacity: .85; } 100% { transform: scale(1.5); opacity: 0; } }
.wg-moi { width: 22px; height: 22px; border-radius: 50%; background: #2B7BE4; border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(43,123,228,.25); }
.leaflet-container { font-family: var(--texte); }
.leaflet-control-attribution { font-size: 11px; }
.leaflet-bottom.leaflet-right { bottom: var(--bas); }
.leaflet-top.leaflet-left { top: auto; bottom: calc(var(--bas) + 56px); }

/* ——— Feuille du bas ——— */
.feuille { position: fixed; z-index: 1200; left: 0; right: 0; bottom: var(--bas); max-height: min(72vh, 640px); overflow-y: auto; background: var(--papier); border-top: 3px solid var(--encre); border-radius: 24px 24px 0 0; padding: 8px max(18px, env(safe-area-inset-right, 0px)) 18px max(18px, env(safe-area-inset-left, 0px)); box-shadow: 0 -6px 0 rgba(35,27,20,.12); animation: wgMonte .22s ease; }
.feuille .poignee { display: block; width: 44px; height: 5px; border-radius: 3px; background: #CDB28A; margin: 4px auto 10px; }
.feuille .fermer { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; color: var(--encre); }
.feuille .fermer svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.feuille h2 { margin: 6px 44px 4px 0; font-weight: 900; font-size: 21px; line-height: 1.15; }
.feuille .meta { margin: 0 0 8px; font-size: 14px; color: var(--gris); }
@keyframes wgMonte { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ——— Calque plein écran ——— */
.calque { position: fixed; inset: 0; z-index: 1600; background: var(--sable); display: flex; flex-direction: column; animation: wgMonte .2s ease; }
.calque-entete { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px)); }
.calque-entete h2 { margin: 0; flex: 1 1 auto; font-weight: 900; font-size: 19px; }
.calque-corps { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 max(14px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
.calque-scene { flex: 1 1 auto; min-height: 0; position: relative; }
.calque-scene .scene3d { position: absolute; inset: 0; }
.calque.nuit { background: radial-gradient(120% 90% at 50% 35%, #24496E 0%, var(--denim) 55%, #0F2236 100%); color: var(--sable); }
.calque.nuit .retour { border-color: var(--sable); color: var(--sable); }

/* ——— Jeu ——— */
.tuile-jeu { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--encre); background: var(--papier); border: var(--bord); border-radius: var(--r-carte); padding: 14px; box-shadow: var(--ombre-dure); cursor: pointer; width: 100%; text-align: left; font: inherit; }
.tuile-jeu .vignette { flex: 0 0 64px; height: 64px; border-radius: 16px; border: 3px solid var(--encre); overflow: hidden; background: var(--moutarde); display: flex; align-items: center; justify-content: center; }
.tuile-jeu .vignette img { width: 100%; height: 200%; object-fit: cover; object-position: 50% 0; align-self: flex-start; }
.tuile-jeu strong { display: block; font-size: 17px; line-height: 1.2; }
.tuile-jeu span { font-size: 14px; color: var(--gris); }
.tuile-jeu strong { color: var(--encre); }
.tuile-jeu .badge { font-size: 11px; color: var(--moutarde); }
.progression { display: flex; gap: 4px; }
.progression span { flex: 1; height: 8px; border-radius: 4px; background: #E2D2B6; }
.progression span.fait { background: var(--moutarde); }
.progression span.courant { background: var(--bandana); }
.temoignage { display: flex; gap: 10px; align-items: flex-start; }
.temoignage .avatar { flex: 0 0 44px; height: 44px; border-radius: 50%; border: 3px solid var(--encre); overflow: hidden; background: var(--moutarde); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.temoignage .avatar img { width: 100%; height: 200%; object-fit: cover; object-position: 50% 0; }
.temoignage p { margin: 0; background: var(--sable); border-radius: 12px; padding: 8px 12px; font-size: 15px; }
.options { display: flex; flex-direction: column; gap: 8px; }
.options button { min-height: 52px; border-radius: 16px; border: 3px solid var(--encre); background: var(--papier); font: 800 16px var(--texte); color: var(--encre); text-align: left; padding: 8px 14px; cursor: pointer; }
.options button:hover { background: var(--sable); }
.options button.choisi { border-color: var(--bandana); background: var(--rose-pale); }
.indices { display: flex; gap: 6px; flex-wrap: wrap; }
.indice { padding: 6px 10px; border-radius: 10px; background: var(--papier); border: 2px solid var(--encre); font-weight: 800; font-size: 13px; }
.indice.a-trouver { border-style: dashed; border-color: #8A7A66; color: var(--gris-2); }
.aide-carte { padding: 10px 12px; border-radius: 14px; background: var(--creme-ocre); border: 2px solid var(--moutarde); font-size: 14px; }
.medaille { flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%; background: var(--moutarde); border: 4px solid var(--encre); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; line-height: 1; }
.medaille b { font-size: 34px; }
.medaille small { font-size: 12px; }

/* Colporteur */
.coat-scene { position: relative; height: min(46vh, 380px); border-radius: 22px; border: 3px solid var(--encre); overflow: hidden; background: #8E2433; }
.macarons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.macaron { min-height: 64px; padding: 8px 10px; border-radius: 16px; border: 3px solid var(--encre); background: var(--sable); display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; font: inherit; color: var(--encre); }
.macaron .rond { flex: 0 0 32px; height: 32px; border-radius: 50%; border: 3px solid var(--encre); }
.macaron strong { display: block; font-size: 14px; line-height: 1.15; }
.macaron span { font-size: 12px; color: var(--gris-2); }
.macaron[aria-pressed="true"] { border-color: var(--bandana); background: var(--papier); }
.macaron[disabled] { opacity: .5; cursor: not-allowed; }
.code-geant { display: flex; justify-content: center; gap: 10px; }
.code-geant span { width: 64px; height: 84px; border-radius: 16px; background: var(--papier); border: 3px solid var(--encre); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 46px; box-shadow: 0 5px 0 var(--encre); }
.attente { display: flex; justify-content: center; gap: 8px; }
.attente i { width: 12px; height: 12px; border-radius: 50%; background: var(--bandana); animation: wgVivant 1.2s ease-in-out infinite; }
.attente i:nth-child(2) { animation-delay: .2s; }
.attente i:nth-child(3) { animation-delay: .4s; }

/* Insigne, coupons */
.passeport { background: var(--denim); color: var(--sable); border: var(--bord); border-radius: 22px; padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--ombre-dure); }
.passeport .titre { font-family: var(--display); font-size: 28px; line-height: 1.05; margin: 2px 0; }
.passeport .rond { flex: 0 0 78px; height: 78px; border-radius: 50%; background: var(--moutarde); border: 3px solid var(--sable); overflow: hidden; }
.passeport .rond img { width: 100%; height: 200%; object-fit: cover; object-position: 50% 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats div { background: var(--papier); border: 3px solid var(--encre); border-radius: 16px; padding: 10px; text-align: center; }
.stats div:first-child { background: var(--moutarde); }
.stats b { display: block; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; font-weight: 800; }
.ticket { border-radius: 18px; border: 3px solid var(--encre); background: var(--moutarde); display: flex; overflow: hidden; }
.ticket .corps { flex: 1 1 auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ticket .corps strong { font-size: 19px; line-height: 1.15; }
.ticket .code { font-weight: 900; font-size: 20px; letter-spacing: 2px; font-variant-numeric: tabular-nums; word-break: break-all; }
.ticket .talon { flex: 0 0 86px; border-left: 3px dashed var(--encre); background: #F5C46A; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; text-align: center; font-size: 11px; font-weight: 800; }
.ticket.inactif { background: #E5DED2; color: var(--gris); border-color: #8A7A66; }
.ticket.inactif .talon { background: #EDE7DC; border-color: #8A7A66; }
.classement { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.classement li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--sable); font-size: 16px; }
.classement li:first-child { background: #F5D58E; }
.classement li.moi { outline: 3px solid var(--bandana); }
.classement b { flex: 0 0 26px; }
.classement span { flex: 1 1 auto; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.barre-prog { height: 10px; border-radius: 5px; background: #E2D2B6; overflow: hidden; }
.barre-prog i { display: block; height: 100%; background: var(--cactus); }

/* Bons coups */
.post { background: var(--papier); border: var(--bord); border-radius: 20px; overflow: hidden; }
.post .photo { position: relative; aspect-ratio: 16 / 9; background: var(--ciel); display: flex; align-items: center; justify-content: center; }
.post .photo img { width: 100%; height: 100%; object-fit: cover; }
.post .photo .badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; }
.post .corps { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.post .titre-prix { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.post .titre-prix strong { font-size: 18px; line-height: 1.2; }
.post .prix { font-weight: 900; font-size: 24px; color: var(--cactus); white-space: nowrap; }
.post dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; font-size: 13px; }
.post dt { display: inline; color: var(--gris-2); }
.post dd { display: inline; margin: 0; font-weight: 700; }
.post .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vote { min-height: 44px; padding: 0 14px; border-radius: var(--r-pilule); border: 2px solid var(--encre); background: var(--papier); font: 900 14px var(--texte); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--encre); }
.vote[aria-pressed="true"] { background: var(--moutarde); }
.lien-discret { min-height: 44px; padding: 0 8px; border: 0; background: transparent; font: 800 13px var(--texte); text-decoration: underline; color: var(--gris); cursor: pointer; }
.fab { text-decoration: none; position: fixed; z-index: 800; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(var(--bas) + 16px); min-height: 56px; padding: 0 20px; border-radius: var(--r-pilule); border: 3px solid var(--encre); background: var(--bandana); color: #fff; font: 900 16px var(--texte); display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 0 var(--encre); cursor: pointer; }
.fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.apercu-photo { max-height: 180px; border-radius: 12px; border: 2px solid var(--encre); object-fit: cover; }
.mini-carte { height: 220px; border-radius: 16px; border: 3px solid var(--encre); overflow: hidden; }

/* Profil */
.demo-comptes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-weight: 700; font-size: 15px; }
.interrupteur input { width: 48px; height: 28px; accent-color: var(--bandana); flex: 0 0 auto; }

@media (min-width: 720px) {
  .feuille { left: 50%; right: auto; width: 520px; transform: translateX(-50%); border-radius: 24px 24px 0 0; border-left: 3px solid var(--encre); border-right: 3px solid var(--encre); }
  @keyframes wgMonte { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  .wg-scene .anneau { animation: none; opacity: .3; transform: scale(1); }
}
.mouvement-reduit .wg-scene .anneau { animation: none !important; opacity: .3; transform: scale(1); }

/* Les messages brefs ne doivent jamais bloquer un toucher sur le contenu en dessous (ils disparaissent seuls) */
body.app .toast { pointer-events: none; }
body.app .toasts { bottom: calc(var(--bas) + 84px); }
body.app .toasts .toast:nth-last-child(n+3) { display: none; } /* deux messages à la fois, au plus */
/* Bandeau hors ligne : juste au-dessus des onglets, pour ne pas cacher la recherche ni les titres */
body.app .hors-ligne { top: auto; bottom: var(--bas); font-size: 13px; border-top: 2px solid var(--encre); }

/* Bons coups : tuile illustrée de la catégorie, « Voir sur la carte » et partage (styles communs dans base.css) */
.post .corps > .badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; }
.post-tete { display: flex; gap: 12px; align-items: center; }
.post-tete-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.post-ico { flex-basis: 64px; width: 64px; height: 64px; border-radius: 16px; transform: rotate(-3deg); box-shadow: inset 0 -4px 0 rgba(35, 27, 20, .12), 2px 2px 0 var(--encre); }
.post-ico .bon-ico-dessin svg { width: 52px; height: 52px; }
.post-liens { display: flex; flex-wrap: wrap; gap: 8px; }
.post .bon-partage { margin-top: 0; }

/* Rencontre du Colporteur : code QR personnel (grand, contrasté, lisible au soleil), code de secours, étapes */
.qr-geant { align-self: center; width: min(78vw, 330px); aspect-ratio: 1; padding: 10px; border-radius: 22px; border: 4px solid var(--encre); background: #fff; box-shadow: 0 6px 0 var(--encre); }
.qr-geant svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; shape-rendering: crispEdges; }
.qr-legende { margin: 2px 0 0; text-align: center; font-size: 14px; color: var(--gris); }
.qr-code { align-self: center; margin: 0; padding: 6px 18px; border-radius: 14px; border: 3px dashed var(--encre); background: var(--papier); font: 900 34px/1.1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.qr-astuce { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--creme-ocre); color: #5A3A0A; font-weight: 700; font-size: 14px; text-align: center; }
.etapes-rencontre { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

/* Lien « Voir le site complet » : une ligne discrète sous les onglets (sur cellulaire, l'accueil ouvre l'application) */
.onglets { flex-wrap: wrap; }
.onglets a.site-complet { flex: 0 0 100%; min-height: var(--lien-site); flex-direction: row; gap: 0; padding: 0; border-radius: 8px; color: #BFAE95; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.onglets a.site-complet:hover { color: var(--sable); }
.apercu { --lien-site: 0px; }
.apercu .onglets a.site-complet { display: none; }

/* Accueil sans compte (#accueil) : ce qu'est WesternGo, comment ça marche, la légende de la carte */
.accueil { gap: 16px; padding-top: 6px; }
.accueil-tete { display: flex; align-items: center; gap: 10px; }
.accueil-tete img { width: 54px; height: 30px; }
.accueil-tete .display { margin: 0; font-size: 32px; line-height: 1; color: var(--encre); }
.accueil-dates { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 800; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; color: var(--brique); }
.accueil-dates .badge { text-transform: none; letter-spacing: 0; }
.accueil h1 { margin: 0; font-weight: 900; font-stretch: 120%; font-size: clamp(32px, 9vw, 42px); line-height: 1.02; }
.accueil-intro { margin: 0; color: var(--gris); font-size: 16.5px; line-height: 1.5; }
.accueil-persos { display: flex; padding-left: 8px; }
.accueil-persos img { width: 48px; height: 48px; margin-left: -8px; border-radius: 50%; border: 3px solid var(--encre); object-fit: cover; }
.accueil-actions { display: grid; gap: 10px; }
.accueil-bloc { display: flex; flex-direction: column; gap: 12px; }
.accueil-bloc h2 { margin: 0; font-weight: 900; font-stretch: 115%; font-size: 22px; }
.accueil-etapes, .accueil-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.accueil-etapes li, .accueil-legende li { display: flex; align-items: flex-start; gap: 12px; }
.accueil-etapes p, .accueil-legende p { margin: 2px 0 0; color: var(--gris); line-height: 1.45; font-size: 15px; }
.accueil-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--bandana); color: #fff; font-weight: 900; border: 2px solid var(--encre); }
.accueil-point { flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--encre); }
.accueil-note { margin: 0; font-size: 13.5px; color: var(--gris); line-height: 1.45; }
.accueil-note .badge { margin-right: 4px; }
