/* =========================================================================
   Leonida Manager : identité « Vice by night » (néons coucher de soleil, nuit tropicale)
   ========================================================================= */
:root {
  --bg: #0b0a14;
  --surface: #141416;
  --surface-2: #1c1c1f;
  --surface-3: #26262a;
  --border: #2a2a2e;
  --border-strong: #3c3c42;
  --text: #f5f5f6;
  --muted: #a1a1aa;
  --faint: #71717a;

  --pink: #ff2e88;
  --orange: #ff8a00;
  --yellow: #ffd23f;
  --teal: #19e3c5;
  --violet: #8b5cf6;
  --danger: #ff4d5e;
  --success: #22c55e;

  --accent: #ff2e88;
  --accent-hover: #ff4d9a;
  --sunset: var(--accent); /* ancien dégradé, gardé comme alias de la couleur d'accent */
  --glow-pink: none;

  --radius: 14px;
  --radius-sm: 10px;
  --topbar-h: 64px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brand: "Archivo", "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Big Shoulders Display", "Impact", "Arial Narrow Bold", sans-serif;
  --display-weight: 900;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--pink); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.i { flex-shrink: 0; }
[hidden] { display: none !important; }

/* ---------- topbar ---------- */
.topbar {
  position: relative;
  z-index: 1200;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: rgba(11, 10, 20, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.logo-text {
  font-family: var(--brand);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.05;
  /* Toujours sur deux lignes : LEONIDA au-dessus de MANAGER */
  display: flex;
  flex-direction: column;
}
.logo img { width: 34px; height: 34px; }
.logo-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  border-left: 1px solid var(--border-strong);
  padding-left: 10px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
}
.search-icon { position: absolute; left: 14px; display: flex; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 46, 136, .2); }

.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.account { position: relative; display: flex; gap: 8px; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .1s, background .15s, border-color .15s, box-shadow .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--bg); font-weight: 700; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary.active { background: var(--surface-2); box-shadow: none; border-color: var(--border-strong); }
.btn-secondary { background: var(--surface-2); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--surface-3); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-ghost.danger { color: var(--danger); }
.btn-ghost.is-done { color: var(--muted); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: rgba(34, 197, 94, .15); border-color: var(--success); color: #6ee7a0; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); }
.link { background: none; border: 0; padding: 0; color: var(--pink); font-size: 13px; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- compte ---------- */
.account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.account-btn:hover { border-color: var(--border-strong); }
.account-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.account-meta b { font-size: 14px; }
.account-meta span { font-size: 11px; color: var(--yellow); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: hsl(var(--h) 60% 42%);
  box-shadow: 0 0 0 2px var(--bg);
}
.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  z-index: 1300;
}
.menu-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  text-align: left;
}
.menu-item:hover { background: var(--surface-2); }
.rank {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yellow);
}
.rank.big { font-size: 13px; }

/* ---------- mise en page ---------- */
.app {
  position: relative;
  display: flex;
  height: calc(100% - var(--topbar-h));
  overflow: hidden;
  overflow: clip; /* le panneau fermé (hors écran) ne doit jamais faire défiler la page */
}
.sidebar {
  width: 320px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.sidebar > * { flex-shrink: 0; }
.sidebar > .card, .sidebar > .stats-card {
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
}
.sidebar > .card { gap: 12px; }
.sidebar > .search { margin: 14px 16px 2px; }
.map-wrap { position: relative; flex: 1; min-width: 0; }
#map { position: absolute; inset: 0; background: #00a8c6; } /* couleur de l'océan de la carte */
.leaflet-control-attribution {
  margin: 0 0 12px 12px !important;
  background: rgba(11, 10, 20, .8) !important;
  color: var(--muted) !important;
  font-size: 11px;
  padding: 3px 10px !important;
  border-radius: 999px;
}
.leaflet-control-attribution a { color: var(--text) !important; }
#map.adding, #map.adding .leaflet-interactive { cursor: crosshair !important; }

.card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h2, .eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-head-actions { display: flex; gap: 12px; }
.pct { font-family: var(--display); font-weight: var(--display-weight); font-size: 22px; letter-spacing: .02em; color: var(--teal); }

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--border); }
.stat b { font-family: var(--display); font-size: 32px; font-weight: var(--display-weight); letter-spacing: .01em; line-height: 1; }
.stat:first-child b { color: var(--accent); }
.stat span { font-size: 10.5px; font-weight: 700; line-height: 1.25; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter.big { height: 10px; }
.meter > div { height: 100%; border-radius: inherit; background: var(--sunset); transition: width .4s ease; }

.cat-list { list-style: none; margin: 0 -10px; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background .12s, opacity .12s;
}
.cat-row:hover { background: var(--surface); }
.cat-row input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.cat-row input:checked { background: var(--c); border-color: var(--c); }
.cat-row input:checked::after {
  content: "";
  width: 5px; height: 9px;
  margin-top: -2px;
  border: solid var(--bg);
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}
.cat-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-row:has(input:not(:checked):not(:indeterminate)) .cat-label, .cat-row:has(input:not(:checked):not(:indeterminate)) .cat-count { color: var(--faint); }
.cat-row:has(input:not(:checked):not(:indeterminate)) .cat-icon { filter: grayscale(1); opacity: .45; }
.cat-icon {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .25);
}
.chip-blip { display: inline-grid; place-items: center; vertical-align: -2px; }
.cat-label { flex: 1; font-size: 14px; font-weight: 600; }
/* une partie des types masqués : tiret au lieu de la coche */
.cat-row input:indeterminate { background: color-mix(in srgb, var(--c) 35%, transparent); border-color: var(--c); }
.cat-row input:indeterminate::after { content: ""; width: 8px; height: 2.2px; background: var(--bg); border-radius: 2px; }
.cat-line { display: flex; align-items: center; gap: 2px; }
.cat-line .cat-row { flex: 1; min-width: 0; }
.cat-expand, .cat-expand-ph { flex-shrink: 0; width: 30px; height: 30px; }
.cat-expand {
  display: grid; place-items: center; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: none; color: var(--faint); cursor: pointer;
}
.cat-expand:hover { color: var(--text); background: var(--surface); }
.cat-expand:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cat-expand .i { transition: transform .15s; }
.cat-expand.open .i { transform: rotate(180deg); color: var(--text); }
.sub-list { list-style: none; margin: 2px 32px 8px 30px; padding: 0 0 0 10px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 1px; }
.sub-row { gap: 10px; padding: 5px 8px; }
.sub-row input { width: 16px; height: 16px; border-radius: 4px; }
.sub-row .cat-label { font-size: 13px; font-weight: 500; color: #d4d4d8; display: flex; flex-direction: column; line-height: 1.25; }
.sub-icon { width: 20px; display: grid; place-items: center; flex-shrink: 0; color: var(--c); }
.sub-note { font-size: 11px; font-weight: 500; color: var(--faint); }
.sub-row:has(input:not(:checked)) .sub-icon { filter: grayscale(1); opacity: .45; }
.cat-count.done { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); }
.cat-count {
  min-width: 28px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* interrupteurs */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  position: relative;
  width: 38px; height: 22px;
  flex-shrink: 0;
  border-radius: 99px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  transition: background .15s;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .15s;
}
.switch input:checked + .track { background: var(--pink); border-color: var(--pink); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--teal); outline-offset: 2px; }

.mini-lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-lb li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mini-lb .lb-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.mini-lb .lb-rep { color: var(--yellow); font-weight: 700; font-variant-numeric: tabular-nums; }
.pos { width: 20px; text-align: center; font-family: var(--display); font-weight: var(--display-weight); color: var(--faint); }
.pos-1 { color: var(--yellow); }
.pos-2 { color: #d4d4e8; }
.pos-3 { color: var(--orange); }
.empty { padding: 4px 0; }

.side-foot { margin-top: auto; padding: 18px 20px 20px; font-size: 12px; color: var(--faint); }
.side-foot a { color: var(--muted); text-decoration: none; }
.side-foot a:hover { color: var(--text); }
.side-foot p { margin: 6px 0 0; }
.side-foot .lang-switch { margin-bottom: 10px; }

/* ---------- choix de la langue (menu sans JavaScript) ---------- */
.lang-switch { position: relative; flex: none; }
.lang-switch summary {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted); font: 700 12px/1 var(--font); letter-spacing: .06em;
  cursor: pointer; list-style: none; user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.lang-switch summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 1200;
  min-width: 170px; padding: 6px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}
.lang-switch.up .lang-menu { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--text); font-size: 14px; text-decoration: none;
}
.lang-menu a b { width: 22px; color: var(--faint); font-size: 11px; letter-spacing: .06em; }
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a[aria-current] { color: var(--accent); }
.lang-menu a[aria-current] b { color: var(--accent); }

/* ---------- rubriques sur téléphone : menu des pages, haut du panneau de la carte ---------- */
.site-menu, .side-sections { display: none; }
.site-menu { flex: none; }
.site-menu summary {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  cursor: pointer; list-style: none; user-select: none;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-menu .close, .site-menu[open] .open { display: none; }
.site-menu[open] .close { display: inline; }
.site-menu[open] summary { border-color: var(--border-strong); background: var(--surface-2); }
.site-menu-panel {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 1200;
  max-height: calc(100vh - var(--topbar-h));
  max-height: calc(100dvh - var(--topbar-h));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 12px 12px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55);
}
.site-menu-panel a {
  display: block; padding: 13px 12px; border-radius: 8px;
  color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none;
}
.site-menu-panel a:hover { background: var(--surface-2); }
.site-menu-panel a[aria-current] { color: var(--accent); background: var(--surface-2); }

/* ---------- marqueurs ---------- */
.pin-wrap { background: none; border: 0; }
.pin {
  position: relative;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  /* pastille façon « blip » : fond de la couleur du type, pictogramme blanc, liseré sombre */
  background: var(--c);
  color: #fff;
  border: 2px solid rgba(8, 8, 12, .85);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55), 0 3px 8px rgba(0, 0, 0, .5);
  font-size: 15px;
  transition: transform .15s;
}
.pin svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
.pin span { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.pin:hover { transform: scale(1.15); }
.pin.is-pending { border-style: dashed; border-color: #fff; opacity: .85; box-shadow: 0 4px 10px rgba(0, 0, 0, .6); }
.pin.is-pending::before {
  content: "?";
  position: absolute;
  top: -5px; right: -5px;
  width: 16px; height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #1a1400;
  font: 800 10px/1 var(--font);
}
.pin.is-found { opacity: .38; filter: grayscale(.7); }
.pin.is-found::after {
  content: "✓";
  position: absolute;
  bottom: -5px; right: -5px;
  width: 16px; height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font: 800 10px/1 var(--font);
}
.pin.is-selected {
  transform: scale(1.25);
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 0 24px var(--c);
  animation: ping 1.6s ease-out infinite;
}
.pin.ghost { --c: var(--pink); border-style: dashed; animation: ping 1.2s ease-out infinite; font-weight: 800; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent), 0 0 20px var(--c); }
  100% { box-shadow: 0 0 0 18px transparent, 0 0 20px var(--c); }
}

/* contrôles de la carte */
.leaflet-bottom.leaflet-right .leaflet-control { margin: 0 16px 16px 0; }
.map-ctrl {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.map-ctrl button {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  transition: background .12s, color .12s;
}
.map-ctrl button + button { border-top: 1px solid var(--border); }
.map-ctrl button:hover { background: var(--surface-2); color: var(--accent); }
.map-ctrl button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* choix du style de carte : Plan / Relief */
.map-style {
  display: flex; padding: 3px; gap: 3px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
.map-style button {
  height: 34px; padding: 0 14px; border: 0; border-radius: 9px;
  background: none; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer;
}
.map-style button:hover { color: var(--text); }
.map-style button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.map-style button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* contrôles Leaflet */
.leaflet-container { font-family: var(--font); }
.leaflet-bar { border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, .4) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--text) !important; border-color: var(--border) !important; width: 36px !important; height: 36px !important; line-height: 36px !important; }
.leaflet-bar a:hover { background: var(--surface-2) !important; }

/* bandeau d'ajout */
.map-hint {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 22, .95);
  border: 1px solid var(--pink);
  box-shadow: var(--glow-pink);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); --c: var(--pink); animation: ping 1.2s ease-out infinite; }

.empty-state { position: absolute; inset: 0; z-index: 700; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.empty-card {
  pointer-events: auto;
  max-width: 380px;
  padding: 28px;
  text-align: center;
  border-radius: 20px;
  background: rgba(20, 20, 22, .92);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
}
.empty-card h2 { font-family: var(--display); font-weight: var(--display-weight); font-size: 26px; letter-spacing: .02em; text-transform: uppercase; margin: 12px 0 8px; }
.empty-card p { color: var(--muted); margin: 0 0 18px; }

/* ---------- panneau de détail ---------- */
.panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  z-index: 1000;
  width: 400px;
  max-width: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
  transform: translateX(105%);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
}
.panel.open { transform: none; }
.panel-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--surface-2); }
.panel-body { flex: 1; overflow-y: auto; padding: 22px 22px 28px; }
.marker-panel, .add-form { display: flex; flex-direction: column; gap: 18px; }
.panel-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-right: 48px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.status-verified { background: rgba(25, 227, 197, .14); color: var(--teal); }
.status-pending { background: rgba(255, 210, 63, .14); color: var(--yellow); }
.status-hidden, .status-rejected, .status-spoiler { background: rgba(255, 77, 94, .14); color: var(--danger); }
.status-shadowbanned { background: rgba(139, 92, 246, .18); color: #c4b5fd; }
.status-banned { background: var(--danger); color: #fff; }
.status-active { background: rgba(34, 197, 94, .14); color: #6ee7a0; }

.panel-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.panel-desc { margin: 8px 0 0; color: #d4d4d8; white-space: pre-line; overflow-wrap: anywhere; }
.content { position: relative; }
.content.spoiler > :not(.spoiler-cover) { filter: blur(9px); user-select: none; pointer-events: none; }
.spoiler-cover {
  position: absolute;
  inset: -6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(20, 20, 22, .55);
  color: var(--text);
}
.spoiler-cover b { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--danger); }
.spoiler-cover span { font-size: 12px; color: var(--muted); }

.author { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.verify-box { padding: 16px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; border: 1px solid; }
.verify-box.pending { background: rgba(255, 210, 63, .06); border-color: rgba(255, 210, 63, .3); }
.verify-box.pending .meter > div { background: var(--yellow); }
.verify-box.verified { background: rgba(25, 227, 197, .06); border-color: rgba(25, 227, 197, .3); }
.verify-box p { margin: 0; }
.verify-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.verify-head b { display: inline-flex; align-items: center; gap: 6px; }
.verify-box.verified .verify-head b { color: var(--teal); }
.verify-count { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.vote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vote-row .btn { background: var(--surface-2); border-color: var(--border); }
.vote-yes:hover, .vote-yes.active { border-color: var(--teal) !important; color: var(--teal); background: rgba(25, 227, 197, .12) !important; }
.vote-no:hover, .vote-no.active { border-color: var(--danger) !important; color: var(--danger); background: rgba(255, 77, 94, .12) !important; }
.vote-row.compact .btn { height: 34px; font-size: 13px; }

.panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.report-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); background: rgba(255, 77, 94, .06); border: 1px solid rgba(255, 77, 94, .35); }
.report-form h3 { font-size: 15px; }
.radio-list { display: flex; flex-direction: column; gap: 6px; }
.radio { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.radio input { accent-color: var(--danger); margin: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

/* formulaires */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field em { font-style: normal; color: var(--faint); font-weight: 400; }
.counter { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.field input, .field textarea, .report-form textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  outline: none;
  resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .report-form textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 46, 136, .18); }
.field-help { margin: 0; font-size: 12px; color: var(--faint); }

.cat-picker { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-picker legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; padding: 0; }
.cat-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.cat-option input { position: absolute; opacity: 0; pointer-events: none; }
.cat-option .cat-icon { width: 26px; height: 26px; font-size: 13px; }
.cat-option:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.cat-option:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }

.rules-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, .08);
  border: 1px solid rgba(139, 92, 246, .35);
  font-size: 13px;
}
.rules-box .i { color: #c4b5fd; margin-top: 2px; }
.rules-box p { margin: 4px 0 0; color: var(--muted); }

/* ---------- modales ---------- */
.modal {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
  overflow-y: auto;
}
.modal-wide { width: min(620px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; }
.modal form { display: flex; flex-direction: column; gap: 14px; position: relative; }
.modal > div { position: relative; display: flex; flex-direction: column; gap: 16px; }
.modal-brand { display: flex; justify-content: center; }
.modal-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: var(--display-weight); font-size: 28px; letter-spacing: .02em; text-transform: uppercase; }
.modal-title .i { color: var(--yellow); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.tab { height: 38px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 700; }
.tab.active { background: var(--surface-3); color: var(--text); }
.auth-hint { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 46, 136, .1); border: 1px solid rgba(255, 46, 136, .3); font-size: 14px; }
.register-only { display: none; flex-direction: column; gap: 12px; }
.is-register .register-only { display: flex; }
.register-only-inline, .is-register .login-only { display: none; }
/* Mot de passe oublié : seulement le champ e-mail */
.forgot-only { display: none; }
.is-forgot .forgot-only { display: block; }
.is-forgot .forgot-too { display: flex; }
.is-forgot .no-forgot, .is-forgot .tabs, .is-forgot .login-only { display: none; }
.forgot-link { align-self: flex-end; margin-top: -4px; font-size: 13px; }
#auth-form .link.forgot-only { align-self: center; font-size: 13px; }

/* Bandeau « confirme ton e-mail » sur la carte */
.verify-banner {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 900;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  width: max-content; max-width: calc(100% - 24px);
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid rgba(255, 46, 136, .45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 14px;
}
.verify-banner[hidden] { display: none; }
.verify-banner b { color: var(--text); }
.verify-banner span { color: var(--muted); }
.is-register .register-only-inline { display: inline; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--pink); width: 16px; height: 16px; flex-shrink: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.profile-head { display: flex; align-items: center; gap: 16px; padding-right: 40px; }
.profile-head h2 { font-size: 24px; margin-bottom: 4px; }
.profile-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rep-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.stat-tile { display: flex; flex-direction: column; padding: 12px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); }
.stat-tile b { font-family: var(--display); font-weight: var(--display-weight); font-size: 26px; line-height: 1.1; }
.stat-tile span { font-size: 12px; color: var(--muted); }

.lb-table { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lb-table li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); }
.lb-table li:nth-child(1) { border-color: rgba(255, 210, 63, .5); background: rgba(255, 210, 63, .06); }
.lb-table .pos { font-size: 20px; width: 28px; }
.lb-who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lb-who b { overflow: hidden; text-overflow: ellipsis; }
.lb-num { display: flex; flex-direction: column; align-items: flex-end; min-width: 70px; }
.lb-num b { font-variant-numeric: tabular-nums; }
.lb-num span { font-size: 11px; color: var(--muted); }

/* ---------- notifications ---------- */
#toasts {
  position: fixed;
  inset: auto auto 24px 50%; /* annule le placement par défaut des popovers */
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  overflow: visible;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  font-size: 14px;
  font-weight: 500;
  animation: pop .2s ease-out;
  transition: opacity .4s, transform .4s;
}
.toast .i { color: var(--yellow); }
.toast-ok { border-color: rgba(25, 227, 197, .5); }
.toast-ok .i { color: var(--teal); }
.toast-error { border-color: rgba(255, 77, 94, .6); }
.toast-error .i { color: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- responsive ---------- */
.only-mobile { display: none !important; }
.scrim { display: none; }

@media (max-width: 1100px) {
  .logo-tag { display: none; }
}
@media (max-width: 1280px) {
  .topbar:has(.search) .logo-tag { display: none; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 58px; }
  .only-mobile { display: revert !important; }
  .only-desktop { display: none !important; }
  .topbar { gap: 10px; padding: 0 12px; }
  .logo-text { font-size: 13px; }
  .logo img { width: 28px; height: 28px; }
  .top-actions { gap: 6px; }
  #add-btn { padding: 0 12px; }
  #add-btn span { display: none; }
  #add-btn::after { content: attr(data-short); }
  #add-btn.active::after { content: attr(data-short-active); }
  .account-btn { padding: 0 8px 0 4px; }
  .btn-ghost { padding: 0 12px; }

  .site-menu { display: block; }
  .side-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: none; margin: 16px 16px 0; }
  .side-sections a {
    display: grid; place-items: center; min-height: 40px; padding: 4px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text);
    font-size: 13px; font-weight: 600; text-align: center; text-decoration: none;
  }
  .side-sections a[aria-current] { color: var(--accent); border-color: var(--border-strong); background: var(--surface-2); }
  .search.only-mobile { display: flex !important; max-width: none; margin: 16px 16px 4px; }
  .sidebar {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1100;
    width: min(330px, 88vw);
    transform: translateX(-100%);
    transition: transform .22s ease;
  }
  body.sidebar-open .sidebar { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  body.sidebar-open .scrim { display: block !important; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 1050; background: rgba(0, 0, 0, .5); }

  .panel {
    top: auto;
    width: 100%;
    max-height: 78%;
    border-left: 0;
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
  }
  .panel::before {
    content: "";
    position: absolute;
    top: 8px; left: 50%;
    width: 40px; height: 4px;
    margin-left: -20px;
    border-radius: 99px;
    background: var(--border-strong);
  }
  .panel-body { padding: 26px 16px calc(20px + env(safe-area-inset-bottom)); }
  .panel-title { font-size: 21px; }
  .map-hint { top: 12px; font-size: 13px; }
  .modal { padding: 22px 18px; }
}

/* Petits téléphones : la barre du haut doit tenir sans déborder (libellés longs en FR/ES/PT) */
@media (max-width: 420px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .topbar .logo { gap: 7px; }
  .logo-text { font-size: 12px; }
  .topbar .btn { height: 36px; padding: 0 10px; font-size: 13px; }
  .topbar .icon-btn, .site-menu summary { width: 36px; height: 36px; }
  #add-btn .i { display: none; }
}

@media (max-width: 359px) {
  .topbar:has(#add-btn) .logo-text { display: none; }
  /* Pages avec le bouton de menu : on resserre pour garder le nom du site */
  .topbar:has(.site-menu) { gap: 5px; padding: 0 8px; }
  .topbar:has(.site-menu) .logo { gap: 5px; }
  .topbar:has(.site-menu) .logo img { width: 26px; height: 26px; }
  .topbar:has(.site-menu) .logo-text { font-size: 11px; }
  .topbar:has(.site-menu) .btn { padding: 0 8px; }
  .topbar .lang-switch summary { padding: 0 8px; }
  .topbar .lang-switch summary span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Lien vers la checklist dans la carte « Ma progression » */
.link-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--pink); font-weight: 700; font-size: 14px; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
a.menu-item { text-decoration: none; color: inherit; }
.logo-text > span { color: var(--accent); }

/* --- Pied de page commun : slogan au-dessus de la baie (assets/img/skyline.svg), puis navigation --- */
.site-foot { --foot-night: #07060d; margin-top: 56px; background: var(--foot-night); }
.foot-scene { position: relative; overflow: hidden; background: var(--bg); }
.foot-hero {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
  padding: 72px 20px 0;
  text-align: center;
}
.foot-slogan {
  max-width: 15em;
  margin: 0;
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.foot-cta { height: 52px; padding: 0 28px; font-size: 16px; text-decoration: none; }
.foot-art {
  display: block;
  width: 100%;
  height: clamp(200px, 22.5vw, 560px);
  margin: -18px 0 -1px;
  object-fit: cover; object-position: 50% 100%;
  pointer-events: none;
  /* fond le ciel dans la page quand l'image est recadrée */
  -webkit-mask-image: linear-gradient(transparent, #000 28%);
  mask-image: linear-gradient(transparent, #000 28%);
}

.site-foot-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.foot-main {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px;
  padding-top: 48px; padding-bottom: 52px;
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-brand .logo { gap: 14px; }
.foot-brand .logo img { width: 48px; height: 48px; }
.foot-brand .logo-text { font-size: 21px; }
.foot-brand p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 30em; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); color: var(--muted); transition: color .15s, border-color .15s; }
.foot-social a:hover { color: var(--accent); border-color: var(--accent); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.foot-col h2 { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.foot-col a { padding: 5px 0; color: #d4d4d8; text-decoration: none; font-size: 14px; overflow-wrap: anywhere; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.site-foot-bottom { border-top: 1px solid var(--border); }
.site-foot-bottom .site-foot-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  padding-top: 20px; padding-bottom: calc(22px + env(safe-area-inset-bottom));
}
.site-foot-bottom p { flex: 1 1 320px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; }
.foot-langs a { padding: 5px 10px; border: 1px solid transparent; border-radius: 99px; color: var(--muted); text-decoration: none; }
.foot-langs a:hover { color: var(--text); }
.foot-langs a[aria-current] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.foot-top { padding: 5px 0; color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.foot-top:hover { color: var(--text); }
@media (max-width: 900px) {
  .foot-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; align-items: center; text-align: center; padding-bottom: 8px; }
}
@media (max-width: 560px) {
  .foot-hero { padding-top: 48px; gap: 22px; }
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; padding-top: 36px; padding-bottom: 36px; }
  .foot-brand .logo img { width: 40px; height: 40px; }
  .foot-brand .logo-text { font-size: 18px; }
  .site-foot-bottom .site-foot-in { flex-direction: column; align-items: flex-start; }
  .site-foot-bottom p { flex: none; }
  .foot-langs { margin-left: -10px; }
}

/* --- Lieux de Leonida (gtadb.org) : points pratiques et recherche par nom --- */
.pin.is-place { width: 24px; height: 24px; border-width: 1.5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .45), 0 2px 5px rgba(0, 0, 0, .45); opacity: .92; }
.pin.is-place:hover { opacity: 1; }
.place-ping { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(255, 46, 136, .25); animation: place-ping 1.4s ease-out infinite; }
@keyframes place-ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.3); opacity: .25; } }
.place-panel .panel-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.place-rl { font-size: 14px; color: #d4d4d8; line-height: 1.5; margin: 8px 0 12px; }
.place-rl b { color: var(--muted); font-weight: 600; }
.place-add { margin-top: 16px; }
.place-src { font-size: 12px; color: var(--faint); margin-top: 18px; }
.place-src a { color: var(--muted); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1200;
  max-height: min(420px, 70vh); overflow-y: auto;
  padding: 6px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.search-results-head { margin: 4px 8px 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.search-hit { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); text-align: left; cursor: pointer; }
.search-hit:hover, .search-hit:focus-visible { background: var(--surface-2); outline: none; }
.search-hit-text { display: flex; flex-direction: column; min-width: 0; }
.search-hit b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-hit small { font-size: 12px; color: var(--muted); }
.hit-blip { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--c, var(--surface-3)); color: #fff; }
.hit-plain { background: var(--surface-3); color: var(--muted); }
.search-empty { margin: 6px 8px 8px; font-size: 13px; color: var(--muted); }

/* ---------- texte de présentation de la carte (lisible sans JavaScript) ---------- */
.map-about h1 { margin: 0; font-size: 16px; text-wrap: balance; }
.map-about p, .map-about summary { margin: 0; font-size: 13px; color: var(--muted); }
.map-about summary { cursor: pointer; }
.map-about ul { list-style: none; margin: 8px 0 0; padding: 0; }
.map-about li a { display: block; padding: 5px 0; color: var(--text); font-size: 13px; overflow-wrap: anywhere; }

/* ---------- proposition de langue : sous la barre du haut, sous le bandeau de consentement ---------- */
.lang-suggest {
  position: fixed;
  z-index: 2400;
  top: calc(var(--topbar-h) + 8px);
  right: 12px;
  max-width: calc(100% - 24px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
}
.lang-suggest a { color: var(--pink); font-weight: 700; }
.lang-suggest button { position: absolute; top: 2px; right: 2px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); font-size: 20px; cursor: pointer; }
