/* ===== SECTION VOTE ===== */

.page.vote-index .vote-inner {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 40px 20px 0;
}

.vote-section-title {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin: 0 0 10px;
    color: #333;
}

.vote-intro {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    margin: 0 0 30px;
    color: #555;
}

.vote-grid-wrapper {
    margin-top: 10px;
}

/* ===== GRILLE DES VIDÉOS ===== */

.vv-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 0 0 60px;
}

/* Carte vidéo */
.vv-video-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.vv-video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

/* Titre de la vidéo */
.vv-video-title {
    padding: 16px 18px 10px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    color: #1f1f1f;
    min-height: 3em; /* pour aligner les cartes */
}

/* Wrapper iframe */
.vv-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.vv-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Ligne vote + compteur */

.vv-vote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
    background: #fafafa;
}

.vv-vote-count {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

/* Bouton CTA vote */

.vv-vote-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background-color 0.12s ease;
    background-color: #ff3560; /* rose vif type CTA */
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 53, 96, 0.3);
    white-space: nowrap;
}

.vv-vote-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 53, 96, 0.35);
}

.vv-vote-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 12px rgba(255, 53, 96, 0.25);
}

/* ===== MODALE ===== */

.vv-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.vv-modal-overlay.is-visible {
    display: flex;
}

.vv-modal {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px 26px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    font-family: "Montserrat", Arial, sans-serif;
}

.vv-modal h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #333;
}

#vv-modal-video-title {
    margin: 0 0 14px;
    font-size: 14px;
    color: #666;
}

#vv-vote-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#vv-vote-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
    color: #333;
}

#vv-vote-form input[type="text"],
#vv-vote-form input[type="email"],
#vv-vote-form input[type="tel"] {
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    background: #f7f7f7;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

#vv-vote-form input:focus {
    background: #ffffff;
    border-color: #06cca7;
    box-shadow: 0 0 0 2px rgba(6, 204, 167, 0.25);
}

.vv-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.vv-btn-secondary,
.vv-btn-primary {
    border-radius: 999px;
    padding: 8px 16px;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    border: 1px solid transparent;
}

/* Bouton annuler */
.vv-btn-secondary {
    background: #f2f2f2;
    color: #555;
    border-color: #ccc;
}

.vv-btn-secondary:hover {
    background: #ffffff;
    color: #333;
}

/* Bouton valider */
.vv-btn-primary {
    background: #06cca7;
    color: #333;
    border-color: #06cca7;
    font-weight: 600;
}

.vv-btn-primary:hover {
    background: #ffe44e;
    border-color: #ffe44e;
}

/* Message sous le formulaire */
.vv-message {
    margin-top: 8px;
    font-size: 13px;
}

.vv-message--success {
    color: #007962;
}

.vv-message--error {
    color: #c21d34;
}

/* ===== RESPONSIVE ===== */

@media screen and (max-width: 768px) {
    .page.vote-index .vote-inner {
        padding: 24px 16px 40px;
    }

    .vv-video-grid {
        gap: 18px;
        margin-bottom: 40px;
    }

    .vv-video-title {
        font-size: 14px;
        padding: 12px 14px 8px;
    }

    .vv-vote-row {
        padding: 10px 14px 12px;
    }

    .vv-modal {
        margin: 0 16px;
        padding: 20px 18px;
    }
}
/* --- Grille : 1 colonne mobile, 2 colonnes tablette, 3 colonnes desktop --- */
.vv-video-grid {
    display: grid;
    gap: 24px;
    margin: 40px 0 60px;
    grid-template-columns: 1fr; /* mobile par défaut */
}

@media (min-width: 768px) {
    .vv-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .vv-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Cartes un peu plus grosses visuellement */
.vv-video-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Ligne votes : éviter l’écrasement --- */
.vv-vote-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;         /* petit espace entre compteur et bouton */
    padding: 12px 16px 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 13px;
    flex-wrap: nowrap; /* on force sur desktop */
}

.vv-vote-count {
    flex: 0 0 auto;
    white-space: nowrap;   /* "0 vote" reste sur une ligne */
}

.vv-vote-btn {
    flex: 0 0 auto;        /* ne se réduit pas au point d’écraser le texte */
}

/* Optionnel : sur petits écrans, on empile compteur + bouton */
@media (max-width: 480px) {
    .vv-vote-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .vv-vote-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/*
 * CORRECTION CONFLIT THÈME
 * Force le masquage des icônes "carrées" du thème
 * sur les labels de notre modale.
*/
.vv-modal #vv-vote-form label::before,
.vv-modal #vv-vote-form label::after {
    content: none !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}