/* Scrutins publics : liste et détail. */
.scrutins-page { max-width: 980px; margin: 2rem auto 3rem; padding: 0 16px; }
.scrutins-intro { color: var(--text-muted, #4b5a52); margin: 0 0 1.25rem; }
.scrutins-filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin-bottom: 1rem; }
.scrutins-filtres__champ { display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 180px; font-weight: 600; }
.scrutins-filtres__champ input,
.scrutins-filtres__champ select {
  min-height: 44px; padding: 0.5rem 0.75rem; border: 1px solid var(--border-color, #b8c4bd);
  border-radius: 8px; font-weight: 400; font-size: 1rem; background: #fff;
}
.scrutins-filtres .btn-component { min-height: 44px; }
.scrutins-lien { align-self: center; }
.scrutins-compte { color: var(--text-muted, #4b5a52); margin-bottom: 1rem; }
.scrutins-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.scrutin-carte, .scrutin-detail {
  padding: 1rem 1.25rem; border: 1px solid var(--border-color, #dfe6e2); border-radius: 12px; background: #fff;
}
.scrutin-carte__tete { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.scrutin-carte__date { color: var(--text-muted, #4b5a52); font-size: 0.9rem; }
.scrutin-carte__objet { font-size: 1.1rem; margin: 0.4rem 0; }
.scrutin-carte__objet a { color: inherit; }
.scrutin-carte__meta, .scrutin-carte__voix, .scrutin-carte__vote { margin: 0.2rem 0; font-size: 0.95rem; }
.scrutin-resultat { display: inline-block; padding: 0.15rem 0.7rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; background: #e7ece8; color: #374151; }
.scrutin-resultat--adopte { background: #c8e6c9; color: #1b5e20; }
.scrutin-resultat--rejete { background: #fdecea; color: #8a1c14; }
.vote--pour { color: #1b5e20; }
.vote--contre { color: #8a1c14; }
.vote--abstention, .vote--non_votant { color: #4b5563; }
.scrutins-pages { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.scrutins-vide, .scrutins-note { color: var(--text-muted, #4b5a52); }
.scrutin-detail__objet { font-size: 1.5rem; margin: 0.6rem 0 1rem; }
.scrutin-detail__infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0.75rem; margin: 0 0 1.25rem; }
.scrutin-detail__infos dt { font-size: 0.85rem; color: var(--text-muted, #4b5a52); }
.scrutin-detail__infos dd { margin: 0; font-weight: 600; }
.scrutin-decompte { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.scrutin-decompte__case { display: flex; flex-direction: column; align-items: center; padding: 0.75rem; border-radius: 10px; background: #f2f5f3; }
.scrutin-decompte__case--pour { background: #e8f5ed; }
.scrutin-decompte__case--contre { background: #fdf0ee; }
.scrutin-decompte__nombre { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.scrutin-detail h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.scrutin-tableau { overflow-x: auto; }
.scrutin-tableau table { width: 100%; border-collapse: collapse; min-width: 480px; }
.scrutin-tableau th, .scrutin-tableau td { padding: 0.5rem; border-bottom: 1px solid #e1e7e3; text-align: left; }
.scrutin-tableau td { font-variant-numeric: tabular-nums; }
.scrutin-noms h4 { font-size: 1rem; margin: 1rem 0 0.4rem; }
.scrutin-noms ul { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 1.5rem; }
.scrutin-noms li { padding: 0.15rem 0; break-inside: avoid; }
.scrutin-noms__groupe { color: var(--text-muted, #4b5a52); font-size: 0.9rem; }
.scrutins-lien-donnees { margin-top: 1.5rem; }
.document-texte { margin-top: 0.75rem; padding: 1rem 1.25rem; border-radius: 10px; background: #f8faf9; line-height: 1.7; overflow-wrap: anywhere; }
.document-texte p { margin: 0 0 0.75rem; }
