/* ==========================================================================
   K Isolation — Popup newsletter (remplace Advanced Popups)
   ========================================================================== */

.ki-news-popup {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    max-width: 380px;
    width: calc(100vw - 32px);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.ki-news-popup.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ki-news-popup-card {
    position: relative;
    background:
        radial-gradient(60% 100% at 0% 0%, rgba(26, 86, 219, 0.32) 0%, transparent 60%),
        linear-gradient(135deg, #0f1b2d 0%, #182842 100%);
    color: #fff;
    border-radius: 18px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 60px rgba(15, 27, 45, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.ki-news-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    border: 0;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    padding: 0;
}
.ki-news-popup-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}
.ki-news-popup-close:focus-visible {
    outline: 2px solid #93b7ff;
    outline-offset: 2px;
}

.ki-news-popup-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #93b7ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 999px;
    margin-bottom: 14px;
}

.ki-news-popup h3 {
    font-family: "Poppins", sans-serif;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.ki-news-popup p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 18px;
}

/* Form — reprend la même charte que le bandeau blog newsletter */
.ki-news-popup-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
.ki-news-popup-form input[type="email"] {
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 14.5px !important;
    line-height: 1.4 !important;
    min-height: 44px !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.ki-news-popup-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
}
.ki-news-popup-form input[type="email"]:focus {
    outline: none !important;
    border-color: #93b7ff !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.ki-news-popup-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11.5px;
    line-height: 1.45;
    cursor: pointer;
    margin: 2px 0;
}
.ki-news-popup-consent input[type="checkbox"] {
    margin: 2px 0 0 !important;
    width: 14px;
    height: 14px;
    accent-color: #93b7ff;
    flex-shrink: 0;
}
.ki-news-popup-consent a {
    color: #93b7ff;
    text-decoration: underline;
}
.ki-news-popup-consent a:hover { color: #fff; }

.ki-news-popup-form button[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 12px 22px !important;
    background: #fff !important;
    color: #1a56db !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-family: "DM Sans", sans-serif !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    cursor: pointer !important;
    min-height: 44px !important;
    transition: transform .15s ease, box-shadow .15s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}
.ki-news-popup-form button[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28) !important;
}

.ki-news-popup-fineprint {
    margin: 12px 0 0 !important;
    text-align: center;
    color: rgba(255, 255, 255, 0.50) !important;
    font-size: 11px !important;
}

/* Mobile — full width en bas */
@media (max-width: 600px) {
    .ki-news-popup {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
        width: auto;
    }
    .ki-news-popup-card {
        padding: 24px 20px 20px;
    }
    .ki-news-popup h3 { font-size: 19px; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .ki-news-popup { transition: opacity .1s ease; transform: none; }
    .ki-news-popup.is-open { transform: none; }
}
