/* Style global */
body {
  background: linear-gradient(to bottom right, #f8f8f8, #e0e0e0);
  color: #222;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

h1 {
  font-size: 3.5rem;
  color: #FF5733;
  margin-top: 50px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
  animation: pulse 2s infinite ease-in-out;
}

h2 {
  font-size: 1.5rem;
  color: #444;
  margin-top: 20px;
  margin-bottom: 40px;
}

form {
  display: inline-block;
  margin-top: 30px;
  text-align: left;
  background: white;
  border: 1px solid #ddd;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  transition: transform 0.3s ease;
}

form:hover {
  transform: scale(1.05);
}

input[type="email"] {
  width: calc(100% - 20px);
  padding: 15px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="email"]:focus {
  border-color: #FF5733;
  box-shadow: 0 0 10px rgba(255, 87, 51, 0.5);
}

button {
  width: 100%;
  padding: 15px 20px;
  font-size: 1rem;
  background-color: #FF5733;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #C13E24;
  transform: translateY(-2px);
}

footer {
  margin-top: 50px;
  font-size: 0.9rem;
  color: #666;
}

/* Étoile dorée */
.star {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: gold;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation: randomBounce 8s infinite alternate;
}

@keyframes randomBounce {
  0% { transform: translate(5vw, 5vh); }
  25% { transform: translate(80vw, 10vh); }
  50% { transform: translate(70vw, 80vh); }
  75% { transform: translate(10vw, 70vh); }
  100% { transform: translate(50vw, 50vh); }
}

/* Animation du titre */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Shake effect */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* Confetti effect */
.confetti-piece {
  position: fixed;
  top: 0;
  width: 10px;
  height: 10px;
  background: #FF5733;
  opacity: 0.7;
  transform: rotate(45deg);
  animation: fall linear infinite;
}

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