/* ==========================================================================
   PADIS SWISS AWARDS — pages de vote (vote.php, vote-statut.php)
   ========================================================================== */
.vote-page {
  --vote-accent: var(--accent-color, #f87500);
  --vote-accent-dark: #c12f08;
  --vote-ink: var(--heading-color, #281a0c);
  --vote-muted: #7a6f64;
  --vote-line: #eee6dd;
  --vote-soft: #fff6ee;
}

/* ---- bandeau --------------------------------------------------------------- */
.vote-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.vote-countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 8px;
}

.vote-countdown-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.vote-countdown-boxes {
  display: flex;
  gap: 8px;
}

.vote-countdown-boxes div {
  min-width: 58px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.vote-countdown-boxes strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.vote-countdown-boxes span {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.75;
}

.vote-alert {
  background: var(--vote-soft);
  border: 1px solid #f8d4b0;
  color: var(--vote-ink);
}

/* ---- recherche + filtres --------------------------------------------------- */
.vote-toolbar {
  margin-bottom: 30px;
}

.vote-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--vote-line);
  border-radius: 50px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(40, 26, 12, 0.05);
}

.vote-search:focus-within {
  border-color: var(--vote-accent);
}

.vote-search i {
  color: var(--vote-muted);
}

.vote-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.vote-count {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--vote-muted);
}

.vote-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.vote-filter {
  padding: 6px 16px;
  border: 1px solid var(--vote-line);
  border-radius: 50px;
  background: #fff;
  color: var(--vote-ink);
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
}

.vote-filter:hover {
  border-color: var(--vote-accent);
  color: var(--vote-accent);
}

.vote-filter.active {
  border-color: var(--vote-accent);
  background: var(--vote-accent);
  color: #fff;
}

/* ---- cartes des nominés ---------------------------------------------------- */
.vote-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(40, 26, 12, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.vote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(40, 26, 12, 0.14);
}

.vote-card-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f4efe9;
}

.vote-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.vote-card-photo img.is-placeholder {
  object-fit: contain;
  padding: 30%;
}

.vote-score {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.vote-score i {
  color: var(--vote-accent);
}

.vote-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.vote-card-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--vote-accent-dark);
}

.vote-card-name {
  margin: 6px 0 14px;
  font-size: 18px;
  font-weight: 600;
}

.vote-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.vote-btn {
  flex: 1;
  border: 0;
  border-radius: 50px;
  background: var(--vote-accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  transition: 0.2s;
}

.vote-btn:hover,
.vote-btn:focus {
  background: var(--vote-accent-dark);
  color: #fff;
}

.vote-btn:disabled {
  background: #d9d2ca;
  color: #fff;
  opacity: 1;
}

.vote-btn-outline {
  flex: 1;
  border: 1px solid var(--vote-accent);
  border-radius: 50px;
  background: #fff;
  color: var(--vote-accent);
  font-weight: 600;
  padding: 10px 18px;
}

.vote-btn-outline:hover {
  background: var(--vote-soft);
  color: var(--vote-accent-dark);
}

.vote-share {
  width: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--vote-line);
  border-radius: 50%;
  background: #fff;
  color: var(--vote-ink);
  font-size: 20px;
  padding: 0;
}

.vote-share:hover,
.vote-share.copied {
  border-color: var(--vote-accent);
  color: var(--vote-accent);
}

/* ---- profil d'un nominé (lien personnel vote.php?n=...) -------------------- */
.vote-profile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  margin-bottom: 48px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(40, 26, 12, 0.12);
  scroll-margin-top: 150px;
}

.vote-profile-photo {
  position: relative;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  background: #f4efe9;
}

.vote-profile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.vote-profile-photo img.is-placeholder {
  object-fit: contain;
  padding: 25%;
}

.vote-profile-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 40px;
}

.vote-profile-name {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.vote-profile-text {
  margin: 0;
  color: var(--vote-muted);
}

.vote-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vote-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--vote-soft);
  color: var(--vote-ink);
  font-weight: 500;
}

.vote-profile-meta i {
  color: var(--vote-accent);
}

.vote-profile-btn {
  flex: none;
  width: 100%;
  padding: 16px 24px;
  font-size: 18px;
}

.vote-profile-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vote-profile-share .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 180px;
}

.vote-profile-share .btn.copied {
  background: var(--vote-soft);
}

.vote-profile-all {
  align-self: flex-start;
  color: var(--vote-accent-dark);
  font-weight: 600;
}

/* ---- nominés regroupés par catégorie --------------------------------------- */
.vote-group {
  margin-bottom: 48px;
}

.vote-group-title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--vote-accent);
  color: var(--vote-ink);
  font-size: 20px;
  font-weight: 700;
}

.vote-group-count {
  color: var(--vote-muted);
  font-size: 15px;
  font-weight: 500;
}

/* le titre du groupe indique déjà la catégorie */
.vote-group .vote-card-category {
  display: none;
}

.vote-section-title {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  scroll-margin-top: 150px;
}

@media (max-width: 767px) {
  .vote-profile {
    grid-template-columns: 1fr;
  }

  .vote-profile-photo {
    aspect-ratio: 1 / 1;
  }

  .vote-profile-body {
    padding: 24px 20px;
  }

  .vote-profile,
  .vote-section-title {
    scroll-margin-top: 175px;
  }
}

/* ---- fenêtre de vote ------------------------------------------------------- */
.vote-modal {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
}

.vote-modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
}

.vote-modal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 50px 16px 20px;
  background: var(--vote-soft);
}

[dir="rtl"] .vote-modal-head {
  padding: 20px 20px 16px 50px;
}

.vote-modal-head img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.vote-modal-head h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.vote-modal .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--vote-ink);
}

.vote-total {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--vote-accent-dark);
}

.vote-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.vote-method input {
  position: absolute;
  opacity: 0;
}

.vote-method span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 10px 6px;
  border: 1.5px solid var(--vote-line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.vote-method span i {
  font-size: 20px;
  color: var(--vote-accent);
}

.vote-method input:checked + span {
  border-color: var(--vote-accent);
  background: var(--vote-soft);
}

.vote-method input:focus-visible + span {
  outline: 2px solid var(--vote-accent);
  outline-offset: 2px;
}

.vote-dial {
  max-width: 45%;
}

/* ---- suivi du paiement ----------------------------------------------------- */
.vote-status {
  text-align: center;
}

.vote-status-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 48px;
  line-height: 1;
}

.vote-status-icon > * {
  display: none;
}

.vote-status-icon .spinner-border {
  width: 48px;
  height: 48px;
  color: var(--vote-accent);
}

.vote-status[data-state="pending"] [data-icon="pending"],
.vote-status[data-state="success"] [data-icon="success"],
.vote-status[data-state="cancelled"] [data-icon="cancelled"] {
  display: inline-block;
}

.vote-status [data-icon="success"] {
  color: #1f9d55;
}

.vote-status [data-icon="cancelled"] {
  color: #d63031;
}

.vote-status h3 {
  font-size: 22px;
}

.vote-status-details {
  margin: 20px 0 10px;
  text-align: start;
}

.vote-status-details div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--vote-line);
}

.vote-status-details dt {
  font-weight: 500;
  color: var(--vote-muted);
}

.vote-status-details dd {
  margin: 0;
  font-weight: 600;
  text-align: end;
  word-break: break-all;
}

.vote-status-countdown {
  min-height: 20px;
  font-size: 13px;
  color: var(--vote-muted);
}

.vote-status-actions {
  display: flex;
  gap: 10px;
}

.vote-status-card {
  padding: 30px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(40, 26, 12, 0.08);
}

.vote-back-link {
  color: var(--vote-accent-dark);
  font-weight: 500;
}

[dir="rtl"] .vote-back-link i {
  display: inline-block;
  transform: scaleX(-1);
}

/* ---- bouton WhatsApp (repris des autres pages) ------------------------------ */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 575px) {
  .vote-methods {
    grid-template-columns: 1fr;
  }

  .vote-method span {
    flex-direction: row;
    justify-content: center;
  }

  .vote-dial {
    max-width: 50%;
  }

  .vote-countdown-boxes div {
    min-width: 50px;
  }
}
