/* =========================================================
   Assault58 – Popup promo bas de page (desktop)
   PHASE DEV – Affichée uniquement sur /z-dev-test/
   ========================================================= */

#a58-promo-popup {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(120%);
    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

/* Classe ajoutée par le JS quand la popup doit s’afficher */
#a58-promo-popup.a58-popup--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.a58-popup__inner {
    display: flex;
    align-items: stretch;
    max-width: 520px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}

/* Zone visuelle (tu pourras ajouter un background image plus tard) */
/* Zone visuelle gauche */
.a58-popup__media {
    width: 140px;
    min-width: 140px;
    background: url("https://assault58.com/wp-content/uploads/2025/12/Visuel2-2.jpg")
        center center / cover no-repeat;
}

.a58-popup__content {
    padding: 16px 20px 18px;
    color: #111111;
}

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

.a58-popup__title {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.a58-popup__text {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
}

.a58-popup__cta {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #ffb300;
    /* adapte à ton jaune Assault58 */
    color: #111111;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

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

/* Bouton de fermeture */
#a58-promo-popup .a58-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 0;
    border: 1px solid #111111;
    /* noir */
    background: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
}

#a58-promo-popup .a58-popup__close:hover {
    border-color: #ffbd11;
    /* jaune Assault58 au hover */
    color: #ffbd11;
}

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