/* ============================================================================
   « La Carte Vivante » — thème « Lagon » (guide public, web3/web4).

   DIRECTION ARTISTIQUE DURABLE (source de vérité — recopiée ici depuis le prompt
   de vague AVANT réduction de PROMPTS/README, cf. CLAUDE.md §0.29/§0.31). Solaire,
   photo-forward, mobile-first : le site EST la carte (atterrir = survoler l'île).
   Distinct du « Stitch » sombre de /pro + checkout (assets/stitch.css). Aucune
   dépendance JS ; prefers-reduced-motion respecté partout.

   Tokens EXACTS : voir :root ci-dessous (palette + gradient signature --grad-mer
   teal→ciel→indigo ; --lagon = écho exact du teal de l'app ; verres nuit/jour pour
   overlays sur/hors carte ; radius 20–28px ; ombres douces --shadow).
   - Typo : Fraunces (display éditorial, titres/nom d'île) + Outfit (UI 700/800)
     + Inter (texte). Nom d'île en clamp(48px, 10vw, 116px), overline espacée
     encadrée de filets au-dessus.
   - Marqueurs : badge circulaire blanc 34 px, liseré --lagon, icône de la 1re
     catégorie (dict icône→emoji, repli 📍) ; sélection = bulle ancrée au marqueur
     (nom + « Voir la fiche » + « Itinéraire ») — miroir web du design mobile §0.21.
   - Micro-interactions : hover-lift + zoom photo des cartes, skeleton shimmer,
     entrées en fondu-montée étagées, transitions 200–400 ms ease-out.
     Photo-forward (les visuels portent le design, scrims pour la lisibilité).
   - Mobile-first : la feuille éditoriale et les panneaux deviennent des
     bottom-sheets ; cible = un touriste sur téléphone en itinérance.

   ⚠️ SUBLIMATION 2026-07-04 : exécution visuelle rehaussée (Fraunces, scrims,
   overlays photo, animations d'entrée) — tokens et SÉLECTEURS INCHANGÉS (contrat
   avec les vues JS préservé). N'ajouter des classes qu'en ADDITIF.
   ========================================================================== */
:root {
  --sable:    #F7F4EE;
  --ecume:    #FFFFFF;
  --profond:  #0B3B54;
  --marine:   #3E5E71;
  --lagon:    #0D9488;
  --lagon-2:  #14B8A6;
  --corail:   #FF6B57;
  --soleil:   #F59E0B;
  --grad-mer: linear-gradient(120deg, #0D9488 0%, #0EA5E9 60%, #6366F1 120%);
  --grad-chaud: linear-gradient(120deg, #F59E0B 0%, #FF6B57 100%);
  --verre-nuit: rgba(6, 26, 36, .58);
  --verre-jour: rgba(255, 255, 255, .78);
  --stroke:   rgba(11, 59, 84, .12);
  --radius:   24px;
  --radius-l: 28px;
  --shadow:   0 24px 60px -28px rgba(11, 59, 84, .18);
  --shadow-s: 0 8px 24px -14px rgba(11, 59, 84, .22);
  --shadow-lift: 0 34px 80px -30px rgba(11, 59, 84, .34);
  --ring: 0 0 0 3px rgba(13, 148, 136, .28);
  --font-display: 'Fraunces', 'Outfit', Georgia, serif;
  --font-head: 'Outfit', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--profond);
  background:
    radial-gradient(90% 46% at 8% -6%, rgba(13, 148, 136, .07), transparent 60%),
    radial-gradient(70% 40% at 100% 0%, rgba(245, 158, 11, .05), transparent 55%),
    var(--sable);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--lagon); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.08; color: var(--profond); }
img { max-width: 100%; display: block; }
::selection { background: rgba(13, 148, 136, .22); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }

#app { min-height: 100vh; }

/* Entrées en fondu-montée (réutilisable) ------------------------------------ */
/* ⚠️ L'état FINAL doit être `transform: none` (et non translateY(0)) : avec
   fill-mode `both`, la dernière frame reste appliquée à vie, et un transform
   non-none fait de l'élément le BLOC CONTENEUR de tout position:fixed
   descendant — l'atelier vitrine plein écran restait prisonnier de sa carte. */
@keyframes gfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gpop  { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes gup   { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* --- Topbar --------------------------------------------------------------- */
.gtopbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; gap: 12px;
  background: var(--verre-jour);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--stroke);
}
.gtopbar.on-map {
  background: linear-gradient(180deg, rgba(6, 26, 36, .62), rgba(6, 26, 36, .46));
  border-bottom-color: rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
}
.gtopbar.on-map .gbrand, .gtopbar.on-map .glink { color: #fff; }
.gtopbar.on-map .glink:hover { background: rgba(255, 255, 255, .12); }
.gbrand {
  font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: .1px;
  color: var(--profond); display: inline-flex; gap: 10px; align-items: center;
}
.gbrand .dot {
  width: 32px; height: 32px; border-radius: 11px; font-size: 16px;
  display: grid; place-items: center; flex: none;
  background: var(--grad-mer); box-shadow: 0 8px 20px -8px rgba(13, 148, 136, .55);
}
.gtopnav { display: flex; align-items: center; gap: 8px; }
.glink {
  font-weight: 600; font-size: 14.5px; color: var(--marine);
  padding: 8px 13px; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.glink:hover { background: rgba(13, 148, 136, .10); color: var(--lagon); }
.glang {
  display: inline-flex; gap: 2px; background: rgba(255, 255, 255, .55);
  border: 1px solid var(--stroke); border-radius: 999px; padding: 3px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.glang button {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
  padding: 5px 9px; border-radius: 999px; color: var(--marine);
  transition: background .2s ease, color .2s ease;
}
/* Une étiquette idéographique (中文) a besoin d'un peu plus de corps qu'un code
   latin pour rester lisible, et l'interlettrage latin ne s'y applique pas.
   Le `lang` posé sur le bouton laisse aussi le navigateur choisir sa police. */
.glang button:lang(zh) { font-size: 13px; letter-spacing: 0; }
.glang button:hover { color: var(--lagon); }
.glang button.on { background: var(--lagon); color: #fff; box-shadow: 0 4px 12px -4px rgba(13, 148, 136, .6); }

/* --- Boutons -------------------------------------------------------------- */
.btn {
  appearance: none; border: 0; cursor: pointer; font-family: var(--font-head);
  font-weight: 700; font-size: 15px; letter-spacing: .2px;
  padding: 14px 26px; border-radius: 999px;
  color: #fff; background: var(--grad-mer); background-size: 150% 150%;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 14px 32px -12px rgba(13, 148, 136, .55);
  position: relative; overflow: hidden;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s ease,
              background-position .5s ease, filter .22s ease;
}
.btn::after {  /* reflet qui glisse au survol */
  content: ""; position: absolute; top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg); transition: left .65s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(13, 148, 136, .65); background-position: 100% 50%; }
.btn:hover::after { left: 140%; }
.btn:active { transform: translateY(0) scale(.99); }
.btn.ghost {
  background: var(--ecume); color: var(--profond);
  border: 1px solid var(--stroke); box-shadow: var(--shadow-s);
}
.btn.ghost:hover { box-shadow: var(--shadow-s); border-color: rgba(13, 148, 136, .4); color: var(--lagon); }
.btn.ghost::after { display: none; }
.btn.coral { background: var(--grad-chaud); box-shadow: 0 14px 32px -12px rgba(255, 107, 87, .55); }
.btn.coral:hover { box-shadow: 0 20px 44px -14px rgba(255, 107, 87, .65); }
.btn.sm { padding: 9px 16px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Recherche (pilule) --------------------------------------------------- */
.searchpill {
  display: inline-flex; align-items: center; gap: 12px; width: min(560px, 92vw);
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px; padding: 9px 10px 9px 20px;
  box-shadow: 0 20px 50px -18px rgba(6, 26, 36, .5);
  cursor: text;
  transition: transform .22s ease, box-shadow .22s ease;
}
.searchpill:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -20px rgba(6, 26, 36, .55); }
.searchpill input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--profond); outline: none; cursor: inherit; min-width: 0; }
.searchpill input::placeholder { color: var(--marine); opacity: .75; }
.searchpill .ic {
  order: 2; flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px;
  background: var(--grad-mer); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(13, 148, 136, .6);
}

/* --- Carte plein écran + atterrissage ------------------------------------- */
.map-stage { position: fixed; inset: 0; z-index: 0; background: var(--grad-mer); }
.leaflet-container { background: var(--grad-mer) !important; font-family: var(--font-body); }
/* Espace transparent (100svh) laissant voir la carte fixe derrière ; le voile héro
   y vit en absolu → il défile HORS écran au scroll (pas de fixed collant). */
.hero-spacer { position: relative; height: 100svh; z-index: 300; pointer-events: none; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  background:
    linear-gradient(180deg, rgba(6, 26, 36, .30) 0%, rgba(6, 26, 36, .06) 30%,
                    rgba(6, 26, 36, .12) 62%, rgba(6, 26, 36, .66) 100%);
}
.hero-veil .overline {
  display: inline-flex; align-items: center; gap: 14px;
  color: rgba(255, 255, 255, .88); font-family: var(--font-head); font-weight: 700;
  letter-spacing: 6px; font-size: 12.5px; text-transform: uppercase;
  animation: gfade .8s .1s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-veil .overline::before, .hero-veil .overline::after {
  content: ""; width: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7));
}
.hero-veil .overline::after { transform: scaleX(-1); }
.hero-veil h1 {
  color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(48px, 10vw, 116px); letter-spacing: -.01em; line-height: 1;
  margin: 14px 0 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25), 0 18px 60px rgba(0, 0, 0, .38);
  animation: gfade .9s .22s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-veil .tag {
  color: rgba(255, 255, 255, .94);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(16px, 2.6vw, 24px); line-height: 1.4;
  max-width: 640px; margin: 0 auto 28px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  animation: gfade .9s .34s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-veil .searchpill { pointer-events: auto; animation: gfade .9s .46s cubic-bezier(.2, .8, .2, 1) both; }
.hero-cta {
  margin-top: 18px; pointer-events: auto;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: gfade .9s .58s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  color: #fff; font-size: 24px; line-height: 1;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: pointer; pointer-events: auto;
  display: grid; place-items: center;
  animation: bob 2s ease-in-out infinite;
  transition: background .2s ease;
}
.hero-scroll:hover { background: rgba(255, 255, 255, .26); }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

/* --- La feuille (contenu éditorial par-dessus la carte) ------------------- */
.sheet {
  position: relative; z-index: 400;
  background: var(--sable); border-radius: 34px 34px 0 0;
  box-shadow: 0 -24px 70px -30px rgba(11, 59, 84, .45);
  padding: 10px 0 40px;
}
.sheet::before {
  content: ""; display: block; width: 48px; height: 5px; border-radius: 999px;
  background: rgba(11, 59, 84, .18); margin: 14px auto 8px;
}
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.section { padding: 30px 0 22px; }
.section h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.01em; margin-bottom: 2px;
}
.section h2::after {
  content: ""; display: block; width: 46px; height: 4px; border-radius: 999px;
  background: var(--grad-mer); margin: 12px 0 4px;
}
.section .sub { color: var(--marine); margin: 4px 0 16px; }

/* --- Rails horizontaux (scroll-snap) -------------------------------------- */
.rail {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 12px 2px 22px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: rgba(11, 59, 84, .18) transparent;
}
.rail::-webkit-scrollbar { height: 5px; }
.rail::-webkit-scrollbar-thumb { background: rgba(11, 59, 84, .16); border-radius: 999px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }

/* --- Cartes photo ---------------------------------------------------------- */
.photocard {
  width: 310px; border-radius: 26px; overflow: hidden; background: var(--ecume);
  box-shadow: var(--shadow); cursor: pointer; border: 1px solid var(--stroke);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease;
  animation: gpop .5s cubic-bezier(.2, .8, .2, 1) both;
}
.photocard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(13, 148, 136, .30); }
.photocard .ph {
  position: relative; height: 190px; overflow: hidden;
  background: linear-gradient(140deg, #dbe6ea, #cfdde3) center/cover no-repeat;
  background-origin: border-box;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}
.photocard:hover .ph { transform: scale(1.05); }
.photocard .ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 59, 84, .20));
}
.photocard .bd { padding: 15px 18px 17px; position: relative; background: var(--ecume); }
.photocard .bd h3 { font-size: 18px; font-weight: 700; letter-spacing: -.1px; }
.photocard .bd .meta { color: var(--marine); font-size: 13px; margin-top: 5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Tuile « envie » : le libellé vit SUR la photo (scrim), plus immersif. */
.envie { width: 210px; }
.envie .ph { height: 190px; }
.envie .ph::after { background: linear-gradient(180deg, rgba(6, 26, 36, 0) 35%, rgba(6, 26, 36, .74)); }
.envie .bd { position: absolute; left: 0; right: 0; bottom: 0; background: transparent; padding: 14px 16px; pointer-events: none; }
.envie .bd h3 { color: #fff; font-size: 17px; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.envie .bd .meta { color: rgba(255, 255, 255, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.envie { position: relative; }

/* --- Chips catégories ------------------------------------------------------ */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .88); color: var(--profond);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 13.5px; cursor: pointer;
  display: inline-flex; gap: 7px; align-items: center; white-space: nowrap;
  box-shadow: 0 8px 22px -12px rgba(6, 26, 36, .5);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.chip:hover { transform: translateY(-1px); }
.chip.on {
  background: var(--grad-mer); color: #fff; border-color: transparent;
  box-shadow: 0 10px 26px -10px rgba(13, 148, 136, .7);
}

/* --- Marqueur badge (miroir app §0.21) ------------------------------------- */
.guide-badge { background: transparent; border: 0; }
.guide-badge .badge-inner {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--lagon);
  display: grid; place-items: center; font-size: 16px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .5) inset, 0 8px 20px -6px rgba(11, 59, 84, .55);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease;
}
.guide-badge:hover .badge-inner { transform: scale(1.16); box-shadow: 0 12px 26px -8px rgba(11, 59, 84, .6); }
.guide-badge.dest .badge-inner { border-color: var(--corail); width: 42px; height: 42px; font-size: 20px; }
.guide-cluster { background: transparent; border: 0; }
.guide-cluster .cluster-inner {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--profond); color: #fff; border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(11, 59, 84, .35); font-weight: 800; font-size: 13px;
}

/* --- Carte de lieu en verre (bottom-sheet / panneau) ---------------------- */
.placecard {
  position: fixed; z-index: 900; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(460px, 94vw); background: var(--verre-nuit); color: #fff;
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 26px;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .55);
  overflow: hidden;
  animation: gup .34s cubic-bezier(.2, .8, .2, 1) both;
}
.placecard .ph { position: relative; height: 158px; background: #123 center/cover no-repeat; }
.placecard .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 26, 36, .62)); }
.placecard .bd { padding: 16px 18px 18px; }
.placecard .bd h3 { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.1px; }
.placecard .bd .meta { color: rgba(255, 255, 255, .82); font-size: 13.5px; margin: 5px 0 8px; display: flex; gap: 10px; align-items: center; }
.placecard .bd p { color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.55; margin: 0 0 14px; max-height: 4.5em; overflow: hidden; }
.placecard .row { display: flex; gap: 10px; }
.placecard .row .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.placecard .row .btn.ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.placecard .close {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  background: rgba(6, 26, 36, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px;
  transition: background .2s ease;
}
.placecard .close:hover { background: rgba(6, 26, 36, .8); }
/* Itinéraire SUR le site (2026-07-19) : méta du trajet dans la carte de lieu
   (distance/durées), tracé bleu sur la carte ; l'app GPS = repli discret. */
.placecard .route-info { color: rgba(255, 255, 255, .92); font-size: 13px; margin-top: 10px; }
.placecard .route-info:empty { display: none; }
.placecard .route-info .route-note { color: rgba(255, 255, 255, .7); margin-top: 2px; }
.placecard .route-info .route-row { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.placecard .route-info .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.placecard .route-info .btn.ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.placecard .route-fallback { color: rgba(255, 255, 255, .65); font-size: 12px; text-decoration: underline; }
.placecard .route-fallback:hover { color: #fff; }

/* --- Guidage GPS sur le site (chantier navigation 2026-07-22) --------------- */
/* Bandeau d'instruction fixé en haut de la carte : flèche + « Dans X m,
   tournez… » + distance restante/ETA. Au-dessus de la carte ET de la carte de
   lieu (le visiteur guidé regarde ce bandeau en marchant). */
#guide-banner-mount { position: fixed; top: 68px; left: 12px; right: 12px; z-index: 950; pointer-events: none; }
.guide-banner {
  display: flex; align-items: center; gap: 12px; pointer-events: auto;
  margin: 0 auto; max-width: 520px; padding: 12px 14px;
  background: rgba(13, 27, 33, .92); color: #fff; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(6px);
}
.guide-banner .gb-arrow { font-size: 28px; line-height: 1; flex: 0 0 auto; }
.guide-banner .gb-txt { flex: 1 1 auto; min-width: 0; }
.guide-banner .gb-main { font-weight: 700; font-size: 15px; line-height: 1.25; }
.guide-banner .gb-sub { font-size: 12.5px; color: rgba(255, 255, 255, .72); margin-top: 2px; }
.guide-banner .gb-stop {
  flex: 0 0 auto; border: 0; cursor: pointer; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 14px;
}
.guide-banner .gb-stop:hover { background: rgba(255, 255, 255, .26); }
.star { color: var(--soleil); letter-spacing: 1px; }

/* --- Fiche complète -------------------------------------------------------- */
.fiche { position: relative; z-index: 800; background: var(--sable); min-height: 100vh; padding-top: 60px; }
.fiche .gallery { position: relative; height: min(58vh, 480px); background: linear-gradient(140deg, #cfd9dd, #bccdd4) center/cover no-repeat; }
.fiche .gallery::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 26, 36, .22), transparent 26%, transparent 62%, rgba(11, 59, 84, .30));
}
.fiche .gallery .nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--profond);
  box-shadow: var(--shadow-s);
  transition: transform .2s ease, background .2s ease;
}
.fiche .gallery .nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.fiche .gallery .nav.prev { left: 14px; } .fiche .gallery .nav.next { right: 14px; }
.fiche .body {
  width: min(760px, 92vw); margin: -70px auto 0; position: relative; z-index: 2;
  background: var(--ecume); border-radius: 30px; border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-lift); padding: 30px 30px 38px;
  animation: gfade .5s .05s cubic-bezier(.2, .8, .2, 1) both;
}
.fiche .badge-reco {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--grad-chaud); color: #fff; font-weight: 800; font-size: 12px;
  letter-spacing: .4px; padding: 6px 13px; border-radius: 999px; margin-bottom: 12px;
  box-shadow: 0 8px 20px -8px rgba(255, 107, 87, .6);
}
.fiche h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; font-size: clamp(30px, 4.6vw, 46px); }
.fiche .meta { color: var(--marine); margin: 10px 0 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fiche .tip {
  position: relative;
  background: linear-gradient(140deg, rgba(245, 158, 11, .10), rgba(255, 107, 87, .07));
  border: 1px solid rgba(245, 158, 11, .30); border-left: 4px solid var(--soleil);
  border-radius: 16px; padding: 15px 18px; margin: 18px 0; line-height: 1.55;
}
.fiche .tip b { color: #9a6700; }
.fiche h2 { font-family: var(--font-display); font-weight: 600; }
.infogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.infogrid .cell {
  background: var(--sable); border: 1px solid var(--stroke);
  border-radius: 16px; padding: 13px 15px;
  transition: border-color .2s ease;
}
.infogrid .cell:hover { border-color: rgba(13, 148, 136, .35); }
.infogrid .cell .k { font-size: 11px; font-weight: 600; color: var(--marine); text-transform: uppercase; letter-spacing: 1px; }
.infogrid .cell .v { font-weight: 600; margin-top: 3px; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.reviews .rev { border-top: 1px solid var(--stroke); padding: 14px 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.reviews .rev .avatar {
  grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; align-self: start;
  background: var(--grad-mer); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.reviews .rev .who { font-weight: 700; align-self: center; }
.reviews .rev > div:not(.avatar):not(.who) { grid-column: 2; color: var(--marine); line-height: 1.55; }

/* --- Skeleton / états ------------------------------------------------------ */
.skel { background: linear-gradient(90deg, #e7ecee 25%, #f2f5f6 37%, #e7ecee 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.status-view { text-align: center; padding: 48px 20px; color: var(--marine); }
.status-view .ic { font-size: 44px; margin-bottom: 12px; }
.status-view h3 { margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; font-size: 24px; }

/* --- CTA bandes / footer --------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--grad-mer); color: #fff; border-radius: var(--radius-l);
  padding: 40px 30px; text-align: center; margin: 20px 0;
  box-shadow: 0 26px 60px -22px rgba(13, 148, 136, .5);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 120% at 15% 0%, rgba(255, 255, 255, .22), transparent 55%);
}
a.cta-band:hover, .cta-band:hover { transform: translateY(-3px); box-shadow: 0 34px 74px -24px rgba(13, 148, 136, .6); }
.cta-band h2 { color: #fff; font-family: var(--font-display); font-weight: 600; position: relative; }
.cta-band h2::after { display: none; }
.cta-pro {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--ecume); border: 1px solid var(--stroke); border-radius: var(--radius);
  box-shadow: var(--shadow-s); padding: 20px 24px; margin: 16px 0;
}
.gfooter { border-top: 1px solid var(--stroke); margin-top: 20px; padding: 26px 0 42px; color: var(--marine); font-size: 13px; }
.gfooter .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.gfooter .gfooter-links { justify-content: flex-start; margin-top: 10px; }
.gfooter .gfooter-links a { color: inherit; text-decoration: none; opacity: .85; }
.gfooter .gfooter-links a:hover { text-decoration: underline; opacity: 1; }

/* --- Landing (choix des cartes) ------------------------------------------- */
/* §0.52 : l'ancienne PAGE landing (hero sable + grille) est supprimée — la racine
   est le GLOBE (.landing-veil/.landing-choice, fin de fichier). La GRILLE reste :
   elle sert aux résultats de RECHERCHE (search.js) et aux vues à cartes. */
.landing { min-height: 100vh; padding: 110px 0 60px; }
.landing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.landing-grid .photocard { width: auto; }
.landing-grid .ph { height: 210px; }

/* --- Explore : couche carte + UI flottante -------------------------------- */
.explore-ui { position: fixed; z-index: 700; left: 0; right: 0; top: 64px; padding: 8px 14px 0; }
.explore-ui .bar { display: flex; gap: 10px; align-items: center; }
.floating-search { position: fixed; z-index: 700; bottom: 22px; left: 50%; transform: translateX(-50%); }
.floating-search.btn.ghost {
  background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px -16px rgba(6, 26, 36, .55);
}
/* .btn:hover/:active écrasent `transform` → re-composer avec le centrage X. */
.floating-search.btn:hover { transform: translateX(-50%) translateY(-2px); }
.floating-search.btn:active { transform: translateX(-50%) scale(.99); }

@media (max-width: 640px) {
  .gtopbar { padding: 10px 12px; }
  .gbrand { font-size: 16px; }
  .glink { padding: 7px 9px; font-size: 13px; }
  .placecard { left: 8px; right: 8px; transform: none; width: auto; animation-name: gfade; }
  .cta-pro { flex-direction: column; align-items: stretch; text-align: center; }
  .photocard { width: 270px; }
  .photocard .ph { height: 170px; }
}

/* --- web4 : formulaires, modales, bannières, toast ------------------------ */
.auth-form .fld, .modal .fld { display: block; margin-bottom: 13px; font-size: 13px; color: var(--marine); font-weight: 600; }
.fld input, .fld select, .fld textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid var(--stroke); border-radius: 14px;
  font: inherit; color: var(--profond); background: var(--ecume);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--lagon); box-shadow: var(--ring); }
.fld textarea { resize: vertical; }
.err { color: #c0392b; font-size: 13px; margin: 6px 0; }
.card-soft { background: var(--ecume); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-s); animation: gfade .45s cubic-bezier(.2, .8, .2, 1) both; }
.referral-box { margin-top: 14px; background: var(--sable); border: 1px dashed rgba(13, 148, 136, .4); border-radius: 16px; padding: 13px 15px; }
.referral-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.referral-row code { font-size: 18px; font-weight: 800; color: var(--lagon); letter-spacing: 1.5px; }
.modal-ov {
  position: fixed; inset: 0; z-index: 2000; background: rgba(6, 26, 36, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: gfade .2s ease both;
}
.modal {
  width: min(440px, 94vw); background: var(--ecume); border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 40px 100px -30px rgba(6, 26, 36, .6); padding: 26px 24px;
  animation: gpop .3s cubic-bezier(.2, .8, .2, 1) both;
}
.modal h3 { margin-bottom: 16px; font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.star-pick { display: flex; gap: 6px; margin-bottom: 12px; }
.star-pick .sp { border: 0; background: transparent; font-size: 32px; color: #d4d9dc; cursor: pointer; line-height: 1; transition: transform .15s ease, color .15s ease; }
.star-pick .sp:hover { transform: scale(1.15); }
.star-pick .sp.on { color: var(--soleil); }
.add-banner {
  position: fixed; z-index: 900; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(460px, 94vw); background: var(--verre-nuit); color: #fff;
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 22px; padding: 18px 20px;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .55);
  animation: gup .34s cubic-bezier(.2, .8, .2, 1) both;
}
.add-banner .close { position: absolute; top: 8px; right: 10px; background: rgba(6, 26, 36, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .2); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.add-banner .ab-msg { margin: 2px 0 12px; line-height: 1.5; }
.gtoast {
  position: fixed; z-index: 2200; left: 50%; bottom: 26px; transform: translateX(-50%);
  background: rgba(6, 26, 36, .88); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 13px 22px; border-radius: 999px; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6);
  font-weight: 600; max-width: 90vw; text-align: center;
  animation: gup .3s cubic-bezier(.2, .8, .2, 1) both;
  transition: opacity .4s ease;
}
.gtoast.out { opacity: 0; }
.explore-hint {
  margin-top: 8px; font-size: 12.5px; color: #fff;
  background: var(--verre-nuit); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; padding: 7px 14px; display: inline-block;
}
.explore-empty {
  margin: 8px auto 0; max-width: 360px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255,255,255,.94); color: var(--profond); font-size: 13px;
  box-shadow: 0 8px 22px rgba(11,59,84,.14); text-align: center;
}

@media (max-width: 640px) {
  .add-banner { left: 8px; right: 8px; transform: none; width: auto; animation-name: gfade; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll, .skel { animation: none; }
  .hero-veil .overline, .hero-veil h1, .hero-veil .tag, .hero-veil .searchpill, .hero-cta,
  .photocard, .placecard, .add-banner, .gtoast, .modal, .modal-ov, .card-soft,
  .fiche .body { animation: none; }
  .btn:hover, .photocard:hover, .photocard:hover .ph, .chip:hover, .searchpill:hover,
  .guide-badge:hover .badge-inner, .star-pick .sp:hover, a.cta-band:hover, .cta-band:hover { transform: none; }
  .btn::after { display: none; }
}

/* --- Sélecteur d'îles (topbar, DESIGN.md §4/§9 — ADDITIF 2026-07-09) ------------
   Marque laloca en surtitre + nom de l'île courante ; >1 île active = dropdown
   verre nuit (vignette 42px + nom + ✓). Mono-île = lien simple (pas de .gisel). */
.gisel { position: relative; }
.gisel-btn { border: 0; background: transparent; cursor: pointer; padding: 0; font: inherit; }
.gisel-names { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.gisel-names small {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 11.5px; letter-spacing: .04em; opacity: .72;
}
.gisel-names strong { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; }
.gisel-chev { margin-left: 6px; transition: transform .25s ease-out; }
.gisel-btn[aria-expanded="true"] .gisel-chev { transform: rotate(180deg); }
.gisel-drop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 1200; min-width: 240px;
  padding: 8px; border-radius: 20px; background: var(--verre-nuit);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--shadow-lift);
  animation: giselIn .22s ease-out;
}
@keyframes giselIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.gisel-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px;
  color: #FFF9F0; text-decoration: none;
}
.gisel-row:hover { background: rgba(255, 255, 255, .13); }
.gisel-row.on { background: rgba(255, 255, 255, .08); }
.gisel-thumb {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--grad-mer); background-size: cover; background-position: center;
}
.gisel-lab { font-family: var(--font-display); font-size: 15.5px; flex: 1; }
.gisel-check { color: #2DD4BF; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .gisel-drop { animation: none; }
  .gisel-chev { transition: none; }
}

/* --- Peau v2 (§0.54, décision finale) : hero PHOTO (design Claude Designe) ----
   Photo par île (webHeroImage, dashboard) + Ken Burns + scrims ; sans photo =
   gradient --grad-mer + halos. Le zoom carte vit sur #/carte (explore). */
.hero-photo {
  position: fixed; inset: 0; z-index: 0;
  background: var(--grad-mer); background-size: cover; background-position: center;
  animation: kenburns 16s ease-in-out infinite alternate;
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(6, 26, 36, .44) 0%, rgba(6, 26, 36, 0) 30%,
    rgba(6, 26, 36, 0) 55%, rgba(6, 26, 36, .58) 100%);
}
.hero-photo.fallback {
  background-image:
    radial-gradient(560px 340px at 18% 22%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(720px 460px at 82% 78%, rgba(14, 165, 233, .35), transparent 65%),
    var(--grad-mer);
  animation: none;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-chips {
  /* §0.55 : CARROUSEL — une seule rangée qui DÉFILE (molette/drag/tactile),
     responsive (fondu sur les bords, snap par chip, barre masquée). */
  margin-top: 18px; max-width: min(860px, 92vw);
  display: flex; flex-wrap: nowrap; gap: 9px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 4px 26px; -webkit-mask-image: linear-gradient(90deg, transparent 0,
    #000 26px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0,
    #000 26px, #000 calc(100% - 26px), transparent 100%);
  pointer-events: auto; animation: gfade .9s .52s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-chips::-webkit-scrollbar { display: none; }
.hero-chips .chip { flex: none; scroll-snap-align: center; }
@media (max-width: 760px) {
  .hero-chips { max-width: 96vw; padding: 4px 18px; }
}
.hero-chips .chip {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .32); color: #FFF9F0;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  text-decoration: none; transition: background .2s ease-out, transform .2s ease-out;
}
.hero-chips .chip:hover { background: rgba(255, 255, 255, .28); transform: translateY(-2px); }

.gcta {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  border-radius: 999px; background: var(--grad-mer); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  text-decoration: none; box-shadow: 0 10px 26px -10px rgba(13, 148, 136, .6);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.gcta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(13, 148, 136, .7); }
.gtopbar.on-map .gcta { color: #fff; }
@media (max-width: 760px) {
  .gcta span { display: none; }
  .gcta { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; }
  .hero-chips { animation: none; }
  .hero-chips .chip:hover, .gcta:hover { transform: none; }
}

/* --- Globe de la landing (§0.50 — ADDITIF 2026-07-09) ---------------------------
   La racine nue = la planète : carte monde + voile de choix d'île (verre nuit,
   rangées .gisel-row réutilisées). L'ancienne grille .landing-grid est DORMANTE. */
.landing-veil {
  position: absolute; inset: 0; z-index: 400; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 8px;
  opacity: 1; transition: opacity .35s ease;
}
/* Masque le voile (titre + cartes) AVANT le vol cinématique vers l'île. */
.landing-veil.is-hiding { opacity: 0; pointer-events: none; }
.landing-veil .overline {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .42em; font-size: 11px; color: rgba(255, 249, 240, .78);
}
.landing-veil h1 {
  font-family: var(--font-display); font-weight: 520; color: #FFF9F0;
  font-size: clamp(34px, 6vw, 64px); margin: 0; line-height: 1.02;
  text-shadow: 0 6px 34px rgba(5, 20, 32, .55);
}
.landing-veil .sub {
  font-family: var(--font-display); font-style: italic; margin: 0;
  color: rgba(255, 249, 240, .85);
}
.landing-choice {
  pointer-events: auto; margin-top: 14px; padding: 8px;
  min-width: 264px; max-width: 400px; max-height: 44vh; overflow: auto;
  border-radius: 20px; background: var(--verre-nuit);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column; gap: 2px;
}
.landing-choice .gisel-lab small {
  display: block; font-family: var(--font-body); font-size: 11px;
  opacity: .65; margin-top: 1px;
}

/* §0.64 — Carrousel d'îles de la page d'accueil (racine Islaloca) : cartes glassy
   sur le voile, défilement horizontal PARTAGÉ (wireChipsCarousel → .chips-carousel
   + .chips-arrow). Les nouvelles îles arrivent automatiquement (data-driven). */
.landing-veil .chips-carousel { max-width: min(1080px, 94vw); }
.isle-carousel {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 10px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; pointer-events: auto; flex: 1 1 auto; min-width: 0;
}
.isle-carousel::-webkit-scrollbar { display: none; }
.isle-card {
  flex: 0 0 auto; width: 210px; scroll-snap-align: center;
  display: flex; flex-direction: column; text-decoration: none;
  border-radius: 18px; overflow: hidden;
  background: var(--verre-nuit, rgba(6, 26, 36, .55));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: var(--shadow-lift, 0 18px 40px -18px rgba(0, 0, 0, .6));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .22s ease-out, box-shadow .22s ease-out;
}
.isle-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .7); }
.isle-ph {
  display: block; height: 120px;
  background: var(--grad-mer, linear-gradient(120deg, #0f766e, #0d9488)) center/cover no-repeat;
}
.isle-bd { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px 14px; }
.isle-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: #FFF9F0; }
.isle-tag { font-family: var(--font-body); font-size: 12px; color: rgba(255, 249, 240, .75); line-height: 1.3; }
.landing-empty {
  pointer-events: auto; margin-top: 14px; padding: 18px 22px; border-radius: 16px;
  background: var(--verre-nuit, rgba(6, 26, 36, .5)); border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 249, 240, .8); font-family: var(--font-body);
}
@media (max-width: 760px) {
  .isle-card { width: 168px; }
  .isle-ph { height: 100px; }
}

/* --- Vol cinématique « planète → lieu » (place.js/map.js, 2026-07-14) : overlay
   non bloquant par-dessus la carte pendant le survol vers une fiche ouverte hors
   carte (liste/annuaire/accès direct). Mêmes codes visuels que la landing. */
.fly-veil {
  position: absolute; inset: 0; z-index: 400; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px;
}
.fly-veil .fly-pin {
  font-size: 40px; filter: drop-shadow(0 6px 18px rgba(5, 20, 32, .5));
  animation: gfade .6s cubic-bezier(.2, .8, .2, 1) both;
}
.fly-veil .fly-name {
  font-family: var(--font-display); font-weight: 520; color: #FFF9F0;
  font-size: clamp(24px, 4.4vw, 44px); line-height: 1.04;
  text-shadow: 0 6px 34px rgba(5, 20, 32, .55);
  animation: gfade .7s .12s cubic-bezier(.2, .8, .2, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  .fly-veil .fly-pin, .fly-veil .fly-name { animation: none; }
}

/* §0.56 — Carrousel des chips : ceinture-bretelles (gagne sur toute règle
   résiduelle : UNE rangée, défilement horizontal, jamais de retour à la ligne). */
.hero-veil .hero-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  justify-content: flex-start !important;
  max-width: min(860px, 92vw) !important;
}
.hero-veil .hero-chips .chip { flex: 0 0 auto !important; white-space: nowrap; }

/* §0.58 — Flèches du carrousel de chips (desktop ; masquées ≤760px = tactile). */
.chips-carousel {
  margin-top: 18px; display: flex; align-items: center; gap: 6px;
  max-width: min(940px, 96vw); pointer-events: auto;
}
.chips-carousel .hero-chips { margin-top: 0 !important; }
.chips-arrow {
  flex: none; width: 38px; height: 38px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .32);
  color: #FFF9F0; font-size: 22px; line-height: 1; padding: 0 0 3px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .2s ease-out, opacity .2s ease-out;
}
.chips-arrow:hover { background: rgba(255, 255, 255, .28); }
.chips-carousel.at-start .chips-arrow.left,
.chips-carousel.at-end .chips-arrow.right { opacity: .25; pointer-events: none; }
.chips-carousel.no-overflow .chips-arrow { display: none; }
@media (max-width: 760px) { .chips-arrow { display: none; } }

/* §0.63 (2026-07-10) — Le carrousel de chips sert AUSSI sur la carte (#chips) :
   mêmes flèches ‹ ›, mais habillées comme les pastilles blanches de la carte
   (fond clair, pas le verre sombre du hero). La rangée #chips défile entre elles. */
.explore-ui .chips-carousel { margin-top: 0; gap: 8px; max-width: 100%; }
.explore-ui .chips-carousel .chips { flex: 1 1 auto; min-width: 0; margin: 0; }
.explore-ui .chips-arrow {
  background: rgba(255, 255, 255, .92); color: var(--profond);
  border: 1px solid rgba(6, 26, 36, .12);
  box-shadow: 0 8px 22px -12px rgba(6, 26, 36, .5);
}
.explore-ui .chips-arrow:hover { background: #fff; }

/* §0.59 — Crédit photo du hero (respect des licences — discret, bas droite). */
.hero-credit {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: 11px; color: rgba(255, 249, 240, .82);
  background: rgba(6, 26, 36, .42); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  pointer-events: auto;
}
@media (max-width: 760px) { .hero-credit { font-size: 10px; right: 8px; bottom: 8px; } }

/* §0.65 — Page « Envies » (#/envies) : la 2e page d'une île, miroir web de
   l'accueil de l'app mobile. Bandeau photo (webHeroImage + scrim), grille de
   blocs de catégories (les tuiles .envie existantes, en GRILLE au lieu d'un
   rail), carrousel événements + rail annonces (mêmes .photocard). ADDITIF. */
.envies-page { position: relative; z-index: 500; background: var(--sable); min-height: 100vh; }
.envies-hero {
  position: relative; min-height: min(44vh, 420px);
  display: flex; align-items: flex-end;
  background: var(--grad-mer); background-size: cover; background-position: center;
}
.envies-hero.fallback {
  background-image:
    radial-gradient(560px 340px at 18% 22%, rgba(255, 255, 255, .14), transparent 60%),
    radial-gradient(720px 460px at 82% 78%, rgba(14, 165, 233, .35), transparent 65%),
    var(--grad-mer);
}
.envies-hero-veil {
  width: 100%; padding: 120px 0 34px;
  background: linear-gradient(180deg, rgba(6, 26, 36, .38) 0%, rgba(6, 26, 36, .10) 40%,
                              rgba(6, 26, 36, .62) 100%);
}
.envies-hero-veil h1, .envies-hero-veil .sub { margin-left: 0; margin-right: 0; }
.envies-hero-veil .overline {
  color: rgba(255, 249, 240, .82); font-family: var(--font-head); font-weight: 700;
  letter-spacing: 5px; font-size: 12px; text-transform: uppercase;
  animation: gfade .7s .05s cubic-bezier(.2, .8, .2, 1) both;
}
.envies-hero-veil h1 {
  color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 5.6vw, 58px); letter-spacing: -.01em; margin: 8px auto 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
  animation: gfade .8s .16s cubic-bezier(.2, .8, .2, 1) both;
}
.envies-hero-veil .sub {
  color: rgba(255, 255, 255, .92); font-family: var(--font-display); font-style: italic;
  font-size: clamp(15px, 2.2vw, 20px); margin: 0 auto 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  animation: gfade .8s .26s cubic-bezier(.2, .8, .2, 1) both;
}
.envies-hero-veil .btn { animation: gfade .8s .36s cubic-bezier(.2, .8, .2, 1) both; }
.envies-page .wrap { padding-bottom: 30px; }
.envies-grid {
  display: grid; gap: 18px; padding: 12px 2px 8px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.envies-grid .photocard.envie { width: auto; }
.envies-grid .envie .ph { height: 210px; }
.env-seeall {
  display: inline-block; margin: 4px 0 2px; font-family: var(--font-head);
  font-weight: 700; font-size: 14px; color: var(--lagon);
}
.env-seeall:hover { text-decoration: underline; }

/* --- Annuaire d'un bloc d'envie (2026-07-14) ------------------------------- */
.annu-page { position: relative; z-index: 500; background: var(--sable); min-height: 100vh; }
.annu-hero { background: var(--grad-mer); padding: 92px 0 26px; color: #fff; }
.annu-hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.annu-hero h1 {
  flex: 1 1 auto; color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4vw, 44px); letter-spacing: -.01em;
}
.annu-back { flex: 0 0 100%; color: rgba(255, 255, 255, .9); font-weight: 600; font-size: 14px; }
.annu-back:hover { color: #fff; text-decoration: underline; }
.annu-hero .btn.ghost { flex: 0 0 auto; }
/* Classement par quartier (2026-08-20) : chips DONNÉES (quartiers des fiches
   du groupe), défilement horizontal sur mobile — jamais de liste en dur. */
.annu-quartiers {
  display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.annu-quartiers::-webkit-scrollbar { display: none; }
.qchip {
  flex: none; border: 1px solid var(--stroke); background: #fff;
  color: var(--profond); font: 600 13.5px var(--font-head);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow-s); white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.qchip:hover { transform: translateY(-1px); }
.qchip.on { background: var(--profond); border-color: var(--profond); color: #fff; }
.annu-list { display: grid; gap: 16px; padding: 22px 0 40px; }
.annu-row {
  display: flex; gap: 16px; background: var(--ecume); border: 1px solid var(--stroke);
  border-radius: var(--radius); box-shadow: var(--shadow-s); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.annu-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(13, 148, 136, .28); }
.annu-row.vitrine { border-color: rgba(245, 158, 11, .5); box-shadow: 0 14px 40px -20px rgba(245, 158, 11, .5); }
.annu-ph {
  flex: 0 0 130px; align-self: stretch; min-height: 120px;
  background: linear-gradient(140deg, #dbe6ea, #cfdde3) center/cover no-repeat;
}
.annu-ph.empty { background: var(--grad-mer); opacity: .22; }
.annu-bd { flex: 1 1 auto; padding: 14px 16px 15px; min-width: 0; }
.annu-bd h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.annu-bd .meta { color: var(--marine); font-size: 13px; margin-top: 5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.annu-bd .meta .star { color: var(--soleil); letter-spacing: 1px; }
.annu-bd p { color: var(--marine); font-size: 14px; margin: 8px 0 0; line-height: 1.5; }
.annu-badge {
  display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-head);
  font-size: 11.5px; font-weight: 700; color: #fff; background: var(--grad-chaud);
  padding: 3px 9px; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(245, 158, 11, .7);
}
.annu-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.annu-empty { color: var(--marine); padding: 40px 0; text-align: center; }
@media (max-width: 560px) {
  .annu-ph { flex-basis: 96px; }
  .annu-row { border-radius: 18px; }
}

/* §0.65 — Petites annonces (fondations « leboncoin » par île) : page #/annonces
   (grille de cartes blanches, badge prix corail sur la photo) + mini-cartes du
   rail de la page Envies. Contact data-driven (boutons tel/mail si renseignés). */
.annonces-page { position: relative; z-index: 500; background: var(--sable); min-height: 100vh; padding-top: 86px; }
.annonces-head .overline {
  color: var(--marine); font-family: var(--font-head); font-weight: 700;
  letter-spacing: 4px; font-size: 11.5px; text-transform: uppercase;
}
.annonces-head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -.01em; margin: 6px 0 16px;
}
.annonces-tools { margin-bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.annonces-tools .searchpill { box-shadow: var(--shadow-s); border-color: var(--stroke); flex: 1 1 220px; }
/* Formulaire de dépôt d'annonce (connexion requise) */
.ad-form {
  margin: 6px 0 14px; padding: 16px; border: 1px solid var(--stroke);
  border-radius: 14px; background: var(--surface, #fff); box-shadow: var(--shadow-s);
  display: flex; flex-direction: column; gap: 12px;
}
/* L'attribut `hidden` doit l'emporter sur le display:flex ci-dessus. */
.ad-form[hidden] { display: none; }
.ad-form .ad-field { display: flex; flex-direction: column; gap: 4px; }
.ad-form label { font-size: 13px; font-weight: 600; }
.ad-form input, .ad-form textarea, .ad-form select {
  padding: 9px 11px; border: 1px solid var(--stroke); border-radius: 10px;
  font: inherit; background: var(--bg, #fff); color: inherit; width: 100%;
}
.ad-form .ad-row2 { display: flex; gap: 10px; }
.ad-form .ad-row2 .ad-field:first-child { flex: 1 1 auto; }
.ad-form .ad-accept { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.ad-form .ad-accept input { width: auto; margin-top: 2px; }
.ad-form .ad-error { color: #b91c1c; font-size: 13px; }
.ad-form .ad-actions { display: flex; justify-content: flex-end; gap: 10px; }
.ad-form .hint { font-size: 11px; opacity: .7; }
/* Photo d'annonce (palier gratuit : 1 max) — vignette du fichier stocké. */
.ad-form .ad-photo-zone { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.ad-form .ad-photo-thumb {
  position: relative; display: inline-block; width: 92px; height: 92px;
  border-radius: 10px; background-size: cover; background-position: center;
  border: 1px solid rgba(15, 23, 42, .15);
}
.ad-form .ad-photo-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border: none; border-radius: 50%; background: rgba(15, 23, 42, .65);
  color: #fff; font-size: 12px; line-height: 22px; cursor: pointer; padding: 0;
}
.ad-form .ad-photo-del:hover { background: rgba(185, 28, 28, .85); }
.annonces-head .chips { margin-bottom: 6px; }
.annonces-head .chip { box-shadow: var(--shadow-s); border-color: var(--stroke); }
.annonce-grid {
  display: grid; gap: 18px; padding: 10px 2px 26px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.annonce-card {
  background: var(--ecume); border: 1px solid var(--stroke); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
  animation: gpop .45s cubic-bezier(.2, .8, .2, 1) both;
}
.annonce-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.annonce-card .ph {
  position: relative; height: 170px;
  background: linear-gradient(140deg, #dbe6ea, #cfdde3) center/cover no-repeat;
}
.annonce-card .ph .prix, .annonce-mini .ph .prix {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--grad-chaud); color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: 14px; padding: 5px 13px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(255, 107, 87, .6);
}
.annonce-card .bd { padding: 14px 17px 16px; }
.annonce-card .bd .meta {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  color: var(--marine); font-size: 12px; margin-bottom: 5px;
}
.annonce-card .bd .meta .cat {
  background: rgba(13, 148, 136, .10); color: var(--lagon);
  font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.annonce-card .bd h3 { font-size: 17px; font-weight: 700; letter-spacing: -.1px; }
.annonce-card .bd p {
  color: var(--marine); font-size: 13.5px; line-height: 1.5; margin: 7px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.annonce-card .row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.photocard.annonce-mini { width: 240px; text-decoration: none; }
.photocard.annonce-mini .ph { position: relative; height: 150px; }
@media (max-width: 640px) {
  .envies-hero-veil { padding-top: 96px; }
  .envies-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .envies-grid .envie .ph { height: 170px; }
  /* auto-fill (audit 2026-08-14) : 2 colonnes figées écrasaient les cartes
     sous ~360px (pliables fermés 344px) — la grille respire seule. */
  .annonce-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .annonce-card .ph { height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .envies-hero-veil .overline, .envies-hero-veil h1, .envies-hero-veil .sub,
  .envies-hero-veil .btn, .annonce-card { animation: none; }
  .annonce-card:hover { transform: none; }
}

/* --- §0.70 : inscription facile, QR de parrainage, règlements, carte de visite
   (styles ADDITIFS, thème « Lagon ») --------------------------------------- */
.insc-ref { background: rgba(13,148,136,.1); border: 1px solid rgba(13,148,136,.3);
  border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.insc-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px;
  margin: 6px 0; cursor: pointer; }
.insc-terms input { margin-top: 3px; }
.insc-stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.insc-store { display: inline-flex; align-items: center; gap: 8px; background: #0B1220;
  color: #fff; border-radius: 10px; padding: 9px 14px; font-size: 13px;
  font-weight: 600; text-decoration: none; }
.insc-store:hover { opacity: .9; }
.insc-warn { display: flex; gap: 10px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.4);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 12px; }
.insc-ok { color: #0d9488; font-weight: 600; font-size: 14px; }
.insc-qr { background: #fff; border-radius: 12px; padding: 10px; width: fit-content;
  margin-top: 10px; box-shadow: 0 2px 10px rgba(2,44,63,.12); }
.insc-qr svg { display: block; width: 148px; height: 148px; }
.legal-item { display: flex; gap: 10px; align-items: center; justify-content: space-between;
  margin: 10px 0; padding: 14px 16px; text-decoration: none; }
.legal-req { font-size: 11px; font-weight: 700; color: #b45309; background: rgba(251,191,36,.15);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.legal-body h2, .legal-body h3, .legal-body h4 { margin: 18px 0 6px; }
.legal-body p, .legal-body li { line-height: 1.55; font-size: 15px; }
.legal-body ul { padding-left: 20px; }

/* Carte de visite : ratio ~85×55, dégradé lagon, imprimable. */
.bcard { display: flex; gap: 14px; align-items: stretch; justify-content: space-between;
  aspect-ratio: 85 / 55; max-width: 460px; border-radius: 16px; padding: 20px;
  color: #fff; background: linear-gradient(135deg, #0B3B54 0%, #0F766E 60%, #0D9488 100%);
  box-shadow: 0 10px 30px rgba(2,44,63,.35); }
.bcard-left { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 0; }
.bcard-photo { width: 74px; height: 74px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.85); margin-bottom: auto; }
.bcard-initials { display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.18); font-size: 26px; font-weight: 800; }
.bcard-name { font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.bcard-company { font-size: 13px; opacity: .85; }
.bcard-rank { font-size: 12px; font-weight: 700; color: #FDE68A; }
.bcard-community { font-size: 13px; margin-top: 4px; }
.bcard-right { display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; flex: 0 0 auto; }
.bcard-qr { background: #fff; border-radius: 10px; padding: 7px; }
.bcard-qr svg { display: block; width: 108px; height: 108px; }
.bcard-code { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .5px; }
.bcard-brand { font-size: 11px; opacity: .75; font-weight: 700; text-transform: lowercase; }
@media print {
  /* Seule la carte s'imprime : chrome du site masqué, fond conservé. */
  body * { visibility: hidden; }
  .bcard-print, .bcard-print * { visibility: visible; }
  .bcard-print { position: fixed; left: 10mm; top: 10mm; width: 85mm; height: 55mm;
    max-width: none; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bcard-hide-print { display: none !important; }
}

/* ============================================================================
   ATELIER VITRINE PLEIN ÉCRAN (« ve- » = vitrine editor, 2026-08-13).
   L'éditeur SORT de la colonne du compte (560 px) : atelier type Wix —
   panneau de réglages à gauche, aperçu dominant à droite, mis à l'échelle
   d'un VRAI viewport (390/1280 px logiques, cf. applyPvMode). Sur petit
   écran : une vue à la fois (data-view sur .ve-shell), aperçu d'abord.
   z-index 1500 : au-dessus de la topbar (1200), SOUS les modales (2000) et
   toasts (2200). Le modal photo interne vit à 1600.
   ========================================================================== */
.ve-workspace { position: fixed; inset: 0; z-index: 1500; background: var(--sable); overflow: hidden; }
/* La carte hôte anime un transform (gfade) : TANT qu'il est appliqué, elle
   serait le bloc conteneur du fixed ci-dessus et l'atelier resterait
   prisonnier de la colonne du compte. Atelier ouvert = animation coupée. */
.card-soft:has(> .ve-workspace) { animation: none; }
.ve-shell { display: flex; flex-direction: column; height: 100%; }
.ve-top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 12px; background: var(--ecume);
  border-bottom: 1px solid var(--stroke); box-shadow: var(--shadow-s);
}
.ve-name {
  font-family: var(--font-head); font-size: 15px; color: var(--profond);
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ve-msg { flex: 1 1 40px; min-width: 30px; font-size: 12px; text-align: right; }
.ve-tabs { display: none; }
.ve-body { flex: 1; display: flex; min-height: 0; }
.ve-side {
  width: 400px; max-width: 46vw; overflow-y: auto; padding: 12px 14px 48px;
  border-right: 1px solid var(--stroke); background: var(--sable);
}
.ve-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  min-width: 0; padding: 10px 14px 14px; overflow: hidden;
}
.ve-hint { margin: 0 0 6px; font-size: 12px; text-align: center; }
.ve-frame-wrap {
  overflow: hidden; background: #fff; border: 1px solid var(--stroke);
  border-radius: 12px; box-shadow: var(--shadow);
}
.ve-frame-wrap.ve-phone { border-radius: 26px; border: 6px solid #12212b; }
.ve-frame-wrap iframe { border: 0; display: block; background: #fff; transform-origin: 0 0; }
/* Tiroirs du panneau : une idée = un tiroir, gros libellé, chevron. */
.ve-group {
  background: var(--ecume); border: 1px solid var(--stroke);
  border-radius: 16px; margin: 0 0 10px; box-shadow: var(--shadow-s);
}
.ve-group > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; font-family: var(--font-head); font-weight: 700;
  font-size: 14.5px; color: var(--profond); border-radius: 16px;
}
.ve-group > summary::-webkit-details-marker { display: none; }
.ve-group > summary::after { content: '▾'; margin-left: auto; opacity: .45; transition: transform .2s; }
.ve-group[open] > summary::after { transform: rotate(180deg); }
.ve-group > summary:hover { color: var(--lagon); }
.ve-gi { font-size: 17px; }
.ve-gbody { padding: 0 14px 14px; }
.ve-gbody .fld { display: block; margin: 8px 0 0; font-size: 13px; color: var(--marine); font-weight: 600; }
/* Modal « Cette photo » (interne à l'atelier). */
.ve-modal {
  position: fixed; inset: 0; z-index: 1600; background: var(--verre-nuit);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ve-modal[hidden] { display: none; }
.ve-modal-card {
  background: var(--sable); border-radius: 18px; box-shadow: var(--shadow);
  padding: 16px; width: min(460px, 94vw); max-height: 86vh; overflow: auto;
}
@media (max-width: 899px) {
  .ve-name { display: none; }
  .ve-side { width: 100%; max-width: none; border-right: 0; }
  /* Une vue à la fois : les onglets 👁/⚙️ du haut font la bascule. */
  .ve-tabs {
    display: flex; border: 1px solid var(--stroke); border-radius: 999px;
    overflow: hidden; background: var(--sable);
  }
  .ve-tabs button {
    border: 0; background: none; padding: 8px 13px; cursor: pointer;
    font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
    color: var(--marine);
  }
  .ve-tabs button.on { background: var(--lagon); color: #fff; }
  .ve-shell[data-view="preview"] .ve-side { display: none; }
  .ve-shell[data-view="settings"] .ve-stage { display: none; }
  .ve-msg { flex-basis: 100%; order: 9; text-align: left; min-height: 0; }
}

/* --- Page « Mon compte » : grille 2 colonnes sur PC (2026-08-13) ----------- */
/* La colonne unique de 560 px laissait l'écran vide sur ordinateur. Les cartes
   gardent leurs marges inline historiques : le !important les neutralise DANS
   la grille seulement (le gap fait l'espacement, sinon il double). */
.acct-grid { display: grid; gap: 16px; align-items: start; }
.acct-grid > .card-soft { margin: 0 !important; }
/* 900 (et plus 1000) : l'iPad portrait (768-834) et les pliables dépliés
   profitent aussi des 2 colonnes — bande 768-1024 conçue (audit 2026-08-14). */
@media (min-width: 900px) {
  .acct-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================================
   LE CARNET DU LAGON (« rt- » = road-trip, refonte 2026-08-14).
   Cartes-photos d'étape, onglets de jours (marque-pages), rail « Mes envies »,
   ajout sur place, carte Leaflet à pins numérotés. Tokens DA « Lagon »
   uniquement — ADDITIF (contrat guide.css:25-27). Breakpoints : 600 / 900.
   ========================================================================== */
:root { --rt-indigo: #6366F1; --rt-ciel: #0EA5E9; }
.rt-wrap { padding: 88px 0 40px; }
.rt-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 40px); }
.rt-head h1 .muted { font-weight: 400; color: var(--marine); }
.rt-head p { color: var(--marine); margin: 6px 0 18px; }

/* — Galerie de couvertures — */
.rt-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.rt-cover {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--ecume); border: 1px solid var(--stroke); box-shadow: var(--shadow-s);
  padding: 0; text-align: left; font: inherit; color: inherit;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
  animation: gpop .5s cubic-bezier(.2, .8, .2, 1) both;
}
.rt-cover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.rt-cover .ph {
  position: relative; height: 150px;
  background: var(--grad-mer) center/cover no-repeat;
}
.rt-cover .ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 59, 84, .28));
}
.rt-cover-prog {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: var(--verre-nuit); color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 4px 11px;
}
.rt-cover .bd { padding: 13px 16px 15px; }
.rt-cover .bd h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.rt-cover .bd .meta { color: var(--marine); font-size: 12.5px; margin-top: 4px; }
.rt-newcard {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 190px; border: 1.5px dashed rgba(13, 148, 136, .45);
  background: rgba(13, 148, 136, .05); color: var(--lagon); font-weight: 700;
}
.rt-newcard .plus { font-size: 34px; line-height: 1; }
.rt-newcard:hover { background: rgba(13, 148, 136, .1); }
.rt-others-sec { margin-top: 26px; }
.rt-others-sec h3 { font-size: 15px; margin: 0 0 6px; }
.rt-other {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ecume); border: 1px solid var(--stroke); border-radius: 16px;
  padding: 12px 15px; margin: 8px 0; color: inherit;
}
.rt-other .muted { font-size: 12.5px; }
.rt-other-go { color: var(--lagon); font-weight: 700; font-size: 13px; white-space: nowrap; }

/* — État vide / invite de connexion — */
.rt-hero-empty {
  text-align: center; padding: 40px 18px 60px; max-width: 520px; margin: 0 auto;
}
.rt-hero-empty .ic { font-size: 52px; margin-bottom: 10px; }
.rt-hero-empty h1, .rt-hero-empty h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4vw, 34px); }
.rt-hero-empty p { color: var(--marine); margin: 10px 0 18px; line-height: 1.55; }
.rt-hero-empty .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* — Tête de l'éditeur — */
.rt-edhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.rt-backlink { font-weight: 600; font-size: 14px; }
/* Le statut d'enregistrement pousse le livre souvenir à droite (3 éléments). */
.rt-status { font-size: 13px; color: var(--marine); margin-left: auto; }
.rt-edhead .rt-mini { flex: none; display: inline-flex; align-items: center; text-decoration: none; }
.rt-status.ok { color: var(--lagon); }
.rt-status.ko { color: var(--corail); }
.rt-title {
  width: 100%; border: 0; background: transparent; padding: 2px 0 6px;
  font-family: var(--font-display); font-weight: 600; color: var(--profond);
  font-size: clamp(26px, 4vw, 38px); letter-spacing: -.01em;
  border-bottom: 1.5px dashed transparent; transition: border-color .2s ease;
}
.rt-title:hover, .rt-title:focus { outline: none; box-shadow: none; border-bottom-color: rgba(13, 148, 136, .4); }
.rt-dates {
  display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--marine); margin: 6px 0 10px;
}
.rt-dates input[type="date"] {
  border: 1px solid var(--stroke); border-radius: 12px; padding: 8px 10px;
  font: inherit; color: var(--profond); background: var(--ecume);
}

/* — Onglets de jours (marque-pages), collants sous la topbar — */
.rt-tabs {
  position: sticky; top: 62px; z-index: 500;
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px;
  background: var(--sable); /* repli sans color-mix (navigateurs < 2023) */
  background: color-mix(in srgb, var(--sable) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  scrollbar-width: none; margin: 0 0 6px;
}
.rt-tabs::-webkit-scrollbar { display: none; }
.rt-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--stroke); background: var(--ecume); color: var(--profond);
  font: inherit; font-weight: 700; font-size: 14.5px;
  box-shadow: var(--shadow-s); transition: border-color .2s ease, color .2s ease;
}
.rt-tab span { font-weight: 500; font-size: 11.5px; color: var(--marine); }
.rt-tab:hover { border-color: rgba(13, 148, 136, .4); color: var(--lagon); }
.rt-tab.heart { color: var(--corail); }
.rt-tab.plus { color: var(--lagon); font-size: 17px; }
/* Visible PAR DÉFAUT : masqué seulement quand le split ≥900 montre la carte
   d'office (une base display:none laissait un trou entre 899 et 900px —
   zooms/échelles Windows — où NI le bouton NI la carte n'existaient). */
.rt-maptoggle { display: inline-flex; }

/* — Journal + carte : 1 colonne, split ≥900 — */
.rt-editor { position: relative; }
.rt-mappanel {
  display: none; height: 44vh; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--stroke); box-shadow: var(--shadow-s); margin: 4px 0 14px;
}
.rt-mappanel #rt-map { width: 100%; height: 100%; }
.rt-editor.rt-map-open .rt-mappanel { display: block; }
@media (min-width: 900px) {
  .rt-editor { display: grid; grid-template-columns: minmax(340px, 5fr) 4fr; gap: 22px; align-items: start; }
  .rt-mappanel, .rt-editor.rt-map-open .rt-mappanel {
    display: block; position: sticky; top: 122px; margin: 0;
    height: calc(100vh - 142px); height: calc(100dvh - 142px);
  }
  .rt-maptoggle { display: none !important; }
}
@media (max-width: 899px) {
  /* La carte repliable vient AVANT le journal (sous les onglets). */
  .rt-editor { display: flex; flex-direction: column; }
  .rt-mappanel { order: -1; }
}

/* — Pins numérotés (couleur = jour) — */
.rt-pin-wrap { background: transparent; border: 0; }
.rt-pin {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px; font-family: var(--font-head);
  border: 2px solid #fff; box-shadow: 0 6px 16px -6px rgba(11, 59, 84, .6);
  background: var(--lagon);
}
.rt-pin.c0 { background: var(--lagon); }
.rt-pin.c1 { background: var(--corail); }
.rt-pin.c2 { background: var(--soleil); }
.rt-pin.c3 { background: var(--rt-indigo); }
.rt-pin.c4 { background: var(--rt-ciel); }
.rt-pin.heart { background: var(--ecume); color: var(--corail); font-size: 14px; width: 24px; height: 24px; }

/* — Sections de jour : reliure pointillée, numéro Fraunces — */
.rt-day { margin: 20px 0 6px; scroll-margin-top: 128px; }
.rt-day > header { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.rt-daynum {
  flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 20px;
  background: var(--lagon); box-shadow: var(--shadow-s);
}
.rt-daynum.c0 { background: var(--lagon); }
.rt-daynum.c1 { background: var(--corail); }
.rt-daynum.c2 { background: var(--soleil); }
.rt-daynum.c3 { background: var(--rt-indigo); }
.rt-daynum.c4 { background: var(--rt-ciel); }
.rt-day > header .tt { flex: 1 1 auto; min-width: 0; }
.rt-day > header h3 { font-family: var(--font-head); font-size: 17px; }
.rt-day > header .dt { color: var(--marine); font-size: 12.5px; }
.rt-day > header .ct { font-size: 12.5px; white-space: nowrap; }
.rt-stops { position: relative; padding-left: 19px; }
.rt-stops::before {
  content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 0;
  border-left: 2px dashed rgba(13, 148, 136, .35);
}
.rt-dayempty { color: var(--marine); font-size: 13px; margin: 8px 0 8px 12px; }

/* — Journal du jour : le récit de la journée, cliquable pour écrire — */
.rt-journalday {
  margin: 8px 0 10px 12px; padding: 10px 14px; border-radius: 14px; cursor: pointer;
  background: var(--sable); border: 1px solid var(--stroke);
  transition: border-color .2s ease, background .2s ease;
}
.rt-journalday:hover, .rt-journalday:focus-visible { border-color: rgba(13, 148, 136, .45); }
.rt-journalday .lbl { font-size: 12px; font-weight: 600; color: var(--marine); }
.rt-journalday p {
  margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--profond);
  white-space: pre-wrap; /* le récit garde ses paragraphes */
}
.rt-journalday.empty p { color: var(--marine); font-style: italic; }
.rt-journalday.editing { cursor: default; background: var(--ecume); }
.rt-journalday textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--stroke); border-radius: 12px; font: inherit; font-size: 14px;
  line-height: 1.6; color: var(--profond); background: var(--sable); resize: vertical;
}
.rt-journalday .jact { display: flex; justify-content: flex-end; margin-top: 8px; }
.rt-envies { margin: 8px 0 2px; scroll-margin-top: 128px; }
.rt-envies h3 { font-size: 15px; margin-bottom: 6px; }
.rt-envies h3 .muted { font-weight: 400; font-size: 12.5px; }
.rt-envies-rail { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 12px; -webkit-overflow-scrolling: touch; }
.rt-envie { flex: 0 0 150px; }
.rt-envie .ph {
  display: grid; place-items: center; height: 96px; border-radius: 16px;
  background: var(--grad-mer) center/cover no-repeat; color: #fff; font-size: 24px;
  border: 1px solid var(--stroke); box-shadow: var(--shadow-s);
}
.rt-envie .nm { font-weight: 700; font-size: 13px; margin: 6px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-envie .row { display: flex; gap: 6px; }

/* — Carte d'étape — */
.rt-stop {
  position: relative; background: var(--ecume); border: 1px solid var(--stroke);
  border-radius: 18px; box-shadow: var(--shadow-s); margin: 10px 0;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.rt-stop.rt-flash { border-color: var(--lagon); box-shadow: var(--ring); }
.rt-stop-main {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; cursor: pointer;
}
.rt-stop-main .num {
  flex: none; width: 26px; height: 26px; margin-left: -25px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12.5px;
  background: var(--lagon); border: 2px solid var(--sable);
}
.rt-stop-main .num.c1 { background: var(--corail); }
.rt-stop-main .num.c2 { background: var(--soleil); }
.rt-stop-main .num.c3 { background: var(--rt-indigo); }
.rt-stop-main .num.c4 { background: var(--rt-ciel); }
.rt-stop-main .thumb {
  flex: none; width: 58px; height: 58px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(140deg, #dbe6ea, #cfdde3) center/cover no-repeat;
}
.rt-stop-main .inf { flex: 1 1 auto; min-width: 0; }
.rt-stop-main .nm {
  display: block; color: var(--profond); font-weight: 700; font-size: 15.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rt-stop-main .nm:hover { color: var(--lagon); }
.rt-stop-main .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.rt-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--sable); border: 1px solid var(--stroke); border-radius: 999px;
  padding: 2px 9px; font-size: 11.5px; font-weight: 600; color: var(--marine);
}
.rt-pill.ok { color: var(--lagon); border-color: rgba(13, 148, 136, .35); }
.rt-stop-main .acts { display: flex; gap: 5px; flex: none; }
.rt-mini {
  min-width: 34px; min-height: 34px; padding: 4px 9px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--stroke); background: var(--ecume); color: var(--profond);
  font: inherit; font-size: 13px; font-weight: 600;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.rt-mini:hover { border-color: rgba(13, 148, 136, .4); color: var(--lagon); }
.rt-mini[disabled] { opacity: .35; cursor: default; }
.rt-mini.danger { color: var(--corail); }
.rt-mini.danger:hover { border-color: rgba(255, 107, 87, .5); color: var(--corail); }
.rt-mini.chev { transition: transform .25s ease; }
.rt-stop.open .rt-mini.chev { transform: rotate(180deg); }
.rt-stop-edit { padding: 2px 14px 13px; border-top: 1px dashed var(--stroke); margin: 0 2px; }
.rt-stop-edit .grid { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: end; margin: 10px 0 4px; }
.rt-stop-edit label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--marine); }
.rt-stop-edit label.chk { grid-auto-flow: column; align-items: center; min-height: 44px; cursor: pointer; }
.rt-stop-edit input[type="time"], .rt-stop-edit select {
  border: 1px solid var(--stroke); border-radius: 12px; padding: 9px 10px;
  font: inherit; font-size: 14px; color: var(--profond); background: var(--ecume); min-height: 42px;
}
.rt-stop-edit input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--lagon); }
.rt-stop-edit textarea {
  display: block; width: 100%; margin-top: 8px; padding: 10px 12px;
  border: 1px solid var(--stroke); border-radius: 12px; font: inherit; font-size: 14px;
  color: var(--profond); background: var(--sable); resize: vertical;
}
.rt-souvenirs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.rt-souvenirs .lbl { font-size: 12px; font-weight: 600; color: var(--marine); }
.rt-souvenir { width: 52px; height: 52px; border-radius: 12px; background: #dbe6ea center/cover no-repeat; position: relative; }
/* ✕ de retrait : petit, sur la vignette, jamais sous le doigt par accident */
.rt-phdel {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; line-height: 1; font-size: 11px;
  background: rgba(11, 59, 84, .78); color: #fff;
}
.rt-phdel:hover { background: var(--corail); }
.rt-souvenir.add {
  display: grid; place-items: center; cursor: pointer; font-size: 18px;
  border: 1.5px dashed rgba(13, 148, 136, .45); background: rgba(13, 148, 136, .06);
  color: var(--lagon);
}
.rt-souvenir.add:hover { background: rgba(13, 148, 136, .12); }
.rt-stop-edit .foot { margin-top: 10px; }

/* — « + Ajouter un lieu » au pied de chaque jour — */
.rt-add {
  display: block; width: 100%; margin: 4px 0 2px; padding: 12px; min-height: 46px;
  border: 1.5px dashed rgba(13, 148, 136, .45); border-radius: 16px; cursor: pointer;
  background: rgba(13, 148, 136, .05); color: var(--lagon);
  font: inherit; font-weight: 700; font-size: 14px;
  transition: background .2s ease;
}
.rt-add:hover { background: rgba(13, 148, 136, .1); }
.rt-foot { margin: 26px 0 8px; }

/* — Panneau d'ajout (recherche) & choix de jour — */
.rt-addmodal input[type="search"] {
  display: block; width: 100%; margin: 4px 0 8px; padding: 12px 14px;
  border: 1px solid var(--stroke); border-radius: 14px; font: inherit;
  color: var(--profond); background: var(--sable);
}
.rt-addmodal input[type="search"]:focus { outline: none; border-color: var(--lagon); box-shadow: var(--ring); }
.rt-addlist { max-height: min(46vh, 420px); overflow-y: auto; }
.rt-addrow {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 8px; border: 0; border-radius: 14px; cursor: pointer; background: transparent;
  font: inherit; color: var(--profond); min-height: 52px;
  transition: background .15s ease;
}
.rt-addrow:hover { background: rgba(13, 148, 136, .07); }
.rt-addrow .th {
  flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; font-size: 18px;
  background: linear-gradient(140deg, #dbe6ea, #cfdde3) center/cover no-repeat;
}
.rt-addrow .inf { flex: 1 1 auto; min-width: 0; display: grid; }
.rt-addrow .inf strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.rt-addrow .inf .muted { font-size: 12px; }
.rt-addrow .pl { flex: none; font-weight: 800; font-size: 17px; color: var(--lagon); }
.rt-addrow.added .pl { color: var(--marine); }
.rt-addrow.added { opacity: .6; }
.rt-dayrows { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; }
.rt-dayrow {
  text-align: left; padding: 12px 14px; min-height: 46px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--stroke); background: var(--ecume); font: inherit; font-weight: 600;
  color: var(--profond); transition: border-color .2s ease, color .2s ease;
}
.rt-dayrow:hover { border-color: rgba(13, 148, 136, .4); color: var(--lagon); }

/* — Toast avec « Annuler » (retrait d'étape réversible) — */
.gtoast.rt-undo { display: flex; gap: 14px; align-items: center; text-align: left; }
.gtoast.rt-undo button {
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12);
  color: #fff; font: inherit; font-weight: 700; border-radius: 999px;
  padding: 6px 14px; cursor: pointer; min-height: 34px;
}
.gtoast.rt-undo button:hover { background: rgba(255, 255, 255, .22); }

@media (max-width: 599px) {
  .rt-covers { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .rt-cover .ph { height: 110px; }
  .rt-cover .bd { padding: 10px 12px 12px; }
  .rt-cover .bd h3 { font-size: 16px; }
  .rt-stop-main { flex-wrap: wrap; }
  .rt-stop-main .acts { margin-left: auto; }
  .rt-tabs { top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-cover { animation: none; }
  .rt-cover:hover { transform: none; }
}

/* ============================================================================
   RESPONSIVE TRANSVERSAL (audit 2026-08-14) : menu de navigation repliable
   (la barre CLIPPAIT ses liens sur téléphone ET iPad portrait), héro compact
   en paysage bas (téléphone/pliable à l'horizontale), 100svh, grilles.
   ========================================================================== */
.gmenu-btn {
  display: none; border: 0; cursor: pointer; flex: none;
  width: 44px; height: 44px; border-radius: 13px; font-size: 20px;
  background: transparent; color: var(--profond);
}
.gtopbar.on-map .gmenu-btn { color: #fff; }
@media (max-width: 899px) {
  .gmenu-btn { display: grid; place-items: center; }
  .gtopnav {
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px 14px calc(16px + env(safe-area-inset-bottom));
    /* OPAQUE, pas verre (retour user 2026-08-20) : le menu déroulé se lisait
       mal par transparence sur le contenu de la page. */
    background: #fff;
    border-bottom: 1px solid var(--stroke); box-shadow: var(--shadow);
    max-height: calc(100dvh - 60px); overflow-y: auto;
  }
  .gtopbar.menu-open .gtopnav { display: flex; }
  .gtopnav .glink { padding: 13px 12px; font-size: 16px; border-radius: 14px; }
  .gtopnav .gcta { margin: 6px 0; }
  .gtopnav .glang { align-self: flex-start; margin-top: 8px; }
  .gtopbar.on-map .gtopnav { background: var(--profond); }
  .gtopbar.on-map .gtopnav .glink { color: #fff; }
}
/* Paysage bas (téléphone/Flip à l'horizontale) : le héros 100svh clippait son
   empilement — typo et marges compactées, pastille de scroll retirée. */
@media (orientation: landscape) and (max-height: 480px) {
  .hero-veil h1 { font-size: clamp(28px, 14vh, 56px); margin: 8px 0 6px; }
  .hero-veil .tag { font-size: 14px; margin-bottom: 12px; }
  .hero-cta { margin-top: 8px; }
  .hero-scroll { display: none; }
  .envies-hero-veil { padding-top: 74px; }
}
/* Barres navigateur mobiles : svh quand le navigateur le connaît (le repli
   100vh au-dessus reste pour les anciens). */
@supports (min-height: 100svh) {
  #app, .fiche, .landing { min-height: 100svh; }
}
/* Éléments fixés en bas : respirer au-dessus de la barre système (encoches). */
.gtoast { bottom: calc(26px + env(safe-area-inset-bottom)); }
.placecard, .add-banner { bottom: calc(18px + env(safe-area-inset-bottom)); }
.floating-search { bottom: calc(22px + env(safe-area-inset-bottom)); }

/* ============================================================================
   MA CARTE DE PRIX (« tp- » = tarifs page, 2026-08-17). Outil PRO, même famille
   que l'agenda des réservations et le Carnet du Lagon : tokens « Lagon »
   uniquement, ADDITIF (contrat guide.css:25-27), breakpoints 600 / 900.

   CAS D'USAGE N°1 : un restaurateur EN PLEIN SERVICE, sur son téléphone, qui
   marque un plat épuisé. D'où la hiérarchie : les CARTES de prix d'abord (rien
   au-dessus d'elles), la devise repliée en réglage, « Enregistrer » COLLANT en
   bas de page, et une disponibilité qui n'est plus une case de 13 px mais un
   interrupteur au pouce (44 px de haut, l'état écrit à côté).
   Le tableau HTML a disparu : une ligne est une GRILLE — quatre colonnes sur
   ordinateur, deux rangées empilées sous 600 px (nom + corbeille, puis prix +
   interrupteur), jamais de défilement horizontal.
   ========================================================================== */
/* Le corail de la DA (#FF6B57) tombe à 3:1 sur le sable : parfait pour une
   icône, insuffisant pour du TEXTE d'alerte (WCAG AA = 4.5:1). Ce brique-orangé
   est le corail assombri, réservé aux messages d'erreur et à « Épuisé ». */
:root { --tp-alerte: #C2410C; }
.tp-wrap { width: min(880px, 92vw); padding: 88px 0 40px; }
.tp-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4vw, 38px); }
.tp-sub { color: var(--marine); font-size: 14.5px; margin: 7px 0 18px; line-height: 1.5; }
.tp-body .muted { color: var(--marine); }
.tp-body .fld { display: block; font-size: 12.5px; font-weight: 600; color: var(--marine); }
.tp-hint { color: var(--marine); font-size: 12.5px; line-height: 1.5; margin: 8px 0 0; }
.tp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.tp-langs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }

/* — Bandeau de tête (2026-08-17) : quelle vitrine, quelle langue, et le coup
   d'œil au site publié. Les trois se rangent sur une ligne au large et
   s'empilent au téléphone ; le lien reste à droite (`margin-left:auto`) —
   c'est le geste de VÉRIFICATION, jamais celui qu'on cherche en premier. — */
.tp-top { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; margin: 0 0 14px; }
.tp-top .tp-chips, .tp-top .tp-langs { margin: 0; }
.tp-seelink {
  margin-left: auto; display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 2px; color: var(--lagon); font-size: 13.5px; font-weight: 700;
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.tp-seelink:hover, .tp-seelink:focus-visible { border-bottom-color: var(--lagon); }
.tp-fbnote { margin: 0 0 12px; }

/* — Une carte de prix — */
.tp-card {
  background: var(--ecume); border: 1px solid var(--stroke); border-radius: 20px;
  box-shadow: var(--shadow-s); margin: 0 0 14px; overflow: hidden;
}
.tp-card.is-new { border-color: rgba(13, 148, 136, .45); }
.tp-card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; }
.tp-card-head h2 {
  flex: 1 1 auto; min-width: 0; font-family: var(--font-head);
  font-size: 17px; overflow-wrap: anywhere;
}
.tp-card-bd { padding: 0 16px 16px; }
.tp-badge {
  flex: none; border-radius: 999px; padding: 3px 10px; font-size: 11px;
  font-weight: 800; letter-spacing: .3px; background: var(--lagon); color: #fff;
}
.tp-badge.warn { background: var(--soleil); color: var(--profond); }
.tp-line-nm .tp-badge { display: inline-block; margin-top: 5px; }

/* — Une ligne : GRILLE, jamais un tableau — */
/* Empilée par défaut (nom + corbeille, puis prix + interrupteur) : c'est la
   forme du téléphone ET de la tablette portrait, où le nom d'un plat a besoin
   de toute la largeur. Les quatre colonnes n'arrivent qu'à 900 px, et alors
   avec des largeurs FIXES : chaque ligne étant sa propre grille, des colonnes
   `auto` se recalent ligne par ligne et les prix cessent de s'aligner. */
.tp-lines { border-top: 1px solid var(--stroke); }
.tp-line {
  display: grid; align-items: center; gap: 8px 12px; padding: 10px 12px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "nm act" "pr sw";
  transition: background .2s ease, opacity .2s ease;
}
.tp-line + .tp-line { border-top: 1px dashed var(--stroke); }
.tp-line.is-out { background: rgba(255, 107, 87, .07); }
.tp-line.is-pending { background: rgba(13, 148, 136, .07); }
/* Ligne retirée : plus de prix ni d'interrupteur (ils ne veulent plus rien
   dire) — le nom barré et le chemin du retour, rien d'autre. */
.tp-line.is-gone { opacity: .55; grid-template-areas: "nm act"; }
.tp-line.is-gone .tp-line-pr, .tp-line.is-gone .tp-line-sw { display: none; }
.tp-line.is-gone .tp-line-nm strong { text-decoration: line-through; }
.tp-line-nm { grid-area: nm; min-width: 0; }
.tp-line-nm strong { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.tp-line-sub { display: block; color: var(--marine); font-size: 12px; margin-top: 2px; }
.tp-line-pr { grid-area: pr; display: flex; align-items: center; gap: 5px; }
.tp-line-sw { grid-area: sw; justify-self: end; }
.tp-line-act { grid-area: act; display: flex; justify-content: flex-end; }
/* Le prix d'une ligne en attente se cale EXACTEMENT sur la colonne des champs
   (même largeur, même retrait) : sinon la carte a l'air décousue. */
.tp-price, .tp-price-ro { width: 100%; max-width: 118px; text-align: right; }
.tp-price {
  min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--stroke); border-radius: 12px; background: var(--ecume);
  font: inherit; font-size: 15px; font-weight: 700; color: var(--profond);
  transition: border-color .2s ease, box-shadow .2s ease;
}
/* Dans un formulaire, le champ de prix garde la géométrie de ses voisins
   (.fld input) et n'en change que la lecture : chiffres à droite, en gras. */
.tp-f-price input { text-align: right; font-weight: 700; }
.tp-price:focus { outline: none; border-color: var(--lagon); box-shadow: var(--ring); }
.tp-price[disabled] { opacity: .5; }
/* Les flèches natives d'un champ nombre volent 20 px de large sans rien
   apporter au pouce (le clavier numérique fait le travail). */
.tp-price::-webkit-outer-spin-button, .tp-price::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tp-price { -moz-appearance: textfield; appearance: textfield; }
.tp-price-ro { padding-right: 12px; font-size: 15px; font-weight: 700; color: var(--marine); }
.tp-cur { font-size: 14px; font-weight: 700; color: var(--marine); }
.tp-unit { font-size: 12px; color: var(--marine); }

/* — Interrupteur « Disponible / Épuisé » : LE geste du service — */
.tp-sw {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  padding: 0 2px; cursor: pointer; user-select: none;
}
.tp-sw input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.tp-sw-tr {
  position: relative; flex: none; width: 46px; height: 27px; border-radius: 999px;
  background: rgba(11, 59, 84, .16); border: 1px solid var(--stroke);
  transition: background .2s ease, border-color .2s ease;
}
.tp-sw-kn {
  position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--ecume); box-shadow: 0 3px 8px -3px rgba(11, 59, 84, .7);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.tp-sw input:checked + .tp-sw-tr { background: var(--lagon); border-color: transparent; }
.tp-sw input:checked + .tp-sw-tr .tp-sw-kn { transform: translateX(19px); }
.tp-sw input:focus-visible + .tp-sw-tr { box-shadow: var(--ring); }
.tp-sw input:disabled + .tp-sw-tr { opacity: .5; }
.tp-sw-tx { min-width: 6.6em; font-size: 13.5px; font-weight: 700; color: var(--profond); }
.tp-sw-tx .off { color: var(--tp-alerte); }
.tp-sw input:checked ~ .tp-sw-tx .off { display: none; }
.tp-sw input:not(:checked) ~ .tp-sw-tx .on { display: none; }

/* — Boutons discrets d'une ligne (corbeille, annuler) — */
.tp-mini {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 6px 11px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--stroke); background: var(--ecume); color: var(--profond);
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.tp-mini:hover { border-color: rgba(13, 148, 136, .4); color: var(--lagon); }
.tp-mini.danger { color: var(--corail); }
.tp-mini.danger:hover { border-color: rgba(255, 107, 87, .5); color: var(--tp-alerte); }

/* — Texte ÉDITABLE EN PLACE (2026-08-17) : corriger une faute de frappe sans
   supprimer puis recréer la ligne (et donc reperdre son prix).
   Le pointillé sous le mot DIT qu'il s'édite, sans attendre un survol : au
   doigt il n'y a pas de survol, et un geste qu'on ne trouve pas n'existe pas
   (règle 16). Le crayon reste visible pour la même raison — discret (opacité),
   jamais absent — et sa boîte fait 44 px, ramenée par une marge négative pour
   ne pas gonfler la hauteur de la ligne.
   Une CELLULE, UN crayon : les textes d'une ligne (libellé, description)
   s'empilent dans `.tp-ed-vals`, le crayon reste seul en bout. La cellule est
   de niveau BLOC (`display: flex`), pour que la pastille « à enregistrer »
   passe dessous et non à côté du crayon. — */
.tp-ed { display: flex; align-items: center; gap: 1px; max-width: 100%; }
.tp-ed-vals {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
}
.tp-ed-tx {
  min-width: 0; overflow-wrap: anywhere; cursor: text;
  padding: 2px 5px; margin-left: -5px; border-radius: 8px;
  border-bottom: 1px dashed rgba(11, 59, 84, .22);
  transition: background .2s ease, border-color .2s ease;
}
.tp-ed-tx:hover { background: rgba(13, 148, 136, .09); border-bottom-color: var(--lagon); }
.tp-ed-tx:focus-visible { outline: none; box-shadow: var(--ring); border-bottom-color: var(--lagon); }
/* Chaque texte garde la typo qu'il avait AVANT de devenir éditable : le nom
   d'une ligne, sa description dessous, le titre de la carte (qui hérite du
   <h2> qui le porte). ⚠️ Ces trois règles passent AVANT le repli : à
   spécificité égale, c'est l'ordre qui décide, et le repli doit garder son
   italique jusque dans un titre de carte. */
.tp-ed-main { font-size: 15px; font-weight: 700; }
.tp-ed-sub { margin-top: 3px; color: var(--marine); font-size: 12px; font-weight: 500; }
.tp-ed-hd .tp-ed-main { font: inherit; }
/* Repli : ce que le visiteur LIRA tant que la traduction manque. En italique
   grisé, il se distingue d'un texte réellement saisi dans cette langue. */
.tp-ed-tx.is-fb, .tp-line-nm strong.is-fb {
  color: var(--marine); font-style: italic; font-weight: 500;
}
.tp-ed-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; margin: -11px 0; padding: 0;
  border: 0; background: none; cursor: pointer; font-size: 13px; line-height: 1;
  opacity: .45; transition: opacity .2s ease;
}
.tp-ed-btn:hover, .tp-ed-btn:focus-visible { opacity: 1; }
/* Le formulaire prend la largeur de la CELLULE, jamais celle de l'écran, et
   empile ses champs — la même forme au téléphone et au bureau : à l'ouverture,
   la ligne grandit en hauteur, rien ne se réorganise. */
.tp-ed.is-editing { align-items: stretch; }
.tp-edf { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tp-ed-in {
  width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px;
  border: 1px solid var(--lagon); border-radius: 11px; background: var(--ecume);
  font: inherit; font-size: 15px; font-weight: 600; color: var(--profond);
}
.tp-ed-in:focus { outline: none; box-shadow: var(--ring); }
/* La description reste SECONDAIRE jusque dans le formulaire : plus légère que
   le libellé, on voit d'un coup d'œil lequel des deux champs est le titre. */
.tp-ed-in.is-sub { min-height: 40px; font-size: 13px; font-weight: 500; }

/* — Ajouter une ligne / une carte — */
.tp-addrow { padding: 10px 14px 12px; }
.tp-addbtn {
  display: block; width: 100%; min-height: 46px; padding: 12px; cursor: pointer;
  border: 1.5px dashed rgba(13, 148, 136, .45); border-radius: 14px;
  background: rgba(13, 148, 136, .05); color: var(--lagon);
  font: inherit; font-weight: 700; font-size: 14px;
  transition: background .2s ease;
}
.tp-addbtn:hover { background: rgba(13, 148, 136, .1); }
.tp-newcard { margin-top: 4px; }
.tp-form {
  margin: 0 14px 14px; padding: 12px 13px 13px;
  background: var(--sable); border: 1px solid var(--stroke); border-radius: 16px;
}
.tp-form-row { display: flex; gap: 10px 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; }
.tp-form-row:first-child { margin-top: 0; }
.tp-f-grow { flex: 1 1 190px; min-width: 0; }
.tp-f-price { flex: 0 0 130px; }
.tp-f-price input { width: 100%; }
.tp-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

/* — Créer sa première carte : UN écran guidé — */
.tp-create {
  background: var(--ecume); border: 1.5px dashed rgba(13, 148, 136, .45);
  border-radius: var(--radius); padding: 20px 20px 22px; margin: 4px 0 0;
}
.tp-create-hd { text-align: center; margin-bottom: 14px; }
.tp-create-ic { font-size: 40px; line-height: 1; }
.tp-create h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 8px 0 0; }
.tp-create-hd .tp-hint { max-width: 44ch; margin: 8px auto 0; }
.tp-empty { text-align: center; padding: 32px 16px 40px; color: var(--marine); }
.tp-empty p { max-width: 46ch; margin: 10px auto 0; line-height: 1.55; }

/* — Photo de la carte (palier d'entrée) — */
.tp-photo { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.tp-photo-side { flex: 0 0 auto; }
.tp-photo-side img { width: 150px; border-radius: 14px; border: 1px solid var(--stroke); }
.tp-photo-bd { flex: 1 1 240px; min-width: 0; }
.tp-free-text {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; min-height: 210px;
  border: 1px solid var(--stroke); border-radius: 14px; background: var(--ecume);
  font: inherit; font-size: 15px; line-height: 1.6; color: var(--profond); resize: vertical;
}
.tp-free-text:focus { outline: none; border-color: var(--lagon); box-shadow: var(--ring); }
.tp-mt { display: block; margin-top: 12px; }

/* — Réglages secondaires : la devise se REPLIE (on la choisit une fois) — */
.tp-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-top: 16px; }
.tp-tool {
  flex: 1 1 280px; background: var(--ecume); border: 1px solid var(--stroke);
  border-radius: 16px; box-shadow: var(--shadow-s);
}
.tp-tool > summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 14px;
  cursor: pointer; list-style: none; border-radius: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--profond);
}
.tp-tool > summary::-webkit-details-marker { display: none; }
.tp-tool > summary::after { content: '▾'; opacity: .45; transition: transform .2s ease; }
.tp-tool[open] > summary::after { transform: rotate(180deg); }
.tp-tool > summary:hover { color: var(--lagon); }
.tp-tool-val { margin-left: auto; font-weight: 800; color: var(--lagon); }
.tp-tool-bd { padding: 0 14px 14px; }
.tp-tools .btn { min-height: 48px; }

/* — Barre « Enregistrer » COLLANTE : jamais à chercher, jamais à faire défiler — */
.tp-bar {
  position: sticky; bottom: 0; z-index: 600;
  display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  margin-top: 16px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--verre-jour);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--stroke); border-radius: 18px; box-shadow: var(--shadow);
  transition: border-color .2s ease;
}
.tp-bar.has-pending { border-color: rgba(13, 148, 136, .55); }
.tp-state { flex: 1 1 auto; min-width: 0; display: flex; gap: 4px 10px; flex-wrap: wrap; align-items: center; }
.tp-pending { font-size: 12.5px; font-weight: 700; color: var(--lagon); }
.tp-msg { font-size: 12.5px; font-weight: 600; }
.tp-msg.ok { color: var(--lagon); }
.tp-msg.ko { color: var(--tp-alerte); }

/* — Téléphone : la barre passe en pleine largeur, les libellés s'effacent — */
/* ⚠️ Bornes en .98 : un `max-width: 599px` laisse un trou à 599 < w < 600 (zoom
   Windows, échelles fractionnaires) où AUCUNE des deux règles ne s'applique. */
@media (max-width: 599.98px) {
  .tp-wrap { padding-top: 78px; }
  .tp-btxt { display: none; }          /* « Annuler la suppression » → ↩ seul */
  .tp-f-price { flex: 1 1 100%; }
  .tp-form, .tp-addrow { margin-left: 10px; margin-right: 10px; }
  .tp-form { padding: 11px; }
  .tp-addrow { padding-left: 12px; padding-right: 12px; }
  .tp-card-head { padding: 12px 13px 10px; }
  .tp-card-bd { padding: 0 13px 14px; }
  .tp-create { padding: 18px 14px 20px; }
  .tp-bar .btn { flex: 1 1 auto; }
  .tp-state { flex-basis: 100%; order: -1; }
  .tp-photo-side img { width: 118px; }
  /* Le lien de vérification passe sous les chips, à gauche comme le reste :
     collé à droite d'une ligne à lui, il aurait l'air d'un bouton perdu. */
  .tp-seelink { margin-left: 0; }
}
/* — Ordinateur (≥900) : les quatre colonnes, à largeur FIXE pour que les prix
   d'une carte s'alignent d'une ligne à l'autre. Même seuil que le Carnet et la
   grille du compte : une seule bascule à retenir dans tout le site. — */
@media (min-width: 900px) {
  .tp-line {
    grid-template-columns: minmax(0, 1fr) 170px 158px 44px;
    grid-template-areas: "nm pr sw act";
    row-gap: 4px; padding: 8px 14px;
  }
  .tp-line.is-gone { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nm act"; }
  .tp-line-sw { justify-self: start; }
  .tp-price, .tp-price-ro { width: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-sw-kn, .tp-line, .tp-tool > summary::after,
  .tp-ed-tx, .tp-ed-btn, .tp-seelink { transition: none; }
}

/* ============================================================================
   FICHE & CARTES « PHOTO-FORWARD » (ADDITIF 2026-08-19) — la base sint-maarten
   reçoit ses photos (Wikimedia Commons, crédit obligatoire CC BY/BY-SA) : la
   fiche et les cartes passent du « annuaire » au « magazine ». Aucune classe
   existante modifiée, tokens Lagon uniquement.
   ========================================================================== */

/* Chip de note posée SUR la photo (cartes + rien d'autre à lire). */
.ph-note {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  color: #fff; background: rgba(6, 26, 36, .52);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 999px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

/* Repli SANS photo : dégradé lagon doux + emoji de catégorie en filigrane
   (remplace l'aplat gris qui « ne donnait pas envie »). */
.ph.noimg {
  display: grid; place-items: center;
  background:
    radial-gradient(80% 90% at 18% 0%, rgba(13, 148, 136, .20), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(14, 165, 233, .16), transparent 55%),
    linear-gradient(140deg, #e8f2f1, #dceaf0);
}
.ph.noimg .cat-mark { font-size: 54px; opacity: .5; filter: saturate(.85); }

/* --- Galerie de la fiche : points, crédit photo, filigrane, zoom ----------- */
.fiche .gallery.has-photo { cursor: zoom-in; }
.fiche .gallery > .cat-mark {  /* fiche sans photo : filigrane centré */
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(64px, 12vw, 110px); opacity: .38; pointer-events: none;
}
.fiche .gallery .gdots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; gap: 7px;
}
.gdots .dot {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255, 255, 255, .55); cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  transition: width .25s cubic-bezier(.2, .8, .2, 1), background .25s ease;
}
.gdots .dot.on { width: 22px; background: #fff; }

/* Crédit photo (CC BY/BY-SA : l'auteur DOIT être nommé — champ photoCredit).
   Chip verre discret, en bas à gauche pour ne pas gêner les flèches/points. */
.g-credit {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  max-width: min(64vw, 420px); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; line-height: 1; color: rgba(255, 255, 255, .88);
  background: rgba(6, 26, 36, .45); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 5px 10px; border-radius: 999px; pointer-events: none;
}

/* Proposer une photo : geste de CONTRIBUTION, toujours visible dans la galerie
   (en haut à droite — les flèches tiennent le milieu, les points le bas, le
   crédit le coin bas-gauche). Chip verre, même vocabulaire que les flèches. */
.fiche .gallery .g-suggest {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; line-height: 1; color: var(--profond);
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 9px 13px; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: transform .2s ease, background .2s ease;
}
.fiche .gallery .g-suggest:hover { background: #fff; transform: scale(1.04); }
/* Aperçu local de la photo choisie (avant envoi) — jamais de recadrage : on
   montre l'image entière, c'est elle qui partira en modération. */
.photo-preview {
  width: 100%; max-height: 220px; object-fit: contain; margin-top: 10px;
  border-radius: var(--radius, 16px); background: var(--sable);
  border: 1px solid var(--stroke);
}
/* Choix MULTIPLE (2026-08-20) : vignettes retirables avant envoi. */
.ps-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ps-th {
  position: relative; width: 72px; height: 72px; border-radius: 10px;
  background-size: cover; background-position: center;
  background-color: var(--sable); box-shadow: var(--shadow-s);
}
.ps-th button {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: var(--profond); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
@media (max-width: 640px) {
  .fiche .gallery .g-suggest .lbl { display: none; }
  .fiche .gallery .g-suggest { padding: 10px; }
}

/* --- Chips de catégories sur la fiche (emoji + libellé, non cliquables) ---- */
.fiche .catchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.fiche .catchips .chip.cat {
  cursor: default; box-shadow: none;
  background: var(--sable); border: 1px solid var(--stroke);
  padding: 7px 13px; font-size: 12.5px;
}
.fiche .catchips .chip.cat:hover { transform: none; }

/* Note chiffrée à côté des étoiles + description plus « magazine ». */
.fiche .meta .score { display: inline-flex; align-items: center; gap: 6px; }
.fiche .meta .score b { font-family: var(--font-head); font-size: 15.5px; }
.fiche .desc { font-size: 16.5px; line-height: 1.75; color: var(--marine); margin: 6px 0 0; }

/* --- Lightbox plein écran (clic sur la galerie) ---------------------------- */
.glightbox {
  position: fixed; inset: 0; z-index: 2400;
  background: rgba(4, 18, 26, .93);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: gfade .22s ease both;
}
.glightbox img {
  max-width: 94vw; max-height: 88vh; border-radius: 14px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8);
  animation: gpop .28s cubic-bezier(.2, .8, .2, 1) both;
}
.glightbox .nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  font-size: 20px; color: #fff; transition: background .2s ease;
}
.glightbox .nav:hover { background: rgba(255, 255, 255, .28); }
.glightbox .nav.prev { left: 16px; } .glightbox .nav.next { right: 16px; }
.glightbox .close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  font-size: 17px; color: #fff; transition: background .2s ease;
}
.glightbox .close:hover { background: rgba(255, 255, 255, .28); }
.glightbox .g-credit { left: 50%; transform: translateX(-50%); bottom: 18px; max-width: 86vw; }

@media (max-width: 640px) {
  .ph.noimg .cat-mark { font-size: 46px; }
  .g-credit { max-width: 78vw; }
}
@media (prefers-reduced-motion: reduce) {
  .glightbox, .glightbox img { animation: none; }
  .gdots .dot { transition: none; }
}

/* --- Randonner depuis le site (Lot C) ---------------------------------------
   Carte de tracé (fiche parcours + vignette de fiche lieu), panneau
   d'enregistrement GPS et médailles. Classes ADDITIVES : aucun sélecteur
   existant n'est touché, les tokens :root font toute la couleur. */
.hike-map {
  height: 300px; width: 100%; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s); margin-bottom: 18px;
  background: rgba(13, 148, 136, .06);
}
.hike-map.mini { height: 180px; border-radius: 16px; margin-bottom: 6px; }

.hike-rec {
  background: var(--ecume); border: 1px solid var(--stroke);
  border-radius: var(--radius); box-shadow: var(--shadow-s);
  padding: 16px; margin: 14px 0;
}
.hike-rec.done { border-color: rgba(13, 148, 136, .35); }
.hike-rec-head { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); }
.hike-rec-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--marine); flex: none;
}
.hike-rec-dot.on { background: var(--corail); animation: hikepulse 1.4s ease-in-out infinite; }
@keyframes hikepulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 87, .55); }
  70%      { box-shadow: 0 0 0 10px rgba(255, 107, 87, 0); }
}
.hike-rec-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 12px 0;
}
.hike-rec-stats > div {
  background: var(--sable); border-radius: 14px; padding: 10px 8px; text-align: center;
}
.hike-rec-stats span {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: 22px; color: var(--profond); font-variant-numeric: tabular-nums;
}
.hike-rec-stats small { display: block; font-size: 11px; color: var(--marine); margin-top: 2px; }
.hike-rec-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.hike-badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hike-medal {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sable); border: 1px solid var(--stroke);
  border-radius: 999px; padding: 6px 12px; font-size: 13px;
  color: var(--marine); opacity: .62;
}
.hike-medal.owned {
  opacity: 1; color: var(--profond); font-weight: 600;
  border-color: rgba(13, 148, 136, .45); background: rgba(13, 148, 136, .1);
}
.hike-medal .ico { font-size: 16px; }
.hike-medal .tier { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

@media (prefers-reduced-motion: reduce) {
  .hike-rec-dot.on { animation: none; }
}

/* --- Fiche « magazine » : passe fun & participation (Lot D) -----------------
   Héros sans photo raccourci et INVITANT, vignettes de carrousel à la souris,
   carte d'aventure Randonnée, CTA corail, métaux de médailles, podium. */

/* Sans photo, 58vh de dégradé vide desservaient la fiche : héros plus court,
   emoji de catégorie qui flotte, et l'invitation à poser la PREMIÈRE photo au
   centre — le vide devient un appel à contribution. */
.fiche .gallery.noimg { height: min(40vh, 340px); }
.fiche .gallery .g-empty {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: 16px;
}
.fiche .gallery .g-empty .cat-mark {
  position: static; font-size: clamp(56px, 9vw, 84px); opacity: .55;
  filter: drop-shadow(0 14px 24px rgba(11, 59, 84, .25));
  animation: gfloat 5s ease-in-out infinite;
}
@keyframes gfloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.fiche .gallery .g-first {
  background: rgba(255, 255, 255, .92); color: var(--profond);
  border: 1px dashed rgba(11, 59, 84, .35); box-shadow: var(--shadow-s);
  font-size: 14px;
}
.fiche .gallery .g-first:hover { background: #fff; transform: translateY(-2px); }

/* Vignettes du carrousel : à la souris (≥900px), la rangée d'aperçus remplace
   les points — on VOIT qu'il y a plusieurs photos sans les faire défiler. */
.fiche .gallery .gthumbs {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: none; gap: 7px; max-width: min(52vw, 440px);
  overflow-x: auto; padding: 4px; scrollbar-width: none;
}
.gthumbs .gth {
  width: 58px; height: 42px; flex: none; border-radius: 10px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .55); padding: 0;
  background-size: cover; background-position: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  opacity: .78; transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}
.gthumbs .gth:hover { opacity: 1; transform: translateY(-2px); }
.gthumbs .gth.on { opacity: 1; border-color: #fff; }
@media (min-width: 900px) {
  .fiche .gallery.has-thumbs .gthumbs { display: flex; }
  .fiche .gallery.has-thumbs .gdots { display: none; }
}

/* Carte d'aventure « Randonnée » : la vignette du tracé d'un côté, l'appel de
   l'autre (empilés au pouce, côte à côte ≥700px). */
.hike-invite {
  display: grid; overflow: hidden; margin: 18px 0 6px;
  background: linear-gradient(140deg, rgba(13, 148, 136, .07), rgba(14, 165, 233, .06));
  border: 1px solid rgba(13, 148, 136, .25); border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}
.hike-invite .hike-map.mini { height: 200px; border-radius: 0; margin: 0; box-shadow: none; }
.hike-invite-body { padding: 16px 18px 18px; }
.hike-invite-body h2 { font-size: 20px; margin: 0 0 2px; }
.hike-invite .hi-name {
  margin: 2px 0 10px; font-weight: 700;
  font-family: var(--font-head); color: var(--profond);
}
.hike-invite .hi-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hike-invite .hi-chips .chip {
  background: var(--ecume); border: 1px solid var(--stroke); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; color: var(--marine);
}
@media (min-width: 700px) {
  .hike-invite { grid-template-columns: 44% 1fr; align-items: stretch; }
  .hike-invite .hike-map.mini { height: 100%; min-height: 190px; }
}

/* CTA d'aventure (fiche ET page parcours) : l'énergie du corail. */
.btn.hike-cta {
  background: var(--grad-chaud); color: #fff; border: 0;
  box-shadow: 0 14px 30px -12px rgba(255, 107, 87, .55);
}
.btn.hike-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(255, 107, 87, .65);
}

/* Métal du palier : la donnée `tier` (data-driven) teinte sa médaille. */
.hike-medal[data-tier="bronze"] .tier { color: #a4703a; }
.hike-medal[data-tier="argent"] .tier { color: #6d7f8b; }
.hike-medal[data-tier="or"] .tier { color: #b8860b; }
.hike-medal[data-tier="platine"] .tier { color: #4e8ea8; }
.hike-medal[data-tier="diamant"] .tier { color: #6d5fd8; }
.hike-medal.owned[data-tier="or"] {
  border-color: rgba(184, 134, 11, .5); background: rgba(245, 158, 11, .12);
}

/* Classement public du module rando : podium compact, pseudonymisé serveur. */
.hike-board { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.hike-board li {
  display: flex; align-items: center; gap: 10px;
  background: var(--ecume); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 8px 12px; font-size: 14px;
}
.hike-board .rk { width: 26px; text-align: center; font-size: 16px; flex: none; }
.hike-board .nm { flex: 1; font-weight: 600; color: var(--profond); }
.hike-board .pt { color: var(--marine); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .fiche .gallery .g-empty .cat-mark { animation: none; }
}

/* --- Lot G 2026-08-20 : ergonomie du planificateur road-trip ----------------
   POI de l'île sur la carte du carnet + chips de catégories, petite carte HTML
   d'un marqueur (jamais un popup Leaflet), chips de la feuille d'ajout, geste
   « Itinéraire du jour ». Additif : aucun sélecteur existant n'est réécrit,
   sauf les DEUX règles de layout du panneau de carte (flex column) et la
   hauteur de #rt-map — recopiées à l'identique pour gagner par l'ordre du
   fichier, la rangée de chips vivant DANS le flux (elle ne peut pas flotter
   au-dessus : le contrôle de zoom de Leaflet occupe déjà le coin haut-gauche).
   -------------------------------------------------------------------------- */
.rt-mappanel { position: relative; }
.rt-editor.rt-map-open .rt-mappanel { display: flex; flex-direction: column; }
@media (min-width: 900px) {
  /* Le `position: relative` ci-dessus (nécessaire <900px : il ancre
     .rt-mapcard) écrasait AUSSI le `position: sticky` ≥900px du bloc
     historique — même spécificité, déclaré après — : le panneau ne
     s'épinglait plus jamais mais gardait sa hauteur 100vh-142px, et son bas
     (donc la petite carte, ancrée bottom) sortait de l'écran. On ré-affirme
     sticky ici, où l'ordre du fichier joue POUR nous ; sticky ancre les
     absolus aussi bien que relative. */
  .rt-mappanel, .rt-editor.rt-map-open .rt-mappanel { display: flex; flex-direction: column; position: sticky; }
}
.rt-mappanel #rt-map { width: 100%; height: auto; flex: 1 1 auto; min-height: 0; }
.rt-mapchips {
  flex: none; padding: 8px 10px 7px; margin: 0; gap: 8px;
  background: var(--sable); border-bottom: 1px solid var(--stroke);
}
.rt-mapchips:empty { display: none; }
.rt-mapchips .chip { padding: 7px 13px; font-size: 12.5px; box-shadow: none; border-color: var(--stroke); }
.rt-poitoggle { font-size: 15px; padding: 7px 11px; }

/* Lieux de l'île : marqueurs DISCRETS et petits — les pins numérotés d'étape
   (30 px, pleins, liseré blanc) doivent rester les héros de la carte. */
.rt-poi-wrap { background: transparent; border: 0; }
.rt-poi {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 12px; line-height: 1; opacity: .72;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--stroke);
  box-shadow: 0 4px 12px -7px rgba(11, 59, 84, .7);
  transition: opacity .2s ease, transform .2s ease;
}
.rt-poi-wrap:hover .rt-poi { opacity: 1; transform: scale(1.18); }

/* Petite carte d'un marqueur : ancrée EN BAS du panneau, au-dessus de la carte
   (z-index > panes Leaflet). Vide, elle disparaît — jamais de cadre fantôme. */
.rt-mapcard { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 810; }
.rt-mapcard:empty { display: none; }
.rt-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 36px 10px 10px; border-radius: 18px;
  background: var(--ecume); border: 1px solid var(--stroke); box-shadow: var(--shadow-s);
}
.rt-card .th {
  flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(140deg, #dbe6ea, #cfdde3) center/cover no-repeat;
}
.rt-card .bd { min-width: 0; display: grid; gap: 3px; }
.rt-card .bd strong {
  font-family: var(--font-head); font-size: 14.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rt-card .mt { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--marine); }
.rt-card .st { color: var(--soleil); white-space: nowrap; }
.rt-card .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.rt-card .x {
  position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border: 0;
  border-radius: 50%; cursor: pointer; background: transparent; color: var(--marine);
  font: inherit; font-size: 18px; line-height: 1;
}
.rt-card .x:hover { background: var(--sable); color: var(--profond); }
@media (max-width: 599px) {
  /* Sur téléphone la carte tient sur deux lignes plutôt que d'écraser le nom. */
  .rt-card { align-items: flex-start; }
  .rt-card .th { width: 46px; height: 46px; }
}

/* Chips de la feuille « + Ajouter un lieu » : plus sobres que celles de la
   carte (fond opaque, pas de verre) — elles vivent sur une modale claire. */
.rt-catchips { margin: 0 0 6px; padding: 2px; gap: 8px; }
.rt-catchips:empty { display: none; }
.rt-catchips .chip {
  padding: 7px 12px; font-size: 12.5px; box-shadow: none;
  background: var(--sable); border-color: var(--stroke); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.rt-catchips .chip.on { background: var(--grad-mer); border-color: transparent; }
.rt-addhint { margin: 2px 0 4px; font-size: 12.5px; }
.rt-addhint:empty { display: none; }

/* Geste « 🧭 Itinéraire du jour » dans l'en-tête du jour, à côté du compteur. */
.rt-dayact { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rt-dayroute { flex: none; white-space: nowrap; }
.rt-dayroute.on { border-color: rgba(13, 148, 136, .55); color: var(--lagon); background: rgba(13, 148, 136, .08); }
.rt-routeinfo { font-size: 12.5px; color: var(--marine); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-routeinfo:empty { display: none; }
@media (max-width: 599px) {
  /* < 600 px : le titre du jour garde sa ligne, les gestes passent dessous. */
  .rt-day > header { flex-wrap: wrap; row-gap: 6px; }
  .rt-dayact { width: 100%; justify-content: flex-start; padding-left: 52px; }
}

/* --- Lot H 2026-08-20 : proposer le TRACÉ d'une randonnée -------------------
   Feuille PLEIN ÉCRAN de dessin (trail_draw.js) + les deux appels qui y mènent
   (page parcours sans tracé, carte d'aventure d'une fiche). Classes ADDITIVES,
   préfixe `td-` : aucun sélecteur existant n'est touché ; toute la couleur vient
   des tokens :root (corail = l'énergie du geste, lagon = la carte). */

/* Appel « ce parcours n'a pas de tracé » : c'est un ENCOURAGEMENT, pas une
   erreur — d'où le fond chaud plutôt qu'un bandeau d'avertissement. */
.td-empty {
  text-align: center; padding: 26px 18px 24px; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(245, 158, 11, .10), rgba(255, 107, 87, .08));
  border: 1px dashed rgba(255, 107, 87, .38); border-radius: var(--radius);
}
.td-empty-em { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.td-empty-t { margin: 0 0 4px; font-family: var(--font-head); font-weight: 700; color: var(--profond); }
.td-empty-s { margin: 0 0 14px; font-size: 14px; color: var(--marine); }

/* Variante « sans tracé » de la carte d'aventure d'une fiche : la vignette de
   carte disparaît, la colonne unique reprend toute la largeur. */
.hike-invite.notrack { grid-template-columns: 1fr; }
.hike-invite .hi-missing { margin: 0 0 12px; font-size: 14px; color: var(--marine); }
.hike-invite-body .td-cta { margin-left: 8px; }

/* --- La feuille de dessin --------------------------------------------------
   Plein écran assumé : dessiner un sentier demande TOUTE la carte, une modale
   étroite au milieu de l'écran rendrait le geste impraticable au doigt. */
.td-ov {
  position: fixed; inset: 0; z-index: 4000; display: flex;
  align-items: center; justify-content: center; padding: 0;
  background: var(--verre-nuit); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.td-sheet {
  display: flex; flex-direction: column; gap: 8px;
  width: 100%; height: 100%; max-width: 720px; max-height: 100%;
  padding: 14px 16px 16px; overflow-y: auto;
  background: var(--sable); color: var(--profond);
}
.td-head { display: flex; align-items: flex-start; gap: 12px; }
.td-head h3 { margin: 0; font-family: var(--font-head); font-size: 20px; }
.td-sub { margin: 2px 0 0; font-size: 13px; color: var(--marine); }
.td-sub:empty { display: none; }
.td-x {
  margin-left: auto; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ecume); border: 1px solid var(--stroke); color: var(--profond);
  font-size: 16px; cursor: pointer;
}
.td-x:hover { background: var(--profond); color: var(--ecume); }
.td-hint { margin: 0; font-size: 13.5px; color: var(--marine); }

/* La carte prend tout l'espace restant (flex:1) : sur un téléphone en paysage
   comme sur un écran large, c'est elle le sujet. */
.td-map {
  flex: 1 1 auto; min-height: 240px; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-s); background: rgba(13, 148, 136, .06);
  cursor: crosshair;
}

/* Pastille NUMÉROTÉE d'un point posé (divIcon Leaflet). */
.td-dot { background: none; border: 0; }
.td-dot i {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--corail); color: #fff; border: 2px solid var(--ecume);
  font-style: normal; font-size: 11px; font-weight: 800;
  box-shadow: 0 4px 10px -4px rgba(11, 59, 84, .6);
}

/* Bandeau vivant : le compteur de points et la distance grimpent à chaque clic
   — c'est la récompense immédiate qui donne envie de finir le tracé. */
.td-live { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.td-count, .td-dist {
  font-family: var(--font-head); font-weight: 800; font-variant-numeric: tabular-nums;
}
.td-count { color: var(--corail); }
.td-count::after { content: ' •'; color: var(--stroke); }
.td-dist { color: var(--lagon); }
.td-tip { font-size: 12.5px; color: var(--marine); }

.td-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.td-name { display: block; font-size: 13px; color: var(--marine); }
.td-name input {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border: 1px solid var(--stroke); border-radius: 12px;
  background: var(--ecume); color: var(--profond); font: inherit;
}
.td-note { margin: 0; font-size: 12.5px; color: var(--marine); }
.td-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.td-foot .btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.td-status { font-size: 13px; color: var(--marine); }
.td-status.bad { color: var(--corail); font-weight: 700; }

/* Remerciement : la feuille se vide et ne montre plus QUE le merci — on ne
   laisse pas une carte pleine de points derrière un message de succès. */
.td-thanks { margin: auto; text-align: center; padding: 24px; }
.td-thanks-em { font-size: 52px; line-height: 1; margin-bottom: 10px; }
.td-thanks h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 24px; }
.td-thanks p { margin: 0 0 16px; color: var(--marine); }

@media (min-width: 760px) {
  /* Sur grand écran la feuille redevient une fenêtre : plein écran sur un
     27 pouces donnerait une carte plus grande que le sujet. */
  .td-ov { padding: 24px; }
  .td-sheet { height: auto; max-height: 92vh; border-radius: var(--radius); box-shadow: var(--shadow); }
  .td-map { min-height: 380px; }
}

/* --- 2026-08-20 : sélecteur de quartier de la feuille « + Ajouter un lieu »
   (données de l'île, jamais une liste en dur). --- */
.rt-addmodal .rt-qselect {
  width: 100%; margin: 8px 0 2px; padding: 10px 12px;
  border: 1px solid var(--stroke); border-radius: 12px;
  background: #fff; color: var(--profond);
  font: 500 14px var(--font-body, Inter, sans-serif); cursor: pointer;
}
