/* Écran de tirage au sort (templates/admin/winners/draw.html.twig), conçu pour être projeté */

body.WinnerDraw {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #0f67d2 0%, #0b2f66 55%, #071a3a 100%) fixed;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.WinnerDraw-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 3rem;
}

.WinnerDraw-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.WinnerDraw-tools {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: .5rem;
  z-index: 20;
}

.WinnerDraw-tool {
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  border-radius: .5rem;
  padding: .4rem .6rem;
  opacity: .6;
}

.WinnerDraw-tool:hover,
.WinnerDraw-tool:focus-visible {
  opacity: 1;
}

.WinnerDraw-close {
  margin-top: 2.5rem;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  padding: .6rem 2rem;
  background: transparent;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
}

.WinnerDraw-close:hover,
.WinnerDraw-close:focus-visible {
  background: rgba(255, 255, 255, .15);
}

.WinnerDraw-header {
  text-align: center;
  margin-bottom: 2rem;
}

.WinnerDraw-logo {
  max-height: 14vh;
  max-width: 60vw;
  margin-bottom: 1rem;
}

.WinnerDraw-campaign {
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 600;
  opacity: .85;
}

.WinnerDraw-stage {
  width: 100%;
  max-width: 1400px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.WinnerDraw-title {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700;
  margin: 0 0 .5rem;
}

.WinnerDraw-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  opacity: .85;
  margin-bottom: 2.5rem;
}

.WinnerDraw-launch {
  border: 0;
  border-radius: 999px;
  padding: 1.2rem 3.5rem;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #0b2f66;
  background: #ffd23f;
  box-shadow: 0 0 0 0 rgba(255, 210, 63, .6);
  animation: WinnerDraw-pulse 2s infinite;
  cursor: pointer;
}

.WinnerDraw-launch:disabled {
  opacity: .6;
  animation: none;
  cursor: wait;
}

@keyframes WinnerDraw-pulse {
  70% { box-shadow: 0 0 0 1.5rem rgba(255, 210, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0); }
}

.WinnerDraw-rank {
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .8;
  margin-bottom: 1rem;
}

.WinnerDraw-name {
  min-height: 1.3em;
  padding: .3em .8em;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .1);
  font-size: clamp(2rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.3;
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}

.WinnerDraw-name.is-revealed {
  transform: scale(1.08);
  background: #ffd23f;
  color: #0b2f66;
  box-shadow: 0 0 4rem rgba(255, 210, 63, .6);
}

.WinnerDraw-error {
  margin-top: 1.5rem;
  padding: .8rem 1.5rem;
  border-radius: .75rem;
  background: rgba(245, 16, 0, .85);
  font-size: 1.2rem;
}

.WinnerDraw-winners {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: .75rem;
}

.WinnerDraw-winners:empty {
  display: none;
}

.WinnerDraw-winner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.1rem;
  border-radius: .75rem;
  background: rgba(255, 255, 255, .12);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  text-align: left;
  animation: WinnerDraw-appear .5s ease;
}

.WinnerDraw-winnerPosition {
  color: #ffd23f;
  font-weight: 700;
}

@keyframes WinnerDraw-appear {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: none; }
}

/* Fin du tirage : la liste des gagnants passe au premier plan */
.WinnerDraw-screen.is-done .WinnerDraw-winners {
  margin-top: 2rem;
}
