/* Piano Trainer — styles */
.pt-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
}
.pt-app h1 { margin-bottom: 10px; color: #2c3e50; }
.pt-app :focus-visible { outline: 2px solid #3498db; outline-offset: 2px; }
@media (max-width: 600px) {
  .pt-app canvas { max-width: 100%; height: auto; }
  .canvas-container { max-width: 100%; overflow-x: auto; }
}

.pt-app p.description {
  margin-bottom: 20px;
  text-align: center;
  max-width: 600px;
  color: #666;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 700px;
}

.song-select {
  padding: 10px 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  background-color: white;
  min-width: 200px;
  cursor: pointer;
}

.song-select:focus {
  outline: none;
  border-color: #3498db;
}

.song-select:disabled {
  background-color: #eee;
  cursor: not-allowed;
}

.control-btn {
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
}

.control-btn:hover {
  background-color: #2980b9;
}

.control-btn svg {
  margin-right: 5px;
}

.control-btn:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

#stopBtn {
  background-color: #e74c3c;
}

#stopBtn:hover {
  background-color: #c0392b;
}

.loop-toggle {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-weight: bold;
}

.loop-toggle input {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

.tempo-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 300px;
  margin-bottom: 20px;
}

.tempo-label {
  margin-bottom: 5px;
  font-weight: bold;
}

.canvas-container {
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-bottom: 20px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#canvas {
  display: block;
}

.instructions {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  margin: 20px 0;
  max-width: 600px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.instructions h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 18px;
}

.instructions ol {
  margin-left: 20px;
  padding-left: 0;
}

.instructions li {
  margin-bottom: 5px;
}

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* Styles spécifiques pour les paroles */
.lyrics-toggle {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-weight: bold;
  color: #E67E22;
}

.lyrics-toggle input {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

/* Style pour le bouton de test audio */
.test-audio-btn {
  background-color: #9b59b6;
  margin-top: 10px;
  margin-bottom: 15px;
  width: auto;
  align-self: center;
}

.test-audio-btn:hover {
  background-color: #8e44ad;
}

/* Style pour le message d'avertissement audio */
.audio-warning {
  background-color: #ffe6e6;
  color: #990000;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  text-align: center;
  width: 100%;
  max-width: 700px;
}

/* Pleine largeur : le canvas (700x500) est mis à l'échelle */
.pt-app { width: 100%; }
.canvas-container { width: 100%; }
#canvas { width: 100%; height: auto; }
.instructions { max-width: none; width: 100%; }
