/**
 * Styles pour le système de réservation Stimulus
 * - Calendrier
 * - Créneaux horaires
 * - Navigation étapes
 */

/* ============================================================
   CALENDRIER
   ============================================================ */

.calendar-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
}

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

.calendar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #262626;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6A2FB3;
    transition: all 0.2s;
}

.calendar-nav button:hover {
    background: #6A2FB3;
    color: white;
}

.calendar-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Grille du calendrier */
.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-day-name {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #737373;
    padding: 0.5rem;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid transparent;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #262626;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.past {
    background: #fafafa;
    color: #d4d4d4;
    cursor: not-allowed;
}

.calendar-day.unavailable {
    background: #fafafa;
    color: #a3a3a3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.available:hover {
    background: #EAE0F5;
    border-color: #6A2FB3;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: #6A2FB3;
    border-color: #6A2FB3;
    color: white;
    font-weight: 600;
}

.calendar-day:disabled {
    cursor: not-allowed;
}

/* Responsive calendrier */
@media (max-width: 768px) {
    .calendar-days-grid {
        gap: 0.25rem;
    }

    .calendar-day {
        font-size: 0.85rem;
    }

    .calendar-day-name {
        font-size: 0.75rem;
    }
}

/* ============================================================
   CRÉNEAUX HORAIRES
   ============================================================ */

.time-slots-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.time-slots-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #262626;
    margin: 0 0 1.25rem 0;
}

.time-slots-title i {
    color: #6A2FB3;
}

.time-slots-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
}

.time-period {
    margin-bottom: 2rem;
}

.time-period:last-child {
    margin-bottom: 0;
}

.period-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #262626;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f5f5f5;
}

.period-label i {
    color: #6A2FB3;
    font-size: 1.1rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.time-slot {
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #262626;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.time-slot:hover {
    background: #EAE0F5;
    border-color: #6A2FB3;
    transform: translateY(-2px);
}

.time-slot.selected {
    background: #6A2FB3;
    border-color: #6A2FB3;
    color: white;
    font-weight: 600;
}

.time-slot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Message "Aucun créneau" */
.no-slots {
    text-align: center;
    padding: 3rem 1rem;
    color: #737373;
}

.no-slots i {
    font-size: 3rem;
    color: #d4d4d4;
    margin-bottom: 1rem;
}

.no-slots p {
    margin: 0.5rem 0;
}

.no-slots .text-muted {
    font-size: 0.9rem;
    color: #a3a3a3;
}

/* Responsive créneaux */
@media (max-width: 768px) {
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }

    .time-slot {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* ============================================================
   RÉSUMÉ SÉLECTION SERVICES
   ============================================================ */

.services-summary {
    background: linear-gradient(135deg, #6A2FB3 0%, #5a27a0 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(106, 47, 179, 0.2);
}

.services-summary-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.services-summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.services-summary-item i {
    opacity: 0.8;
}

.services-summary-value {
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .services-summary {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .services-summary-info {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================================
   NAVIGATION ÉTAPES (boutons Précédent/Suivant)
   ============================================================ */

.booking-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f5f5f5;
}

.booking-navigation .btn {
    min-width: 140px;
}

/* Styles additionnels pour compatibilité avec booking.css existant */
.booking-step.active {
    /* Step actuellement affichée */
}

.booking-step .card-body {
    /* Corps de l'étape */
}
