/* Styles de base pour le bento design */

.list-alert {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}

/* Styles de base pour le bento design */
.alert {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 12px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1), -4px -4px 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

/* Animation fade-in */
.alert.show {
    opacity: 1;
    transform: translateY(0);
}

/* Fermeture en douceur */
.alert-dismissible .btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    position: absolute;
    top: 10px;
    right: 15px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-dismissible .btn-close::before {
    content: '\00d7'; /* Symbole de fermeture */
    font-size: 1.5rem;
    line-height: 1;
    color: inherit;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* Couleurs des alertes */
.alert-success {
    background: linear-gradient(145deg, #a8e6cf, #95d5b2);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(145deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(145deg, #fff3cd, #ffeeba);
    color: #856404;
}

.alert-info {
    background: linear-gradient(145deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Disparition douce */
.alert.fade {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

