/* PlayQR Tirage — tirage-live.css */

.pqt-live {
  --pqt-primary: #1f2937;
  --pqt-accent:  #fbbf24;
  --pqt-text:    #111827;
  --pqt-muted:   #6b7280;
  --pqt-border:  #e5e7eb;
  --pqt-error:   #b91c1c;
  --pqt-success: #047857;

  max-width: 1200px;
  margin: 0 auto;
  padding: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  color: var(--pqt-text);
}

.pqt-live * { box-sizing: border-box; }

/* --- Display mode (projection plein écran) --- */
.pqt-display-mode {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  min-height: 100vh;
  max-width: 100%;
  padding: 22px 22px 30px;
}
.pqt-display-mode .pqt-live-header { color: #fff; }
.pqt-display-mode .pqt-muted { color: #cbd5e1; }
.pqt-display-mode .pqt-admin-panel { display: none; }
.pqt-display-mode .pqt-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.pqt-display-mode .pqt-current-lot,
.pqt-display-mode .pqt-winner-reveal { color: #fff; }

.pqt-live .pqt-card {
  background: #fff;
  border: 1px solid var(--pqt-border);
  border-radius: 14px;
  padding: 22px 18px;
  margin-bottom: 16px;
}

.pqt-live-header {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 18px;
}
.pqt-live-header img {
  width: 64px; height: 64px; object-fit: contain;
  border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--pqt-border);
}
.pqt-live-header h1 { margin: 0; font-size: 1.6rem; }
.pqt-display-mode .pqt-live-header h1 { font-size: 2.2rem; }
.pqt-live-stats {
  margin-left: auto;
  display: flex; gap: 16px;
  font-size: .9rem;
}
.pqt-live-stats .pqt-stat-box {
  background: rgba(0,0,0,.04);
  padding: 8px 14px; border-radius: 10px;
  text-align: center;
}
.pqt-display-mode .pqt-live-stats .pqt-stat-box { background: rgba(255,255,255,.08); }
.pqt-live-stats .pqt-stat-num { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.pqt-live-stats .pqt-stat-lbl { font-size: .75rem; opacity: .8; margin-top: 3px; }

/* --- Roue --- */
.pqt-wheel-zone {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 22px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
}
.pqt-display-mode .pqt-wheel-zone { max-width: min(72vh, 720px); }
.pqt-wheel-pointer {
  position: absolute;
  top: 2px; left: 50%; transform: translateX(-50%);
  font-size: 2.2rem; color: var(--pqt-accent);
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.pqt-wheel-container {
  position: relative;
  width: 100%; height: 100%;
  transition: none;
  transform-origin: 50% 50%;
  will-change: transform;
}
.pqt-wheel-container svg {
  display: block;
  width: 100%; height: 100%;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
  border-radius: 50%;
}
.pqt-wheel-container.spinning svg {
  /* La rotation est appliquée inline via transform par le JS */
}
/* Pendant le spin : ombre portée désactivée pour la fluidité. */
.pqt-wheel-container.pqt-spin svg { filter: none; }
.pqt-wheel-hub {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 50%;
  border: 4px solid var(--pqt-primary);
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.pqt-display-mode .pqt-wheel-hub { width: 64px; height: 64px; }

/* Le moyeu est désormais dessiné dans le SVG ; on masque l'ancien div. */
.pqt-wheel-hub { display: none; }

/* --- Lot en cours --- */
.pqt-current-lot {
  text-align: center;
  background: var(--pqt-primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  margin: 0 auto 18px;
  max-width: 640px;
}
.pqt-current-lot-place { font-size: .85rem; opacity: .8; text-transform: uppercase; letter-spacing: 1px; }
.pqt-current-lot h2 { margin: 4px 0; font-size: 1.6rem; }

/* --- Révélation gagnant --- */
.pqt-winner-reveal {
  text-align: center;
  background: linear-gradient(135deg, var(--pqt-accent), #f59e0b);
  color: #1f2937;
  padding: 22px;
  border-radius: 16px;
  margin: 16px auto;
  max-width: 640px;
  animation: pqt-pop .5s cubic-bezier(.18, 1.3, .35, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.pqt-display-mode .pqt-winner-reveal { font-size: 1.2rem; }
.pqt-winner-place { font-size: .9rem; font-weight: 700; opacity: .8; }
.pqt-winner-name { font-size: 2.4rem; font-weight: 800; line-height: 1.1; margin: 6px 0; }
.pqt-display-mode .pqt-winner-name { font-size: 3rem; }
.pqt-winner-prize { font-size: 1.1rem; font-weight: 600; }
@keyframes pqt-pop {
  0% { opacity: 0; transform: scale(.6) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- Panel admin --- */
.pqt-admin-panel {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 768px) {
  .pqt-admin-panel { grid-template-columns: 1fr; }
}
.pqt-admin-actions {
  background: #fff;
  border: 1px solid var(--pqt-border);
  border-radius: 14px;
  padding: 18px;
}
.pqt-admin-actions .pqt-btn { margin-bottom: 8px; }
.pqt-admin-actions .pqt-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pqt-admin-actions .pqt-btn-row .pqt-btn { flex: 1; min-width: 130px; }

.pqt-admin-side details {
  background: #fff;
  border: 1px solid var(--pqt-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.pqt-admin-side summary { cursor: pointer; font-weight: 700; }
.pqt-admin-side .pqt-lot-row,
.pqt-admin-side .pqt-winner-row {
  padding: 8px 0;
  border-top: 1px solid var(--pqt-border);
  font-size: .92rem;
}
.pqt-admin-side .pqt-lot-row.drawn { opacity: .45; text-decoration: line-through; }
.pqt-admin-side .pqt-winner-row .pqt-place { font-weight: 700; color: var(--pqt-primary); }
.pqt-admin-side .pqt-winner-row .pqt-name { font-weight: 600; }
.pqt-admin-side .pqt-winner-row .pqt-pending { color: #ca8a04; font-size: .8rem; }

/* Buttons */
.pqt-live .pqt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  font-size: 1rem; font-weight: 700;
  border: none; border-radius: 12px;
  cursor: pointer;
}
.pqt-live .pqt-btn:disabled { opacity: .55; cursor: wait; }
.pqt-live .pqt-btn-primary { background: var(--pqt-primary); color: #fff; width: 100%; padding: 18px; font-size: 1.1rem; }
.pqt-live .pqt-btn-gold    { background: var(--pqt-accent); color: #1f2937; }
.pqt-live .pqt-btn-danger  { background: #dc2626; color: #fff; }
.pqt-live .pqt-btn-ghost   { background: transparent; color: var(--pqt-text); border: 1.5px solid var(--pqt-border); padding: 10px 14px; font-weight: 500; }

.pqt-display-link a { word-break: break-all; }

.pqt-confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  display: none;
}
.pqt-confetti-canvas.active { display: block; }

.pqt-loading { text-align: center; }
.pqt-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--pqt-border);
  border-top-color: var(--pqt-primary);
  border-radius: 50%;
  animation: pqt-spin 1s linear infinite;
  margin: 0 auto 12px;
}
@keyframes pqt-spin { to { transform: rotate(360deg); } }

.pqt-error-msg {
  background: #fef2f2; color: var(--pqt-error);
  padding: 10px 14px; border-radius: 10px;
  margin: 12px 0 0; font-size: .95rem;
}

.pqt-error h2 { color: var(--pqt-error); }

.pqt-field { margin-bottom: 14px; }
.pqt-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.pqt-field input[type=password] {
  width: 100%; font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--pqt-border);
  border-radius: 10px;
}

/* Picker (grille de tombolas) — partagé avec frontend.css */
.pqt-picker { max-width: 1000px; }
.pqt-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.pqt-picker-card {
  background: #fff;
  border: 1px solid var(--pqt-border);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  transition: transform .12s, box-shadow .12s;
}
.pqt-picker-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.pqt-picker-card h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.pqt-picker-card .pqt-muted { font-size: .9rem; margin: 2px 0; }
.pqt-picker-meta { color: var(--pqt-muted); font-size: .85rem; margin: 6px 0; }
.pqt-picker-modes { color: var(--pqt-muted); font-size: .8rem; margin: 4px 0 8px; }
.pqt-picker-status {
  display: inline-block; background: rgba(0,0,0,.06);
  padding: 2px 8px; border-radius: 10px; font-size: .8rem; font-weight: 600;
}
.pqt-picker-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.pqt-picker-actions { margin: 10px 0 0; }
.pqt-fake-btn {
  display: inline-block; background: var(--pqt-primary); color: #fff;
  padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .9rem;
}
.pqt-picker-display-link {
  display: inline-block; margin-top: 8px; font-size: .8rem; color: var(--pqt-muted); text-decoration: none;
}

/* ============ Mode projection (display) ============ */

#pqt-fs-overlay { display: none; }
.pqt-display-mode #pqt-fs-overlay {
  display: flex; align-items: center; justify-content: center;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999999; background: #0f172a;
}
.pqt-fs-box { text-align: center; color: #fff; padding: 24px; }
.pqt-fs-logo {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2.6rem; font-weight: 800; letter-spacing: .5px; color: #fff;
}
.pqt-fs-sub { color: #cbd5e1; margin: 6px 0 24px; font-size: 1.05rem; }
#pqt-fs-go { background: #E11D48; color: #fff; border: none; padding: 16px 32px; border-radius: 10px; font-size: 1.15rem; font-weight: 800; cursor: pointer; }
.pqt-fs-hint { color: #64748b; font-size: .85rem; margin-top: 18px; }

#pqt-live-root:fullscreen { background: #0f172a; overflow: hidden; }
#pqt-live-root:-webkit-full-screen { background: #0f172a; overflow: hidden; }

/* ─── Branding live : 2 logos distincts ────────────────────────────────
   - #pqt-platform-logo : logo PLATEFORME PlayQR, en haut à gauche du header.
     Réglage global (Settings → Logo plateforme). Affiché UNIQUEMENT si la
     classe pqt-has-platform-logo est sur le root (= URL fournie par server,
     côté server filtré par BrandingDetector::should_show_branding).
   - #pqt-client-logo : logo du CLIENT (établissement/club), affiché à côté
     du titre de la tombola. Visible si effective_logo défini sur le client
     ou la tombola.
   Les anciens textes PLAYQR.ch / .pqt-brand / .pqt-fs-logo restent retirés. */
.pqt-brand,
.pqt-pqr-logo,
.pqt-fs-logo { display: none !important; }

/* Logo plateforme PlayQR — top-left header */
#pqt-platform-logo { display: none; }
.pqt-has-platform-logo #pqt-platform-logo { display: block; }
.pqt-display-mode #pqt-platform-logo {
  background: transparent;
  border: none;
  padding: 0;
  width: 84px;
  height: 84px;
}

/* Logo CLIENT — à droite du titre de la tombola, mêmes dimensions que le platform logo */
.pqt-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pqt-title-row h1 { flex: 1 1 auto; min-width: 0; }
#pqt-client-logo { display: none; }
.pqt-has-client-logo #pqt-client-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--pqt-border);
  border-radius: 10px;
  padding: 6px;
}
/* En display mode : mêmes dimensions que le platform logo (84×84) + fond transparent */
.pqt-display-mode.pqt-has-client-logo #pqt-client-logo {
  background: transparent;
  border: none;
  padding: 0;
  width: 84px;
  height: 84px;
}

/* Petit décalage de la roue en display mode si logo plateforme présent */
.pqt-display-mode.pqt-has-platform-logo .pqt-wheel-zone { margin-top: 8px; }

/* "Propulsé par PlayQR" : masqué si le client a Sans Branding */
.pqt-no-branding .pqt-powered { display: none !important; }

/* ─── « Propulsé par PlayQR » — discret, bas-centre ─── */
.pqt-powered {
  text-align: center;
  margin: 18px 0 6px;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: .2px;
  user-select: none;
}
.pqt-powered span { opacity: .75; margin-right: 4px; }
.pqt-powered a {
  color: #94a3b8;
  text-decoration: underline;
  text-decoration-color: rgba(148,163,184,.4);
  text-underline-offset: 2px;
  font-weight: 500;
}
.pqt-powered a:hover { color: #cbd5e1; text-decoration-color: #cbd5e1; }
/* En display mode (fond sombre projection), on garde discret mais lisible */
.pqt-display-mode .pqt-powered {
  position: fixed;
  bottom: 12px;
  left: 0; right: 0;
  z-index: 5;
  color: rgba(255,255,255,.45);
}
.pqt-display-mode .pqt-powered a {
  color: rgba(255,255,255,.55);
  text-decoration-color: rgba(255,255,255,.25);
}
.pqt-display-mode .pqt-powered a:hover { color: rgba(255,255,255,.85); }

/* En-tête. */
.pqt-display-mode .pqt-live-titlewrap { flex: 1; text-align: center; min-width: 0; }
.pqt-display-mode #pqt-live-title,
.pqt-display-mode .pqt-live-header h1 { color: #fff !important; }
.pqt-display-mode #pqt-live-client { display: none; }

/* Lot en cours : photo + nom plus grands, textes lisibles. */
.pqt-current-lot { display: flex; align-items: center; justify-content: center; gap: 16px; }
.pqt-current-photo { width: 150px; height: 112px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.pqt-current-lot-text { text-align: center; }
.pqt-current-lot #pqt-current-place { color: rgba(255,255,255,.78) !important; }
.pqt-current-lot #pqt-current-title { color: #fff !important; }
.pqt-display-mode .pqt-current-lot { max-width: 100%; }
.pqt-display-mode .pqt-current-lot #pqt-current-title { font-size: 1.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pqt-display-mode .pqt-current-lot #pqt-current-value { font-size: 1.5rem; font-weight: 800; }
.pqt-current-lot #pqt-current-value { color: #fbbf24 !important; opacity: 1 !important; }

/* Barre de commandes fixe en bas. */
.pqt-display-mode #pqt-live-stage { padding-bottom: 74px; }
.pqt-display-mode .pqt-admin-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 160;
  display: block; margin: 0; padding: 6px 16px;
  background: rgba(15,23,42,.97); border-top: 1px solid rgba(255,255,255,.18);
}
.pqt-display-mode .pqt-admin-side { display: none; }
.pqt-display-mode .pqt-admin-actions {
  background: transparent; border: none; padding: 0;
  max-width: 680px; margin: 0 auto; color: #fff;
}
.pqt-display-mode .pqt-admin-actions .pqt-btn { margin-bottom: 0; padding: 11px 18px; font-size: 1rem; }
.pqt-display-mode .pqt-proj-links { display: none; }
.pqt-display-mode .pqt-btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.45) !important; }

/* Bouton « quitter le plein écran » — bas-droite. */
#pqt-fs-exit { display: none; }
.pqt-display-mode #pqt-fs-exit {
  display: inline-flex; align-items: center; gap: 5px;
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: transparent; color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.35); border-radius: 7px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}

/* Bouton bascule format 16:9 / 9:16 — coin bas-gauche. */
#pqt-fmt-toggle { display: none; }
.pqt-display-mode #pqt-fmt-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  background: transparent; color: #cbd5e1; font-weight: 600;
  border: 1px solid rgba(255,255,255,.35); border-radius: 7px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
}

/* Bouton discret « annuler le dernier » — coin bas-gauche. */
#pqt-undo-corner { display: none; }
.pqt-display-mode #pqt-undo-corner {
  display: inline-flex; align-items: center; gap: 5px;
  position: absolute; left: 122px; top: 50%; transform: translateY(-50%);
  background: transparent; color: #94a3b8;
  border: 1px solid rgba(255,255,255,.22); border-radius: 7px;
  padding: 6px 11px; font-size: 12px; cursor: pointer;
}
.pqt-display-mode #pqt-undo-corner[hidden] { display: none; }

/* Liste des lots — titre, prix, description, gagnant ; sans photo. */
#pqt-lots-display { display: none; }
.pqt-display-mode #pqt-lots-display { display: block; margin-top: 14px; }
#pqt-lots-display .pqt-ld-title { margin: 0 0 8px; font-size: 1.05rem; color: #fff; }
.pqt-ld-row { padding: 9px 13px; border-radius: 8px; background: rgba(255,255,255,.07); margin-bottom: 6px; }
.pqt-ld-row.done { opacity: .5; }
.pqt-ld-name { font-weight: 700; color: #fff; font-size: 1rem; line-height: 1.25; }
.pqt-ld-row.done .pqt-ld-name { text-decoration: line-through; }
.pqt-ld-val { color: #fbbf24; font-weight: 700; font-size: .9rem; }
.pqt-ld-desc { color: #94a3b8; font-size: .82rem; margin-top: 2px; }
.pqt-ld-winner { color: #34d399; font-weight: 600; font-size: .85rem; margin-top: 3px; }

/* 16:9 — roue plus grande (déborde un peu bas-gauche), lots à droite. */
@media (min-width: 900px) {
  .pqt-display-mode.pqt-fmt-169 #pqt-live-stage {
    display: flex; flex-direction: row;
    align-items: flex-start; gap: 18px;
  }
  .pqt-display-mode.pqt-fmt-169 .pqt-wheel-zone {
    width: min(58vw, 100vh); flex: 0 0 auto;
    margin: -2vh 0 0 -3.5vw;
  }
  .pqt-display-mode.pqt-fmt-169 .pqt-stage-info {
    flex: 1 1 auto; min-width: 0; max-height: 86vh; overflow: auto;
    scrollbar-width: none;
  }
  .pqt-display-mode.pqt-fmt-169 .pqt-stage-info::-webkit-scrollbar { width: 0; height: 0; display: none; }
}

/* 9:16 — portrait. */
.pqt-display-mode.pqt-fmt-916 .pqt-wheel-zone { max-width: min(96vw, 56vh); }

/* Boutons de lancement de la projection (page de connexion). */
.pqt-live .pqt-display-link .button {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pqt-primary); color: #fff !important;
  padding: 12px 18px; border-radius: 10px; border: none;
  font-weight: 700; font-size: .95rem; text-decoration: none;
}
.pqt-live .pqt-display-link .button:hover { opacity: .9; }

/* ============ Podium des 3 plus gros lots ============ */
.pqt-podium { text-align: center; padding: 4px 0; }
.pqt-podium-title { margin: 0 0 14px; font-size: 1.1rem; color: #fff; }
.pqt-podium-row { display: flex; align-items: flex-end; justify-content: center; gap: 10px; }
.pqt-podium-col {
  flex: 1 1 0; min-width: 0; max-width: 230px;
  display: flex; flex-direction: column; align-items: center;
}
.pqt-podium-medal { font-size: 2rem; line-height: 1; }
.pqt-podium-lot {
  font-weight: 700; color: #fff; font-size: .9rem; line-height: 1.2; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pqt-podium-val { color: #fbbf24; font-weight: 700; font-size: .82rem; margin: 2px 0; }
.pqt-podium-winner {
  font-weight: 800; color: #0f172a; background: #fff;
  border-radius: 6px; padding: 5px 11px; margin: 5px 0; font-size: 1.05rem;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  animation: pqt-pop .45s cubic-bezier(.18,1.3,.35,1);
}
.pqt-podium-pending { color: #94a3b8; font-style: italic; font-size: .82rem; margin: 5px 0; }
.pqt-podium-live { color: #fbbf24; font-style: normal; font-weight: 700; }
.pqt-podium-step {
  width: 100%; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8px; font-size: 1.6rem; font-weight: 900; color: rgba(255,255,255,.85);
  border-radius: 9px 9px 0 0;
}
.pqt-podium-r1 .pqt-podium-step { height: 104px; background: linear-gradient(180deg,#fbbf24,#f59e0b); }
.pqt-podium-r2 .pqt-podium-step { height: 74px;  background: linear-gradient(180deg,#e2e8f0,#94a3b8); }
.pqt-podium-r3 .pqt-podium-step { height: 50px;  background: linear-gradient(180deg,#e0a87e,#b45309); }

/* ============ Grand final : le podium prend toute la scène ============ */
.pqt-display-mode.pqt-finale .pqt-wheel-zone,
.pqt-display-mode.pqt-finale .pqt-current-lot,
.pqt-display-mode.pqt-finale .pqt-winner-reveal { display: none !important; }
.pqt-display-mode.pqt-finale.pqt-fmt-169 #pqt-live-stage { display: block; }
.pqt-display-mode.pqt-finale .pqt-stage-info {
  max-height: none !important; overflow: visible !important;
}
.pqt-display-mode.pqt-finale #pqt-lots-display { max-width: 1000px; margin: 2vh auto 0; }
.pqt-display-mode.pqt-finale .pqt-podium-title { font-size: 1.8rem; margin-bottom: 26px; }
.pqt-display-mode.pqt-finale .pqt-podium-row { gap: 18px; }
.pqt-display-mode.pqt-finale .pqt-podium-col { max-width: 300px; }
.pqt-display-mode.pqt-finale .pqt-podium-medal { font-size: 3.4rem; }
.pqt-display-mode.pqt-finale .pqt-podium-lot { font-size: 1.15rem; }
.pqt-display-mode.pqt-finale .pqt-podium-val { font-size: 1rem; }
.pqt-display-mode.pqt-finale .pqt-podium-winner { font-size: 1.6rem; padding: 8px 16px; }
.pqt-display-mode.pqt-finale .pqt-podium-step { font-size: 2.4rem; padding-top: 12px; }
.pqt-display-mode.pqt-finale .pqt-podium-r1 .pqt-podium-step { height: 200px; }
.pqt-display-mode.pqt-finale .pqt-podium-r2 .pqt-podium-step { height: 140px; }
.pqt-display-mode.pqt-finale .pqt-podium-r3 .pqt-podium-step { height: 92px; }

/* Autres gagnants — cellules fixes qui se retournent en continu. */
.pqt-podium-others { margin-top: 22px; }
.pqt-others-title { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; text-align: center; }
.pqt-rot-grid { display: grid; gap: 12px; }
.pqt-rot-cell {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 12px; text-align: center;
  height: 118px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: perspective(520px) rotateY(0deg);
  transition: transform .5s ease;
}
.pqt-rot-name {
  color: #fff; font-weight: 800; font-size: 1.1rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.pqt-rot-lot {
  color: #cbd5e1; font-size: .9rem; line-height: 1.25; margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pqt-rot-val {
  color: #fbbf24; font-weight: 700; font-size: .95rem; margin-top: 5px;
  white-space: nowrap;
}


/* ============ Popup lots de consolation ============ */
.pqt-consolation #pqt-conso-app { max-width: 920px; margin: 0 auto; }
.pqt-conso-card { text-align: center; }
.pqt-conso-card h2 { margin: 0 0 8px; color: #fff; }
.pqt-conso-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.pqt-conso-row input {
  padding: 9px 11px; border-radius: 7px; border: 1px solid rgba(255,255,255,.25);
  background: #fff; color: #111827; font-size: 14px;
}
.pqt-conso-row .cr-label { flex: 1; min-width: 0; }
.pqt-conso-row .cr-value { width: 160px; }
.pqt-conso-row .cr-qty { width: 78px; }
.pqt-conso-row .cr-del {
  background: transparent; color: #fca5a5; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); border-radius: 7px; width: 40px; height: 38px;
}
.pqt-conso-total { margin: 12px 0; color: #cbd5e1; font-weight: 600; }
.pqt-conso-card .pqt-btn { margin: 6px 6px 0; }
.pqt-conso-count { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.pqt-conso-lot { font-size: 1.15rem; color: #fbbf24; font-weight: 700; margin-bottom: 12px; }
.pqt-conso-list { margin: 18px auto 0; text-align: left; max-width: 460px; }
.pqt-conso-list h3 { font-size: 1rem; color: #fff; margin: 0 0 6px; }
.pqt-conso-wrow { padding: 6px 2px; border-top: 1px solid rgba(255,255,255,.12); color: #e2e8f0; }

/* ── v1.6.1 — Boutons de projection verrouillés avant connexion ── */
.pqt-proj-card.pqt-proj-locked a.pqt-proj-link{
  opacity:.4;pointer-events:none;cursor:not-allowed;filter:grayscale(1);
}
.pqt-proj-hint{
  margin:8px 0 0;font-size:13px;color:#b45309;line-height:1.4;
}
.pqt-proj-card:not(.pqt-proj-locked) .pqt-proj-hint{display:none;}

/* ── v1.6.1 — Passage au lot suivant (présence non requise) ── */
.pqt-next-prompt{
  margin:0 0 12px;font-size:1.08rem;line-height:1.45;
}
.pqt-next-timer{
  margin:10px 0 0;font-size:13px;color:#6b7280;
}
.pqt-next-timer #pqt-next-countdown{
  font-weight:800;color:var(--pqt-primary,#1f2937);
}
