/* =====================================================
   BOOKING PAGE - DC BEAUTY THEME
   ===================================================== */

/* Variables override pour la page booking */
.booking-page {
    --primary: #c9a961 !important;
    --bs-primary: #c9a961 !important;
    --bs-primary-rgb: 201, 169, 97 !important;
}

/* Hero Section */
.booking-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.booking-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.1) 0%, transparent 50%);
}

.booking-hero h1 {
    color: #c9a961;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.booking-hero p {
    color: rgba(255, 255, 255, 0.8);
}

/* =====================================================
   PROGRESS STEPS - CLEAN DESIGN
   ===================================================== */

.booking-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 40px auto;
    padding: 0;
    max-width: 800px;
}

.step {
    position: relative;
    text-align: center;
    flex: 1;
    z-index: 2;
}

/* Ligne de connexion entre les étapes */
.step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 25px;
    left: calc(50% + 25px);
    right: calc(-50% + 25px);
    height: 3px;
    background-color: #e0e0e0;
    z-index: -1;
}

/* Ligne dorée pour étapes complétées */
.step.completed:not(:last-child)::before {
    background-color: #c9a961;
}

/* Numéros des étapes */
.step-number {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
    z-index: 3;
    
    /* État par défaut */
    background-color: white;
    color: #999;
    border: 3px solid #e0e0e0;
}

/* Étape active */
.step.active .step-number {
    background-color: #c9a961;
    color: white;
    border-color: #c9a961;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
    transform: scale(1.1);
}

/* Étape complétée */
.step.completed .step-number {
    background-color: #c9a961;
    color: transparent;
    border-color: #c9a961;
}

.step.completed .step-number::before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 22px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Titre des étapes */
.step-title {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.step.active .step-title {
    color: #c9a961;
    font-weight: 600;
}

.step.completed .step-title {
    color: #333;
}

/* =====================================================
   BOOKING CONTENT
   ===================================================== */

/* Animation des étapes */
.booking-step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* =====================================================
   SERVICE CARDS
   ===================================================== */

.service-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    border-color: #c9a961;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.2);
}

.service-card.selected {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
    border-color: #c9a961;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c9a961 0%, #b89741 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}

.service-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.service-info .price {
    color: #c9a961;
    font-weight: bold;
    font-size: 16px;
}

/* =====================================================
   STAFF CARDS
   ===================================================== */

.staff-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.staff-card:hover {
    border-color: #c9a961;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.2);
}

.staff-card.selected {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
    border-color: #c9a961;
}

.staff-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.staff-card.selected .staff-photo {
    border-color: #c9a961;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-photo i {
    font-size: 48px;
    color: #999;
}

.staff-card .text-primary {
    color: #c9a961 !important;
}

/* =====================================================
   CALENDRIER PERSONNALISÉ AVEC INDICATEURS
   ===================================================== */

.booking-calendar {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    max-width: 500px;
    margin: 0 auto; /* Centrer le calendrier */
}

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

.calendar-nav {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.calendar-nav:hover:not(:disabled) {
    background: #c9a961;
    border-color: #c9a961;
    color: white;
}

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

.calendar-month-year {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    gap: 8px;
    align-items: baseline;
}

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

.weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    padding: 8px 0;
}

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

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

/* États des jours */
.calendar-day.current-month {
    background: #f8f8f8;
    color: #333;
    border: 2px solid transparent;
}

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

.calendar-day.disabled {
    color: #ccc;
    background: #f0f0f0;
    pointer-events: none;
}

.calendar-day.today {
    font-weight: 700;
    background: rgba(201, 169, 97, 0.1);
    border-color: #c9a961;
}

.calendar-day.clickable {
    cursor: pointer;
}

.calendar-day.clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Indicateurs de disponibilité */
.calendar-day.has-slots {
    background: #d4f8d4;
    color: #2a7f2a;
    border-color: #4caf50;
    font-weight: 600;
}

.calendar-day.has-slots:hover {
    background: #c3f0c3;
    border-color: #388e3c;
}

.calendar-day.no-slots {
    background: #ffe5e5;
    color: #c62828;
    border-color: #f44336;
    position: relative;
}

.calendar-day.no-slots:hover {
    background: #ffd6d6;
}

/* Ajout d'un indicateur visuel pour "pas de créneaux" */
.calendar-day.no-slots::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background: #f44336;
    border-radius: 50%;
}

.calendar-day.selected {
    background: #c9a961 !important;
    color: white !important;
    border-color: #b89741 !important;
    font-weight: 700;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

.calendar-day.loading {
    background: #f0f0f0;
    color: #999;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Légende */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid transparent;
}

.legend-color.available {
    background: #d4f8d4;
    border-color: #4caf50;
}

.legend-color.unavailable {
    background: #ffe5e5;
    border-color: #f44336;
}

.legend-color.selected {
    background: #c9a961;
    border-color: #b89741;
}

/* Loader */
.calendar-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

/* Message d'information */
.calendar-message {
    text-align: center;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
    margin-top: 10px;
}

/* Animation d'apparition du calendrier */
.booking-calendar {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   FORMS & TIME SLOTS
   ===================================================== */

/* Formulaires */
.booking-page .form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.booking-page .form-control:focus {
    border-color: #c9a961;
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 97, 0.25);
    outline: none;
}

/* Time Slots */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.time-slot {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    border-color: #c9a961;
    transform: scale(1.05);
}

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

/* =====================================================
   SUMMARY & BUTTONS
   ===================================================== */

/* Summary Cards */
.summary-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.summary-card h5 {
    color: #c9a961;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #c9a961;
    padding-bottom: 10px;
}

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

.summary-item.total .value {
    color: #c9a961;
    font-size: 1.2em;
    font-weight: bold;
}

/* Navigation Buttons */
.booking-navigation {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
}

.booking-navigation .btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Bouton primaire doré */
.booking-page .btn-primary,
#nextBtn {
    background: linear-gradient(135deg, #c9a961 0%, #b89741 100%);
    border: none;
    color: white;
}

.booking-page .btn-primary:hover,
#nextBtn:hover {
    background: linear-gradient(135deg, #b89741 0%, #c9a961 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
}

/* Bouton secondaire */
#prevBtn {
    color: #666;
    border: 2px solid #ddd;
    background: white;
}

#prevBtn:hover {
    color: #c9a961;
    border-color: #c9a961;
    background: rgba(201, 169, 97, 0.05);
}

/* Bouton succès */
#submitBtn {
    background: linear-gradient(135deg, #28a745 0%, #20963d 100%);
    border: none;
    color: white;
}

#submitBtn:hover {
    background: linear-gradient(135deg, #20963d 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

/* Alerts */
.booking-page .alert-info {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
    border: 1px solid #c9a961;
    color: #856404;
    border-radius: 10px;
}

/* =====================================================
   OVERRIDE BOOTSTRAP
   ===================================================== */

.booking-page .text-primary {
    color: #c9a961 !important;
}

.booking-page .bg-primary {
    background-color: #c9a961 !important;
}

.booking-page .border-primary {
    border-color: #c9a961 !important;
}

/* Très petits écrans */


/* =====================================================
   BOOKING SUCCESS PAGE
   ===================================================== */

.booking-success-page {
    min-height: 80vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px 0;
    position: relative;
}

.booking-success-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.success-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.success-icon {
    font-size: 5rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Numéro de réservation - seulement pour la page success */
.booking-success-page .booking-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c9a961;
    padding: 15px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
    border: 2px solid #c9a961;
    border-radius: 10px;
    letter-spacing: 2px;
    font-family: monospace;
    display: inline-block;
}

.detail-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.detail-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.detail-item i {
    width: 30px;
    color: #c9a961;
    font-size: 1.2rem;
}

.detail-item span {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, #c9a961 0%, #b89741 100%);
    border: none;
    color: white;
}

.action-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #b89741 0%, #c9a961 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
}

.action-buttons .btn-outline-secondary {
    color: #666;
    border: 2px solid #ddd;
    background: white;
}

.action-buttons .btn-outline-secondary:hover {
    color: #c9a961;
    border-color: #c9a961;
    background: rgba(201, 169, 97, 0.05);
}

.calendar-buttons {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.calendar-buttons .btn-outline-primary {
    color: #c9a961;
    border-color: #c9a961;
}

.calendar-buttons .btn-outline-primary:hover {
    background: #c9a961;
    border-color: #c9a961;
    color: white;
}

/* Alert personnalisé pour success page */
.booking-success-page .alert-info {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, rgba(201, 169, 97, 0.05) 100%);
    border: 1px solid #c9a961;
    color: #856404;
}

.booking-success-page .alert-info i {
    color: #c9a961;
}

