/* Style général */
body {
  background: #eaf4ea; /* vert pâle nature */
  padding: 40px 20px;
  color: #2f4f2f; /* vert forêt */
  min-height: 100vh;
}

/* --------- Menu Hamburger --------- */
header {
  width: 100%;
  background-color: #333;
}

/* Conteneur du menu */
.nav-hamburger {
  background-color: #333;
  position: relative;
}

/* Masquer la case à cocher */
#menu-toggle {
  display: none;
}

/* Bouton hamburger */
.menu-icon {
  display: none;
  font-size: 30px;
  color: #fff;
  padding: 10px;
  cursor: pointer;
}

/* Liste du menu en affichage horizontal */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
}

/* Liens du menu */
.menu li a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  padding: 10px 20px;
  display: block;
}

.menu li a:hover {
  background-color: #444;
}

/* Responsive pour petit écran */
@media (max-width: 600px) {
  .menu-icon {
    display: block;
  }
  .menu {
    flex-direction: column;
    display: none;
    width: 100%;
  }
  .menu li {
    text-align: center;
  }
  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }
}



/* --------- Formulaire d'inscription --------- */
.form-container {
  background-color: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  min-width: 400px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-radius: 8px;
  margin: 2rem auto;  /* Espace entre le menu et le formulaire */
}

.form-container h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-group select {
  width: 80%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  margin: 0 auto; /* Centre l'élément horizontalement */
  display: block;
  background-color: #fff; /* Assurez-vous que le fond est en accord avec vos boutons */
}


.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
}

.form-group input {
  width: 80%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  margin: 0 auto; /* Centre l'élément horizontalement */
  display: block;
  background-color: #fff; /* Assurez-vous que le fond est en accord avec vos boutons */
}

button {
  background: #4caf50; /* vert plante */
  color: white;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #388e3c;
}


/* Style des messages d'erreur */
.error {
  background-color: #ffdddd;
  border-left: 4px solid #f44336;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #a94442;
  border-radius: 4px;
}

/* Reset de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Titre */
h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #2c3e50;
}

/* Labels */
label {
  font-weight: bold;
  margin-top: 20px;
  display: block;
}

/* Selects et inputs */
select, input[type="text"] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

/* Bouton */
button {
  background: #3498db;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #2980b9;
}

/* Formulaire des participants */
#participants-form input {
  margin-bottom: 10px;
}

/* Résultats */
#results {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  max-width: 400px;
}

#results h3 {
  color: #27ae60;
  margin-bottom: 10px;
}

#results ul {
  list-style: none;
  padding-left: 0;
}

#results li {
  padding: 8px;
  margin: 5px 0;
  background: #ecf0f1;
  border-radius: 5px;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 20px;
  }

  select, input[type="text"], button {
    width: 100%;
  }
}

.container {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.05);
  max-width: 500px;
  width: 100%;
  margin: 40px auto;
}

.roulette {
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  text-align: center;
  border-radius: 20px;
  margin: 20px auto;
  background: linear-gradient(135deg, #e74c3c, #f39c12, #f1c40f, #2ecc71, #3498db, #9b59b6);
  background-size: 600% 600%;
  animation: rainbow-flow 5s ease infinite, glow-pulse 2s ease-in-out infinite;
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.2),
    0 0 25px rgba(255, 255, 255, 0.2),
    0 0 35px rgba(255, 255, 255, 0.2);
}


#roulette-name {
  font-size: 36px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}


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

@keyframes pulse-border {
  0% { box-shadow: 0 0 15px #8e44ad; }
  100% { box-shadow: 0 0 25px #3498db; }
}

.reveal-winner {
  min-width: 250px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #88b04b, #c5e1a5);
  color: #2f4f2f;
  padding: 20px;
  margin: 20px auto;
  border-radius: 20px;
  text-align: center;
  font-weight: bold;
  animation:
    helix-reveal 1s ease-in-out forwards,
    beat-grow 2s ease-in-out infinite;
  animation-delay: 0s, 1s;
  box-shadow: 0 0 25px rgba(34, 139, 34, 0.6);
  text-shadow: 2px 2px 4px #00000055;
}


@keyframes tada {
  0% { transform: scale(1); }
  10%, 20% { transform: scale(0.9) rotate(-3deg); }
  30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
  40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); }
}

#animation-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}


@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes helix-reveal {
  0% {
    opacity: 0;
    transform: rotateX(720deg) scale(0.3);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) scale(1);
  }
}

.leaf-confetti {
  position: fixed;
  top: -30px;
  font-size: 35px;
  z-index: 10000;
  animation: fall-leaf 4s linear forwards;
  pointer-events: none;
  transform: rotate(0deg);
}

@keyframes fall-leaf {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

.form-control {
  display: block;
  margin: 10px auto;
  text-align: center;
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  background-color: #fff;
}

#draw-btn.form-control {
  background-color: #4caf50;
  color: white;
  border: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

#draw-btn.form-control:hover {
  background-color: #388e3c;
}

@keyframes beat-grow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

@keyframes rainbow-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(255, 255, 255, 0.3),
      0 0 25px rgba(255, 255, 255, 0.3),
      0 0 40px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 0 30px rgba(255, 255, 255, 0.6),
      0 0 50px rgba(255, 255, 255, 0.6),
      0 0 70px rgba(255, 255, 255, 0.6);
  }
}



