@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
    --primary-color: #079bb2;
    --secondary-color: #612E0F;
    --light-gray: #f0f2f5;
    --text-color: #333;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(45deg, #aeeff9, #079bb2);
    background-attachment: fixed;
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.booking-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    min-width: 320px;
    background-color: rgba(255, 255, 255, 0.97);
    background-image: url('../images/background-earth.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 16px;
    box-shadow: 15px 15px 30px rgba(0,0,0,0.2);
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.main-header { display: flex; justify-content: center; align-items: center; gap: 15px; }
.header-logo { height: 50px; }
.main-header h1 { margin: 0; font-size: 1.6em; color: var(--secondary-color); text-align: center; }

/* Règle simplifiée car le fieldset a été retiré */
.location-choice p { font-size: 1.1em; color: var(--secondary-color); text-align: center; }

.info-banner { width: 100%; max-width: 600px; border: 1px solid var(--border-color); border-radius: 12px; }
.info-header { display: flex; align-items: center; padding: 15px; cursor: pointer; list-style: none; }
.info-header::-webkit-details-marker { display: none; }
.info-title { font-weight: 500; flex-grow: 1; }
.info-icon { font-size: 1.8em; font-weight: 300; color: var(--primary-color); transition: transform 0.3s ease; }
.info-banner[open] .info-icon { transform: rotate(45deg); }
.info-content { padding: 0 20px 20px 20px; color: #4a5568; line-height: 1.6; }

.calendar-slots-wrapper { display: flex; flex-wrap: wrap; gap: 20px; width: 100%; background-color: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.calendar-container, .slots-container { flex: 1; min-width: 300px; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.calendar-header h2 { margin: 0; font-size: 1.2em; }
.calendar-header button { background: none; border: none; font-size: 1.5em; cursor: pointer; color: var(--primary-color); }

.calendar-table { width: 100%; border-collapse: separate; border-spacing: 2px; }
.calendar-table th { font-weight: 500; color: #999; padding-bottom: 10px; }
.calendar-table td { text-align: center; vertical-align: middle; height: 44px; width: 44px; font-size: 0.9em; border-radius: 50%; }

.current-month { color: var(--text-color); }
.other-month { color: #ccc; }
.today { border: 2px solid var(--primary-color); }
.has-slots { cursor: pointer; font-weight: 700; background-color: #eaf8fa; color: var(--primary-color); }
.has-slots:hover { background-color: #d1f0f5; }
.selected { background-color: var(--primary-color) !important; color: #fff !important; }

#slots-header { text-align: center; font-size: 1.2em; font-weight: 500; margin-bottom: 20px; min-height: 2em; }
#slots-list { display: flex; flex-direction: column; gap: 10px; padding-right: 5px; }
.slot-button { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; background-color: #fff; cursor: pointer; font-size: 1em; text-align: center; transition: all 0.2s ease; }
.slot-button:hover, .slot-button.selected { border-color: var(--primary-color); background-color: var(--primary-color); color: #fff; }

/* --- NOUVEAU : STYLES POUR LE FORMULAIRE DE CONFIRMATION --- */



#confirmation-form-container {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fafafa;
}

#confirmation-form-container h4 {
    margin-top: 0;
    text-align: center;
    color: var(--secondary-color);
}

#confirmation-form-container p {
    text-align: center;
    margin-bottom: 15px;
}

#details-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#details-form input[type="text"],
#details-form input[type="email"],
#details-form input[type="tel"],
#details-form textarea { /* <-- On ajoute le téléphone et la textarea ici */
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    resize: vertical; /* Permet à l'utilisateur d'agrandir la zone de texte en hauteur */{
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
}

#details-form button {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#details-form button[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
}

#details-form button[type="submit"]:hover {
    opacity: 0.9;
}

#details-form button[type="button"] { /* Bouton Annuler */
    background-color: #e2e8f0;
    color: #4a5568;
}

#booking-message {
    text-align: center;
    margin-top: 15px;
    font-weight: 500;
}


/* --- FIN DES NOUVEAUX STYLES --- */

@media (max-width: 900px) {
    .booking-wrapper { background-attachment: scroll; padding: 15px; max-width: 100%;}
    .calendar-slots-wrapper { flex-direction: column; }
    .main-header h1 { font-size: 1.3em; }
}