/* =========================================================
   Assault58 – Popup 2 (Exit intent) – PHASE DEV
   ========================================================= */

/* Overlay plein écran */
.a58-exit-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.25s ease;
}

/* Visible */
.a58-exit-popup-overlay.a58-exit-popup-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

/* Boîte principale */
.a58-exit-popup {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Image top */
.a58-exit-popup__media {
    width: 100%;
    height: 260px; /* + grand qu'avant */
    background: url("https://assault58.com/wp-content/uploads/2025/12/Visuel2-2.jpg")
        center center / cover no-repeat;
}

/* Contenu */
.a58-exit-popup__content {
    padding: 24px 24px 20px;
    color: #111111;
}

.a58-exit-popup__eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888888;
}

.a58-exit-popup__title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.a58-exit-popup__text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
}

/* CTA principal */
.a58-exit-popup__cta {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    background: #ffbd11; /* jaune Assault58 */
    color: #111111;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
    margin-right: 10px;
}

.a58-exit-popup__cta:hover {
    background: #ffcf40;
    transform: translateY(-1px);
}

/* CTA secondaire "Non merci" */
.a58-exit-popup .a58-exit-popup__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 20px;
    margin-top: 8px;

    border-radius: 999px;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;

    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;

    box-shadow: none;
    outline: none;
    appearance: none;
}

.a58-exit-popup .a58-exit-popup__secondary:hover {
    background: #000000;
    color: #ffffff;
}

/* Bouton de fermeture */
.a58-exit-popup .a58-exit-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 28px;
    height: 28px;
    padding: 0;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    line-height: 1;
    color: #ffffff;

    cursor: pointer;

    box-shadow: none;
    outline: none;
    appearance: none;
}

.a58-exit-popup .a58-exit-popup__close:hover {
    border-color: #ffbd11;
    background: rgba(0, 0, 0, 0.7);
    color: #ffbd11;
}

/* Empêcher le scroll quand la popup est ouverte */
body.a58-exit-popup-open {
    overflow: hidden;
}

/* Masquer complètement sur mobile */
@media (max-width: 767px) {
    .a58-exit-popup-overlay {
        display: none !important;
    }
}