/* ===================================================
   RETOUR PLATEAU ANIMATEUR (PROMPTEUR / MONITORING TV)
   Interface épurée et grand format pour écran retour plateau
=================================================== */

:root {
  --host-bg-dark: #060913;
  --host-card-bg: rgba(15, 23, 42, 0.95);
  --host-border: rgba(255, 255, 255, 0.12);
  --host-gold: #f59e0b;
  --host-green: #22c55e;
  --host-green-glow: rgba(34, 197, 94, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.host-body {
  background-color: #0b0f19;
  background-image: url('/assets/da/fondtest.png') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  color: #ffffff;
  font-family: 'Trasandina Regular', var(--font-body), sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* ===================================================
   HEADER LIVE BROADCAST
=================================================== */
.host-header {
  height: 76px;
  min-height: 76px;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 50;
}

.host-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.host-show-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.host-header-logo {
  height: 46px;
  border-radius: 6px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.host-round-badge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #a855f7;
  color: #c084fc;
  letter-spacing: 0.5px;
}

.host-q-counter {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.1rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 6px;
}

.host-theme-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--host-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 14px;
  border-radius: 9999px;
}

.host-double-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  padding: 4px 10px;
  border-radius: 6px;
  animation: pulse 1.5s infinite;
}

.host-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Horloge temps réel régie */
.host-live-clock-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  border: 2px solid #334155;
  padding: 6px 18px;
  border-radius: 8px;
}

.host-clock-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 1px;
}

.host-live-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.7rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
}

.host-timer-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--host-gold);
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid var(--host-gold);
  padding: 4px 16px;
  border-radius: 8px;
  display: none;
}

.host-timer-badge.active {
  display: inline-flex;
}

.host-fullscreen-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  font-size: 1.2rem;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.host-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ===================================================
   MAIN STAGE RETOUR ANIMATEUR
================================================== */
.host-main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 36px 30px;
  overflow-y: auto;
  gap: 20px;
}

/* ===================================================
   MODE 1 : MANCHES 1 & 2 (QCM)
=================================================== */
.host-qcm-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

/* Boîte de la Question QCM (Très grand format) */
.host-question-card {
  background: url('/assets/da/question.png') no-repeat center center;
  background-size: 100% 100%;
  border: none;
  border-radius: 0;
  padding: 22px 56px;
  min-height: 100px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: hostQuestionSlideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hostQuestionSlideUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.host-q-state-tag {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #334155;
  color: #cbd5e1;
}

.host-question-text {
  font-family: 'Trasandina Regular', var(--font-body), sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 10px rgba(126, 34, 206, 0.85), 0 2px 4px rgba(0, 0, 0, 0.95);
}

/* Grille des 4 Propositions */
.host-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  flex: 1;
}

.host-option-box {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.host-option-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.host-option-box.opt-0 .host-option-num { background: #dc2626; color: #fff; }
.host-option-box.opt-1 .host-option-num { background: #2563eb; color: #fff; }
.host-option-box.opt-2 .host-option-num { background: #d97706; color: #fff; }
.host-option-box.opt-3 .host-option-num { background: #16a34a; color: #fff; }

.host-option-text {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: #e2e8f0;
  flex: 1;
}

/* Badges Départements qui ont voté pour cette option */
.host-option-teams {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.host-team-pill {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 5px 14px;
  border-radius: 9999px;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.host-body .tv-propositions-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.host-body .tv-prop-card.winner::after {
  content: "✔ BONNE RÉPONSE";
  position: absolute;
  top: -14px;
  right: 20px;
  background: #22c55e;
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 3px 12px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 25;
}

.host-body .tv-prop-card.choice-right.winner::after {
  left: 20px;
  right: auto;
}

/* Sur l'écran de l'animateur, les mauvaises propositions restent parfaitement lisibles */
.host-body .tv-prop-card.loser {
  opacity: 0.88 !important;
  filter: none !important;
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.host-finale-themes-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  gap: 20px;
}

/* Bandeau Réponse Attendu en grand au bas du QCM */
.host-qcm-answer-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(16, 185, 129, 0.15));
  border: 3px solid #22c55e;
  border-radius: 12px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.3);
  animation: slideUp 0.35s ease-out;
}

.host-qcm-answer-banner.hidden {
  display: none;
}

.host-banner-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #86efac;
  letter-spacing: 1px;
}

.host-banner-answer {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
}

.host-qcm-precision {
  background: rgba(15, 23, 42, 0.92);
  border: 2px solid rgba(251, 191, 36, 0.55);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.host-qcm-precision.hidden {
  display: none !important;
}

.host-precision-title {
  font-family: 'Retrokia Caps', var(--font-title), sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.host-precision-text {
  font-family: 'Trasandina Regular', var(--font-body), sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #f8fafc;
}

/* ===================================================
   MODE 2 : GRANDE FINALE (90s RAPIDITÉ)
=================================================== */
.host-finale-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
}

.host-finale-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 14px 28px;
}

.host-candidate-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.host-candidate-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  padding: 6px 20px;
  border-radius: 9999px;
  background: #f59e0b;
  color: #000;
}

.host-candidate-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
}

.host-finale-timer-box {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--host-gold);
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  line-height: 1;
}

.host-finale-score-box {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #86efac;
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid #22c55e;
  padding: 8px 24px;
  border-radius: 12px;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Boîte Question Finale Géante */
.host-finale-question-card {
  flex: 1;
  background: var(--host-card-bg);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-left: 10px solid var(--host-gold);
  border-radius: 16px;
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.host-finale-q-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
}

/* Boîte Réponse Attendue en bas de la Finale (Très visible) */
.host-finale-answer-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.12));
  border: 3px solid #22c55e;
  border-radius: 16px;
  padding: 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.35);
}

.host-finale-answer-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: #86efac;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.host-finale-answer-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 900;
  color: #ffffff;
}

/* ===================================================
   MODE 3 : ÉCRAN D'ATTENTE SOBRE
=================================================== */
.host-idle-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.host-idle-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #64748b;
}

.host-idle-subtitle {
  font-size: 1.2rem;
  color: #475569;
}

.hidden {
  display: none !important;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===================================================
   STYLE STREAM OBS APPLIQUÉ AUX PROPOSITIONS HOST
=================================================== */
.host-body .tv-prop-card {
  position: relative;
  width: 100%;
  aspect-ratio: 766 / 98;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.65));
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.3s ease;
}

/* Alignement Option Gauche (1 & 3) */
.host-body .tv-prop-card.choice-left {
  justify-content: flex-end;
  padding-right: 74px;
  padding-left: 20px;
}
.host-body .tv-prop-card.choice-left .tv-prop-text {
  text-align: right;
  margin-left: auto;
}

/* Alignement Option Droite (2 & 4) */
.host-body .tv-prop-card.choice-right {
  justify-content: flex-start;
  padding-left: 74px;
  padding-right: 20px;
}
.host-body .tv-prop-card.choice-right .tv-prop-text {
  text-align: left;
  margin-right: auto;
}

/* Images de fond officielles par option */
.host-body .tv-prop-card.choice-1 {
  background-image: url('/assets/da/reponse_1.png') !important;
}
.host-body .tv-prop-card.choice-2 {
  background-image: url('/assets/da/reponse_2.png') !important;
}
.host-body .tv-prop-card.choice-3 {
  background-image: url('/assets/da/reponse_3.png') !important;
}
.host-body .tv-prop-card.choice-4 {
  background-image: url('/assets/da/reponse_4.png') !important;
}

/* Image verte lors du dévoilement de la bonne réponse */
.host-body #hostChoice0.winner {
  background-image: url('/assets/da/reponse_1_vert.png') !important;
  transform: scale(1.02);
  filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.9));
  z-index: 5;
}
.host-body #hostChoice1.winner {
  background-image: url('/assets/da/reponse_2_vert.png') !important;
  transform: scale(1.02);
  filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.9));
  z-index: 5;
}
.host-body #hostChoice2.winner {
  background-image: url('/assets/da/reponse_3_vert.png') !important;
  transform: scale(1.02);
  filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.9));
  z-index: 5;
}
.host-body #hostChoice3.winner {
  background-image: url('/assets/da/reponse_4_vert.png') !important;
  transform: scale(1.02);
  filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.9));
  z-index: 5;
}

/* Typographie identique au Stream */
.host-body .tv-prop-text {
  font-family: 'Trasandina Regular', var(--font-body), sans-serif;
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 0 10px rgba(126, 34, 206, 0.85), 0 0 4px rgba(147, 51, 234, 0.9), 0 2px 4px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 90px);
}

.host-banner-hint { font-size: 1.05rem; font-weight: 700; color: #fde68a; margin-top: 6px; }

.host-media-badge { background: rgba(236,72,153,.2); border-color: #ec4899; color: #f9a8d4; font-weight: 800; animation: pulse 1.5s infinite; }
.host-media-badge.live { background: #ec4899; color: #fff; animation: none; }