/* Calculateur Location Salles - Styles */

.calculateur-location-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    color: #333333;
}

/* Barre de progression */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

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

.progress-bar .step span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #e0e0e0;
    color: #999;
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.progress-bar .step.active span {
    background: #0073aa;
    color: white;
}

.progress-bar .step.completed span {
    background: #46b450;
    color: white;
}

/* Pages du formulaire */
.form-page {
    display: none;
    animation: fadeIn 0.4s;
}

.form-page.active {
    display: block;
}

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

.form-page h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

/* Groupes de champs */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    line-height: 200%;
    transition: border-color 0.3s;
    background: #ffffff;
    color: #333 !important;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Ligne de formulaire (2 colonnes) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    color: #333;
}

.checkbox-label:hover {
    background: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
}

.checkbox-label:has(input:checked) {
    background: #e7f5ff;
    border-color: #0073aa;
}

.checkbox-label-inline {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #333;
}

.checkbox-label-inline input {
    margin-right: 8px;
}

/* Info créneaux */
.info-creneau {
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #333;
}

/* Navigation */
.form-navigation {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.form-navigation button {
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-next,
.btn-calculer {
    background: #0073aa !important;
    color: white !important;
    margin-left: auto;
}

.btn-next:hover,
.btn-calculer:hover {
    background: #005a87;
}

.btn-prev,
.btn-modifier {
    background: #f0f0f0;
    color: #333;
}

.btn-prev:hover,
.btn-modifier:hover {
    background: #e0e0e0;
}

/* Résultats */
.resultats-detail {
    margin: 20px 0;
}

.ligne-tarif {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #333;
}

.ligne-tarif:last-child {
    border-bottom: none;
}

.total-wrapper {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 3px solid #0073aa;
    font-size: 22px;
    text-align: right;
    color: #333;
}

.note-info {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Actions */
.actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-action {
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: white !important;
}

.btn-primary {
    background: #0073aa !important;
    color: white !important;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333 !important;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Messages */
.message-erreur {
    margin-top: 20px;
    padding: 15px;
    background: #ffe5e5;
    border-left: 4px solid #d63638;
    border-radius: 6px;
    color: #d63638;
}

.message-succes {
    margin-top: 20px;
    padding: 15px;
    background: #e5ffe5;
    border-left: 4px solid #46b450;
    border-radius: 6px;
    color: #46b450;
}

/* Responsive */
@media (max-width: 768px) {
    .calculateur-location-wrapper {
        padding: 25px;
        margin: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .progress-bar .step {
        font-size: 12px;
    }
    
    .progress-bar .step span {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 14px;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-next,
    .btn-calculer {
        margin-left: 0;
    }
}

/* Assurer la lisibilité sur tous les thèmes */
/*
.calculateur-location-wrapper * {
    color: inherit;
}
*/

.calculateur-location-wrapper input::placeholder {
    color: #333;
}

.calculateur-location-wrapper select option {
    background: #ffffff;
    color: #333;
}



/* À ajouter dans style.css */

.recap-informations {
    background-color: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.recap-informations h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 1.2em;
}

.recap-item {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.recap-item strong {
    color: #333;
    min-width: 180px;
    display: inline-block;
}

.badge-flexible {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: normal;
    margin-left: 8px;
}

.detail-tarifs {
    margin-top: 25px;
}

.detail-tarifs h3 {
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 1.2em;
}

.info-supplementaire {
    margin-top: 15px;
    padding: 12px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

/* Responsive */
@media (max-width: 600px) {
    .recap-item strong {
        display: block;
        margin-bottom: 4px;
    }
    
    .badge-flexible {
        margin-left: 0;
        margin-top: 4px;
        display: inline-block;
    }
}


/* Amélioration du champ de date */
#date_location {
    font-size: 16px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
}

#date_location:hover {
    border-color: #0073aa;
}

#date_location:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Style pour le calendrier natif dans les navigateurs Webkit (Chrome, Safari, Edge) */
#date_location::-webkit-calendar-picker-indicator {
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%230073aa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    padding: 5px;
    margin-left: 10px;
}

#date_location::-webkit-calendar-picker-indicator:hover {
    opacity: 0.7;
}

/* Style pour Firefox */
#date_location::-moz-calendar-picker-indicator {
    cursor: pointer;
}

/* Ajout d'un effet de chargement quand on vérifie la date */
#date_location.loading {
    background-image: linear-gradient(90deg, transparent, rgba(0, 115, 170, 0.1), transparent);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Style pour indiquer une erreur */
#date_location.error {
    border-color: #dc3232;
    background-color: #fff8f8;
}

/* Conteneur du champ de date pour un meilleur alignement */
.form-group label[for="date_location"] + input {
    margin-top: 8px;
}

/* Style responsive pour mobile */
@media (max-width: 768px) {
    #date_location {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
        max-width: 100%;
    }
}

/* Amélioration de l'affichage de l'info créneau */
.info-creneau {
    margin: 15px 0;
    padding: 12px 15px;
    background-color: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

#info-creneau-text {
    color: #333;
    font-weight: 500;
}

/* Style pour le message de date non disponible */
.info-creneau.error {
    background-color: #fff5f5;
    border-left-color: #dc3232;
}

.info-creneau.error #info-creneau-text {
    color: #dc3232;
}


/* Personnalisation du champ de date avec Flatpickr */
#date_location {
    font-size: 16px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%230073aa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

#date_location:hover {
    border-color: #0073aa;
}

#date_location:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Animation de chargement */
#date_location.loading {
    background-image: linear-gradient(90deg, transparent, rgba(0, 115, 170, 0.1), transparent);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* État d'erreur */
#date_location.error {
    border-color: #dc3232;
    background-color: #fff8f8;
}

/* Personnalisation du calendrier Flatpickr */
.flatpickr-calendar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.flatpickr-months {
    background-color: #0073aa;
    border-radius: 12px 12px 0 0;
    padding: 10px 0;
}

.flatpickr-current-month {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    fill: #fff;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.flatpickr-weekdays {
    background-color: #f5f5f5;
    padding: 10px 0;
}

.flatpickr-weekday {
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.flatpickr-day {
    border-radius: 8px;
    font-size: 15px;
    height: 42px;
    line-height: 42px;
    margin: 2px;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
    background-color: #e6f3f9;
    border-color: #e6f3f9;
}

.flatpickr-day.selected {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-weight: 600;
}

.flatpickr-day.today {
    border-color: #0073aa;
    color: #0073aa;
    font-weight: 600;
}

.flatpickr-day.today:hover {
    background-color: #e6f3f9;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #ccc;
    cursor: not-allowed;
}

/* Amélioration de l'affichage de l'info créneau */
.info-creneau {
    margin: 15px 0;
    padding: 12px 15px;
    background-color: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

#info-creneau-text {
    color: #333;
    font-weight: 500;
}

.info-creneau.error {
    background-color: #fff5f5;
    border-left-color: #dc3232;
}

.info-creneau.error #info-creneau-text {
    color: #dc3232;
}

/* Responsive */
@media (max-width: 768px) {
    #date_location {
        max-width: 100%;
    }
    
    .flatpickr-calendar {
        width: 100% !important;
    }
    
    .flatpickr-day {
        height: 38px;
        line-height: 38px;
        font-size: 14px;
    }
}


/* Personnalisation du champ de date avec Flatpickr */
#date_location {
    font-size: 16px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #333;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%230073aa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

#date_location:hover {
    border-color: #0073aa;
}

#date_location:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Animation de chargement */
#date_location.loading {
    background-image: linear-gradient(90deg, transparent, rgba(0, 115, 170, 0.1), transparent);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* État d'erreur */
#date_location.error {
    border-color: #dc3232;
    background-color: #fff8f8;
}

/* Personnalisation du calendrier Flatpickr */
.flatpickr-calendar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.flatpickr-months {
    background-color: #0073aa;
    border-radius: 12px 12px 0 0;
    padding: 10px 0;
}

.flatpickr-current-month {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    fill: #fff;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.flatpickr-weekdays {
    background-color: #f5f5f5;
    padding: 10px 0;
}

.flatpickr-weekday {
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.flatpickr-day {
    border-radius: 8px;
    font-size: 15px;
    height: 42px;
    line-height: 42px;
    margin: 2px;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
    background-color: #e6f3f9;
    border-color: #e6f3f9;
}

.flatpickr-day.selected {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-weight: 600;
}

.flatpickr-day.today {
    border-color: #0073aa;
    color: #0073aa;
    font-weight: 600;
}

.flatpickr-day.today:hover {
    background-color: #e6f3f9;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #ccc;
    cursor: not-allowed;
}

/* Amélioration de l'affichage de l'info créneau */
.info-creneau {
    margin: 15px 0;
    padding: 12px 15px;
    background-color: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

#info-creneau-text {
    color: #333;
    font-weight: 500;
}

.info-creneau.error {
    background-color: #fff5f5;
    border-left-color: #dc3232;
}

.info-creneau.error #info-creneau-text {
    color: #dc3232;
}

/* Responsive */
@media (max-width: 768px) {
    #date_location {
        max-width: 100%;
    }
    
    .flatpickr-calendar {
        width: 100% !important;
    }
    
    .flatpickr-day {
        height: 38px;
        line-height: 38px;
        font-size: 14px;
    }
}