[x-cloak] {
    display: none !important;
}

/* Styles prioritaires pour les formulaires */
.contact-form .form-control {
    font-family: inherit;
    font-size: 16px;
}

/* Améliorations responsives globales */
@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    h1,
    .h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    h2,
    .h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    h3,
    .h3 {
        font-size: 20px;
        line-height: 1.3;
    }

    .btn,
    button,
    input[type="submit"] {
        min-height: 44px;
        padding: 10px 20px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        /* Évite le zoom sur iOS */
        min-height: 44px;
        width: 100%;
        padding: 10px 15px;
        border-radius: 4px;
        border: 1px solid #ddd;
    }

    /* Styles mobiles pour les selects déjà gérés dans select-fix.css */
    .auto-container {
        padding: 0 15px;
    }

    .page-title {
        padding: 50px 0 30px;
    }

    .sec-title h1 {
        font-size: 24px;
    }
}

/* Styles pour les selects personnalisés */
.custom-select {
    height: 44px;
    line-height: 1.5;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding: 10px 15px;
    padding-bottom: 10px !important;
    margin-bottom: 0;
}

/* Styles pour les erreurs de validation */
.has-error input,
.has-error select,
.has-error textarea {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.select-container .error-message {
    margin-top: 8px;
    margin-bottom: 0;
}

.custom-select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Styles spécifiques pour les selects sur tous les écrans */
.select-container {
    margin-bottom: 15px;
}

select.custom-select,
select.form-control:not([size]):not([multiple]).custom-select,
select.form-control.custom-select {
    height: auto !important;
    padding: 10px 15px !important;
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 20px !important;
    padding-right: 30px !important;
    min-height: 44px !important;
    line-height: 1.5 !important;
}

/* Amélioration de l'accessibilité */
a,
button,
input,
select,
textarea {
    transition: all 0.3s ease;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}
