* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Ajoute à la fin de styles.css */
#reservationPopup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 9999;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f9ff 0%, #e6f3ff 100%);
  color: #333;
  line-height: 1.6;
}
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  padding-bottom: 90px; /* Ajoute un padding pour la bottom-nav */
}
.header {
  background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(30, 144, 255, 0.3);
}
.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}
.carousel-section {
  margin: 2rem 1rem;
}
.carousel-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(30, 144, 255, 0.2);
}
.carousel-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem 1rem 1rem;
  text-align: center;
}
.slide-overlay h3 {
  font-size: 1.3rem;
  font-weight: 600;
}
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot.active,
.dot:hover {
  background: white;
  transform: scale(1.2);
}
.routes-section {
  margin: 2rem 1rem;
  padding-bottom: 80px; /* Ajoute un padding pour la bottom-nav */
}
.section-title {
  font-size: 1.8rem;
  color: #1e90ff;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}
/* Ajoute dans css/styles.css */
.custom-list-group { margin-bottom: 1.2rem; }
.custom-list { display: flex; flex-direction: column; gap: 0.5rem; }
.custom-list-item {
  padding: 0.7rem 1rem;
  border: 1px solid #d0e6ff;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
  margin-bottom: 0.2rem;
  transition: background 0.2s, border 0.2s;
}
.custom-list-item.selected {
  background: #1e90ff;
  color: #fff;
  border: 2px solid #1e90ff;
}
.routes-list {
  display: grid;
  gap: 1rem;
}
.route-item {
  background: white;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(30, 144, 255, 0.1);
  border-left: 4px solid #1e90ff;
  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.5s ease forwards;
}
.route-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 144, 255, 0.2);
}
.route-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.route-arrow {
  color: #1e90ff;
  font-size: 1.2rem;
  opacity: 0.7;
}
@media (max-width: 480px) {
  .header { padding: 1.5rem 1rem; }
  .title { font-size: 2rem; }
  .carousel-wrapper { height: 200px; }
  .slide-overlay h3 { font-size: 1.1rem; }
  .route-item { padding: 1rem; }
  .route-name { font-size: 1rem; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Menu bas de page */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
  box-shadow: 0 -4px 20px rgba(30, 144, 255, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0 0.3rem 0;
  z-index: 1000;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.nav-link {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
  padding: 0.2rem 1.2rem;
  border-radius: 12px;
}
.nav-link.active,
.nav-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  opacity: 1;
}
.nav-icon {
  font-size: 1.4rem;
  margin-bottom: 0.1rem;
}
@media (max-width: 480px) {
  .bottom-nav { font-size: 0.95rem; }
  .nav-icon { font-size: 1.2rem; }
  .nav-link { padding: 0.2rem 0.7rem; }
}
/* Réservations */
.reservations-section {
  margin: 2rem 1rem;
  padding-bottom: 80px; /* Ajoute un padding pour la bottom-nav */
}
.reservations-list {
  display: grid;
  gap: 1.2rem;
}
.reservation-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(30, 144, 255, 0.10);
  padding: 1.2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid #1e90ff;
  animation: fadeInUp 0.5s ease forwards;
}
.reservation-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.reservation-date {
  font-weight: 600;
  color: #1e90ff;
  margin-right: 1.2rem;
}
.reservation-price {
  font-weight: 500;
  color: #333;
  background: #e6f3ff;
  border-radius: 8px;
  padding: 0.2rem 0.7rem;
  font-size: 0.98rem;
  margin-left: 0.5rem;
  white-space: nowrap; /* <-- ajoute cette ligne */
}
.reservation-route {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.08rem;
}
.reservation-arrow {
  color: #1e90ff;
  font-size: 1.2rem;
  opacity: 0.7;
}
.reservation-status {
  font-size: 0.97rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.3rem 0.8rem;
  margin-left: 0;
  margin-bottom: 0.2rem;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.07);
}
.reservation-status.confirmed {
  background: #e6ffe6;
  color: #1e7f1e;
  border: 2px solid #1e7f1e;
}
.reservation-status.pending {
  background: #fffbe6;
  color: #bfa100;
  border: 2px solid #bfa100;
  font-size: 0.92rem; /* plus petit */
  padding: 0.22rem 0.7rem; /* réduit */
}
.reservation-status.expired {
  background: #ffeaea;
  color: #d8000c;
  border: 2px solid #d8000c;
}
.reservation-actions {
  display: flex;
  flex-direction: column; /* superposition verticale */
  align-items: flex-end;   /* bouton à droite */
  gap: 0.5rem;
}
.btn-reserver {
  margin-top: 0;
  background: linear-gradient(90deg, #1e90ff 0%, #0066cc 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30,144,255,0.08);
  transition: background 0.2s, transform 0.2s;
}
.btn-reserver:hover {
  background: linear-gradient(90deg, #0066cc 0%, #1e90ff 100%);
  transform: translateY(-2px) scale(1.04);
}
/* Ajoute à la fin de styles.css */
.modern-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fbff;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 12px rgba(30,144,255,0.07);
}
.modern-form input {
  padding: 0.8rem 1rem;
  border: 1px solid #d0e6ff;
  border-radius: 8px;
  font-size: 1.05rem;
  outline: none;
  transition: border 0.2s;
}
.modern-form input:focus {
  border: 1.5px solid #1e90ff;
}
/* Ajoute un espace entre les items de trajets admin */
#adminTrajetList .route-item {
  margin-bottom: 1.2rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.admin-status-full {
  background: #ffeaea;
  color: #d8000c;
  border: 2px solid #d8000c;
}
.admin-status-expired {
  background: #e6e6e6;
  color: #888;
  border: 2px solid #bbb;
}
.admin-status-encours {
  background: #fffbe6;
  color: #bfa100;
  border: 2px solid #bfa100;
}
.admin-status-dispo {
  background: #e6ffe6;
  color: #1e7f1e;
  border: 2px solid #1e7f1e;
}