/* Concept : un parcours plein écran, une question à la fois, comme on glisse des bulletins dans l'urne. Chaque sujet a sa couleur, les candidats sont tous traités pareil (initiales, même gris). */
:root{
  --bg:#eef1f7; --card:#ffffff; --ink:#12142b; --muted:#5a5f78; --line:#d6dbe8;
  --accent:#2c3cf0; --pop:#ffcf3d; --no:#e5484d; --on:#12142b;
  --t-retraite:#ffb547; --t-travail:#7d95ff; --t-jeunes:#ff8fd2; --t-logement:#3fd1b5; --t-sante:#ff8070;
  --t-budget:#c6e85a; --t-securite:#a9bce0; --t-immigration:#bf9bff; --t-ecologie:#62d382; --t-europe:#6fcbff;
  --f-display:"Unbounded","Arial Black",system-ui,sans-serif;
  --f-body:"Atkinson Hyperlegible","Verdana",system-ui,sans-serif;
  --ease:cubic-bezier(.2,.8,.2,1);
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0d0f1c; --card:#171a2e; --ink:#eef0fa; --muted:#a0a6c2; --line:#2a2f4a; --accent:#8b97ff; --no:#ff6b6f; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0d0f1c; --card:#171a2e; --ink:#eef0fa; --muted:#a0a6c2; --line:#2a2f4a; --accent:#8b97ff; --no:#ff6b6f; color-scheme:dark}

html.big body{font-size:20px}
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:17px;line-height:1.5;overflow-x:hidden;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:0}
button{font:inherit;color:inherit}
button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
h1,h2,h3{font-family:var(--f-display);margin:0;text-wrap:balance;line-height:1.02;letter-spacing:-.02em}
p{margin:0}

/* fond : bulletins qui flottent */
.bg{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.bg i{position:absolute;width:120px;height:78px;border-radius:12px;opacity:.22;animation:drift 22s ease-in-out infinite alternate}
.bg i:nth-child(1){left:-30px;top:12%;background:var(--t-retraite);transform:rotate(-14deg)}
.bg i:nth-child(2){right:-40px;top:30%;background:var(--t-europe);animation-duration:26s;width:160px;height:100px}
.bg i:nth-child(3){left:8%;bottom:6%;background:var(--t-jeunes);animation-duration:19s}
.bg i:nth-child(4){right:12%;bottom:-30px;background:var(--t-ecologie);animation-duration:24s;width:180px;height:110px}
.bg i:nth-child(5){left:46%;top:-40px;background:var(--t-travail);animation-duration:28s}
@keyframes drift{0%{translate:0 0;rotate:-8deg}100%{translate:30px -40px;rotate:10deg}}

#stage{position:relative;z-index:1;max-width:980px;margin:0 auto;min-height:100%;display:flex;flex-direction:column}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:18px 8px;flex-wrap:wrap}
.brand{border:0;background:none;padding:0;color:inherit;cursor:pointer;font-family:var(--f-display);font-weight:800;font-size:.95rem;letter-spacing:-.01em;display:flex;align-items:center;gap:8px}
.brand img{display:block;width:30px;height:30px;border-radius:8px}
.dots{display:flex;gap:5px;align-items:center}
.dots span{width:22px;height:6px;border-radius:6px;background:var(--line);transition:background .3s,width .3s}
.dots span.on{background:var(--ink)}
.dots span.now{width:38px;background:var(--accent)}
.mini{font:inherit;font-size:.82rem;border:1.5px solid var(--line);background:var(--card);border-radius:999px;padding:6px 12px;cursor:pointer}
.mini[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}

.screen{flex:1;display:flex;flex-direction:column;gap:26px;padding-block:18px 0}
.kicker{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--muted);display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.kicker em{font-style:normal;background:var(--pop);color:var(--on);padding:2px 9px;border-radius:999px;letter-spacing:.04em}
.lead{font-size:1.15rem;color:var(--muted);max-width:56ch}

/* intro */
.hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:28px;align-items:center}
@media (max-width:760px){.hero{grid-template-columns:1fr}}
.hero-text{display:flex;flex-direction:column;gap:22px;min-width:0;container-type:inline-size}
.mega{font-weight:800;font-size:clamp(2.6rem,8.4vw,5.6rem);line-height:.98}
.hero-text .mega{font-size:clamp(2.2rem,14.5cqi,5.6rem)}
.mega span{display:inline-block}
.mark{position:relative;z-index:0;color:var(--on)}
.mark::before{content:"";position:absolute;inset:8% -6px 4% -6px;background:var(--pop);z-index:-1;border-radius:10px;transform:rotate(-2deg)}
.fan{--cw:calc(50% - 14px);--ch:160px;position:relative;height:480px;max-width:100%}
@media (max-width:760px){.fan{--ch:190px;height:580px}}
.fan .card{position:absolute;box-sizing:border-box;width:var(--cw);translate:-50% -50%;
  left:calc(50% + var(--x) * (100% - var(--cw)) / 2);top:calc(50% + var(--y) * (100% - var(--ch)) / 2);
  padding:18px;border-radius:18px;color:var(--on);
  box-shadow:0 18px 40px -18px rgba(10,12,40,.45);display:flex;flex-direction:column;gap:10px;transform-origin:50% 50%;
  animation:sway 6s var(--ease) infinite alternate}
.fan .card small{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;font-weight:700;opacity:.75}
.fan .card p{font-family:var(--f-display);font-weight:700;font-size:1rem;line-height:1.2}
@keyframes sway{from{rotate:var(--r1)}to{rotate:var(--r2)}}
.facts{display:flex;gap:10px;flex-wrap:wrap;list-style:none;padding:0;margin:0}
.facts li{border:1.5px solid var(--line);background:var(--card);border-radius:14px;padding:10px 14px;display:flex;flex-direction:column}
.facts b{font-family:var(--f-display);font-size:1.4rem;font-variant-numeric:tabular-nums}
.facts span{font-size:.8rem;color:var(--muted)}

/* boutons principaux */
.cta{border:0;background:var(--ink);color:var(--bg);font-family:var(--f-display);font-weight:700;font-size:1.05rem;padding:16px 26px;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;gap:10px;transition:transform .2s var(--ease)}
.cta:hover{transform:translateY(-2px)}
.cta:disabled{opacity:.35;cursor:not-allowed;transform:none}
.cta svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ghost{border:1.5px solid var(--line);background:transparent;padding:14px 20px;border-radius:999px;cursor:pointer;font-weight:700}
.row-btns{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
/* accueil : les deux entrées principales, grandes et côte à côte */
/* empilés, même largeur (celle du plus long) */
.hero-ctas{display:grid;grid-template-columns:fit-content(100%);gap:16px}
.hero-ctas .cta,.duo{font-family:var(--f-display);font-weight:700;font-size:1.12rem;padding:19px 26px;border-radius:999px;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:12px;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.hero-ctas .cta{border:2.5px solid var(--ink);box-shadow:0 6px 0 var(--pop)}
.duo{background:var(--card);color:var(--ink);border:2.5px solid var(--ink);box-shadow:0 6px 0 var(--ink)}
.hero-ctas .cta:hover,.duo:hover{transform:translateY(-3px)}
.hero-ctas .cta:hover{box-shadow:0 9px 0 var(--pop)}.duo:hover{box-shadow:0 9px 0 var(--ink)}
.hero-ctas .cta:active,.duo:active{transform:translateY(4px);box-shadow:0 2px 0 var(--pop)}.duo:active{box-shadow:0 2px 0 var(--ink)}
.duo svg,.hero-ctas .cta svg{width:22px;height:22px;flex:none;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:560px){.hero-ctas{grid-template-columns:1fr}.hero-ctas .cta,.duo{font-size:1.02rem;padding:18px 20px}}
@media (prefers-reduced-motion:reduce){.hero-ctas .cta,.duo{transition:none}.hero-ctas .cta:hover,.duo:hover,.hero-ctas .cta:active,.duo:active{transform:none}}
.row-btns.minor{margin-top:-6px}
/* baromètre Mon vote : carte foncée, à part des sondages */
.baro{margin:8px 0 28px;background:var(--ink);color:var(--bg);border-radius:26px;padding:22px clamp(16px,3vw,32px);display:flex;flex-direction:column;gap:12px}
.bhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.bhead h2{margin:0;font-family:var(--f-display);font-size:clamp(1.3rem,3vw,1.8rem)}
.baro .tag{background:var(--pop);color:#12142b;font-weight:700;font-size:.75rem;padding:4px 10px;border-radius:999px;letter-spacing:.02em;text-transform:uppercase}
.baro .hint,.baro .sub{color:inherit;opacity:.85;margin:0}
.baro .sub{font-size:.85rem;opacity:.75}
.baro .ptrack{background:color-mix(in srgb,var(--bg) 18%,transparent)}
.baro .ptrack span{background:var(--pop)}
.baro .pwho,.baro .pbars a{color:inherit}
.pbars.bbars li{grid-template-columns:minmax(0,230px) minmax(0,1fr) 64px 16px 84px 92px}
.baro .live{background:var(--pop)}.baro .live i{background:var(--pop)}
.bstats{display:flex;flex-wrap:wrap;gap:10px 28px;align-items:flex-end}
.bstats div{display:flex;flex-direction:column}
.bstats b{font-family:var(--f-display);font-size:clamp(1.6rem,4vw,2.4rem);line-height:1;font-variant-numeric:tabular-nums}
.bstats span{font-size:.8rem;opacity:.75}
.bago{margin:0 0 0 auto;font-size:.8rem;opacity:.7}
.pbars.bbars li[hidden]{display:none}
.bspark{width:84px;height:26px;overflow:visible}
.bspark polyline{fill:none;stroke:var(--pop);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bspark circle{fill:var(--pop)}
.baro .pt.up{color:var(--pop)}.baro .pt.down{color:inherit;opacity:.7}.baro .pt.eq{color:inherit;opacity:.5}
.baro .linkbtn{color:var(--pop);align-self:flex-start}
.bbars small{font-size:.78rem;opacity:.75;text-align:right;white-space:nowrap}
.baro summary{cursor:pointer;font-weight:700}
@media (max-width:600px){.pbars.bbars li{grid-template-columns:minmax(0,1fr) 56px 16px}.bbars .bspark{display:none}.bbars small{grid-column:1/-1;text-align:left}.bago{margin-left:0;width:100%}}
.baro-opt{font-size:.88rem;color:var(--muted);margin:4px 0 0}
.baro-opt a{color:inherit}
.linkbtn{border:0;background:none;padding:0;color:var(--accent);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}

/* questions */
.q{font-size:clamp(2rem,6vw,3.6rem);font-weight:800}
.hint{color:var(--muted)}
.opts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:12px}
.opt{border:2px solid var(--line);background:var(--card);border-radius:20px;padding:18px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:6px;min-height:96px;justify-content:flex-end;transition:background .2s,color .2s,border-color .2s,transform .2s var(--ease)}
.opt:hover{border-color:var(--ink)}
.opt b{font-family:var(--f-display);font-weight:700;font-size:1.08rem;line-height:1.15}
.opt .num{font-family:var(--f-display);font-weight:800;font-size:2.3rem;line-height:1}
.opt small{color:var(--muted);font-size:.82rem}
.opt[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.opt[aria-pressed="true"] small{color:inherit;opacity:.75}
.group{display:flex;flex-direction:column;gap:12px}
.group h3{font-size:1.1rem;font-weight:700}


/* manche de tri */
.tile{background:var(--card);border:2px solid var(--line);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:12px;transition:background .25s,border-color .25s,opacity .25s,transform .25s var(--ease);min-width:0}
.tile .meta{display:flex;gap:6px;flex-wrap:wrap;align-items:center;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:var(--muted)}
.tag{padding:3px 8px;border-radius:999px;border:1.5px solid currentColor}
.tag.you{background:var(--pop);color:var(--on);border-color:var(--pop)}
.tile p{font-size:1.04rem;line-height:1.4}
.more{align-self:flex-start;border:0;background:none;padding:0;font-size:.85rem;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer;opacity:.75}
.tile .detail{font-size:.9rem;opacity:.85}
.dt{color:var(--muted)}

/* barre du bas */
.bar{position:sticky;bottom:0;z-index:5;margin-top:auto;padding-block:16px calc(16px + env(safe-area-inset-bottom,0px));
  background:linear-gradient(to top,var(--bg) 70%,transparent);display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}

/* résultats */
.res-head{display:flex;flex-direction:column;gap:14px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1.5px solid var(--line);background:var(--card);border-radius:999px;padding:5px 12px;font-size:.85rem;font-weight:700}
.who{display:flex;gap:12px;align-items:center;min-width:0}
.av{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-family:var(--f-display);font-weight:700;background:var(--line);color:var(--ink);flex:none;font-size:.95rem}
.av{position:relative;overflow:hidden}
.av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 22%;background:var(--line)}
.credits summary{cursor:pointer}
.who b{font-family:var(--f-display);font-size:1.12rem;line-height:1.1;display:block}
.who em{font-style:normal;font-size:.85rem;opacity:.75}
.liked{display:flex;flex-direction:column;gap:8px;list-style:none;padding:0;margin:0;font-size:.92rem}
.liked li{display:flex;gap:8px;align-items:flex-start}
.liked li i{width:10px;height:10px;border-radius:3px;margin-top:6px;flex:none;background:var(--t)}
.sub{font-size:.85rem;opacity:.8}
.sec{display:flex;flex-direction:column;gap:14px}
.sec h2{font-size:clamp(1.5rem,4vw,2.2rem);font-weight:800}
.ranks{display:flex;flex-direction:column}
.rr{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1.2fr);gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.rr .n{font-family:var(--f-display);font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.rr .who .av{width:40px;height:40px;border-radius:12px;font-size:.8rem}
.rr .who b{font-size:.95rem}
.meter{display:flex;flex-direction:column;gap:4px;min-width:0}
.track{height:12px;border-radius:12px;background:var(--line);overflow:hidden;display:flex}
.track .y{background:var(--accent);height:100%}
.track .x{background:var(--no);height:100%}
.meter small{color:var(--muted);font-size:.8rem}
@media (max-width:600px){.rr{grid-template-columns:24px minmax(0,1fr)}.rr .meter{grid-column:2}}
details.reveal{border:2px solid var(--line);border-radius:20px;background:var(--card);overflow:hidden}
details.reveal summary{cursor:pointer;padding:16px 18px;font-family:var(--f-display);font-weight:700;display:flex;align-items:center;gap:12px;list-style:none}
details.reveal summary::-webkit-details-marker{display:none}
details.reveal summary i{width:16px;height:16px;border-radius:5px;background:var(--t)}
details.reveal summary span{margin-left:auto;font-family:var(--f-body);font-size:.85rem;color:var(--muted)}
.rv{display:grid;grid-template-columns:minmax(0,170px) minmax(0,1fr) auto;gap:4px 14px;padding:10px 18px;border-top:1px solid var(--line);font-size:.92rem}
.rv b{font-weight:700}
.rv .st{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.rv .st.y{color:var(--accent)} .rv .st.x{color:var(--no)}
@media (max-width:600px){.rv{grid-template-columns:1fr}}
.touch{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:12px}
.touch .tile{border-color:var(--t);border-style:dashed}
.touch .tile .by{font-weight:700;font-size:.85rem}
.none{display:flex;flex-wrap:wrap;gap:8px}
.note{font-size:.85rem;color:var(--muted);display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line);padding-top:18px;margin-bottom:24px}
.note a{color:var(--accent)}
.empty{border:2px dashed var(--line);border-radius:22px;padding:24px;text-align:center;color:var(--muted)}

#wipe{position:fixed;inset:0;z-index:50;pointer-events:none;opacity:0}
.burst{position:fixed;width:9px;height:9px;border-radius:3px;z-index:60;pointer-events:none}
@media (prefers-reduced-motion:reduce){.bg i,.fan .card{animation:none}}

/* toile des résultats : pleine largeur d'écran, presque pleine hauteur */
.web-band{width:100vw;margin-inline:calc(50% - 50vw);display:flex;flex-direction:column;gap:12px;align-items:center}
.web{position:relative;width:100%;height:calc(100svh - 110px);min-height:480px;max-height:1200px;overflow:hidden;
  background:radial-gradient(ellipse at 50% 50%,color-mix(in srgb,var(--pop) 22%,transparent) 0,transparent 26%)}
.web-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ring{fill:none;stroke:var(--line);stroke-width:1.5;stroke-dasharray:5 7;transform-origin:50% 50%;transform-box:view-box}
.spoke,.link{fill:none;stroke-linecap:round;stroke-dasharray:1;transition:opacity .25s}
.spoke{stroke:var(--line);opacity:.9}
.spoke.y{stroke:var(--accent);opacity:.32}
.spoke.x{stroke:var(--no);opacity:.4}
.link{opacity:.95}
.wf{position:relative}
.wbadge{position:absolute;top:-6px;left:calc(50% + var(--d) / 2 - 14px);z-index:6;min-width:24px;height:24px;padding:0 6px;border-radius:999px;display:grid;place-items:center;
  background:var(--accent);color:#fff;font-size:.78rem;font-weight:800;box-shadow:0 0 0 3px var(--card)}
.whint{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);margin:0;z-index:2;pointer-events:none;background:var(--card);border:1.5px solid var(--line);
  color:var(--muted);font-size:.85rem;font-weight:700;padding:6px 14px;border-radius:999px;transition:opacity .3s}
.web.touched .whint{opacity:0}
.web.focus .spoke:not(.hot){opacity:.07}
.web.focus .spoke.hot{opacity:.8}
.web.focus .wn:not(.near){opacity:.35}
.wme{position:absolute;transform:translate(-50%,-50%);width:var(--me);height:var(--me);border-radius:50%;background:var(--pop);color:var(--on);display:grid;place-items:center;
  font-family:var(--f-display);font-weight:800;font-size:calc(var(--me) * .22);box-shadow:0 0 0 calc(var(--me) * .14) color-mix(in srgb,var(--pop) 30%,transparent),0 0 0 calc(var(--me) * .32) color-mix(in srgb,var(--pop) 12%,transparent);z-index:2}
.wn{position:absolute;transform:translate(-50%,-50%);border:0;background:none;padding:0;cursor:pointer;z-index:3;--d:var(--sz);transition:opacity .25s}
.wn.l{--d:calc(var(--sz) * 1.4);z-index:4}
.wn.s{--d:calc(var(--sz) * .62)}
.wn.off{opacity:.5}
.wn.off .av{filter:grayscale(1)}
.wf{display:flex;flex-direction:column;align-items:center;gap:4px}
.wn .av{width:var(--d);height:var(--d);border-radius:50%;font-size:calc(var(--d) * .3);box-shadow:0 0 0 3px var(--card),0 6px 16px -6px rgba(10,12,40,.5)}
.wn.l .av{box-shadow:0 0 0 3px var(--card),0 0 0 6px var(--accent),0 10px 24px -8px rgba(10,12,40,.55)}
.wn.on .av{box-shadow:0 0 0 3px var(--card),0 0 0 6px var(--pop),0 10px 24px -8px rgba(10,12,40,.55)}
.wn:focus-visible{outline:none}
.wn:focus-visible .av{outline:3px solid var(--accent);outline-offset:6px}
.wl{font-size:clamp(.62rem,calc(var(--sz) * .19),.9rem);font-weight:700;background:var(--card);padding:1px 7px;border-radius:999px;white-space:nowrap;line-height:1.3}
.wn.s .wl{display:none}
.wrk{margin-left:auto;font-family:var(--f-display);font-weight:800;font-size:2.2rem;line-height:1}
.wrk small{font-size:.9rem}
.wst{font-size:.92rem}
.web-key{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;padding-inline:16px!important;list-style:none;padding:0;margin:0;font-size:.85rem;color:var(--muted)}
.web-key li{display:flex;align-items:center;gap:6px}
.web-key i{width:18px;height:4px;border-radius:4px;background:var(--k)}
/* fiche du candidat */
.wpop{position:absolute;z-index:10;width:min(340px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;background:var(--card);border:2px solid var(--line);border-radius:24px;padding:20px;
  display:flex;flex-direction:column;gap:12px;box-shadow:0 30px 70px -24px rgba(10,12,40,.45)}
.wpop.sheet{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-height:44svh;border-radius:26px 26px 0 0;border-bottom:0;
  padding-bottom:max(20px,env(safe-area-inset-bottom,0px));box-shadow:0 -20px 60px -20px rgba(10,12,40,.45)}
.wpop[hidden]{display:none}
.wpop .who{padding-right:34px}
.wx{position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:50%;border:0;background:var(--bg);display:grid;place-items:center;cursor:pointer}
.wx svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
details.list summary{cursor:pointer;font-family:var(--f-display);font-weight:700}

/* une question à la fois */
.qprog{flex:1;max-width:340px;height:8px;border-radius:8px;background:var(--line);overflow:hidden}
.qprog span{display:block;height:100%;background:var(--accent);border-radius:8px;transition:width .4s var(--ease)}
.qscreen{justify-content:center;min-height:calc(100svh - 70px);gap:30px;padding-bottom:24px}
.qcard{display:flex;flex-direction:column;gap:22px;position:relative}
.qmeta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:var(--muted)}
.qnum{letter-spacing:.12em;margin-right:6px}
.tag.th{display:inline-flex;align-items:center;gap:6px;background:var(--t);border-color:var(--t);color:var(--on)}
.tag.th i{width:8px;height:8px;border-radius:50%;background:var(--on)}
.qtext{font-family:var(--f-display);font-weight:800;font-size:clamp(2rem,6.6vw,4.6rem);line-height:1.04;letter-spacing:-.02em;text-wrap:balance;max-width:17ch}
.qcard .detail{font-size:1rem;color:var(--muted);max-width:60ch}
.qacts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.qb{display:flex;align-items:center;justify-content:center;gap:12px;font-family:var(--f-display);font-weight:800;font-size:clamp(1.05rem,2.6vw,1.5rem);padding:20px 16px;min-height:80px;
  border-radius:26px;border:2.5px solid var(--ink);background:var(--card);color:var(--ink);cursor:pointer;transition:transform .15s,background .2s,color .2s}
.qb:hover{transform:translateY(-3px)}
.qb svg{width:26px;height:26px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.qb.yes{background:var(--ink);color:var(--bg)}
.qb.yes[aria-pressed="true"]{background:var(--t);border-color:var(--t);color:var(--on)}
.qb.no[aria-pressed="true"]{background:var(--no);border-color:var(--no);color:#fff}
.qfoot{display:flex;gap:6px 14px;align-items:center;flex-wrap:wrap}
.txt{border:0;background:none;color:var(--muted);font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:10px 4px}
.qkeys{margin-left:auto;font-size:.78rem;color:var(--muted)}
@media (hover:none){.qkeys{display:none}}
@media (max-width:520px){.qprog{order:3;flex-basis:100%;max-width:none}.qb{padding:16px 10px;gap:8px;min-height:72px}.qb svg{width:22px;height:22px}}
.refine{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;background:var(--card);border:2px solid var(--line);border-radius:22px;padding:16px 18px}

/* lien programme, nouveautés, journal */
.wprog{display:flex;flex-direction:column;gap:4px;border-top:1px solid var(--line);padding-top:12px}
.wprog a{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--accent);text-decoration:none}
.wprog a:hover{text-decoration:underline}
.wprog a svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.wprog small{color:var(--muted);font-size:.78rem}
.wprog.none{color:var(--muted);font-size:.88rem}
.tag.new{background:var(--accent);border-color:var(--accent);color:#fff}
.feed{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.feed li{display:grid;grid-template-columns:150px minmax(0,1fr);gap:4px 14px;padding:12px 0;border-bottom:1px solid var(--line);border-left:4px solid var(--t,var(--line));padding-left:12px}
.feed time{color:var(--muted);font-size:.85rem;font-variant-numeric:tabular-nums}
.feed a{color:var(--accent)}
@media (max-width:600px){.feed li{grid-template-columns:1fr}}

/* Explique-moi */
.xbtn{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;border:2px solid var(--t);background:color-mix(in srgb,var(--t) 18%,var(--card));color:var(--ink);
  font-family:var(--f-display);font-weight:700;font-size:.95rem;padding:10px 16px;border-radius:999px;cursor:pointer;transition:transform .15s,background .2s}
.xbtn:hover{transform:translateY(-2px);background:color-mix(in srgb,var(--t) 32%,var(--card))}
.xbtn svg{width:18px;height:18px;fill:currentColor}
.xbtn[aria-expanded="true"]{background:var(--t);color:var(--on)}
.xpanel{background:var(--card);border:2px solid var(--line);border-left:6px solid var(--t);border-radius:22px;padding:20px;display:flex;flex-direction:column;gap:16px;max-width:68ch}
.xpanel[hidden]{display:none}
.xsec{display:flex;flex-direction:column;gap:6px}
.xsec h3{font-family:var(--f-body);font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:700}
.xclair{font-size:1.15rem;line-height:1.5}
.xclair span{display:inline-block}
.xex{background:color-mix(in srgb,var(--t) 16%,transparent);border-radius:14px;padding:12px 14px}
.xex p{font-size:1rem}
.xdet{font-size:.95rem;color:var(--muted)}
.xlex{margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:10px}
.xlex div{border:1.5px solid var(--line);border-radius:12px;padding:10px 12px}
.xlex dt{font-weight:700;font-size:.9rem}
.xlex dd{margin:2px 0 0;font-size:.88rem;color:var(--muted)}
.xnote{font-size:.78rem;color:var(--muted)}
.waxis{position:absolute;top:50%;transform:translateY(-50%);z-index:1;pointer-events:none;font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);opacity:.7}
.waxis.l{left:14px;writing-mode:vertical-rl;transform:translateY(-50%) rotate(180deg)}
.waxis.r{right:14px;writing-mode:vertical-rl}
.wpop .sub a{color:var(--accent)}
.wlean{position:absolute;transform:translateX(-50%);margin:0;z-index:2;pointer-events:none;white-space:nowrap;background:var(--card);border:1.5px solid var(--line);
  font-size:.78rem;font-weight:700;padding:4px 12px;border-radius:999px;color:var(--ink)}

/* mode à plusieurs */
.gbadge{font-style:normal;font-size:.68rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:var(--pop);color:var(--on);padding:2px 8px;border-radius:999px;margin-left:6px}
.gdot{width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--p);color:var(--on);font-family:var(--f-display);font-weight:800;font-size:.9rem}
.gdot.big{width:52px;height:52px;font-size:1.3rem}
.gplayers{display:flex;flex-direction:column;gap:10px;max-width:520px}
.gpl{display:flex;align-items:center;gap:12px;background:var(--card);border:2px solid var(--line);border-radius:18px;padding:10px 12px}
.gpl:focus-within{border-color:var(--p)}
.gname{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:1.1rem;font-weight:700;color:var(--ink);padding:6px 2px}
.gname:focus{outline:none}
.gdel{border:0;background:var(--bg);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:var(--muted)}
.gdel svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.gadd{align-self:flex-start}
.gq{gap:24px}
.gvotes{display:flex;flex-direction:column;gap:8px}
.gv{display:grid;grid-template-columns:auto minmax(0,140px) minmax(0,1fr);align-items:center;gap:12px;background:var(--card);border:2px solid var(--line);border-radius:18px;padding:8px 10px;transition:border-color .2s}
.gv.done{border-color:var(--p)}
.gv b{font-family:var(--f-display);font-size:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gvb{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}
.gbtn{display:flex;align-items:center;justify-content:center;gap:6px;border:2px solid var(--line);background:transparent;color:var(--ink);border-radius:14px;padding:10px 12px;font-weight:700;cursor:pointer;min-height:46px}
.gbtn svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.gbtn.yes[aria-pressed="true"]{background:var(--t);border-color:var(--t);color:var(--on)}
.gbtn.no[aria-pressed="true"]{background:var(--no);border-color:var(--no);color:#fff}
.gbtn.skip{color:var(--muted)}
.gbtn.skip[aria-pressed="true"]{background:var(--line);color:var(--ink)}
@media (max-width:600px){.gv{grid-template-columns:auto minmax(0,1fr)}.gvb{grid-column:1/-1}.gbtn span{font-size:.85rem}}
.gp{position:absolute;transform:translate(-50%,-50%);border:0;background:none;padding:0;cursor:pointer;z-index:4;display:flex;flex-direction:column;align-items:center;gap:4px;transition:opacity .25s}
.gpb{width:var(--pd);height:var(--pd);border-radius:50%;display:grid;place-items:center;background:var(--p);color:var(--on);font-family:var(--f-display);font-weight:800;font-size:calc(var(--pd) * .42);
  box-shadow:0 0 0 4px var(--card),0 0 0 calc(var(--pd) * .12) color-mix(in srgb,var(--p) 35%,transparent),0 12px 26px -10px rgba(10,12,40,.5)}
.gpn{font-family:var(--f-display);font-weight:800;font-size:.85rem;background:var(--card);border:2px solid var(--p);padding:2px 10px;border-radius:999px;white-space:nowrap}
.gp:focus-visible{outline:none}
.gp:focus-visible .gpb{outline:3px solid var(--accent);outline-offset:6px}
.web.focus .gp:not(.near){opacity:.3}
.glink{fill:none;stroke-linecap:round;stroke-dasharray:1;opacity:.85}
.glink.y{stroke:var(--accent)}
.glink.x{stroke:var(--no)}
.gpods{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:12px}
.gpod{background:var(--card);border:2px solid var(--line);border-top:6px solid var(--p);border-radius:22px;padding:16px;display:flex;flex-direction:column;gap:10px}
.gph{display:flex;align-items:center;gap:10px}
.gph b{font-family:var(--f-display);font-size:1.2rem}
.gpod ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;counter-reset:r}
.gpod li{display:flex;align-items:center;gap:10px}
.gpod li .av{width:40px;height:40px;border-radius:12px;font-size:.8rem}
.gpod li span{display:flex;flex-direction:column;min-width:0}
.gpod li small{color:var(--muted);font-size:.8rem}
.gpod li.none{color:var(--muted);font-size:.9rem}
.gpairs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.gpairs li{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:4px 14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.gpairs .gnames{font-weight:700;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gpairs .gnames i{width:12px;height:12px;border-radius:50%;display:inline-block}
.gpairs b{font-family:var(--f-display);font-variant-numeric:tabular-nums}
.gpairs small{grid-column:1/-1;color:var(--muted);font-size:.8rem}
.gwho{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.gwho li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
.gwho .gdot{width:26px;height:26px;font-size:.75rem}
.gwho small{color:var(--muted);font-size:.8rem}
@media (max-width:700px){.gweb .whint{display:none}}

/* pages candidats */
a.mini{text-decoration:none;color:inherit;display:inline-flex;align-items:center}
a.ghost{text-decoration:none;color:inherit;display:inline-flex;align-items:center}
a.cta{text-decoration:none}
.cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:12px}
.ccard{display:flex;align-items:center;gap:14px;background:var(--card);border:2px solid var(--line);border-radius:20px;padding:12px 14px;text-decoration:none;color:inherit;transition:border-color .2s,transform .15s}
.ccard:hover{border-color:var(--ink);transform:translateY(-2px)}
.ccard>span:not(.av){display:flex;flex-direction:column;min-width:0;flex:1}
.ccard .av{width:56px;height:56px;border-radius:50%}
.ccard b{font-family:var(--f-display);font-size:1.02rem;line-height:1.15}
.ccard em{font-style:normal;font-size:.85rem;color:var(--muted)}
.ccard small{font-size:.78rem;color:var(--muted)}
.ccard svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.chero{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.chero .av{width:clamp(96px,18vw,150px);height:clamp(96px,18vw,150px);border-radius:50%;font-size:2rem;box-shadow:0 0 0 4px var(--card),0 18px 40px -18px rgba(10,12,40,.5)}
.chero .mega{font-size:clamp(2.2rem,7vw,4.2rem)}
.cparty{font-family:var(--f-display);font-weight:700;font-size:1.15rem;color:var(--muted)}
.chero .sub a,.cprop a{color:var(--accent)}
.ctoc{display:flex;flex-wrap:wrap;gap:8px;position:sticky;top:0;z-index:6;background:var(--bg);padding:10px 0}
.ctoc a{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--line);background:var(--card);border-radius:999px;padding:5px 12px;font-size:.85rem;font-weight:700;text-decoration:none;color:inherit}
.ctoc a i{width:10px;height:10px;border-radius:50%;background:var(--t)}
.ctoc a.empty{opacity:.45}
.cprops{display:flex;flex-direction:column;gap:14px}
.cprop{background:var(--card);border:2px solid var(--line);border-left:6px solid var(--t);border-radius:22px;padding:20px;display:flex;flex-direction:column;gap:12px;scroll-margin-top:70px}
.cprop.empty{opacity:.7}
.cph{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cph h2{font-size:1.15rem;font-weight:800;margin-right:auto}
.cph .ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--t)}
.cph .ic svg{width:24px;height:24px;stroke:var(--on);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cph .tag{font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;font-weight:700;color:var(--muted)}
.tag.mine.y{background:var(--accent);border-color:var(--accent);color:#fff}
.tag.mine.x{background:var(--no);border-color:var(--no);color:#fff}
.csay{font-family:var(--f-display);font-weight:800;font-size:clamp(1.3rem,3.4vw,1.9rem);line-height:1.15;letter-spacing:-.01em;text-wrap:balance}
.cnav{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:24px}

/* Résumé d'un candidat */
.rbtn{margin-top:6px}
.rdlg{box-sizing:border-box;width:min(560px,calc(100% - 24px));max-height:calc(100svh - 32px);border:2px solid var(--line);border-radius:26px;padding:24px;background:var(--card);color:var(--ink);
  box-shadow:0 40px 90px -30px rgba(10,12,40,.6);overflow:auto}
.rdlg[open]{display:flex;flex-direction:column;gap:14px}
.rdlg::backdrop{background:color-mix(in srgb,var(--ink) 45%,transparent);backdrop-filter:blur(3px)}
.rdlg .who{padding-right:40px}
.rdlg .who .av{width:64px;height:64px;border-radius:50%}
.rtime{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.rtxt{font-size:1.12rem;line-height:1.6}
.rtxt span{display:inline-block}
.rlist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.rlist li{display:flex;gap:10px;align-items:flex-start;font-weight:700}
.rlist li i{width:10px;height:10px;border-radius:3px;margin-top:7px;flex:none;background:var(--t)}
.rdlg .cta{align-self:flex-start}
@media (max-width:600px){.rdlg{margin:auto auto 0;width:100%;max-width:none;max-height:88svh;border-radius:26px 26px 0 0;border-bottom:0}}

/* sondages : une seule couleur pour tout le monde */
.poll{background:var(--card);border:2px solid var(--line);border-radius:22px;padding:18px 20px;display:flex;flex-direction:column;gap:10px}
.poll.first{border-color:var(--ink)}
.phead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.phead div{display:flex;flex-direction:column}
.phead b{font-family:var(--f-display);font-size:1.15rem}
.phead span{color:var(--muted);font-size:.88rem}
.pmeta{font-size:.85rem;color:var(--muted)}
.pmeta a,.note a{color:var(--accent)}
.phyp{font-weight:700;font-size:.9rem;margin-top:4px}
.pbars{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.pbars li{display:grid;grid-template-columns:minmax(0,250px) minmax(0,1fr) 64px;gap:12px;align-items:center}
.pwho{display:flex;align-items:center;gap:10px;min-width:0;color:inherit;text-decoration:none;font-weight:700;font-size:.92rem}
.pwho span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pwho .av{width:38px;height:38px;border-radius:50%;font-size:.72rem;flex:none}
.pwho.out{color:var(--muted);font-weight:400}
.pwho.out .av{opacity:.6}
a.pwho:hover span:last-child{text-decoration:underline}
.pbars a{color:inherit;font-weight:700;text-decoration:none;font-size:.92rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pbars a:hover{text-decoration:underline}
.pbars .out{color:var(--muted);font-size:.92rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptrack{height:12px;border-radius:12px;background:var(--line);overflow:hidden}
.ptrack span{display:block;height:100%;background:var(--accent);border-radius:12px}
.pbars b{font-family:var(--f-display);font-variant-numeric:tabular-nums;text-align:right;font-size:.95rem}
.pmore summary{cursor:pointer;font-weight:700;color:var(--muted);font-size:.9rem}
@media (max-width:600px){.pbars li{grid-template-columns:minmax(0,1fr) 56px}.pbars .ptrack{grid-column:1/-1;grid-row:2}}
.phead .tag{white-space:nowrap;flex:none}

/* moyenne des sondages sous l'accueil */
.hpolls{margin-top:28px;background:var(--card);border:2px solid var(--line);border-radius:26px;padding:22px clamp(16px,3vw,32px);display:flex;flex-direction:column;gap:12px;box-sizing:border-box;
  /* sort de la colonne de 980 px : toute la largeur de l'écran, 1 400 px au plus, 16 px de marge */
  width:min(1400px,calc(100vw - 32px));margin-inline:calc(50% - min(700px,50vw - 16px))}
.hph{display:flex;align-items:center;gap:12px}
.hph h2{font-size:clamp(1.3rem,3.6vw,1.8rem);font-weight:800}
.live{position:relative;width:12px;height:12px;border-radius:50%;background:var(--no);flex:none}
.live i{position:absolute;inset:0;border-radius:50%;background:var(--no)}
.hbars li{grid-template-columns:minmax(0,260px) minmax(0,1fr) 70px 18px}
.hbars .ptrack{height:16px}
.pt{font-style:normal;font-size:.75rem;text-align:center}
.pt.up{color:var(--accent)} .pt.down{color:var(--no)} .pt.eq{color:var(--muted)}
.hpolls .ghost{align-self:flex-start}
@media (max-width:600px){.hbars li{grid-template-columns:minmax(0,1fr) 70px 18px}}
.pbars b{white-space:nowrap}
.ghost svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
a.ghost{gap:8px}

/* pages statiques (référencement) et pied de page */
body.static #stage{min-height:auto}
.static .top{flex-wrap:wrap}
a.brand{text-decoration:none;color:inherit}
.snav{display:flex;flex-wrap:wrap;gap:6px}
.snav a{font-size:.85rem;font-weight:700;text-decoration:none;color:inherit;border:1.5px solid var(--line);background:var(--card);border-radius:999px;padding:6px 12px}
.snav a:hover{border-color:var(--ink)}
.crumbs{font-size:.85rem;color:var(--muted)}
.crumbs a{color:inherit}
.static .mega{font-size:clamp(2rem,6vw,3.6rem)}
.static .cph h2,.static .cph h3{font-size:1.15rem;font-weight:800;margin-right:auto}
.static .cph h2 a,.static .cph h3 a{color:inherit;text-decoration:none}
.static .cph h2 a:hover,.static .cph h3 a:hover{text-decoration:underline}
.static .cph .av{width:44px;height:44px;border-radius:50%;font-size:.8rem}
.static .xsec h3,.static .xsec h4{font-family:var(--f-body);font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:700;margin:0}
.av.big{width:clamp(96px,18vw,150px);height:clamp(96px,18vw,150px);border-radius:50%;font-size:2rem}
.sbref{background:var(--card);border:2px solid var(--line);border-radius:22px;padding:18px 20px;display:flex;flex-direction:column;gap:8px}
.sbref h2{font-size:1.2rem;font-weight:800}
.sbref p{font-size:1.1rem;line-height:1.6}
.ssec{font-size:clamp(1.3rem,3.4vw,1.8rem);font-weight:800;margin-top:12px}
.scta{margin:8px 0}
.static a:not(.cta):not(.ghost):not(.ccard):not(.brand){color:var(--accent)}
.static .snav a,.static .crumbs a{color:inherit}
.tlinks{display:flex;flex-wrap:wrap;gap:8px}
.tlinks a{border:1.5px solid var(--line);border-radius:999px;padding:5px 12px;text-decoration:none;font-weight:700;font-size:.88rem}
.tdot{width:40px;height:40px;border-radius:12px;background:var(--t);flex:none}
.stable{width:100%;border-collapse:collapse;background:var(--card);border-radius:18px;overflow:hidden}
.stable caption{text-align:left;font-weight:700;padding:0 0 8px}
.stable th,.stable td{padding:10px 14px;border-bottom:1px solid var(--line);text-align:left}
.stable td{font-variant-numeric:tabular-nums}
.poll h3{font-size:1.05rem;font-weight:800}
.sfoot{position:relative;z-index:1;max-width:980px;margin:40px auto 24px;border-top:1px solid var(--line);padding-top:24px;display:flex;flex-direction:column;gap:20px;font-size:.92rem}
.sfoot h2{font-size:1rem;font-weight:800;margin:0 0 8px}
.sfcols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px}
.sfcols ul{list-style:none;margin:0;padding:0;columns:2;column-gap:16px}
.sfcols li{margin:0 0 4px;break-inside:avoid}
.sfcols a{color:inherit}
.sfaq{display:flex;flex-direction:column;gap:8px}
.sfaq details{background:var(--card);border:1.5px solid var(--line);border-radius:14px;padding:10px 14px}
.sfaq summary{cursor:pointer;font-weight:700}
.sfaq p{margin-top:6px;color:var(--muted)}
