/**
 * ===============================================
 * Système de Réservation - Styles
 * ===============================================
 */

.booking-system-container {
    min-height: 100vh;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
}

/* Indicateur de progression */
.booking-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(139, 122, 184, 0.2);
    border: 2px solid rgba(139, 122, 184, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
    background: linear-gradient(135deg, #8b7ab8 0%, #a18ccc 100%);
    border-color: #8b7ab8;
    box-shadow: 0 0 20px rgba(139, 122, 184, 0.5);
}

.progress-label {
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
}

.progress-line {
    width: 80px;
    height: 2px;
    background: rgba(139, 122, 184, 0.3);
    margin: 0 10px;
}

/* Étapes */
.booking-step {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.booking-step.active {
    display: block;
}

.booking-step-header {
    text-align: center;
    margin-bottom: 50px;
}

.booking-step-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.booking-step-header h2 i {
    color: #8b7ab8;
    margin-right: 15px;
}

.booking-step-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.selected-service-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(139, 122, 184, 0.1);
    border-radius: 10px;
}

.selected-service-info strong {
    color: #8b7ab8;
}

/* Grille de services */
.booking-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.booking-service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.booking-service-card:hover {
    transform: translateY(-5px);
    border-color: #8b7ab8;
    box-shadow: 0 10px 30px rgba(139, 122, 184, 0.3);
}

.booking-service-card.featured {
    border-color: #8b7ab8;
    background: rgba(139, 122, 184, 0.1);
}

.booking-featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #8b7ab8 0%, #a18ccc 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.booking-service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 122, 184, 0.2);
    font-size: 2rem;
    color: #8b7ab8;
}

.booking-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.booking-service-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.booking-service-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.booking-service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.booking-service-features li {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-service-features i {
    color: #8b7ab8;
}

.booking-service-price {
    font-size: 2rem;
    font-weight: bold;
    color: #8b7ab8;
    margin: 20px 0;
}

.booking-select-service-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #8b7ab8 0%, #a18ccc 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-select-service-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(139, 122, 184, 0.4);
}

/* Calendrier */
.booking-calendar-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.calendar-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 20px;
    padding: 30px;
}

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

.calendar-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #fff;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(139, 122, 184, 0.2);
    color: #8b7ab8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: #8b7ab8;
    color: #fff;
}

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

.calendar-day-label {
    text-align: center;
    font-weight: 600;
    color: #8b7ab8;
    padding: 10px;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: rgba(139, 122, 184, 0.3);
    transform: scale(1.1);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #8b7ab8 0%, #a18ccc 100%);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(139, 122, 184, 0.5);
}

.calendar-day.today {
    border: 2px solid #8b7ab8;
}

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

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

.calendar-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.legend-item {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    margin-right: 5px;
    vertical-align: middle;
}

.legend-item.today {
    border: 2px solid #8b7ab8;
    background: rgba(255, 255, 255, 0.03);
}

.legend-item.selected {
    background: linear-gradient(135deg, #8b7ab8 0%, #a18ccc 100%);
}

.legend-item.disabled {
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.3;
}

/* Panneau dates sélectionnées */
.selected-dates-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 20px;
    padding: 30px;
}

.selected-dates-panel h3 {
    font-family: 'Cormorant Garamond', serif;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-dates-panel h3 i {
    color: #8b7ab8;
}

.selected-dates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-dates {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.selected-date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(139, 122, 184, 0.1);
    border: 1px solid rgba(139, 122, 184, 0.3);
    border-radius: 10px;
    color: #fff;
}

.selected-date-item i {
    color: #8b7ab8;
    margin-right: 10px;
}

.remove-date-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-date-btn:hover {
    background: #ff6b6b;
    color: #fff;
}

/* Formulaire client */
.booking-customer-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 20px;
    padding: 40px;
}

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

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

.form-group label i {
    color: #8b7ab8;
    margin-right: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 122, 184, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7ab8;
    box-shadow: 0 0 15px rgba(139, 122, 184, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Boutons d'action */
.booking-step-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.booking-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.booking-btn-primary {
    background: linear-gradient(135deg, #8b7ab8 0%, #a18ccc 100%);
    color: #fff;
}

.booking-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 122, 184, 0.4);
}

.booking-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.booking-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(139, 122, 184, 0.3);
}

.booking-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #8b7ab8;
}

.booking-btn-large {
    padding: 20px 50px;
    font-size: 1.2rem;
    width: 100%;
}

/* Récapitulatif paiement */
.payment-summary-container {
    max-width: 700px;
    margin: 0 auto;
}

.payment-summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.payment-summary-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-summary-card h3 i {
    color: #8b7ab8;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(139, 122, 184, 0.1);
}

.summary-label {
    color: rgba(255, 255, 255, 0.7);
}

.summary-value {
    color: #fff;
    font-weight: 500;
}

.summary-dates ul {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}

.summary-dates li {
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.summary-dates li:before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #8b7ab8;
}

.summary-divider {
    height: 2px;
    background: rgba(139, 122, 184, 0.2);
    margin: 20px 0;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
}

.summary-total .summary-value {
    color: #8b7ab8;
    font-size: 1.5rem;
}

.payment-info {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(139, 122, 184, 0.1);
    border-radius: 10px;
    margin: 30px 0;
}

.payment-info i {
    color: #8b7ab8;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.payment-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.payment-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
}

.secure-badge {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Page de succès */
.booking-success {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 122, 184, 0.2);
    border-radius: 20px;
    padding: 60px 40px;
}

.success-icon {
    font-size: 5rem;
    color: #4caf50;
    margin-bottom: 30px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.booking-success h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.success-message {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.success-details {
    background: rgba(139, 122, 184, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(139, 122, 184, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
}

.detail-value {
    color: #fff;
    font-weight: 600;
}

.success-next-steps {
    text-align: left;
    margin: 40px 0;
}

.success-next-steps h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-next-steps h3 i {
    color: #8b7ab8;
}

.success-next-steps ol {
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;
}

.success-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.success-actions .booking-btn {
    flex: 1;
}

/* Modal de sélection d'horaires */
.time-slots-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.time-slots-modal.closing {
    animation: modalFadeOut 0.3s ease;
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.time-slots-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.time-slots-modal-content {
    position: relative;
    background: #1a1a2e;
    border: 1px solid rgba(139, 122, 184, 0.3);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.time-slots-modal-header {
    padding: 30px;
    border-bottom: 1px solid rgba(139, 122, 184, 0.2);
    position: relative;
}

.time-slots-modal-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-slots-modal-header h3 i {
    color: #8b7ab8;
}

.time-slots-modal-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

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

.time-slots-modal-body {
    padding: 30px;
}

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

.time-slot-option {
    position: relative;
    display: block;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(139, 122, 184, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot-option:hover {
    border-color: #8b7ab8;
    background: rgba(139, 122, 184, 0.1);
}

.time-slot-option.selected {
    border-color: #8b7ab8;
    background: rgba(139, 122, 184, 0.2);
}

.time-slot-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.time-slot-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.time-slot-label i {
    font-size: 1.2rem;
    color: #8b7ab8;
}

.time-slots-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(139, 122, 184, 0.2);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #8b7ab8 0%, #a18ccc 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 122, 184, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(139, 122, 184, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Badges d'horaires dans la liste des dates */
.date-item-content {
    flex: 1;
}

.date-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.edit-time-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(139, 122, 184, 0.2);
    color: #8b7ab8;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-time-btn:hover {
    background: #8b7ab8;
    color: #fff;
}

.date-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.time-slot-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(139, 122, 184, 0.2);
    border: 1px solid #8b7ab8;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #8b7ab8;
    font-weight: 500;
}

.time-slot-warning {
    color: #ff9800;
    font-size: 0.9rem;
    font-style: italic;
}

.selected-date-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    background: rgba(139, 122, 184, 0.1);
    border: 1px solid rgba(139, 122, 184, 0.3);
    border-radius: 10px;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-progress {
        padding: 20px;
        flex-wrap: wrap;
    }
    
    .progress-line {
        width: 100%;
        height: 2px;
        margin: 10px 0;
    }
    
    .progress-label {
        font-size: 0.8rem;
    }
    
    .booking-calendar-container {
        grid-template-columns: 1fr;
    }
    
    .booking-step-header h2 {
        font-size: 1.8rem;
    }
    
    .booking-services-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-step-actions {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-slots-modal-content {
        width: 95%;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .time-slots-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

