/**
 * Popup marketing — Congo-Afrique
 */
.mk-popup {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}

.mk-popup.is-visible {
    pointer-events: auto;
}

.mk-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.mk-popup.is-visible .mk-popup__backdrop {
    opacity: 1;
}

.mk-popup__dialog {
    position: relative;
    width: min(56rem, 100%);
    max-height: min(90vh, 40rem);
    overflow: auto;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.mk-popup.is-visible .mk-popup__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mk-popup__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.mk-popup__layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 22rem;
}

.mk-popup__visual {
    background: linear-gradient(160deg, #0b3d2e 0%, #14532d 45%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mk-popup__visual img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.mk-popup__content {
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
}

.mk-popup__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 157, 61, 0.1);
    color: #009d3d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mk-popup__title {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.mk-popup__subtitle {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}

.mk-popup__features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.mk-popup__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.4;
}

.mk-popup__features li i {
    color: #009d3d;
    margin-top: 0.1rem;
}

.mk-popup__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.mk-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.35rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #009d3d, #007a30);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 157, 61, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mk-popup__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 157, 61, 0.35);
    color: #fff !important;
}

.mk-popup__dismiss {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0.25rem;
}

.mk-popup__dismiss:hover {
    color: #0f172a;
}

@media (max-width: 767.98px) {
    .mk-popup__layout {
        grid-template-columns: 1fr;
    }

    .mk-popup__visual {
        min-height: 12rem;
    }

    .mk-popup__content {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .mk-popup__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mk-popup__cta {
        width: 100%;
    }
}
