/**
 * sondages/sondages.css — Styles du module Sondages (liste, bulletin, résultats).
 *
 * Tout passe par les jetons de thème (lib/themes.css) : la page suit le thème
 * servi comme le reste du site. Composants partagés réutilisés tels quels :
 * .card, .btn, .badge, .tabs, .input, .textarea, .hero-compact, .section-label.
 */

/* ── Base de page (même socle que les autres modules, cf. evenements/index.php) ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg-base); color: var(--text-primary); min-height: 100vh; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--gradient-bg); pointer-events: none; }
a { color: inherit; }

/* ── Mise en page ── */
/* Même largeur et mêmes marges que .hero-compact__inner : le contenu s'aligne sur le titre. */
.poll-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 32px 5rem; }
.poll-wrap--narrow > * { max-width: 860px; }
@media (max-width: 640px) { .poll-wrap { padding: 20px 20px 4rem; } }

.poll-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1024px) { .poll-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.poll-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Sous la navbar ET la barre du fil d'Ariane (≈ 3.5rem), plus un peu d'air. */
.poll-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--navbar-h, 2.85rem) + 4.5rem); }
@media (max-width: 1023px) {
    .poll-side { position: static; }
    /* Mobile : l'invitation à se connecter passe avant la description. */
    .poll-gate { order: -1; }
}

.poll-section-label { margin: 8px 0 2px; }

.hero-compact__sub .badge { margin-right: 6px; vertical-align: 1px; text-shadow: none; }

/* ── Émojis (Unicode ou émoji de serveur Discord) ── */
.poll-emoji { display: inline-block; font-size: 1.15em; line-height: 1; width: 1.35em; text-align: center; flex-shrink: 0; }
.poll-emoji--custom { width: 1.3em; height: 1.3em; object-fit: contain; vertical-align: -0.25em; }

/* ── Messages ── */
.poll-notice {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; border-radius: 10px; font-size: 0.86rem; line-height: 1.5;
    background: var(--color-info-bg); border: 1px solid var(--color-info-border); color: var(--text-primary);
}
.poll-notice a:not(.btn) { color: var(--accent-light); }
.poll-notice--ok   { background: var(--color-success-bg); border-color: var(--color-success-border); }
.poll-notice--warn { background: var(--color-warning-bg); border-color: var(--color-warning-border); }
.poll-notice__actions { display: inline-flex; align-items: center; gap: 8px; }
/* Cible #mon-vote : décalage total sous la navbar (4rem) et la barre du fil d'Ariane, lu par lib/nav.php. */
#mon-vote { scroll-margin-top: 8rem; }
.poll-inline-form { display: inline; }

/* ── Description ── */
.poll-intro { padding: 18px 22px; font-size: 0.95rem; line-height: 1.65; color: var(--text-secondary); }
.poll-intro p + p { margin-top: 0.7em; }
.poll-intro strong { color: var(--text-primary); }

/* ── Après publication : « Et maintenant ? » ── */
.poll-next { padding: 18px 22px; border-color: var(--accent-mid); }
.poll-next__title { font-family: 'Cinzel', serif; font-size: 1rem; color: var(--text-primary); margin: 0 0 6px; }
.poll-next__lead { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; margin: 0 0 12px; }
.poll-next__steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; }
.poll-next__steps li > span { display: block; }
.poll-next__steps .btn { margin-top: 8px; }
.poll-next__cta { margin: 0 0 14px; }
.poll-announced { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.poll-announced a { color: var(--accent-light); }
.poll-announced label { cursor: pointer; }

/* ── Invitation à se connecter ── */
.poll-gate { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-color: var(--color-discord-border); }
.poll-gate__icon {
    width: 46px; height: 46px; border-radius: 50%; background: var(--color-discord); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.poll-gate__icon img { filter: brightness(0) invert(1); }
.poll-gate__text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 3px; font-size: 0.85rem; color: var(--text-secondary); }
.poll-gate__text strong { font-family: 'Cinzel', serif; font-size: 1rem; color: var(--text-primary); }
.poll-gate__cta { display: inline-flex; align-items: center; gap: 8px; background: var(--color-discord); border-color: var(--color-discord); color: #fff; }
.poll-gate__cta:hover { background: var(--color-discord-hover); border-color: var(--color-discord-hover); color: #fff; }
.poll-gate__cta img { filter: brightness(0) invert(1); }

/* ── Question (bulletin, aperçu, résultats) ── */
.poll-q, .poll-res, .poll-preview__q { padding: 18px 20px 20px; margin: 0; min-width: 0; }
fieldset.poll-q { border: 1px solid var(--border); }
.poll-q__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 0; width: 100%; }
legend.poll-q__head { float: left; }
legend.poll-q__head + * { clear: both; }
.poll-q__head > span:last-child, .poll-q__head > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.poll-q__num {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.85rem;
    color: var(--accent-light); background: var(--accent-glow); border: 1px solid var(--accent-dim);
}
.poll-q__label { font-family: 'Cinzel', serif; font-size: 1.02rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; margin: 0; }
.poll-q__help { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }
.poll-q__optional {
    font-family: 'Inter', sans-serif; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-muted); border: 1px solid var(--border-strong); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px;
}
.poll-q__error { margin-top: 10px; font-size: 0.84rem; font-weight: 500; color: var(--color-error); }
.poll-q__error::before { content: '!'; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 7px; border-radius: 50%; background: var(--color-error); color: var(--bg-base); font-size: 0.7rem; font-weight: 700; vertical-align: 1px; }
fieldset.poll-q.has-error { border-color: var(--color-error); background: var(--color-error-bg); }
/* Question sautée (après « Je ne viens pas ») : repliée sur son titre, grisée. */
.poll-q.is-skipped { opacity: 0.45; filter: saturate(0.4); padding-bottom: 18px; }
.poll-q.is-skipped .poll-q__head { margin-bottom: 0; }
.poll-q.is-skipped .poll-opts, .poll-q.is-skipped .poll-q__help, .poll-q.is-skipped .poll-q__error { display: none; }

/* ── Réponses cliquables ── */
.poll-opts { display: flex; flex-direction: column; gap: 8px; }
.poll-opt {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--border); background: var(--bg-surface);
    transition: border-color .15s, background .15s, transform .1s;
}
.poll-opt:hover { border-color: var(--accent-dim); background: var(--accent-faint); }
.poll-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.poll-opt__mark {
    width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
    border: 2px solid var(--border-strong); background: transparent; position: relative;
    transition: border-color .15s, background .15s;
}
.poll-opt input[type="checkbox"] ~ .poll-opt__mark { border-radius: 5px; }
.poll-opt input:checked ~ .poll-opt__mark { border-color: var(--accent); background: var(--accent); }
.poll-opt input[type="radio"]:checked ~ .poll-opt__mark::after {
    content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #fff;
}
.poll-opt input[type="checkbox"]:checked ~ .poll-opt__mark::after {
    content: ''; position: absolute; left: 4px; top: 0px; width: 5px; height: 10px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.poll-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-glow); }
.poll-opt:has(input:focus-visible) { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.poll-opt:active { transform: scale(0.995); }
.poll-opt__emoji { display: inline-flex; font-size: 1.15rem; }
.poll-opt__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.poll-opt__label { font-size: 0.92rem; color: var(--text-primary); line-height: 1.35; }
.poll-opt__hint { font-size: 0.75rem; color: var(--text-muted); }

.poll-form { display: flex; flex-direction: column; gap: 16px; }
.poll-ended {
    padding: 12px 16px; border-radius: 10px; font-size: 0.86rem;
    background: var(--accent-faint); border: 1px dashed var(--accent-dim); color: var(--text-secondary);
}
.poll-comment { width: 100%; box-sizing: border-box; resize: vertical; min-height: 84px; }
.poll-comment__count { display: block; margin-top: 6px; text-align: right; font-size: 0.72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.poll-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.poll-submit__hint { font-size: 0.78rem; color: var(--text-muted); max-width: 46ch; line-height: 1.45; }
.poll-submit__error { font-size: 0.84rem; font-weight: 500; color: var(--color-error); }
.poll-submit__error[hidden] { display: none; }
.poll-submit__progress { font-size: 0.8rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.poll-submit__progress[hidden] { display: none; }
/* Mobile : le bouton et le compteur collent au bas de l'écran pendant tout le bulletin,
   puis reprennent leur place en fin de formulaire. Au-dessus de la barre mobile
   (lib/mobile_page_bar.php, ≈ 3rem) jusqu'à 640 px. */
@media (max-width: 1023px) {
    .poll-submit {
        position: sticky; bottom: 0.75rem; z-index: 5;
        flex-wrap: wrap; gap: 6px 12px; padding: 8px 10px 8px 14px;
        border: 1px solid var(--border); border-radius: 12px;
        background: var(--bg-overlay); backdrop-filter: blur(12px);
    }
    /* Une seule ligne : le compteur passe sur deux lignes à gauche du bouton plutôt qu'au-dessus. */
    .poll-submit__progress { flex: 0 1 8.5em; font-size: 0.76rem; line-height: 1.35; }
    .poll-submit > .btn { order: 1; flex: 1 1 auto; justify-content: center; }
    .poll-submit__error, .poll-submit .poll-submit__hint { order: 2; flex-basis: 100%; }
}
/* Brouillon (gestionnaires) : barre Modifier / Publier, collante à toutes les tailles.
   Placée avant la règle ≤ 640 px pour en hériter le décalage au-dessus de la barre mobile. */
.poll-submit--draft {
    position: sticky; bottom: 0.75rem; z-index: 5;
    justify-content: space-between; gap: 8px 16px; padding: 8px 10px 8px 14px;
    border: 1px solid var(--color-warning-border); border-radius: 12px;
    background: linear-gradient(var(--color-warning-bg), var(--color-warning-bg)), var(--bg-overlay);
    backdrop-filter: blur(12px);
}
.poll-submit__draft { flex: 1 1 16em; font-size: 0.86rem; line-height: 1.45; color: var(--text-primary); }
@media (max-width: 640px) { .poll-submit { bottom: calc(3rem + 0.75rem); } }

/* ── Aperçu (visiteur) ── */
.poll-preview { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.poll-preview__q .poll-q__head { margin-bottom: 10px; }
.poll-preview__opts { list-style: none; margin: 0; padding: 0 0 0 40px; display: flex; flex-direction: column; gap: 5px; }
.poll-preview__opts li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text-secondary); }

/* ── Résultats ── */
.poll-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.poll-results-head .tabs { flex: 1; min-width: 220px; }
.poll-results-head .btn { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.poll-panel { display: flex; flex-direction: column; gap: 14px; }
.poll-panel[hidden] { display: none; }

.poll-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.poll-bar__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.poll-bar__label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-secondary); min-width: 0; }
.poll-bar.is-leader .poll-bar__label { color: var(--text-primary); font-weight: 600; }
.poll-bar__num { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.poll-bar__num strong { color: var(--text-primary); font-weight: 600; }
.poll-bar__track { height: 8px; border-radius: 999px; background: var(--accent-faint); border: 1px solid var(--border-soft); margin-top: 6px; overflow: hidden; }
.poll-bar__track > span { display: block; height: 100%; border-radius: 999px; background: var(--accent-dim); transition: width .6s ease; }
.poll-bar.is-leader .poll-bar__track > span { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
/* Réponse sans voix : seule la barre s'efface, le libellé reste lisible sur les fonds illustrés. */
.poll-bar.is-zero .poll-bar__track { opacity: 0.6; }
.poll-bar__mine {
    font-size: 0.64rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--accent-bright); background: var(--accent-mid); border-radius: 999px; padding: 1px 7px;
    white-space: nowrap; flex-shrink: 0;
}
.poll-bar__voters { margin-top: 5px; font-size: 0.74rem; color: var(--text-muted); line-height: 1.5; }

.poll-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.poll-comments li { display: flex; gap: 10px; align-items: flex-start; }
.poll-comments strong { font-size: 0.82rem; color: var(--text-primary); }
.poll-comments p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.5; margin-top: 2px; }

.poll-avatar { border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-surface-2); flex-shrink: 0; object-fit: cover; }

/* ── Par membre ── */
.poll-matrix-card { padding: 0; overflow: hidden; }
.poll-matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.poll-matrix-scroll::-webkit-scrollbar { height: 6px; }
.poll-matrix-scroll::-webkit-scrollbar-track { background: transparent; }
.poll-matrix-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.poll-matrix-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }
.poll-matrix { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.poll-matrix th, .poll-matrix td { padding: 9px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border-soft); }
.poll-matrix thead th {
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.04em;
    color: var(--text-muted); white-space: nowrap; background: var(--bg-surface-2);
}
.poll-matrix__qnum { color: var(--accent-light); }
/* Colonne collante : fond de carte rendu opaque (--bg-surface est translucide), sinon les cellules défilent dessous en transparence. */
.poll-matrix tbody th { font-weight: 500; color: var(--text-primary); white-space: nowrap; position: sticky; left: 0; background: linear-gradient(var(--bg-surface), var(--bg-surface)), var(--bg-base); z-index: 1; }
.poll-matrix tbody tr:hover td { background: var(--accent-faint); }
.poll-matrix tbody tr:hover th { background: linear-gradient(var(--accent-faint), var(--accent-faint)), linear-gradient(var(--bg-surface), var(--bg-surface)), var(--bg-base); }
.poll-matrix tr.is-me th { color: var(--accent-bright); }
.poll-matrix__who { display: inline-flex; align-items: center; gap: 8px; }
.poll-matrix__chip { display: inline-flex; align-items: center; gap: 5px; margin: 1px 6px 1px 0; color: var(--text-secondary); white-space: nowrap; }
.poll-matrix__none { color: var(--text-faint); }
/* Écran étroit : libellé raccourci plutôt que masqué. L'émoji seul ne dit rien sur
   téléphone (pas de survol pour lire le title), et deux ronds de couleur voisine se confondent. */
@media (max-width: 900px) {
    .poll-matrix__chip-label { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
    .poll-matrix td { min-width: 8rem; }
}

/* ── Latérale ── */
.poll-side__card { padding: 16px 18px; }
.poll-side__title {
    font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-muted); margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.poll-side__count { font-family: 'Inter', sans-serif; letter-spacing: 0; color: var(--accent-light); font-weight: 600; }
.poll-side__hint { font-size: 0.74rem; color: var(--text-muted); line-height: 1.5; margin: 10px 0 0; }
.poll-side__wide { width: 100%; margin-top: 12px; justify-content: center; }
.poll-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.poll-rules li { display: flex; gap: 9px; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45; }
.poll-rules li > span { flex-shrink: 0; width: 1.2em; display: inline-flex; justify-content: center; padding-top: 2px; color: var(--accent-light); }
.poll-people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.poll-share { display: flex; gap: 8px; }
.poll-share__url { flex: 1; min-width: 0; font-size: 0.78rem; font-family: 'JetBrains Mono', monospace; }

/* ── États vides ── */
.poll-empty { text-align: center; padding: 36px 20px; color: var(--text-secondary); font-size: 0.9rem; }
.poll-empty__icon { display: flex; justify-content: center; margin-bottom: 10px; color: var(--accent-light); }
.poll-icon { flex-shrink: 0; }
.poll-cta-line { margin-top: 4px; }

/* ── Liste des sondages ── */
.poll-list-group + .poll-list-group { margin-top: 26px; }
.poll-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.poll-card { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 20px; }
.poll-card--open { border-color: var(--accent-dim); background: linear-gradient(135deg, var(--accent-glow), var(--bg-surface) 65%); }
.poll-card--closed { opacity: 0.85; }
.poll-card__body { flex: 1; min-width: 0; }
.poll-card__title { font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.3; }
.poll-card__excerpt { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; margin: 6px 0 0; }
.poll-card__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.75rem; color: var(--text-muted); margin-top: 8px; }
/* Le lien du titre couvre toute la carte ; seules les actions passent au-dessus. */
.poll-card__link { color: inherit; text-decoration: none; }
.poll-card__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.poll-card__link:focus-visible { outline: none; }
.poll-card:has(.poll-card__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.poll-card__side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.poll-card__actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; }
/* Brouillon : pointillés = pas fini (remplace le badge), extrait sur deux lignes. */
.poll-card--draft { border-style: dashed; border-color: var(--accent-dim); }
.poll-card--draft.card-hover:hover { border-color: var(--accent); }
.poll-card--draft .poll-card__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poll-card__actions .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
/* Ce qui sera publié : questions, clôture, visibilité des résultats. */
.poll-ready { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; font-size: 0.75rem; color: var(--text-muted); }
.poll-ready li { display: inline-flex; align-items: center; gap: 5px; }
.poll-ready svg { width: 13px; height: 13px; flex-shrink: 0; }
.poll-ready .is-ok svg { color: var(--color-success); }
.poll-ready .is-bad { color: var(--color-error); }
/* En cours : clôture à moins de 24 h, annonce Discord à faire (gestionnaires). */
.poll-ready .is-soon { color: var(--color-warning); font-weight: 600; }
.poll-ready .is-todo { color: var(--color-warning); }
.poll-card--open .poll-card__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Derniers votants, en pile. */
.poll-voters__stack { display: inline-flex; }
.poll-voters__stack .poll-avatar { width: 20px; height: 20px; margin-left: -6px; box-shadow: 0 0 0 2px var(--bg-base); }
.poll-voters__stack .poll-avatar:first-child { margin-left: 0; }
/* Lien secondaire de la colonne (« Modifier mon vote »), au-dessus du lien de carte. */
.poll-card__link-sm { position: relative; z-index: 1; font-size: 0.75rem; color: var(--text-muted); text-decoration: none; }
.poll-card__link-sm:hover { color: var(--accent-light); text-decoration: underline; }
/* Écran tactile : petits boutons du module à 36 px, assez pour le doigt
   (« Clore » voisine « Voter » sur la liste). */
@media (pointer: coarse) {
    .poll-wrap .btn--sm { min-height: 36px; padding-left: 0.85rem; padding-right: 0.85rem; }
    .poll-card__actions { gap: 10px; }
}
@media (max-width: 560px) {
    .poll-card { flex-direction: column; align-items: flex-start; }
    .poll-card__side { flex-direction: row; flex-wrap: wrap; align-items: center; }
    /* En cours : Voter en bas, pleine largeur ; « Voté » et son lien de part et d'autre. */
    .poll-card--open { align-items: stretch; gap: 14px; }
    .poll-card--open .poll-card__side { justify-content: space-between; }
    .poll-card--open .poll-card__actions { flex: 1; gap: 10px; }
    .poll-card--open .poll-card__actions > .btn { flex: 1; justify-content: center; min-height: 36px; }
    .poll-card--open .poll-card__actions .kebab-trigger { width: 36px; height: 36px; border: 1px solid var(--border); }
    /* Brouillon : boutons en bas, pleine largeur, cibles de 36 px. */
    .poll-card--draft { align-items: stretch; gap: 14px; }
    .poll-card--draft .poll-card__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
    .poll-card--draft .poll-card__actions .btn { width: 100%; justify-content: center; min-height: 36px; }
    .poll-card--draft .poll-card__actions .kebab-trigger { width: 36px; height: 36px; border: 1px solid var(--border); }
}

/* ── Modale d'export ── */
.modal--poll-export { max-width: 680px; width: min(680px, 94vw); }
.poll-export__opts { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; font-size: 0.84rem; color: var(--text-secondary); }
.poll-export__opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.poll-export__msgs { display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; }
.poll-export__msg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 0.74rem; color: var(--text-muted); }
.poll-export__msg .export-area { font-family: 'JetBrains Mono', monospace; font-size: 0.74rem; }
