/* Switch-Actu Polls — Public CSS */

.sap-poll-container {
    background: #f9f9f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin: auto;
    font-family: inherit;
    max-width: 600px;
}

p.sap-already-voted {
    margin: 0;
        font-style: italic;
    font-size: .9rem;
}

.sap-poll-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a202c;
    line-height: 1.4;
}

.sap-poll-desc {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 14px;
}

/* Notices */
.sap-poll-notice {
    font-size: 0.875em;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}
.sap-notice-expired  { background: #fef3c7; color: #92400e; }
.sap-notice-inactive { background: #f3f4f6; color: #374151; }
.sap-notice-scheduled{ background: #dbeafe; color: #1e40af; }

/* Options list */
.sap-options-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}
.sap-option-item { margin-bottom: 8px; }
.sap-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95em;
    color: #2d3748;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background .15s;
}
.sap-option-label:hover { background: #edf2f7; }
.sap-option-label input[type="radio"],
.sap-option-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e84040; /* couleur Switch-Actu */
    flex-shrink: 0;
}

.sap-vote-hint {
    font-size: 0.8em;
    color: #718096;
    margin: -6px 0 10px;
}

.sap-poll-expiry {
    font-size: 0.8em;
    color: #718096;
    margin-bottom: 10px;
}

/* Bouton vote */
.sap-vote-btn {
    display: inline-block;
    background: #e84040;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px 22px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.sap-vote-btn:hover  { background: #c53030; }
.sap-vote-btn:active { transform: scale(.97); }
.sap-vote-btn:disabled { background: #a0aec0; cursor: not-allowed; }

/* Message retour */
.sap-poll-message {
    margin-top: 10px;
    font-size: 0.875em;
    min-height: 1.4em;
}
.sap-poll-message.sap-msg-success { color: #2f855a; }
.sap-poll-message.sap-msg-error   { color: #c53030; }

.sap-show-results-link {
    margin-left: 6px;
    font-size: inherit;
    color: #c53030;
    text-decoration: underline;
    white-space: nowrap;
}

/* Résultats */
.sap-results { margin-top: 10px; }
.sap-results-list { list-style: none; margin: 0; padding: 0; }

.sap-result-item {
    margin-bottom: 12px;
}
.sap-result-label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}
.sap-result-bar-wrap {
    background: #e2e8f0;
    border-radius: 99px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 3px;
}
.sap-result-bar {
    height: 100%;
    background: #e84040;
    border-radius: 99px;
    transition: width .5s ease;
}
.sap-result-meta {
    font-size: 0.78em;
    color: #718096;
}

.sap-total-votes {
    margin-top: 14px;
    font-size: 0.85em;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
}

.sap-already-voted {
    font-size: 0.85em;
    color: #2f855a;
    margin-top: 8px;
}

/* Loading state */
.sap-loading .sap-vote-btn { background: #a0aec0; }
