/* Section Planning et Réservation */
.planning-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.planning-header {
  text-align: center;
  margin-bottom: 60px;
}

.planning-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.planning-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.planning-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Calendrier */
.calendar-wrapper {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 1rem;
}

.calendar-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.calendar-controls select {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-controls select:hover {
  border-color: #2563eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-controls select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calendar-nav {
  display: flex;
  gap: 10px;
}

.calendar-nav button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-nav button:hover {
  background: #1e40af;
  transform: scale(1.05);
}

.calendar-month {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 20px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  color: #666;
  padding: 10px 5px;
  font-size: 0.9rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.calendar-day:hover {
  background: #f0f9ff;
  transform: scale(1.05);
}

.calendar-day.other-month {
  color: #ccc;
}

.calendar-day.today {
  background: #2563eb;
  color: white;
}

.calendar-day.available {
  background: #10b981;
  color: white;
}

.calendar-day.selected {
  background: #f59e0b;
  color: white;
}

.calendar-day.unavailable {
  color: #e5e7eb;
  cursor: not-allowed;
}

.calendar-day.has-slots::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  background: #10b981;
  border-radius: 50%;
}

/* Créneaux horaires */
.slots-wrapper {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.slots-header {
  margin-bottom: 20px;
}

.slots-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.selected-date {
  color: #2563eb;
  font-weight: 500;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.time-slot {
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-slot:hover {
  background: #f0f9ff;
  border-color: #2563eb;
  transform: translateY(-2px);
}

.time-slot.selected {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.time-slot.unavailable {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

.time-slot .time {
  font-weight: 600;
  margin-bottom: 5px;
}

.time-slot .duration {
  font-size: 0.85rem;
  color: #666;
}

.time-slot.selected .duration {
  color: rgba(255, 255, 255, 0.8);
}

/* Formulaire de réservation */
.booking-form {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
}

.booking-form h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.booking-summary {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.summary-label {
  color: #666;
}

.summary-value {
  font-weight: 600;
  color: #1a1a1a;
}

.booking-actions {
  display: flex;
  gap: 15px;
}

.btn-book {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-book:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-book:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-cancel {
  background: #f3f4f6;
  color: #666;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .planning-section {
    padding: 60px 0;
  }
  
  .planning-header h2 {
    font-size: 2rem;
  }
  
  .planning-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
  }
  
  .calendar-wrapper,
  .slots-wrapper,
  .booking-form {
    padding: 20px;
  }
  
  .calendar-grid {
    gap: 3px;
  }
  
  .calendar-day {
    font-size: 0.9rem;
  }
  
  .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .booking-actions {
    flex-direction: column;
  }
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-wrapper,
.slots-wrapper,
.booking-form {
  animation: slideInUp 0.6s ease forwards;
}

.calendar-wrapper { animation-delay: 0.1s; }
.slots-wrapper { animation-delay: 0.2s; }
.booking-form { animation-delay: 0.3s; }
