/* Styles pour les messages d'erreur et les alertes */
.messages-container {
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.alert {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 0;
    font-size: 0.95rem;
    position: relative;
    border-left: 4px solid;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border-left-color: #dc3545;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #51cf66;
    border-left-color: #28a745;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffd43b;
    border-left-color: #ffc107;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.2);
    color: #15aabf;
    border-left-color: #17a2b8;
}

/* Animation pour les messages */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style pour les messages avec icône */
.alert::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.alert-danger::before {
    content: "\f071"; /* Icône d'avertissement */
}

.alert-success::before {
    content: "\f00c"; /* Icône de validation */
}

.alert-warning::before {
    content: "\f12a"; /* Icône d'information */
}

.alert-info::before {
    content: "\f129"; /* Icône d'information */
}