/**
 * Styles front-end pour LaDentBleue Mailchimp VO
 */

/* Bouton d'ouverture */
.lbmvo-open-btn {
    display: inline-block;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    line-height: 1.4;
}

.lbmvo-open-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.lbmvo-open-btn:active {
    transform: translateY(0);
}

/* Overlay (fond sombre derrière la modale) */
.lbmvo-overlay {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
}

.lbmvo-overlay.lbmvo-active {
    display: flex !important;
    opacity: 1;
}

/* Modale */
.lbmvo-modal {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.lbmvo-overlay.lbmvo-active .lbmvo-modal {
    transform: scale(1) translateY(0);
}

/* Header de la modale */
.lbmvo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}

.lbmvo-modal-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* Bouton de fermeture */
.lbmvo-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 22px;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.lbmvo-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.35);
}

/* Body de la modale */
.lbmvo-modal-body {
    position: relative;
    overflow: hidden;
    height: 190px;
    margin: 16px 24px 24px;
}

/* Iframe */
.lbmvo-iframe {
    position: absolute;
    top: -85px;
    left: 0;
    width: 100%;
    height: 800px;
    border: none;
}

/* Responsive */
@media (max-width: 480px) {
    .lbmvo-modal {
        width: 95%;
        border-radius: 12px;
    }

    .lbmvo-modal-header {
        padding: 14px 18px;
    }

    .lbmvo-modal-title {
        font-size: 17px;
    }

    .lbmvo-modal-body {
        padding: 16px;
    }

    .lbmvo-iframe {
        height: 420px;
    }

    .lbmvo-open-btn {
        font-size: 14px;
        padding: 10px 18px;
    }
}
