/* ── The Entrepreneur — Interface de vote v1.6 ────────────────────────────── */

.te-vote {
    max-width: 1100px;
    margin: 0 auto;
    font-family: inherit;
}

.te-vote__intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ── Grille ──────────────────────────────────────────────────────────────── */

.te-vote__grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
    gap: 2rem;
    margin-bottom: 3rem;
}

.te-vote__card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.te-vote__card--selected {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba( 25, 118, 210, 0.15 );
}

/* ── Vidéo ───────────────────────────────────────────────────────────────── */

.te-vote__video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.te-vote__video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ── Footer carte ────────────────────────────────────────────────────────── */

.te-vote__card-footer {
    padding: 1rem 1.25rem 1.25rem;
}

.te-vote__candidat-nom {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 700;
}

.te-vote__candidat-desc {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #555;
}

/* ── Bouton vote ─────────────────────────────────────────────────────────── */

.te-vote__btn-select {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 2px solid #1976d2;
    border-radius: 6px;
    background: #fff;
    color: #1976d2;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.te-vote__btn-select:hover,
.te-vote__card--selected .te-vote__btn-select {
    background: #1976d2;
    color: #fff;
}

/* ── Partage par candidat ────────────────────────────────────────────────── */

.te-vote__card-share {
    border-top: 1px solid #f0f0f0;
    padding-top: 0.85rem;
    margin-top: 0.25rem;
}

.te-vote__card-share-label {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.te-vote__card-share-btns {
    display: flex;
    gap: 0.5rem;
}

.te-vote__card-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
    text-decoration: none;
    padding: 0;
}

.te-vote__card-share-btn:hover {
    opacity: 0.85;
    transform: translateY( -1px );
}

.te-vote__card-share-btn svg {
    width: 18px;
    height: 18px;
}

.te-vote__card-share-btn--facebook { background: #1877f2; color: #fff; }
.te-vote__card-share-btn--linkedin { background: #0a66c2; color: #fff; }
.te-vote__card-share-btn--copy     { background: #f0f0f0; color: #444; }

/* ── Formulaire ──────────────────────────────────────────────────────────── */

.te-vote__form-wrap {
    background: #f5f8ff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.te-vote__selection-recap {
    text-align: center;
    margin-bottom: 1.5rem;
}

.te-vote__form h3 { margin: 0 0 1.25rem; font-size: 1.05rem; }

.te-vote__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.te-vote__field--full { grid-column: 1 / -1; }

.te-vote__field label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.te-vote__field input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.te-vote__field input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba( 25,118,210,.15 );
}

/* ── Erreur ──────────────────────────────────────────────────────────────── */

.te-vote__error {
    background: #fff3f3;
    border: 1px solid #f44336;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    color: #c62828;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ── Bouton soumettre ────────────────────────────────────────────────────── */

.te-vote__btn-submit {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.te-vote__btn-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.te-vote__btn-submit:not(:disabled):hover { background: #1565c0; }

/* ── Confirmation ────────────────────────────────────────────────────────── */

.te-vote__confirmation {
    text-align: center;
    padding: 2rem;
    background: #e8f5e9;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.te-vote__confirmation-icon {
    display: inline-block;
    width: 3rem; height: 3rem; line-height: 3rem;
    background: #43a047; color: #fff;
    border-radius: 50%; font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.te-vote__confirmation h3 { margin: 0 0 0.5rem; color: #2e7d32; }

/* ── Section mobilisation / partage permanent ────────────────────────────── */

.te-vote__mobilisation {
    text-align: center;
    background: #1e3a5f;
    color: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin-top: 2.5rem;
}

.te-vote__mobilisation-titre {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    color: #fff;
}

.te-vote__mobilisation-texte {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Mini décompte mobilisation */
.te-vote__mobilisation-decompte {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.te-mobilisation-bloc {
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    min-width: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.te-mobilisation-val {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.te-mobilisation-unite {
    font-size: 0.65rem;
    opacity: 0.7;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.te-mobilisation-sep {
    font-size: 1.25rem;
    font-weight: 700;
    opacity: 0.6;
    padding-bottom: 0.75rem;
}

/* Boutons partage section mobilisation */
.te-vote__mobilisation-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.te-vote__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.te-vote__share-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.te-vote__share-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.te-vote__share-btn--facebook  { background: #1877f2; }
.te-vote__share-btn--linkedin  { background: #0a66c2; }
.te-vote__share-btn--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media ( max-width: 640px ) {
    .te-vote__grid        { grid-template-columns: 1fr; }
    .te-vote__fields      { grid-template-columns: 1fr; }
    .te-vote__field--full { grid-column: 1; }
    .te-vote__form-wrap   { padding: 1.25rem; }
    .te-vote__share-btn   { font-size: 0.82rem; padding: 0.55rem 1rem; }
}