/* ═══════════════════════════════════════════════════════
   STICKY CTA MOBILE
═══════════════════════════════════════════════════════ */

#ns-sticky-cta {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 998;
    background: #1a1a1a;
    color: #ffffff;
    padding: 16px 44px 16px 20px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
}

.ns-sticky-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
}

.ns-sticky-close:hover {
    opacity: 1;
}

#ns-sticky-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

#ns-sticky-cta:active {
    transform: translateY(0) scale(0.98);
}

body.dark #ns-sticky-cta {
    background: rgba(168, 212, 220, 0.95);
    color: #060E1C;
}

/* Affiche uniquement sur mobile */
@media (max-width: 768px) {
    #ns-sticky-cta {
        display: block;
    }

    /* Décale le chat widget seulement quand le sticky-cta est visible */
    #ns-sticky-cta.visible ~ #ns-chat-widget {
        bottom: 76px !important;
    }

    /* Évite que le sticky CTA masque le footer/contenu en bas de page */
    body:has(#ns-sticky-cta.visible) {
        padding-bottom: 80px;
    }
}

/* Compacte sur très petit écran */
@media (max-width: 420px) {
    #ns-sticky-cta {
        font-size: 14px;
        padding: 13px 16px;
    }
}
