/* rendez-vous.css */

:root {
    --primary-color-start: #007bff;
    --text-primary: #1d2b4f;
}

.booking-main {
    background: linear-gradient(-45deg, #e0f7fa, #e3f2fd, #f3e5f5, #ffebee);
    background-size: 400% 400%;
    animation: animatedBackground 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px 20px;
    font-family: 'Inter', sans-serif;
}

@keyframes animatedBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.booking-container {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 24px;
    padding: 30px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e0e7ff;
    border-radius: 4px;
    margin-bottom: 40px;
}
.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #007bff, #42A5F5);
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.booking-wizard {
    position: relative;
    min-height: 350px; 
    /* MODIFICATION : On ne cache que le débordement horizontal pour l'animation */
    overflow-x: hidden; 
}

.wizard-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s;
}
.wizard-step.active { opacity: 1; visibility: visible; transform: translateX(0); }
.wizard-step.slide-out { transform: translateX(-30px); }

.step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
}

.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.option-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 25px; border: 2px solid #e0e7ff; border-radius: 16px; cursor: pointer; transition: all 0.3s ease; font-weight: 500; }
.option-card i { font-size: 2rem; color: var(--primary-color-start); }
.option-card.selected, .option-card:hover { border-color: var(--primary-color-start); background-color: #f0f5fa; transform: translateY(-5px); }

.symptoms-input, .info-form input { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; font-family: 'Inter', sans-serif; }
.symptoms-input { min-height: 150px; resize: vertical; }
.info-form { display: flex; flex-direction: column; gap: 15px; }

.calendar { border: 1px solid #e0e7ff; border-radius: 16px; padding: 20px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.month-nav-btn { background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--primary-color-start); }
.calendar-days-header, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 5px; }
.calendar-days-header span { font-weight: 500; font-size: 0.9rem; color: #5a647e; }
.calendar-day { padding: 8px 5px; border-radius: 50%; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.calendar-day.other-month { color: #ccc; pointer-events: none; }
.calendar-day.today { font-weight: bold; border: 1px solid var(--primary-color-start); }
.calendar-day:not(.other-month):hover { background-color: #f0f5fa; }
.calendar-day.selected { background-color: var(--primary-color-start); color: white; }

.time-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.time-slot { padding: 12px; border: 1px solid #e0e7ff; border-radius: 8px; text-align: center; cursor: pointer; transition: all 0.3s ease; }
.time-slot:hover { border-color: var(--primary-color-start); }
.time-slot.selected { background-color: var(--primary-color-start); color: white; border-color: var(--primary-color-start); }

.summary-card { text-align: left; background: #f0f5fa; padding: 20px; border-radius: 12px; line-height: 1.8; }
.whatsapp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px; font-size: 1.1rem; margin-top: 20px; background-color: #25D366; border: none; color: white; }
.whatsapp-btn:hover { background-color: #1DA851; }
.whatsapp-notice { text-align: center; font-size: 0.9rem; color: #5a647e; margin-top: 15px; }

.wizard-navigation { display: flex; justify-content: space-between; margin-top: 40px; border-top: 1px solid #e0e7ff; padding-top: 20px; }
#prevBtn { visibility: hidden; }
.wizard-navigation .btn:disabled { background: #ccc; border-color: #ccc; color: #666; cursor: not-allowed; box-shadow: none; transform: none; }

/* ======================================== */
/* SECTION RESPONSIVE */
/* ======================================== */
@media (max-width: 768px) {
    .booking-main {
        padding: 90px 15px 30px 15px;
    }

    .booking-container {
        padding: 25px 20px;
    }

    .booking-wizard {
        /* MODIFICATION : On passe en hauteur auto pour que le contenu ne soit pas coupé */
        height: auto;
        min-height: 320px; /* On garde une hauteur minimale pour la cohérence */
    }

    .step-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .option-card {
        padding: 20px;
        font-size: 0.9rem; /* On réduit un peu la police si besoin */
    }
    
    .options-grid {
        gap: 15px; /* On réduit l'espace entre les cartes */
    }

    .calendar {
        padding: 15px;
    }

    .calendar-day {
        padding: 6px 2px;
        font-size: 0.9rem;
    }
    
    .wizard-navigation {
        margin-top: 25px;
    }
}