/* ── Popup Elementor v3.1 ── */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Overlay */
.pe-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}
.pe-overlay.pe-visible {
    opacity: 1;
    pointer-events: all;
}

/* Modale 2 colonnes */
.pe-modal {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.30s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Montserrat', sans-serif;
}
.pe-overlay.pe-visible .pe-modal {
    transform: translateY(0) scale(1);
}

/* Colonne gauche — image */
.pe-col-left {
    flex: 0 0 42%;
    min-height: 320px;
    background-color: #ccc;
    background-size: cover;
    background-position: center;
}

/* Colonne droite — texte */
.pe-col-right {
    flex: 1;
    background: #ffffff;
    padding: 2.5rem 2rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

/* Titre */
.pe-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0;
}

/* Texte */
.pe-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}
.pe-text p:first-child { margin-top: 0; }
.pe-text p:last-child  { margin-bottom: 0; }
.pe-text a { color: #1a1a1a; text-decoration: underline; }

/* ── Bouton CTA ── */
.pe-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 11px 28px;
    background: transparent;
    border: 2px solid #000;
    border-radius: 0;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    margin-top: 0.5rem;
}
.pe-btn:hover {
    transform: scale(1.07);
    color: #000;
    text-decoration: none;
}

/* Bouton fermer */
.pe-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    background: rgba(255,255,255,0.85);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #555;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.pe-close:hover {
    background: #fff;
    color: #111;
}

/* Responsive mobile */
@media (max-width: 600px) {
    .pe-overlay { padding: 1rem; }
    .pe-modal { flex-direction: column; max-height: 90vh; }
    .pe-col-left { flex: 0 0 180px; min-height: 180px; }
    .pe-col-right { padding: 1.5rem 1.25rem; }
    .pe-title { font-size: 1.2rem; }
}
