/* ============================================================
   PIPO NIGHT 2026 — Vote Pages Stylesheet v3
   Référence visuelle : Pipo Night 2026 maquette officielle
   ============================================================ */

/* ════════════════════════════════════
   EN-TÊTE DE LA PAGE DE VOTE
════════════════════════════════════ */
.vote-header {
  padding: 130px 40px 60px;
  text-align: center;
  background:
    /* radial-gradient(ellipse 70% 60% at 50% 0%, rgba(184,134,11,0.12) 0%, transparent 70%), */
    var(--noir);
  border-bottom: 1px solid rgba(212,175,55,0.1);
}

.vote-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 14px;
}

.vote-page-eyebrow::before,
.vote-page-eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--or);
}

.vote-page-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--or);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.vote-page-title-a {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  color: var(--or);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.vote-page-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* ════════════════════════════════════
   NOUVEAU TITRE HERO "Découvrir les..."
════════════════════════════════════ */
.vote-hero-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.9rem, 8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero-title-line {
  display: inline-block;
  color: var(--blanc);
}

.hero-title-line.gold {
  color: var(--or-vif);
  text-shadow: 0 0 28px rgba(255,215,0,0.25);
}

/* Barre de stats compacte, visible y compris sur mobile */
.vote-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 32px;
}

.vote-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(212,175,55,0.85);
  white-space: nowrap;
}

.vote-stat svg {
  width: 13px;
  height: 13px;
  color: var(--or);
  flex-shrink: 0;
}

.vote-stat strong {
  color: var(--or-vif);
  font-weight: 800;
  font-family: var(--font-body);
}

/* Badges info (vote par catégorie / clôture / résultats) */
.vote-info-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.vote-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  background: rgba(212,175,55,0.05);
  white-space: nowrap;
}

.vote-info-badge svg {
  color: var(--or);
  flex-shrink: 0;
}

/* ════════════════════════════════════
   ONGLETS CATÉGORIES
════════════════════════════════════ */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11,11,11,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,175,55,0.12);
  padding: 10px 0;
}

.category-nav-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 32px;
}

.category-nav-inner::-webkit-scrollbar { display: none; }

.cat-tab {
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
  border-radius: 50px;
}

.cat-tab:hover  { color: var(--blanc); border-color: rgba(212,175,55,0.4); }

.cat-tab.active {
  color: var(--noir);
  background: linear-gradient(135deg, var(--or-vif), var(--or));
  border-color: var(--or-vif);
  box-shadow: 0 0 18px rgba(212,175,55,0.3);
}

/* ════════════════════════════════════
   BARRE DE RECHERCHE
════════════════════════════════════ */
.vote-controls {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 40px 8px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 440px;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 16px; height: 16px;
  color: rgba(255,255,255,0.25);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 6px;
  color: var(--blanc);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input::placeholder { color: rgba(255,255,255,0.2); }
.search-input:focus { border-color: rgba(212,175,55,0.5); }

.nominee-count-label {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ════════════════════════════════════
   SECTION CATÉGORIE
════════════════════════════════════ */
.category-section {
  display: block;
  padding: 48px 40px 80px;
  max-width: 1300px;
  margin: 0 auto;
  scroll-margin-top: 130px;
}

.category-section + .category-section {
  border-top: 1px solid rgba(212,175,55,0.08);
}

.category-header {
  margin-bottom: 40px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--or);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 7px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.category-title {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--blanc);
  margin-bottom: 8px;
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.category-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  max-width: 500px;
  line-height: 1.7;
}

/* ════════════════════════════════════
   GRILLE DES NOMINÉS — STYLE PORTRAIT
════════════════════════════════════ */
.nominees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ── Carte nominé ── */
.nominee-card {
  background: var(--noir);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nominee-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,175,55,0.25);
}

/* Badges superposés sur la photo */
.rank-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 10;
  padding: 5px 13px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(20,20,20,0.78);
  border: none;
  color: var(--blanc);
  backdrop-filter: blur(6px);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #D4AF37, #B8860B);
  color: #000;
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #9E9E9E, #616161);
  color: #fff;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #CD7F32, #A0522D);
  color: #fff;
}

.vote-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(20,20,20,0.78);
  border: none;
  color: var(--or-vif);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* Photo — format portrait 3/4 */
.nominee-photo-wrap {
  position: relative;
  width: 100%;
  padding-top: 120%; /* ratio portrait */
  overflow: hidden;
  background: #f0f0f0;
}

/* Dégradé bas de photo */
.nominee-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 55%;
  /* background: linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0.65) 50%, transparent 100%); */
  z-index: 2;
  pointer-events: none;
}

.nominee-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

.nominee-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1c1c1c, #242424);
  color: rgba(212,175,55,0.25);
  gap: 10px;
  font-size: 11px;
  letter-spacing: 1px;
}

.nominee-photo-placeholder svg {
  width: 52px; height: 52px;
  stroke: rgba(212,175,55,0.2);
  stroke-width: 1;
  fill: none;
}

/* Infos nominé — superposées sur le bas de la photo via z-index */
.nominee-info {
  padding: 10px 20px 20px;
  position: relative;
  z-index: 3;
  margin-top: -2px;
}

.nominee-name {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fffefe;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2px;  
  line-height: 1.25;
  margin-bottom: 4px;


  max-width: 12ch;          /* Limite la largeur à environ 12 caractères */
  white-space: nowrap;      /* Force le texte à rester sur une seule ligne */
  overflow: hidden;         /* Cache le texte qui dépasse */
  text-overflow: ellipsis;
}

.nominee-level {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fffefe;
  margin-bottom: 12px;
  /* centrer */
  text-align: center;
}

.nominee-bio {
  font-size: 0.78rem;
  color: rgba(0,0,0,0.5);
  line-height: 1.65;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 2px solid rgba(212,175,55,0.4);
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Barre de progression */
.nominee-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e8e5e5;
  margin-bottom: 6px;
}

.nominee-progress-pct {
  color: var(--or-fonce);
  font-weight: 700;
}

.nominee-progress-bar {
  width: 100%;
  height: 2px;
  background: #e9e8e8;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.nominee-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--or-fonce), var(--or-vif));
  border-radius: 2px;
  transition: width 0.9s cubic-bezier(0.4,0,0.2,1);
}

/* Bouton voter — dégradé animé + pulsation */
.vote-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(115deg, var(--or-fonce), var(--or-vif), var(--or-champagne), var(--or));
  background-size: 300% 300%;
  color: var(--noir);
  border: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: voteBtnShift 4.5s ease-in-out infinite, voteBtnDance 2.6s ease-in-out infinite;
}

.vote-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.vote-btn:hover::before { transform: translateX(100%); }

.vote-btn:hover {
  box-shadow: 0 0 26px rgba(212,175,55,0.5);
  animation-play-state: running;
}

.vote-btn svg { flex-shrink: 0; }

@keyframes voteBtnShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes voteBtnDance {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

/* ════════════════════════════════════
   MODAL DE VOTE
════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #161616;
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 14px;
  padding: 44px 36px 36px;
  max-width: 460px;
  width: 100%;
  max-height: none;
  overflow-y: visible;
  text-align: center;
  position: relative;
  margin: 0 auto;
  transform: scale(0.93) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 0 80px rgba(212,175,55,0.12), 0 40px 80px rgba(0,0,0,0.7);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.3);
  color: var(--or);
}

/* Icône modale */
.modal-icon-wrap {
  width: 64px; height: 64px;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--or);
}

.modal-title {
  font-family: var(--font-body);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--or);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.modal-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
  line-height: 1.65;
}

/* Preview candidat dans modal */
.modal-candidate {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 22px;
  text-align: left;
}

.modal-candidate-img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--or);
  flex-shrink: 0;
}

.modal-candidate-img.placeholder {
  background: rgba(212,175,55,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212,175,55,0.4);
}

.modal-candidate-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blanc);
  line-height: 1.2;
}

.modal-candidate-level {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--or);
  margin-top: 2px;
}

/* Champs */
.modal-input-group {
  margin-bottom: 16px;
  text-align: left;
}

.modal-input-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 7px;
}

.modal-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 7px;
  color: var(--blanc);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}

.modal-input::placeholder { color: rgba(255,255,255,0.18); font-family: var(--font-body); font-weight: 400; }
.modal-input:focus { border-color: var(--or); }

.modal-select {
  width: 100%;
  padding: 12px 14px;
  background: #1c1c1c;
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 7px;
  color: var(--blanc);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.88rem;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.modal-select:focus { border-color: var(--or); }

/* Stepper voix */
.votes-stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 7px;
  overflow: hidden;
}

.stepper-btn {
  width: 44px;
  background: rgba(212,175,55,0.07);
  border: none;
  color: var(--or);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.stepper-btn:hover  { background: rgba(212,175,55,0.15); }
.stepper-btn:active { background: rgba(212,175,55,0.22); }

.stepper-input {
  flex: 1;
  text-align: center;
  border: none !important;
  border-left: 1px solid rgba(212,175,55,0.15) !important;
  border-right: 1px solid rgba(212,175,55,0.15) !important;
  border-radius: 0 !important;
  background: rgba(255,255,255,0.03) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  -moz-appearance: textfield;
  padding: 12px 0 !important;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Récapitulatif total */
.modal-total {
  background: rgba(212,175,55,0.04);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 7px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.modal-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  padding: 3px 0;
}

.modal-total-line.total-main {
  border-top: 1px solid rgba(212,175,55,0.12);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blanc);
}

.modal-total-line.total-main span:last-child {
  color: var(--or-vif);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
}

/* Info paiement */
.modal-info {
  background: rgba(212,175,55,0.04);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
}

.modal-info svg { color: var(--or); flex-shrink: 0; margin-top: 1px; }

/* Bouton soumettre */
.modal-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--or), var(--or-fonce));
  color: var(--noir);
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: var(--transition);
}

.modal-submit:hover {
  background: linear-gradient(135deg, var(--or-vif), var(--or));
  box-shadow: 0 0 28px rgba(212,175,55,0.45);
  transform: translateY(-1px);
}

.modal-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(212,175,55,0.7);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  transition: color 0.2s, gap 0.2s;
}

.back-link:hover { color: var(--or); gap: 12px; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 900px) {
  .vote-header { padding: 104px 10px 10px; }
  .category-nav-inner { padding: 0 16px; }
  .category-section { padding: 10px 18px 56px; }
  .category-header { text-align: center; }
  .category-desc { margin: 0 auto; }
  .vote-controls { padding: 20px 20px 8px; }
  .nominees-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  /* .vote-info-badges { flex-direction: column; align-items: center; } */
  .vote-info-badges { display: none; }
}

@media (max-width: 600px) {
  /* E: dégager le visage — badges poussés aux extrémités, plus compacts */
  .rank-badge {
    top: 8px; left: 6px;
    padding: 4px 9px;
    font-size: 9px;
  }
  .vote-badge {
    top: 8px; right: 6px;
    padding: 4px 9px;
    font-size: 10px;
    gap: 3px;
  }
  .vote-badge svg { width: 9px; height: 9px; }

  .vote-page-title { font-size: clamp(3rem, 15vw, 5rem); }
  .vote-page-title-a { font-size: clamp(1rem, 13vw, 4rem); }
  .vote-hero-title { font-size: clamp(1.2rem, 8vw, 2.4rem); margin-bottom: 14px; }
  .vote-page-desc { font-size: 0.88rem; margin-bottom: 22px; }
  .vote-stats-row { gap: 8px 14px; margin-bottom: 26px; }
  .vote-stat { font-size: 8.5px; gap: 4px; }
  .vote-stat svg { width: 11px; height: 11px; }
  .nominees-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .modal { padding: 36px 20px 28px; }
  .vote-controls { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: 100%; }
}

@media (max-width: 420px) {
  .vote-stats-row { gap: 6px 10px; }
  .vote-stat { font-size: 8px; }
}

/* ════════════════════════════════════════
   FICHE DÉTAIL D'UN CANDIDAT (candidat.html)
════════════════════════════════════════ */
.candidate-detail-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 130px 40px 90px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: var(--transition);
}
.back-link:hover { color: var(--or-vif); transform: translateX(-3px); }

.candidate-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 50px;
  align-items: start;
  background: linear-gradient(160deg, rgba(212,175,55,0.05), transparent 60%);
  border: 1px solid rgba(212,175,55,0.12);
  border-radius: 16px;
  padding: 36px;
}

.candidate-photo-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, rgba(212,175,55,0.12), rgba(0,0,0,0.4));
}

.candidate-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.candidate-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: rgba(212,175,55,0.35);
}
.candidate-photo-placeholder svg { width: 60px; height: 60px; }
.candidate-photo-placeholder span { font-size: 12px; letter-spacing: 1px; }

.candidate-photo-wrap .rank-badge {
  position: absolute; top: 16px; left: 16px;
  font-size: 12px; padding: 6px 14px;
}
.candidate-photo-wrap .vote-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 13px; padding: 6px 14px;
}

.candidate-info {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.candidate-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 16px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 20px;
  color: var(--or-vif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.candidate-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  color: var(--blanc);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.candidate-level {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 20px;
}

.candidate-bio {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 26px;
  max-width: 480px;
}

.candidate-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.candidate-progress-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-bottom: 26px;
}

.candidate-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--or-fonce), var(--or-vif));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.candidate-price-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.candidate-price-tag strong {
  color: var(--or-vif);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.candidate-vote-btn {
  max-width: 340px;
  padding: 16px 20px;
  font-size: 12px;
}

.candidate-not-found {
  max-width: 600px;
  margin: 160px auto;
  text-align: center;
  color: rgba(255,255,255,0.5);
}
.candidate-not-found p { margin-bottom: 20px; font-size: 1rem; }

@media (max-width: 800px) {
  .candidate-detail-page { padding: 110px 20px 60px; }
  .candidate-detail-grid {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 26px;
  }
  .candidate-photo-wrap { aspect-ratio: 4/3; max-width: 420px; margin: 0 auto; width: 100%; }
  .candidate-name { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .candidate-info { align-items: center; text-align: center; }
  .candidate-official-badge { align-self: center; }
  .candidate-bio { max-width: 100%; }
  .candidate-vote-btn { max-width: 100%; }
  .candidate-price-tag { width: 100%; }
}