/* Test des haut-parleurs et du son stéréo */
.o-test-haut-parleurs-alerte {
  margin: 0 0 14px; padding: 10px 14px; border-radius: var(--rayon-petit);
  background: var(--erreur-fond); color: var(--erreur-texte); font-size: .92rem; line-height: 1.45;
}
.o-test-haut-parleurs-alerte strong { display: block; }
.o-test-haut-parleurs-volume { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.o-test-haut-parleurs-volume label { font-weight: 600; color: var(--texte); }
.o-test-haut-parleurs-volume input[type="range"] { flex: 1; min-width: 160px; min-height: 32px; accent-color: var(--marque); }
.o-test-haut-parleurs-volume output { min-width: 3.5em; text-align: right; font-weight: 600; color: var(--texte); font-variant-numeric: tabular-nums; }

.o-test-haut-parleurs-scene {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); align-items: center;
  gap: 12px; margin: 16px 0 8px;
}
.o-test-haut-parleurs-hp {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px;
  border: 2px solid var(--bord); border-radius: var(--rayon); background: var(--surface-2); color: var(--texte-2);
  font-weight: 700; transition: background-color .12s, color .12s, border-color .12s;
}
.o-test-haut-parleurs-hp-droite svg { transform: scaleX(-1); }
.o-test-haut-parleurs-hp small { min-height: 1.2em; font-size: .8rem; font-weight: 600; text-align: center; }
.o-test-haut-parleurs[data-cote="gauche"] [data-hp="gauche"],
.o-test-haut-parleurs[data-cote="droite"] [data-hp="droite"],
.o-test-haut-parleurs[data-cote="centre"] [data-hp],
.o-test-haut-parleurs[data-cote="deux"] [data-hp] {
  background: var(--marque); border-color: var(--marque); color: var(--sur-marque);
}
.o-test-haut-parleurs[data-cote="centre"] [data-hp] { opacity: .8; }
.o-test-haut-parleurs[data-cote="gauche"] [data-hp="gauche"] svg,
.o-test-haut-parleurs[data-cote="droite"] [data-hp="droite"] svg,
.o-test-haut-parleurs[data-cote="centre"] [data-hp] svg,
.o-test-haut-parleurs[data-cote="deux"] [data-hp] svg { animation: o-thp-pulse .6s ease-in-out infinite alternate; }
@keyframes o-thp-pulse { from { transform: scale(1); } to { transform: scale(1.12); } }
.o-test-haut-parleurs[data-cote="droite"] [data-hp="droite"] svg,
.o-test-haut-parleurs[data-cote="centre"] .o-test-haut-parleurs-hp-droite svg,
.o-test-haut-parleurs[data-cote="deux"] .o-test-haut-parleurs-hp-droite svg { animation-name: o-thp-pulse-d; }
@keyframes o-thp-pulse-d { from { transform: scaleX(-1); } to { transform: scale(-1.12, 1.12); } }
@media (prefers-reduced-motion: reduce) {
  .o-test-haut-parleurs-hp svg { animation: none !important; }
  .o-test-haut-parleurs-hp { transition: none; }
}
.o-test-haut-parleurs-centre { text-align: center; min-width: 0; }
.o-test-haut-parleurs-freq { margin: 0; font: 800 clamp(1.6rem, 6vw, 2.8rem)/1.1 var(--police); font-variant-numeric: tabular-nums; color: var(--texte); }
.o-test-haut-parleurs-etat { display: block; margin-top: 4px; color: var(--texte); font-weight: 600; }
.o-test-haut-parleurs-reste { margin: 4px 0 0; min-height: 1.2em; font-size: .88rem; color: var(--texte-2); font-variant-numeric: tabular-nums; }

.o-test-haut-parleurs-stop {
  position: sticky; bottom: 8px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 14px; padding: 10px; margin: 0 0 8px; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
}
.atelier .o-test-haut-parleurs-stop .btn { background: var(--erreur-texte); border-color: var(--erreur-texte); color: var(--surface); min-width: 180px; min-height: 46px; font-weight: 700; }

.o-test-haut-parleurs-groupes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 20px; }
.o-test-haut-parleurs-groupe { border-top: 1px solid var(--bord); padding: 12px 0 4px; }
.o-test-haut-parleurs-groupe h3 { margin: 0 0 8px; font-size: 1rem; }
.o-test-haut-parleurs-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.o-test-haut-parleurs-boutons .btn { border-radius: 999px; }
.atelier .o-test-haut-parleurs-boutons .btn[aria-pressed="true"] { background: var(--marque); border-color: var(--marque); color: var(--sur-marque); }
.o-test-haut-parleurs-sous { min-width: 4.5em; font-size: .88rem; font-weight: 600; color: var(--texte-2); }
.o-test-haut-parleurs-aide { margin: 0 0 8px; font-size: .88rem; color: var(--texte-2); line-height: 1.45; }

@media (max-width: 520px) {
  .o-test-haut-parleurs-scene { grid-template-columns: 1fr 1fr; }
  .o-test-haut-parleurs-centre { grid-column: 1 / -1; grid-row: 2; }
  .o-test-haut-parleurs-boutons .btn { flex: 1 1 auto; }
}
