/* Styles améliorés pour les messages flash Bootstrap */
.alert {
    padding: 12px 16px !important;
    margin-bottom: 15px !important;
    border-radius: 4px !important;
    border-left: 4px solid !important;
    border-top: 1px solid transparent !important;
    border-right: 1px solid transparent !important;
    border-bottom: 1px solid transparent !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    position: relative !important;
}

/* Message de succès - style amélioré avec fond blanc */
.alert-success {
    border-left-color: #28a745 !important;
    background-color: #ffffff !important;
    color: #28a745 !important;
}

/* Message d'erreur - style amélioré avec fond blanc */
.alert-danger {
    border-left-color: #dc3545 !important;
    background-color: #ffffff !important;
    color: #dc3545 !important;
}

/* Message d'avertissement - style amélioré avec fond blanc */
.alert-warning {
    border-left-color: #ffc107 !important;
    background-color: #ffffff !important;
    color: #856404 !important;
}

/* Message d'information - style amélioré avec fond blanc */
.alert-info {
    border-left-color: #17a2b8 !important;
    background-color: #ffffff !important;
    color: #17a2b8 !important;
}

/* Bouton de fermeture optionnel */
.flash-message .close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.flash-message .close:hover {
    opacity: 1;
}

/* Animation d'apparition */
.flash-message {
    animation: slideIn 0.3s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .flash-message {
        margin: 10px;
        padding: 10px 12px;
        font-size: 13px;
    }
}