/* ==========================================================================
   CELEBRITY VOTES — module visiteurs (3 blocs)
   Design : minimaliste, compact, sobre. Sans emojis sauf bloc Ressenti.
   ========================================================================== */

.celeb-votes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.4;
}

.cv-block {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 14px 14px 12px;
}

.cv-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0 0 8px;
}

.cv-question {
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  margin: 0 0 4px;
  line-height: 1.3;
}

.cv-hint {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 0 0 10px;
  line-height: 1.35;
}

/* --- Options (bouton plein largeur, sobre) --- */
.cv-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.cv-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  color: #1f2937;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cv-option:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.cv-option:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

.cv-option.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
}

.cv-emoji {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.cv-label {
  flex: 1;
  font-size: 0.875rem;
}

.cv-submit {
  margin-top: 10px;
  width: 100%;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cv-submit:hover:not(:disabled) { background: #1d4ed8; border-color: #1d4ed8; }
.cv-submit:disabled { opacity: 0.45; cursor: not-allowed; }

/* --- Badge Notoriété (post-vote) --- */
.cv-badge-box {
  text-align: center;
  margin: 0 0 14px;
  padding: 12px 10px;
  background: linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.cv-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.cv-badge--icone     { background: #fef3c7; color: #92400e; border: 1px solid #fbbf24; }
.cv-badge--celebrite { background: #dbeafe; color: #1e40af; border: 1px solid #60a5fa; }
.cv-badge--reference { background: #d1fae5; color: #065f46; border: 1px solid #34d399; }
.cv-badge--pending   { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; font-weight: 500; font-size: 0.85rem; }

.cv-recognition {
  font-size: 0.82rem;
  color: #4b5563;
  margin: 8px 0 0;
}
.cv-recognition strong { color: #111827; font-weight: 600; }

/* --- Résultats --- */
.cv-result-top {
  font-size: 0.8rem;
  color: #374151;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #f3f4f6;
  border-radius: 6px;
  line-height: 1.4;
}
.cv-result-top em { font-style: normal; color: #111827; font-weight: 500; }

.cv-result-row { margin-bottom: 8px; }
.cv-result-row:last-child { margin-bottom: 0; }

.cv-result-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #374151;
  margin-bottom: 3px;
}

.cv-result-label { flex: 1; }
.cv-result-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #111827;
}

.cv-result-bar {
  height: 5px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}

.cv-result-fill {
  height: 100%;
  background: #9ca3af;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.cv-result-row.is-mine .cv-result-fill { background: #2563eb; }
.cv-result-row.is-mine .cv-result-pct { color: #2563eb; }

.cv-total {
  font-size: 0.72rem;
  color: #9ca3af;
  margin: 10px 0 0;
  text-align: right;
  letter-spacing: 0.02em;
}

.cv-error {
  font-size: 0.78rem;
  color: #b91c1c;
  background: #fef2f2;
  border-radius: 4px;
  padding: 6px 8px;
  margin: 8px 0 0;
}

/* --- États transitoires --- */
.cv-block[data-state="sending"] .cv-options,
.cv-block[data-state="sending"] .cv-submit { opacity: 0.5; pointer-events: none; }

/* --- Layout : bloc Notoriété en pleine largeur, sobre, au-dessus des Célébrités liées --- */
.notoriete-section {
  padding: 1.25rem 0;
}

.notoriete-section .celeb-votes {
  max-width: 640px;
  margin: 0 auto;
}

.notoriete-section .cv-block {
  border: none;
  border-top: 1px solid var(--color-border, #e5e7eb);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  border-radius: 0;
  background: transparent;
  padding: 1rem 0 1.1rem;
  text-align: center;
}

.notoriete-section .cv-title {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text, #111827);
  margin: 0 0 0.35rem;
}

.notoriete-section .cv-question {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--color-text-light, #6b7280);
  margin: 0 0 0.9rem;
}

.notoriete-section .cv-options {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.notoriete-section .cv-option {
  flex: 0 1 auto;
  width: auto;
  text-align: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  border-radius: 999px;
  background: #fff;
}

.notoriete-section .cv-results {
  text-align: left;
  max-width: 480px;
  margin: 0.75rem auto 0;
}
.notoriete-section .cv-badge-box {
  max-width: 480px;
  margin: 0.5rem auto 0;
}

@media (max-width: 600px) {
  .notoriete-section { padding: 1rem 0; }
  .notoriete-section .cv-options {
    flex-direction: column;
    align-items: stretch;
  }
  .notoriete-section .cv-option {
    text-align: left;
    justify-content: flex-start;
    border-radius: 6px;
  }
}
