//* Styles pour le conteneur principal */
.reservation-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Styles pour la zone d'instructions */
.calendar-instructions {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}

.instruction-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #3498db;
}

.instruction-step {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}
/*
.instruction-step:before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #3498db;
}
*/
.instruction-current {
  font-weight: bold;
  background-color: #e1f5fe;
  padding: 10px;
  border-left: 4px solid #3498db;
  border-radius: 4px;
}

.instruction-dates {
  margin-top: 20px;
  padding: 15px;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.date-label {
  font-weight: bold;
  margin-right: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .reservation-container {
    flex-direction: column;
  }
  
  .calendar-instructions {
    order: -1; /* Place les instructions au-dessus du calendrier sur mobile */
  }
}

.day.past-date {
  color: #ccc;
  background-color: #f5f5f5;
  text-decoration: line-through;
  opacity: 0.7;
}/* Styles pour le calendrier de réservation */

.reservation-calendar {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  margin-top: 10px;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

/* En-tête du calendrier */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #3498db;
  color: white;
}

.calendar-title {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  flex-grow: 1;
}

.nav-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Jours de la semaine */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.weekday {
  text-align: center;
  padding: 10px;
  font-weight: bold;
  color: #333;
}

/* Grille des jours */
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #f0f0f0;
  padding: 1px;
}

.day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  cursor: default;
  position: relative;
  font-size: 0.9rem;
}

/* États des jours */
.day.empty {
  background-color: #f9f9f9;
}

.day.available {
  background-color: #e1f5fe;
  cursor: pointer;
  font-weight: bold;
}

.day.available:hover {
  background-color: #b3e5fc;
}

.day.saturday.available {
  background-color: #b3e5fc;
}

.day.saturday.available:hover {
  background-color: #81d4fa;
}

.day.reserved {
  background-color: #ffccbc;
  color: #777;
}

.day.unavailable {
  color: #bbb;
}

.day.selected {
  background-color: #ffcc1d !important;
  color: black;
}

.day.in-range {
  background-color: #bbdefb;
}

/* Styles pour les jours de début et fin de séjour */
.day.checkin-day {
  background-color: #ffccbc;
  position: relative;
}

.day.checkout-day {
  background-color: #ffccbc;
  position: relative;
}

/* Journée partagée (fin d'un séjour et disponible pour un nouveau séjour) */
.day.checkout-day.available {
  background: linear-gradient(to right bottom, #ffccbc 49%, #e1f5fe 51%);
  color: #333;
  font-weight: bold;
}

.day.checkout-day.available:hover {
  background: linear-gradient(to right bottom, #ffccbc 49%, #b3e5fc 51%);
}

/* Journée qui est à la fois début et fin de séjour - NON cliquable */
/* Transition directe entre deux séjours, aucun créneau libre */
.day.checkin-checkout-day {
  background: linear-gradient(135deg, #e74c3c 0%, #e74c3c 50%, #2ecc71 50%, #2ecc71 100%);
  color: white;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
}

/* Légende */
.calendar-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px;
  background-color: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.legend-color {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  border-radius: 3px;
}

.legend-color.available {
  background-color: #b3e5fc;
}

.legend-color.reserved {
  background-color: #ffccbc;
}

.legend-color.checkout-available {
  background: linear-gradient(to right bottom, #ffccbc 49%, #b3e5fc 51%);
}

.legend-color.selected {
  background-color: #2196f3;
}

/* Modale de réservation */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
}

.reservation-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 1001;
  width: 90%;
  max-width: 500px;
  opacity: 0;
  transition: all 0.3s ease;
}

.reservation-modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #3498db;
  color: white;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 20px;
}

/* Formulaire de réservation */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

/* Disposition en ligne pour les champs spécifiques */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-group input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group input.error {
  border-color: #e74c3c;
  background-color: #fdf7f7;
}

.gite-info {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 25px;
}

.gite-info h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.gite-info p {
  margin: 0;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.cancel-btn, .submit-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cancel-btn {
  background-color: #f1f1f1;
  color: #333;
}

.cancel-btn:hover {
  background-color: #e0e0e0;
}

.submit-btn {
  background-color: #2ecc71;
  color: white;
}

.submit-btn:hover {
  background-color: #27ae60;
}

/* Notifications */
.reservation-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 40px 15px 15px;
  background-color: white;
  border-left: 4px solid #3498db;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 350px;
}

.reservation-notification.show {
  transform: translateX(0);
}

.reservation-notification.success {
  border-left-color: #2ecc71;
}

.reservation-notification.error {
  border-left-color: #e74c3c;
}

.notif-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #777;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation de la section de réservation */
.reservation-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reservation-section.show {
  max-height: 800px;
  opacity: 1;
  transform: translateY(0);
}

/* Bouton de réservation avec animation au hover */
#showReservationBtn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#showReservationBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#showReservationBtn:active {
  transform: translateY(0);
}

/* Animation du calendrier une fois la section ouverte */
.reservation-section.show #reservator {
  animation: slideInFromLeft 0.6s ease-out 0.2s both;
}

.reservation-section.show #calendarMsg {
  animation: slideInFromRight 0.6s ease-out 0.3s both;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Honeypot - champ invisible pour piéger les bots */
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  tab-index: -1 !important;
}

.honeypot-field input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  border: none !important;
  background: transparent !important;
  font-size: 0 !important;
}

/* Responsive */
@media (max-width: 600px) {
  .calendar-days, .calendar-weekdays {
    font-size: 0.8rem;
  }

  .calendar-legend {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .reservation-modal {
    width: 95%;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .cancel-btn, .submit-btn {
    width: 100%;
  }
}