/* =========================================================
   Style général
   ========================================================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Pages formulaire (index.php) */
.container {
  max-width: 520px;
  margin: 24px auto;
  padding: 16px;
}

h1 { margin: 0 0 8px; }

.small {
  color: #555;
  font-size: 0.95em;
}

label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

input, select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  box-sizing: border-box;
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

button {
  padding: 10px 12px;
  cursor: pointer;
}

/* Bouton rouge "danger" (déconnexion / actions critiques) */
button.danger {
  background: #b00020;
  color: white;
  border: none;
}

.status {
  margin-top: 12px;
  color: #333;
  min-height: 1.2em;
}

/* =========================================================
   Carte Leaflet (carte.php)
   Plein écran (plus de topbar externe)
   ========================================================= */
#map {
  height: 100vh;
  width: 100vw;
}

/* =========================================================
   Modal (index.php)
   ========================================================= */
.modal.hidden { display: none; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 16px;
  max-width: 520px;
  margin: 0 10px;
  border-radius: 10px;
}

/* =========================================================
   Contrôles Leaflet intégrés (Pandibus)
   - info en haut à gauche
   - message en bas à gauche
   - boutons en haut à droite
   ========================================================= */
.pandibus-info,
.pandibus-msg {
  background: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-size: 14px;
}

/* Laisse un petit espace au-dessus des contrôles Leaflet si besoin */
.leaflet-top .pandibus-info {
  margin-top: 4px;
}

.pandibus-msg {
  margin-bottom: 8px;
}

/* Boutons à droite */
.pandibus-buttons {
  display: flex;
  gap: 8px;
}

.pandibus-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-size: 20px;
  cursor: pointer;
  padding: 0; /* important pour que l’icône soit centrée */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bouton déconnexion rouge */
.pandibus-btn-danger {
  background: rgba(176,0,32,0.92);
  color: white;
  border: 1px solid rgba(176,0,32,0.5);
}

/* Petit feedback au tap */
.pandibus-btn:active {
  transform: scale(0.98);
}
