/* === 1. FORMULES BILLETS === */

/* Section contenant le titre et les cartes de formules */
.packages {
  padding: 2em 1em;
  background: #FFF3DF;
}

/* Titre de la section formules */
.packages h2 {
  text-align: center;
  line-height: 1.5;
}

/* Conteneur des cartes de formules (pass 1 jour / 2 jours) */
.package-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

/* Carte individuelle (visuel + tarifs) */
.package-day {
  background: white;
  padding: 1.5em;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

/* Image du pass dans la carte */
.package-day img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1em;
}

/* Titre formule */
.package-day h3 {
  margin-bottom: 2em;
  font-size: 1.2em;
}

/* Tarif dans la carte */
.package-day ul {
  padding: 0;
  margin: 0;
  font-size: 0.95em;
}

/* Élément individuel de la liste de tarifs */
.package-day li {
  margin-bottom: 0.5em;
  text-align: left;
  line-height: 1.5;
}

/* CONTENEUR COMMUN : Formule + Calendrier côte à côte */
.packages-calendar {
  display: flex;
  justify-content: center;
  gap: 2em;
  flex-wrap: wrap;
}

.packages {
  flex: 1 1;
}

.calendar {
  flex: 0 1;
}

/* === 2. FORMULAIRE BOOKING === */

/* Titre de section du formulaire */
section h2 {
  text-align: center;
  margin-bottom: 1em;
}

/* Conteneur global du formulaire */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 850px;
  margin: 3em auto;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
}

/* Image "train" dans le formulaire */
.booking-form img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1em 0;
}

/* Style des champs label */
.booking-form label {
  font-weight: bold;
  margin-top: 1em;
  display: block;
  text-align: left;
}

.booking-form h2 {
  line-height: 1.5;
}

/* Style des champs de saisie et sélecteurs */
.booking-form input,
.booking-form select {
  padding: 0.8em;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
}

.summaryselect {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin: 30px 0 10px 0;
  padding: 10px;
}

/* Bouton "Ajouter au panier" centré */
.cart-actions,
.cart-confirm {
  display: flex;
  justify-content: center;
  margin-top: 2em;
}

/* === 3. PANIER === */

/* Conteneur spécifique du panier */
#panier {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  margin-top: 2em;
}

/* Titre du panier */
#panier h2 {
  color: #495057;
  margin-bottom: 1.5em;
  text-align: center;
  font-size: 1.8em;
}

/* Liste des articles du panier */
.cart-items-recap {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em 0;
}

/* Article individuel dans le panier */
.cart-items-recap li {
  background: white;
  padding: 1.2em;
  margin-bottom: 1em;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

/* Informations de l'article */
.cart-item-info {
  flex: 1;
  min-width: 250px;
  line-height: 1.4;
  font-size: 1.1em;
}

/* Conteneur du bouton supprimer */
.recapBtn {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* Bouton "supprimer" */
.remove-item {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.6em 0.2em;
  border-radius: 6px;
  cursor: pointer;
  /* font-size: 0.5em; */
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 100px;
}

.remove-item:hover {
  background: #c82333;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.remove-item:active {
  transform: translateY(0);
}

/* Total du panier */
.cart-total-recap {
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
  background: #e9ecef;
  padding: 1em;
  border-radius: 8px;
  margin: 1.5em 0;
  color: #495057;
}

/* Conteneur du bouton de validation */
.recapBtn:last-child {
  justify-content: center;
  margin-top: 1em;
}

/* Style commun aux boutons du formulaire */
.booking-form button {
  color: white;
  border: none;
  padding: 1em 2em;
  border-radius: 8px;
  cursor: pointer;
  /* font-size: 1.2rem; */
  /* font-weight: 600; */
  letter-spacing: 1px;
  transition: all 0.3s ease;
  min-width: 170px;
  min-height: 30px;
  white-space: nowrap;
}

/* Messages d'alerte */
.alert {
  padding: 1em;
  border-radius: 6px;
  margin-bottom: 1em;
  border: 1px solid transparent;
}

.alert-succes {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-errors {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Champs standard groupés */
.standard-fields {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

/* RESPONSIVE */
@media screen and (max-width: 2560px) {
  .sections-main {
    width: 80%;
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  /* Panier mobile */
  .cart-items-recap li {
    flex-direction: column;
    text-align: center;
    gap: 1em;
  }
  
  .cart-item-info {
    min-width: 100%;
  }
  
  .recapBtn {
    justify-content: center;
    width: 100%;
  }
  
  .remove-item {
    width: 100%;
    max-width: 200px;
  }
  
  /* Boutons du formulaire mobile */
  /* .booking-form button {
    min-width: 100%;
    font-size: 1.1rem;
  } */
  
  /* Conteneur principal mobile */
  .packages-calendar {
    flex-direction: column;
    gap: 1em;
  }
  
  .booking-form {
    margin: 1em auto;
    padding: 1.5em;
  }
}