/*! PassaMondo Globe — © 2026 Vincent Zufferey. Tous droits réservés. */
/* Palette « Globe » : nuit bleue, vert menthe, points dorés */
html.dark { --ink: #EAF1FF; --ink-2: #B4C3DA; --muted: #8496B3; --bg: #0A1324; --card: #111E36; --line: rgba(255,255,255,.09);
  --land: #1B2B4A; --ocean: #0A1428; --border: #0A1428; --visited: #3DD6A3; --visited-soft: #133B37; --wish: #F2C14E; --wish-soft: #3A3218; --accent: #7CF2C9; }
html.dark, html.dark body { background: #050A16; }
html.dark #app { background: radial-gradient(120% 60% at 50% 0%, #10224A 0%, #0A1324 55%, #070D1C 100%); }
html.dark .topbar { background: rgba(7,13,28,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html.dark .tabbar { background: rgba(8,14,30,.8); border-top: 1px solid rgba(255,255,255,.07); }
html.dark .tabbar button.on { color: #7CF2C9; }
html.dark .tabbar button.on svg { background: rgba(124,242,201,.14); }
html.dark .card, html.dark .row, html.dark .tile, html.dark .tc-kpi, html.dark .tc-sum, html.dark .tc-trip, html.dark .trip, html.dark .qcard, html.dark .day-list, html.dark .jr-body { background-color: rgba(255,255,255,.045); border-color: rgba(255,255,255,.08); }
html.dark .sheet { background: #0E1830; border-top: 1px solid rgba(255,255,255,.1); }
html.dark .hero, html.dark .tc-hero, html.dark .lvl-card, html.dark .lvlup > div { background: linear-gradient(135deg, #12305A, #0F5B55); color: #fff; }
html.dark .btn:not(.secondary):not(.danger) { background: #3DD6A3; color: #04221A; }
html.dark .chip.on, html.dark .tc-chip.on, html.dark #list-tabs button.on, html.dark #game-tabs button.on, html.dark .wm-styles button.on { background: #7CF2C9; color: #04221A; border-color: #7CF2C9; }
html.dark .badge-c, html.dark .chip-c, html.dark .qexp, html.dark .qchoices .ql, html.dark .chest, html.dark .tc-bdg { background: rgba(255,255,255,.06); color: var(--ink); }
html.dark .badge-c.ok, html.dark .quest.ready > i { background: rgba(61,214,163,.18); }
html.dark .themes button, html.dark .goal-pick button, html.dark .bs-wish, html.dark .sugg button, html.dark .brow, html.dark .fd-chip, html.dark .fq-opts button, html.dark .mq-zones button, html.dark .tm-grid button, html.dark .col-t, html.dark .wd, html.dark .tc-chip, html.dark .tc-cat, html.dark .tc-icon, html.dark .tc-flag, html.dark .tc-rank, html.dark .mq-zoom button, html.dark .ly-row, html.dark .chal-c, html.dark .tc-ft, html.dark .tc-fcard, html.dark .tc-ftop, html.dark .tc-mcard, html.dark .ctabs button.on, html.dark .segmented button.on, html.dark .search { background: rgba(255,255,255,.06); color: var(--ink); border-color: rgba(255,255,255,.1); }
html.dark .mgrid .c, html.dark .wgrid .c { background: #18284A; }
html.dark .legend, html.dark .map-tools { background: rgba(8,14,30,.78); color: var(--ink); }
html.dark .tool.on { background: #7CF2C9; color: #04221A; }
html.dark .leaflet-bar a { background: #111E36; color: var(--ink); border-color: rgba(255,255,255,.1); }
html.dark .leaflet-popup-content-wrapper, html.dark .leaflet-popup-tip { background: #111E36; color: var(--ink); }
html.dark .pill.mid { background: #3A3218; color: #F2C14E; } html.dark .pill.ko { background: #3B1F22; color: #FF8C7A; }
html.dark .tc-mteams .sc, html.dark .mt-sc, html.dark .apt-tag, html.dark .ap b { background: #1C3A6B; }
html.dark #tc-souv button { background: #3DD6A3; color: #04221A; }
html.dark .tc-lock { background: #070D1C; }

/* ───── Globe 3D sur l'onglet Carte ───── */
#gx { position: absolute; inset: 0; z-index: 640; display: flex; flex-direction: column; padding: calc(var(--hh, 64px) + 4px) 14px calc(var(--tb, 64px) + 12px); background: radial-gradient(120% 70% at 50% 25%, #14284A 0%, #070D1C 62%, #04070F 100%); color: #EAF1FF; overflow: hidden; }
#gx[hidden] { display: none; }
#gx .gx-stars { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(1px 1px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 70% 15%, #fff6, transparent), radial-gradient(1.5px 1.5px at 85% 60%, #fff7, transparent), radial-gradient(1px 1px at 35% 80%, #fff5, transparent), radial-gradient(1px 1px at 55% 45%, #fff4, transparent), radial-gradient(1px 1px at 10% 65%, #fff6, transparent), radial-gradient(1px 1px at 92% 88%, #fff5, transparent); }
#gx .gx-globe { position: relative; flex: 1; min-height: 220px; }
#gx canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#gx .gx-z { position: absolute; right: 0; bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
#gx .gx-z button, #gx .gx-flat { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; border-radius: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#gx .gx-z button { width: 42px; height: 42px; font-size: 20px; font-weight: 700; }
#gx .gx-flat { position: absolute; left: 0; bottom: 8px; padding: 10px 14px; font-weight: 700; font-size: 13.5px; }
#gx .gx-legend { position: absolute; left: 0; top: 2px; font-size: 11px; opacity: .75; display: flex; align-items: center; gap: 5px; }
#gx .gx-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-left: 6px; }
#gx .gx-info { position: relative; flex: none; }
#gx .gx-kp { display: flex; gap: 8px; }
#gx .gx-kp button { flex: 1; text-align: left; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); color: #EAF1FF; border-radius: 16px; padding: 10px 12px; }
#gx .gx-kp b { display: block; font-size: 22px; color: #7CF2C9; line-height: 1.1; }
#gx .gx-kp small { font-size: 11.5px; opacity: .7; }
#gx .gx-mem { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; text-align: left; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(135deg, rgba(61,214,163,.14), rgba(255,255,255,.04)); color: #EAF1FF; border-radius: 18px; padding: 12px 14px; }
#gx .gx-mem small { display: block; opacity: .7; font-size: 12px; } #gx .gx-mem b { display: block; font-size: 15px; }
#gx .gx-mem i { margin-left: auto; font-style: normal; color: #7CF2C9; font-size: 20px; }
#gx .gx-flag img { width: 30px; height: 22px; border-radius: 4px; }
.gx-back { position: absolute; left: 10px; bottom: calc(var(--tb, 64px) + 52px); z-index: 640; display: none; border: 1px solid rgba(255,255,255,.18); background: rgba(8,14,30,.85); color: #fff; border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 13.5px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html:not(.gx-on) #view-map.active .gx-back, html:not(.gx-on) .view.active .gx-back { display: block; }
html.gx-on #view-map .legend, html.gx-on #view-map .fab, html.gx-on #view-map .map-tools, html.gx-on #view-map #tc-souv { visibility: hidden; }
html.dark .grp-tools button { background: rgba(255,255,255,.07); color: var(--ink); border-color: rgba(255,255,255,.12); }
html.dark .grp summary .n, html.dark details.grp > summary span:last-child { background: rgba(255,255,255,.08); color: var(--ink-2); }
