.popup-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: min(380px, calc(100vw - 24px));
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-16px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Boîte popup */
.popup-content {
    position: relative;
    width: 100%;
    padding: 14px 42px 14px 16px;
    border-radius: 10px;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-align: left;
    box-shadow: 0 4px 16px var(--shadow-color);
    box-sizing: border-box;
}

/* Liste des messages */
.popup-message-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Message */
.popup-message {
    font-size: var(--taille-text-pc);
    line-height: 1.45;
    text-align: left;
    word-break: break-word;
}

/* Bouton fermeture */
.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--bg-color);
    line-height: 1;
    transition: opacity 0.2s ease;
}

.popup-close-btn:hover {
    opacity: 0.6;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .popup-container {
        bottom: 16px;
        width: calc(100vw - 16px);
    }

    .popup-message {
        font-size: var(--taille-text-mo);
    }
}