/* Polices hébergées sur le site (Bricolage Grotesque et Figtree, licence SIL Open Font License) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Thème « encre sur papier » : la couleur est réservée à ce qui veut dire quelque chose (oui, non, groupes, drapeaux) */
:root {
  --cr: #fbfaf7; --li: #efede7; --me: #efede7; --ci: #efede7; --pe: #efede7; --in: #121a22; --vi: #121a22; --vi-d: #121a22;
  --card: #fff; --mu: #5a636d; --line: #d7d3ca; --sh: none; --sh-s: none;
  --yes: #1c9a5b; --no: #d1453f; --abs: #9aa3ab; --absent: #e6e3dc;
  --fd: 'Bricolage Grotesque', sans-serif; --fb: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--cr); color: var(--in); font-family: var(--fb); font-size: 16px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--cr); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--vi); outline-offset: 2px; }
.site { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); container-type: inline-size; }

/* En-tête commun */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--cr); display: flex; align-items: center; gap: 12px 20px; padding: 14px 0; flex-wrap: wrap; }
.logo { font-family: var(--fd); font-size: 22px; font-weight: 800; color: var(--vi); text-decoration: none; letter-spacing: -.01em; }
.menu { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.menu a { flex: none; padding: 7px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--mu); }
.menu a:hover { color: var(--in); background: var(--card); }
.menu a[aria-current="page"] { background: var(--in); color: #fff; }
.langs { display: flex; gap: 4px; background: var(--card); border-radius: 99px; padding: 4px; box-shadow: var(--sh-s); }
.langs button { border: 0; background: none; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--vi); color: #fff; }
@container (max-width: 760px) { .top { position: static; } .menu { order: 3; width: 100%; margin-left: 0; } .langs { margin-left: auto; } .vinfo h2 { font-size: 20px; } }

.page { padding-bottom: 40px; }
.page[hidden] { display: none; }
.foot { border-top: 1px solid var(--line); margin-top: 20px; padding: 18px 0 32px; font-size: 13px; color: var(--mu); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.foot p { margin: 0; max-width: 70ch; }

/* Éléments partagés */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--in); color: #fff; border-radius: 99px; padding: 8px 18px; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn.vi { background: var(--vi); }
.btn.ghost { background: var(--card); color: var(--in); box-shadow: var(--sh-s); }
.btn:hover { transform: translateY(-1px); }
.sticker { display: inline-block; background: var(--card); border-radius: 14px; padding: 4px 12px; font-family: var(--fd); font-weight: 800; transform: rotate(3deg); box-shadow: var(--sh-s); }
.sticker b { color: var(--vi); font-size: 1.25em; }
.pill { display: inline-block; border-radius: 99px; padding: 1px 10px; font-size: 12px; font-weight: 800; }
.box { background: var(--card); border-radius: 28px; padding: 22px; box-shadow: var(--sh); }
h1, h2, h3 { font-family: var(--fd); line-height: 1.1; margin: 0; }
.ph { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 18px 0 6px; }
.ph h1 { font-size: clamp(32px, 5cqi, 52px); font-weight: 800; }
.lede { margin: 0 0 18px; color: var(--mu); max-width: 70ch; }
.notice { background: var(--pe); border-radius: 18px; padding: 10px 16px; font-size: 14px; margin: 0 0 18px; }
.notice a { font-weight: 700; }

/* ============ Accueil ============ */
.hero { background: var(--li); border-radius: 32px; padding: 4cqi; display: grid; grid-template-columns: 1.3fr 1fr; gap: 3cqi; align-items: center; margin-top: 4px; }
.hero h1 { font-weight: 800; font-size: 6.4cqi; line-height: 1; letter-spacing: -.01em; }
.hero h1 span { color: var(--vi); }
.hero p { font-size: 18px; margin: 14px 0 0; max-width: 46ch; }
.bubble { display: inline-block; margin-top: 18px; background: var(--card); border-radius: 18px 18px 18px 4px; padding: 10px 16px; font-weight: 700; box-shadow: var(--sh-s); }
.urn { width: 100%; max-width: 300px; justify-self: center; }
.chambers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.chambers a { border-radius: 28px; padding: 24px; text-decoration: none; position: relative; box-shadow: var(--sh); display: block; }
.chambers a:nth-child(1) { background: var(--me); } .chambers a:nth-child(2) { background: var(--ci); }
.chambers a:hover { transform: translateY(-2px); }
.chambers h2 { font-size: 28px; }
.chambers p { margin: 6px 0 14px; }
.chambers .sticker { position: absolute; top: -12px; right: 18px; }
.chambers .mini { position: absolute; right: 22px; bottom: 18px; width: 120px; opacity: .95; }
.sec { margin-top: 34px; }
.sec > h2 { font-size: 30px; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.sec > h2 .pill { background: var(--pe); font-family: var(--fb); font-size: 14px; padding: 3px 12px; }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ocard { background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--sh-s); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ocard h3 { font-family: var(--fb); font-size: 15px; line-height: 1.3; }
.ocard .tag { align-self: flex-start; background: var(--pe); }
.ocard .rec { margin-top: auto; font-weight: 800; }
.yn { display: inline-block; border-radius: 99px; padding: 0 10px; color: #fff; font-weight: 800; }
.yn.oui { background: var(--yes); } .yn.non { background: var(--no); }
.ocard .sc { color: var(--mu); font-size: 12.5px; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.dcard { border-radius: 28px; padding: 20px 22px; display: flex; gap: 16px; align-items: center; box-shadow: var(--sh); }
.dcard:nth-child(1) { background: var(--ci); } .dcard:nth-child(2) { background: var(--pe); }
.dcard .big { font-family: var(--fd); font-weight: 800; font-size: 44px; line-height: 1; color: var(--vi); text-align: center; min-width: 84px; }
.dcard .big small { display: block; font-size: 13px; font-family: var(--fb); color: var(--in); }
.dcard h3, .dcard h2 { font-size: 20px; }
.dcard p { margin: 2px 0 0; font-size: 14px; }
.latest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.latest a { background: var(--card); border-radius: 22px; padding: 14px 16px; box-shadow: var(--sh-s); text-decoration: none; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.latest a:hover { transform: translateY(-1px); }
.latest .t { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest .m { grid-column: 1 / -1; font-size: 12.5px; color: var(--mu); }
.path { margin-top: 34px; background: var(--me); border-radius: 32px; padding: 24px; }
.path h2 { font-size: 30px; margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; position: relative; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 22px; border-top: 1.5px solid var(--line); }
.steps li { text-align: center; font-weight: 800; font-size: 14px; position: relative; }
.steps i { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 50%; background: var(--card); font-style: normal; font-family: var(--fd); font-size: 20px; color: var(--vi); box-shadow: var(--sh-s); }
.path .btn { margin-top: 18px; }
@container (max-width: 860px) { .cards4 { grid-template-columns: 1fr 1fr; } .hero { grid-template-columns: 1fr; padding: 28px 22px; } .hero h1 { font-size: clamp(36px, 10cqi, 64px); } .urn { max-width: 220px; } .latest { grid-template-columns: 1fr; } }
@container (max-width: 560px) { .cards4, .chambers, .dates { grid-template-columns: 1fr; } .chambers .mini { display: none; } .steps { grid-template-columns: repeat(3, 1fr); row-gap: 14px; } .steps::before { display: none; } .hero p { font-size: 16px; } }

/* ============ Explorateur ============ */
.switch { display: inline-flex; gap: 4px; background: var(--card); border-radius: 99px; padding: 4px; box-shadow: var(--sh-s); }
.switch a { padding: 6px 14px; border-radius: 99px; font-weight: 800; font-size: 14px; text-decoration: none; color: var(--mu); }
.switch a[aria-current="page"] { background: var(--vi); color: #fff; }
.finder h2, .hemibox h2 { font-size: 22px; margin-bottom: 12px; }
.ctrls { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--mu); }
.field.grow { flex: 1 1 260px; }
.field input, .field select { font: inherit; font-size: 16px; color: var(--in); background: var(--cr); border: 2px solid var(--line); border-radius: 99px; padding: 8px 16px; min-width: 0; }
.field select { padding-right: 10px; max-width: 100%; }
.field input:focus, .field select:focus { border-color: var(--vi); outline: none; }
@container (max-width: 640px) { .field, .field.grow { flex: 1 1 100%; } }
.lhead { display: flex; justify-content: space-between; font-size: 13px; color: var(--mu); margin: 14px 0 6px; }
.vlist { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; border-radius: 18px; background: var(--cr); }
.vlist li + li { border-top: 1px solid var(--line); }
.vrow { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 10px 14px; cursor: pointer; }
.vrow:hover { background: var(--li); }
.vrow[aria-pressed="true"] { background: var(--li); box-shadow: inset 5px 0 0 var(--vi); }
.vrow .d { font-size: 13px; color: var(--mu); font-variant-numeric: tabular-nums; }
.vrow .t { font-size: 14.5px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vrow .mt { display: block; font-size: 12px; color: var(--mu); margin-top: 2px; font-weight: 400; }
.res { font-size: 12.5px; font-weight: 800; white-space: nowrap; padding: 3px 10px; border-radius: 99px; }
.res.ok { background: var(--pierre); color: var(--oui-t); } .res.ko { background: var(--pierre); color: var(--non-t); } .res.eq { background: var(--pierre); color: var(--mu); }
.res span { font-weight: 500; font-variant-numeric: tabular-nums; }
@container (max-width: 640px) { .vrow { grid-template-columns: 1fr auto; grid-template-areas: "d r" "m m"; gap: 4px 8px; } .vrow .d { grid-area: d; } .vrow .res { grid-area: r; } .vrow .mn { grid-area: m; } }
.more { margin-top: 10px; }
.empty { padding: 16px; color: var(--mu); }

.vinfo { margin-top: 18px; background: var(--li); border-radius: 28px; padding: 22px; position: relative; }
.vinfo[hidden] { display: none; }
.vinfo .d { font-size: 13px; color: var(--mu); font-weight: 700; }
.vinfo h2 { font-size: 24px; margin: 4px 44px 4px 0; }
.vinfo .mt { font-size: 14px; color: var(--mu); }
.close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--sh-s); }
.outc { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 12px; font-size: 14px; }
.outc strong { font-family: var(--fd); font-size: 20px; padding: 2px 14px; border-radius: 99px; color: #fff; }
.outc.ok strong { background: var(--yes); } .outc.ko strong { background: var(--no); } .outc.eq strong { background: var(--abs); }
.outc .y { color: var(--oui-t); font-weight: 800; } .outc .n { color: var(--non-t); font-weight: 800; } .outc .a { color: var(--mu); font-weight: 800; }
.vbar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin-top: 12px; background: var(--card); }
.vbar i { display: block; } .vbar .y { background: var(--yes); } .vbar .n { background: var(--no); } .vbar .a { background: var(--abs); } .vbar .x { background: var(--absent); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.links a { font-size: 13px; font-weight: 700; text-decoration: none; background: var(--card); border-radius: 99px; padding: 4px 12px; box-shadow: var(--sh-s); }

.hemibox { margin-top: 18px; }
.hhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.hhead h2 { margin: 0; }
.hwrap { position: relative; max-width: 760px; margin: 8px auto 0; }
.hemi2 { width: 100%; height: auto; display: block; }
.hemi2 .seat { cursor: pointer; }
.hemi2 .seat circle.o { transition: fill .2s; }
.hemi2 .seat:hover circle.o, .hemi2 .seat:focus circle.o { stroke: var(--in); stroke-width: 1.6; }
.hemi2 .seat:focus { outline: none; }
.hemi2 .seat.dim { opacity: .18; }
.hemi2 .center { font-family: var(--fd); font-weight: 800; fill: var(--in); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.legend button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--cr); border-radius: 99px; padding: 4px 12px 4px 6px; font-size: 13px; font-weight: 700; cursor: pointer; }
.legend button[aria-pressed="false"] { opacity: .35; }
.legend .dot { width: 14px; height: 14px; border-radius: 50%; }
.legend .c { color: var(--mu); font-weight: 500; }
.vleg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin-top: 10px; font-size: 13px; color: var(--mu); }
.vleg span { display: inline-flex; gap: 6px; align-items: center; }
.vleg i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; position: relative; }
.vleg i.n::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--in); color: #fff; border-radius: 14px; padding: 8px 12px; font-size: 13px; opacity: 0; transition: opacity .1s; max-width: 260px; }
.tip b { display: block; font-size: 14px; }
.tip .v { margin-top: 3px; font-weight: 800; }
.hint { text-align: center; font-size: 13px; color: var(--mu); margin: 8px 0 0; }

.bd { margin-top: 18px; overflow-x: auto; }
.bd table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.bd caption { text-align: left; font-family: var(--fd); font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.bd th, .bd td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.bd thead th { font-size: 12px; color: var(--mu); }
.bd .num { text-align: right; font-variant-numeric: tabular-nums; }
.bd td.y { color: var(--oui-t); font-weight: 800; } .bd td.n { color: var(--non-t); font-weight: 800; }
.bd .dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; }
.bd .dis { font-size: 12.5px; }
.bd .dis a { font-weight: 700; }

/* ============ Fiche élu·e ============ */
.back { display: inline-flex; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--mu); }
.back:hover { color: var(--in); }
.mp { display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: center; margin-top: 10px; background: var(--li); border-radius: 32px; padding: 26px; }
.av { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-family: var(--fd); font-weight: 800; font-size: 36px; color: #fff; box-shadow: var(--sh); }
.mp h1 { font-size: clamp(30px, 5cqi, 48px); font-weight: 800; }
.mp p { margin: 4px 0 0; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stat { background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--sh-s); }
.stat b { display: block; font-family: var(--fd); font-size: 34px; color: var(--vi); line-height: 1.1; }
.stat span { font-size: 13.5px; }
.mix { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin-top: 10px; background: var(--cr); }
@container (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
@container (max-width: 480px) { .mp { grid-template-columns: 1fr; } .av { width: 72px; height: 72px; font-size: 28px; } }
.hist { margin-top: 18px; }
.hist h2 { font-size: 22px; margin-bottom: 10px; }
.hlist { list-style: none; margin: 0; padding: 0; }
.hlist li { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: start; padding: 12px 6px; }
.hlist li + li { border-top: 1px solid var(--line); }
.hlist .d { font-size: 13px; color: var(--mu); padding-top: 2px; }
.hlist .t a { font-size: 14.5px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.hlist .t a:hover { text-decoration: underline; }
.hlist .t small { display: block; font-weight: 400; color: var(--mu); font-size: 12px; margin: 2px 0 6px; }
.hlist .t .lm { font-size: 11.5px; }
.pos { font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pos.Y { background: var(--pierre); color: var(--oui-t); } .pos.N { background: var(--pierre); color: var(--non-t); } .pos.A { background: var(--pierre); color: var(--mu); } .pos.X, .pos.P { background: var(--cr); color: var(--mu); }
.pos.dis { box-shadow: inset 0 0 0 2px var(--in); }
@container (max-width: 640px) { .hlist li { grid-template-columns: 1fr auto; } .hlist .d { grid-column: 1 / -1; } }
.filt { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.filt button { border: 0; border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 700; background: var(--cr); cursor: pointer; }
.filt button[aria-pressed="true"] { background: var(--in); color: #fff; }

/* ============ Parcours ============ */
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plist li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; background: var(--card); border-radius: 28px; padding: 20px; box-shadow: var(--sh-s); }
.plist li:nth-child(3n+1) { background: var(--li); } .plist li:nth-child(3n+2) { background: var(--me); } .plist li:nth-child(3n) { background: var(--ci); }
.plist i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--card); font-style: normal; font-family: var(--fd); font-weight: 800; font-size: 24px; color: var(--vi); box-shadow: var(--sh-s); }
.plist h2 { font-size: 22px; }
.plist p { margin: 4px 0 0; max-width: 70ch; }
.plist .ex { font-size: 14px; color: var(--mu); margin-top: 8px; }
.plist .ex a { font-weight: 700; color: var(--vi-d); }

/* ============ Ajouts ============ */
.topband { background: var(--pe); color: var(--in); font-size: 13px; line-height: 1.5; text-align: center; padding: 10px max(16px, env(safe-area-inset-left, 0px)); }
.topband a { color: var(--in); }
/* Liens rouges vers parlament.ch, comme sur le site */
.lm { display: inline-flex; align-items: center; color: var(--non-t); text-decoration: none; padding: 3px 12px; border-radius: 99px; background: var(--pierre); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.lm:hover { background: var(--pierre); border-color: #d04846; color: var(--non-t); }
.vinfo .links .lm { box-shadow: none; }
/* Votation populaire : détail replié */
.ocard { align-self: start; }
.cards4 { align-items: start; }
.dbtn { align-self: flex-end; margin-top: auto; border: 0; background: var(--cr); border-radius: 99px; padding: 5px 14px; font-weight: 800; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.dbtn i { font-style: normal; transition: transform .2s; display: inline-block; }
.dbtn[aria-expanded="true"] i { transform: rotate(180deg); }
.odet { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.odet[hidden] { display: none; }
.avis { margin: 0; display: grid; gap: 4px; }
.avis div { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.avis .dt { font-size: 13px; } .avis .dd { margin: 0; white-space: nowrap; }
.odet .rec, .odet p { margin: 0; }
.mots-t { font-size: 12px; font-weight: 800; color: var(--mu); }
.mots { display: flex; flex-wrap: wrap; gap: 4px; }
.mot { display: inline-flex; align-items: center; gap: 4px; background: var(--cr); border-radius: 99px; padding: 2px 8px 2px 4px; font-size: 11.5px; font-weight: 700; }
.mot i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mot em { font-style: normal; font-weight: 800; } .mot em.oui { color: var(--oui-t); } .mot em.non { color: var(--non-t); } .mot em.liberte { color: var(--mu); }
.mot.wait { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border: 0; outline: 1px dashed #b8c2ca; outline-offset: -1px; }
.mot.wait em { color: var(--mu); font-weight: 500; }
.olinks { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.olinks a { color: var(--vi-d); font-weight: 700; }
.srcnote { font-size: 12.5px; color: var(--mu); margin: 10px 0 0; }
/* Regrouper par groupe ou canton, carte des cantons */
.grp { display: inline-flex; align-items: center; gap: 4px; background: var(--cr); border-radius: 99px; padding: 4px; font-size: 13px; }
.grp span { padding: 0 6px 0 8px; color: var(--mu); font-weight: 700; }
.grp button { border: 0; background: none; border-radius: 99px; padding: 4px 12px; font-weight: 800; cursor: pointer; }
.grp button[aria-pressed="true"] { background: var(--vi); color: #fff; }
.hwrap.is-map { max-width: 900px; }
.hemi2.map .cant { fill: #fff; stroke: #c6c1b6; stroke-width: .8; stroke-linejoin: round; }
.hemi2.map .ch { fill: none; stroke: #8a8578; stroke-width: 1.4; stroke-linejoin: round; }
.hemi2.map .lake { fill: var(--li); stroke: #b7cfdc; stroke-width: .5; }
.hemi2.map .riv { fill: none; stroke: #b7cfdc; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.hemi2.map .lbl { font: 800 13px var(--fb); fill: var(--mu); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.hemi2.map .leader { stroke: #8a8578; stroke-width: .8; fill: none; } .hemi2.map .leader-end { fill: #8a8578; }
.credit { text-align: center; font-size: 12px; color: var(--mu); margin: 4px 0 0; }
.credit[hidden] { display: none; }
/* Fiche : encart Lobbywatch */
.succ { font-size: 14px; color: var(--mu); }
.lw { margin-top: 18px; background: var(--ci); border-radius: 28px; padding: 22px; box-shadow: var(--sh); }
.lw h2 { font-size: 22px; margin-bottom: 6px; }
.lw p { margin: 0 0 10px; font-size: 14.5px; max-width: 80ch; }
.lw .lw-notice { background: var(--pierre); border-radius: 16px; padding: 10px 14px; font-size: 13.5px; }
.lw-act { display: flex; flex-wrap: wrap; gap: 10px; }
.lw-p { margin-top: 14px; }
.lw-p[hidden] { display: none; }
.lw-warn { background: var(--pierre); border-radius: 14px; padding: 8px 12px; font-size: 13px; }
.lw-p iframe { width: 100%; height: 600px; border: 0; border-radius: 18px; background: #fff; }
@media (max-width: 640px) { .lw-p iframe { height: 450px; } }
/* ============ Parcours d'origine, en Bleu lac ============ */
.pc-switch { margin-bottom: 22px; flex-wrap: wrap; }
.pc-switch button { border: 0; background: none; border-radius: 99px; padding: 8px 16px; font-weight: 800; font-size: 15px; cursor: pointer; color: var(--mu); }
.pc-switch button[aria-pressed="true"] { background: var(--vi); color: #fff; }
.pc-track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 18px; }
.pc-track::before { content: ""; position: absolute; left: 8%; right: 8%; top: 27px; border-top: 1.5px solid var(--line); }
.pc-fill { position: absolute; left: 8%; top: 27px; height: 3px; background: var(--vi); border-radius: 2px; transition: width .3s; }
.pc-station { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--mu); min-width: 0; }
.pc-station .dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--mu); box-shadow: var(--sh-s); transition: all .2s; }
.pc-station svg { width: 26px; height: 26px; }
.pc-station .lbl { font-size: 13px; font-weight: 800; text-align: center; line-height: 1.25; }
.pc-station.done .dot { color: var(--vi); background: var(--li); }
.pc-station.cur .dot { background: var(--vi); color: #fff; transform: scale(1.08); }
.pc-station.cur .lbl { color: var(--in); }
@container (max-width: 600px) { .pc-station .dot { width: 44px; height: 44px; } .pc-station svg { width: 21px; height: 21px; } .pc-track::before, .pc-fill { top: 21px; } .pc-station .lbl { display: none; } }
.pc-panel { display: grid; gap: 18px; margin-bottom: 36px; }
.pc-head { display: flex; gap: 16px; align-items: flex-start; }
.pc-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--li); color: var(--vi-d); display: grid; place-items: center; flex-shrink: 0; }
.pc-icon svg { width: 32px; height: 32px; }
.pc-step { font-size: 13px; font-weight: 800; color: var(--mu); text-transform: uppercase; letter-spacing: .5px; }
.pc-panel h2 { font-size: 28px; margin-top: 2px; text-wrap: balance; }
.pc-text { font-size: 18px; margin: 0; max-width: 62ch; }
.pc-whorow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--mu); }
.pc-who { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--in); background: var(--cr); border-radius: 99px; padding: 5px 12px 5px 8px; }
.pc-who i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.pc-who.parl i { background: var(--vi); } .pc-who.cf i { background: #5b6b80; } .pc-who.people i { background: #b8860b; } .pc-who.canton i { background: #b0473f; }
.pc-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.pc-nav .btn:disabled { visibility: hidden; }
.pc-viz { background: var(--cr); border-radius: 22px; padding: 20px; overflow-x: auto; }
.pc-big { display: flex; flex-wrap: wrap; gap: 28px; align-items: baseline; }
.pc-big b { font-family: var(--fd); font-size: 40px; font-weight: 800; display: block; line-height: 1.1; color: var(--vi); }
.pc-big span { font-size: 15px; color: var(--mu); }
.pc-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.pc-box { background: var(--card); border-radius: 14px; padding: 10px 14px; box-shadow: var(--sh-s); }
.pc-arr { color: var(--mu); font-size: 20px; }
.pc-pp { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto; }
.pc-ch { background: var(--card); border-radius: 18px; padding: 14px; text-align: center; box-shadow: var(--sh-s); }
.pc-ch b { display: block; font-size: 16px; } .pc-ch span { font-size: 13px; color: var(--mu); }
.pc-ch svg { width: 70px; height: 36px; display: block; margin: 0 auto 6px; }
.pc-arrows svg { width: 64px; height: 40px; color: var(--vi); display: block; }
@keyframes pcpp { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
.pc-anim { animation: pcpp 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pc-anim { animation: none; } .pc-station .dot, .pc-fill { transition: none; } }
.pc-note { font-size: 14px; color: var(--mu); margin: 12px auto 0; max-width: 60ch; }
.pc-verdict { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.pc-ok { background: var(--card); border-radius: 18px; padding: 12px 16px; display: flex; gap: 8px; align-items: center; box-shadow: var(--sh-s); }
.pc-ok svg { width: 20px; height: 20px; color: var(--yes); }
.pc-eq { font-size: 22px; color: var(--mu); }
.pc-res { background: var(--vi); color: #fff; border-radius: 18px; padding: 12px 16px; }
.pc-link { color: var(--vi-d); font-weight: 800; }
.pc-fork { display: grid; gap: 12px; justify-items: center; }
.pc-q { background: var(--card); border: 2px solid #b8860b; border-radius: 18px; padding: 12px 18px; font-weight: 800; text-align: center; max-width: 420px; }
.pc-br2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 560px; }
.pc-br { background: var(--card); border-radius: 18px; padding: 12px 14px; font-size: 14px; box-shadow: var(--sh-s); }
.pc-br b { display: block; font-size: 15px; margin-bottom: 2px; } .pc-br.yes b { color: #b8860b; } .pc-br.no b { color: var(--vi); }
.pc-maj { display: grid; gap: 18px; }
.pc-ml { font-size: 15px; font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pc-ml span { font-weight: 400; color: var(--mu); font-size: 14px; }
.pc-bar { position: relative; height: 22px; border-radius: 99px; background: var(--pierre); overflow: hidden; }
.pc-bar i { position: absolute; inset: 0 auto 0 0; width: 54%; background: #b8860b; }
.pc-bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--in); }
.pc-cant { display: grid; grid-template-columns: repeat(23, 1fr); gap: 3px; max-width: 560px; }
.pc-cant i { aspect-ratio: 1; border-radius: 4px; background: var(--pierre); } .pc-cant i.on { background: #b8860b; }
.pc-st { font-size: 22px; margin: 0 0 12px; }
.pc-sum { padding: 6px; margin-bottom: 36px; }
.pc-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 12px 14px; align-items: start; cursor: pointer; background: none; border: 0; width: 100%; text-align: left; border-radius: 18px; }
.pc-row + .pc-row { border-top: 1px solid var(--line); border-radius: 0; }
.pc-row:hover { background: var(--cr); }
.pc-row .n { width: 36px; height: 36px; border-radius: 50%; background: var(--li); color: var(--vi-d); display: grid; place-items: center; font-family: var(--fd); font-weight: 800; }
.pc-row b { display: block; font-size: 16px; } .pc-row span span { font-size: 14px; color: var(--mu); }
.pc-gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-bottom: 36px; }
.pc-term { background: var(--card); border-radius: 22px; padding: 18px; box-shadow: var(--sh-s); }
.pc-term:nth-child(3n+1) { background: var(--li); } .pc-term:nth-child(3n+2) { background: var(--me); } .pc-term:nth-child(3n) { background: var(--ci); }
.pc-term h3 { font-size: 18px; margin: 0 0 4px; } .pc-term p { margin: 0; font-size: 14.5px; }
.pc-src ul { margin: 0; padding-left: 18px; font-size: 14px; } .pc-src a { color: var(--vi-d); font-weight: 700; }

/* Zoom sur un canton */
.hmap { position: relative; }
.ovw { position: absolute; top: 4px; right: 4px; z-index: 2; border: 0; background: var(--card); border-radius: 99px; padding: 6px 14px; font-weight: 800; font-size: 13px; box-shadow: var(--sh-s); cursor: pointer; }
.ovw[hidden] { display: none; }
.zhint[hidden] { display: none; }

/* Lobbywatch : emojis et boutons l'un sous l'autre */
.lw h2 span { margin-right: 4px; }
.lw .lw-notice { display: flex; gap: 10px; align-items: flex-start; }
.lw-act { flex-direction: column; align-items: flex-start; }
/* Lobbywatch : couleurs vives du site (violet), pour signaler un contenu externe */
.lw { background: none; border: 1px solid var(--line); border-left: 5px solid var(--in); box-shadow: none; }
.lw h2 { color: var(--in); }
.lw > p:not(.lw-notice) { color: var(--mu); }
.lw .lw-notice { background: var(--pierre); border: 1px solid var(--line); color: var(--in); }
.lw .btn.vi { background: var(--in); color: #fff; }
.lw .btn.vi:hover { background: var(--in); }
.lw .btn.ghost { background: #fff; color: var(--in); box-shadow: inset 0 0 0 1.5px var(--line); }
.lw .btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--in); }
.lw-p { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.lw-p .lw-warn { background: var(--pierre); color: var(--in); border-radius: 0; margin: 0; border-bottom: 1px solid var(--line); }
.lw-p iframe { border-radius: 0; display: block; }

/* Fiche : bouton « Voir l'hémicycle » à côté du lien parlament.ch */
.hlist .hacts { display: flex; flex-wrap: wrap; gap: 6px; }
.hlist .t a.hv { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; background: var(--li); color: var(--vi-d, var(--in)); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.hlist .t a.hv:hover { background: var(--pierre); border-color: var(--vi); text-decoration: none; }
.hlist .hv svg { width: 15px; height: 9px; }

/* Légende des votes cliquable : cache Oui, Non, Abstention, etc. */
.vleg button { display: inline-flex; gap: 6px; align-items: center; border: 0; background: var(--cr); color: var(--mu); border-radius: 99px; padding: 4px 12px 4px 6px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.vleg button:hover { color: var(--in); }
.vleg button[aria-pressed="false"] { opacity: .35; text-decoration: line-through; }
.legend button[aria-pressed="false"] { text-decoration: line-through; }
.hemi2 .seat.dim { opacity: .08; pointer-events: none; }
.fnote { text-align: center; font-size: 13px; color: var(--vi-d); margin: 10px 0 0; }
.freset { border: 0; background: var(--li); color: var(--vi-d); font: inherit; font-weight: 800; border-radius: 99px; padding: 3px 12px; margin-left: 4px; cursor: pointer; }
.freset:hover { background: var(--pierre); }
.bd td.empty { color: var(--mu); text-align: center; }

/* Au toucher : pas de flash bleu sur les pastilles */
.legend button, .vleg button, .grp button, .freset, .hemi2 .seat { -webkit-tap-highlight-color: transparent; }
@media (hover: none) { .tip { display: none; } }

/* Pied de page aux couleurs de l'ancienne banderole (pêche) */
.foot { background: var(--pe); color: var(--in); border-top: 0; border-radius: 26px; padding: 20px 24px; margin: 28px 0 24px; flex-direction: column; align-items: center; text-align: center; line-height: 1.5; }
.foot p { max-width: 75ch; }
.foot a { color: var(--in); }
.foot #foot-date { color: var(--mu); font-size: 12.5px; }

/* Votation : boutons vers le vote de chaque chambre, Swissvotes en pilule, bouton Détail vert clair */
.avis div { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.vbtn { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 99px; background: var(--li); color: var(--vi-d); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; white-space: nowrap; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.vbtn:hover { background: var(--pierre); border-color: var(--vi); }
.olinks .lm { font-size: 12px; }
.dbtn { background: var(--pierre); color: var(--oui-t); -webkit-tap-highlight-color: transparent; }
.dbtn:hover { background: var(--pierre); }

.avis { grid-template-columns: 1fr auto auto; align-items: center; gap: 6px 8px; }
.avis div { display: contents; }
.avis .dd { justify-self: end; }
.olinks a.lm { color: var(--non-t); }
.olinks a.lm:hover { color: var(--non-t); }

/* Tableau : les filtres estompent au lieu de retirer */
.bd tr.off th, .bd tr.off td, .bd .off { opacity: .25; transition: opacity .15s; }
.legend button, .vleg button { touch-action: manipulation; }

/* Flèche diagonale des liens et boutons */
.arw { width: 1em; height: 1em; flex-shrink: 0; display: inline-block; vertical-align: -0.14em; margin-left: .3em; transition: transform .15s; }
a:hover > .arw, a:hover .btn > .arw, a:focus-visible .arw { transform: translate(2px, -2px); }
.lm, .vbtn, .hlist .t a.hv { gap: 0; }
.hlist .hv svg:not(.arw) { margin-right: 6px; }
.hlist .hv .arw { width: 1em; height: 1em; }
.btn > .arw { margin-left: 0; }

/* Cartes de dates cliquables vers le calendrier */
a.dcard { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
a.dcard:hover { transform: translateY(-2px); box-shadow: none; }
.dlink { display: inline-flex; align-items: center; margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--vi-d); }
/* Calendrier politique */
.cal-hero { background: var(--li); border-radius: 32px; padding: 28px 30px; margin: 14px 0 18px; }
.cal-hero h1 { font-family: var(--fd); font-weight: 800; font-size: clamp(30px, 5vw, 48px); line-height: 1.05; margin: 0 0 8px; }
.cal-hero p { margin: 0; max-width: 60ch; }
.cal-box, .cal-list, .cal-src { margin-bottom: 18px; }
.cal-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-tabs { display: inline-flex; background: var(--cr); border-radius: 99px; padding: 4px; gap: 2px; }
.cal-tabs button { border: 0; background: transparent; border-radius: 99px; padding: 6px 16px; font: inherit; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cal-tabs button[aria-pressed="true"] { background: var(--vi); color: #fff; }
.cal-lg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--mu); }
.cal-lg span { display: inline-flex; align-items: center; gap: 6px; }
.key { width: 14px; height: 14px; border-radius: 5px; display: inline-block; flex-shrink: 0; }
.key.ord { background: var(--vi); } .key.spe { background: #9cc4dc; } .key.vote { background: var(--rouge); border-radius: 50%; } .key.elect { background: var(--in); border-radius: 50%; } .key.today { background: #fff; box-shadow: inset 0 0 0 2px #d04846; border-radius: 50%; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 22px; }
.month h2 { font-family: var(--fd); font-size: 15px; font-weight: 800; margin: 0 0 6px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.days span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; }
.days .dow { color: var(--mu); font-weight: 700; font-size: 11px; aspect-ratio: auto; padding-bottom: 2px; }
.days .we { color: #a3acb4; }
.days .ord { background: var(--vi); color: #fff; font-weight: 700; }
.days .spe { background: #9cc4dc; color: var(--in); font-weight: 700; }
.days .vote { background: var(--rouge); color: var(--in); font-weight: 800; border-radius: 50%; }
.days .elect { background: var(--in); color: #fff; font-weight: 800; border-radius: 50%; }
.days .today { box-shadow: inset 0 0 0 2px #d04846; font-weight: 800; }
.cal-list h2, .cal-src h2 { font-family: var(--fd); font-weight: 800; font-size: 22px; margin: 0 0 10px; }
.crow { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: start; padding: 12px 4px; border-top: 1px solid var(--line); }
.crow.past { opacity: .5; }
.cdate { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.ctitle { font-weight: 700; }
.csub { font-size: 13.5px; color: var(--mu); }
.csub ul { margin: 4px 0 0; padding-left: 18px; }
.crow .vbtn { margin-top: 6px; }
.cpill { font-size: 12.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; white-space: nowrap; background: var(--cr); color: var(--mu); }
.cpill.future { background: var(--li); color: var(--vi-d); } .cpill.now { background: var(--pierre); color: var(--oui-t); }
.cnote { font-size: 13px; color: var(--mu); margin: 10px 0 0; }
.cal-src ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
@container (max-width: 600px) { .crow { grid-template-columns: 1fr auto; } .crow > div { grid-column: 1 / -1; grid-row: 2; } .cal-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* Accueil : bloc bleu environ 10 % moins haut */
.hero { padding: 3.6cqi 4cqi; }
.hero .urn { max-width: 265px; }
.hero .bubble { margin-top: 14px; }
@container (max-width: 860px) { .hero { padding: 24px 22px; gap: 10px; } .hero .urn { max-width: 195px; } }

/* Calendrier : session spéciale nettement distincte (lilas en pointillés) de la session ordinaire (bleu plein) */
.key.spe { background: var(--pierre); box-shadow: inset 0 0 0 2px var(--in); }
.days .spe { background: var(--pierre); color: var(--in); box-shadow: inset 0 0 0 1.5px var(--in); outline: 1.5px dashed var(--in); outline-offset: -1.5px; box-shadow: none; }
.days .ord { background: var(--in); }
.key.ord { background: var(--in); }
.key.spe { box-shadow: none; outline: 1.5px dashed var(--in); outline-offset: -1.5px; }

/* Accueil sur téléphone : l'urne entre le texte et la bulle */
@container (max-width: 860px) {
  .hero > div:first-child { display: contents; }
  .hero h1 { order: 1; } .hero p { order: 2; margin-top: 0; } .hero .urn { order: 3; margin: 2px 0; } .hero .bubble { order: 4; margin-top: 0; justify-self: stretch; }
}

/* « Tout réafficher » dans la rangée des partis */
.legend .freset { padding: 4px 14px; background: var(--li); color: var(--vi-d); text-decoration: none; }
.legend .freset[hidden], .hint[hidden] { display: none; }
.hemi2 .seat.out { opacity: .3; transition: opacity .2s; }
.hemi2 .seat.out.dim { opacity: .08; }
/* Accueil sur téléphone : urne plus proche du texte, carré bleu plus compact */
@container (max-width: 860px) { .hero { padding: 20px 20px 18px; gap: 8px; } .hero .urn { max-width: 140px; margin: 0; } .hero h1 { font-size: clamp(34px, 9.5cqi, 60px); } .hero p { font-size: 16px; } }
.hero .urn { max-width: 225px; } @container (max-width: 860px) { .hero .urn { max-width: 140px; } }

/* Le menu des thèmes (libellés longs) ne déborde plus de la carte */
.field { min-width: 0; max-width: 100%; }
.field select { width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }

/* Votations : dans une carte étroite (ordinateur, 4 colonnes), le nom de la chambre passe sur sa propre ligne */
.ocard { container-type: inline-size; }
@container (max-width: 400px) {
  .avis { grid-template-columns: 1fr auto; row-gap: 4px; }
  .avis .dt { white-space: nowrap; }
  .avis .dt.w { grid-column: 1 / -1; margin-top: 4px; }
  .avis span:empty { display: none; }
  .avis .vbtn { justify-self: start; }
  .avis .dd { grid-column: 2; }
}

/* Rangée de votations : cartes de même hauteur, contenu qui ne déborde pas dans les cartes étroites */
.cards4 { align-items: stretch; }
.ocard { align-self: stretch; }
.avis { grid-template-columns: minmax(0, 1fr) auto auto; }
@container (max-width: 400px) { .avis { grid-template-columns: minmax(0, 1fr) auto; } }
@container (max-width: 260px) {
  .avis .dt { white-space: normal; }
  .avis .vbtn { font-size: 11px; padding: 3px 8px; }
  .avis .dd .sc { font-size: 11.5px; }
  .avis .yn { padding-inline: 7px; }
}

/* Détail des votations : panneau large sous la rangée de cartes */
.ocard.sel { box-shadow: inset 0 0 0 2px var(--vi), var(--sh-s); }
.ocard .dbtn[aria-expanded="true"] { background: var(--yes); color: #fff; }
.opanel { grid-column: 1 / -1; background: var(--card); border-radius: 22px; padding: 18px 20px; box-shadow: var(--sh-s); border-top: 4px solid var(--vi); display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.opanel[hidden] { display: none; }
.ophead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ophead .tag { background: var(--pe); }
.ophead h3 { font-family: var(--fd); font-size: 19px; flex: 1 1 260px; margin: 0; }
.ophead .ox { margin: 0; }
.ophead .ox i { transform: rotate(180deg); }
.opanel .odet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 32px; border-top: 1px solid var(--line); padding-top: 12px; }
.opanel .oc1, .opanel .oc2 { display: flex; flex-direction: column; gap: 8px; }
.opanel .avis { grid-template-columns: max-content auto 1fr; column-gap: 12px; }
.opanel .avis .dd { justify-self: start; }
.opanel .avis .dt { font-size: 14px; }
.opanel .mot { font-size: 12.5px; }
@container (max-width: 820px) { .opanel .odet { grid-template-columns: 1fr; } .opanel .avis { grid-template-columns: minmax(0, 1fr) auto auto; } .opanel .avis .dd { justify-self: end; } }
.opanel .rec { font-weight: 800; margin-top: 4px; }
@container (max-width: 560px) { .opanel .ophead { display: none; } .opanel .odet { border-top: 0; padding-top: 0; } .opanel { margin-top: -4px; } }

.olinks { align-items: center; }
.olinks .srcnote { margin: 0; font-size: 12px; flex: 1 1 220px; line-height: 1.4; }
.vinfo .links .vbtn.other { font-size: 12.5px; padding: 3px 12px; }

/* Bande du haut (logo, menu, langues) fixe aussi sur téléphone */
html { scroll-padding-top: calc(var(--toph, 0px) + 10px); }
.top { transition: box-shadow .2s; }
.top.stuck { box-shadow: 0 1px 0 var(--line); }
@container (max-width: 760px) {
  .top { position: sticky; top: 0; padding: 10px 0 8px; gap: 8px 12px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); padding-top: max(10px, env(safe-area-inset-top, 0px)); }
  .logo { font-size: 20px; }
  .menu { margin-inline: -4px; }
  .menu a { padding: 6px 12px; font-size: 13.5px; }
}
/* Retour à l'accueil : un vrai bouton */
.back { align-items: center; background: var(--card); color: var(--in); padding: 7px 16px 7px 12px; border-radius: 99px; box-shadow: var(--sh-s); font-weight: 800; -webkit-tap-highlight-color: transparent; }
.back:hover { color: var(--vi-d); box-shadow: 0 4px 0 rgba(28,42,54,.14); }

@container (max-width: 760px) { .menu { position: relative; } }
.ocard .dbtn[aria-expanded="true"] { background: var(--vi); color: #fff; } .ocard .dbtn[aria-expanded="true"]:hover { background: var(--vi-d); }
/* Mode couleurs adaptées (daltonisme) */
.hhead .cbtn { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--vi); background: #fff; color: var(--vi); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hhead .cbtn svg { width: 18px; height: 18px; }
.hhead .cbtn[aria-pressed="true"] { background: var(--vi); color: #fff; }
body.cb .vleg i.a::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; border-radius: 2px; background: #3c4650; }
.vleg i.x::before, .vleg i.x::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 1.6px; border-radius: 2px; background: #6b737b; transform: rotate(45deg); }
.vleg i.x::after { transform: rotate(-45deg); }
body.cb { --yes: #0072B2; --no: #D55E00; --abs: #b9b9b9; --absent: #ece9e2; }
body.cb .bd td.y { color: var(--oui-t); } body.cb .bd td.n { color: var(--non-t); }
body.cb .pos.Y { background: var(--pierre); color: var(--oui-t); } body.cb .pos.N { background: var(--pierre); color: var(--non-t); }
body.cb .outc .y, body.cb .mot em.oui { color: var(--oui-t); } body.cb .outc .n, body.cb .mot em.non { color: var(--non-t); }
body.cb .res.ok { background: var(--pierre); color: var(--oui-t); } body.cb .res.ko { background: var(--pierre); color: var(--non-t); }
.dbtn i { display: inline-flex; } .dbtn i .arw { width: 15px; height: 15px; }
.hemi2 .abl, .vleg .cbonly { display: none; } body.cb .hemi2 .abl { display: inline; } body.cb .vleg .cbonly { display: inline; margin-left: -3px; }

/* ===== Pour les néophytes ===== */
.share { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; background: var(--card); color: var(--vi-d); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.share:hover { background: var(--li); border-color: var(--vi); }
.share .lnk { width: 14px; height: 14px; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--in); color: #fff; font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 99px; box-shadow: var(--sh); z-index: 60; transition: opacity .35s; }
.toast.go { opacity: 0; }
.mshare { margin: 8px 0 0; }
.canl { text-decoration: none; display: inline-flex; align-items: center; gap: 5px; vertical-align: bottom; border-bottom: 1px dashed rgba(28,42,54,.35); }
.canl:hover { color: var(--vi); }
.mflag { width: 16px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.official { margin: 4px 0 0; font-size: 13px; color: var(--mu); }
.mhemi { display: block; width: 100%; max-width: 520px; margin: 0 auto; }
.pick { border: 0; border-radius: 22px; padding: 16px 10px; font-family: var(--fd); font-size: 20px; font-weight: 800; cursor: pointer; color: #fff; box-shadow: var(--sh-s); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pick.yes { background: var(--yes); } .pick.no { background: var(--no); }
.pick:hover { transform: translateY(-2px); }

/* Accueil : deux portes d'entrée */
.starts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.start { border-radius: 28px; padding: 22px 24px; text-decoration: none; box-shadow: var(--sh); display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; overflow: hidden; }
.start:hover { transform: translateY(-2px); }
.start h2 { font-size: 26px; } .start p { margin: 6px 0 14px; }
.s-jeu { background: var(--li); } .s-can { background: var(--pe); }
.start .mhemi.deco { width: 150px; }
.flagmos { display: grid; grid-template-columns: repeat(3, 34px); gap: 6px; transform: rotate(4deg); }
.flagmos img { width: 34px; height: 34px; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
@container (max-width: 760px) { .starts { grid-template-columns: 1fr; } .start .mhemi.deco { width: 110px; } .flagmos { grid-template-columns: repeat(3, 26px); gap: 4px; } .flagmos img { width: 26px; height: 26px; } }

/* Le pari du jour */
.bet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.bet-head .bt { font-family: var(--fd); font-weight: 800; color: var(--vi); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.bet-sc { display: flex; gap: 6px; } .bet-sc .pill { background: var(--me); font-size: 13px; padding: 3px 10px; } .bet-sc .fire { background: var(--pe); }
.bet-q { font-family: var(--fd); font-size: 24px; font-weight: 800; line-height: 1.2; margin: 12px 0 0; }
.bet-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: center; margin-top: 14px; }
.bet-lg { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 12.5px; color: var(--mu); margin-top: 8px; }
.bet-lg span { display: inline-flex; align-items: center; gap: 5px; } .bet-lg i { width: 10px; height: 10px; border-radius: 50%; }
.step { font-size: 12.5px; font-weight: 800; color: var(--mu); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
.bet-btns, .g-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guess { text-align: center; } .guess b { font-family: var(--fd); font-size: 54px; line-height: 1; color: var(--vi); } .guess span { color: var(--mu); font-weight: 700; }
.gR { width: 100%; margin: 14px 0 2px; accent-color: var(--vi); height: 28px; }
.gscale { display: flex; justify-content: space-between; font-size: 12px; color: var(--mu); }
.joker { display: block; margin: 14px auto 0; border: 1px solid var(--line); background: var(--card); color: var(--vi-d); border-radius: 99px; padding: 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.joker:hover { border-color: var(--vi); }
.pchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.pchip { display: inline-flex; align-items: center; gap: 5px; background: var(--cr); border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.pchip i { width: 10px; height: 10px; border-radius: 50%; } .pchip b.Y { color: var(--oui-t); } .pchip b.N { color: var(--non-t); }
body.cb .pchip b.Y { color: var(--oui-t); } body.cb .pchip b.N { color: var(--non-t); }
.bet-play .gGo { display: flex; margin: 16px auto 0; }
.mine { text-align: center; color: var(--mu); margin: 4px 0 0; font-size: 14px; }
.bet-res { text-align: center; margin-top: 10px; }
.gain { display: inline-block; font-family: var(--fd); font-weight: 800; font-size: 22px; color: var(--vi-d); background: var(--me); border-radius: 99px; padding: 2px 14px; transform: rotate(-3deg); animation: pop .4s ease-out; }
@keyframes pop { from { transform: scale(.4) rotate(-3deg); opacity: 0; } }
.verdict { font-weight: 700; font-size: 17px; margin: 10px 0 0; } .verdict b.Y { color: var(--oui-t); } .verdict b.N { color: var(--non-t); }
body.cb .verdict b.Y { color: var(--oui-t); } body.cb .verdict b.N { color: var(--non-t); }
.bet-end, .g-end { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
@container (max-width: 760px) { .bet-grid { grid-template-columns: 1fr; gap: 14px; } .bet-q { font-size: 20px; } }

/* Le saviez-vous ? */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { --fc: var(--vi); background: var(--card); border-radius: 24px; padding: 18px 20px; box-shadow: var(--sh-s); border-top: 8px solid var(--fc); text-decoration: none; display: block; }
a.fact:hover { transform: translateY(-2px); }
.fact .big { font-family: var(--fd); font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--vi); }
.fact p { margin: 8px 0; } .fact small { color: var(--mu); font-size: 12.5px; }
@container (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Qui me représente ? */
.flags { display: grid; grid-template-columns: repeat(13, 1fr); gap: 8px; }
.flags a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; font-size: 11.5px; font-weight: 800; color: var(--mu); padding: 6px 2px; border-radius: 14px; -webkit-tap-highlight-color: transparent; }
.flags img { width: 100%; max-width: 52px; aspect-ratio: 1; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.flags a:hover { background: var(--card); color: var(--in); }
.flags a[aria-current] { background: var(--vi); color: #fff; box-shadow: var(--sh-s); }
@container (max-width: 760px) { .flags { grid-template-columns: repeat(7, 1fr); gap: 4px; } }
.pick-hint { text-align: center; color: var(--mu); margin: 26px 0; font-weight: 600; }
.cout .box { margin-top: 18px; }
.chead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.chead .cflag { width: 64px; height: 64px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.chead h2 { font-size: 30px; } .chead p { margin: 0; color: var(--mu); } .chead .share { margin-left: auto; }
.csec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--mu); }
.seatline { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 4px; } .seatline i { width: 16px; height: 16px; border-radius: 50%; }
.explain { color: var(--mu); font-size: 14px; margin: 6px 0 12px; }
.mpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.mpc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--cr); text-decoration: none; font-weight: 700; }
.mpc:hover { background: var(--li); }
.mpc i { flex: none; width: 14px; height: 14px; border-radius: 50%; } .mpc span { flex: 1; line-height: 1.25; }
.mpc small { display: block; color: var(--mu); font-weight: 600; font-size: 12.5px; } .mpc .arw { color: var(--vi); }

/* Avec qui je vote ? */
.game { padding: 0; overflow: hidden; max-width: 760px; margin: 0 auto; }
.g-intro, .g-body { padding: 26px 24px; text-align: center; }
.g-intro h2 { font-size: 30px; margin-top: 12px; } .g-intro p { color: var(--mu); max-width: 46ch; margin: 8px auto 0; }
.g-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 16px 0 20px; }
.g-tags span { background: var(--li); color: var(--vi-d); border-radius: 99px; padding: 3px 12px; font-size: 13px; font-weight: 800; }
.btn.big { font-size: 16px; padding: 12px 24px; }
.gdots { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.gdots i { width: 26px; height: 6px; border-radius: 3px; background: var(--line); } .gdots i.done { background: var(--vi); } .gdots i.now { background: var(--me); box-shadow: inset 0 0 0 2px #e6b75c; }
.g-icon { font-size: 44px; line-height: 1; }
.g-q { font-size: 26px; line-height: 1.2; margin: 12px auto 0; max-width: 28ch; } .g-q.sm { font-size: 19px; margin-top: 0; max-width: none; }
.said { display: block; font-size: 15px; margin-top: 4px; } .said.Y { color: var(--oui-t); } .said.N { color: var(--non-t); }
body.cb .said.Y { color: var(--oui-t); } body.cb .said.N { color: var(--non-t); }
.g-ans { max-width: 440px; margin: 22px auto 0; }
.g-skip { border: 0; background: none; color: var(--mu); text-decoration: underline; margin-top: 14px; cursor: pointer; font-size: 14px; }
.mhemi.fb { margin-top: 14px; }
.g-count b { font-family: var(--fd); font-size: 46px; color: var(--vi); line-height: 1; display: block; } .g-count span { color: var(--mu); font-weight: 700; }
.g-camp { display: inline-block; margin-top: 12px; border-radius: 99px; padding: 6px 16px; font-weight: 800; }
.g-camp.win { background: var(--me); } .g-camp.lose { background: var(--ci); }
.g-res { margin: 10px 0 0; font-weight: 600; }
.live { font-size: 14px; color: var(--mu); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 14px 0 18px; }
.live span { display: inline-flex; align-items: center; gap: 5px; color: var(--in); } .live i { width: 10px; height: 10px; border-radius: 50%; }
.twin { --tc: var(--vi); background: var(--li); border-top: 10px solid var(--tc); text-align: center; padding: 22px; }
.twin small { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--vi-d); }
.tw-n { font-family: var(--fd); font-size: 44px; font-weight: 800; line-height: 1.1; } .tw-p { font-weight: 700; color: var(--mu); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; max-width: 420px; margin: 0 auto; }
.podium > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.podium .lbl { font-size: 13px; font-weight: 800; } .podium .bar { width: 100%; border-radius: 12px 12px 4px 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); } .podium .pc { font-weight: 800; color: var(--mu); font-size: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 8px; }
.badges span { background: var(--cr); border-radius: 18px; padding: 10px 14px; font-size: 13px; color: var(--mu); } .badges b { display: block; font-family: var(--fd); font-size: 20px; color: var(--in); }
.game h3 { margin-top: 20px; font-size: 20px; }
.flagrow { display: flex; gap: 4px; overflow-x: auto; padding: 4px 2px 8px; margin-top: 8px; scrollbar-width: thin; }
.flagrow button { flex: none; border: 0; background: var(--cr); border-radius: 10px; padding: 3px; cursor: pointer; display: inline-flex; align-items: center; }
.flagrow button:first-child { padding: 3px 12px; border-radius: 99px; font-weight: 800; font-size: 13px; }
.flagrow img { width: 26px; height: 26px; border-radius: 6px; }
.flagrow button.on { background: var(--vi); color: #fff; }
.closest { list-style: none; padding: 0; margin: 8px 0 0; text-align: left; display: grid; gap: 6px; }
.closest a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--cr); border-radius: 14px; text-decoration: none; font-weight: 700; }
.closest a:hover { background: var(--li); } .closest i { flex: none; width: 12px; height: 12px; border-radius: 50%; } .closest span { flex: 1; line-height: 1.25; }
.closest small { display: block; color: var(--mu); font-weight: 600; font-size: 12.5px; } .closest b { color: var(--vi); }

/* Quiz civique */
.civwrap { margin-top: 18px; } .civ-in { margin: 0 0 12px; }
.cq-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; } .cq-bar i { display: block; height: 100%; background: var(--vi); transition: width .3s; }
.cq-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--mu); font-weight: 700; margin-top: 10px; }
.cq-q { font-size: 21px; margin: 10px 0 12px; }
.cq-opts { display: grid; gap: 8px; }
.cq-o { text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 14px; font-weight: 700; cursor: pointer; }
.cq-o:hover:not(:disabled) { border-color: var(--vi); }
.cq-o:disabled { cursor: default; } .cq-o.good { border-color: var(--yes); background: var(--pierre); } .cq-o.bad { border-color: var(--no); background: var(--pierre); }
body.cb .cq-o.good { background: var(--pierre); } body.cb .cq-o.bad { background: var(--pierre); }
.why { background: var(--cr); border-radius: 16px; padding: 12px 14px; margin: 12px 0; }
.cq-step { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--vi); font-weight: 800; padding: 0; margin-left: 4px; cursor: pointer; text-decoration: underline; }
.cq-step .arw { width: 14px; height: 14px; }
.cq-score { font-family: var(--fd); font-size: 56px; font-weight: 800; color: var(--vi); text-align: center; margin-top: 12px; }
.civwrap .verdict { text-align: center; }
/* Menu trop long pour la ligne (italien, allemand) : il défile, et un fondu indique la suite */
.menu.fl { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.menu.fr { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.menu.fl.fr { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
@container (min-width: 761px) and (max-width: 1100px) { .menu a { font-size: 13px; padding: 7px 8px; } .logo { font-size: 20px; } }
@container (min-width: 761px) { .menu { gap: 0; min-width: 0; } .menu a { padding: 7px 8px; font-size: 13.5px; } html[lang="it"] .menu a { padding-inline: 5px; } .top { gap: 12px 14px; flex-wrap: nowrap; } .logo, .langs { flex: none; } }
.lwa { display: inline-flex; transition: transform .2s; } #lw-t[aria-expanded="true"] .lwa { transform: rotate(180deg); }
.vleg button[hidden] { display: none; }
.bet-q { margin-top: 0; }
.bet-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 4px; }
.bet-meta .official { margin: 0; flex: 1 1 260px; }
.jeu-h { justify-content: center; text-align: center; flex-direction: column; gap: 10px; }
.cbtn { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--vi); background: #fff; color: var(--vi); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cbtn svg { width: 18px; height: 18px; } .cbtn[aria-pressed="true"] { background: var(--vi); color: #fff; }
.game .g-body { padding: 18px 20px 20px; }
.game .gdots { margin-bottom: 12px; }
.mhemi.fb { max-width: 340px; margin-top: 8px; }
.game .g-count b { font-size: 38px; }
.game .g-camp { margin-top: 8px; padding: 4px 14px; }
.game .g-res { margin-top: 6px; }
.game .live { margin: 8px 0 12px; }
.game .g-icon { font-size: 36px; }
.game .g-q { font-size: 24px; margin-top: 8px; } .game .g-q.sm { font-size: 18px; margin-top: 0; }
.game .g-ans { margin-top: 16px; }
@container (max-width: 760px) { .mhemi.fb { max-width: 280px; } .game .g-q { font-size: 21px; } }
.chambers .chrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chambers .chrow .sticker { position: static; transform: rotate(-2deg); }
:root { --ro: #efede7; }
.dcard:nth-child(2), .s-can { background: var(--ro); }
.gwrap { position: relative; max-width: 760px; margin: 0 auto; }
.gwrap > .cbtn { position: absolute; top: 14px; right: 16px; z-index: 2; }
@container (max-width: 760px) { .gwrap > .cbtn { position: static; display: flex; margin: 0 0 10px auto; } }
.dcard:nth-child(2) { background: var(--pierre); } .s-can { background: var(--pierre); }
:root { --mi: #efede7; }
.chambers a:nth-child(2), .g-camp.lose { background: var(--mi); } .dcard:nth-child(1) { background: var(--pierre); }
.s-can { background: var(--pierre); }
.mhemi.mine circle { transition: opacity .25s; } .mhemi.mine circle.out { opacity: .12; }
.mhemi.mine circle.out { opacity: .25; } .mhemi.mine circle.hl { stroke: var(--in); stroke-width: 1.2px; }
/* En-tête des explorateurs : même fond que la carte de la chambre sur l'accueil */
.chamb-head { border-radius: 28px; padding: 22px 26px 18px; margin: 18px 0 22px; box-shadow: var(--sh); }
.chamb-head.cn { background: var(--me); } .chamb-head.ce { background: var(--mi); }
.chamb-head .ph { margin-top: 0; } .chamb-head .lede { margin-bottom: 0; }
@container (max-width: 560px) { .chamb-head { padding: 18px 18px 14px; } }
.chamb-head .ph { width: 100%; }
/* Résultat du jeu sur ordinateur : parti jumeau et hémicycle à gauche, élu·e·s proches à droite */
@container (min-width: 860px) {
  .gwrap:has(.g-cols), .gwrap:has(.g-cols) .game { max-width: 1120px; }
  .game .g-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .game .g-right > h3:first-child { margin-top: 0; }
}
/* Nom du groupe ou du canton agrandi (téléphone) */
.zlab { position: absolute; top: 4px; left: 4px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; background: var(--card); border-radius: 99px; padding: 6px 14px 6px 10px; font-weight: 800; font-size: 13px; box-shadow: var(--sh-s); pointer-events: none; }
.zlab[hidden] { display: none; }
.zlab i { width: 12px; height: 12px; border-radius: 50%; }
.zlab img { width: 16px; height: 16px; border-radius: 3px; }
/* Très petits téléphones (320 px) : calendrier et boutons de pari sans débordement, aussi en allemand */
.days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bet-btns, .g-ans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@container (max-width: 600px) { .cal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .pick { font-size: 16px; padding: 14px 6px; } .days { font-size: 11px; } }
/* Mentions et confidentialité */
.legal { margin-bottom: 18px; font-size: 15px; line-height: 1.6; }
.legal h2 { font-family: var(--fd); font-weight: 800; font-size: 22px; margin: 0 0 10px; }
.legal p { margin: 0 0 10px; max-width: 75ch; } .legal p:last-child { margin-bottom: 0; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; max-width: 75ch; }
.legal a { color: var(--vi-d, var(--vi)); font-weight: 600; overflow-wrap: anywhere; }
#p-mentions .updated { color: var(--mu); font-size: 13px; margin: 4px 0 8px; }
/* Accueil : grand bouton vers la prochaine votation (s'ouvre dans un nouvel onglet) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vbig { margin-top: 34px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 34px; padding: 28px 32px; border-radius: 32px; background: var(--card); color: var(--in); text-decoration: none; box-shadow: var(--sh), inset 0 0 0 2px var(--li); border-top: 6px solid var(--vi); transition: transform .15s, box-shadow .15s; }
.vbig:hover { transform: translateY(-2px); box-shadow: none, inset 0 0 0 2px var(--li); }
.vbig:active { transform: translateY(2px); box-shadow: var(--sh-s), inset 0 0 0 2px var(--li); }
.vb-l { display: flex; flex-direction: column; gap: 4px; }
.vb-k { font-family: var(--fd); font-weight: 800; font-size: clamp(28px, 4cqi, 42px); line-height: 1.05; }
.vb-d { font-size: 19px; font-weight: 700; color: var(--vi-d); }
.vb-n { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; font-weight: 600; margin-top: 6px; }
.vb-n .pill { background: var(--pe); color: var(--in); font-weight: 800; padding: 3px 12px; }
.vb-o { list-style: none; margin: 0; padding: 0 0 0 30px; border-left: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.vb-o li { display: flex; gap: 8px; } .vb-o li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .45em; border-radius: 50%; background: var(--vi); }
.vb-go { display: inline-flex; align-items: center; gap: 8px; background: var(--in); color: #fff; border-radius: 99px; padding: 14px 22px; font-weight: 800; font-size: 16px; white-space: nowrap; box-shadow: var(--sh-s); }
.vbig:hover .vb-go { background: var(--vi-d); }
@container (max-width: 980px) { .vbig { grid-template-columns: minmax(0, 1fr) auto; } .vb-o { grid-column: 1 / -1; grid-row: 2; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); } }
@container (max-width: 560px) { .vbig { grid-template-columns: 1fr; padding: 22px 20px; gap: 14px; border-radius: 26px; } .vb-o { grid-row: auto; } .vb-go { justify-content: center; white-space: normal; } }
/* Page de la prochaine votation */
.vt-hero { background: var(--li); }
.vt-hero .vt-date { font-family: var(--fd); font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--vi-d); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.vt-hero .pill { background: var(--pe); color: var(--in); font-family: var(--fb); font-size: 14px; font-weight: 800; padding: 3px 12px; }
.vt-list { display: grid; gap: 16px; }
.opanel.vt { padding: 20px 22px; gap: 0; }
.vt .ophead .dbtn { margin: 0 0 0 auto; align-self: center; }
.vt-det { margin-top: 14px; } .vt-det[hidden] { display: none; }
.vt .odet { display: grid; }
.vt .ophead h2 { font-family: var(--fd); font-size: 22px; line-height: 1.2; flex: 1 1 260px; margin: 0; }
.vt-n { width: 30px; height: 30px; border-radius: 50%; background: var(--vi); color: #fff; font-weight: 800; display: inline-grid; place-items: center; flex: none; }
.vt-off { margin-top: 18px; } .vt-off h2 { font-size: 20px; margin: 0 0 6px; } .vt-off p { margin: 0 0 10px; }
@container (max-width: 560px) { .opanel.vt { margin-top: 0; padding: 18px 16px; } .vt .ophead { display: flex; } .vt .odet { border-top: 1px solid var(--line); padding-top: 12px; } .vt .ophead h2 { font-size: 19px; flex-basis: 100%; } }
.vbig + .dates { margin-top: 24px; }
/* Le bouton actif du menu et celui de la langue ne sont jamais rognés */
.menu { position: relative; padding: 4px; margin-block: -4px; scroll-padding-inline: 4px; }
.langs button:focus-visible { outline: 2px solid var(--in); outline-offset: 1px; }
.menu a:focus-visible { outline-offset: -1px; }
/* Bloc votation : fond jaune bien visible, date en grand */
.vbig { background: var(--pierre); border-top: 0; box-shadow: none; }
.vbig:hover { box-shadow: none; }
.vbig:active { box-shadow: none; }
.vb-k { font-size: clamp(26px, 3.2cqi, 34px); }
.vb-d { font-family: var(--fd); font-weight: 800; font-size: clamp(34px, 5cqi, 54px); line-height: 1.05; color: var(--in); }
.vb-n .pill { background: #fff; }
.vb-o { border-color: rgba(28,42,54,.25); }
.vb-o li::before { background: var(--in); }
@container (max-width: 980px) { .vb-o { border-top-color: rgba(28,42,54,.25); } }
.vbig { grid-template-columns: minmax(0, 1fr) auto; }
.vb-o { grid-column: 1 / -1; grid-row: 2; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
@container (max-width: 760px) { .vb-o { grid-template-columns: 1fr; } }
@container (max-width: 560px) { .vbig { grid-template-columns: 1fr; } .vb-o { grid-row: auto; } }
/* Même bleu clair que l'en-tête de la page votation */
.vbig { background: var(--li); box-shadow: var(--sh); }
.vbig:hover { box-shadow: none; }
.vbig:active { box-shadow: var(--sh-s); }
.vb-d { color: var(--vi-d); }
.vb-n .pill { background: var(--pe); }
/* Avec « Prochaine votation », le menu passe sur sa propre ligne, sous le logo et les langues */
@container (min-width: 761px) { .top { flex-wrap: wrap; padding-bottom: 10px; row-gap: 6px; } .menu { order: 3; width: 100%; margin-left: -12px; margin-right: -4px; } .langs { margin-left: auto; } }
@container (min-width: 761px) { .menu { margin-left: -4px; } .menu a, html[lang="it"] .menu a { font-size: 14px; padding: 7px 12px; } }
@container (min-width: 761px) and (max-width: 1100px) { .menu a, html[lang="it"] .menu a { font-size: 13.5px; padding: 7px 9px; } }
/* Page votation : titre cliquable, boutons « Voir le vote » bien visibles, avis du Parlement aligné */
.vt .ophead { cursor: pointer; }
.vt .ophead:hover h2 { color: var(--vi-d); }
.vt .vbtn { background: var(--vi); color: #fff; border: 0; font-size: 13px; padding: 6px 14px; box-shadow: var(--sh-s); }
.vt .vbtn:hover { background: var(--vi-d); }
.vt .avis { row-gap: 8px; }
.vt .avis .rec .dt { font-weight: 800; }
.vt .avis .rec .dt, .vt .avis .rec .dd { margin-top: 6px; }
.vt .avis .rec .dt { grid-column: 1; }
@container (max-width: 560px) { .vt .avis { grid-template-columns: minmax(0, 1fr) auto; } .vt .avis .rec .dd { grid-column: 2; } }
/* Étiquettes de la votation en jaune */
.vt .ophead .tag, .vt-hero .pill, .vb-n .pill { background: var(--pierre); }
.vt .ophead .tag { font-size: 15px; padding: 5px 14px; }
.vt .dbtn { background: var(--pierre); color: var(--in); }
.vt .dbtn:hover { background: var(--pierre); }
.vt-hero .pill, .vb-n .pill { background: var(--me); }
/* Compte à rebours en autocollant, comme « 1623 votes » */
.vt-cd { font-size: 16px; line-height: 1.5; color: var(--in); transform: rotate(-2deg); margin-left: 4px; }
.vb-n .vt-cd { margin: 0 6px 0 0; }
/* Objets de la votation sur fond gris clair, bouton rond avec seulement la flèche */
.opanel.vt { background: var(--pierre); }
.vt .mot, .vt .mot.wait { background: #fff; }
.vt .dbtn { width: 40px; height: 40px; padding: 0; justify-content: center; align-items: center; border-radius: 50%; background: #fff; color: var(--in); box-shadow: var(--sh-s); flex: none; }
.vt .dbtn:hover { background: var(--li); }
.vt .dbtn i .arw { width: 20px; height: 20px; }
/* Accueil : compte à rebours collé au-dessus de l'année, texte centré verticalement */
.vbig { padding-block: 26px 30px; }
.vb-l { gap: 0; }
.vb-d { display: inline-flex; flex-direction: column; align-items: flex-end; align-self: flex-start; }
.vb-d .vt-cd { order: -1; margin: 6px -6px -4px 0; font-size: 20px; line-height: 1.4; padding: 5px 15px; transform: rotate(4deg); white-space: nowrap; position: relative; z-index: 1; }
@container (max-width: 560px) { .vb-d .vt-cd { font-size: 17px; margin-right: 0; } }
.vt .dbtn { position: relative; gap: 0; } .vt .dbtn i { display: flex; margin: 0; } .vt .dbtn i .arw { margin: 0; display: block; }
/* Avis : bouton « Voir le vote » à gauche, nom du conseil au milieu, oui/non centré à droite */
.vt .avis { grid-template-columns: max-content max-content 1fr; column-gap: 16px; }
.vt .avis > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; }
.vt .avis > div > .vbtn, .vt .avis > div > span:not(.dt):not(.dd) { grid-column: 1; grid-row: 1; justify-self: start; }
.vt .avis > div > .dt, .vt .avis .rec .dt { grid-column: 2; grid-row: 1; margin: 0; }
.vt .avis > div > .dd, .vt .avis .rec .dd { grid-column: 3; grid-row: 1; justify-self: center; margin: 0; }
.vt .avis .rec { margin-top: 6px; }
@container (max-width: 820px) {
  .vt .avis { grid-template-columns: minmax(0, 1fr) auto; }
  .vt .avis > div > .dt, .vt .avis .rec .dt { grid-column: 1; }
  .vt .avis > div > .dd, .vt .avis .rec .dd { grid-column: 2; justify-self: end; }
  .vt .avis > div > .vbtn { grid-row: 2; margin-top: 4px; }
  .vt .avis > div > span:empty { display: none; }
}
.vt .avis > div > .dd, .vt .avis .rec .dd { justify-self: start; padding-left: 40px; }
@container (max-width: 820px) { .vt .avis > div > .dd, .vt .avis .rec .dd { justify-self: end; padding-left: 0; } .vt .avis > div > .vbtn { margin-bottom: 6px; } }
/* Conseil fédéral en grand sous les deux conseils, Swissvotes et scores plus visibles */
.vt .avis > .cf { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.vt .avis > .cf > .dt { grid-column: 1 / 3; font-family: var(--fd); font-weight: 800; font-size: 28px; line-height: 1.1; }
.vt .avis > .cf > .dd .yn { font-size: 26px; padding: 4px 22px; border-radius: 99px; }
.vt .avis .dd .sc { display: inline-block; margin-left: 22px; font-size: 15px; color: var(--in); font-weight: 600; }
.vt .olinks .lm { font-size: 15px; padding: 7px 16px; }
@container (max-width: 820px) { .vt .avis > .cf > .dt { grid-column: 1; font-size: 22px; } .vt .avis > .cf > .dd .yn { font-size: 20px; padding: 3px 16px; } .vt .avis .dd .sc { margin-left: 12px; } }
/* Compteur en haut à droite de la date, titre et date rapprochés */
.vb-d { display: inline-block; position: relative; }
.vb-d .vt-cd { position: absolute; left: 100%; bottom: 62%; margin: 0 0 0 12px; transform: rotate(6deg); }
.vb-k { margin-bottom: -2px; }
@container (max-width: 760px) { .vb-d { display: flex; flex-direction: column; align-items: flex-start; } .vb-d .vt-cd { position: static; order: 0; margin: 10px 0 0; transform: rotate(-2deg); } }
/* Partis en plus grand, lien Swissvotes en bas à droite */
.vt .mots { gap: 8px; }
.vt .mot { font-size: 15px; padding: 5px 12px 5px 8px; gap: 6px; }
.vt .mot i { width: 13px; height: 13px; }
.vt .oc2 { justify-content: space-between; }
.vt .oc2 .olinks { margin-top: auto; justify-content: flex-end; }
.vt .olinks .lm.sv { gap: 6px; }
.vb-go .arw { margin-left: 4px; } .vbig:hover .vb-go .arw { transform: translate(2px, -2px); }
.vt .olinks .lm.sv .ntab { width: 17px; height: 17px; flex: none; }
/* Noms des conseils centrés entre le bouton et le oui/non */
.vt .avis { grid-template-columns: max-content 1fr max-content; }
.vt .avis > div > .dt { justify-self: center; }
.vt .avis > .cf > .dt { justify-self: start; }
.vt .avis > div > .dd { padding-left: 0; }
.vt .avis > .cf > .dd { justify-self: start; }
@container (max-width: 820px) { .vt .avis { grid-template-columns: minmax(0, 1fr) auto; } .vt .avis > div > .dt { justify-self: start; } .vt .avis > .cf > .dd { justify-self: end; } }
.vt .avis .dd .sc { font-weight: 400; } .vt .avis .dd .sc b { font-weight: 800; }
.lm .ntab { width: 1.05em; height: 1.05em; flex: none; margin-left: .35em; } .lm.sv .ntab { margin-left: 0; }
.btn .ntab { width: 1.1em; height: 1.1em; flex: none; margin-left: .2em; }
.opanel.vt { cursor: pointer; } .vt a { cursor: pointer; }
/* Seule la bande du titre (sur toute la largeur de la carte) ouvre et ferme le détail */
.opanel.vt { cursor: auto; padding: 0 22px; }
.vt .ophead { cursor: pointer; margin: 0 -22px; padding: 20px 22px; border-radius: 22px 22px 0 0; }
.vt-det { margin-top: 0; padding-bottom: 20px; }
@container (max-width: 560px) { .opanel.vt { padding: 0 16px; } .vt .ophead { margin: 0 -16px; padding: 18px 16px; } .vt-det { padding-bottom: 18px; } }

/* Volet « Son vote » mis en avant */
.box.hist.son { background: var(--pierre); }
.son .hlist li { grid-template-columns: 140px 1fr auto; gap: 18px; padding-block: 8px 4px; }
.son .hlist .d { font-size: 19px; padding-top: 4px; }
.son .hlist .t a { font-size: 29px; line-height: 1.25; }
.son .hlist .t small { font-size: 18px; margin: 8px 0 14px; }
.son .hlist .t .lm, .son .hlist .t a.hv { font-size: 17px; padding: 8px 20px; }
.son .hlist .pos { font-size: 23px; padding: 8px 22px; }
@container (max-width: 640px) { .son .hlist li { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; } .son .hlist .t a { font-size: 23px; } .son .hlist .t small { font-size: 16px; } .son .hlist .t .lm, .son .hlist .t a.hv { font-size: 14px; padding: 6px 14px; } .son .hlist .pos { font-size: 18px; padding: 6px 14px; } .son .hlist .d { grid-column: 1; grid-row: 1; align-self: center; padding-top: 0; } .son .hlist .pos { grid-column: 2; grid-row: 1; } .son .hlist .t { grid-column: 1 / -1; grid-row: 2; } }
.son .hlist .t > a:first-child { font-weight: 800; }
.son .pos.Y { background: var(--oui-t); color: #fff; } .son .pos.N { background: var(--non-t); color: #fff; } .son .pos.A { background: var(--mu); color: #fff; } .son .pos.X, .son .pos.P { background: #fff; color: var(--in); }
body.cb .son .pos.Y { background: var(--oui-t); color: #fff; } body.cb .son .pos.N { background: var(--non-t); color: #fff; }
.box.son h2 { font-size: 27px; margin-bottom: 14px; }
@container (max-width: 640px) { .box.son h2 { font-size: 21px; } }
.box.son h2 { display: inline-block; border: 2px solid var(--line); border-radius: 99px; padding: 3px 18px 4px; background: #fff; }

/* Accueil : petit hémicycle en bas à droite de chaque carte, sans en changer la taille */
.chambers a { overflow: hidden; }
.chambers h2, .chambers p, .chambers .chrow { position: relative; z-index: 1; }
.chambers .mini { position: absolute; right: 22px; bottom: 16px; height: 62px; width: auto; opacity: 1; display: block; }
.chambers .mini.ce { height: 50px; }
@container (max-width: 560px) { .chambers .mini { right: 12px; bottom: 14px; height: 38px; } .chambers .mini.ce { height: 32px; } }
@media (max-width: 379px) { .chambers .mini { display: none; } }
.son-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.son-h h2 { margin-bottom: 0 !important; }
/* En-tête : bouton « Couleurs adaptées » à gauche des langues (pastille seule sur petit écran) */
.top > .cbtn { margin-left: auto; flex: none; padding: 6px 12px; box-shadow: var(--sh-s); }
.top > .cbtn + .langs { margin-left: 0; }
@container (max-width: 560px) { .top > .cbtn { font-size: 0; gap: 0; padding: 7px; } .top { column-gap: 10px; } }
@media (max-width: 389px) { .top { column-gap: 6px; } .top .logo { font-size: 17px; } .top > .cbtn { padding: 5px; } .top > .cbtn svg { width: 16px; height: 16px; } .langs button { padding: 2px 7px; } }
/* Couleurs adaptées : tout ce qui restait en vert/rouge passe en bleu/orange */
body.cb .dbtn, body.cb .cpill.now { background: var(--pierre); color: var(--oui-t); } body.cb .dbtn:hover { background: var(--pierre); }
body.cb .pos.A { background: #ececec; color: #3c3c3c; }
body.cb .son .pos.A { background: var(--mu); color: #fff; }
body.cb .days .today { box-shadow: inset 0 0 0 2px var(--no); }
body.cb .key.today { box-shadow: inset 0 0 0 2px var(--no); }
body.cb .lm, body.cb .olinks a.lm { color: var(--non-t); background: var(--pierre); border-color: var(--line); }
body.cb .lm:hover, body.cb .olinks a.lm:hover { color: var(--non-t); background: var(--pierre); border-color: #D55E00; }
body.cb .pc-who.canton i { background: var(--non-t); }
/* Couleurs adaptées : calendrier (palette Okabe-Ito) */
body.cb .days .ord, body.cb .key.ord { background: #0072B2; }
body.cb .days .spe { background: var(--pierre); color: var(--in); outline-color: var(--in); }
body.cb .key.spe { background: var(--pierre); outline-color: var(--in); }
body.cb .days .vote, body.cb .key.vote { background: #E69F00; }
body.cb .days .elect, body.cb .key.elect { background: #000; }
/* Barres oui/non/abst. : contour pour distinguer le vide (absences) du gris des abstentions */
.mix, .vbar { box-sizing: border-box; border: 1.5px solid #b9c2ca; }
/* Votation : note sous les avis pour les initiatives */
.avnote { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--mu); }
/* Détail par groupe : noms de groupes sur une ligne ; sur mobile, la colonne « Contre la majorité » passe sous chaque groupe */
.bd th[scope="row"] { white-space: nowrap; }
@container (max-width: 600px) {
  .bd table, .bd thead, .bd tbody { display: block; min-width: 0; }
  .bd tr { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px 44px 66px; border-bottom: 1px solid var(--line); }
  .bd th, .bd td { border-bottom: 0; padding: 7px 4px; }
  .bd thead th { font-size: 11px; padding-block: 4px; white-space: nowrap; }
  .bd td.dis.none { display: none; }
  .bd caption { display: block; }
  .bd thead th:last-child { display: none; }
  .bd td.dis { grid-column: 1 / -1; padding-top: 0; }
  .bd td.dis::before { content: attr(data-l) " : "; color: var(--mu); }
  html[lang="de"] .bd td.dis::before, html[lang="it"] .bd td.dis::before { content: attr(data-l) ": "; }
}

/* ================= Ajouts de la maquette (inspirés d'Isoloir Commun) ================= */
/* Compte à rebours de la votation, à côté du logo */
.cdv { display: inline-flex; align-items: center; gap: 6px; background: var(--me); color: var(--in); text-decoration: none; border-radius: 99px; padding: 4px 12px 4px 10px; font-size: 12.5px; font-weight: 700; box-shadow: var(--sh-s); white-space: nowrap; }
.cdv b { font-family: var(--fd); font-weight: 800; color: var(--vi-d); font-size: 14px; }
.cdv:hover { transform: translateY(-1px); }

/* Signaler une erreur */
.report { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; background: var(--card); color: var(--mu); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.report:hover { color: var(--in); border-color: var(--mu); }
.report .lnk { width: 14px; height: 14px; }
.vinfo .rep { margin: 14px 0 0; }
.mshare .report { margin-left: 8px; }

/* Vue par canton */
.hemi2 .seat.cfo { opacity: .1; pointer-events: none; }
.hemi2 .seat.cfo.out { opacity: .06; }
.zlab small { font-weight: 700; color: var(--mu); margin-left: 4px; font-size: 12px; }
.hmap.cfon .zlab { background: var(--in); color: #fff; }
.hmap.cfon .zlab small { color: #c9d3db; }
.hmap.cfon .ovw { background: var(--vi); color: #fff; }
.bd caption small { display: block; font-family: var(--fb); font-weight: 600; font-size: 13px; color: var(--mu); margin-top: 2px; }
.bflag { width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px; margin: 0 6px 0 2px; }
.cfbtn { display: inline-flex; align-items: center; border: 0; background: none; padding: 2px 8px 2px 2px; margin: -2px 0; border-radius: 99px; font: inherit; font-weight: 800; cursor: pointer; color: var(--vi-d); text-align: left; }
.cfbtn .bflag { margin: 0 8px 0 0; }
.cfbtn:hover { background: var(--li); }
.ctab .cmaj .yn { font-size: 12.5px; }

/* Accueil : trois cartes de dates */
.dates:has(.sgc) { grid-template-columns: repeat(3, 1fr); }
.dcard.sgc { background: var(--li); }
@container (max-width: 980px) { .dates:has(.sgc) { grid-template-columns: 1fr 1fr; } .dates .sgc { grid-column: 1 / -1; } }
@container (max-width: 560px) { .dates:has(.sgc) { grid-template-columns: 1fr; } }

/* Signatures en cours (calendrier) */
.sigs { margin-bottom: 18px; scroll-margin-top: calc(var(--toph, 70px) + 10px); }
.sigs h2 { font-family: var(--fd); font-weight: 800; font-size: 22px; margin: 0 0 6px; }
.sg-in { margin: 0 0 14px; max-width: 75ch; }
.sg-tabs .c { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--card); color: var(--vi-d); font-size: 12px; }
.sg-note { color: var(--mu); font-size: 14px; margin: 14px 0 8px; }
.sg-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sg { background: var(--cr); border-radius: 16px; padding: 12px 14px; }
.sg-t { font-weight: 700; line-height: 1.35; }
.sg-t .pill.tag { background: var(--ci); vertical-align: 2px; }
.sg-m { font-size: 13px; color: var(--mu); margin-top: 3px; }
.sg-m b { color: var(--vi-d); }
.sg.soon .sg-m b { color: var(--non-t); }
.sg-bar { height: 6px; background: var(--card); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.sg-bar i { display: block; height: 100%; background: var(--vi); border-radius: 99px; }
.sg.soon .sg-bar i { background: var(--no); }
.sg-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sg-act span:empty { display: none; }
.sigs .olinks { margin: 12px 0 0; }

/* Qui élit qui ? */
.qbox { margin-bottom: 36px; }
#ancre-qui-elit, #ancre-aujourdhui, #ancre-elections { scroll-margin-top: calc(var(--toph, 70px) + 10px); }
.qee { display: grid; gap: 6px; justify-items: center; text-align: center; }
.qe-row { display: grid; gap: 12px; width: 100%; max-width: 760px; }
.qe-row.two { grid-template-columns: 1fr 1fr; }
.qe-row.three { grid-template-columns: repeat(3, 1fr); }
.qe-b { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 20px; background: var(--cr); text-decoration: none; color: inherit; }
.qe-b b { font-family: var(--fd); font-size: 19px; }
.qe-b span { font-size: 13.5px; color: var(--mu); line-height: 1.35; }
.qe-b.peuple { background: var(--me); max-width: 420px; margin: 0 auto; }
.qe-b.cn, .qe-b.ce { background: var(--li); }
a.qe-b:hover { box-shadow: var(--sh-s); transform: translateY(-1px); }
.qe-b.cf { background: var(--ci); } .qe-b.tf, .qe-b.ch { background: var(--cr); }
.qe-arr { display: grid; width: 100%; max-width: 760px; font-size: 12.5px; font-weight: 800; color: var(--vi-d); text-transform: uppercase; letter-spacing: .04em; }
.qe-arr.two { grid-template-columns: 1fr 1fr; }
.qe-arr span::before { content: ""; display: block; width: 2px; height: 18px; margin: 0 auto 2px; background: var(--vi); }
.qe-arr span::after { content: ""; display: block; width: 0; height: 0; margin: 2px auto 0; border: 6px solid transparent; border-top-color: var(--vi); border-bottom: 0; }
.qe-af { font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; max-width: 760px; }
.qe-dd { margin-top: 14px; padding: 12px 16px; border-radius: 16px; background: var(--pe); max-width: 760px; font-size: 14.5px; }
.qe-dd a { font-weight: 800; color: var(--vi-d); margin-left: 4px; white-space: nowrap; }
@container (max-width: 640px) { .qe-row.three { grid-template-columns: 1fr; } .qe-b b { font-size: 17px; } }

/* Où en est-on ? */
.auj { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.aj-col.wide, .aj-src { grid-column: 1 / -1; }
.aj-col h3 { font-size: 17px; margin: 0 0 8px; }
.aj-col h3 + .explain, .aj-col .explain { margin: 6px 0 14px; font-size: 14px; color: var(--mu); }
.aj-cf { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.aj-cf li { display: flex; align-items: center; gap: 10px; background: var(--cr); border-radius: 12px; padding: 7px 12px; font-weight: 700; line-height: 1.25; }
.aj-cf i { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.aj-cf small { display: block; color: var(--mu); font-weight: 600; font-size: 12.5px; }
.aj-ch { margin-bottom: 14px; }
.aj-h { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.aj-h span { color: var(--mu); }
.aj-bar { display: flex; height: 18px; border-radius: 99px; overflow: hidden; gap: 2px; }
.aj-lg { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; margin-top: 6px; }
.aj-lg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.aj-src { margin: 0; }
@container (max-width: 640px) { .auj { grid-template-columns: 1fr; } }

/* Avec qui je vote ? : choix de la partie */
.g-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 560px; margin: 20px auto 10px; }
.g-modes button { border: 2px solid var(--line); background: var(--card); border-radius: 18px; padding: 10px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; }
.g-modes button b { font-family: var(--fd); font-size: 17px; }
.g-modes button small { color: var(--mu); font-size: 12.5px; font-weight: 600; }
.g-modes button[aria-pressed="true"] { border-color: var(--vi); background: var(--li); }
.g-ths { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 600px; margin: 4px auto 10px; }
.g-ths[hidden] { display: none; }
.g-ths button { border: 0; background: var(--cr); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.g-ths button[aria-pressed="true"] { background: var(--vi); color: #fff; }
.g-ths .c { opacity: .75; font-weight: 800; margin-left: 2px; }
.gStart { margin-top: 8px; }
.gStart .gn { font-weight: 600; opacity: .85; }
.gStart:disabled { opacity: .5; cursor: default; transform: none; }
.g-keep { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: 14px; cursor: pointer; }
.g-keep input { width: 18px; height: 18px; accent-color: var(--vi); }
.g-intro .g-priv { font-size: 13px; margin-top: 4px; }
.g-intro .g-last { background: var(--me); color: var(--in); border-radius: 14px; padding: 8px 14px; display: inline-block; font-size: 14px; margin-top: 12px; }
.g-how { max-width: 52ch; margin: 14px auto 0; text-align: left; font-size: 14px; }
.g-how summary { cursor: pointer; font-weight: 800; color: var(--vi-d); text-align: center; }
.g-how p { margin: 8px 0 0 !important; max-width: none !important; }
.g-intro .g-note { font-size: 12.5px; margin-top: 12px; }
@container (max-width: 520px) { .g-modes { grid-template-columns: 1fr; } }

/* Agir */
.ag-hero { background: var(--me); }
.ag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ag { display: flex; flex-direction: column; }
.ag-i { font-size: 30px; line-height: 1; }
.ag h2 { font-size: 21px; margin: 10px 0 4px; }
.ag p { margin: 0; font-size: 14.5px; }
.ag .ag-a, .ag-el .ag-a { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ag .vbtn, .ag-el .vbtn { font-size: 13px; padding: 5px 12px; }
.ag-el { margin-top: 18px; }
.ag-elh { display: flex; gap: 16px; align-items: center; }
.ag-elh .big { font-family: var(--fd); font-weight: 800; font-size: 44px; line-height: 1; color: var(--vi); text-align: center; min-width: 84px; }
.ag-elh .big small { display: block; font-size: 13px; font-family: var(--fb); color: var(--in); }
.ag-elh h2 { font-size: 22px; margin: 0; } .ag-elh p { margin: 2px 0 0; color: var(--mu); }
.ag-ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 6px; max-width: 80ch; }
@container (max-width: 900px) { .ag-grid { grid-template-columns: 1fr 1fr; } }
@container (max-width: 560px) { .ag-grid { grid-template-columns: 1fr; } }

/* À propos */
.ap-v { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.ap-v .box { padding: 18px; }
.ap-v span { font-size: 26px; }
.ap-v h2 { font-size: 19px; margin: 6px 0 4px; }
.ap-v p { margin: 0; font-size: 14px; color: var(--mu); }
.ap-faq, .ap-err { margin-bottom: 18px; }
.ap-faq h2, .ap-err h2 { font-family: var(--fd); font-weight: 800; font-size: 22px; margin: 0 0 8px; }
.ap-faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.ap-faq summary { cursor: pointer; font-weight: 800; }
.ap-faq details p { margin: 8px 0 0; max-width: 75ch; }
.ap-err .report { font-size: 16px; padding: 11px 22px; gap: 9px; color: var(--in); border-width: 2px; }
.ap-err .report .lnk, .ap-err .report svg { width: 18px; height: 18px; }
@container (max-width: 820px) { .ap-v { grid-template-columns: 1fr 1fr; } }

/* Téléphone : « Couleurs adaptées » à droite du titre Carte / Hémicycle, « Regrouper par » dessous */
@container (max-width: 640px) {
  .hhead { display: grid; grid-template-columns: 1fr auto; }
  .hhead .h-t { grid-column: 1; grid-row: 1; }
  .hhead > .cbtn { grid-column: 2; grid-row: 1; justify-self: end; }
  .hhead .grp { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}

/* Onglet « Parlement » : choix du conseil en haut de la page */
/* Onglet « Parlement » : actif, il devient « Parlement CN | CE » */
.mparl { display: flex; flex: none; align-items: center; border-radius: 99px; }
.menu .mparl .mk { display: none; }
.mparl.on { background: var(--in); padding-right: 4px; }
.menu .mparl.on a[data-p="parl"] { color: #fff; background: none; padding-right: 6px; }
.menu .mparl.on .mk { display: inline-block; padding: 4px 11px; margin-left: 2px; font-size: 13px; color: rgba(255,255,255,.78); background: none; }
.menu .mparl.on .mk:hover { color: #fff; background: rgba(255,255,255,.16); }
.menu .mparl.on .mk[aria-current="page"] { background: #fff; color: var(--in); }
/* « Comment naît une loi ? » : sur téléphone, les deux conseils l'un sous l'autre, puis une flèche vers le résultat */
@media (max-width: 640px) {
  .pc-verdict { flex-direction: column; gap: 8px; }
  .pc-eq { font-size: 0; line-height: 1; }
  .pc-eq::after { content: "↓"; font-size: 26px; }
}

/* Accueil : deux cartes « Le saviez-vous ? » sur toute la largeur */
@container (min-width: 761px) { #p-accueil .facts { grid-template-columns: repeat(2, 1fr); } }
/* Accueil sur téléphone : bandeau plus mince, petite urne à droite du titre, bulle juste dessous */
@container (max-width: 860px) {
  .hero { grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 12px; padding: 18px 18px 16px; align-items: center; }
  .hero h1 { order: 1; grid-column: 1; }
  .hero p { display: none; }
  .hero .urn { order: 2; grid-column: 2; width: 92px; max-width: 92px; margin: 0; }
  .hero .bubble { order: 3; grid-column: 1 / -1; margin-top: 0; padding: 8px 14px; }
}
/* Fenêtre d'un vote : libellés courts et boutons plus petits sur téléphone */
.vinfo .links .sh { display: none; }
.vinfo .links .report { padding: 3px 12px; }
@container (max-width: 560px) {
  .vinfo .links { gap: 6px; margin-top: 12px; }
  .vinfo .links .lg { display: none; }
  .vinfo .links .sh { display: inline; }
  .vinfo .links .lm, .vinfo .links .vbtn.other, .vinfo .links .share, .vinfo .links .report { font-size: 12.5px; padding: 4px 11px; }
}
/* En-tête sur téléphone : le compte à rebours plus serré, pour que l'œil reste sur la première ligne dans les trois langues */
@container (max-width: 560px) {
  .top .cdv { padding: 4px 9px 4px 8px; gap: 4px; font-size: 12px; margin-left: -2px; }
  .top .cdv b { font-size: 13px; }
}
/* Indice « touche un canton » : loupe + qui pulse sur un canton, message en bas de la carte */
.zcoach { position: absolute; inset: 0; pointer-events: none; z-index: 5; animation: zcIn .25s ease-out; }
.zcoach.out { opacity: 0; transition: opacity .4s; }
@keyframes zcIn { from { opacity: 0; } to { opacity: 1; } }
.zc-ring { position: absolute; width: 0; height: 0; }
.zc-ring i { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--vi); animation: zcPulse 1.4s ease-out infinite; }
.zc-ring i + i { animation-delay: .7s; }
@keyframes zcPulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.zc-lens { position: absolute; left: 6px; top: 6px; width: 44px; height: 44px; padding: 8px; border-radius: 50%; background: var(--in); fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; box-shadow: var(--sh-s); animation: zcTap 1.4s ease-in-out infinite; }
@keyframes zcTap { 0%, 100% { transform: translate(10px, 10px); } 50% { transform: translate(0, 0) scale(.92); } }
.zc-msg { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px); text-align: center; background: var(--in); color: #fff; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 99px; box-shadow: var(--sh-s); }
@media (prefers-reduced-motion: reduce) { .zc-ring i, .zc-lens { animation: none; } }
.zc-msg.top { bottom: auto; top: 8px; }
/* Filtre par canton : le nom du canton et « Vue d'ensemble » au-dessus de l'hémicycle, sans cacher de siège */
.hmap.cfon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hmap.cfon > .zlab, .hmap.cfon > .ovw { position: static; }
.hmap.cfon > :not(.zlab):not(.ovw) { flex: 0 0 100%; min-width: 0; }
/* Canton ou groupe agrandi : étiquette foncée et « Vue d'ensemble » en bleu, bien visibles sur la carte */
.hmap .zlab { background: var(--in); color: #fff; box-shadow: none; }
.hmap .zlab small { color: #c9d3db; }
.hmap .ovw { background: var(--vi); color: #fff; box-shadow: none; }
.hmap .ovw:hover { background: var(--vi-d); }
/* Groupe agrandi : les autres pastilles et lignes du tableau sont masquées */
.legend button[hidden], .bd tr[hidden] { display: none; }
/* Téléphone : la phrase sous l’hémicycle est remplacée par l’animation de la loupe */
.zhint { display: none !important; }
/* Accueil : la carte « Signatures en cours » avant la session et les élections */
.dates .sgc { order: -1; }

/* Carte « Signatures en cours » : couleur pêche, stylo, bouton foncé, délai le plus proche */
.dates .dcard.sgc { background: var(--pe); box-shadow: none; position: relative; transition: transform .15s; }
.dates .dcard.sgc:hover { transform: translateY(-2px); }
.dcard.sgc .big { color: var(--in); position: relative; }
.dcard.sgc .big small { color: var(--in); }
.sg-pen { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 50%; background: #fff; color: var(--in); box-shadow: var(--sh-s); }
.sg-pen svg { width: 22px; height: 22px; }
.dcard.sgc .sg-soon { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--non-t); }
.dcard.sgc .sg-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; background: var(--in); color: #fff; font-weight: 800; font-size: 15px; padding: 9px 18px; border-radius: 99px; box-shadow: var(--sh-s); }
.dcard.sgc .sg-go .arw { width: 15px; height: 15px; }
.dcard.sgc:hover .sg-go { background: var(--in); }
body.cb .dates .dcard.sgc { background: var(--pierre); }
/* Accueil : pas de compte à rebours dans la carte de la votation (déjà dans l’en-tête) */
#p-accueil .vbig .vt-cd { display: none; }
.ag-el h2 { font-family: var(--fd); font-weight: 800; font-size: 22px; margin: 0; } .ag-el > p:not(.ag-a) { margin: 4px 0 0; color: var(--mu); }
/* Agir sur téléphone : cartes compactes, icône à gauche du titre */
@container (max-width: 560px) {
  .ag-grid { gap: 10px; }
  .ag { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 14px 16px; }
  .ag .ag-i { grid-row: 1 / span 3; font-size: 26px; padding-top: 2px; }
  .ag h2 { font-size: 18px; margin: 0 0 2px; }
  .ag .ag-a { padding-top: 8px; }
  .ag-hero { padding-top: 18px; padding-bottom: 18px; }
}
/* Accueil : le compteur de jours dans une icône de calendrier (session et élections) */
.dates .dcard:not(.sgc) .big { position: relative; flex: none; width: 92px; min-width: 0; padding: 22px 6px 8px; background: #fff; border-radius: 14px; box-shadow: var(--sh-s); font-size: 34px; overflow: visible; }
.dates .dcard:not(.sgc) .big::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: var(--vi); border-radius: 14px 14px 0 0; }
.dates .dcard:not(.sgc) .big::after { content: ""; position: absolute; top: -5px; left: 24px; right: 24px; height: 12px; background: linear-gradient(90deg, var(--in) 0 6px, transparent 6px calc(100% - 6px), var(--in) calc(100% - 6px)); border-radius: 3px; }
.dates .dcard:not(.sgc) .big small { margin-top: 3px; font-size: 12px; font-weight: 700; }
body.cb .dates .dcard:not(.sgc) .big::before { background: var(--non-t); }

/* Variante « Agir » : carte d'appel sur l'accueil, rendez-vous en haut de l'onglet Agir */
.agcta { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: 24px; padding: 24px 28px; border-radius: 28px; background: var(--pe); box-shadow: none; color: inherit; text-decoration: none; transition: transform .15s; }
.agcta:hover { transform: translateY(-2px); }
.agcta h2 { font-family: var(--fd); font-weight: 800; font-size: 28px; margin: 0; }
.agcta p { margin: 4px 0 0; max-width: 52ch; }
.agcta .btn { flex: none; }
.starts.one { grid-template-columns: 1fr; }
.ag-top .vbig { margin-top: 18px; }
.ag-top .dates { margin-top: 18px; }
.ag-top .starts { margin-top: 18px; }
#p-agir .vbig .vt-cd { display: none; }
#p-agir > .sec { margin-top: 28px; }
#p-agir > .sec > h2 { font-family: var(--fd); font-weight: 800; font-size: 24px; margin: 0 0 12px; }
@container (max-width: 560px) { .agcta { padding: 20px; } .agcta h2 { font-size: 24px; } .agcta .btn { width: 100%; justify-content: center; } }

/* Signatures : ligne compacte drapeau + délai + Détails */
.sg-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: 13px; }
.sg-ch { display: inline-flex; align-items: center; gap: 5px; color: var(--mu); font-weight: 600; }
.sg-ch .chf { width: 16px; height: 16px; flex: none; }
.sg-left { color: var(--vi-d); }
.sg.soon .sg-left { color: var(--non-t); }
.sg-tog { margin-left: auto; font: inherit; font-weight: 700; font-size: 13px; color: var(--vi-d); background: var(--card); border: 1px solid currentColor; border-radius: 99px; padding: 3px 12px; cursor: pointer; }
.sg-more[hidden] { display: none; }
.sg-more { margin-top: 4px; }

/* Signatures : Fédéral repliable + onglets cantonaux */
.sg-fed { background: var(--card); border: 1px solid var(--li, #e6e1d6); border-radius: 18px; padding: 4px 12px 12px; margin: 10px 0 14px; }
.sg-fed > summary { list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 10px 2px; }
.sg-fed > summary::-webkit-details-marker { display: none; }
.sg-fed > summary::after { content: '▾'; margin-left: auto; font-size: 18px; color: var(--vi-d); transition: transform .2s; }
.sg-fed:not([open]) > summary::after { transform: rotate(-90deg); }
.sg-sum, .sg-khead { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; }
.sg-sum .chf { width: 20px; height: 20px; }
.sg-sum .c, .sg-khead .c, .kchip .c { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 99px; background: var(--cr); color: var(--vi-d); font-size: 12px; font-weight: 700; text-align: center; }
.sg-sub { font-size: 13px; color: var(--mu); }
.sg-fed > summary .sg-sub { flex-basis: 100%; order: 3; }
.sg-kant { background: var(--card); border: 1px solid var(--li, #e6e1d6); border-radius: 18px; padding: 14px 12px 12px; margin: 0 0 14px; }
.sg-khead { flex-wrap: wrap; }
.sg-khead .sg-sub { flex-basis: 100%; }
.kchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.kchip { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13px; font-weight: 700; padding: 4px 8px 4px 5px; border-radius: 99px; border: 1px solid var(--li, #e0dacd); background: var(--card); color: var(--ink, inherit); cursor: pointer; }
.kchip .chf { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.kchip.off { opacity: .55; }
.kchip[aria-pressed="true"] { background: var(--vi-d); border-color: var(--vi-d); color: #fff; opacity: 1; }
.kchip[aria-pressed="true"] .c { background: #fff; }
.sg-ch img.chf { width: 16px; height: 16px; border-radius: 3px; }
.kpane .sg-list { margin-top: 0; }
@media (max-width: 600px) { .kchips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -12px; scrollbar-width: none; } .kchips::-webkit-scrollbar { display: none; } .kchip { flex: none; } }
/* titres de page : même hauteur en FR/DE/IT sur téléphone */
@media (max-width:560px){.ph h1{font-size:clamp(24px,7.4vw,32px)}}
/* Agir : pas de bandeau titre, on commence directement par la votation */
.cal-hero.ag-hero{display:none}

/* Carte : drapeaux et sigles des cantons cliquables */
.hemi2.map image, .hemi2.map text.lbl { cursor: pointer; }
@media (hover: hover) { .hemi2.map text.lbl:hover { fill: var(--in); } }
@media (hover: hover) and (pointer: fine) { .hemi2:not(.map) { cursor: zoom-in; } .hemi2:not(.map):has(.seat.out) { cursor: default; } .hemi2:not(.map) .seat { cursor: pointer; } }
/* Ordinateur : pile de boutons en haut à gauche de la carte / de l'hémicycle */
.hstk { position: absolute; top: 4px; left: 4px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hstk > .zlab, .hstk > .ovw { position: static; }
.hmap.cfon .hstk { top: 4px; }
.hhead > .hstk { position: static; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; margin-right: auto; margin-left: 16px; }
.hstk > .zlab { background: var(--in); color: #fff; }
.hstk > .zlab small { color: #c9d3db; }
.hstk > .ovw { background: var(--vi); color: #fff; }
.hemi2.map text.lbl:focus { outline: none; } .hemi2.map text.lbl:focus-visible { fill: var(--vi); text-decoration: underline; }
/* ---- Audit 07.11.2026 : la page ne saute plus au chargement ---- */
@container (max-width: 560px) {
  .top { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: minmax(36px, auto) auto auto; align-items: center; }
  .top .logo { grid-area: 1 / 1; white-space: nowrap; }
  .top .cdv { grid-area: 1 / 2; justify-self: start; }
  .top > .cbtn { grid-area: 1 / 3; justify-self: end; margin-left: 0; }
  .top .langs { grid-area: 2 / 1 / 3 / -1; justify-self: start; margin-left: 0; }
  .top .menu { grid-area: 3 / 1 / 4 / -1; width: auto; min-width: 0; }
}
main:has(> .page:not([hidden]):empty) { min-height: 100vh; }
/* ---- Audit 07.11.2026 : boutons de langue assez grands pour le doigt (WCAG 2.5.8) ---- */
.langs button { min-height: 28px; min-width: 32px; }
/* ---- Accueil sans sous-titre : le titre occupe la place libérée (ordinateur) ---- */
@container (min-width: 861px) { .hero { grid-template-columns: 1.8fr 1fr; } .hero h1 { font-size: min(6.8cqi, 88px); } .hero h1.long { font-size: min(5.6cqi, 72px); } }
@container (max-width: 860px) { .hero h1.long { font-size: clamp(28px, 7.8cqi, 48px); } }

/* ====================================================================================
   Direction « encre sur papier » (maquette du 7 novembre 2026), appliquée au site complet.
   Les règles de fonctionnement (états cachés, zoom, carte, filtres) restent celles du site ;
   ce bloc ne change que l'apparence. Les anciens jetons bleus et pastel pointent maintenant
   vers l'encre et la pierre (voir :root), les ombres ont disparu.
   ==================================================================================== */
:root { --pierre: #efede7; --trait: #d7d3ca; --oui-t: #147a46; --non-t: #b83a34; --rouge: #da291c; --pad: clamp(20px, 3vw, 48px); }
body.cb { --oui-t: #005a8e; --non-t: #a84600; }
body { font-size: 17px; }

/* Pages courtes : le pied de page reste en bas de l'écran */
.site { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.site > main { flex: 1 0 auto; min-width: 0; }
h1, h2, h3 { letter-spacing: -.015em; line-height: 1.05; }
a { text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--in); outline-offset: 3px; }
.site { max-width: 1200px; }
/* Sur ordinateur, la page prend plus de largeur : 1216 px de contenu sur une fenêtre de 1280 px, 1280 px au plus au-delà de 1344 px (téléphone inchangé) */
@media (min-width: 1000px) { .site { max-width: 1344px; padding-left: 32px; padding-right: 32px; } }
.page { padding-bottom: clamp(40px, 6vw, 80px); }
.notice { background: var(--pierre); border-radius: 10px; }

/* ---- En-tête : logo avec l'hémicycle de points, outils à droite, menu souligné dessous ---- */
.top { gap: 10px 20px; padding-top: 14px; padding-bottom: 0; border-bottom: 1px solid var(--line); }
.top.stuck { box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; color: var(--in); letter-spacing: -.02em; }
.logo .mark { width: 26px; height: 26px; flex: none; }
.cdv { background: none; border: 1.5px solid var(--line); color: var(--mu); box-shadow: none; font-weight: 600; padding: 4px 12px 4px 10px; }
.cdv b { color: var(--in); }
.cdv:hover { transform: none; border-color: var(--in); color: var(--in); }
.cbtn, .hhead .cbtn, .top > .cbtn { border: 1.5px solid var(--line); background: none; color: var(--in); font-weight: 600; font-size: 14px; min-height: 36px; padding: 0 12px; box-shadow: none; }
.cbtn[aria-pressed="true"], .hhead .cbtn[aria-pressed="true"], .top > .cbtn[aria-pressed="true"] { background: var(--in); color: var(--cr); border-color: var(--in); }
.cbtn svg, .hhead .cbtn svg { width: 16px; height: 16px; }
.langs { background: none; border: 1.5px solid var(--in); border-radius: 99px; padding: 2px; gap: 0; box-shadow: none; }
.langs button { min-height: 30px; min-width: 38px; padding: 0 10px; font-weight: 700; font-size: 13px; }
.langs button[aria-pressed="true"] { background: var(--in); color: var(--cr); }
/* Menu : des pastilles, l'onglet actif en noir comme « Parlement CN | CE » */
.menu { gap: 0 2px; }
.menu a { font-weight: 600; font-size: 15px; color: var(--in); border-radius: 99px; padding: 7px 12px; border-bottom: 0; margin-bottom: 0; }
.menu a:hover { background: var(--pierre); color: var(--in); }
.menu a[aria-current="page"] { background: var(--in); color: var(--cr); }
.menu a:focus-visible { outline-offset: 2px; }
.mparl.on { padding: 0 4px 0 12px; }
.menu .mparl.on a { border-bottom: 0; margin-bottom: 0; }
.menu .mparl.on a[data-p="parl"] { color: var(--cr); padding: 7px 8px 7px 0; }
.menu .mparl.on .mk { color: rgba(251,250,247,.75); border-radius: 99px; }
.menu .mparl.on .mk:hover { color: var(--cr); background: rgba(255,255,255,.16); }
.menu .mparl.on .mk[aria-current="page"] { background: var(--cr); color: var(--in); }
@container (min-width: 761px) {
  .top { padding-bottom: 0; row-gap: 4px; }
  .menu { gap: 0 2px; margin: 2px -4px 8px -12px; padding: 0; }
  .menu a, html[lang="it"] .menu a { font-size: 15px; padding: 7px 12px; }
}
@container (min-width: 761px) and (max-width: 1100px) { .menu { gap: 0; } .menu a, html[lang="it"] .menu a { font-size: 14px; padding: 7px 9px; } }

/* ---- Boutons, pastilles, blocs ---- */
.btn { background: none; color: var(--in); border: 1.5px solid var(--in); min-height: 44px; padding: 0 20px; font-weight: 700; font-size: 15px; gap: 8px; }
.btn:hover { transform: none; background: var(--in); color: var(--cr); }
.btn.vi, .btn.fill { background: var(--in); color: var(--cr); border-color: var(--in); }
.btn.vi:hover, .btn.fill:hover { background: none; color: var(--in); }
.btn.ghost { background: none; color: var(--in); box-shadow: none; border-color: var(--line); }
.btn.ghost:hover { background: none; border-color: var(--in); }
.btn.big { font-size: 16px; min-height: 48px; padding: 0 24px; }
.btn:disabled { opacity: .5; }
.sticker { background: none; border: 1.5px solid var(--line); border-radius: 99px; transform: none; box-shadow: none; font-family: var(--fb); font-weight: 600; font-size: 14px; color: var(--mu); padding: 4px 12px; }
.sticker b { color: var(--in); font-family: var(--fd); font-weight: 800; font-size: 1.05em; }
.pill { background: none; border: 1.5px solid var(--line); color: var(--mu); font-weight: 700; }
.box { background: none; border-radius: 0; padding: 0; box-shadow: none; }
.box + .box, .box + section.box { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.sec { margin-top: 0; padding: clamp(32px, 4vw, 56px) 0 clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.sec > h2 { font-size: clamp(27px, 3.2cqi, 42px); margin-bottom: 24px; text-wrap: balance; }
.ph { gap: 10px 18px; margin: 8px 0 6px; }
.ph h1 { font-size: clamp(34px, 4.6cqi, 60px); }
.lede { font-size: 17px; }

/* Liens-boutons : parlament.ch, données brutes, autre chambre, partager, signaler */
.lm, .vbtn, .share, .report, .hlist .t a.hv, .links a, .olinks a.lm, .vinfo .links .lm, .vinfo .links .vbtn.other, .vinfo .links .share, .vinfo .links .report, .vt .vbtn, .ag .vbtn, .ag-el .vbtn, .hlist .t .lm { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 99px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--in); background: none; box-shadow: none; white-space: nowrap; }
.lm:hover, .share:hover, .report:hover, .hlist .t a.hv:hover, .olinks a.lm:hover { border-color: var(--in); background: none; color: var(--in); }
.vbtn, .vt .vbtn, .ag .vbtn, .ag-el .vbtn, .vinfo .links .vbtn.other { border-color: var(--in); font-weight: 700; }
.vbtn:hover, .vt .vbtn:hover { background: var(--in); color: var(--cr); border-color: var(--in); }
body.cb .lm, body.cb .olinks a.lm { color: var(--in); background: none; border-color: var(--line); }
body.cb .lm:hover, body.cb .olinks a.lm:hover { color: var(--in); background: none; border-color: var(--in); }
.lm .ntab, .btn .ntab, .share .lnk, .report .lnk { width: 14px; height: 14px; margin: 0; }
.arw { width: 16px; height: 16px; margin-left: 0; }
.hlist .hv svg:not(.arw) { margin-right: 0; }
.toast { background: var(--in); color: var(--cr); box-shadow: none; }
.tip { border-radius: 12px; color: var(--cr); }

/* ---- Accueil ---- */
.hx { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5cqi, 80px); align-items: start; padding: clamp(20px, 3cqi, 44px) 0 clamp(36px, 5cqi, 72px); }
/* Le titre, la phrase et les deux boutons occupent toute la hauteur du dernier vote : titre en haut, boutons en bas */
.hx > div:first-child { align-self: stretch; display: flex; flex-direction: column; padding-top: 14px; }
.hx > div:first-child .cta { margin-top: auto; padding-top: 28px; }
.hx h1 { font-size: clamp(46px, 7.4cqi, 100px); line-height: .96; font-weight: 800; }
.hx h1.long { font-size: clamp(38px, 5.8cqi, 80px); }
.hx h1 span { display: block; color: var(--mu); }
.lead { font-size: 21px; line-height: 1.45; max-width: 34ch; margin: clamp(22px, 3cqi, 36px) 0 0; color: var(--in); }
/* Les deux boutons occupent toute la largeur de la colonne et le vide sous le texte */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.cta .btn { min-height: clamp(60px, 6.5cqi, 84px); padding: 0 24px; font-size: clamp(17px, 1.7cqi, 22px); justify-content: center; text-align: center; }
/* Le dernier vote : une case comme les autres ; toute la case mène à la page du vote (le lien du titre s'étend sur la case), fond au survol, sièges non cliquables */
.dernier { position: relative; border: 1.5px solid var(--line); border-radius: 18px; padding: 20px 24px 22px; margin: 0; transition: background .15s, border-color .15s; }
.dernier:hover, .dernier:has(a.vlink:focus-visible) { border-color: var(--in); background: var(--pierre); }
.dernier .sur { font-weight: 700; font-size: 15px; margin: 0; }
.dernier .sur time { color: var(--mu); font-weight: 400; }
.dernier h2 { font-size: 21px; line-height: 1.25; margin-top: 6px; font-weight: 700; letter-spacing: -.005em; text-wrap: pretty; }
.dernier .hemi2 { margin-top: 10px; }
.dernier figcaption { margin-top: 2px; }
.dernier h2 a.vlink { color: inherit; text-decoration: none; }
.dernier h2 a.vlink::after { content: ""; position: absolute; inset: 0; }
.dernier h2 .arw { width: 18px; height: 18px; display: inline-block; vertical-align: middle; margin: -3px 0 0 6px; transition: transform .15s; }
.dernier h2 .nb { white-space: nowrap; }
.dernier:hover h2 .arw, .dernier h2 a.vlink:focus-visible .arw { transform: translate(3px, -3px); }
.dernier .hemi2.home { position: relative; z-index: 1; pointer-events: none; }
/* Légende du dernier vote : une seule rangée quelle que soit la largeur, chaque chiffre au-dessus de son libellé */
.score { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0 clamp(18px, 2.4cqi, 30px); margin: 10px 0 0; align-items: flex-start; }
.score > span { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 14px; line-height: 1.15; color: var(--mu); }
.score b { font: 800 34px/1 var(--fd); letter-spacing: -.02em; color: var(--in); }
.score .oui b { color: var(--oui-t); } .score .non b { color: var(--non-t); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo > * { padding-right: var(--pad); min-width: 0; }
.duo > * + * { border-left: 1px solid var(--line); padding: 0 0 0 var(--pad); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); }
.trio > * { padding: 0 var(--pad); min-width: 0; }
.trio > *:first-child { padding-left: 0; } .trio > *:last-child { padding-right: 0; }
.trio > * + * { border-left: 1px solid var(--line); }
/* Les trois cases sont des boutons : contour, flèche, fond au survol ; visuel et titre sur les mêmes lignes */
.trio.agir-first { gap: 16px; }
.trio.agir-first > .tool, .trio.agir-first > .tool:first-child, .trio.agir-first > .tool:last-child, .trio.agir-first > .tool + .tool { display: grid; grid-template-rows: subgrid; grid-row: span 2; align-content: start; padding: 22px 24px 24px; border: 1.5px solid var(--line); border-radius: 18px; color: inherit; text-decoration: none; transition: background .15s, border-color .15s; }
.trio > .tool > .pict, .trio > .tool > .cantons { align-self: end; }
.tool:hover, .tool:focus-visible { border-color: var(--in); background: var(--pierre); }
.tool:focus-visible { outline-offset: 4px; }
.tool h3 { display: block; }
.tool h3 .arw { width: 20px; height: 20px; display: inline-block; vertical-align: middle; margin: -4px 0 0 8px; transition: transform .15s; }
.tool h3 .nb { white-space: nowrap; }
.tool:hover h3 .arw, .tool:focus-visible h3 .arw { transform: translate(3px, -3px); }
/* Les deux chambres : deux cases-liens, sans bouton ; flèche dans le titre, fond au survol */
.duo > .chx, .duo > .chx + .chx { display: grid; grid-template-rows: subgrid; grid-row: span 5; align-content: start; color: inherit; text-decoration: none; border: 1.5px solid var(--line); border-radius: 18px; padding: 22px 24px 24px; transition: background .15s, border-color .15s; }
.chx:hover, .chx:focus-visible { border-color: var(--in); background: var(--pierre); }
.chx h3 .arw { width: 20px; height: 20px; display: inline-block; vertical-align: middle; margin: -4px 0 0 8px; transition: transform .15s; }
.chx h3 .nb { white-space: nowrap; }
.chx:hover h3 .arw, .chx:focus-visible h3 .arw { transform: translate(3px, -3px); }
.chx:focus-visible { outline-offset: 4px; }
.chx h3 { font-size: clamp(27px, 2.6cqi, 34px); }
.num-xl { font-family: var(--fd); font-weight: 800; letter-spacing: -.015em; line-height: 1.02; font-size: clamp(27px, 2.6cqi, 34px); margin: 6px 0 0; }
.num-xl small { font: 600 15px/1 var(--fb); color: var(--mu); letter-spacing: 0; margin-left: 8px; }
.chx p.d { margin: 10px 0 0; color: var(--mu); max-width: 46ch; }
.pbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; margin-top: 22px; }
.pbar span { display: block; }
.plegend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--mu); }
.plegend li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .plegend i { width: 10px; height: 10px; border-radius: 50%; }
/* La votation : toute la case est un lien, contour encre, date en rouge, compte à rebours en grand à droite */
.v-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px var(--pad); align-items: center; }
.v-line.vlt { color: inherit; text-decoration: none; border: 1.5px solid var(--in); border-radius: 18px; padding: 24px 28px; transition: background .15s; }
.v-line.vlt:hover, .v-line.vlt:focus-visible { background: var(--pierre); }
.v-line.vlt:focus-visible { outline-offset: 4px; }
.v-line h2 { font-size: clamp(27px, 3.2cqi, 42px); margin: 0; }
.v-line h2 .nb { white-space: nowrap; }
.v-line h2 .vl-date { color: var(--rouge); }
body.cb .v-line h2 .vl-date { color: #a84600; }
.v-line h2 .arw { width: 22px; height: 22px; display: inline-block; vertical-align: middle; margin: -4px 0 0 10px; transition: transform .15s; }
.v-line.vlt:hover h2 .arw, .v-line.vlt:focus-visible h2 .arw { transform: translate(3px, -3px); }
.v-line p { color: var(--mu); margin: 8px 0 0; max-width: 60ch; }
.v-line .vl-cd { margin: 0; max-width: none; font-family: var(--fd); font-weight: 800; font-size: clamp(34px, 4.6cqi, 60px); line-height: 1; color: var(--in); white-space: nowrap; letter-spacing: -.01em; }
.v-line .vl-cd b { font-weight: inherit; color: inherit; }
.trio.agir-first { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.outils h3 { font-size: clamp(24px, 2.4cqi, 30px); margin: 0; }
.pict { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.pict i { width: 36px; height: 36px; border-radius: 50%; display: inline-block; }
.pict .sq { width: 36px; height: 36px; border: 1.5px solid var(--in); border-radius: 6px; display: inline-grid; place-items: center; } .pict .sq.on { background: var(--in); } .pict .sq svg { width: 22px; height: 17px; }
/* Accueil, « Mon canton » : la carte de la Suisse avec les drapeaux des cantons */
.cantons { display: block; margin: 0 0 14px; max-width: 300px; }
.cantons .home-map { width: 100%; height: auto; display: block; }
.hemi2.map.home-map .cant { fill: #e6e2d8; transition: fill .15s; }
.tool:hover .hemi2.map.home-map .cant, .tool:focus-visible .hemi2.map.home-map .cant { fill: var(--cr); }
/* Agir : une feuille à cocher (trois lignes, la première cochée) ; Avec qui je vote ? : l'hémicycle coloré par parti */
.pict.sheet { display: block; width: 100%; max-width: 340px; }
.pict.sheet svg { width: 100%; height: auto; display: block; }
.pict.sheet .n { font: 800 24px var(--fd); fill: #fff; }
.pict.parl { display: block; width: 100%; }
.pict.parl svg { width: 100%; max-width: 460px; height: auto; display: block; }
.facts { gap: 0; }
#p-accueil .facts { grid-template-columns: 1fr 1fr; }
.fact { --fc: var(--in); background: none; border-radius: 0; padding: 0 var(--pad); box-shadow: none; border-top: 0; }
.fact:first-child { padding-left: 0; --fpl: 0px; } .fact:last-child { padding-right: 0; --fpr: 0px; }
.fact + .fact { border-left: 1px solid var(--line); }
a.fact { position: relative; isolation: isolate; } /* Le fond gris du survol suit le texte (14 px autour), quel que soit le retrait de la carte */
a.fact::before { content: ""; position: absolute; inset: calc(var(--fpt, 0px) - 12px) calc(var(--fpr, var(--pad)) - 14px) -12px calc(var(--fpl, var(--pad)) - 14px); border-radius: 14px; z-index: -1; transition: background .15s; }
a.fact:hover { transform: none; } a.fact:hover::before, a.fact:focus-visible::before { background: var(--pierre); }
/* Le pourcentage prend la couleur du groupe, un peu assombrie pour rester lisible sur le papier (contraste ≥ 3:1) */
.fact .big { font-size: clamp(42px, 5cqi, 66px); color: color-mix(in srgb, var(--fc) 78%, black); line-height: 1.02; letter-spacing: -.015em; }
/* « 91 contre 90 » : le oui en vert, le non en rouge */
.fact .big .y { color: var(--oui-t); } .fact .big .n { color: var(--non-t); }
.fact p { margin: 12px 0 0; max-width: 46ch; } .fact small { display: block; margin-top: 10px; color: var(--mu); font-size: 14px; }
.sec .box.bet { border-top: 0; padding-top: 0; margin-top: 0; }
.bet-q { font-size: clamp(21px, 2.4cqi, 27px); }
.bet-sc .pill, .bet-sc .pill.fire { background: none; border: 1.5px solid var(--line); color: var(--in); font-size: 13px; }
.step { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.guess b { color: var(--in); }
.gR { accent-color: var(--in); }
.joker { border: 1.5px dashed var(--line); background: none; color: var(--in); }
.joker:hover { border-color: var(--in); }
.pchip { background: none; border: 1.5px solid var(--line); }
.gain { background: none; border: 1.5px solid var(--in); color: var(--in); transform: none; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ---- Parlement : en-tête, liste à gauche, vote et hémicycle à droite ---- */
.chamb-head, .chamb-head.cn, .chamb-head.ce { background: none; box-shadow: none; border-radius: 0; padding: 0 0 20px; margin: 8px 0 24px; border-bottom: 1px solid var(--line); }
.chamb-head .ph { margin: 0; }
.switch { background: none; border: 1.5px solid var(--in); border-radius: 99px; padding: 2px; gap: 0; box-shadow: none; }
.switch a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; font-weight: 700; font-size: 15px; color: var(--in); }
.switch a[aria-current="page"] { background: var(--in); color: var(--cr); }
.finder h2, .hemibox h2, .hhead h2 { font-size: 21px; }
.ctrls { gap: 10px 12px; }
.field { font-weight: 600; font-size: 14px; color: var(--mu); }
.field input, .field select { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; min-height: 44px; font-size: 16px; }
.field select { padding-right: 8px; }
.field input:focus, .field select:focus { border-color: var(--in); }
.lhead { margin: 14px 0 8px; font-size: 14px; }
.vlist { background: none; border-radius: 0; border-top: 1px solid var(--line); }
.vlist li + li { border-top: 1px solid var(--line); }
.vrow { padding: 12px 10px 12px 12px; border-left: 3px solid transparent; gap: 4px 14px; grid-template-columns: 84px minmax(0, 1fr) auto; }
.vrow:hover { background: var(--pierre); }
.vrow[aria-pressed="true"] { background: var(--pierre); box-shadow: none; border-left-color: var(--in); }
.vrow .t { font-size: 15px; }
.vrow .mt { font-size: 13px; }
.res, .res.ok, .res.ko, .res.eq, body.cb .res.ok, body.cb .res.ko { background: none; padding: 0; font-family: var(--fd); font-size: 15px; font-weight: 800; }
.res.ok { color: var(--oui-t); } .res.ko { color: var(--non-t); } .res.eq { color: var(--mu); }
body.cb .res.ok { color: var(--oui-t); } body.cb .res.ko { color: var(--non-t); }
.res span { font-weight: 800; color: var(--in); }
.empty { padding: 14px 0; }
.vinfo { background: none; border-radius: 0; padding: 0 0 18px; margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.vinfo .d { font-weight: 600; }
.vinfo h2 { font-size: clamp(21px, 2.2cqi, 27px); line-height: 1.25; margin: 6px 48px 6px 0; text-wrap: pretty; }
.close { top: -2px; right: 0; border: 1.5px solid var(--line); background: none; box-shadow: none; display: grid; place-items: center; font-size: 22px; color: var(--in); }
.close:hover { background: var(--in); color: var(--cr); border-color: var(--in); }
.outc { gap: 8px 18px; font-size: 15px; }
/* Le résultat (Accepté / Rejeté / Égalité) en pastille pleine, texte blanc, comme le Oui / Non des votes sur la fiche d'élu (.son .pos) */
.outc strong, .outc.ok strong, .outc.ko strong, .outc.eq strong { display: inline-block; background: var(--in); color: #fff; border-radius: 99px; padding: 6px 16px; font-family: var(--fb); font-size: 18px; font-weight: 700; line-height: 1.2; }
.outc.ok strong { background: var(--oui-t); } .outc.ko strong { background: var(--non-t); } .outc.eq strong { background: var(--mu); }
.outc .y { color: var(--oui-t); } .outc .n { color: var(--non-t); } .outc .a { color: var(--mu); }
.outc > span:not(.y):not(.n):not(.a) { color: var(--mu); }
.mix, .vbar { border: 0; background: none; height: 10px; border-radius: 5px; gap: 2px; }
.vbar .x, .mix i:last-child { box-shadow: inset 0 0 0 1px var(--line); }
.links { gap: 8px; }
.vinfo .rep { margin: 0; }
.hemibox { margin-top: 0; }
.hhead { gap: 10px 18px; }
.hhead .h-t { margin-right: 0; }
.hhead > .grp { margin-left: auto; }
.hhead > .hstk { margin-right: 0; margin-left: 6px; }
.hhead > .h-t + .cbtn { margin-left: 8px; }
.grp { background: none; padding: 0; gap: 4px; color: var(--mu); font-size: 14px; }
.grp span { padding: 0 6px 0 0; font-weight: 600; }
.grp button { border: 1.5px solid var(--line); min-height: 34px; padding: 0 14px; color: var(--in); font-weight: 700; font-size: 14px; }
.grp button[aria-pressed="true"] { background: var(--in); color: var(--cr); border-color: var(--in); }
.hmap { margin-top: 12px; }
.hwrap { margin-top: 0; }
.hemi2 .seat:hover circle.o, .hemi2 .seat:focus circle.o { stroke: var(--in); }
.hemi2.map .cant { stroke: #c6c1b6; } .hemi2.map .ch { stroke: #8a8578; }
.hemi2.map .lake { fill: #dfe9ef; stroke: #b7cfdc; } .hemi2.map .riv { stroke: #b7cfdc; }
.hemi2.map .lbl { font-family: var(--fd); }
.hemi2.map .leader { stroke: #8a8578; } .hemi2.map .leader-end { fill: #8a8578; }
.hemi2.map text.lbl:focus-visible { fill: var(--in); }
.legend, .vleg { gap: 6px 8px; margin-top: 14px; }
.legend button, .vleg button { border: 1.5px solid var(--line); background: none; min-height: 30px; padding: 0 12px 0 7px; font-size: 13px; font-weight: 600; color: var(--in); }
.legend button:hover, .vleg button:hover { border-color: var(--in); color: var(--in); }
.legend button[aria-pressed="false"], .vleg button[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }
.freset, .legend .freset { border: 1.5px solid var(--in); background: none; color: var(--in); padding: 0 14px; margin-left: 0; text-decoration: none; }
.freset:hover, .legend .freset:hover { background: var(--in); color: var(--cr); }
.vleg { margin-top: 8px; }
.vleg i.x { box-shadow: inset 0 0 0 1px var(--line); }
.fnote { color: var(--in); }
.hint, .credit { font-size: 14px; margin-top: 10px; }
.zlab, .hmap .zlab, .hstk > .zlab, .hmap.cfon .zlab { background: var(--in); color: var(--cr); box-shadow: none; font-weight: 700; }
.zlab small, .hmap .zlab small, .hstk > .zlab small, .hmap.cfon .zlab small { color: #c9ced3; }
.ovw, .hmap .ovw, .hstk > .ovw, .hmap.cfon .ovw { background: var(--cr); color: var(--in); border: 1.5px solid var(--in); box-shadow: none; padding: 5px 14px; font-weight: 700; }
.ovw:hover, .hmap .ovw:hover, .hstk > .ovw:hover { background: var(--in); color: var(--cr); }
.bd { margin-top: 24px; }
.bd table { min-width: 0; }
.bd caption { font-size: 19px; margin-bottom: 10px; }
.bd caption small { font-weight: 400; font-size: 14px; }
.bd th, .bd td { border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; }
.bd thead th { font-size: 13px; font-weight: 600; }
.bd .num { font-family: var(--fd); font-weight: 800; font-size: 15px; padding-right: 10px; }
.bd thead th.num { font-family: var(--fb); font-weight: 600; font-size: 13px; }
.bd td.y { color: var(--oui-t); } .bd td.n { color: var(--non-t); }
body.cb .bd td.y { color: var(--oui-t); } body.cb .bd td.n { color: var(--non-t); }
.bd th[scope="row"] { font-weight: 600; }
.bd .dis { font-size: 13px; }
.cfbtn { color: var(--in); font-weight: 600; }
.cfbtn:hover { background: none; text-decoration: underline; }
.yn, .yn.oui, .yn.non { font-weight: 800; }
.yn.oui { background: var(--oui-t); } .yn.non { background: var(--non-t); }
.zc-ring i { border-color: var(--in); }
.zc-lens { box-shadow: none; }
/* La bulle « Touche un groupe pour l'agrandir » : une rangée pleine largeur centre la pastille, sans dépendre de la mesure du texte (Safari la décalait) */
.zc-msg { left: 0; right: 0; width: auto; max-width: none; transform: none; display: flex; justify-content: center; padding: 0 8px; background: none; border-radius: 0; box-shadow: none; }
.zc-msg b { display: block; max-width: 100%; text-align: center; font-weight: 700; background: var(--in); color: #fff; padding: 8px 14px; border-radius: 99px; }
@container (min-width: 861px) {
  /* Deux colonnes indépendantes : à gauche le titre puis le choix de votation, à droite la fiche du vote et l'hémicycle (.pside), dès le haut.
     La première rangée a pour hauteur exacte celle de l'en-tête : minmax(min-content, 0px) (un maximum fixe, donc l'excédent de la colonne de droite va
     entièrement à la seconde rangée, qui est intrinsèque ; avec « auto » comme minimum, le maximum fixe écraserait la hauteur de l'en-tête). */
  #p-cn:not([hidden]), #p-ce:not([hidden]) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: minmax(min-content, 0px) auto; column-gap: var(--pad); align-items: start; }
  #p-cn > .chamb-head, #p-ce > .chamb-head { grid-column: 1; grid-row: 1; }
  #p-cn > .chamb-head .ph, #p-ce > .chamb-head .ph { flex-direction: column; align-items: flex-start; gap: 8px; }
  #p-cn > .finder, #p-ce > .finder { grid-column: 1; grid-row: 2; position: sticky; top: calc(var(--toph, 0px) + 12px); max-height: calc(100vh - var(--toph, 0px) - 24px); display: flex; flex-direction: column; border-right: 1px solid var(--line); padding-right: var(--pad); }
  #p-cn > .finder .ctrls .field.grow, #p-ce > .finder .ctrls .field.grow { flex: 1 1 100%; }
  #p-cn > .finder .ctrls .field, #p-ce > .finder .ctrls .field { flex: 1 1 140px; }
  #p-cn > .finder .vlist, #p-ce > .finder .vlist { flex: 1 1 auto; min-height: 160px; max-height: none; scrollbar-width: thin; }
  #p-cn > .finder .more, #p-ce > .finder .more { flex: none; }
  #p-cn > .pside, #p-ce > .pside { grid-column: 2; grid-row: 1 / span 2; min-width: 0; margin-top: 8px; }
}

/* ---- Fiche d'un élu ---- */
.back, a.back { background: none; box-shadow: none; padding: 0; color: var(--mu); font-weight: 600; margin: 8px 0 20px; }
.back:hover { color: var(--in); box-shadow: none; }
.mp { background: none; border-radius: 0; padding: 0 0 24px; margin-top: 8px; border-bottom: 1px solid var(--line); grid-template-columns: 72px minmax(0, 1fr) auto; gap: 20px; }
.av { width: 72px; height: 72px; font-size: 24px; color: var(--in); box-shadow: none; position: relative; isolation: isolate; }
.av::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--cr); z-index: -1; }
.mp h1 { font-size: clamp(30px, 4.2cqi, 48px); }
.mp p { color: var(--mu); }
.mp > div > p:not(.succ) { font-size: clamp(18px, 1.8cqi, 22px); margin-top: 6px; }
.mp p .mflag { width: 1.05em; height: 1.05em; }
.mp .mshare { align-self: start; justify-self: end; margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mshare .report { margin-left: 0; }
.mflag { box-shadow: none; }
.canl { border-bottom-color: var(--line); } .canl:hover { color: var(--in); border-bottom-color: var(--in); }
.stats { gap: 0; margin: 28px 0 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mp + .stats, .mp + .lw { border-top: 0; padding-top: 0; }
.stats + .hist:not(.son) { border-top: 0; padding-top: 0; margin-top: 24px; }
.stat { background: none; border-radius: 0; padding: 0 var(--pad); box-shadow: none; display: flex; flex-direction: column; }
.stat:first-child { padding-left: 0; } .stat:last-child { padding-right: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: clamp(27px, 3cqi, 42px); color: var(--in); letter-spacing: -.02em; order: -1; margin-bottom: 6px; }
.stat span { font-size: 14px; color: var(--mu); }
.stat .mix { max-width: 200px; height: 6px; border-radius: 3px; margin-top: 8px; }
.hist { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.hist h2 { font-size: 21px; margin-bottom: 14px; }
.filt button { border: 1.5px solid var(--line); background: none; min-height: 36px; padding: 0 14px; font-weight: 600; font-size: 14px; color: var(--in); }
.filt button[aria-pressed="true"] { background: var(--in); color: var(--cr); border-color: var(--in); }
.hlist li { padding: 12px 0; }
.hlist li + li { border-top: 1px solid var(--line); }
.hlist .d { font-weight: 700; font-size: 14px; padding-top: 3px; white-space: nowrap; }
.hlist .t a { font-size: 15px; }
/* Fiche d'élu : toute la ligne d'un vote mène au vote (le titre s'étend sur la ligne) ; fond pierre au survol, sans soulignement */
.hlist li { position: relative; isolation: isolate; }
.hlist li::before { content: ""; position: absolute; inset: 2px -14px; border-radius: 14px; z-index: -1; transition: background .15s; }
.hlist li:hover::before, .hlist li:has(.t > a:focus-visible)::before { background: var(--pierre); }
.hlist .t > a, .hlist .t > a:hover { text-decoration: none; }
.hlist .t > a::after { content: ""; position: absolute; inset: 0; }
.hlist .hacts { position: relative; z-index: 1; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.hlist .t small { font-size: 13px; }
.hacts .hv, .hacts .lm { min-height: 28px; font-size: 13px; padding: 0 10px; }
.pos, .pos.Y, .pos.N, .pos.A, .pos.X, .pos.P, body.cb .pos.Y, body.cb .pos.N, body.cb .pos.A { background: none; border: 1.5px solid currentColor; padding: 2px 10px; font-weight: 700; font-size: 13px; }
.pos.Y, body.cb .pos.Y { color: var(--oui-t); } .pos.N, body.cb .pos.N { color: var(--non-t); } .pos.A, .pos.X, .pos.P, body.cb .pos.A { color: var(--mu); }
.pos.dis { box-shadow: 0 0 0 2px var(--cr), 0 0 0 3.5px var(--in); }
.box.hist.son { background: none; border: 0; border-left: 3px solid var(--in); border-radius: 0; padding: 4px 0 4px 20px; margin: 28px 0 0; }
.box.son h2 { display: block; border: 0; background: none; padding: 0; font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--mu); font-family: var(--fb); }
.son .hlist li { padding-block: 8px 4px; }
.son .hlist .t a { font-size: 27px; }
.son .hlist .t small { font-size: 16px; }
.son .pos.Y, body.cb .son .pos.Y { background: var(--oui-t); color: #fff; border-color: var(--oui-t); }
.son .pos.N, body.cb .son .pos.N { background: var(--non-t); color: #fff; border-color: var(--non-t); }
.son .pos.A, body.cb .son .pos.A { background: var(--mu); color: #fff; border-color: var(--mu); }
.son .pos.X, .son .pos.P { background: none; color: var(--in); border-color: var(--in); }
.son .hlist .pos { font-size: 18px; padding: 6px 16px; }
.son .hlist .t .lm, .son .hlist .t a.hv { font-size: 14px; padding: 0 14px; min-height: 34px; }
.lw { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0 0; margin-top: 28px; box-shadow: none; }
.lw h2 { color: var(--in); font-size: 21px; }
.lw > p:not(.lw-notice) { color: var(--mu); }
/* Lobbywatch : les deux encadrés (avertissement et note de l'aperçu) en jaune pâle, le bouton au bleu nuit de Lobbywatch */
.lw .lw-notice { background: #fff8e7; border: 1px solid #f2d18b; color: #5a3f00; border-radius: 10px; }
.lw .btn.vi { background: #182544; color: #fff; border-color: #182544; } .lw .btn.vi:hover { background: #2d5ba6; border-color: #2d5ba6; color: #fff; }
.lw .btn.ghost { background: none; color: var(--in); box-shadow: none; border: 1.5px solid var(--line); } .lw .btn.ghost:hover { box-shadow: none; border-color: var(--in); }
.lw-act { flex-direction: row; flex-wrap: wrap; align-items: center; }
.lw-p { border: 1.5px solid var(--line); border-radius: 12px; }
.lw-p .lw-warn, .lw-warn { background: #fff8e7; color: #5a3f00; border-bottom: 1px solid #f2d18b; }
.lw h2 > span[aria-hidden], .lw .lw-notice > span[aria-hidden], .lw .btn > span[aria-hidden] { display: none; }

/* ---- Agir : la votation, puis les trois rendez-vous, puis « Qui me représente ? » et les autres façons d'agir ---- */
/* Agir : les trois compteurs (signatures, session, élections) sur une ligne, chacun une case cliquable sans bouton */
#p-agir > .sec { margin-top: 0; padding-top: 28px; border-top: 0; }
#p-agir > .sec > h2 { font-size: 27px; margin-bottom: 20px; }
.ag-grid { gap: 0; }
.ag.box, .ag { background: none; padding: 0 var(--pad); border-left: 1px solid var(--line); border-top: 0; margin-top: 0; }
.ag:first-child { padding-left: 0; border-left: 0; } .ag:last-child { padding-right: 0; }
.ag-i { display: none; }
.ag h2 { font-size: 21px; margin: 0 0 6px; }
.ag p { color: var(--mu); font-size: 15px; }
.ag .ag-a { padding-top: 14px; }
.ag-el { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.ag-elh .big { color: var(--in); font-size: clamp(34px, 4cqi, 54px); text-align: left; min-width: 0; }
.ag-elh .big small { color: var(--mu); font-size: 14px; }
.ag-elh h2, .ag-el h2 { font-size: 21px; }

/* ---- Prochaine votation : objets dépliables, séparés par des filets ---- */
.cal-hero, .vt-hero, .ag-hero { background: none; border-radius: 0; padding: 0 0 24px; margin: 8px 0 28px; border-bottom: 1px solid var(--line); }
/* Agir : le titre « Agir » reste dans la page pour les lecteurs d'écran, sans être affiché */
.cal-hero.ag-hero { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; border: 0; }
/* Parcours : les liens des sources ont une hauteur cliquable de 24 px */
.pc-src li { padding: 2px 0; } .pc-src a { display: inline-block; min-height: 24px; line-height: 24px; }
.cal-hero h1 { font-size: clamp(34px, 4.6cqi, 60px); margin: 0 0 10px; }
.cal-hero h1:last-child { margin-bottom: 0; }
#p-parcours > .ph { margin-bottom: 20px; }
.jeu-h { justify-content: flex-start; text-align: left; } /* le titre « Avec qui je vote ? » à gauche, comme les autres titres */
.cal-hero p { color: var(--mu); max-width: 60ch; }
/* Prochaine votation : titre et date (en rouge, la couleur des jours de votation du calendrier) à gauche, « dans 21 jours » à droite, aussi haut que les deux lignes */
.vt-hero { --h1: clamp(34px, 4.6cqi, 60px); --dt: clamp(22px, 3cqi, 38px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; column-gap: clamp(20px, 3cqi, 40px); }
.cal-hero.vt-hero h1 { font-size: var(--h1); line-height: 1.05; margin: 0; }
.vt-hero .vt-hl { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.vt-hero .vt-date { color: var(--rouge); font-family: var(--fd); font-size: var(--dt); font-weight: 800; line-height: 1.1; margin: 8px 0 0; display: block; }
body.cb .vt-hero .vt-date { color: #a84600; }
.vt-hero .vt-count { margin: 0; max-width: none; font-family: var(--fd); font-weight: 800; font-size: calc(1.05 * var(--h1) + 1.1 * var(--dt) + 8px); line-height: 1; color: var(--in); white-space: nowrap; display: block; align-self: center; letter-spacing: -.01em; }
.vt-count b { font-weight: inherit; color: inherit; }
.vt-hero .pill, .vb-n .pill, .vt .ophead .tag, .ophead .tag, .ocard .tag, .sg-t .pill.tag, .sec > h2 .pill { background: none; border: 1.5px solid var(--line); color: var(--mu); font-family: var(--fb); font-weight: 600; font-size: 13px; padding: 2px 10px; }
.vt-cd, .vb-d .vt-cd, .top .vt-cd { transform: none; position: static; margin: 0 0 0 8px; }
.vt-list { gap: 0; border-bottom: 1px solid var(--line); }
.opanel, .opanel.vt { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 0; margin: 0; }
.vt .ophead { padding: 20px 0; margin: 0; border-radius: 0; position: relative; isolation: isolate; }
/* Survol d'une ligne cliquable : pas de soulignement, un fond pierre derrière la ligne (comme les cases de l'accueil) */
.vt .ophead::before { content: ""; position: absolute; inset: 6px -14px; border-radius: 14px; z-index: -1; transition: background .15s; }
.vt .ophead:hover::before { background: var(--pierre); }
.vt .ophead:hover h2 { color: var(--in); }
.vt .ophead h2 { font-size: 21px; }
.vt-n { background: none; border: 1.5px solid var(--in); color: var(--in); }
.vt .dbtn, .dbtn, .ocard .dbtn[aria-expanded="true"], .vt .dbtn:hover, body.cb .dbtn { background: none; border: 1.5px solid var(--line); box-shadow: none; color: var(--in); }
.vt .dbtn:hover, .dbtn:hover { border-color: var(--in); background: var(--in); color: var(--cr); }
.vt .avis > .cf { border-top: 1px solid var(--line); }
.vt .avis > .cf > .dt { font-size: 24px; }
.vt .avis > .cf > .dd .yn { font-size: 21px; padding: 3px 18px; }
.vt .avis .dd .sc { color: var(--mu); }
.mot, .mot.wait, .vt .mot, .vt .mot.wait { background: none; border: 1.5px solid var(--line); box-shadow: none; outline: 0; }
.mot.wait { border-style: dashed; }
.mot em.oui { color: var(--oui-t); } .mot em.non { color: var(--non-t); }
.avnote, .srcnote { color: var(--mu); }
.vt-det { padding-bottom: 20px; }
.vt-off { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.vt-off h2 { font-size: 21px; }

/* ---- Calendrier ---- */
.cal-tabs { background: none; border: 1.5px solid var(--in); padding: 2px; gap: 0; }
.cal-tabs button { min-height: 32px; padding: 0 16px; font-weight: 700; color: var(--in); }
.cal-tabs button[aria-pressed="true"] { background: var(--in); color: var(--cr); }
.cal-lg { font-size: 14px; }
.key { border-radius: 4px; }
.key.ord, .days .ord, body.cb .days .ord, body.cb .key.ord { background: var(--in); color: var(--cr); }
.key.spe, .days .spe, body.cb .key.spe, body.cb .days .spe { background: none; outline: 0; box-shadow: inset 0 0 0 1.5px var(--in); color: var(--in); }
.key.vote, .days .vote { background: var(--rouge); color: #fff; }
body.cb .key.vote, body.cb .days .vote { background: var(--non-t); color: #fff; }
.key.elect, .days .elect, body.cb .key.elect, body.cb .days .elect { background: var(--in); color: var(--cr); }
.key.today, .days .today, body.cb .key.today, body.cb .days .today { background: none; box-shadow: inset 0 0 0 1.5px var(--rouge); }
.days span { border-radius: 6px; }
.days .we { color: var(--mu); }
.days .we.vote { color: #fff; }
.month h2 { font-size: 17px; }
/* Dates passées : grisées par la couleur, pas par la transparence, pour rester lisibles */
.crow.past { opacity: 1; }
.crow.past .cdate, .crow.past .ctitle, .crow.past .csub, .crow.past li, .crow.past .cpill { color: #6b7076; }
.crow.past .cpill { border-color: var(--line); background: none; }
.crow.past .key { opacity: .55; }
.kchip.off { opacity: 1; color: #6b7076; border-color: var(--line); }
.cal-list h2, .cal-src h2, .sigs h2, .legal h2, .ap-faq h2, .ap-err h2 { font-size: 21px; }
.cal-box, .cal-list, .cal-src { margin-bottom: 0; }
.cal-list, .cal-src, .sigs { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; }
/* Sur la page Initiatives, le bloc des signatures ouvre la page : pas de filet sous le menu, un filet avant les deux compteurs */
#p-agir .sigs { border-top: 0; padding-top: 8px; margin-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
#p-agir .sigs > h2 { font-size: clamp(34px, 4.6cqi, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -.015em; margin: 0 0 24px; } /* le titre visible de la page, à la taille des autres onglets */
.crow { border-top: 1px solid var(--line); padding: 14px 0; }
.crow:last-child { border-bottom: 1px solid var(--line); }
.cdate { font-family: var(--fd); font-size: 15px; }
.csub { color: var(--mu); font-size: 15px; }
.cpill, .cpill.future, .cpill.now, body.cb .cpill.now { background: none; border: 1.5px solid var(--line); color: var(--mu); font-weight: 600; }
.cpill.future { border-color: var(--in); color: var(--in); }
.cpill.now, body.cb .cpill.now { border-color: var(--oui-t); color: var(--oui-t); }
.cnote { color: var(--mu); }

/* ---- Signatures en cours ---- */
.sg-in { color: var(--mu); }
.sg-fed, .sg-kant { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0 0; margin: 14px 0 0; }
/* Fédéral et Cantonal : même résumé cliquable, même bouton rond, même fond gris au survol */
.sg-fed > summary, .sg-kant > summary { list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; position: relative; isolation: isolate; padding: 10px 56px 10px 2px; min-height: 40px; }
.sg-kant > summary::-webkit-details-marker { display: none; }
.sg-kant > summary .sg-sub { flex-basis: 100%; order: 3; }
.sg-fed > summary::before, .sg-kant > summary::before { content: ""; position: absolute; inset: 2px -14px; border-radius: 14px; z-index: -1; transition: background .15s; }
.sg-fed > summary:hover::before, .sg-kant > summary:hover::before { background: var(--pierre); }
.sg-fed > summary::after, .sg-kant > summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 40px; height: 40px; margin: -20px 0 0; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6' fill='none' stroke='%23121a22' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat; font-size: 0; color: var(--in); transition: transform .2s, background-color .15s, border-color .15s; }
.sg-fed:not([open]) > summary::after, .sg-kant:not([open]) > summary::after { transform: none; }
.sg-fed[open] > summary::after, .sg-kant[open] > summary::after { transform: rotate(180deg); }
.sg-fed > summary:hover::after, .sg-kant > summary:hover::after { background-color: var(--in); border-color: var(--in); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6' fill='none' stroke='%23fbfaf7' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.sg-sum .c, .sg-khead .c, .kchip .c, .sg-tabs .c { background: var(--pierre); color: var(--in); }
.sg-sub { color: var(--mu); }
.sg-list { gap: 0; border-top: 1px solid var(--line); margin-top: 8px; }
.sg { background: none; border-radius: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sg-m { font-size: 15px; } .sg-m b, .sg-left { color: var(--in); }
.sg.soon .sg-m b, .sg.soon .sg-left { color: var(--non-t); }
.sg-bar { background: var(--pierre); max-width: 420px; } .sg-bar i { background: var(--in); } .sg.soon .sg-bar i { background: var(--no); }
.sg-tog { border: 1.5px solid var(--line); background: none; color: var(--in); min-height: 30px; padding: 0 12px; }
.sg-tog:hover { border-color: var(--in); }
.kchip { border: 1.5px solid var(--line); background: none; color: var(--in); }
.kchip[aria-pressed="true"] { background: var(--in); border-color: var(--in); color: var(--cr); }
.kchip[aria-pressed="true"] .c { background: var(--cr); color: var(--in); }
.qe-dd a, .pc-link, .olinks a, .plist .ex a, .cq-step, .g-how summary, .sg-m b { color: var(--in); }

/* ---- Qui me représente ? ---- */
.flags { gap: 10px 6px; margin: 24px 0 32px; }
.flags a { border-radius: 10px; font-family: var(--fd); font-size: 12px; gap: 6px; }
.flags img { border-radius: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.15); max-width: 48px; }
.flags a:hover { background: var(--pierre); color: var(--in); }
.flags a[aria-current] { background: none; color: var(--in); box-shadow: inset 0 0 0 1.5px var(--in); }
.pick-hint { font-weight: 500; }
.cout .box { margin-top: 0; }
.chead { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chead .cflag { box-shadow: none; border-radius: 8px; }
.chead h2 { font-size: clamp(27px, 3cqi, 34px); }
.csec { margin-top: 28px; padding-top: 0; border-top: 0; }
.csec + .csec { border-top: 0; padding-top: 0; }
.csec h3 { text-transform: none; letter-spacing: 0; font-size: 21px; color: var(--in); margin-bottom: 6px; }
.seatline { margin: 10px 0 4px; }
.explain { font-size: 15px; }
.mpgrid { gap: 0 var(--pad); border-top: 1px solid var(--line); }
.mpc { background: none; border-radius: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.mpc { position: relative; isolation: isolate; } .mpc::before { content: ""; position: absolute; inset: 2px -12px; border-radius: 12px; z-index: -1; transition: background .15s; }
.mpc:hover { background: none; } .mpc:hover::before, .mpc:focus-visible::before { background: var(--pierre); }
.mpc .arw { color: var(--mu); }
.mpc small { font-weight: 500; }

/* ---- Avec qui je vote ? ---- */
.g-intro, .g-body { padding: 26px 0; }
.g-intro h2 { font-size: clamp(27px, 3.4cqi, 42px); }
.g-tags span { background: none; border: 1.5px solid var(--line); color: var(--mu); font-weight: 600; }
.g-modes button { border: 1.5px solid var(--line); background: none; border-radius: 14px; text-align: left; padding: 14px; }
.g-modes button[aria-pressed="true"] { border-color: var(--in); box-shadow: inset 0 0 0 1px var(--in); background: none; }
.g-ths button { border: 1.5px solid var(--line); background: none; min-height: 32px; padding: 0 12px; color: var(--in); }
.g-ths button[aria-pressed="true"] { background: var(--in); color: var(--cr); border-color: var(--in); }
.gdots i { background: var(--line); } .gdots i.done { background: var(--in); } .gdots i.now { background: var(--cr); box-shadow: inset 0 0 0 1.5px var(--in); }
.g-q { font-size: clamp(24px, 3cqi, 34px); }
.pick, .pick.yes, .pick.no, .bet-btns .pick { background: none; box-shadow: none; border-radius: 99px; padding: 12px 10px; font-size: 18px; border: 1.5px solid var(--in); color: var(--in); }
.pick.yes { border-color: var(--oui-t); color: var(--oui-t); } .pick.no { border-color: var(--non-t); color: var(--non-t); }
.pick:hover { transform: none; } .pick.yes:hover { background: var(--oui-t); color: #fff; } .pick.no:hover { background: var(--non-t); color: #fff; }
.said.Y { color: var(--oui-t); } .said.N { color: var(--non-t); }
.g-count b { color: var(--in); }
.g-camp.win { background: none; border: 1.5px solid var(--in); } .g-camp.lose { background: none; border: 1.5px solid var(--line); color: var(--mu); }
.twin { background: none; padding: 22px 0; border-top-width: 6px; }
.twin small { color: var(--mu); text-transform: none; letter-spacing: 0; font-size: 15px; }
.tw-p { font-weight: 600; }
.badges span { background: none; border: 1.5px solid var(--line); border-radius: 12px; }
.flagrow button { background: none; border: 1.5px solid var(--line); }
.flagrow button.on { background: var(--in); color: var(--cr); border-color: var(--in); }
.closest a { background: none; border-radius: 0; border-bottom: 1px solid var(--line); padding: 9px 0; font-weight: 600; }
.closest a { position: relative; isolation: isolate; } .closest a::before { content: ""; position: absolute; inset: 2px -12px; border-radius: 12px; z-index: -1; transition: background .15s; }
.closest a:hover { background: none; } .closest a:hover::before, .closest a:focus-visible::before { background: var(--pierre); }
.closest b { color: var(--in); } .closest small { font-weight: 500; }
.g-keep input { accent-color: var(--in); }
.g-intro .g-last { background: var(--pierre); border-radius: 10px; }
/* Écran de réponse : question et verdict plus grands ; « Question suivante » est une flèche à droite de l'hémicycle, « Couleurs adaptées » est posé à côté de l'hémicycle */
.game .g-q.sm { font-size: clamp(22px, 2.8cqi, 30px); line-height: 1.2; margin-top: 0; }
.said, .g-q.sm .said { font-size: 17px; margin-top: 6px; }
.game .g-camp { font-size: 20px; padding: 8px 20px; margin-top: 12px; }
.g-hemi { position: relative; }
.g-hemi > .cbtn { position: absolute; top: 0; right: 76px; z-index: 2; }
.g-next { position: absolute; top: 8px; bottom: 0; right: 0; width: 56px; border: 1.5px solid var(--in); border-radius: 14px; background: none; color: var(--in); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s, color .15s; }
.g-next svg { width: 30px; height: 30px; }
.g-next:hover, .g-next:focus-visible { background: var(--in); color: var(--cr); }
.g-next-txt { display: none; }
@container (max-width: 760px) {
  .g-next { display: none; } .g-next-txt { display: inline-flex; }
  .g-hemi { display: flex; flex-direction: column; } .g-hemi > .cbtn { position: static; order: -1; align-self: flex-end; margin: 0 0 10px; }
}
.mhemi.mine circle.hl { stroke: var(--in); }
/* Le bouton « Couleurs adaptées » du jeu n'apparaît que sur l'écran de réponse, à côté de l'hémicycle (celui de l'en-tête reste disponible partout) */
.gwrap > .cbtn { display: none; }

/* ---- Comment naît une loi ? ---- */
.pc-switch { display: inline-flex; border: 1.5px solid var(--in); border-radius: 99px; padding: 2px; gap: 0; }
.pc-switch button { min-height: 36px; padding: 0 16px; font-size: 15px; color: var(--in); font-weight: 700; }
.pc-switch button[aria-pressed="true"] { background: var(--in); color: var(--cr); }
.pc-track::before { border-top: 1.5px solid var(--line); }
.pc-fill { background: var(--in); height: 1.5px; top: 28px; }
.pc-station .dot { background: var(--cr); border: 1.5px solid var(--line); box-shadow: none; }
.pc-station.done .dot { border-color: var(--in); background: var(--cr); color: var(--in); }
.pc-station.cur .dot { background: var(--in); color: var(--cr); border-color: var(--in); transform: none; }
.pc-icon { background: none; border: 1.5px solid var(--line); color: var(--in); }
.pc-step { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.pc-panel h2 { font-size: clamp(27px, 3cqi, 36px); }
.pc-text { font-size: 17px; }
.pc-who { background: none; border: 1.5px solid var(--line); font-weight: 600; }
/* Qui agit ? Conseil fédéral en rouge, Parlement en gris clair, cantons en vert (bleu en couleurs adaptées) */
.pc-who.parl i { background: #c3c7cc; }
.pc-who.cf i, body.cb .pc-who.cf i { background: var(--rouge); }
.pc-who.canton i { background: var(--oui-t); }
.pc-nav { border-top: 1px solid var(--line); }
.pc-viz { background: none; border: 1.5px solid var(--line); border-radius: 14px; }
.pc-big b { color: var(--in); }
.pc-box, .pc-ch, .pc-ok, .pc-br, .pc-q { background: none; box-shadow: none; border: 1.5px solid var(--line); border-radius: 12px; }
.pc-q { border-color: var(--in); }
.pc-res { background: var(--in); color: var(--cr); border-radius: 12px; }
.pc-arrows svg { color: var(--in); }
.pc-bar { background: var(--pierre); }
.pc-cant i { background: var(--pierre); }
.pc-br.no b { color: var(--in); }
.pc-row { border-radius: 0; padding: 12px 0; }
.pc-row + .pc-row { border-top: 1px solid var(--line); }
.pc-row { position: relative; isolation: isolate; } .pc-row::before { content: ""; position: absolute; inset: 4px -14px; border-radius: 14px; z-index: -1; transition: background .15s; }
.pc-row:hover { background: none; } .pc-row:hover::before, .pc-row:focus-visible::before { background: var(--pierre); }
.pc-row .n { background: none; border: 1.5px solid var(--in); color: var(--in); }
.pc-sum { padding: 0; }
.pc-gloss { gap: 0 var(--pad); border-top: 1px solid var(--line); margin-bottom: 36px; }
.pc-term, .pc-term:nth-child(3n+1), .pc-term:nth-child(3n+2), .pc-term:nth-child(3n) { background: none; box-shadow: none; border-radius: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pc-term h3 { font-size: 17px; } .pc-term p { color: var(--mu); font-size: 15px; }
.plist li, .plist li:nth-child(3n+1), .plist li:nth-child(3n+2), .plist li:nth-child(3n) { background: none; box-shadow: none; border-radius: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plist i { background: none; border: 1.5px solid var(--in); color: var(--in); box-shadow: none; }
.cq-bar { background: var(--line); } .cq-bar i { background: var(--in); }
.cq-o { border: 1.5px solid var(--line); background: none; border-radius: 12px; }
.cq-o:hover:not(:disabled) { border-color: var(--in); }
.cq-o.good, body.cb .cq-o.good { border-color: var(--oui-t); background: none; box-shadow: inset 0 0 0 1px var(--oui-t); }
.cq-o.bad, body.cb .cq-o.bad { border-color: var(--non-t); background: none; box-shadow: inset 0 0 0 1px var(--non-t); }
.why { background: var(--pierre); border-radius: 10px; }
.cq-score { color: var(--in); }
.qe-b, .qe-b.peuple, .qe-b.cn, .qe-b.ce, .qe-b.cf, .qe-b.tf, .qe-b.ch { background: none; border: 1.5px solid var(--line); border-radius: 14px; }
/* Qui élit qui ? : le peuple sur toute la largeur des deux conseils, « élit » plus grand, les cases qui mènent quelque part ont une flèche */
.qe-b.peuple { border-color: var(--in); max-width: none; width: 100%; margin: 0; }
.qe-arr span::before { height: 22px; }
.qe-b b .arw { width: 16px; height: 16px; display: inline-block; vertical-align: middle; margin: -2px 0 0 6px; transition: transform .15s; }
a.qe-b:hover b .arw, a.qe-b:focus-visible b .arw { transform: translate(2px, -2px); }
a.qe-b:hover { box-shadow: none; transform: none; border-color: var(--in); }
.qe-arr { color: var(--in); text-transform: none; letter-spacing: 0; font-size: 17px; font-weight: 700; }
.qe-arr span::before { background: var(--line); } .qe-arr span::after { border-top-color: var(--mu); }
.qe-af { border: 1.5px dashed var(--line); background: none; }
.qe-dd { background: var(--pierre); border-radius: 10px; }
.aj-cf li { background: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 7px 0; }

/* ---- À propos, mentions ---- */
.ap-v { gap: 0; margin-bottom: 0; }
.ap-v .box { padding: 0 var(--pad); border-top: 0; margin-top: 0; border-left: 1px solid var(--line); }
.ap-v .box:first-child { padding-left: 0; border-left: 0; } .ap-v .box:last-child { padding-right: 0; }
.ap-v span { display: none; }
.ap-v h2 { font-size: 21px; margin: 0 0 6px; }
.ap-v p { font-size: 15px; }
.ap-faq, .ap-err { margin: 32px 0 0; border-top: 1px solid var(--line); padding-top: 24px; }
.ap-faq details { border-top: 1px solid var(--line); padding: 0; }
.ap-faq details:last-child { border-bottom: 1px solid var(--line); }
.ap-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; font: 800 22px/1 var(--fd); color: var(--mu); flex: none; }
.ap-faq details[open] summary::after { content: "–"; }
.ap-faq details p { margin: 0 0 16px; color: var(--mu); }
.ap-err .report { border: 1.5px solid var(--in); min-height: 48px; padding: 0 20px; font-size: 16px; color: var(--in); gap: 9px; }
.ap-err .report:hover { background: var(--in); color: var(--cr); }
.legal { font-size: 16px; }
.legal a { color: var(--in); }
.legal + .legal { border-top: 1px solid var(--line); padding-top: 24px; }

/* ---- Pied de page : encre, pleine largeur ---- */
.foot { background: var(--in); box-shadow: 0 0 0 100vmax var(--in); clip-path: inset(0 -100vmax); color: #cfd4d9; border: 0; border-radius: 0; margin: clamp(28px, 4vw, 48px) 0 0; padding: 36px 0 44px; font-size: 17px; line-height: 1.5; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 56px; text-align: left; align-items: start; }
.foot p { max-width: none; }
.foot strong, .foot a { color: #fff; }
.foot #foot-date { color: #cfd4d9; font-size: 16px; }
.foot .foot-links { grid-column: 2; grid-row: 1 / span 2; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.foot .foot-links a { padding: 4px 0; }

/* ---- Tablette et téléphone ---- */
@container (min-width: 861px) and (max-width: 1100px) {
  .ap-v { grid-template-columns: 1fr 1fr; }
  .ap-v .box:nth-child(odd) { border-left: 0; padding-left: 0; padding-right: var(--pad); }
  .ap-v .box:nth-child(even) { border-left: 1px solid var(--line); padding-left: var(--pad); padding-right: 0; }
  .ap-v .box:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
}
@container (max-width: 900px) {
  .ag-grid { grid-template-columns: 1fr; }
  .ag.box, .ag:first-child, .ag:last-child { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 20px; }
  .ag.box:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
}
@container (max-width: 860px) {
  .hx, .v-line, .duo, .trio, .trio.agir-first, #p-accueil .facts, .ap-v { grid-template-columns: 1fr; }
  .hx { gap: 28px; }
  .hx h1 { font-size: clamp(40px, 12.5cqi, 64px); }
  .hx h1.long { font-size: clamp(30px, 9.4cqi, 48px); }
  .lead { font-size: 18px; }
  .dernier { margin-top: 0; }
  .duo > *, .duo > * + *, .trio > *, .trio > * + *, .fact, .fact + .fact, .ap-v .box, .ap-v .box + .box { padding: 0; border-left: 0; }
  .duo > * + *, .trio > * + *, .fact + .fact, .ap-v .box + .box { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; }
  .fact, .fact + .fact { --fpl: 0px; --fpr: 0px; } .fact + .fact { --fpt: 28px; }
  .duo { gap: 12px; }
  .duo > .chx, .duo > .chx + .chx { border: 1.5px solid var(--line); margin-top: 0; padding: 18px 20px 20px; }
  .dernier { padding: 18px 20px 20px; }
  .cta { grid-template-columns: 1fr; gap: 10px; }
  .cta .btn { min-height: 56px; font-size: 17px; }
  .trio.agir-first { gap: 12px; }
  .trio.agir-first > .tool, .trio.agir-first > .tool + .tool { border: 1.5px solid var(--line); margin-top: 0; padding: 18px 20px 20px; }
  .v-line.vlt { padding: 18px 20px; gap: 12px; }
  .v-line .vl-cd { font-size: clamp(32px, 9cqi, 44px); }
  .vt-hero { grid-template-columns: 1fr; row-gap: 12px; }
  .vt-hero .vt-count { font-size: clamp(40px, 11cqi, 66px); }
  #p-cn:not([hidden]), #p-ce:not([hidden]) { display: flex; flex-direction: column; }
  #p-cn > .chamb-head, #p-ce > .chamb-head { order: 0; }
  #p-cn > .pside, #p-ce > .pside { order: 1; }
  #p-cn > .finder, #p-ce > .finder { order: 3; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
  .mpgrid { gap: 0; }
  .foot { grid-template-columns: 1fr; gap: 12px; font-size: 15px; }
  .foot #foot-date { font-size: 14px; }
  .foot .foot-links { grid-column: 1; grid-row: auto; justify-self: start; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 22px; text-align: left; }
}
@container (max-width: 760px) {
  .top { padding-top: 10px; padding-bottom: 0; gap: 8px 12px; }
  /* Le menu défile d'un bord à l'autre de l'écran ; la première pastille s'aligne sur le logo */
  .menu { gap: 0 2px; width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px 8px 4px; scroll-padding-inline: 4px 16px; }
  .menu a { padding: 7px 12px; font-size: 14px; }
  .stat, .stat:first-child, .stat:last-child { padding: 0; }
  .stat:nth-child(odd) { border-left: 0; padding-right: 16px; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
  .stat b { font-size: 30px; }
  .hemibox { margin-top: 0; }
}
@container (max-width: 640px) {
  /* Parlement : la pastille « n votes » sous le titre, au CN comme au CE */
  .chamb-head .ph { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mp { grid-template-columns: 72px minmax(0, 1fr); }
  .mp .mshare { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; margin-top: 0; }
  .hhead .cbtn { min-height: 34px; }
  .hhead > .grp { margin-left: 0; }
  .vrow { padding: 12px 8px 12px 10px; grid-template-columns: minmax(0, 1fr) auto; }
}
@container (max-width: 560px) {
  .score { gap: 0 18px; }
  .score > span { font-size: 13px; }
  .score b { font-size: 26px; }
  /* Dernier vote : la légende tient sur une seule rangée, chaque chiffre au-dessus de son libellé */
  .top { padding-top: max(10px, env(safe-area-inset-top, 0px)); }
  /* En-tête sur téléphone : le logo seul sur la première ligne ; les langues à gauche, « Votation J-21 » et l'œil à droite sur la deuxième ; le menu dessous */
  .top { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto auto; row-gap: 10px; }
  /* Téléphone : l'œil « Couleurs adaptées » sur la ligne du titre, le compte à rebours à côté des langues */
  .top .logo { grid-area: 1 / 1 / 2 / 3; }
  .top .langs { grid-area: 2 / 1; justify-self: start; }
  .top .cdv { grid-area: 2 / 2 / 3 / 4; justify-self: end; margin: 0; }
  .top > .cbtn { grid-area: 1 / 3; justify-self: end; align-self: center; }
  .top .menu { grid-area: 3 / 1 / 4 / -1; }
  .chamb-head { padding: 0 0 16px; }
  .son .hlist .t a { font-size: 21px; }
  .mp { grid-template-columns: 56px 1fr; gap: 14px; }
  .av { width: 56px; height: 56px; font-size: 20px; }
  .av::before { inset: 4px; }
  .vt .ophead { padding: 16px 0; margin: 0; }
  .opanel.vt { padding: 0; }
  /* Agir : la grille 36px du site de base n'a plus d'icône, on revient à un bloc simple */
  .ag.box, .ag:first-child, .ag:last-child { display: block; }
  .ag h2 { font-size: 20px; margin: 0 0 6px; }
  .ag .ag-a { padding-top: 12px; }
  /* En-tête : le bouton des couleurs redevient une simple icône */
  .top > .cbtn { font-size: 0; gap: 0; padding: 0 9px; min-height: 32px; }
  .top > .cbtn svg { width: 16px; height: 16px; }
}
@container (max-width: 480px) {
  .ph h1, .cal-hero h1, .cal-hero.vt-hero h1, #p-agir .sigs > h2 { font-size: 31px; }
  .cta { gap: 8px; } .cta .btn { flex: 1 1 0; justify-content: center; padding: 0 10px; font-size: 15px; }
}
@media (hover: none) { .hemi2.home .seat circle.o { transition: none; } }
@media (prefers-reduced-motion: reduce) { .hemi2.home .seat circle.o, .menu a, .btn { transition: none; } }
/* Parlement sur téléphone : le sélecteur Conseil national / Conseil des États fait double emploi avec « Parlement CN | CE » du menu */
/* Parlement : plus de second sélecteur Conseil national / Conseil des États sous le titre, le menu CN | CE suffit */
.chamb-head .switch { display: none; }

/* ---- Signatures : toute la ligne (titre, canton, délai) ouvre ou masque le détail ; fond pierre au survol, comme les autres lignes ---- */
.sg-head { position: relative; isolation: isolate; cursor: pointer; }
.sg-head::before { content: ""; position: absolute; inset: -8px -14px; border-radius: 14px; z-index: -1; transition: background .15s; }
.sg-head:hover::before { background: var(--pierre); }
.sg-head .sg-tog { position: relative; z-index: 1; }
/* ---- Pari du jour : légende en pastilles et marques des sièges comme l'hémicycle ---- */
.bet-lg { gap: 6px 8px; margin-top: 14px; font-size: 13px; color: var(--in); }
.bet-lg > span { gap: 6px; border: 1.5px solid var(--line); border-radius: 99px; min-height: 30px; padding: 0 12px 0 7px; font-weight: 600; }
.bet-lg .c { color: var(--mu); font-weight: 500; }
.bet-lg i { width: 14px; height: 14px; position: relative; }
.bet-lg i.n::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.bet-lg i.x::before, .bet-lg i.x::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 1.6px; border-radius: 2px; background: #6b737b; transform: rotate(45deg); }
.bet-lg i.x::after { transform: rotate(-45deg); }
.bet-lg .cbonly { display: none; } body.cb .bet-lg .cbonly { display: inline; margin-left: -3px; }
body.cb .bet-lg i.a::after { content: ""; position: absolute; left: 3px; right: 3px; top: 6px; height: 2px; border-radius: 2px; background: #3c4650; }
.mhemi .abl { display: none; } body.cb .mhemi .abl { display: inline; }
/* ---- Infobulle de l'hémicycle : c'est le script qui la cache au doigt ; une souris branchée sur un écran tactile la garde ---- */
@media (hover: none) { .tip { display: block; } }
/* ---- Mon canton : la consigne « Choisis un canton pour voir ses élus » plus grande et en encre ---- */
#p-canton .pick-hint { font-size: clamp(19px, 2cqi, 23px); line-height: 1.4; color: var(--in); margin: 28px auto 0; max-width: 40ch; }
/* ---- Hémicycle et carte : la pastille du groupe ou du canton agrandi remplace le bouton « Vue d'ensemble » ---- */
.ovw { display: none; }
.zlab { font: inherit; font-weight: 700; font-size: 13px; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.zlab::after { content: "×"; font-size: 16px; line-height: 1; margin-left: 2px; opacity: .75; }
.zlab:hover::after, .zlab:focus-visible::after { opacity: 1; }
.zlab, .hmap .zlab, .hstk > .zlab { pointer-events: auto; }
.hstk { z-index: 3; }
/* ---- En-tête de l'hémicycle sur ordinateur : titre puis pastille du groupe ou du canton ; « Couleurs adaptées » à droite ; « Regrouper par » sur la ligne du dessous, à droite ---- */
@container (min-width: 609px) {
  .hhead { justify-content: flex-start; }
  .hhead > .hstk { margin: 0 0 0 6px; order: 0; }
  .hhead > .cbtn, .hhead > .h-t + .cbtn { margin-left: auto; order: 1; }
  .hhead > .grp { order: 2; flex: 0 0 100%; display: flex; justify-content: flex-end; margin-left: 0; }
}

/* Signatures en cours (téléphone) : les pastilles des cantons passent à la ligne au lieu de défiler sur une seule ligne */
@media (max-width: 600px) {
  .kchips { flex-wrap: wrap; overflow: visible; padding-bottom: 0; margin-right: 0; }
}
/* Comment naît une loi ? (téléphone) : les étapes l'une sous l'autre, centrées, flèches vers le bas */
@container (max-width: 640px) {
  .pc-flow { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .pc-arr { line-height: 1; transform: rotate(90deg); }
}

/* ---- Carte des initiatives cantonales : le fond de carte de l'onglet Parlement, les pastilles des cantons posées dessus (écartées quand elles se chevauchent) ---- */
.kmap { position: relative; max-width: 820px; margin: 12px auto 0; }
.kmap .kmap-svg { display: block; width: 100%; height: auto; }
.kmap .kmap-svg .cant { fill: #fff; stroke: var(--line); stroke-width: .9; transition: fill .15s; }
.kmap .kmap-svg .cant[data-c] { cursor: pointer; }
@media (hover: hover) { .kmap .kmap-svg .cant[data-c]:hover { fill: var(--pierre); } }
.kmap .kmap-svg .cant.sel { fill: #e3e0d7; stroke: var(--in); stroke-width: 1.2; }
.kmap .kmap-svg .ch { stroke: #9aa3ab; stroke-width: 1.2; }
.kmap .kmap-svg .lake { fill: #e9eef2; stroke: #cbd6dd; }
.kmap .kmap-svg .riv { stroke: #cbd6dd; }
.kmap .kchips { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; }
.kmap .kchip { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); background: var(--cr); white-space: nowrap; pointer-events: auto; }
.kmap .kchip:hover { z-index: 3; }
.kmap .kchip[aria-pressed="true"] { background: var(--in); z-index: 2; }
@container (max-width: 640px) {
  .kmap .kchip { font-size: 11px; padding: 2px 6px 2px 4px; gap: 3px; }
  .kmap .kchip .chf { width: 12px; height: 12px; }
  .kmap .kchip .c { min-width: 16px; padding: 0 4px; font-size: 10px; }
}

/* ---- Résumé « Cantonal » : la silhouette de la Suisse en encre, à la place et à la taille du drapeau de « Fédéral » (case de 20 × 20 px) ---- */
.sg-sum .chmap { width: 20px; height: 20px; flex: none; }
.chmap .cant { fill: var(--in); stroke: var(--in); stroke-width: .5; stroke-linejoin: round; }
.chmap .ch { fill: none; stroke: var(--in); stroke-width: .8; stroke-linejoin: round; }
/* Phrase « Aucune initiative cantonale… » ou « pas de relevé » du canton choisi, en évidence */
.kpane .sg-none { font-size: 18px; font-weight: 700; color: var(--in); line-height: 1.35; }
/* Sur les petits écrans, les pastilles de la carte perdent leur drapeau pour laisser voir la carte */
@container (max-width: 480px) { .kmap .kchip .chf { display: none; } .kmap .kchip { padding: 2px 5px 2px 6px; min-height: 24px; } }

/* ---- Carte des cantons : les pastilles sans initiative (0) ou sans relevé (–) sont estompées ; le canton choisi et la pastille survolée restent pleins ---- */
.kmap .kchip.off, .kmap .kchip.zero { opacity: .35; color: var(--in); }
.kmap .kchip[aria-pressed="true"] { opacity: 1; color: var(--cr); }
@media (hover: hover) { .kmap .kchip.off:hover, .kmap .kchip.zero:hover { opacity: 1; } }

/* ---- Nos élus : la recherche (nom, chambre, groupe, anciens) et la liste des résultats ---- */
.efind .check { display: flex; align-items: center; gap: 8px; flex-basis: 100%; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--mu); cursor: pointer; }
.efind .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--in); }
.efind .lhead { margin: 14px 0 8px; }
.elist .mpc small .mflag { width: 14px; height: 14px; border-radius: 2px; vertical-align: -2px; margin-right: 4px; }
.elist .empty { color: var(--mu); margin: 8px 0; }
/* Fiche d'élu : recherche par titre, numéro d'objet et thème dans ses votes */
.hist .hsrch { margin: 0 0 12px; }
.hist .lhead { margin: 10px 0 2px; }
/* Les boutons « Afficher plus » cachés par le code (listes courtes) ne doivent pas rester visibles : la règle .btn { display: inline-flex } l'emportait sur l'attribut hidden, sur le site en ligne aussi */
.btn[hidden], .more[hidden] { display: none; }

/* ---- Accueil : barre de recherche (un élu ou un canton) entre la phrase et les deux boutons ---- */
.hfind { display: flex; align-items: center; gap: 8px; margin: clamp(20px, 2.6cqi, 30px) 0 0; padding: 5px 5px 5px 20px; border: 1.5px solid var(--in); border-radius: 99px; background: #fff; }
.hfind:focus-within { box-shadow: 0 0 0 3px var(--line); }
.hfind input { flex: 1 1 auto; min-width: 0; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 500; color: var(--in); min-height: 44px; padding: 0; outline: none; }
.hfind input::placeholder { color: var(--mu); opacity: 1; }
.hfind button { flex: none; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--in); border-radius: 50%; background: var(--in); color: var(--cr); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hfind button:hover, .hfind button:focus-visible { background: none; color: var(--in); }
.hfind button:focus-visible { outline: 2px solid var(--in); outline-offset: 2px; }
.hfind .loupe { width: 20px; height: 20px; }
@container (max-width: 480px) { .hfind { padding: 4px 4px 4px 16px; } .hfind input { font-size: 16px; } }
/* Page Élus : le canton reconnu dans le texte, et la mention des noms proches, en tête de la liste */
.elist .sugg, .elist .near { grid-column: 1 / -1; flex-basis: 100%; margin: 0 0 4px; color: var(--mu); font-size: 15px; line-height: 1.5; }
.elist .sugg a { color: var(--in); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--line); margin-right: 10px; white-space: nowrap; }
.elist .sugg a:hover { border-color: var(--in); }
.elist .sugg .mflag { width: 16px; height: 16px; border-radius: 3px; vertical-align: -3px; margin-right: 5px; }
/* Ancres (#agir/elections, #parcours/qui-elit, Signatures en cours) : la racine porte déjà scroll-padding-top (en-tête + 10 px) ; la marge de défilement posée en plus sur les cibles les faisait atterrir deux fois trop bas */
.sigs, #ancre-qui-elit, #ancre-aujourdhui, #ancre-elections { scroll-margin-top: 0; }

/* ======== Version 44 : revue UX et chargement en deux temps ======== */
/* ---- Chargement en deux temps : le bandeau d'accueil s'affiche avant les données, avec une barre d'attente ---- */
main:has(> .page:not([hidden]) > .sk) { min-height: 100vh; }
.sk-p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; color: var(--mu); font-weight: 600; margin-top: 18px; white-space: nowrap; }
.sk-bar { position: relative; flex: 1 1 160px; max-width: 220px; height: 4px; border-radius: 2px; background: var(--pierre); overflow: hidden; }
.sk-bar::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 2px; background: var(--in); animation: sk-glisse 1.2s ease-in-out infinite; }
@keyframes sk-glisse { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .sk-bar::after { animation: none; width: 100%; opacity: .35; } }

/* ---- Légende Oui / Non / Abstention : seulement quand un vote est affiché ---- */
.vleg[hidden] { display: none; }

/* ---- Chevron des liens internes : il glisse vers la droite au survol (« ↗ » reste pour les autres sites) ---- */
a:hover > .arw, a:hover .btn > .arw, a:focus-visible .arw, .vbig:hover .vb-go .arw,
.dernier:hover h2 .arw, .dernier h2 a.vlink:focus-visible .arw, .tool:hover h3 .arw, .tool:focus-visible h3 .arw,
.chx:hover h3 .arw, .chx:focus-visible h3 .arw, .v-line.vlt:hover h2 .arw, .v-line.vlt:focus-visible h2 .arw,
a.qe-b:hover b .arw, a.qe-b:focus-visible b .arw { transform: translateX(3px); }

/* ---- Lignes plus courtes sur ordinateur : notes et pages de texte ---- */
#p-apropos p, #p-apropos li, #p-mentions p, #p-mentions li { max-width: 56ch; }
.srcnote, .cnote { max-width: 64ch; }

/* ---- Fiche d'élu : les liens d'intérêts (Lobbywatch) après les chiffres, repliés sous leur titre ---- */
.lw summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.lw summary::-webkit-details-marker { display: none; }
.lw summary h2 { margin: 0; }
.lw summary::after { content: ""; width: 9px; height: 9px; border: solid var(--in); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -4px 8px 0 0; flex: none; transition: transform .15s; }
.lw[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.lw summary:focus-visible { outline: 2px solid var(--in); outline-offset: 4px; border-radius: 4px; }
.lw[open] summary { margin-bottom: 12px; }
.lw summary:hover h2 { text-decoration: underline; text-underline-offset: 4px; }

/* ---- Compte à rebours dans l'onglet « Prochaine votation » (téléphone seulement) ---- */
.menu a .jb { display: none; margin-left: 7px; font-family: var(--fd); font-weight: 800; font-size: 12px; line-height: 1; color: var(--in); background: var(--pierre); border-radius: 99px; padding: 4px 7px; }
.menu a[aria-current="page"] .jb { background: rgba(255,255,255,.22); color: var(--cr); }

/* ---- Téléphone et tablette : cibles tactiles du menu (44 px) et des sous-onglets (40 px), même aspect ---- */
@container (max-width: 760px) {
  .menu a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; }
  .menu .mparl.on a[data-p="parl"] { padding: 0 8px 0 0; }
  .menu .mparl.on .mk { min-height: 40px; display: inline-flex; align-items: center; padding: 0 11px; }
}

/* ---- Téléphone : en-tête sur deux rangées (logo et langues, puis le menu et le bouton des couleurs) ---- */
@container (max-width: 560px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 6px; column-gap: 10px; }
  .top .logo { grid-area: 1 / 1; font-size: 18px; min-height: 36px; }
  .top .langs { grid-area: 1 / 2; justify-self: end; margin: 0; }
  .top .cdv { display: none; }
  .top .menu { grid-area: 2 / 1; width: calc(100% + 16px); margin: 0 0 0 -16px; padding: 2px 8px 8px 4px; scroll-padding-inline: 4px 8px; }
  .top > .cbtn { grid-area: 2 / 2; justify-self: end; align-self: start; margin: 8px 0 0; }
  .menu a .jb { display: inline-block; }
}
@media (max-width: 359px) { .top .logo { font-size: 16px; } }

/* ---- Téléphone : un mois par rangée dans le calendrier, cases plus grandes ---- */
@container (max-width: 600px) {
  .cal-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .days { font-size: 14px; gap: 3px; }
  .days .dow { font-size: 12px; }
}

/* ---- Téléphone : « Avec qui je vote ? », le bouton de départ visible sans défiler ---- */
@container (max-width: 600px) {
  .g-intro { padding-top: 12px; }
  .g-intro .mhemi { max-width: 230px; }
  .g-intro h2 { font-size: 26px; margin-top: 16px; }
  .g-intro > p { font-size: 15px; }
  .g-modes { grid-template-columns: 1fr; gap: 6px; margin: 14px auto 8px; }
  .g-modes button { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; min-height: 44px; }
}

/* ---- Téléphone : cartes « Pour aller plus loin » plus basses (illustration de 120 px) ---- */
@container (max-width: 860px) {
  .trio.agir-first > .tool > .pict.sheet, .trio.agir-first > .tool > .pict.parl { max-width: none; }
  .trio.agir-first > .tool > .pict.sheet svg, .trio.agir-first > .tool > .pict.parl svg { width: auto; height: 120px; max-width: 100%; }
  .trio.agir-first > .tool > .cantons { max-width: 190px; }
  .trio.agir-first > .tool > .pict, .trio.agir-first > .tool > .cantons { margin-bottom: 12px; }
}

/* ---- Téléphone : pastilles des cantons sur la carte des initiatives, 36 px de haut, texte 12 px ---- */
@media (max-width: 600px) {
  .kmap .kchip { min-height: 36px; font-size: 12px; padding: 0 8px 0 6px; gap: 4px; }
  .kmap .kchip .chf { width: 14px; height: 14px; }
  .kmap .kchip .c { min-width: 18px; font-size: 11px; }
}
/* ======== Version 45 : sur téléphone, le menu devient une barre fixe en bas de l'écran ; logo, couleurs et langues tiennent sur une ligne en haut ======== */
/* Le fond de la barre : le gris du titre de l'accueil (--mu, #5a636d) éclairci vers le papier (de moitié, puis d'un quart : #bfc1c3), à 60 % d'opacité */
/* L'espace sous les onglets : 8 px, ou la zone du geste d'accueil des iPhone moins 12 px (les onglets restent au-dessus de l'indicateur, sans toute la zone en plus) */
:root { --bfond: rgba(191,193,195,.6); --bsurvol: rgba(18,26,34,.08); --barre-bas: max(8px, env(safe-area-inset-bottom, 0px) - 12px); }
@container (max-width: 560px) {
  .top { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto; column-gap: 8px; padding-bottom: 8px; }
  .top .logo { grid-area: 1 / 1; font-size: 15px; gap: 7px; min-height: 36px; }
  .top .logo .mark { width: 22px; height: 22px; }
  .top > .cbtn { grid-area: 1 / 2; justify-self: end; align-self: center; margin: 0; }
  .top .langs { grid-area: 1 / 3; justify-self: end; align-self: center; }
  /* La barre du menu : fixe en bas, défilante, au-dessus de la zone du geste d'accueil */
  .top .menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; width: auto; margin: 0; background: transparent;
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) var(--barre-bas) max(12px, env(safe-area-inset-left, 0px)); scroll-padding-inline: 12px; }
  /* Le fond de la barre : une couche fixe sous le menu, en gris clair translucide (la page est floutée derrière, pour que ce qui défile dessous ne gêne pas la lecture des onglets), qui la distingue de la page ; le menu reste transparent, et son fondu aux bords s'estompe vers ce gris. L'onglet actif garde sa pastille encre */
  .top::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; height: calc(52px + var(--barre-bas)); background: var(--bfond); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .menu a:not([aria-current="page"]):hover { background: var(--bsurvol); }
  .menu a .jb { background: rgba(255,255,255,.8); }
  .menu a[aria-current="page"] .jb { background: rgba(255,255,255,.22); }
  /* Le pied de page garde la place de la barre sous lui (.site est le conteneur de la requête : la marge va sur .foot) */
  .foot { margin-bottom: calc(60px + var(--barre-bas)); }
}
/* Téléphone en largeur et petite tablette (561 à 660 px) : le bouton des couleurs redevient une icône, pour que logo, pastille, bouton et langues tiennent sur une rangée */
@container (max-width: 660px) {
  .top > .cbtn { font-size: 0; gap: 0; padding: 0 9px; min-height: 32px; }
  .top > .cbtn svg { width: 16px; height: 16px; }
}
/* Le message « Lien copié » est hors de .site : requête sur la fenêtre */
/* Au clavier, un élément qui prend le focus en bas de page se cale au-dessus de la barre */
@media (max-width: 592px) { .toast { bottom: calc(72px + var(--barre-bas)); } html { scroll-padding-bottom: calc(62px + var(--barre-bas)); } }
@container (max-width: 335px) {
  .top .logo { font-size: 14px; }
  .langs button { min-width: 34px; padding: 0 7px; }
}
@container (max-width: 300px) { .top .logo .mark { display: none; } }

/* ======== Version 47 : sur téléphone, les onglets de la barre ont une icône au-dessus d'un libellé (comme les barres d'onglets des applications) ; les sous-onglets CN, CE et Élus deviennent un sélecteur collé sous l'en-tête des pages du Parlement et des fiches ======== */
.menu .mi { display: none; }
.mk-seg { display: none; }
@container (max-width: 560px) {
  /* La barre : des onglets de 80 px, icône au-dessus du libellé ; elle défile toujours de côté (huit onglets), avec le fondu des bords */
  .top .menu { padding: 4px max(8px, env(safe-area-inset-right, 0px)) var(--barre-bas) max(8px, env(safe-area-inset-left, 0px)); gap: 0; scroll-padding-inline: 8px; }
  .top::after { height: calc(62px + var(--barre-bas)); }
  .foot { margin-bottom: calc(70px + var(--barre-bas)); }
  .menu .mparl, .menu .mparl.on { display: contents; }
  .menu .mparl.on .mk { display: none; }
  .menu a, .menu .mparl.on a[data-p="parl"] { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; width: 80px; height: 58px; min-height: 0; padding: 4px 3px 2px; border-radius: 14px; font-size: 11px; line-height: 1.1; font-weight: 600; color: #3c4650; text-align: center; background: none; }
  .menu a:not([aria-current="page"]):hover { background: none; color: var(--in); }
  /* Les libellés inactifs sont en gris foncé #3c4650 (et non --mu) : sur le fond translucide, le contenu qui passe derrière assombrit la barre, et il faut garder 4,5:1 */
  /* L'onglet actif : libellé encre et gras, icône sur une pastille encre ; sur les pages du Parlement et les fiches, c'est l'onglet Parlement (l'état est porté par les sous-onglets cachés) */
  .menu a[aria-current="page"], .menu .mparl.on a[data-p="parl"] { background: none; color: var(--in); font-weight: 800; }
  .menu .mi { display: block; flex: none; width: 48px; height: 26px; padding: 1px 12px; border-radius: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
  .menu .mi .pt { fill: currentColor; stroke: none; }
  .menu a[aria-current="page"] .mi, .menu .mparl.on a[data-p="parl"] .mi { background: var(--in); color: var(--cr); }
  /* Le libellé : une ou deux lignes équilibrées */
  .menu .ml { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 76px; text-wrap: balance; }
  /* Le compte à rebours de la votation : une pastille rouge au coin de l'icône, comme les compteurs des applications */
  .menu a .jb, .menu a[aria-current="page"] .jb { position: absolute; top: 0; left: auto; right: 4px; margin: 0; display: inline-block; white-space: nowrap; background: var(--rouge); color: #fff; font-size: 10px; font-weight: 800; line-height: 1.3; padding: 1px 5px; border-radius: 99px; }
  /* Le sélecteur CN / CE / Élus en haut de la page : seul le bouton, dans le même gris translucide flouté que la barre, reste collé sous l'en-tête quand on descend (pas de bandeau ; la zone transparente autour laisse passer les touchers) */
  .mk-seg { display: block; position: sticky; top: var(--toph, 0px); z-index: 15; margin: 0 0 10px; padding: 8px 0; background: none; pointer-events: none; }
  .mk-pill { display: inline-flex; width: max-content; max-width: 100%; gap: 2px; padding: 4px; border-radius: 99px; background: var(--bfond); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: auto; }
  .mk-seg a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 99px; font-weight: 700; font-size: 14px; color: var(--in); text-decoration: none; }
  .mk-seg a[aria-current="page"] { background: var(--in); color: var(--cr); }
}
/* Les ancres et le focus tiennent compte du bandeau collé sous l'en-tête, et de la barre plus haute */
@media (max-width: 592px) { html:has(.page:not([hidden]) > .mk-seg) { scroll-padding-top: calc(var(--toph, 0px) + 58px); } }
@media (max-width: 592px) { .toast { bottom: calc(82px + var(--barre-bas)); } html { scroll-padding-bottom: calc(72px + var(--barre-bas)); } }
/* ======== Version 48 : sur téléphone, la barre fixe du menu n'est plus elle-même la zone qui défile de côté. Safari sur iPhone compose à part un élément fixe qui est aussi un conteneur de défilement masqué, et ne le tenait pas en place pendant le défilement de la page (les onglets disparaissaient, le fond gris restait). La barre est maintenant un simple cadre fixe ; le défilement horizontal, le fondu des bords et les marges passent à l'enfant .mscroll. Au-dessus de 560 px, .mscroll est une enveloppe transparente (display: contents) et rien ne change. ======== */
.mscroll { display: contents; }
@container (max-width: 560px) {
  .top .menu, .top .menu.fl, .top .menu.fr, .top .menu.fl.fr { display: block; overflow: visible; padding: 0; scroll-padding-inline: 0; -webkit-mask-image: none; mask-image: none; transform: translateZ(0); }
  .top .menu .mscroll { position: relative; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 4px max(8px, env(safe-area-inset-right, 0px)) var(--barre-bas) max(8px, env(safe-area-inset-left, 0px)); scroll-padding-inline: 8px; }
  .top .menu .mscroll::-webkit-scrollbar { display: none; }
  .top .menu .mscroll { touch-action: pan-y; } /* le défilement de côté au doigt est fait par app.js (lancée freinée) ; le défilement vertical de la page reste au navigateur */
  .menu.fl .mscroll { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
  .menu.fr .mscroll { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .menu.fl.fr .mscroll { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
}

/* Version 48 : fiche d'élu — sur téléphone, la date et le vote (« Oui · contre son groupe », « N’a pas voté ») partagent la première ligne et le titre prend toute la largeur : la colonne du titre ne pouvait plus se réduire et la ligne débordait de l'écran, ce qui faisait zoomer Safari en arrière */
@container (max-width: 640px) { .hlist li { grid-template-columns: minmax(0, 1fr) auto; } .hlist .d { grid-column: 1; } .hlist .pos { grid-column: 2; grid-row: 1; justify-self: end; } .hlist .t { grid-column: 1 / -1; } }
/* Version 48 : pari du jour — sur téléphone, les deux légendes (groupes, puis Oui / Non / Abstention / Absent) en sigles courts sans effectifs, 12 px, sans cadre, sur deux lignes au plus */
.bet-lg .sh { display: none; }
@container (max-width: 560px) {
  #bet .bet-lg { gap: 5px 12px; margin-top: 10px; }
  #bet .bet-lg > span { border: 0; min-height: 0; padding: 0; gap: 5px; font-size: 12px; font-weight: 700; color: var(--in); }
  #bet .bet-lg .c, #bet .bet-lg .lg { display: none; } #bet .bet-lg .sh { display: inline; }
  #bet .bet-lg i { width: 11px; height: 11px; }
  #bet .bet-lg i.n::after { inset: 3.5px; }
  #bet .bet-lg i.x::before, #bet .bet-lg i.x::after { left: 2px; right: 2px; top: 4.7px; height: 1.6px; }
  body.cb #bet .bet-lg i.a::after { left: 2px; right: 2px; top: 4.5px; }
}

/* ======== Version 49 : au toucher, l'infobulle d'un siège porte une ligne d'aide (« Touche encore pour ouvrir sa fiche ») ; au survol à la souris, rien ne change ======== */
.tip .again { margin-top: 5px; font-size: 12px; font-weight: 500; opacity: .8; }
/* Version 49, téléphones de moins de 360 px : le compte de la page votation (« c’est aujourd’hui » le jour du vote) et la ligne du score
   du dernier vote sur l'accueil (en allemand : « Enthaltungen », « Abwesende ») tiennent dans la largeur ; au-dessus, rien ne change */
@media (max-width: 359px) {
  .vt-hero .vt-count { font-size: clamp(32px, 11cqi, 66px); }
  .dernier .score { gap: 0 12px; }
  .dernier .score > span { font-size: 12px; }
}

/* Nos élus : la recherche sous le titre, puis les drapeaux (filtre par canton) ; l'en-tête de la liste */
#p-canton .efind { margin: 6px 0 0; gap: 14px 12px; }
#p-canton .efind .check { min-height: 36px; }
#p-canton .efind .field.grow { flex: 3 1 200px; }
#p-canton .efind .field.fp { flex: 1 1 160px; }
/* La chambre : deux boutons côte à côte ; enfoncé = compris dans la recherche (les deux au départ) */
#p-canton .efind .chs { flex: 1 1 100%; }
#p-canton .efind .seg { display: flex; flex-wrap: wrap; gap: 16px; }
#p-canton .efind .chb { flex: 1 1 auto; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 99px; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--in); cursor: pointer; }
#p-canton .efind .chb:hover { background: var(--pierre); }
#p-canton .efind .chb[aria-pressed="true"], #p-canton .efind .chb[aria-pressed="true"]:hover { background: var(--in); color: var(--cr); border-color: var(--in); }
#p-canton .lhead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; }
#p-canton .lhead .allc { font-weight: 700; color: var(--in); text-decoration: none; border-bottom: 1.5px solid var(--line); }
#p-canton .lhead .allc:hover { border-color: var(--in); }
#p-canton .elist .empty a { color: var(--in); font-weight: 700; }
#p-canton .more { margin-top: 14px; }
/* Dernière case des drapeaux : « Tous les cantons » (drapeau suisse) ramène à la recherche sur tous les cantons ; elle est cerclée tant qu'aucun canton n'est choisi */
#p-canton .flags .fall { grid-column: span 2; }
#p-canton .flags .fch { display: block; width: calc(50% - 5px); max-width: 48px; height: auto; aspect-ratio: 1; border-radius: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.15); }
#p-canton .flags .fall span { text-align: center; line-height: 1.15; }
/* Sous-onglet « Élus » sans fiche : l'invitation et trois boutons */
.elu-vide .lead { max-width: 52ch; }
.elu-vide .btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
/* ---- Nos élus sur ordinateur : la recherche et les drapeaux à gauche, les résultats ou les élus du canton à droite ---- */
@container (min-width: 861px) {
  #p-canton { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "ph ph" "find out" "flags out" ". out"; column-gap: clamp(28px, 4cqi, 56px); align-items: start; }
  #p-canton[hidden] { display: none; }
  #p-canton > .ph { grid-area: ph; }
  #p-canton > .efind { grid-area: find; }
  #p-canton > .flags { grid-area: flags; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px 2px; margin: 14px 0 0; }
  #p-canton > .flags a { padding: 2px; gap: 1px; font-size: 11.5px; border-radius: 8px; }
  #p-canton > .flags img { max-width: 100%; border-radius: 5px; }
  #p-canton > .flags .fall { grid-column: span 4; flex-direction: row; justify-content: center; gap: 8px; padding: 2px 6px; }
  #p-canton > .flags .fch { width: 43px; border-radius: 5px; flex: none; }
  #p-canton > .flags .fall span { text-align: left; }
  #p-canton > .cout { grid-area: out; min-width: 0; }
  #p-canton .cout .mpgrid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 0 16px; }
  #p-canton .cout .mpc { font-size: 14px; padding: 8px 0; gap: 8px; }
  #p-canton .cout .mpc small { font-size: 11.5px; }
  #p-canton .efind .check { flex-basis: 100%; }
}

/* ======== Version 50 : liens d'intérêts ouverts, sur deux colonnes. À gauche le titre et, dessous, la description ; à droite deux grands boutons
   de même largeur, « Consulter sur Lobbywatch » et « Aperçu ». Sur un écran étroit, tout s'empile : titre, description, puis les deux boutons côte à côte.
   L'avertissement jaune ne s'affiche qu'au premier clic sur « Aperçu » (le bouton devient « Lancer l'aperçu »).
   Le volet porte les deux couleurs de Lobbywatch, relevées sur son logo : le bleu clair (#95d6fd) pour le fond, le bleu nuit (#172232) pour le texte
   et les boutons. Le reste du site n'emploie pas ce bleu : on voit d'emblée que le volet mène à un autre site ======== */
.lw, .mp + .lw, .stats + .lw { --lw: #172232; --lw-fond: #95d6fd; --lw-trait: #95d6fd; --lw-texte: #172232;
  background: var(--lw-fond); border: 1px solid var(--lw-trait); border-radius: 18px; padding: 22px 24px; margin-top: 28px; }
.lw h2 { color: var(--lw); }
.lw > p:not(.lw-notice) { color: var(--lw-texte); }
.lw .btn.vi { background: var(--lw); border: 1.5px solid var(--lw); color: #fff; }
.lw .btn.ghost { background: #fff; border: 1.5px solid var(--lw); color: var(--lw); }
.lw-p { border-color: rgba(23,34,50,.3); background: #fff; overflow: hidden; }
.lw { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); column-gap: 32px; align-items: start; }
.lw .lw-h { display: contents; }
.lw .lw-h h2 { grid-column: 1; grid-row: 1; margin: 0 0 8px; }
.lw > .lw-d { grid-column: 1; grid-row: 2; margin: 0; }
.lw .lw-h .lw-act { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 20px; margin: 0; }
.lw .lw-act .btn { min-height: 54px; padding: 6px 20px; font-size: 16px; line-height: 1.25; justify-content: center; text-align: center; }
.lw > .lw-n, .lw > .lw-p { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .lw { grid-template-columns: minmax(0, 1fr); }
  .lw .lw-h .lw-act { grid-column: 1; grid-row: 3; gap: 10px; margin-top: 14px; }
  .lw .lw-act .btn { min-height: 44px; padding: 5px 10px; font-size: 14.5px; }
  .lw, .mp + .lw, .stats + .lw { padding: 18px 16px; border-radius: 16px; }
}
.lw-p .lw-warn { max-width: none; } /* le bandeau jaune de l'aperçu va d'un bord à l'autre du cadre */
.lw .lw-notice[hidden] { display: none; }
.lw .lw-n .lw-notice { margin: 12px 0 0; }
.lw .lw-p:not([hidden]) { margin-top: 14px; }

/* ======== Version 50 : « Son vote » se partage et se signale ; ses boutons ont la taille de « En savoir plus sur parlament.ch » ======== */
.son .hlist .t .share, .son .hlist .t .report { font-size: 14px; padding: 0 14px; min-height: 34px; }

/* ======== Version 50 : sous le titre des pages Conseil national et Conseil des États, la pastille « n votes » et la ligne de la législature
   sur une même ligne ; le choix de votation remonte d'autant. Quand la colonne est trop étroite, la ligne passe dessous, comme avant ======== */
.chamb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.chamb-head .ph { display: contents; }
.chamb-head .ph h1 { flex: 0 0 100%; margin: 0; }
.chamb-head .lede { margin: 0; }
/* Sur une ligne partout, ordinateur et téléphone. Quand la colonne est étroite (téléphone, ou colonne de gauche d'une fenêtre de 861 à 1240 px),
   la ligne se réduit à « données du … » en 14 px : le début, « 52e législature · », est caché (span .ld-l). La règle suit l'allemand, le plus long
   (« 1623 Abstimmungen »). Sous 340 px, pastille et ligne perdent encore un peu de taille */
@container (max-width: 520px) { .chamb-head { gap: 8px 10px; } .chamb-head .lede { font-size: 14px; } .chamb-head .lede .ld-l { display: none; } }
@container (min-width: 861px) and (max-width: 1240px) { .chamb-head { gap: 8px 10px; } .chamb-head .lede { font-size: 14px; } .chamb-head .lede .ld-l { display: none; } }
@container (max-width: 340px) { .chamb-head { gap: 8px; } .chamb-head .lede { font-size: 12.5px; } .chamb-head .sticker { font-size: 13px; padding: 4px 9px; } }

/* ======== Version 50 (audit) : la bulle montrée au premier toucher d'un siège se touche aussi, et ouvre la fiche de l'élu ======== */
.tip.touche { pointer-events: auto; cursor: pointer; }

/* ======== Version 50 : liste des votations (recherche du Conseil national et du Conseil des États), sur ordinateur comme sur téléphone.
   Le titre part du bord gauche et tient sur quatre lignes au plus (deux avant) ; dessous, une seule ligne grise, sur toute la largeur : date, numéro d'objet, thème.
   À droite, le résultat et le score, empilés, centrés en hauteur sur le titre. .mn devient transparent (display: contents) pour que le titre
   et la ligne grise soient deux cases de la grille ======== */
.vrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t r" "mt mt"; grid-template-rows: auto auto; align-items: center; gap: 2px 14px; }
.vrow .mn { display: contents; }
.vrow .t { grid-area: t; -webkit-line-clamp: 4; line-clamp: 4; }
.vrow .mt { grid-area: mt; margin-top: 0; }
.vrow .mt .d { font-size: inherit; }
.vrow .res { grid-area: r; text-align: right; line-height: 1.3; }
.vrow .res > span { display: block; }

/* ======== Version 50 : la bulle d'un élu au toucher. Plus de phrase d'aide : une flèche dans un rond, à droite, montre que la bulle se touche ;
   tant que le doigt appuie, la bulle s'enfonce un peu et la flèche s'éclaire ======== */
.tip .tgo { display: none; }
.tip.touche { display: flex; align-items: center; gap: 14px; padding: 8px 9px 8px 13px; transition: opacity .1s, transform .12s, background-color .12s; }
.tip.touche .tgo { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: rgba(251,250,247,.16); transition: background-color .12s, color .12s, transform .12s; }
.tip.touche .tgo svg { width: 18px; height: 18px; }
.tip.touche:active, .tip.touche.appui { transform: scale(.95); background: #26323d; }
.tip.touche:active .tgo, .tip.touche.appui .tgo { background: var(--cr); color: var(--in); transform: translate(1px, -1px); }
@media (prefers-reduced-motion: reduce) { .tip.touche, .tip.touche .tgo { transition: opacity .1s; } .tip.touche:active, .tip.touche.appui { transform: none; } .tip.touche:active .tgo, .tip.touche.appui .tgo { transform: none; } }

/* ======== Version 50 : tableaux « Détail par groupe » et « Détail par canton ». Les chiffres sont centrés sous leur titre (Oui, Non, Abst., Absents),
   et non plus calés à droite ; la dernière colonne (« Contre la majorité du groupe », « Majorité du canton ») s'écarte, pour que le chiffre des absents
   ne touche plus le nom qui suit. Sur téléphone, où cette colonne passe sous la ligne, elle garde sa place ======== */
.bd .num { text-align: center; padding-left: 10px; padding-right: 10px; }
@container (min-width: 641px) { .bd thead th:last-child, .bd td.dis { padding-left: 20px; } }
@container (max-width: 600px) { .bd .num { padding-left: 2px; padding-right: 2px; } }

/* ======== Version 50 : un petit écart entre les onglets du menu du haut, pour que l'onglet survolé (gris) ne touche pas l'onglet de la page (encre).
   Le menu ne doit pas s'allonger pour autant (en allemand, sur les pages du Parlement, il tient tout juste) : ce que l'écart ajoute, les onglets le rendent
   sur leurs marges de côté. Au-dessus de 1100 px : écart de 6 px (2 avant), marges de 10 px (12 avant). De 761 à 1100 px : écart de 4 px (0 avant),
   marges de 7 px (9 avant). La barre du téléphone garde ses onglets jointifs (règles plus précises, sous 560 px) ======== */
@container (min-width: 561px) { .menu { gap: 0 6px; } .menu a, html[lang="it"] .menu a { padding-left: 10px; padding-right: 10px; } }
@container (min-width: 761px) and (max-width: 1100px) { .menu { gap: 0 4px; } .menu a, html[lang="it"] .menu a { padding-left: 7px; padding-right: 7px; } }

/* ======== Version 50 : règle du survol des boutons (LISEZMOI, « Points à connaître »).
   Un bouton survolé prend le fond gris (pierre), son texte passe à l'encre et n'est jamais souligné.
   Les boutons à l'état choisi (aria-pressed, aria-current, aria-selected, .on, .sel) et les boutons désactivés gardent leur aspect.
   Trois sortes de boutons gardent leur propre forme de survol : les stations du parcours (seul leur rond devient gris), les lignes du parcours
   et les titres « Fédéral » et « Cantonal » des signatures (un halo arrondi, déjà gris).
   :not(#survol) ne vise aucun élément : il donne à la règle le poids d'un identifiant, pour passer devant les survols plus anciens ======== */
@media (hover: hover) {
  :is(button, summary, [role="button"], .btn, .lm, .share, .report, .vbtn, .dbtn, .chip, .kchip, .cfbtn, .cdv, .freset, .ovw, .chb, .allc, .zlab, a.qe-b):not(#survol):not([aria-pressed="true"], [aria-current]:not([aria-current="false"]), [aria-selected="true"], .on, .sel, :disabled, .pc-station, .pc-row, .sg-fed > summary, .sg-kant > summary):hover {
    background-color: var(--pierre); color: var(--in); text-decoration: none;
  }
  .pc-station:not(.cur):hover .dot { background: var(--pierre); color: var(--in); }
  :is(button, summary, [role="button"], .btn, .lm, .share, .report, .vbtn, .dbtn, .chip, .kchip, .cfbtn, .cdv, .freset, .ovw, .chb, .allc, .zlab, a.qe-b):not(#survol):hover * { text-decoration: none; }
}

/* ===== Version 51 : hémicycle du résultat du jeu, sièges qui répondent ===== */
.mhemi.mine { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mhemi.mine circle.sur, .mhemi.mine circle.sur.hl { stroke: var(--in); stroke-width: 1.8px; opacity: 1; }
.tip .ts { margin-top: 1px; font-size: 12px; opacity: .85; }
/* Tableaux de détail, retouches de la relecture de la 50 : les chiffres centrés gardent 5 px de marge (10 avant), pour ne pas prendre de place aux noms ni faire déborder le tableau allemand ;
   sur téléphone, un nom de canton trop long passe sur deux lignes au lieu de glisser sous le premier chiffre, et la colonne « Abwesende » a la place de son titre */
.bd .num { padding-left: 5px; padding-right: 5px; }
@container (max-width: 600px) {
  .bd .num { padding-left: 2px; padding-right: 2px; }
  .ctab th[scope="row"] { white-space: normal; }
  .ctab .cfbtn { text-align: left; }
  html[lang="de"] .bd tr { grid-template-columns: minmax(0, 1fr) 40px 40px 40px 78px; }
}
@container (max-width: 340px) {
  .bd tr { grid-template-columns: minmax(0, 1fr) 38px 38px 38px 58px; }
  html[lang="de"] .bd tr { grid-template-columns: minmax(0, 1fr) 36px 36px 36px 74px; }
  .ctab .cfbtn { padding-right: 0; }
  .ctab .cfbtn .bflag { margin-right: 5px; }
}
/* Carte des initiatives cantonales sur téléphone, à la demande du propriétaire du site : les pastilles de 36 px couvraient 60 % de la carte à 390 px (93 % à 320 px) et se chevauchaient.
   Les cantons où il y a une initiative à signer gardent une pastille, plus petite (26 px) ; les autres ne montrent plus que leur sigle, sans cadre ni compteur. La forme du canton, dessous, reste touchable. */
@media (max-width: 600px) {
  .kmap .kchip { min-height: 26px; font-size: 12px; padding: 0 4px 0 6px; gap: 3px; border-width: 1px; }
  .kmap .kchip .c { min-width: 16px; padding: 0 3px; font-size: 12px; line-height: 18px; }
  .kmap .kchip.off, .kmap .kchip.zero { min-height: 24px; padding: 0 4px; border-color: transparent; background: none; opacity: 1; color: var(--mu); font-weight: 600; }
  .kmap .kchip.off, .kmap .kchip.zero { min-width: 26px; justify-content: center; }
  .kmap .kchip.off .c, .kmap .kchip.zero .c { position: absolute; width: 1px; height: 1px; min-width: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .kmap .kchip[aria-pressed="true"] { min-height: 26px; padding: 0 6px; background: var(--in); border-color: var(--in); color: var(--cr); font-weight: 700; }
}
/* Jeu sur téléphone, à la demande du propriétaire du site : l'écran de réponse tient sur un écran (avec gFit dans app.js, qui donne à l'hémicycle la place qui reste).
   Le bouton « Couleurs adaptées » posé à côté de l'hémicycle prenait une ligne : sur ces largeurs, celui de l'en-tête suffit. Le nombre et sa légende passent sur une ligne, les marges se resserrent. */
@container (max-width: 760px) { .g-hemi > .cbtn { display: none; } }
@container (max-width: 600px) {
  .game .g-body.g-fb { padding: 10px 0 12px; }
  .game .g-fb .gdots { margin-bottom: 10px; }
  .game .g-fb .g-q.sm { font-size: 19px; line-height: 1.22; }
  .game .g-fb .g-q.sm .said { font-size: 15px; margin-top: 4px; }
  .game .g-fb .mhemi.fb { margin-top: 10px; }
  .game .g-fb .g-count { margin-top: 6px; display: flex; justify-content: center; align-items: baseline; gap: 8px; }
  .game .g-fb .g-count b { display: inline-block; flex: none; width: var(--agw, auto); text-align: center; white-space: nowrap; font-size: 30px; }
  .game .g-fb .g-camp { font-size: 16px; padding: 5px 14px; margin-top: 8px; }
  .game .g-fb .g-res { font-size: 15px; margin-top: 6px; }
  .game .g-fb .btn.gNext { margin-top: 10px; }
}
@container (max-width: 340px) { .game .g-fb .g-q.sm { font-size: 17px; } .game .g-fb .g-camp { font-size: 15px; } .game .g-fb .btn.gNext { margin-top: 8px; } }
@media (max-height: 600px) and (max-width: 600px) { .game .g-fb .g-q.sm { font-size: 17px; } .game .g-fb .g-camp { font-size: 15px; padding: 4px 12px; margin-top: 6px; } .game .g-fb .btn.gNext { margin-top: 8px; } }
@container (max-width: 370px) { html[lang="de"] .game .g-fb .g-count span { max-width: 10.5em; text-align: left; } }
/* Écran de départ du jeu sur petit téléphone : quand l'hémicycle a dû s'effacer (classe « bas » posée par gFitI), le reste se resserre un peu */
.g-intro.bas { padding-top: 4px; } .g-intro.bas h2 { margin-top: 0; font-size: 24px; } .g-intro.bas .g-modes { margin-top: 10px; }
/* Zoom sur ordinateur, à la demande du propriétaire du site : « en dézoomant la page s'élargit et la taille de police diminue, en zoomant la taille de police augmente ».
   La page ne s'arrête plus à 1344 px : elle prend toute la largeur de la fenêtre, sans plafond (avec un plafond, les marges vides revenaient en dézoomant davantage). Les tailles de police, elles, sont fixes sur ordinateur (bloc du zoom, plus bas). */
@media (min-width: 1000px) { .site { max-width: none; } }
/* Prochaine votation, sur ordinateur : maintenant que le titre et le compte à rebours ont une taille fixe, le compte ne tient plus toujours à côté du titre dans une fenêtre étroite
   (« c'est aujourd'hui », compte à trois chiffres) : il passe alors dessous au lieu de passer dessus. Quand il tient, le rendu est le même qu'avec la grille. */
@container (min-width: 861px) {
  .vt-hero { display: flex; flex-wrap: wrap; row-gap: 12px; }
  .vt-hero .vt-hl { flex: 1 1 0; min-width: min-content; }
  .vt-hero .vt-count { flex: 0 0 auto; }
}

/* ===== Zoom : tailles de police fixes sur ordinateur (fichier produit par gen-zoom.js) ===== */
/* Chaque règle ci-dessous reprend une règle de la feuille dont la taille dépendait de la largeur de la page, avec la taille qu'elle a à la largeur de référence du palier. */
@media (hover: hover) and (pointer: fine) {
@container (min-width: 861px) and (max-width: 999px) {
  .ph h1 { font-size: 52px; }
  .mp h1 { font-size: 48px; }
  .cal-hero h1 { font-size: 48px; }
  .vb-k { font-size: 42px; }
  .vb-k { font-size: 34px; }
  .vb-d { font-size: 54px; }
  .sec > h2 { font-size: 38.91px; }
  .ph h1 { font-size: 55.94px; }
  .hx h1 { font-size: 89.98px; }
  .hx h1.long { font-size: 70.53px; }
  .cta .btn { font-size: 20.67px; }
  .chx h3 { font-size: 31.62px; }
  .num-xl { font-size: 31.62px; }
  .v-line h2 { font-size: 38.91px; }
  .v-line .vl-cd { font-size: 55.94px; }
  .outils h3 { font-size: 29.18px; }
  .fact .big { font-size: 60.8px; }
  .bet-q { font-size: 27px; }
  .vinfo h2 { font-size: 26.75px; }
  .mp h1 { font-size: 48px; }
  .mp > div > p:not(.succ) { font-size: 21.89px; }
  .stat b { font-size: 36.48px; }
  .ag-elh .big { font-size: 48.64px; }
  .cal-hero h1 { font-size: 55.94px; }
  .vt-hero { --h1: 55.94px; --dt: 36.48px; }
  #p-agir .sigs > h2 { font-size: 55.94px; }
  .chead h2 { font-size: 34px; }
  .g-intro h2 { font-size: 41.34px; }
  .g-q { font-size: 34px; }
  .game .g-q.sm { font-size: 30px; }
  .pc-panel h2 { font-size: 36px; }
  #p-canton .pick-hint { font-size: 23px; }
}
}
@container (min-width: 1000px) {
  .ph h1 { font-size: 52px; }
  .mp h1 { font-size: 48px; }
  .cal-hero h1 { font-size: 48px; }
  .vb-k { font-size: 42px; }
  .vb-k { font-size: 34px; }
  .vb-d { font-size: 54px; }
  .sec > h2 { font-size: 38.91px; }
  .ph h1 { font-size: 55.94px; }
  .hx h1 { font-size: 89.98px; }
  .hx h1.long { font-size: 70.53px; }
  .cta .btn { font-size: 20.67px; }
  .chx h3 { font-size: 31.62px; }
  .num-xl { font-size: 31.62px; }
  .v-line h2 { font-size: 38.91px; }
  .v-line .vl-cd { font-size: 55.94px; }
  .outils h3 { font-size: 29.18px; }
  .fact .big { font-size: 60.8px; }
  .bet-q { font-size: 27px; }
  .vinfo h2 { font-size: 26.75px; }
  .mp h1 { font-size: 48px; }
  .mp > div > p:not(.succ) { font-size: 21.89px; }
  .stat b { font-size: 36.48px; }
  .ag-elh .big { font-size: 48.64px; }
  .cal-hero h1 { font-size: 55.94px; }
  .vt-hero { --h1: 55.94px; --dt: 36.48px; }
  #p-agir .sigs > h2 { font-size: 55.94px; }
  .chead h2 { font-size: 34px; }
  .g-intro h2 { font-size: 41.34px; }
  .g-q { font-size: 34px; }
  .game .g-q.sm { font-size: 30px; }
  .pc-panel h2 { font-size: 36px; }
  #p-canton .pick-hint { font-size: 23px; }
}
/* ===== fin du bloc zoom ===== */

/* ======== Version 52, suite : les seize actions de la revue d'utilisation ======== */
/* Action 1 : le bouton « Plus » n'existe que dans la barre du téléphone ; ailleurs les quatre pages qu'il range sont des onglets comme les autres */
.mplus { display: none; }
.mplus-l { display: contents; }
@container (max-width: 560px) {
  /* Cinq onglets de même largeur, plus de défilement de côté */
  .top .menu .mscroll { overflow: visible; touch-action: auto; justify-content: space-between; padding-inline: max(4px, env(safe-area-inset-left, 0px)) max(4px, env(safe-area-inset-right, 0px)); }
  .menu .mscroll > a, .menu .mparl > a[data-p="parl"], .menu .mparl.on > a[data-p="parl"], .menu .mplus { flex: 1 1 0; width: auto; min-width: 0; max-width: 96px; padding-inline: 0; }
  .menu .mplus { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; height: 58px; padding: 4px 0 2px; border: 0; border-radius: 14px; background: none; font: inherit; font-size: 11px; line-height: 1.1; font-weight: 600; color: #3c4650; text-align: center; cursor: pointer; }
  .menu .mplus.on, .menu .mplus[aria-expanded="true"] { color: var(--in); font-weight: 800; }
  .menu .mplus.on .mi { background: var(--in); color: var(--cr); }
  .menu .mplus[aria-expanded="true"]:not(.on) .mi { background: rgba(18,26,34,.14); }
  .menu .ml { max-width: 100%; }
  /* Le petit menu : au-dessus du bouton, dans la matière de la barre (gris translucide flouté), une ligne par page, icône puis nom */
  .menu .mplus-l { display: none; position: absolute; right: max(8px, env(safe-area-inset-right, 0px)); bottom: calc(100% + 8px); z-index: 26; flex-direction: column; gap: 2px; min-width: 232px; max-width: calc(100vw - 16px); padding: 6px; border-radius: 18px; background: rgba(214,215,216,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(18,26,34,.18); }
  .menu.plus .mplus-l { display: flex; }
  .menu .mplus-l a { flex: none; flex-direction: row; justify-content: flex-start; gap: 10px; width: auto; max-width: none; height: auto; min-height: 48px; padding: 0 14px 0 6px; border-radius: 12px; font-size: 15px; line-height: 1.2; font-weight: 600; color: var(--in); text-align: left; }
  .menu .mplus-l a .ml { display: block; max-width: none; overflow: visible; -webkit-line-clamp: none; text-wrap: wrap; }
  .menu .mplus-l a .mi { width: 40px; height: 28px; padding: 2px 8px; border-radius: 14px; }
  .menu .mplus-l a[aria-current="page"] { font-weight: 800; }
  .menu .mplus-l a:not([aria-current="page"]):hover { background: var(--bsurvol); }
}
/* Très petits téléphones (320 px) : les onglets prennent toute la largeur et les libellés se resserrent d'un rien, pour que « Abstimmung » tienne sur sa ligne */
@container (max-width: 340px) { .top .menu .mscroll { padding-inline: 0; } .menu .mscroll > a .ml, .menu .mparl > a .ml, .menu .mplus .ml { letter-spacing: -0.02em; } }
/* Action 2 : calendrier. Les années en haut, la liste des dates d'abord, puis la grille ; volets pour ce qui est passé */
.cal-top { margin: 0 0 22px; }
.cal-list { border-top: 0; padding-top: 0; margin-top: 0; }
.cal-box { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; }
.cal-box .cal-bar { justify-content: flex-start; }
.cal-tog { margin-top: 16px; gap: 8px; }
.cal-tog .arw { width: 16px; height: 16px; transition: transform .15s; }
.cal-tog[aria-expanded="true"] .arw { transform: rotate(180deg); }
.cal-past { margin-top: 16px; }
.cal-mb { display: none; }
@container (max-width: 560px) {
  .cal-mb { display: inline-flex; margin: 0 0 18px; }
  .cal-grid:not(.tout) .month.passe { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cal-tog .arw { transition: none; } }
/* Action 3 : Nos élus. Les noms abrégés des chambres ne servent que sur téléphone */
#p-canton .efind .chb .sh { display: none; text-decoration: none; }
@container (max-width: 560px) {
  #p-canton .efind .field.grow { flex: 1 1 100%; }
  #p-canton .efind .field.fp { flex: 1 1 0; min-width: 0; }
  #p-canton .efind .chs { flex: 0 0 auto; align-self: flex-end; }
  #p-canton .efind .seg { flex-wrap: nowrap; gap: 6px; }
  #p-canton .efind .chb { min-width: 54px; padding: 0 14px; }
  #p-canton .efind .chb .lg { display: none; }
  #p-canton .efind .chb .sh { display: inline; }
  /* Les 26 drapeaux et « Tous les cantons » : une rangée qui défile de côté, d'un bord à l'autre de l'écran */
  #p-canton .flags { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px 14px; padding: 2px 16px; scroll-padding-inline: 16px; }
  #p-canton .flags::-webkit-scrollbar { display: none; }
  #p-canton .flags a { flex: none; width: 52px; padding: 5px 2px; gap: 4px; }
  #p-canton .flags img { max-width: 38px; }
  #p-canton .flags .fall { width: auto; flex-direction: row; gap: 8px; padding: 5px 10px 5px 6px; }
  #p-canton .flags .fch { width: 38px; }
  #p-canton .flags .fall span { text-align: left; }
}
/* Action 4 : sur téléphone, la liste des votes n'a plus de défilement à elle */
@container (max-width: 560px) { .vlist, #p-cn > .finder .vlist, #p-ce > .finder .vlist { max-height: none; overflow: visible; } }
/* Action 7 : seconde partie d'un titre, quand elle dit autre chose */
.vrow .t .t2 { font-size: 13px; font-weight: 400; color: var(--mu); }
/* Action 5 : fiche d'un élu, votes regroupés par jour */
.hlist li.hday { display: block; padding: 20px 0 6px; }
.hlist li.hday:first-child { padding-top: 8px; }
.hlist li.hday:hover::before { background: none; }
.hlist li.hday h3 { margin: 0; font-family: var(--fb); font-size: 14px; font-weight: 800; color: var(--in); }
.hlist li.hday + li { border-top: 0; }
.hlist li.nd { grid-template-columns: minmax(0, 1fr) auto; }
@container (max-width: 640px) { .hlist li.nd .t { grid-column: 1; grid-row: 1; } .hlist li.nd .pos { grid-column: 2; grid-row: 1; align-self: start; } }
/* Action 6 : « Où en est-on ? » replié */
.pc-fold { margin: 0 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pc-fold[open] { border-bottom: 0; }
.pc-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; border-radius: 12px; }
.pc-fold > summary::-webkit-details-marker { display: none; }
.pc-fold > summary .pc-st { margin: 0; }
.pc-fold > summary .arw { flex: none; width: 20px; height: 20px; margin-right: 4px; transition: transform .15s; }
.pc-fold[open] > summary .arw { transform: rotate(180deg); }
.pc-fold > .qbox { margin-top: 8px; }
.pc-row { align-items: center; }
@media (prefers-reduced-motion: reduce) { .pc-fold > summary .arw { transition: none; } }
/* Action 9 : vue par canton, la majorité en pastille à côté du nom sur téléphone */
.ctab .cmj, .ctab .cmj-n { display: none; }
.yn.part { background: none; color: var(--mu); box-shadow: inset 0 0 0 1.5px var(--line); }
@container (max-width: 600px) {
  .ctab th[scope="row"] { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .ctab .cmj { display: inline-flex; margin-left: auto; } /* les pastilles s'alignent à droite de la colonne des noms, sur la ligne du nom ou dessous s'il est long */
  .ctab .cmj .yn { font-size: 12.5px; }
  .ctab .cmj-n { display: inline; }
  .bd .ctab td.cmaj { display: none; }
}
/* Action 8 : Initiatives. La consigne pour signer, en taille normale sous le titre ; le conseil pratique dans « Détails » */
.sg-how { margin: 0 0 20px; font-size: 16px; line-height: 1.5; color: var(--in); max-width: 60ch; }
.sg-tip { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--mu); }
/* Action 11 : le sous-onglet « Élus » n'existe que lorsqu'une fiche a été ouverte */
.menu .mparl.on .mk[hidden] { display: none; }
/* Action 13 : « Initiatives » est le titre affiché de la page (il était réservé aux lecteurs d'écran) ; « Signatures en cours » devient le titre caché de la section */
.cal-hero.ag-hero { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin: 8px 0 20px; padding: 0; border: 0; }
#p-agir .sigs > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }
/* Action 12 : accueil sur téléphone, « Pour aller plus loin ». Trois cartes basses, image à gauche et titre à droite */
@container (max-width: 560px) {
  .trio.agir-first > .tool, .trio.agir-first > .tool:first-child, .trio.agir-first > .tool:last-child, .trio.agir-first > .tool + .tool { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto; grid-row: auto; align-items: center; column-gap: 16px; padding: 12px 16px; }
  .trio.agir-first > .tool > .pict, .trio.agir-first > .tool > .cantons, .trio.agir-first > .tool > .pict.sheet, .trio.agir-first > .tool > .pict.parl { align-self: center; margin: 0; width: 92px; max-width: 92px; }
  .trio.agir-first > .tool > .pict.sheet svg, .trio.agir-first > .tool > .pict.parl svg { width: 100%; height: auto; max-height: 64px; }
  .trio.agir-first > .tool h3 { margin: 0; }
}
/* Prochaine votation, à la demande du propriétaire du site : chaque objet est une carte bien séparée des autres, et un objet ouvert tient dans l'écran d'un téléphone */
.vt-list { display: grid; gap: 14px; border-bottom: 0; }
.opanel.vt { border: 1.5px solid var(--line); border-radius: 18px; padding: 0 20px; }
.opanel.vt.sel { border-color: var(--in); }
.vt .ophead { padding: 16px 0; }
.vt .ophead::before { inset: 6px -12px; }
/* la phrase prend toute la rangée sous le titre (sinon, avec un titre court sur grand écran, elle passait à droite du bouton) ; son texte reste limité à 70 caractères par ligne */
.vt .ophead .vt-r { order: 4; flex: 1 1 100%; box-sizing: border-box; margin: 0; font-size: 15px; line-height: 1.45; color: var(--mu); max-width: none; padding-right: max(0px, calc(100% - 70ch)); }
.vt .vbtn .vc { display: none; }
.vt .opanel .odet, .opanel.vt .odet { padding-top: 14px; }
.opanel.vt .vt-det { padding-bottom: 16px; }
@container (max-width: 700px) {
  /* Numéro, type et bouton d'ouverture sur une ligne, le titre dessous (le bouton occupait une ligne à lui seul) */
  .vt .ophead { gap: 8px 10px; }
  .vt .ophead .dbtn { order: 2; margin: 0 0 0 auto; }
  .vt .ophead h2 { order: 3; flex: 1 1 100%; }
}
@container (max-width: 560px) {
  .opanel.vt { padding: 0 14px; }
  .vt .ophead { padding: 12px 0; }
  .vt .ophead h2 { font-size: 20px; }
  /* Chaque chambre sur une seule ligne : le bouton porte son nom, l'avis et le score à droite */
  .vt .avis { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; align-items: center; }
  .vt .avis > div:has(> .vbtn) > .dt.w { display: none; }
  .vt .avis > div > .vbtn { grid-column: 1; grid-row: 1; justify-self: start; margin: 0; }
  .vt .avis > div > .dd { grid-row: 1; align-self: center; }
  .vt .avis > div:has(> .vbtn) { padding-block: 0; }
  .vt .avis > div > .vbtn { min-height: 40px; }
  .vt .ophead { padding-block: 10px; }
  .vt .mots { gap: 6px; }
  .vt .mots .mot { padding: 3px 9px 3px 6px; font-size: 14px; }
  .vt .olinks { margin-top: 8px; }
  .opanel.vt .vt-det { padding-bottom: 12px; }
  .vt .odet { padding-top: 10px; }
  .vt .olinks { margin-top: 6px; }
  .vt .avis > div > .dt.w { margin-top: 0; }
  .vt .vbtn .vl { display: none; }
  .vt .vbtn .vc { display: inline; }
  .vt .avis > .cf { padding-top: 6px; margin-top: 6px; min-height: 0; }
  .vt .avnote { margin-top: 6px; }
  .vt .avis > .cf > .dt { font-size: 19px; }
  .vt .avis > .cf > .dd .yn { font-size: 17px; padding: 2px 14px; }
  .opanel.vt .odet { gap: 12px; }
  .opanel.vt .vt-det { padding-bottom: 14px; }
}

/* ======== Action 14 : sur téléphone, aucune phrase sous 14 px, aucune étiquette sous 13 px (les libellés du menu du bas gardent 11 px, voulu) */
@container (max-width: 560px) {
  .srcnote, .avnote, .cnote, .bet-meta .official, .g-intro .g-priv, .g-intro .g-note, #p-mentions .updated, .sg-sub, .lw-notice > span, .qe-b > span, .vrow .t .t2 { font-size: 14px; }
  .avnote { line-height: 1.4; }
  .bet-lg .sh, .flags a > span, .flags .fall > span, .elist small, .ecard small, .cout small, .sg-sum .c, .duo small, .g-modes button small, .crow .cpill, .days .dow, .auj small, .aj-lg > span, .aj-lg b { font-size: 13px; }
}
/* ======== Action 15 : sur écran tactile seulement, tout ce qui se touche fait 40 px de haut au moins */
@media (pointer: coarse) {
  /* en-tête : la zone de toucher grandit (40 px) sans que les boutons ni l'en-tête ne grandissent, pour ne pas prendre de hauteur à la page */
  .langs button, .top .cbtn, .top .logo { position: relative; }
  .langs button::after, .top .cbtn::after, .top .logo::after { content: ""; position: absolute; inset: -5px 0; }
  .top .cbtn::after { inset: -4px -2px; }
  .foot-links a { min-height: 40px; display: inline-flex; align-items: center; }
  .mk-pill a, .grp button, .hhead .cbtn, .gwrap > .cbtn, .legend button, .vleg button, .links .lm, .links .vbtn, .links .share, .links .report, .share, .report, .lm, .vbtn,
  .filt button, .sg-tog, .cal-tabs button, .switch button, .cal-tog { min-height: 40px; }
  .olinks a.lm, .vinfo .links .lm, .vinfo .links .vbtn.other, .vinfo .links .share, .vinfo .links .report, .hlist .t .lm, .hlist .t a.hv, .son .hlist .t .lm, .son .hlist .t a.hv, .son .hlist .t .share, .son .hlist .t .report, .links a { min-height: 40px; }
  .vinfo .close { min-height: 40px; min-width: 40px; }
  .mp a.canl { min-height: 40px; }
  /* exception : les pastilles des cantons sont posées sur la carte, 26 par carte ; à 40 px elles se chevaucheraient. Elles gardent leur taille, comme les sièges de l'hémicycle */
  .g-how > summary { min-height: 40px; display: flex; align-items: center; }
  label.g-keep, label.check { min-height: 40px; }
  .pc-src li > a { min-height: 40px; display: inline-flex; align-items: center; }
}
/* ======== Règles de conception : le bord d'un champ de saisie ou d'une liste déroulante fait 3:1 au moins sur le papier (gris, plus le trait clair) */
label.field > input, label.field > select { border-color: var(--mu); }
/* ======== Règles de conception : 24 px d'air entre deux objets de votation */
.vt-list { gap: 24px; }
@container (max-width: 560px) { .vt-list { gap: 16px; } }
/* ======== Lobbywatch : l'avertissement est une note, 14 px partout */
.lw .lw-notice > span { font-size: 14px; }
/* ======== Accueil : la phrase sous le titre tient sur deux lignes, sa seconde partie ne se coupe pas */
.lead .l2 { white-space: nowrap; }
/* ======== Fiche d'un élu, téléphone : canton en haut à droite (ligne des sous-onglets), groupe et conseil sur une ligne, trois chiffres plus petits sur une rangée */
.canl .cn-s { display: none; text-decoration: none; }
@container (max-width: 560px) {
  #p-elu { position: relative; }
  #p-elu .mp .mp-s { display: none; }
  #p-elu .mp a.canl { position: absolute; top: 12px; right: 0; z-index: 3; min-height: 40px; padding: 0 14px 0 10px; gap: 7px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--cr); color: var(--in); font-size: 15px; font-weight: 700; white-space: nowrap; }
  #p-elu .mp a.canl:hover { background: var(--pierre, #efede7); border-color: var(--line); }
  #p-elu .mp a.canl .mflag { width: 20px; height: 20px; flex: none; }
  #p-elu .mp a.canl.long .cn-l { display: none; }
  #p-elu .mp a.canl.long .cn-s { display: inline; }
  #p-elu .mp a.canl.mini .cn-s { display: none; }
  #p-elu .mp a.canl.mini { padding: 0 10px; }
  #p-elu .mp > div > p.mp-l { font-size: 17px; margin-top: 4px; }
  #p-elu .mp { padding-bottom: 14px; row-gap: 10px; }
  #p-elu .stats { margin-top: 0; padding: 14px 0; border-top: 0; }
  #p-elu .stats > .stat { padding: 0 10px; margin: 0; border-top: 0; border-left: 1px solid var(--line); }
  #p-elu .stats > .stat:first-child { padding-left: 0; border-left: 0; }
  #p-elu .stats > .stat:last-child { padding-right: 0; }
  #p-elu .stats > .stat b { font-size: 26px; line-height: 1.1; margin-bottom: 4px; }
  #p-elu .stats > .stat span { font-size: 14px; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }
  #p-elu .mp + .hist.son { margin-top: 14px; }
  #p-elu .hist.son + .stats { border-top: 0; }
  #p-elu .stats + .lw { margin-top: 12px; }
}
/* ======== Fiche d'un élu : trois chiffres (le « % de oui » est retiré), en trois colonnes à toutes les largeurs */
.stats { grid-template-columns: repeat(3, 1fr); }
@container (max-width: 760px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats > .stat:nth-child(n) { border-top: 0; margin-top: 0; padding: 0 16px; border-left: 1px solid var(--line); }
  .stats > .stat:first-child { border-left: 0; padding-left: 0; }
  .stats > .stat:last-child { padding-right: 0; }
}

/* Indice « Touche un groupe pour l'agrandir » : bulle placée en haut quand le groupe montré est en bas */
.zc-msg.haut { bottom: auto; top: 8px; }

/* Élu mis en avant (venu de sa fiche ou choisi dans la recherche) : contour marqué, anneau autour du siège et halo qui bat trois fois */
.hemi2 .moi-halo { fill: none; stroke: var(--in); pointer-events: none; transform-box: fill-box; transform-origin: center; }
.hemi2 .moi-halo.p { opacity: 0; animation: moiBat 1.5s ease-out 3; }
@keyframes moiBat { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hemi2 .moi-halo.p { animation: none; } }
.hemi2 .seat.moi circle.o { stroke: var(--in); stroke-width: .9; }
.hemi2.map .seat.moi circle.o { stroke-width: 2.1; }

/* Téléphone : légende des groupes plus serrée, pour tenir sur trois lignes dans les trois langues */
@container (max-width: 560px) {
  .legend, .vleg { column-gap: 6px; }
  .legend button { padding: 0 9px 0 6px; gap: 5px; }
  .legend .dot { width: 12px; height: 12px; }
}

/* Très petits téléphones (320 px) : la pastille « Unentschieden » tient dans la colonne des noms */
@container (max-width: 340px) { .ctab .cmj .yn.part { padding-inline: 6px; } }

/* ======== Recherche d'un élu sur la page d'une chambre : dans l'en-tête de l'hémicycle, à gauche de « Regrouper par » ; sur téléphone à droite de CN / CE, dans la rangée collée sous l'en-tête */
.prech { position: relative; display: flex; align-items: center; margin-left: auto; width: 320px; max-width: 100%; }
.hhead > .prech { order: 2; flex: 1 1 180px; width: auto; max-width: 320px; margin: 0 auto 0 0; grid-column: 1 / -1; }
/* Ordinateur : le champ ouvre la deuxième ligne de l'en-tête, « Regrouper par » la ferme */
@container (min-width: 641px) {
  .hhead:has(> .prech)::after { content: ''; order: 1; flex: 0 0 100%; height: 0; }
  .hhead:has(> .prech) > .prech, .hhead:has(> .prech) > .grp { margin-top: -10px; }
  .hhead:has(> .prech) > .grp { flex: 0 1 auto; margin-left: auto; }
}
.prech-i { flex: 1 1 0; min-width: 0; width: 100%; height: 44px; margin: 0; padding: 0 40px 0 40px; font: inherit; font-size: 16px; color: var(--in); background: #fff; border: 1.5px solid var(--mu); border-radius: 99px; -webkit-appearance: none; appearance: none; text-overflow: ellipsis; }
.prech-i::placeholder { color: var(--mu); opacity: 1; font-size: 15px; }
.prech-i::-webkit-search-cancel-button, .prech-i::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.prech-i:focus { border-color: var(--in); outline: 1.5px solid var(--in); outline-offset: 0; }
.prech-ic { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--mu); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.prech-x { position: absolute; right: 2px; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; color: var(--in); cursor: pointer; }
.prech-x[hidden] { display: none; }
.prech-x:hover { background: var(--bsurvol); }
.prech-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.prech-l { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1.5px solid var(--in); border-radius: 16px; box-shadow: 0 8px 24px rgba(18,26,34,.16); }
.prech-l[hidden] { display: none; }
.prech-l li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px; border-radius: 10px; font-size: 15px; line-height: 1.25; cursor: pointer; }
.prech-l li b { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.prech-l li small { margin-left: auto; padding-left: 8px; font-size: 14px; color: var(--mu); white-space: nowrap; }
.prech-l li .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.prech-l li[aria-selected="true"], .prech-l li[role="option"]:not(.vide):hover { background: var(--bsurvol); }
.prech-l li.vide { color: var(--mu); cursor: default; }
@media (max-width: 592px) {
  #p-cn > .mk-seg, #p-ce > .mk-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  #p-cn > .mk-seg > .mk-pill, #p-ce > .mk-seg > .mk-pill { flex: none; }
  .mk-seg > .prech { position: static; flex: 1 1 0; min-width: 0; width: auto; margin: 0; pointer-events: auto; }
  .mk-seg > .prech .prech-i { height: 40px; padding: 0 36px 0 34px; }
  .mk-seg > .prech .prech-i:placeholder-shown { padding-right: 12px; }
  .mk-seg > .prech .prech-i::placeholder { font-size: 14px; }
  /* la loupe et la croix se placent d'elles-mêmes au milieu de la hauteur du champ, quelle que soit la rangée */
  .mk-seg > .prech .prech-ic { left: auto; top: auto; margin: 0 0 0 11px; }
  .mk-seg > .prech .prech-x { position: relative; right: auto; top: auto; flex: none; margin: 0 0 0 -40px; }
  /* les propositions prennent toute la largeur de la rangée, sous elle */
  .mk-seg > .prech .prech-l { top: calc(100% - 2px); pointer-events: auto; }
  /* pas 150 px à côté de CN / CE / Élus : bouton rond, champ sur toute la rangée pendant la saisie, seconde rangée quand un élu est choisi */
  .mk-seg > .prech.etroit { flex: none; width: 40px; margin-left: auto; }
  .mk-seg > .prech.etroit:not(.plein):not(.ligne) .prech-i { padding: 0; cursor: pointer; }
  .mk-seg > .prech.etroit:not(.plein):not(.ligne) .prech-i::placeholder { color: transparent; }
  .mk-seg > .prech.etroit.plein { position: absolute; z-index: 2; left: 0; right: 0; top: 8px; width: auto; margin: 0; }
  .mk-seg > .prech.etroit.plein .prech-l { top: calc(100% + 6px); }
  .mk-seg:has(> .prech.plein) > .mk-pill { visibility: hidden; }
  .mk-seg > .prech.etroit.ligne { flex: 1 1 100%; width: auto; margin: 0; }
  html:has(.page:not([hidden]) > .mk-seg.deux) { scroll-padding-top: calc(var(--toph, 0px) + 106px); }
}

/* ---- Fiche d'un élu, « Son vote », téléphone : pas de bouton des couleurs dans l'encadré (celui de l'en-tête du site suffit), pastille du vote plus petite, « Partager » et « Signaler une erreur » réduits à leur pictogramme ---- */
@media (max-width: 592px) {
  #p-elu .son-h .cbtn { display: none; }
  #p-elu .son .hlist .pos { font-size: 14px; padding: 3px 10px; }
  #p-elu .son .hacts { gap: 8px; }
  #p-elu .son .hacts .share, #p-elu .son .hacts .report { position: relative; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; }
  #p-elu .son .hacts .share svg, #p-elu .son .hacts .report svg { width: 20px; height: 20px; margin: 0; }
  /* Le dessin du drapeau n'est pas au milieu de sa case (hampe à gauche) : il est ramené au centre du rond */
  #p-elu .son .hacts .report svg { transform: translate(1.25px, -.4px); }
  #p-elu .son .hacts .bl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Le thème et le résultat à gauche, les deux pictogrammes à droite, sur une seule ligne sous le titre */
  #p-elu .son .hlist .t { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #p-elu .son .hlist .t .hm { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  #p-elu .son .hlist .t small { margin: 0; min-width: 0; }
  #p-elu .son .hlist .t .hacts { flex: none; flex-wrap: nowrap; }
}
/* Écrans très étroits : « contre son groupe » ne tient pas à côté de la date, la pastille passe dessous */
@media (max-width: 359px) {
  #p-elu .son .hlist .pos.dis { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  #p-elu .son .hlist .t { grid-row: 3; }
}

/* ---- Page d'un vote : « Signaler une erreur » à droite de « Partager », sur la même ligne. Téléphone : un rond de 40 px avec le drapeau seul, ramené au centre comme sur la fiche d'un élu ---- */
.vinfo .links .pr { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: inherit; }
@media (max-width: 592px) {
  .vinfo .links .report { position: relative; width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; }
  .vinfo .links .report svg { width: 18px; height: 18px; margin: 0; transform: translate(1.1px, -.4px); }
  .vinfo .links .report .bl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---- Fiche d'un élu, « Ses votes » : entre deux jours, un trait foncé et plus épais que le trait clair qui sépare deux votes du même jour ---- */
.hlist li + li.hday { border-top: 2px solid var(--in); margin-top: 8px; padding-top: 14px; }

/* ---- Fiche d'un élu, les trois chiffres : l'unité (« votes ») à côté du chiffre, en petit ; elle passe à la ligne si la colonne est trop étroite ---- */
.stat b:has(> .un) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px .28em; }
.stat b .un { font-family: var(--fb); font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: var(--in); white-space: normal; min-width: 0; max-width: 100%; }
@media (max-width: 592px) { #p-elu .stats > .stat b .un { font-size: 14px; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 10 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; } }

/* Les libellés des trois chiffres ne coupent plus leurs mots (« majo-rité ») : ils passent à la ligne entre deux mots. Seule exception, l'unité allemande, trop longue pour une colonne de téléphone étroit (« Abstim-mungen ») */
#p-elu .stats > .stat span, #p-elu .stats > .stat b .un { -webkit-hyphens: manual; hyphens: manual; }
@media (max-width: 592px) { html:lang(de) #p-elu .stats > .stat b .un { -webkit-hyphens: auto; hyphens: auto; } }

/* ---- Fiche d'un élu, « Ses votes » : sous le titre, le thème et le résultat à gauche, le bouton « parlament.ch » à droite, sur une seule ligne ---- */
#p-elu .hlist li.nd { row-gap: 4px; }
#p-elu .hlist li.nd .t { display: contents; }
#p-elu .hlist li.nd .t > a:first-child { grid-column: 1; grid-row: 1; }
#p-elu .hlist li.nd .pos { grid-column: 2; grid-row: 1; align-self: start; }
#p-elu .hlist li.nd .hm { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#p-elu .hlist li.nd .hm small { margin: 0; min-width: 0; }
#p-elu .hlist li.nd .hm .hacts { flex: none; }

/* ======== Version 53 ======== */
/* Résultat du jeu, « Ton hémicycle » : le siège d'un élu qui a voté sur moins de la moitié des questions est un cercle vide, sans couleur
   (un pourcentage sur un ou deux votes ne dit rien). Le contour garde la même épaisseur à toutes les tailles de l'hémicycle. */
.mhemi.mine circle.peu { fill: transparent; stroke: var(--mu); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.mhemi.mine circle.peu.hl { stroke: var(--in); stroke-width: 1.5px; }
.mhemi.mine circle.peu.sur, .mhemi.mine circle.peu.sur.hl { stroke: var(--in); stroke-width: 2px; }

/* Fiche d'un élu, « Ses votes » : un mot du titre plus long que sa colonne ne passe plus sur la pastille du vote, il va à la ligne.
   En allemand, où ces mots sont fréquents, la coupure se fait avec un trait d'union. */
#p-elu .hlist li.nd .t > a:first-child { overflow-wrap: anywhere; }
html:lang(de) #p-elu .hlist li.nd .t > a:first-child { -webkit-hyphens: auto; hyphens: auto; }

/* ======== Version 54 ======== */
/* Rangée d'onglets du téléphone : l'onglet des élus est une icône de 20 px, de la couleur du texte de l'onglet (claire quand il est choisi) */
.mk-seg a.mk-elu svg { display: block; width: 20px; height: 20px; fill: currentColor; }

/* Titres de vote en allemand, où un seul mot peut être plus long que l'écran. Tout est sous html:lang(de) : le français et l'italien ne changent pas
   (en italien, « overflow-wrap: anywhere » envoyait seule à la ligne la dernière lettre de 42 titres qui tiennent à 4 ou 5 px près).
   Les trois nombres de hyphenate-limit-chars : longueur minimale du mot coupé, lettres avant et après la coupure. Avec 18, seuls les mots très longs sont coupés. */
/* 1. Page d'un vote, titre : un mot plus long que le bloc va à la ligne au lieu de sortir du bloc et d'élargir la page ; sur téléphone, avec un trait d'union */
html:lang(de) .vinfo h2 { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  html:lang(de) .vinfo h2 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 18 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }
}
/* 2. Fiche d'un élu, encadré « Son vote » : même règle pour le titre du vote, avec le trait d'union à toutes les largeurs (de 680 à 770 px la colonne du titre est étroite, entre la date et la pastille).
      Sans elle la page dépassait l'écran à 320 px, et de 680 à 770 px la pastille du vote sortait de l'encadré */
html:lang(de) #p-elu .son .hlist .t > a:first-child { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 18 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }
/* 2 bis. Le même encadré dans les trois langues, quand la date, le titre et la pastille du vote sont sur une ligne (à partir de 673 px de large, donc pas sur téléphone) :
      un mot très long (« l'autodétermination », « all'autodeterminazione ») poussait la pastille hors de l'encadré vers 700 px. Même règle ; seuls les mots de 18 lettres au moins sont coupés. */
@container (min-width: 640.02px) {
  #p-elu .son .hlist .t > a:first-child { overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 18 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }
}
/* 3. Fiche d'un élu, liste « Ses votes » : la césure de la version 53 ne coupe plus les mots courts */
html:lang(de) #p-elu .hlist li.nd .t > a:first-child { hyphenate-limit-chars: 18 4 4; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; }

/* Recherche d'un élu sur téléphone, clavier ouvert. Sur iPhone la partie visible glisse à l'intérieur de la page : l'en-tête et la rangée CN / CE / Élus, collés en haut de la page, sortaient de l'écran avec le champ.
   app.js pose --vvt (le décalage de la partie visible) tant que ce champ a le focus : les deux suivent le haut de l'écran. La barre du bas, qui apparaissait alors au-dessus du clavier, est cachée pendant ce temps. */
@media (max-width: 592px) {
  .top { top: var(--vvt, 0px); }
  .mk-seg { top: calc(var(--toph, 0px) + var(--vvt, 0px)); }
  html.clavier .top .menu, html.clavier .top::after { visibility: hidden; }
}

/* Jeux : la phrase qui signale un vote lu à l'envers (le oui voulait dire refuser), en texte courant sous le résultat */
.g-res .inv { display: block; font-weight: 400; color: var(--mu); }

/* ======== Version 55 ======== */
/* Page d'un vote : bouton « i » à côté de la décision, seulement quand le sens du oui et du non n'est pas évident. Cercle de 28 px, cible de 40 px.
   La fenêtre s'ouvre sous la pastille, calée à gauche, jamais plus large que le bloc du vote ; même habillage que la liste de la recherche d'un élu. */
.vinfo .outc { position: relative; }
.outc .oh { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.outc .sensi { position: relative; flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1.5px solid var(--in); border-radius: 50%; background: none; color: var(--in); font: 700 16px/1 var(--fb); cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.outc .sensi::before { content: ""; position: absolute; inset: -7.5px; border-radius: 50%; }
.outc .sensi:hover, .outc .sensi[aria-expanded="true"] { background: var(--line); }
.outc .sensp { display: none; position: absolute; left: 0; z-index: 6; flex-direction: column; gap: 6px; width: max-content; max-width: min(100%, 440px); padding: 12px 16px; background: #fff; border: 1.5px solid var(--in); border-radius: 16px; box-shadow: 0 8px 24px rgba(18,26,34,.16); font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--in); overflow-wrap: anywhere; }
.outc .sensp.on { display: flex; }
/* Quand elle ne tient ni sous ni sur la pastille, la fenêtre est amenée dans l'écran après le clic : petite marge, le reste vient du scroll-padding de la page */
.outc .sensp { scroll-margin: 12px 0; }
.outc .sensp span { color: var(--in); }
/* Page d'un vote : la décision entière quand elle est trop longue pour la pastille (la pastille garde le mot court) */
.vinfo .dec { margin: 12px 0 0; max-width: 62ch; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--in); overflow-wrap: anywhere; }
/* Liste des votes, quand les données portent la décision du Conseil (classe « dl » posée par app.js) : le titre prend toute la largeur ;
   dessous, la décision en couleur suivie du score, sur une ligne qui peut passer à la ligne ; puis la ligne grise. Sans la clé, la ligne reste celle d'avant (résultat à droite). */
.vrow.dl { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "r" "mt"; gap: 2px; }
.vrow.dl .res { text-align: left; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.vrow.dl .res > span { display: inline; margin-left: 4px; white-space: nowrap; }
/* Page d'un vote : les chiffres sur deux lignes à côté de la décision, centrés sur sa hauteur. Première colonne oui puis non, seconde colonne abstentions puis absents.
   Sur un écran étroit, quand la décision est longue, le bloc passe dessous, calé à gauche. */
.outc .cpt { display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: max-content; gap: 2px 18px; align-items: center; line-height: 1.3; }
.outc .cpt .a, .outc .cpt .x { color: var(--mu); font-weight: 700; }
/* Page d'un vote, ligne sous le titre : chaque élément (objet, nature, thème) reste entier sur une ligne. Le point de séparation est placé devant l'élément ;
   en début de ligne il tombe dans la marge négative et il est masqué, donc aucune ligne ne commence ni ne finit par un point. */
.vinfo .mt { overflow: hidden; }
.vinfo .mt .ml { display: flex; flex-wrap: wrap; margin-left: -.74em; }
.vinfo .mt .ml > span { min-width: 0; padding-left: .74em; }
.vinfo .mt .ml > span::before { content: '·'; display: inline-block; width: .74em; margin-left: -.74em; text-align: center; }
/* Le premier élément n'a pas de point : un lecteur d'écran ne lit pas « · Objet 25.095 ». */
.vinfo .mt .ml > span:first-child::before { content: none; }
/* Votation automatique : mots d'ordre et avis rares de Swissvotes */
.mot em.aucun, .mot em.blanc, .mot em.initiative, .mot em.contre_projet { color: var(--mu); }
.yn.initiative, .yn.contre_projet { background: var(--mu); }
