.flash-messages-wrapper {
    position: fixed;
    top: 110px;
    right: 20px;
    width: 350px;
    z-index: 1050;
}

.flash-message {
    color: var(--white-color);
    animation: slideInRight 0.3s ease-out;
    transform-origin: right center;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        inset 0 1px 0px rgba(255, 255, 255, 0.25);
}

/* Contenu du message */
.flash-message-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white-color);
}

.flash-message-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.flash-message.success .flash-message-icon {
    color: var(--white-color);
}

.flash-message-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--white-color);
    font-weight: 500;
    padding-top: 4px;
}

/* Bouton de fermeture */
.flash-message-close {
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--white-color);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.flash-message-close:hover {
    background-color: var(--white-color);
    color: rgba(0, 0, 0, .75);
}


/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Animation de sortie */
.flash-message-removing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .flash-messages-container {
        left: 20px;
        right: 20px;
        width: auto;
    }

    .flash-message {
        margin-bottom: 8px;
        padding: 12px 16px;
    }
}