/* ========== Structure générale ========== */
body {
  scroll-behavior: smooth;
  background-color: #f0f4f8;
  padding-bottom: 80px; /* cohérent avec .main-content et .fixed-bottom-bar */
  margin: 0;
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
}

.main-content {
  padding-bottom: 80px; /* Même valeur que la hauteur de .fixed-bottom-bar */
}

section {
  padding: 60px 15px;
}

/* ========== Navigation ========== */
.nav-link {
  font-size: 0.85rem;
  transition: color 0.2s;
}

.nav-link.active {
  font-weight: bold;
  color: #0d6efd !important;
}

.nav-link .icon {
  font-size: 1.4rem;
}

/* ========== Carte Leaflet ========== */
#map,
#mapSelection {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#map {
  height: 60vh;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

#mapSelection {
  height: 100%;
}

#mapOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1050;
  transition: opacity 0.3s ease;
}

/* ========== Liste des arrêts ========== */
.stop-list,
.station-card {
  border-left: 4px solid #00c8a0;
  margin-left: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background: white;
  border-radius: 8px;
  padding: 10px;
}

.stop-item {
  position: relative;
  padding: 15px 15px 15px 40px;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.stop-item:hover {
  background-color: #f0f8ff;
  transform: translateX(5px);
}

.stop-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 20px;
  width: 14px;
  height: 14px;
  background-color: #00c8a0;
  border: 3px solid white;
  border-radius: 50%;
  z-index: 1;
  transition: background-color 0.3s ease;
}

.stop-item:first-child::before {
  background-color: #00c8a0;
}

.stop-item:hover::before {
  background-color: #007f6b;
}

/* ========== Icônes à droite ========== */
.icon-group {
  float: right;
  display: flex;
  align-items: center;
}

.icon-group i {
  margin-left: 12px;
  font-size: 1.4rem;
  color: #6c757d;
  transition: color 0.3s ease;
}

.icon-group i:hover {
  color: #00c8a0;
}

/* ========== Suggestions ========== */
.search-box,
.input-group {
  margin-bottom: 20px;
}

.suggestion-list {
  border: 1px solid #dee2e6;
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  background: white;
  z-index: 1000;
  border-radius: 8px;
}

.suggestion-item {
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.suggestion-item:hover {
  background-color: #e0f7fa;
}

.suggestions {
  padding: 20px;
  background: white;
  border-top: 1px solid #dee2e6;
  border-radius: 8px;
}

.suggestion-card {
  margin-bottom: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.suggestion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ========== Bouton de soumission ========== */
.submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background-color: #00c8a0;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #007f6b;
}

/* ========== Message d'erreur ========== */
.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 10px;
  font-weight: bold;
}

/* ========== Barre fixe en bas ========== */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #FFFFF0;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0;
  z-index: 1030;
  height: 60px;
}

.fixed-bottom-bar i {
  font-size: 1.5rem;
  color: #6c757d;
  transition: color 0.3s ease;
}

.fixed-bottom-bar i:hover {
  color: #00c8a0;
}

.fixed-bottom-bar a.active i {
  color: #00c8a0;
}

/* ========== Correspondances ========== */
.correspondances i {
  margin-right: 12px;
  font-size: 1.2rem;
  color: #6c757d;
  transition: color 0.3s ease;
}

.correspondances i:hover {
  color: #00c8a0;
}
