body { padding-top: 70px; }
.nav { background: rgba(7,9,15,.92); backdrop-filter: blur(14px);
       border-bottom: 1px solid rgba(255,255,255,.06); }

.vote-hero {
  text-align: center; padding: 54px 20px 30px;
  background: radial-gradient(ellipse at 50% 0%, rgba(74,222,128,.10), transparent 60%);
}
.vote-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; }
.vote-hero p { color: var(--muted); font-size: 14.5px; margin-top: 8px; max-width: 560px; margin-inline: auto; line-height: 1.6; }

.vote-page { max-width: 760px; margin: 0 auto; padding: 10px 20px 70px; }

/* Pseudo */
.vote-pseudo {
  background: var(--panel); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 22px;
}
.vote-pseudo label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.vote-pseudo input {
  width: 100%; padding: 12px 15px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  color: var(--text); font-family: inherit; font-size: 16px; font-weight: 600;
}
.vote-pseudo input:focus { outline: none; border-color: var(--accent); }
.vote-pseudo input.valid { border-color: var(--accent); }
.vote-pseudo input.invalid { border-color: #f87171; }
.vote-hint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* Sites */
.vote-sites { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.vote-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 16px 18px;
  opacity: 0; animation: voteIn .5s ease forwards;
  transition: border-color .2s, box-shadow .25s, transform .15s;
}
@keyframes voteIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.vote-card:hover { transform: translateY(-3px); border-color: rgba(74,222,128,.4); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.vc-num {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(74,222,128,.14); color: var(--accent); font-weight: 900;
}
.vc-info { flex: 1; }
.vc-info b { font-size: 15px; }
.vc-info small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.vc-btn {
  text-decoration: none; font-weight: 800; font-size: 14px;
  padding: 11px 26px; border-radius: 11px;
  background: linear-gradient(135deg, #86efac, var(--accent) 55%, var(--accent-dark));
  color: #052e16; transition: transform .15s, box-shadow .2s, filter .15s;
}
.vc-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(74,222,128,.4); }
.vc-btn.disabled { background: #334155; color: var(--muted); cursor: not-allowed; }
.vc-btn.disabled:hover { transform: none; box-shadow: none; }

/* Top voteurs */
.vote-top h2 { font-size: 18px; font-weight: 800; margin-bottom: 16px; text-align: center; }
.vote-top-list {
  background: var(--panel); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 8px 18px;
}
.vote-empty { color: var(--muted); text-align: center; padding: 26px 0; font-size: 14px; }
.vote-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.vote-row:last-child { border-bottom: none; }
.vr-rank {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; color: var(--muted);
  background: rgba(255,255,255,.05);
}
.vr-rank.rank-1 { background: rgba(251,191,36,.2); color: var(--gold); }
.vr-rank.rank-2 { background: rgba(203,213,225,.18); color: #cbd5e1; }
.vr-rank.rank-3 { background: rgba(217,119,6,.2); color: #f59e0b; }
.vote-row img { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; background: #222; }
.vr-name { flex: 1; font-weight: 700; font-size: 14px; }
.vr-count { font-size: 12.5px; color: var(--accent); font-weight: 700; }

footer {
  padding: 26px 20px 34px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px;
}
footer b { font-weight: 900; }
.foot-note { font-size: 11px; opacity: .6; }
