/* Page publique « Direct » : suivi des scrutins en temps réel. */
.live-body { min-height: 100vh; color: #e8eef7; background: radial-gradient(circle at 15% 10%, rgba(43, 123, 228, .35), transparent 40%),
  radial-gradient(circle at 85% 90%, rgba(226, 178, 63, .18), transparent 45%), linear-gradient(160deg, #081a30, #0d2440 50%, #12355b); background-attachment: fixed; }
.live-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.5rem; background: rgba(8, 26, 48, .75); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.live-top .brand-logo { width: 42px; height: 42px; }
.live-title { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.live-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 99px; background: #e5484d; color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .08em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; display: inline-block; animation: live-blink 1.2s ease-in-out infinite; }
.btn .live-dot { margin-right: .3rem; vertical-align: middle; }
@keyframes live-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }
.live-audience { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: .85rem; font-variant-numeric: tabular-nums; }
.live-audience.pulse { animation: aud-pulse .8s; }
@keyframes aud-pulse { 40% { background: rgba(110, 231, 168, .35); transform: scale(1.08); } }
.live-listen { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; font-weight: 600; }
.live-listen:hover { color: #fff; background: rgba(255, 255, 255, .22); }
.live-listen:not(.is-on):not(.is-muted) { animation: listen-glow 1.8s ease-in-out infinite; }
@keyframes listen-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); } 50% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } }
.live-listen.is-on { background: #2fb36d; border-color: #2fb36d; }
.live-listen.is-muted { background: #6b7280; border-color: #6b7280; }
.live-clock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; }
.live-board { display: grid; gap: 1.5rem; padding: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.live-board.single { grid-template-columns: minmax(0, 1100px); justify-content: center; }
.live-card { position: relative; overflow: hidden; border-radius: 1.4rem; padding: 1.6rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3); animation: fade-up .6s both; }
.live-card.is-final { border-color: rgba(226, 178, 63, .55); box-shadow: 0 0 0 1px rgba(226, 178, 63, .3), 0 25px 60px rgba(0, 0, 0, .35); }
.live-card.is-cancelled { border-color: rgba(229, 72, 77, .6); }
.live-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.live-poste { font-size: 1.6rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.live-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; padding: .25rem .7rem; border-radius: 99px; margin-top: .4rem; }
.st-ouverte { background: rgba(47, 179, 109, .2); color: #6ee7a8; }
.st-terminee { background: rgba(226, 178, 63, .2); color: #f3c75a; }
.st-annulee { background: rgba(229, 72, 77, .25); color: #ff9a9e; }
.live-timer { font-variant-numeric: tabular-nums; font-size: 1.05rem; font-weight: 700; color: #9cc3ff; }
.live-ring { width: 96px; height: 96px; flex-shrink: 0; position: relative; }
.live-ring svg { transform: rotate(-90deg); }
.live-ring circle { fill: none; stroke-width: 9; }
.live-ring .bg { stroke: rgba(255, 255, 255, .1); }
.live-ring .fg { stroke: #2fb36d; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.22, .9, .32, 1); }
.live-ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; line-height: 1; }
.live-ring .val small { font-size: .62rem; font-weight: 600; opacity: .7; margin-top: .2rem; }
.live-total { font-size: .9rem; opacity: .8; }
.live-total strong { font-size: 1.6rem; color: #fff; font-variant-numeric: tabular-nums; }
.cand-list { position: relative; display: flex; flex-direction: column; gap: .8rem; }
.cand { position: relative; display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 1rem; background: rgba(255, 255, 255, .05); border: 1px solid transparent; transition: background .4s, border-color .4s, box-shadow .4s; will-change: transform; }
.cand.leading { border-color: rgba(156, 195, 255, .35); background: rgba(43, 123, 228, .12); }
.cand.winner { border-color: rgba(243, 199, 90, .8); background: linear-gradient(90deg, rgba(226, 178, 63, .25), rgba(226, 178, 63, .06)); box-shadow: 0 0 30px rgba(226, 178, 63, .25); animation: winner-pop .9s cubic-bezier(.34, 1.56, .64, 1); }
.cand.loser { opacity: .55; }
@keyframes winner-pop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
.cand-rank { width: 28px; text-align: center; font-weight: 800; opacity: .6; font-variant-numeric: tabular-nums; }
.cand-avatar { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
  background: linear-gradient(135deg, #2b7be4, #12355b); color: #fff; border: 2px solid rgba(255, 255, 255, .25); position: relative; }
.cand.winner .cand-avatar { background: linear-gradient(135deg, #f3c75a, #c99728); color: #2a1c00; }
.cand-crown { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); color: #f3c75a; font-size: 1.2rem; animation: crown-drop .8s .2s both cubic-bezier(.34, 1.56, .64, 1); }
@keyframes crown-drop { from { opacity: 0; transform: translate(-50%, -20px) rotate(-30deg); } to { opacity: 1; transform: translate(-50%, 0) rotate(0); } }
.cand-body { flex: 1; min-width: 0; }
.cand-name { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cand-sub { font-size: .78rem; opacity: .65; }
.cand-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); margin-top: .45rem; overflow: hidden; }
.cand-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #2b7be4, #6ea8ff); transition: width 1.1s cubic-bezier(.22, .9, .32, 1); position: relative; }
.cand-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: shimmer 2.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.cand.winner .cand-bar span { background: linear-gradient(90deg, #c99728, #f3c75a); }
.cand-votes { text-align: right; min-width: 86px; }
.cand-votes .n { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.cand-votes .p { font-size: .8rem; opacity: .7; }
.cand-plus { position: absolute; right: 1rem; top: -.4rem; color: #6ee7a8; font-weight: 800; animation: plus-up 1.4s ease-out forwards; pointer-events: none; }
@keyframes plus-up { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-28px); } }
.bump .n { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.25); color: #6ee7a8; } }
.live-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; font-size: .85rem; opacity: .75; flex-wrap: wrap; }
.live-result { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 1rem; font-weight: 600; }
.live-result.win { background: linear-gradient(90deg, rgba(226, 178, 63, .3), rgba(226, 178, 63, .08)); color: #ffe7a6; animation: fade-up .6s both; }
.live-result.cancel { background: rgba(229, 72, 77, .2); color: #ffc2c4; }
.live-result.info { background: rgba(255, 255, 255, .06); }
.live-empty { text-align: center; padding: 5rem 1rem; opacity: .8; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 576px) { .live-poste { font-size: 1.25rem; } .live-ring { width: 76px; height: 76px; } .cand-votes .n { font-size: 1.3rem; } .live-board { padding: 1rem; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
