:root {
  --primary: #2563eb;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --text-main: #1e293b;
  --shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  overflow: hidden;
}

#map {
  height: 100vh;
  width: 100%;
  z-index: 1;
}

/* Bouton d'ouverture */
.menu-button {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-button:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
}

/* Menu Latéral */
.menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 300px;
  height: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.menu.open {
  right: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #64748b;
}

/* Recherche */
.search-bar {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-bar:focus {
  outline: none;
  border-color: var(--primary);
  ring: 2px solid var(--primary);
}

.suggestions {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  background: white;
  border-radius: 10px;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.suggestions li {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}

.suggestions li:hover {
  background: #eff6ff;
  color: var(--primary);
}

.menu-footer {
  margin-top: auto;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

/* Style des Popups Leaflet */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 8px;
}

.leaflet-popup-content b {
  color: var(--primary);
  font-size: 13px;
}
