/************************
SONDAGE
*************************/

.sidebar-sondage {
    font-size: .85rem;
    line-height: 1.3;
}

/* ── Zone de saisie email (formulaire lien magique) ── */
.sondage__magic-form-fields {
    max-width: 320px;
}

/* ── Conteneur du graphique de résultats (hauteur calculée par question) ── */
.sondage__chart-wrap {
    position: relative;
    height: var(--sondage-chart-h);
}

/* ── Options custom (radio / checkbox) ── */
.sondage-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--sondage-opt-padding, 10px 14px);
    margin-bottom: 8px;
    border: 2px solid var(--color-border, #dee2e6);
    border-radius: var(--radius-card, 8px);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    user-select: none;
}

.sondage-opt:hover {
    border-color: var(--color-primary, #0d6efd);
    background: rgba(13, 110, 253, .04);
}

.sondage-opt.selected {
    border-color: var(--color-primary, #0d6efd);
    background: rgba(13, 110, 253, .07);
}

.sondage-opt input[type="radio"],
.sondage-opt input[type="checkbox"] {
    display: none;
}

.sondage-opt-dot {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border-dark, #adb5bd);
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
    position: relative;
}

.sondage-opt-dot::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary, #0d6efd);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform .15s;
}

.sondage-opt.selected .sondage-opt-dot {
    border-color: var(--color-primary, #0d6efd);
    background: var(--color-bg, #fff);
}

.sondage-opt.selected .sondage-opt-dot::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Checkbox : carré + coche */
.sondage-opt[data-type="checkbox"] .sondage-opt-dot {
    border-radius: 4px;
}

.sondage-opt[data-type="checkbox"] .sondage-opt-dot::after {
    width: 10px;
    height: 6px;
    border-radius: 0;
    background: transparent;
    border-left: 2px solid var(--color-primary, #0d6efd);
    border-bottom: 2px solid var(--color-primary, #0d6efd);
    transform: translate(-50%, -65%) scale(0) rotate(-45deg);
}

.sondage-opt[data-type="checkbox"].selected .sondage-opt-dot::after {
    transform: translate(-50%, -65%) scale(1) rotate(-45deg);
}

.sondage-opt[data-type="checkbox"].selected .sondage-opt-dot {
    background: rgba(13, 110, 253, .08);
}

/* ── Option désactivée (maximum de réponses atteint sur la question) ── */
.sondage-opt--disabled {
    opacity: .5;
    cursor: not-allowed;
}

.sondage-opt--disabled:hover {
    border-color: var(--color-border, #dee2e6);
    background: transparent;
}

/* ── Texte d'aide min/max sous l'intitulé d'une question ── */
.sondage-question__hint {
    margin-top: -4px;
}
