/* --- OVERLAY (fond sombre) --- */
.tn-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0); /* invisible au départ */
    display: none;
    opacity: 0; /* pour animation progressive */
    transition: opacity 0.5s ease, background 0.5s ease;
    z-index: 9999;
}

/* Quand la popup devient visible */
.tn-popup-overlay.tn-popup-visible {
    display: flex;
    align-items: center;
    justify-content: center;

    /* fade-in du fond */
    background: rgba(0, 0, 0, 0.55);
    opacity: 1;
}

/* --- MODAL (fenêtre popup) --- */
.tn-popup-modal {
    background: #ffffff;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 20px 24px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);

    /* Animation de base */
    opacity: 0;
    transform: scale(0.92);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

/* Quand l’overlay est actif → lancer animation */
.tn-popup-overlay.tn-popup-visible .tn-popup-modal {
    opacity: 1;
    transform: scale(1); /* zoom léger et fluide */
}

/* --- Bouton fermer --- */
.tn-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.tn-popup-content {
    margin-top: 10px;
}

.tn-popup-content p {
    margin-bottom: 1em;
}
