/* ========================================================
   MODAL AVIS / RECOMMANDATIONS
   ======================================================== */

.vote-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(0, 0, 0, .78);

    backdrop-filter:
        blur(8px);
}

.vote-overlay[hidden] {
    display: none !important;
}


.vote-dialog {
    position: relative;

    width: min(
        430px,
        100%
    );

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, .10);

    border-radius: 22px;

    background:
        #111;

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, .72);
}


.vote-backdrop {
    position: absolute;
    inset: 0 0 auto 0;

    height: 230px;

    background-size: cover;
    background-position: center;

    opacity: .42;
}


.vote-backdrop::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(17,17,17,.08) 0%,
            rgba(17,17,17,.72) 65%,
            #111 100%
        );
}


.vote-close {
    position: absolute;
    top: 14px;
    right: 14px;

    z-index: 4;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;

    background:
        rgba(0, 0, 0, .48);

    color: white;

    font-size: 1.25rem;

    cursor: pointer;
}


.vote-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding:
        78px 28px 26px;

    text-align: center;
}


.vote-poster {
    width: 122px;

    aspect-ratio: 2 / 3;

    object-fit: cover;

    border-radius: 14px;

    box-shadow:
        0 16px 40px
        rgba(0, 0, 0, .55);

    background:
        #222;
}


.vote-kicker {
    margin:
        20px 0 7px;

    color:
        rgba(255, 255, 255, .70);

    font-size:
        .88rem;
}


.vote-title {
    margin: 0;

    font-size: 1.55rem;
    line-height: 1.15;
}


.vote-context {
    margin:
        8px 0 0;

    color:
        rgba(255, 255, 255, .66);

    font-size:
        .84rem;
}


.vote-question {
    margin:
        17px 0 14px;

    font-size:
        1rem;

    font-weight:
        600;
}


.vote-actions {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    width: 100%;
}


.vote-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 92px;

    padding: 12px 8px;

    border:
        1px solid
        rgba(255, 255, 255, .10);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, .05);

    color: white;

    cursor: pointer;

    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease;
}


.vote-action:hover {
    transform:
        translateY(-2px);

    background:
        rgba(255, 255, 255, .10);
}


.vote-action-icon {
    font-size: 1.8rem;
    line-height: 1;
}


.vote-action-label {
    font-size: .76rem;
    line-height: 1.15;
}


.vote-later {
    margin-top: 18px;

    border: 0;
    background: none;

    color:
        rgba(255, 255, 255, .62);

    font: inherit;

    cursor: pointer;
}


.vote-progress {
    margin-top: 14px;

    color:
        rgba(255, 255, 255, .42);

    font-size: .76rem;
}


.vote-feedback {
    min-height: 20px;

    margin-top: 12px;

    color:
        rgba(255, 255, 255, .76);

    font-size:
        .82rem;
}


@media (max-width: 700px) {

    .vote-overlay {
        align-items: flex-end;

        padding:
            12px;
    }


    .vote-dialog {
        width: 100%;

        border-radius:
            22px 22px 16px 16px;
    }


    .vote-content {
        padding:
            62px 18px 22px;
    }


    .vote-poster {
        width: 110px;
    }


    .vote-title {
        font-size:
            1.35rem;
    }


    .vote-actions {
        gap: 8px;
    }


    .vote-action {
        min-height: 88px;

        padding:
            10px 6px;
    }


    .vote-action-label {
        font-size:
            .72rem;
    }

}


/* ========================================================
   MODAL VOTE MOBILE — VERSION PLUS COMPACTE
   ======================================================== */

@media (max-width: 700px) {

    .vote-dialog {
        width:
            min(
                85vw,
                365px
            );

        border-radius:
            18px;
    }


    .vote-content {
        padding:
            52px 15px
            18px;
    }


    .vote-poster {
        width:
            94px;
    }


    .vote-title {
        font-size:
            1.18rem;
    }


    .vote-kicker,
    .vote-context {
        font-size:
            .76rem;
    }


    .vote-question {
        margin:
            14px 0
            11px;

        font-size:
            .9rem;
    }


    .vote-actions {
        gap:
            7px;
    }


    .vote-action {
        min-height:
            76px;

        padding:
            8px 5px;
    }


    .vote-action-icon {
        font-size:
            1.5rem;
    }


    .vote-action-label {
        font-size:
            .66rem;
    }


    .vote-later {
        margin-top:
            14px;

        font-size:
            .84rem;
    }


    .vote-progress {
        margin-top:
            10px;

        font-size:
            .68rem;
    }

}


/* ========================================================
   MODAL VOTE — BOUTON FERMER
   ======================================================== */

.vote-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 1px solid
        rgba(255, 255, 255, .08);

    border-radius: 50%;

    background:
        rgba(0, 0, 0, .58);

    color: transparent;

    font-size: 0;
    line-height: 0;

    cursor: pointer;
}


.vote-close::before,
.vote-close::after {
    content: "";

    position: absolute;

    width: 14px;
    height: 2px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .92);
}


.vote-close::before {
    transform:
        rotate(45deg);
}


.vote-close::after {
    transform:
        rotate(-45deg);
}


.vote-close:hover {
    background:
        rgba(25, 25, 25, .92);
}


@media (max-width: 700px) {

    .vote-close {
        top: 12px;
        right: 12px;

        width: 32px;
        height: 32px;
    }


    .vote-close::before,
    .vote-close::after {
        width: 12px;
        height: 2px;
    }

}
