/*!
 * VisiMap — Deaf Friendly Map
 * Carte mondiale des lieux accessibles aux personnes sourdes et malentendantes.
 *
 * © 2026 Association Vision Signe — Tous droits réservés.
 * SIRET 844 690 370 00011 · RNA W941015540
 * Vitry-sur-Seine (94400), France
 * contact@visionsigne.com · https://visimap.visionsigne.com
 *
 * Toute reproduction, totale ou partielle, du code, du design ou du nom
 * "VisiMap" est interdite sans autorisation écrite préalable.
 * Dépôt e-Soleau INPI : mai 2026.
 */

/* ============================================================
   VisiMap — Styles
   Deaf Friendly Map
   Direction visuelle : Notion + Google Maps · épuré, moderne
   ============================================================ */

:root {
  /* === COULEURS SIGNATURES === */
  --teal:        #0d6e63;
  --teal-dark:   #064a42;
  --teal-light:  #14a896;
  --teal-soft:   #e8f5f2;
  --teal-200:    #b8e0d8;

  --coral:       #ff7a59;
  --coral-soft:  #ffd4c7;

  /* === NEUTRES === */
  --bg:          #fafaf9;
  --surface:     #ffffff;
  --sand:        #f4ede0;
  --border:      #e7e5e0;
  --border-strong: #d4d1ca;

  --ink:         #1f2421;
  --ink-soft:    #6b6f6c;
  --ink-faint:   #9a9c98;

  --success:     #16a34a;
  --warning:     #f59e0b;
  --danger:      #dc2626;

  /* === COMPATIBILITÉ (mappage des vars du JS original) === */
  --primary:        var(--teal);
  --primary-light:  var(--teal-200);
  --primary-soft:   var(--teal-soft);
  --primary-dark:   var(--teal-dark);
  --accent:         var(--coral);
  --warm:           #b45309;
  --danger-light:   #fee2e2;
  --text:           var(--ink);
  --text-muted:     var(--ink-soft);
  --text-soft:      var(--ink-faint);
  --border-soft:    #f1ede5;

  /* === OMBRES === */
  --shadow-sm:  0 1px 2px rgba(24,24,27,.04);
  --shadow-md:  0 2px 8px rgba(24,24,27,.05), 0 1px 3px rgba(24,24,27,.04);
  --shadow-lg:  0 8px 20px rgba(24,24,27,.06), 0 3px 8px rgba(24,24,27,.04);
  --shadow-xl:  0 16px 40px rgba(24,24,27,.10);

  /* === RADIUS === */
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01';
}

.app { position: fixed; inset: 0; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 700;
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

/* === Logo button (Vis-i-pin) === */
.logo-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
}
.logo-btn:hover { box-shadow: var(--shadow-md); }
.logo-btn:active { transform: scale(.94); }
.logo-btn svg { width: 22px; height: 36px; display: block; }

/* === Search pill === */
.search-pill {
  flex: 1;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--border);
  height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
.search-pill:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.search-pill svg { color: var(--ink-faint); flex-shrink: 0; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  min-width: 0;
  font-weight: 500;
}
.search-input::placeholder { color: var(--ink-faint); font-weight: 400; }

/* === Lang toggle === */
.lang-toggle {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 7px 9px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  transition: all .15s;
}
.lang-btn.active {
  background: var(--teal);
  color: white;
}

/* === Icon buttons === */
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  position: relative;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--bg); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--coral);
  color: white;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(255, 122, 89, 0.4);
}

/* ============================================================
   TAGLINE STRIP "Deaf Friendly Map"
   ============================================================ */
.tagline-strip {
  position: absolute;
  top: 64px;
  left: 18px;
  z-index: 600;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   FILTER STRIP
   ============================================================ */
.filter-strip {
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  z-index: 600;
  display: flex;
  gap: 6px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: none;
}
.filter-strip::-webkit-scrollbar { display: none; }
.filter-strip > * { pointer-events: auto; }

.chip, .filter-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  flex-shrink: 0;
  transition: all .15s;
}
.chip:hover, .filter-chip:hover {
  border-color: var(--border-strong);
}
.chip.active, .filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   MAP
   ============================================================ */
.map-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}
#map { width: 100%; height: 100%; background: #eef0ee; }

/* Leaflet overrides */
.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255,255,255,0.85) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}
.leaflet-control-zoom { border: 1px solid var(--border) !important; border-radius: var(--radius) !important; overflow: hidden; box-shadow: var(--shadow-md) !important; }
.leaflet-control-zoom a {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--border) !important;
  font-weight: 400 !important;
}
.leaflet-control-zoom a:last-child { border-bottom: none !important; }
.leaflet-control-zoom a:hover { background: var(--bg) !important; }

/* Pin custom (Google Maps style) */
.marker-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-origin: center bottom;
  transition: transform .2s ease;
}
.marker-pin:hover {
  transform: scale(1.1);
  z-index: 10;
}
.marker-pin svg { width: 18px; height: 18px; color: white; }

/* Popup Leaflet */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border);
}
.leaflet-popup-content { margin: 12px 16px !important; font-family: inherit; }
.leaflet-popup-tip { background: var(--surface) !important; }

/* ============================================================
   MAP FAB
   ============================================================ */
.map-fab {
  position: absolute;
  right: 14px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--teal);
  z-index: 500;
  transition: transform .15s, box-shadow .15s;
}
.map-fab:hover { box-shadow: var(--shadow-lg); }
.map-fab:active { transform: scale(.94); }
.map-fab svg { width: 20px; height: 20px; }
.fab-locate { bottom: 240px; }
.fab-fit { bottom: 296px; }

/* ============================================================
   BOTTOM SHEET
   ============================================================ */
.sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  z-index: 100;
  border: 1px solid var(--border);
  border-bottom: none;
  transition: max-height .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet.peek { max-height: 220px; }
.sheet.expanded { max-height: 70vh; }

.sheet-handle {
  padding: 10px 0 6px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.sheet-handle-bar {
  width: 40px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 999px;
}

.sheet-header {
  padding: 4px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.sheet-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.sheet-title-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.sheet-action {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all .15s;
}
.sheet-action:hover { background: var(--surface); border-color: var(--border-strong); }
.sheet-action svg { width: 12px; height: 12px; }

.sheet-body {
  overflow-y: auto;
  padding: 0 18px 18px;
  flex: 1;
}

.sheet-section { margin-bottom: 16px; }
.sheet-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============================================================
   PLACE CARD
   ============================================================ */
.place-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  cursor: pointer;
  align-items: flex-start;
  transition: background .15s;
}
.place-card:hover { background: rgba(0,0,0,0.01); }
.place-card.selected {
  background: var(--teal-soft);
  border-radius: var(--radius);
  border: 1px solid var(--teal-200);
  padding: 12px;
  margin: 0 -12px;
}
.place-card:last-child { border-bottom: none; }

.place-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.place-icon svg { width: 16px; height: 16px; }

.place-info { flex: 1; min-width: 0; }
.place-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 2px;
  line-height: 1.3;
}
.place-loc {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.place-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
  color: var(--ink);
}
.rating svg { width: 12px; height: 12px; fill: var(--warning); }
.rating-count { color: var(--ink-faint); font-weight: 400; }

.freshness {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}
.freshness.fresh { background: #dcfce7; color: var(--success); }
.freshness.aging { background: #fef3c7; color: #92400e; }
.freshness.old { background: #fee2e2; color: var(--danger); }

.place-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-faint);
}
.empty-icon { font-size: 32px; margin-bottom: 8px; }

/* ============================================================
   DETAIL SHEET
   ============================================================ */
.detail-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 32px rgba(0,0,0,0.12);
  z-index: 800; /* AU-DESSUS de la topbar pour qu'elle ne soit pas occluse */
  border: 1px solid var(--border);
  border-bottom: none;
  max-height: 100vh;     /* mobile : prend tout l'écran quand ouverte */
  height: 100%;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.detail-sheet.open {
  transform: translateY(0);
  opacity: 1;
}

/* === Barre du haut de la fiche détail (bouton retour) === */
.detail-topbar {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 250;
  padding: 12px 14px 8px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-bottom: 0;
}

.detail-handle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 6px;
  position: relative;
  flex-shrink: 0;
}

/* === BOUTON RETOUR : grand, clair, intuitif === */
.detail-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all .15s;
}
.detail-close-btn:hover {
  background: var(--bg);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.detail-close-btn:active { transform: scale(.96); }
.detail-close-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}
.detail-close-btn .back-label {
  font-weight: 500;
}

/* === SUR DESKTOP : bouton plus discret === */
@media (min-width: 900px) {
  .detail-topbar {
    padding: 14px 18px 8px;
    justify-content: flex-end;
  }
  .detail-close-btn {
    padding: 6px 14px 6px 10px;
    font-size: 13px;
  }
  .detail-close-btn svg { width: 16px; height: 16px; }
}

#detailHeader { padding: 0; flex-shrink: 0; }

.detail-photo {
  height: 180px;
  background-image: linear-gradient(135deg, #6b9890 0%, #4a7670 100%);
  position: relative;
  overflow: hidden;
}
.detail-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(244,162,97,0.25) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(38,70,83,0.3) 0%, transparent 40%);
}
.detail-photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  color: var(--ink);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.detail-photo-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
}

.detail-body {
  padding: 18px 18px 24px;
  overflow-y: auto;
}

.detail-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.detail-category .picto-mini {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.detail-category .picto-mini svg { width: 11px; height: 11px; }

.detail-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.2;
}
.detail-specialty {
  font-size: 14px;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 10px;
}
.detail-address {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.detail-address svg { width: 13px; height: 13px; color: var(--ink-faint); flex-shrink: 0; }

.detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--warning); font-size: 14px; }
.rating-num { font-size: 14px; font-weight: 600; color: var(--ink); }

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 20px;
}

/* === Buttons === */
.btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all .15s;
}
.btn-primary {
  background: var(--teal);
  color: white;
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg); }
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}
.btn-ghost:hover { background: var(--bg); }
.btn svg { width: 14px; height: 14px; }

/* === Detail sections === */
.detail-section { margin-bottom: 22px; }
.detail-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.access-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.access-item.primary {
  background: var(--teal-soft);
  border-color: var(--teal-200);
}
.access-icon-wrap {
  width: 24px;
  height: 24px;
  background: var(--bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.access-item.primary .access-icon-wrap {
  background: var(--teal);
  color: white;
}

.desc-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* === Freshness verification === */
.freshness-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.freshness-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.freshness-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.freshness-buttons {
  display: flex;
  gap: 6px;
}
.freshness-btn {
  flex: 1;
  padding: 8px 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  transition: all .15s;
}
.freshness-btn:hover { background: var(--surface); border-color: var(--border-strong); }
.freshness-btn.ok:hover { border-color: var(--success); color: var(--success); }
.freshness-btn.no:hover { border-color: var(--danger); color: var(--danger); }

/* === Reviews === */
.review {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.review:last-child { border-bottom: none; }
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.review-user {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.review-stars { display: inline-flex; gap: 2px; }
.review-stars svg { width: 12px; height: 12px; fill: var(--warning); }
.review-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

.add-review-btn {
  width: 100%;
  padding: 10px;
  background: var(--bg);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  margin-top: 12px;
}
.add-review-btn:hover { background: var(--surface); color: var(--teal); border-color: var(--teal); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24,24,27,.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp .3s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-head {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.modal-head::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 999px;
}
.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.modal-close svg { width: 14px; height: 14px; }

.modal-body {
  padding: 18px 20px 20px;
  overflow-y: auto;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  color: var(--ink);
  transition: all .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.field textarea { resize: vertical; min-height: 72px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-help {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 4px;
}

.access-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.access-option {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.access-option:hover { background: var(--bg); border-color: var(--border-strong); }
.access-option.active {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-color: var(--teal-200);
}

.star-rating { display: inline-flex; gap: 4px; }
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--border-strong);
  transition: color .15s;
}
.star-btn.active { color: var(--warning); }
.star-btn svg { width: 24px; height: 24px; fill: currentColor; }

/* ============================================================
   TOAST
   ============================================================ */
#toastContainer {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  animation: slideUpToast .3s, slideDownToast .3s 2.7s;
  pointer-events: auto;
}
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--teal); }
@keyframes slideUpToast { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDownToast { to { transform: translateY(20px); opacity: 0; } }

/* ============================================================
   CONSENT BANNER (RGPD)
   ============================================================ */
.consent-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 18px 20px;
  z-index: 12000;
  border: 1px solid var(--border);
  animation: slideUpBanner .4s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUpBanner { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.consent-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.consent-text {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.55;
}
.consent-text a {
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
}
.consent-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.consent-btn {
  flex: 1;
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  transition: all .15s;
}
.consent-btn.accept {
  background: var(--teal);
  color: white;
  box-shadow: var(--shadow-sm);
}
.consent-btn.accept:hover { background: var(--teal-dark); }
.consent-btn.essential {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
}

/* ============================================================
   FOOTER LINKS
   ============================================================ */
.footer-links {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--ink-faint);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  pointer-events: auto;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { color: var(--teal); }

/* ============================================================
   DESKTOP (≥900px)
   ============================================================ */
@media (min-width: 900px) {
  .sheet {
    left: 16px;
    right: auto;
    top: 130px;
    bottom: 16px;
    width: 420px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    max-height: none !important;
    box-shadow: var(--shadow-lg);
  }
  .sheet-handle { display: none; }
  .sheet-header { padding: 18px 20px 14px; }
  .sheet-body { padding: 6px 18px 20px; }
  #filtersSection { display: block !important; }
  #sheetToggleBtn { display: none; }

  .detail-sheet {
    left: 452px;
    right: auto;
    top: 130px;
    bottom: 16px;
    width: 460px;
    border-radius: var(--radius-lg);
    max-height: none;
    height: auto;
    transform: translateY(0) translateX(-110%);
    opacity: 0;
  }
  .detail-sheet.open { transform: translateY(0) translateX(0); opacity: 1; }
  .detail-body { padding: 18px 22px 24px; }

  .map-fab { right: 20px; }
  .fab-locate { bottom: 60px; }
  .fab-fit { bottom: 120px; }

  .modal-overlay { align-items: center; padding: 24px; }
  .modal { border-radius: var(--radius-lg); max-width: 600px; }
  .modal-head::before { display: none; }

  .footer-links { bottom: 14px; right: 20px; left: auto; transform: none; }

  .tagline-strip { left: 70px; }
}


/* ============================================================
   FIX v1.1 — Bouton retour + harmonisation fiche détail
   Suite au retour utilisateur : "je ne peux pas revenir en arrière"
   ============================================================ */

/* === BARRE DU HAUT DE LA FICHE DÉTAIL === */
.detail-topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* === BOUTON RETOUR : pill avec icône + texte === */
.detail-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  box-shadow: var(--shadow-sm);
  transition: all .15s ease;
  -webkit-tap-highlight-color: rgba(13, 110, 99, 0.2);
}
.detail-close-btn:hover {
  background: var(--bg);
  border-color: var(--border-strong);
}
.detail-close-btn:active { transform: scale(.96); }
.detail-close-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  flex-shrink: 0;
}
.back-label {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Handle row maintenant redondante : on la cache */
.detail-handle-row { display: none !important; }

/* === DESKTOP === */
@media (min-width: 900px) {
  .detail-topbar { padding: 14px 18px 8px; }
}

/* === HERO de la fiche détail === */
.detail-header-bg {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

/* === Icône catégorie ronde === */
.detail-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  max-width: 56px;
  min-height: 56px;
  max-height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  overflow: hidden;
}
.detail-icon svg {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px;
  max-height: 26px;
  flex-shrink: 0;
}

.detail-info { flex: 1; min-width: 0; }

/* === Pill catégorie (au-dessus du nom) === */
.cat-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.detail-loc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === Bloc note (étoiles + count) === */
.detail-rating-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--warning);
  line-height: 1;
}
.detail-rating-count {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 500;
  margin-top: 4px;
  text-align: right;
}
.detail-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}

/* === Action buttons row === */
.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.action-btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .15s;
}
.action-btn svg { width: 14px; height: 14px; }
.action-btn.primary {
  background: var(--teal);
  color: white;
}
.action-btn.primary:hover { background: var(--teal-dark); }
.action-btn.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.action-btn.secondary:hover { background: var(--bg); }
.action-btn.sms-priority {
  background: var(--coral);
  color: white;
  flex-basis: 100%;
}
.action-btn.sms-priority:hover { filter: brightness(0.95); }

/* === Sections === */
.section {
  margin: 22px 0 0;
  padding: 0 18px;
}
@media (min-width: 900px) {
  .section { padding: 0; }
  .detail-header-bg { padding-left: 0; padding-right: 0; }
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

/* === Pills accessibilité (teal uniforme, plus le violet de la catégorie) === */
.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-soft) !important;
  color: var(--teal-dark) !important;
  border: 1px solid var(--teal-200);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  margin: 0 4px 6px 0;
  cursor: pointer;
  position: relative;
  transition: all .15s;
}
.access-badge:hover {
  background: var(--teal) !important;
  color: white !important;
  border-color: var(--teal);
}

.access-tooltip { position: relative; }
.tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  max-width: 260px;
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.tooltip-bubble:empty { display: none; }
.access-tooltip.show .tooltip-bubble,
.access-tooltip:hover .tooltip-bubble { opacity: 1; }

/* === Bloc "Ce lieu est-il toujours adapté ?" === */
.freshness-check {
  margin: 24px 18px 0;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
@media (min-width: 900px) {
  .freshness-check { margin-left: 0; margin-right: 0; }
}
.freshness-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.freshness-sub {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.freshness-buttons {
  display: flex;
  gap: 6px;
}
.freshness-btn {
  flex: 1;
  padding: 9px 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 9px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: all .15s;
}
.freshness-btn:hover { background: var(--surface); border-color: var(--border-strong); }
.freshness-btn.ok { color: var(--success); }
.freshness-btn.ok:hover { border-color: var(--success); background: #f0fdf4; }
.freshness-btn.changed { color: #d97706; }
.freshness-btn.changed:hover { border-color: #d97706; background: #fffbeb; }
.freshness-btn.no { color: var(--danger); }
.freshness-btn.no:hover { border-color: var(--danger); background: #fef2f2; }
.freshness-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-soft);
}

/* === Reviews === */
.review-form {
  margin-top: 14px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.review-form-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.review-form input,
.review-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  background: var(--surface);
  color: var(--ink);
  margin-bottom: 8px;
  transition: all .15s;
}
.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.review-form textarea { resize: vertical; min-height: 64px; }
.review-form .btn-primary {
  background: var(--teal);
  color: white;
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.review-form .btn-primary:hover { background: var(--teal-dark); }

.star-input {
  font-size: 28px;
  cursor: pointer;
  color: var(--border-strong);
  margin-right: 2px;
  transition: color .15s, transform .1s;
  user-select: none;
}
.star-input.filled { color: var(--warning); }
.star-input:hover { transform: scale(1.1); }

.review-stars {
  color: var(--warning);
  font-size: 13px;
  letter-spacing: 1px;
}

/* === Cluster Leaflet : palette teal === */
.marker-cluster {
  background-clip: padding-box;
}
.marker-cluster div {
  background: var(--teal) !important;
  color: white !important;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(13, 110, 99, 0.25);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: var(--teal);
}

/* ============================================================
   ACCESSIBILITÉ v1.2 — WCAG AA/AAA
   ============================================================ */

/* === Classe utilitaire screen-reader only === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === Skip link (premier élément focusable, caché jusqu'au focus) === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 20000;
  background: var(--teal);
  color: white;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

/* === Focus visible moderne (uniquement clavier, pas tap) === */
*:focus {
  outline: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === Garde une bordure spécifique sur les champs en focus === */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 0;
  border-radius: var(--radius-sm);
}

/* === Préférences mouvements réduits === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Désactiver le pulse animations des pins/markers */
  .marker-pin.selected::after,
  .map-pin.selected::after {
    animation: none !important;
  }
}

/* === Préférences contraste élevé === */
@media (prefers-contrast: more) {
  :root {
    --teal: #054a42;
    --teal-dark: #033831;
    --ink: #000000;
    --ink-soft: #1f2421;
    --border: #767676;
    --border-strong: #4a5552;
  }
  .access-badge,
  .place-tag,
  .freshness {
    border: 1.5px solid currentColor !important;
  }
}

/* === Cibles tactiles min 44x44 (WCAG 2.5.5 AAA) === */
.chip,
.filter-chip,
.lang-btn,
.freshness-btn {
  min-height: 36px; /* Pour les petits éléments en grappe, on peut tolérer 36 si bien espacés */
}

button,
.btn,
a.btn,
.action-btn,
.icon-btn,
.map-fab,
.logo-btn,
.sheet-action,
.detail-close-btn,
.access-option {
  min-height: 44px;
  min-width: 44px;
}

/* === Markers carte : pas focusable par défaut, mais si l'utilisateur tab dans Leaflet === */
.leaflet-marker-icon:focus-visible {
  outline: 3px solid var(--coral) !important;
  outline-offset: 4px;
  border-radius: 50%;
}

/* === Toasts visibles pour les lecteurs d'écran === */
.toast[role="alert"],
.toast[role="status"] {
  position: relative;
}

/* === Texte minimum 16px sur inputs mobile (évite zoom iOS) === */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* === Indicateur visuel sur les éléments interactifs === */
.place-card,
.filter-chip,
.chip {
  cursor: pointer;
}
.place-card:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: -3px;
  border-radius: var(--radius);
}

/* === Liens visibles dans tout le texte === */
.desc-text a,
.consent-text a,
.review-text a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.desc-text a:hover,
.consent-text a:hover {
  color: var(--teal-dark);
}


/* ============================================================
   MODAL FILTRES v1.3
   Modal dédiée pour Pays + Accessibilité, plus épuré
   ============================================================ */

/* Bouton "Filtres" amélioré avec compteur */
.filters-btn {
  position: relative;
}
.filters-btn.has-active {
  background: var(--teal) !important;
  border-color: var(--teal) !important;
  color: white !important;
}
.filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--coral);
  color: white;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
  line-height: 1;
}
.filters-btn.has-active .filters-count {
  background: white;
  color: var(--teal);
}

/* Modal overlay */
.filters-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.filters-modal.open {
  display: flex;
  pointer-events: auto;
}
.filters-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24,24,27,0.45);
  backdrop-filter: blur(4px);
  animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Panel principal */
.filters-modal-panel {
  position: relative;
  background: var(--surface);
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFilters .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -20px 60px rgba(0,0,0,0.2);
}
@keyframes slideUpFilters {
  from { transform: translateY(100%); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

/* Header de la modal */
.filters-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
}
.filters-modal-head::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 999px;
}
.filters-modal-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.filters-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all .15s ease;
}
.filters-modal-close:hover {
  background: var(--bg);
  border-color: var(--border-strong);
}
.filters-modal-close svg { width: 16px; height: 16px; }

/* Body scrollable */
.filters-modal-body {
  padding: 20px 20px 12px;
  overflow-y: auto;
  flex: 1;
}

/* Section Pays / Accessibilité */
.filters-section {
  margin-bottom: 24px;
}
.filters-section:last-child {
  margin-bottom: 8px;
}
.filters-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.filters-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.filters-section-icon svg { width: 16px; height: 16px; }
.filters-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Grille de chips dans la modal */
.filters-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filters-chips-grid .filter-chip {
  font-size: 14px;
  padding: 9px 14px;
  min-height: 40px;
}

/* Footer avec actions */
.filters-modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.filters-modal-footer .btn {
  flex: 1;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
}
.filters-modal-footer .btn-secondary {
  flex: 0 0 auto;
  padding: 0 20px;
}
.filters-modal-footer .btn-primary {
  flex: 1;
}

/* Empêcher le scroll du body quand modal ouverte */
body.modal-open {
  overflow: hidden;
}

/* Cacher les anciens conteneurs filtres dans le sheet */
#countryFilters,
#accessFilters {
  display: none !important;
}

/* Desktop : modal centrée verticalement */
@media (min-width: 900px) {
  .filters-modal {
    align-items: center;
    padding: 24px;
  }
  .filters-modal-panel {
    border-radius: 16px;
    max-height: 80vh;
    max-width: 580px;
  }
  .filters-modal-head::before {
    display: none;
  }
}

/* ============================================================
   FOOTER COPYRIGHT v1.5
   ============================================================ */
.footer-links {
  align-items: center;
  flex-wrap: wrap;
}
.footer-copyright {
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 500;
  padding-right: 4px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
}
.footer-copyright::before {
  content: '';
}
@media (max-width: 480px) {
  /* Sur très petit mobile, on cache le copyright pour gagner de la place
     (il reste visible dans les mentions légales) */
  .footer-copyright { display: none; }
}

/* ============================================================
   SETTINGS MODAL v1.6 — épuré, sans emojis
   ============================================================ */

.settings-body { padding-bottom: 8px; }

.settings-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.settings-section:first-child { padding-top: 4px; }
.settings-section:last-child { border-bottom: none; }

.settings-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.settings-row-label { flex: 1; min-width: 0; }
.settings-row-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}
.settings-row-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.settings-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.settings-status.on {
  background: #dcfce7;
  color: var(--success);
}
.settings-status.off {
  background: var(--bg);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

.settings-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  line-height: 1.5;
}

.settings-buttons {
  display: flex;
  gap: 8px;
}
.settings-buttons .btn {
  flex: 1;
  min-height: 40px;
  font-size: 13px;
}

/* Bouton danger contour */
.btn-danger-outline {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--danger);
  background: var(--surface);
  color: var(--danger);
  cursor: pointer;
  min-height: 40px;
  transition: all .15s;
}
.btn-danger-outline:hover {
  background: #fee2e2;
}

/* Liens dans les paramètres */
.settings-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 -8px;
}
.settings-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 8px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: background .15s;
  min-height: 44px;
}
.settings-link:hover {
  background: var(--bg);
}
.settings-link svg {
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.settings-link:hover svg {
  color: var(--teal);
}

/* Footer infos application */
.settings-footer {
  padding-top: 18px;
  text-align: center;
}
.settings-app-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.settings-app-version {
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.settings-app-copyright {
  font-size: 11px;
  color: var(--ink-faint);
}

/* === Cacher l'ancien footer (au cas où il traîne dans le DOM) === */
.footer-links {
  display: none !important;
}
.footer-copyright {
  display: none !important;
}

/* === Repositionner les FAB maintenant que le footer a disparu === */
.fab-locate { bottom: 230px; }
.fab-fit { bottom: 286px; }

@media (min-width: 900px) {
  .fab-locate { bottom: 60px; }
  .fab-fit { bottom: 120px; }
}

/* ============================================================
   ACCESS BADGES — points colorés au lieu d'emojis
   ============================================================ */
.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.access-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  color: var(--teal);
}
.access-label {
  font-size: 13px;
}

/* ============================================================
   REPORT PLACE v1.7 — Remplace "Toujours adapté ?"
   ============================================================ */
.report-place-block {
  margin: 16px 0;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.report-place-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  min-height: 36px;
  transition: all .15s;
}
.report-place-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.report-place-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.report-place-hint {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* === Modale signalement === */
.report-intro {
  padding: 10px 12px;
  background: var(--bg);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  margin: 0 0 16px;
  font-size: 14px;
}

.report-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 14px;
}
.report-legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  padding: 0;
}

.report-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
}
.report-radio:hover {
  border-color: var(--border-strong);
  background: var(--bg);
}
.report-radio input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--teal);
  flex-shrink: 0;
}
.report-radio:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-soft);
}
.report-radio-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}
.report-radio-text strong {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}
.report-radio-text small {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: normal;
}

.report-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.report-actions .btn {
  flex: 1;
  min-height: 44px;
}

/* === Cacher les anciens styles freshness === */
.freshness-check {
  display: none !important;
}
