/* Page-specific styles for multiplication */
.table-multiplication {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 300px;
  margin: 0 auto;
}

.table-item {
  padding: 0.75rem 1rem;
  background: rgba(19, 127, 236, 0.05);
  border-radius: 0.5rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(19, 127, 236, 0.1);
  transition: background-color 0.2s;
}

.table-item:hover {
  background: rgba(19, 127, 236, 0.1);
}

/* Mode toggle */
.mode-toggle {
  background: transparent;
  color: #495163;
  border: none;
  cursor: pointer;
}

.mode-toggle.active {
  background: #137fec;
  color: #fff;
}

.mode-content {
  display: block;
}

.mode-content.hidden {
  display: none;
}

/* Sélection de tables */
.table-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 2px solid #dbe0e6;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  font-size: 0.875rem;
}

.table-checkbox:hover {
  border-color: #137fec;
  background: #f0f7ff;
}

.table-checkbox.selected {
  background: #137fec;
  color: #fff;
  border-color: #137fec;
}

.table-checkbox input {
  display: none;
}

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

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

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

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

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

/* 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;
}

@media (max-width: 640px) {
  .table-multiplication {
    max-width: 100%;
    gap: 0.4rem;
  }
  
  .table-item {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }

  .table-checkbox {
    padding: 0.4rem;
    font-size: 0.75rem;
  }

  #btn-restart {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
  }
}

/* Centrage du texte du bouton Recommencer */
#btn-restart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: auto;
}

