/* Test d'audition indicatif */
.o-test-audition { --o-ta-d: #c62828; --o-ta-g: #1d5fd0; }
@media (prefers-color-scheme: dark) { .o-test-audition { --o-ta-d: #ff7a7a; --o-ta-g: #7fb0ff; } }
:root[data-theme="dark"] .o-test-audition { --o-ta-d: #ff7a7a; --o-ta-g: #7fb0ff; }
:root[data-theme="light"] .o-test-audition { --o-ta-d: #c62828; --o-ta-g: #1d5fd0; }

.o-test-audition-consignes {
  margin: 0 0 16px; 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-audition-consignes ul { margin: 4px 0 0; padding-left: 1.2em; }
.o-test-audition-bloc { padding: 14px 0; border-top: 1px solid var(--bord); }
.o-test-audition-bloc:first-of-type { border-top: 0; padding-top: 0; }
.o-test-audition-bloc h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--texte); }
.o-test-audition-bloc h4 { margin: 16px 0 6px; font-size: 1rem; color: var(--texte); }
.o-test-audition-aide, .o-test-audition-note { margin: 0 0 10px; color: var(--texte-2); font-size: .93rem; line-height: 1.5; }
.o-test-audition-scene { gap: 8px; }
.o-test-audition-oreille { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--texte); text-align: center; }
.o-test-audition-oreille:empty, .o-test-audition-progres-texte:empty { display: none; }
.o-test-audition[data-ta-cote="d"] .o-test-audition-oreille { color: var(--o-ta-d); }
.o-test-audition[data-ta-cote="g"] .o-test-audition-oreille { color: var(--o-ta-g); }
.o-test-audition-progres-texte { margin: 0; color: var(--texte-2); font-size: .9rem; }
.o-test-audition-jauge { display: block; width: min(320px, 100%); height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.o-test-audition-jauge b { display: block; height: 100%; width: 0; background: var(--marque); transition: width .3s; }
.o-test-audition-entends { min-width: 220px; min-height: 72px; font-size: 1.3rem; margin: 8px 0; }
.o-test-audition-entends:disabled { opacity: .45; cursor: not-allowed; }
.o-test-audition-appui { animation: o-ta-appui .25s ease-out; }
@keyframes o-ta-appui { from { transform: scale(.94); } to { transform: scale(1); } }
.o-test-audition-commandes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.o-test-audition-etat { display: block; min-height: 1.4em; text-align: center; }

.o-test-audition-date { margin: 0 0 8px; color: var(--texte-2); font-size: .9rem; }
.o-test-audition-figure { margin: 0 0 10px; }
.o-test-audition-svg { display: block; width: 100%; height: auto; max-width: 700px; margin: 0 auto; background: var(--surface); }
.o-test-audition-svg .o-ta-grille { stroke: var(--bord); stroke-width: 1; }
.o-test-audition-svg .o-ta-pointille { stroke-dasharray: 4 4; }
.o-test-audition-svg .o-ta-zero { stroke: var(--texte-2); stroke-width: 1.5; stroke-dasharray: 6 4; }
.o-test-audition-svg .o-ta-txt { fill: var(--texte-2); font-size: 13px; font-family: var(--police); }
.o-test-audition-svg .o-ta-petit { font-size: 11px; }
.o-test-audition-svg .o-ta-courbe { fill: none; stroke-width: 2; opacity: .7; }
.o-test-audition-svg .o-ta-courbe.o-ta-d { stroke: var(--o-ta-d); }
.o-test-audition-svg .o-ta-courbe.o-ta-g { stroke: var(--o-ta-g); stroke-dasharray: 6 4; }
.o-test-audition-svg .o-ta-rond { fill: var(--surface); stroke: var(--o-ta-d); stroke-width: 2.5; }
.o-test-audition-svg g.o-ta-d .o-ta-croix { stroke: var(--o-ta-d); stroke-width: 2.5; fill: none; }
.o-test-audition-svg g.o-ta-g .o-ta-croix { stroke: var(--o-ta-g); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.o-test-audition-legende { display: flex; gap: 18px; justify-content: center; margin-top: 6px; font-weight: 600; color: var(--texte); }
.o-test-audition-legende span { display: inline-flex; align-items: center; gap: 6px; }
.o-test-audition-l-d svg circle { fill: none; stroke: var(--o-ta-d); stroke-width: 2; }
.o-test-audition-l-g svg path { fill: none; stroke: var(--o-ta-g); stroke-width: 2; }

.o-test-audition-tableau { overflow-x: auto; margin: 0 0 10px; }
.o-test-audition-tableau table { border-collapse: collapse; width: 100%; font-size: .93rem; font-variant-numeric: tabular-nums; }
.o-test-audition-tableau th, .o-test-audition-tableau td { padding: 6px 8px; border-bottom: 1px solid var(--bord); text-align: left; color: var(--texte); }
.o-test-audition-tableau thead th { color: var(--texte-2); font-weight: 600; }
.o-test-audition-ici td { background: var(--ok-fond); color: var(--ok-texte); font-weight: 700; }
.o-test-audition-messages { display: block; }
.o-test-audition-messages p { margin: 0 0 8px; padding: 8px 12px; border-radius: var(--rayon-petit); background: var(--surface-2); color: var(--texte); line-height: 1.45; }
.o-test-audition-rappel { margin: 6px 0 12px; color: var(--texte); }

.o-test-audition-balayage { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0; }
.o-test-audition-hz { margin: 0; font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--texte); }
.o-test-audition-balaie .o-test-audition-hz { color: var(--marque); }
.o-test-audition-haute { display: block; min-height: 1.4em; text-align: center; color: var(--texte); font-weight: 600; }

.o-test-audition-memoire { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--bord); }
.o-test-audition-memoire-etat { color: var(--texte-2); font-size: .9rem; }

@media (max-width: 480px) {
  .o-test-audition-entends { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .o-test-audition-appui { animation: none; }
  .o-test-audition-jauge b { transition: none; }
}
