/* =============================================
   Popup – Nouveau Site
   ============================================= */

#nsp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 16px;
    box-sizing: border-box;
}

#nsp-overlay.nsp-visible {
    opacity: 1;
    visibility: visible;
}

/* ─── Carte popup ─── */
#nsp-popup {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.30);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#nsp-overlay.nsp-visible #nsp-popup {
    transform: translateY(0) scale(1);
}

/* ─── Bouton fermer ─── */
#nsp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#nsp-close:hover {
    background: #fff;
    transform: scale(1.1);
}

/* ─── Image carrée ─── */
#nsp-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    background: #f0f0f0;
    cursor: pointer;
}

#nsp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ─── Zone texte & bouton ─── */
#nsp-body {
    padding: 20px 24px 26px;
    text-align: center;
}

#nsp-title {
    margin: 0 0 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

#nsp-subtitle {
    margin: 0 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: clamp(0.72rem, 2.8vw, 0.82rem);
    color: #888;
    line-height: 1.5;
}

#nsp-subtitle strong {
    color: #555;
    font-weight: 600;
}

/* ─── Bouton Découvrir ─── */
#nsp-btn {
    display: inline-block;
    padding: 13px 36px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

#nsp-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

#nsp-btn:active {
    transform: translateY(0);
}

/* ─── Mobile ─── */
@media (max-width: 480px) {
    #nsp-overlay {
        padding: 16px;
        align-items: flex-end;
    }

    #nsp-popup {
        border-radius: 20px;
        max-width: 100%;
    }

    #nsp-body {
        padding: 18px 20px 24px;
    }

    #nsp-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}
