/* Styles pour le calendrier et les créneaux horaires */

.date-time-selection-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.calendar-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.time-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.time-slot {
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-900);
}

.time-slot:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.time-slot.available {
  background: white;
  color: var(--gray-900);
}

.time-slot.unavailable {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  opacity: 0.5;
}

.time-slot.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.time-slot.booked {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  cursor: not-allowed;
}

/* Calendrier */
.calendar-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calendar-month {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-day-header {
  background: var(--gray-50);
  color: var(--gray-700);
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-200);
}

.calendar-day-cell {
  background: white;
  padding: 0.875rem 0.5rem;
  min-height: 70px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.875rem;
}

.calendar-day-cell:hover:not(.other-month):not(.blocked):not(.past) {
  background: var(--primary-50);
}

.calendar-day-cell.other-month {
  background: var(--gray-50);
  color: var(--gray-400);
  cursor: not-allowed;
  opacity: 0.5;
}

.calendar-day-cell.past {
  background: var(--gray-50);
  color: var(--gray-400);
  cursor: not-allowed;
  opacity: 0.6;
}

.calendar-day-cell.today {
  background: var(--primary-50);
  font-weight: 700;
}

.calendar-day-cell.blocked {
  background: white;
  color: var(--gray-600);
  cursor: not-allowed;
  position: relative;
}

.calendar-day-cell.blocked::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
}

.calendar-day-cell.selected {
  background: var(--primary);
  color: white;
  font-weight: 700;
  border: 2px solid var(--primary);
  z-index: 1;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.calendar-day-cell.selected::after {
  display: none;
}

.calendar-day-cell.has-reservation {
  background: #fef3c7;
}

.day-number {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.calendar-nav-button {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.625rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.calendar-nav-button:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-nav-button:hover {
  background: var(--gray-200);
}

.calendar-month-year {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: capitalize;
}

.reservation-indicator {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  margin-top: 0.25rem;
  display: inline-block;
}

.blocked-indicator {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: #ef4444;
  color: white;
  border-radius: 4px;
  margin-top: 0.25rem;
  display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
  .date-time-selection-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .time-slots {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calendar-day-cell {
    min-height: 50px;
    padding: 0.5rem 0.25rem;
  }
  
  .day-number {
    font-size: 0.75rem;
  }
}

