/* popup pour les messages */

.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    max-width: 400px;
    min-width: 300px;
}

.flash-message {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    opacity: 0;
    animation: apparition 0.3s ease forwards;
}
.dark-mode .flash-message {
    background-color: rgb(29, 29, 29);
}

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

.flash-message.closing {
    animation: disparition 0.2s ease forwards;
}

@keyframes disparition {
    from { opacity: 1; }
    to { opacity: 0; }
}

.flash-content {
    display: flex;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 14px;
}

.flash-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.flash-text {
    flex: 1;
    min-width: 0;
}

.flash-title {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 4px;
    line-height: 1.4;
}

.flash-message-text {
    margin: 0;
    font-size: 13px;
    color: #555;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    word-wrap: break-word;
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    color: #999;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

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

/* couleurs pour les differents types */
.flash-error .flash-icon {
    color: #e74c3c;
}
.flash-error .flash-title {
    color: #e74c3c;
}

.flash-success .flash-icon {
    color: #2ecc71;
}
.flash-success .flash-title {
    color: #2ecc71;
}

.flash-warning .flash-icon {
    color: #f39c12;
}
.flash-warning .flash-title {
    color: #f39c12;
}

.flash-info .flash-icon {
    color: #3498db;
}
.flash-info .flash-title {
    color: #3498db;
}

@media (max-width: 768px) {
    .flash-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}
