/* css/style_validation.css */

/* Styles pour les champs en erreur */
.is-invalid {
    border-color: #ea5455 !important;
    box-shadow: 0 0 5px rgba(234, 84, 85, 0.5) !important;
}

.is-invalid:focus {
    border-color: #ea5455 !important;
    box-shadow: 0 0 5px rgba(234, 84, 85, 0.5) !important;
}

/* Styles pour les messages d'aide */
.text-danger.invisible {
    display: none;
}

.text-danger:not(.invisible) {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Animation pour les champs en erreur */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.is-invalid {
    animation: shake 0.5s ease-in-out;
}

/* Styles pour les sélecteurs en erreur */
.select2-container--default .select2-selection--single.is-invalid {
    border-color: #ea5455 !important;
}

/* Surbrillance pour les étapes avec erreurs */
.step.has-errors .bs-stepper-box {
    background-color: #ea5455 !important;
    color: white !important;
}

.step.has-errors .bs-stepper-label .bs-stepper-title {
    color: #ea5455 !important;
    font-weight: bold;
}