/* ===== Conteneur principal ===== */
.bp-poll {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    font-family: inherit;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ===== En-tête ===== */
.bp-poll-header {
    background: #1E3A5F;
    padding: 14px 20px;
}
.bp-poll-title {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ===== Corps ===== */
.bp-poll-form,
.bp-poll-results-inner {
    padding: 16px 20px;
}

/* ===== Messages ===== */
.bp-poll-message {
    margin: 0;
    padding: 12px 20px;
    font-size: .9rem;
}
.bp-message-info    { background: #EFF6FF; color: #1D4ED8; }
.bp-message-closed  { background: #F1F5F9; color: #64748B; }
.bp-message-voted   { background: #F0FDF4; color: #16A34A; }
.bp-message-thanks  { background: #F0FDF4; color: #16A34A; border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

/* ===== Options radio ===== */
.bp-radio-label,
.bp-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
    margin-bottom: 4px;
    font-size: .95rem;
}
.bp-radio-label:hover,
.bp-checkbox-label:hover { background: #F8FAFC; }

.bp-radio-label input,
.bp-checkbox-label input { display: none; }

.bp-radio-custom,
.bp-checkbox-custom {
    width: 18px; height: 18px;
    border: 2px solid #CBD5E1;
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color .2s, background .2s;
    position: relative;
}
.bp-checkbox-custom { border-radius: 4px; }

.bp-radio-label input:checked ~ .bp-radio-custom {
    border-color: #F97316;
    background: #F97316;
}
.bp-radio-label input:checked ~ .bp-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
}
.bp-checkbox-label input:checked ~ .bp-checkbox-custom {
    border-color: #F97316;
    background: #F97316;
}
.bp-checkbox-label input:checked ~ .bp-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* ===== Étoiles ===== */
.bp-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 2rem;
    padding: 4px 0;
}
.bp-star {
    cursor: pointer;
    color: #CBD5E1;
    transition: color .15s, transform .1s;
    line-height: 1;
}
.bp-star.active,
.bp-star:hover { color: #F97316; transform: scale(1.15); }

/* ===== Texte libre ===== */
.bp-text-answer {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 10px;
    font-family: inherit;
    font-size: .9rem;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color .2s;
}
.bp-text-answer:focus { outline: none; border-color: #F97316; }

/* ===== Bouton voter ===== */
.bp-vote-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 11px 0;
    background: #F97316;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.bp-vote-btn:hover  { background: #EA6C0A; }
.bp-vote-btn:active { transform: scale(.98); }
.bp-vote-btn:disabled { background: #94A3B8; cursor: not-allowed; }

/* ===== Lien résultats sans voter ===== */
.bp-see-results {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: .82rem;
    color: #64748B;
    text-decoration: underline;
}

/* ===== Résultats ===== */
.bp-results-info {
    color: #64748B;
    font-size: .85rem;
    margin: 0 0 12px;
}
.bp-result-bar-wrap { margin-bottom: 12px; }
.bp-result-label {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    margin-bottom: 4px;
    font-weight: 500;
}
.bp-result-pct { color: #F97316; font-weight: 700; }
.bp-bar-track {
    background: #E2E8F0;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}
.bp-bar {
    height: 100%;
    background: #1E3A5F;
    border-radius: 6px;
    width: 0%;
    transition: width .8s ease;
}
.bp-bar.bp-bar-chosen { background: #F97316; }

/* ===== Note moyenne ===== */
.bp-rating-average {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F97316;
    text-align: center;
    margin: 0 0 6px;
}