
/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --gold:        #E8B84B;
  --gold-light:  #F5D07A;
  --gold-dark:   #C9952A;
  --ink:         #0D0D0D;
  --ink-soft:    #1A1A1A;
  --surface:     #F9F7F2;
  --surface-alt: #F2EFE8;
  --muted:       #6B6558;
  --border:      rgba(232,184,75,.18);
  --radius-card: 18px;
  --radius-pill: 50px;
  --shadow-card: 0 8px 32px rgba(0,0,0,.10), 0 1.5px 4px rgba(0,0,0,.06);
  --shadow-hover: 0 20px 56px rgba(0,0,0,.18), 0 4px 12px rgba(232,184,75,.12);
  --transition:  .38s cubic-bezier(.4,0,.2,1);
}

/* ── FONT IMPORT ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=DM+Sans:wght@300;400;500;600&display=swap');

body { font-family: 'DM Sans', sans-serif; background: var(--surface); color: var(--ink); }

/* ══════════════════════════════════════════════════════════════
   HERO HEADER
══════════════════════════════════════════════════════════════ */
.vote-hero {
  background: var(--ink);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.vote-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(232,184,75,.18) 0%, transparent 70%);
  pointer-events: none;
}
.vote-hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.vote-hero-eyebrow::before,
.vote-hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: .5;
}
.vote-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
}
.vote-hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.vote-hero-sub {
  color: rgba(255,255,255,.48);
  font-size: .92rem;
  font-weight: 300;
  max-width: 480px;
}
.hero-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 22px;
  border: 1px solid rgba(232,184,75,.2);
  border-radius: 12px;
  background: rgba(232,184,75,.06);
  gap: 2px;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}

/* ══════════════════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════════════════ */
.filter-bar {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid var(--surface-alt);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* Search */
.search-wrap {
  position: relative;
}
.search-wrap .search-icon {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}
.search-wrap input {
  height: 46px;
  padding-left: 2.8rem;
  padding-right: 1rem;
  border: 1.5px solid #E8E4DB;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,184,75,.14);
  outline: none;
  background: #fff;
}
.search-wrap input::placeholder { color: #AAA49A; }

/* Select */
.select-wrap {
  position: relative;
}
.select-wrap .filter-icon {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}
.select-wrap select {
  height: 46px;
  padding-left: 2.8rem;
  border: 1.5px solid #E8E4DB;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  cursor: pointer;
}
.select-wrap select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,184,75,.14);
  outline: none;
}
.select-wrap::after {
  /* content: '\ea4e'; */
  font-family: 'remixicon';
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: .85rem;
}

/* Alerts */
.alert-premium {
  border-radius: 12px;
  border: none;
  font-size: .88rem;
  padding: 12px 18px;
}
.alert-premium.alert-success { background: #EDFBF3; color: #1A6640; }
.alert-premium.alert-danger  { background: #FEF1F1; color: #7A1B1B; }

/* ══════════════════════════════════════════════════════════════
   SECTION TITRE
══════════════════════════════════════════════════════════════ */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.section-label-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #E8E4DB, transparent);
}
.section-label-text {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   CANDIDAT CARD
══════════════════════════════════════════════════════════════ */
.candidate-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  border: 1px solid #EDEAE3;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}
.candidate-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(232,184,75,.35);
}

/* Image zone */
.card-img-zone {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.card-img-zone img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
}
.candidate-card:hover .card-img-zone img {
  transform: scale(1.06);
}

/* Gradient overlay */
.card-img-zone::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(13,13,13,.55) 65%,
    rgba(13,13,13,.92) 100%
  );
  transition: opacity var(--transition);
}

/* Badges */
.badge-centre {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6);
}
.badge-percent {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  background: var(--gold);
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(232,184,75,.4);
  line-height: 1;
}

/* Card info overlay (bottom) */
.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 18px 20px 16px;
}
.card-info-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}
.card-info-cat {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(232,184,75,.15);
  border: 1px solid rgba(232,184,75,.3);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Rank indicator (top-3 glow) */
.card-rank-1 .badge-percent { background: #FFD700; box-shadow: 0 4px 20px rgba(255,215,0,.6); }
.card-rank-2 .badge-percent { background: #C0C0C0; box-shadow: 0 4px 16px rgba(192,192,192,.5); }
.card-rank-3 .badge-percent { background: #CD7F32; box-shadow: 0 4px 16px rgba(205,127,50,.5); }

/* Card body */
.card-body-zone {
  padding: 18px 20px 20px;
  background: #fff;
}

/* CTA Vote Button */
.btn-vote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1.5px solid var(--ink);
  transition: background var(--transition), color var(--transition),
              box-shadow var(--transition), transform .15s ease;
  position: relative;
  overflow: hidden;
}
.btn-vote::before {
  content: '';
  position: absolute;
  left: -100%; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(232,184,75,.15), transparent);
  transition: left .5s ease;
}
.btn-vote:hover::before { left: 100%; }
.btn-vote:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(232,184,75,.4);
}
.btn-vote:active { transform: scale(.97); }
.btn-vote i { font-size: 1rem; }

/* Vote pulse dot */
.vote-count-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.vote-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 0 0 rgba(76,175,80,.5);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(76,175,80,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(76,175,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}

/* ══════════════════════════════════════════════════════════════
   MODAL PREMIUM
══════════════════════════════════════════════════════════════ */
.modal-premium .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.22);
}
.modal-premium .modal-header {
  background: var(--ink);
  border-bottom: none;
  padding: 24px 28px 20px;
  position: relative;
}
.modal-premium .modal-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 28px; right: 28px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(232,184,75,.3), transparent);
}
.modal-premium .modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.modal-premium .btn-close {
  filter: invert(1) brightness(1.5);
  opacity: .5;
  transition: opacity .2s;
}
.modal-premium .btn-close:hover { opacity: 1; }
.modal-premium .modal-body { padding: 28px; background: #fff; }

/* Candidate identity strip */
.modal-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid #EDEAE3;
  margin-bottom: 24px;
}
.modal-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--gold);
  flex-shrink: 0;
}
.modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal-identity-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.modal-identity-cat {
  font-size: .72rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.modal-identity-percent {
  margin-left: auto;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

/* Form controls */
.modal-premium .form-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: .03em;
}
.modal-premium .form-control {
  height: 44px;
  border: 1.5px solid #E8E4DB;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.modal-premium .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,184,75,.14);
  background: #fff;
  outline: none;
}
.modal-premium .form-control::placeholder { color: #B0AB9F; }

/* Submit button */
.btn-vote-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 52px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200%;
  background-position: 0%;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  transition: background-position .5s ease, box-shadow var(--transition), transform .15s;
  box-shadow: 0 6px 24px rgba(232,184,75,.35);
  margin-top: 8px;
}
.btn-vote-confirm:hover {
  background-position: 100%;
  box-shadow: 0 10px 32px rgba(232,184,75,.55);
}
.btn-vote-confirm:active { transform: scale(.97); }
.btn-vote-confirm i { font-size: 1.1rem; }

/* Disclaimer */
.vote-disclaimer {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.vote-disclaimer i { color: var(--gold); vertical-align: middle; }

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════ */
.empty-state {
  padding: 80px 24px;
  text-align: center;
}
.empty-state-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF8E7, #FFF3CD);
  border: 2px solid rgba(232,184,75,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: var(--gold);
}
.empty-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.empty-state p { color: var(--muted); font-size: .9rem; max-width: 300px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════════ */
.pagination-premium {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0; margin: 0;
}
.pagination-premium .page-item .page-link {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid #E8E4DB;
  background: #fff;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  transition: all .2s ease;
  text-decoration: none;
}
.pagination-premium .page-item .page-link:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: #FFFBF0;
}
.pagination-premium .page-item.active .page-link {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.pagination-premium .page-item.disabled .page-link {
  opacity: .35;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   OTP BLOCK
══════════════════════════════════════════════════════════════ */
.otp-block {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(232,184,75,.1);
}
.otp-block .otp-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.otp-block .form-control {
  height: 52px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: .3em;
  font-weight: 700;
  border: 1.5px solid #E8E4DB;
}
.otp-block .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232,184,75,.14);
  outline: none;
}

/* ── STAGGER ENTRY ANIMATION ─────────────────────────────────── */
.card-animate {
  animation: cardFadeUp .55s cubic-bezier(.4,0,.2,1) both;
}
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-animate:nth-child(1) { animation-delay: .05s; }
.card-animate:nth-child(2) { animation-delay: .12s; }
.card-animate:nth-child(3) { animation-delay: .19s; }
.card-animate:nth-child(4) { animation-delay: .26s; }
.card-animate:nth-child(5) { animation-delay: .33s; }
.card-animate:nth-child(6) { animation-delay: .40s; }


/* ══ HERO ══════════════════════════════════════════ */
.candidat-hero {
    position: relative;
    padding: 3.5rem 0 3rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    overflow: hidden;
}

.hero-bg-decoration {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(212,175,55,.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(212,175,55,.05) 0%, transparent 60%);
    pointer-events: none;
}


/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .2s;
}
.back-link:hover { color: var(--gold); }
.back-link i { font-size: 1rem; transition: transform .2s; }
.back-link:hover i { transform: translateX(-3px); }

/* Photo wrapper */
.candidat-photo-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}
@media (min-width: 992px) {
    .candidat-photo-wrapper { width: 260px; height: 260px; }
}

.photo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(212,175,55,.35);
    animation: spin-slow 18s linear infinite;
    background: conic-gradient(from 0deg, rgba(212,175,55,.4) 0%, transparent 40%, rgba(212,175,55,.4) 100%);
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), white calc(100% - 2px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), white calc(100% - 2px));
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.candidat-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(212,175,55,.5);
    box-shadow: 0 0 0 8px rgba(212,175,55,.08), var(--shadow-lg);
}
.candidat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.candidat-photo-wrapper:hover .candidat-photo img { transform: scale(1.04); }

.photo-badge-percent {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: linear-gradient(135deg, var(--gold), #b8960c);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(180,140,0,.4);
    display: flex;
    align-items: center;
    gap: .25rem;
    letter-spacing: .03em;
}

/* Category chip */
.chip-category {
    align-items: center;
    background: rgba(212,175,55,.15);
    border: 1px solid rgba(212,175,55,.3);
    color: var(--gold-light);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 20px;
}

/* Name */
.candidat-name {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.01em;
    margin: 0;
}

.candidat-centre {
    font-size: .9rem;
    color: rgba(255,255,255,.75);
    margin: 0;
    display: flex;
    align-items: center;
}

/* Vote bar */
.vote-bar-wrap { max-width: 420px; }
.vote-bar-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.vote-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 6px var(--gold);
    animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.4); }
}
.vote-bar-pct {
    font-size: .88rem;
    font-weight: 800;
    color: var(--gold-light);
}
.vote-bar-track {
    height: 6px;
    background: rgba(255,255,255,.12);
    border-radius: 99px;
    overflow: hidden;
}
.vote-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 99px;
    transition: width 1.2s cubic-bezier(.23, 1, .32, 1);
}

/* Description */
.candidat-desc {
    font-size: .9rem;
    line-height: 1.7;
    color: rgba(255,255,255,.65);
    max-width: 520px;
    border-left: 3px solid rgba(212,175,55,.4);
    padding-left: 1rem;
    margin: 0;
}


/* ══ FORM SECTION ══════════════════════════════════ */
.vote-form-section {
    padding: 3.5rem 0 5rem;
    background: var(--surface);
}

/* Card */
.vote-form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2.25rem 2rem;
    border: 1px solid rgba(212,175,55,.12);
    position: relative;
    overflow: hidden;
}
.vote-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
@media (min-width: 576px) {
    .vote-form-card { padding: 2.75rem 2.5rem; }
}

/* Card header */
.vote-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.vote-form-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212,175,55,.15), rgba(212,175,55,.05));
    border: 1px solid rgba(212,175,55,.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    flex-shrink: 0;
}
.vote-form-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 .2rem;
    letter-spacing: -.01em;
}
.vote-form-subtitle {
    font-size: .8rem;
    color: var(--muted);
    margin: 0;
}

/* Nominee strip */
.vote-form-nominee {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(212,175,55,.05);
    border: 1px solid rgba(212,175,55,.18);
    border-radius: 12px;
    padding: .85rem 1.1rem;
}
.nominee-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212,175,55,.4);
    flex-shrink: 0;
}
.nominee-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.nominee-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nominee-cat {
    font-size: .75rem;
    color: var(--muted);
}
.nominee-pct {
    font-size: .95rem;
    font-weight: 800;
    color: var(--gold);
    background: rgba(212,175,55,.1);
    padding: .2rem .6rem;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Form labels */
.form-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: .45rem;
}

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color .2s;
}
.input-icon-wrap:focus-within .input-icon { color: var(--gold); }
.form-control {
    border-radius: 10px;
    border: 1.5px solid #e2e2e2;
    font-size: .88rem;
    padding: .65rem 1rem;
    transition: border-color .2s, box-shadow .2s;
    background: #fafafa;
}
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,.12);
    background: #fff;
}
.form-control.is-invalid { border-color: #dc3545; }

/* Confirm button */
.btn-vote-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, #b8960c 100%);
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .85rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(180,140,0,.35);
    transition: transform .2s, box-shadow .2s, filter .2s;
    text-decoration: none;
}
.btn-vote-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(180,140,0,.45);
    filter: brightness(1.05);
    color: #fff;
}
.btn-vote-confirm:active { transform: translateY(0); }

/* Disclaimer */
.vote-disclaimer {
    text-align: center;
    font-size: .75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .3rem;
    margin: 0;
}

/* Alerts */
.alert-premium {
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    padding: .9rem 1.2rem;
    border: none;
}
.alert-premium.alert-success {
    background: rgba(25, 135, 84, .1);
    color: #145a32;
    border-left: 3px solid #198754;
}
.alert-premium.alert-danger {
    background: rgba(220, 53, 69, .1);
    color: #7b1f28;
    border-left: 3px solid #dc3545;
}

/* ── Responsive fine-tuning ── */
@media (max-width: 575px) {
    .candidat-hero   { padding: 2.5rem 0 2rem; }
    .candidat-photo-wrapper { width: 170px; height: 170px; }
    .vote-form-card  { padding: 1.75rem 1.25rem; }
    .vote-form-header { flex-wrap: wrap; }
}
.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Le bouton passe AU-DESSUS du lien */
.card-body-zone {
    position: relative;
    z-index: 2;
}