/* Widget sondage — page d’accueil */

.poll-widget-section {
    margin-bottom: 28px;
}

.poll-widget-section h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.35rem;
    font-weight: 600;
}

.poll-widget-root {
    font-size: 0.98rem;
    line-height: 1.5;
}

.poll-widget-question {
    margin: 0 0 16px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-light);
}

.poll-widget-meta {
    font-size: 0.82rem;
    color: rgba(224, 224, 224, 0.55);
    margin-bottom: 14px;
}

.poll-widget-option {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(187, 134, 252, 0.15);
}

.poll-widget-option--vote {
    cursor: pointer;
}

.poll-widget-option--vote:hover {
    border-color: rgba(187, 134, 252, 0.35);
}

.poll-widget-option input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.poll-widget-option-label {
    flex: 1;
    min-width: 0;
}

.poll-widget-bar-wrap {
    margin-top: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.poll-widget-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(187, 134, 252, 0.85), rgba(124, 77, 255, 0.75));
    transition: width 0.35s ease;
}

.poll-widget-pct {
    font-size: 0.8rem;
    margin-top: 6px;
    color: rgba(224, 224, 224, 0.55);
}

.poll-widget-actions {
    margin-top: 16px;
}

.poll-widget-msg {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--secondary-accent);
}

.poll-widget-msg--err {
    color: #fca5a5;
}

.poll-widget-note {
    font-size: 0.85rem;
    color: rgba(224, 224, 224, 0.45);
    margin-top: 10px;
}

[data-theme="light"] .poll-widget-meta,
[data-theme="light"] .poll-widget-pct,
[data-theme="light"] .poll-widget-note {
    color: rgba(70, 70, 78, 0.75);
}

[data-theme="light"] .poll-widget-option {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(124, 77, 255, 0.2);
}
