body {
  background-image: url("../img/Le Muscardin_G.png");
  background-attachment: fixed;
  padding-bottom: 200px;
}

#muscardin {
  display: flex;
  height: 50px;
}

header h1 {
  margin: 50px;
}

li {
  list-style: none;
}

footer.container-fluid {
  height: 10rem;
  margin: 1rem;
  border-top: 1px solid #000000;
  padding-top: 9px;
}

h1 h2 h3 {
  text-align: center;
  margin: 1.5rem;
}

p {
  text-align: justify;
}

.p1 {
  margin-right: auto;
}

.p3 {
  margin-left: auto;
  text-align: right;
}

navbar.container-fluid {
  flex-direction: column;
  justify-content: space-around;
  align-items: inherit;
}

ol.container-fluid {
  flex-direction: row;
  margin: 10px;
  padding: 0px;
  align-items: flex-start;
}

.btn-group {
  margin: 30px;
}

form .erreur {
  background: #cf5f5f;
  border-bottom: 2px solid #ad3434;
}

#message {
  width: 100%;
  border: none;
  border-radius: 5px;
  border-bottom: 2px solid #ccc;
  padding-left: 10px;
  color: #333;
}

form .confirmation {
  margin: 20px;
  background: #23cf5a;
  border-bottom: 2px solid #34ad58;
  text-align: center;
}

#textarea {
  height: 50px;
  width: 100%;
}

/* ===== STYLES POUR COVOITURAGE ===== */

/* Container responsive pour les iframes Google Maps */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* Section pour chaque parking */
.map-section {
  scroll-margin-top: 100px;
  width: 100%;
  position: relative;
  left: 0%;
  right: 0%;
  margin-left: 0vw;
  margin-right: 0vw;
  padding-left: 1rem;
  padding-right: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.map-section h3 {
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

/* Fil d'ariane (breadcrumb) */
.breadcrumb-text {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

.breadcrumb-text a {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
}

.breadcrumb-text a:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* Alerte améliorée */
.alert {
  border-left: 4px solid #17a2b8;
  border-radius: 6px;
}

.alert.alert-info {
  background-color: #f0f7fa;
  border-color: #17a2b8;
}

.alert p {
  text-align: center;
  margin: 0;
}

.alert .badge {
  font-size: 0.85rem;
  padding: 6px 12px;
  margin: 0 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
  .map-section h3 {
    font-size: 1.1rem;
  }

  .alert .badge {
    display: block;
    margin: 6px 0;
  }

  .breadcrumb-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .map-section h3 {
    font-size: 1rem;
  }

  .alert p strong {
    display: block;
    margin-bottom: 10px;
  }
}

/* Hamburger menu - visible sur mobile */
.navbar-toggler {
  padding: 0.35rem 0.5rem !important;
  border: 1px solid rgba(0, 0, 0, 0.125) !important;
  font-size: 1.5rem;
}

.navbar-toggler span {
  display: none;
}

.navbar-toggler::before {
  content: "☰";
  color: rgba(0, 0, 0, 0.55);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Dropdowns - CSS + Bootstrap */
.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 160px;
  margin: 0;
  padding: 0.5rem 0;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  color: #212529;
  text-decoration: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #e9ecef;
  color: #16213e;
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid #dee2e6;
}

/* Mobile collapse - afficher quand show est présent */
@media (max-width: 991px) {
  .navbar-collapse {
    display: none;
    flex-basis: 100%;
  }
  
  .navbar-collapse.show {
    display: block !important;
  }
}
