/* Page-specific styles for calcul mental */

/* Feedback */
.feedback {
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

.feedback.correct {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #86efac;
}

.feedback.incorrect {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Animation de transition pour les questions */
#question-text {
  transition: opacity 0.3s ease;
}

/* Canvas confettis */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

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

/* Classe sr-only pour accessibilité */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive */
@media (max-width: 640px) {
  #question-text {
    font-size: 2rem;
  }
  
  #answer-input {
    font-size: 1.5rem;
  }
}
