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

/* Background stylé */
body {
  height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #ffeaa7, #fab1a0, #ff7675);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #2d3436;
}

/* Container */
.container {
  width: 100%;
  padding: 20px;
}

/* Card centrale */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  margin: auto;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  animation: fadeIn 1s ease;
}

/* Titres */
.card h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.card h2 {
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Input */
input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  margin-bottom: 15px;
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

/* Boutons */
button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Bouton principal */
button.primary {
  background: #ff7675;
  color: white;
}

button.primary:hover {
  background: #d63031;
  transform: scale(1.03);
}

/* Bouton secondaire */
button.secondary {
  background: transparent;
  border: 1px solid #ff7675;
  color: #ff7675;
}

button.secondary:hover {
  background: #ff7675;
  color: white;
}

/* Indice */
.hint {
  margin-top: 15px;
  font-style: italic;
  color: #636e72;
  min-height: 20px;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enigme-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.highlight {
  font-weight: bold;
  color: #d63031;
  font-size: 1.2rem;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  transition: opacity 1s ease;
}

.enigme-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 15px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
