* {
  box-sizing: border-box;
}
body, html {
  margin: 0; padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
  background: #f0f0f0;
  color: #333;
}

/* Bouton hamburger */
#btnToggleMenu {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 2000;
  background: #007bff;
  border: none;
  color: white;
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
}

/* Menu latéral */
#menuLateral {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  padding: 15px 20px;
  overflow-y: auto;
  z-index: 1000;
  transition: width 0.3s ease, padding 0.3s ease;
}

/* Masquer menu */
#menuLateral.hidden {
  width: 0;
  padding: 0;
  overflow: hidden;
}

/* Carte */
#map {
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  bottom: 0;
  z-index: 500;
  transition: left 0.3s ease;
}

/* Quand menu caché */
#menuLateral.hidden + #map {
  left: 0;
}

/* Titres sections */
#menuLateral h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #007bff;
  font-size: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* Responsive : cacher menu au démarrage sur petits écrans */
@media (max-width: 768px) {
  #menuLateral {
    width: 100%;
    height: 250px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    padding: 10px;
  }
  #menuLateral.hidden {
    height: 0;
    width: 100%;
    padding: 0;
  }
  #menuLateral.hidden + #map {
    top: 0;
    left: 0;
  }
  #map {
    top: 250px;
    left: 0;
  }
}
