@charset "utf-8";
/* votes_parlement.css — page « Votes au Parlement » (21/11/2026)
   Complète sondages_veille.css (même mise en page). */

.vp-chip { display:inline-block; font-size:0.75em; font-weight:700; color:#174b8a; background:#eaf1fa; border-radius:12px; padding:3px 10px; white-space:nowrap; }
.vp-chip--senat { color:#7a1f3d; background:#f8e8ee; }
.vp-chip--pe { color:#0c447c; background:#e6eefb; }
.vp-date { font-size:0.85em; color:#889; }

.vp-badge { font-size:0.72em; font-weight:700; border-radius:10px; padding:2px 10px; white-space:nowrap; }
.vp-badge--adopte { background:#e4f2d6; color:#3B6D11; }
.vp-badge--rejete { background:#fbe3e3; color:#A32D2D; }
.vp-badge--neutre { background:#eef1f6; color:#556; }

/* ---------- Liste ---------- */
.vp-filtres { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.vp-filtre { font-size:0.85em; font-weight:600; color:#174b8a; background:#fff; border:1px solid #dfe6ef; border-radius:16px; padding:5px 12px; text-decoration:none; }
.vp-filtre:hover { border-color:#174b8a; }
.vp-filtre.is-active { background:#174b8a; color:#fff; border-color:#174b8a; }
.vp-filtres-sep { flex:1; }
.vp-filtre--option { color:#667; }
.vp-filtre--option.is-active { background:#667; border-color:#667; color:#fff; }

.vp-liste { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:12px; }
.vp-ligne { display:flex; flex-direction:column; gap:6px; background:#fff; border:1px solid #eef1f6; border-radius:10px; padding:11px 14px 12px; text-decoration:none; color:inherit; transition:border-color .15s, transform .15s; }
.vp-ligne:hover { border-color:#174b8a; transform:translateY(-1px); }
.vp-ligne-haut { display:flex; align-items:center; gap:8px; }
.vp-ligne-haut .vp-badge { margin-left:auto; }
.vp-ligne-titre { font-size:0.88em; color:#1b2a3a; font-weight:600; line-height:1.35; }
.vp-ligne-hemi { display:block; margin-top:auto; padding-top:4px; }
.vp-ligne-hemi .vp-hemicycle { margin-bottom:-14px; }
.vp-ligne-chiffres { display:flex; justify-content:center; flex-wrap:wrap; gap:4px 12px; font-size:0.8em; font-weight:700; }
.vp-c-pour { color:#3B6D11; }
.vp-c-contre { color:#A32D2D; }
.vp-c-abst { color:#854F0B; }
.vp-ligne-chiffres .vp-pt { width:8px; height:8px; margin-right:4px; }
.vp-ligne-type { font-size:0.74em; color:#889; text-align:center; }
.vp-side-barre { display:flex; height:6px; border-radius:3px; overflow:hidden; background:#eef1f6; }
.vp-side-chiffres { font-size:0.78em; color:#667; }

/* ---------- Scène « à la une » animée (22/11/2026) ---------- */
.vp-scene { display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(0, 1fr); gap:14px; align-items:start; }
.vp-scene-hemi { position:relative; background:#fff; border:1px solid #eef1f6; border-radius:14px; padding:14px 18px 0; box-shadow:0 4px 18px rgba(30,56,87,0.06); overflow:hidden; }
.vp-scene-titre { font-size:1em; color:#174b8a; line-height:1.4; margin:8px 0 4px; min-height:2.8em; }
.vp-scene-svg { max-width:520px; margin:0 auto; }
.vp-scene-compteurs { display:flex; justify-content:center; flex-wrap:wrap; gap:6px 22px; font-size:0.9em; margin:2px 0 10px; }
.vp-scene-compteurs b { font-size:1.45em; font-variant-numeric:tabular-nums; margin-right:2px; }
.vp-scene-bas { display:flex; align-items:center; gap:6px; border-top:1px solid #f0f2f6; padding:9px 0 11px; }
.vp-scene-btn { width:30px; height:30px; border-radius:50%; border:1px solid #dfe6ef; background:#fff; color:#174b8a; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.vp-scene-btn:hover { border-color:#174b8a; }
.vp-scene-btn svg, .vp-scene-btn i { width:16px; height:16px; }
.vp-scene-position { font-size:0.8em; color:#889; margin-left:4px; font-variant-numeric:tabular-nums; }
.vp-scene-detail { margin-left:auto; display:inline-flex; align-items:center; gap:5px; font-size:0.84em; font-weight:700; color:#e86c00; text-decoration:none; }
.vp-scene-detail svg, .vp-scene-detail i { width:15px; height:15px; }
.vp-scene-progression { position:absolute; left:0; right:0; bottom:0; height:3px; background:#f0f2f6; }
.vp-scene-progression span { display:block; height:100%; width:0; background:#e86c00; }
.vp-scene.is-anime .vp-scene-progression span { animation:vp-progression 8s linear forwards; }
.vp-scene.is-en-pause .vp-scene-progression span { animation:none !important; width:0; }
@keyframes vp-progression { from { width:0; } to { width:100%; } }

.vp-scene-liste { display:flex; flex-direction:column; gap:6px; }
.vp-scene-item { display:flex; flex-direction:column; gap:4px; background:#fff; border:1px solid #eef1f6; border-left:3px solid transparent; border-radius:10px; padding:9px 12px; text-decoration:none; color:inherit; transition:border-color .2s, background .2s, transform .2s; }
.vp-scene-item:hover { border-color:#c9d6e6; transform:translateX(2px); }
.vp-scene-item.is-active { border-left-color:#e86c00; background:#fff8f1; }
.vp-scene-item-titre { font-size:0.84em; color:#1b2a3a; font-weight:600; line-height:1.35; }

/* Sièges qui apparaissent en vague, liserés qui se dessinent, résultat qui monte */
.vp-scene.is-anime .vp-pt-anim { transform-box:fill-box; transform-origin:center; animation:vp-siege .45s cubic-bezier(.2,.8,.3,1.4) both; }
.vp-scene.is-anime .vp-arc-anim { stroke-dasharray:400; stroke-dashoffset:400; animation:vp-arc 1.1s ease-out forwards; }
.vp-scene.is-anime .vp-res-anim { animation:vp-res .5s ease-out .9s both; }
@keyframes vp-siege { from { transform:scale(0); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes vp-arc { to { stroke-dashoffset:0; } }
@keyframes vp-res { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) {
    .vp-scene.is-anime .vp-pt-anim, .vp-scene.is-anime .vp-arc-anim, .vp-scene.is-anime .vp-res-anim { animation:none; stroke-dashoffset:0; }
}
@media (max-width: 900px) {
    .vp-scene { grid-template-columns:1fr; }
}

/* ---------- Explications et vote décisif d'un texte (22/11/2026) ---------- */
.vp-explication { font-size:0.84em; color:#667; margin:-6px 0 12px; line-height:1.45; }
.vp-groupe-decisif { align-self:flex-start; font-size:0.78em; font-weight:700; border-radius:10px; padding:2px 10px; margin-top:4px; text-decoration:none; }
.vp-groupe-decisif.is-adopte { background:#e4f2d6; color:#3B6D11; }
.vp-groupe-decisif.is-rejete { background:#fbe3e3; color:#A32D2D; }
.vp-groupe-decisif.is-attente { background:#eef1f6; color:#667; font-weight:600; }
a.vp-groupe-decisif:hover { text-decoration:underline; }

/* ---------- Présentation allégée (22/11/2026) ---------- */
.vp-voir-plus { display:inline-flex; align-items:center; gap:6px; margin:10px 0 4px; font-size:0.88em; font-weight:700; color:#174b8a; text-decoration:none; }
.vp-voir-plus i { width:16px; height:16px; }
.vp-sous-titre { font-size:0.78em; font-weight:400; color:#889; text-transform:none; letter-spacing:0; margin-left:6px; }
.vp-groupes { display:flex; flex-direction:column; gap:8px; }
.vp-groupe { background:#fff; border:1px solid #eef1f6; border-radius:10px; overflow:hidden; }
.vp-groupe summary { display:flex; align-items:center; gap:10px; padding:10px 14px; cursor:pointer; list-style:none; }
.vp-groupe summary::-webkit-details-marker { display:none; }
.vp-groupe summary:hover { background:#f8fafd; }
.vp-groupe-infos { flex:1; display:flex; flex-direction:column; min-width:0; }
.vp-groupe-texte { font-weight:700; color:#1b2a3a; font-size:0.92em; line-height:1.35; }
.vp-groupe-meta { font-size:0.78em; color:#889; margin-top:2px; }
.vp-chevron { width:18px; height:18px; color:#889; flex-shrink:0; transition:transform .2s; }
.vp-groupe[open] .vp-chevron { transform:rotate(180deg); }
.vp-rangs { border-top:1px solid #eef1f6; }
.vp-rang { display:grid; grid-template-columns:1fr 170px 70px; gap:14px; align-items:center; padding:8px 14px; border-top:1px solid #f3f5f9; text-decoration:none; color:inherit; }
.vp-rang:first-child { border-top:none; }
.vp-rang:hover { background:#f8fafd; }
.vp-rang-titre { font-size:0.84em; color:#334; line-height:1.35; }
.vp-rang-chiffres { display:flex; justify-content:space-between; font-size:0.74em; font-weight:700; margin-top:3px; }
.vp-rang .vp-badge { justify-self:end; }

.vp-pg-numeros { display:inline-flex; align-items:center; gap:4px; flex-wrap:wrap; }
.vp-pg-num { min-width:32px; height:32px; padding:0 6px; border-radius:8px; border:1px solid #dfe6ef; background:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; color:#174b8a; text-decoration:none; }
.vp-pg-num:hover { border-color:#174b8a; }
.vp-pg-num.is-actuelle { background:#174b8a; border-color:#174b8a; color:#fff; }
.vp-pg-trou { color:#99a; padding:0 2px; }
.vp-pg-mois { height:32px; border:1px solid #dfe6ef; border-radius:8px; padding:0 8px; color:#174b8a; font-weight:600; background:#fff; cursor:pointer; }
.vp-pagination { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:10px 14px; margin-top:18px; font-size:0.9em; color:#667; }
.vp-pagination a { color:#174b8a; font-weight:700; text-decoration:none; }

/* ---------- Page détaillée ---------- */
.vp-detail-entete { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:8px; }
.vp-detail-titre { font-size:1.15em; color:#174b8a; margin:0 0 14px; line-height:1.4; }
.vp-hemi-zone { max-width:620px; margin:0 auto; }
.vp-hemicycle { width:100%; height:auto; display:block; }
.vp-legende { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 16px; font-size:0.85em; color:#445; margin-top:6px; }
.vp-pt { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; vertical-align:-1px; flex-shrink:0; }
.vp-pt--vide { border:1px solid #888780; background:transparent; width:9px; height:9px; }
.vp-note { font-size:0.78em; color:#889; text-align:center; margin:8px 0 0; }

.vp-table-wrap { overflow-x:auto; }
.vp-table { width:100%; border-collapse:collapse; font-size:0.88em; }
.vp-table th { text-align:right; font-size:0.8em; color:#889; font-weight:600; padding:6px 8px; border-bottom:1px solid #eef1f6; white-space:nowrap; }
.vp-table th:first-child, .vp-table td:first-child { text-align:left; }
.vp-table td { text-align:right; padding:7px 8px; border-bottom:1px solid #f3f5f9; color:#333; }
.vp-table td:first-child { display:flex; align-items:center; max-width:340px; }
.vp-table td:first-child span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vp-maj { font-weight:700; }
.vp-maj--pour { color:#3B6D11; }
.vp-maj--contre { color:#A32D2D; }
.vp-maj--abst { color:#854F0B; }
.vp-gris { color:#99a !important; }

.vp-recherche { width:100%; max-width:320px; padding:7px 12px; border:1px solid #dfe6ef; border-radius:8px; font-size:0.9em; margin-bottom:10px; }
.vp-groupe-noms { border-bottom:1px solid #f0f2f6; padding:6px 0; }
.vp-groupe-noms summary { cursor:pointer; font-weight:600; color:#1b2a3a; font-size:0.92em; display:flex; align-items:center; }
.vp-pos { font-size:0.84em; color:#445; line-height:1.6; margin:6px 0 4px 16px; }
.vp-pos-pour { color:#3B6D11; }
.vp-pos-contre { color:#A32D2D; }
.vp-pos-abstention { color:#854F0B; }
.vp-pos-nv { color:#667; }
.vp-nom--trouve { background:#fff1b8; border-radius:3px; }
.vp-source { font-size:0.82em; color:#889; margin-top:16px; }
.vp-source a { color:#174b8a; }

@media (max-width: 768px) {
    .vp-filtre--option { margin-left:0; }
    .vp-liste { grid-template-columns:1fr; }
    .vp-table td:first-child { max-width:180px; }
    .vp-rang { grid-template-columns:1fr 70px; }
    .vp-rang-vote { grid-column:1 / -1; grid-row:2; }
}
