@charset "utf-8";

/**
 * ================================================================
 * FICHIER : __MBR_exit_poll.css
 * EMPLACEMENT : _modules/__MBR_exit_poll/__MBR_exit_poll.css
 * DESCRIPTION : Styles du questionnaire de sortie (Exit-Intent).
 *               Design premium Glassmorphism, animations douces,
 *               syntaxe Allman stricte et conformité thème MBR.
 * ================================================================
 */

.mbr_exit_poll_overlay
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.mbr_exit_poll_overlay.is_visible
{
    opacity: 1;
    visibility: visible;
}

.mbr_exit_poll_backdrop
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mbr_exit_poll_dialog
{
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 580px;
    background: linear-gradient(135deg, rgba(18, 26, 44, 0.94) 0%, rgba(13, 20, 36, 0.98) 100%);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 20px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(6, 182, 212, 0.15);
    padding: 2.2rem 2.2rem 1.8rem 2.2rem;
    box-sizing: border-box;
    color: #ffffff;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 92vh;
    overflow-y: auto;
}

.mbr_exit_poll_overlay.is_visible .mbr_exit_poll_dialog
{
    transform: scale(1) translateY(0);
}

.mbr_exit_poll_close_btn
{
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mbr_exit_poll_close_btn:hover
{
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: rotate(90deg);
}

.mbr_poll_header
{
    text-align: center;
    margin-bottom: 1.6rem;
}

.mbr_poll_icon_pill
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #22d3ee;
    margin-bottom: 0.8rem;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.mbr_poll_icon_pill .material-symbols-outlined
{
    font-size: 1.8rem;
}

.mbr_poll_title
{
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0 0 0.4rem 0;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.mbr_poll_desc
{
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    line-height: 1.45;
}

.mbr_poll_options_grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.mbr_poll_option_card
{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
}

.mbr_poll_option_card:hover
{
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-2px);
}

.mbr_poll_option_card.is_selected
{
    background: rgba(6, 182, 212, 0.18);
    border-color: #06b6d4;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.22);
}

.mbr_poll_radio
{
    display: none;
}

.mbr_poll_card_icon
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #06b6d4;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mbr_poll_option_card.is_selected .mbr_poll_card_icon
{
    background: #06b6d4;
    color: #081120;
}

.mbr_poll_card_icon .material-symbols-outlined
{
    font-size: 1.15rem;
}

.mbr_poll_card_label
{
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}

.mbr_poll_option_card.is_selected .mbr_poll_card_label
{
    color: #ffffff;
    font-weight: 700;
}

.mbr_poll_toggle_comment_wrapper
{
    display: flex;
    justify-content: flex-end;
    margin-top: -0.4rem;
    margin-bottom: 0.9rem;
}

.mbr_poll_btn_toggle_comment
{
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.mbr_poll_btn_toggle_comment:hover
{
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    color: #22d3ee;
}

.mbr_poll_btn_toggle_comment.is_active
{
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    color: #ffffff;
}

.mbr_poll_btn_toggle_comment .comment_icon
{
    font-size: 1.05rem;
    color: #06b6d4;
}

.mbr_poll_details_group
{
    margin-bottom: 1.1rem;
    animation: mbr_poll_fade_in 0.3s ease;
}

.mbr_poll_contact_group
{
    margin-bottom: 1.4rem;
}

.mbr_poll_field_label
{
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.4rem;
}

.mbr_poll_textarea
{
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    color: #ffffff;
    font-size: 0.9rem;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.mbr_poll_textarea:focus
{
    border-color: #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.mbr_poll_input_wrapper
{
    position: relative;
    display: flex;
    align-items: center;
}

.mbr_poll_input_wrapper .input_icon
{
    position: absolute;
    left: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.15rem;
    pointer-events: none;
}

.mbr_poll_input
{
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.75rem 0.9rem 0.75rem 2.6rem;
    color: #ffffff;
    font-size: 0.9rem;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.mbr_poll_input:focus
{
    border-color: #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

/* 09/10/2026 17:58 — Coordonnées obligatoires (Dialogue MBR n° 233) — A VALIDER PAR JaxX */
.mbr_poll_contact_label_required
{
    display: none;
}

.mbr_poll_contact_group.is_required .mbr_poll_contact_label_optional
{
    display: none;
}

.mbr_poll_contact_group.is_required .mbr_poll_contact_label_required
{
    display: inline;
    color: rgba(255, 255, 255, 0.85);
}

.mbr_poll_contact_label_required strong
{
    color: #22d3ee;
    font-weight: 600;
}

.mbr_poll_contact_group.is_required .mbr_poll_input
{
    border-color: rgba(34, 211, 238, 0.45);
}

.mbr_poll_input_wrapper.is_invalid .mbr_poll_input,
.mbr_poll_contact_group.is_required .mbr_poll_input_wrapper.is_invalid .mbr_poll_input
{
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.mbr_poll_contact_error
{
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #ef4444;
}

.mbr_poll_contact_error:empty
{
    display: none;
}

.mbr_poll_actions
{
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
}

.mbr_poll_btn_primary
{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 1.4rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
    transition: all 0.25s ease;
}

.mbr_poll_btn_primary:hover:not(:disabled)
{
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #22d3ee 0%, #0369a1 100%);
}

.mbr_poll_btn_primary:disabled
{
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.mbr_poll_btn_dismiss
{
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mbr_poll_btn_dismiss:hover
{
    color: rgba(255, 255, 255, 0.85);
}

.mbr_poll_success
{
    text-align: center;
    padding: 2rem 1rem 1.5rem 1rem;
    animation: mbr_poll_fade_in 0.35s ease;
}

.mbr_poll_success_icon
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    margin-bottom: 1.2rem;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.25);
}

.mbr_poll_success_icon .material-symbols-outlined
{
    font-size: 2.8rem;
}

.mbr_poll_success_title
{
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.mbr_poll_success_desc
{
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.5;
}

@keyframes mbr_poll_fade_in
{
    from
    {
        opacity: 0;
        transform: translateY(8px);
    }
    to
    {
        opacity: 1;
        transform: translateY(0);
    }
}

.mbr_poll_option_card_pro
{
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.05);
}

.mbr_poll_option_card_pro .mbr_poll_card_icon
{
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.mbr_poll_option_card_pro:hover
{
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.5);
}

.mbr_poll_option_card_pro.is_selected
{
    background: rgba(245, 158, 11, 0.22);
    border-color: #f59e0b;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.mbr_poll_option_card_pro.is_selected .mbr_poll_card_icon
{
    background: #f59e0b;
    color: #121a2c;
}

.mbr_poll_insist_notice
{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
    font-size: 0.86rem;
    line-height: 1.4;
    margin-bottom: 1.1rem;
    animation: mbr_poll_fade_in 0.25s ease;
}

.mbr_poll_insist_notice .material-symbols-outlined
{
    font-size: 1.4rem;
    color: #fbbf24;
    flex-shrink: 0;
}

.mbr_shake
{
    animation: mbr_shake_anim 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes mbr_shake_anim
{
    10%, 90%
    {
        transform: translate3d(-2px, 0, 0);
    }
    20%, 80%
    {
        transform: translate3d(4px, 0, 0);
    }
    30%, 50%, 70%
    {
        transform: translate3d(-6px, 0, 0);
    }
    40%, 60%
    {
        transform: translate3d(6px, 0, 0);
    }
}

/* Responsiveness Mobile */
@media (max-width: 600px)
{
    .mbr_poll_options_grid
    {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .mbr_exit_poll_dialog
    {
        padding: 1.6rem 1.2rem 1.4rem 1.2rem;
        border-radius: 16px;
    }

    .mbr_poll_title
    {
        font-size: 1.3rem;
    }
}

