/* Test webcam, micro et haut-parleurs */
.o-test-webcam-micro-barre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 12px; border-radius: var(--rayon-petit); background: var(--ok-fond); color: var(--ok-texte); }
.o-test-webcam-micro-prive { margin: 0; flex: 1 1 260px; font-size: .92rem; }
.o-test-webcam-micro-arreter { flex: none; }
.o-test-webcam-micro .o-test-webcam-micro-arreter:not(:disabled) { border-color: var(--erreur-texte); color: var(--erreur-texte); background: var(--surface); font-weight: 700; }
.o-test-webcam-micro-message { display: block; margin: 10px 0 0; padding: 8px 12px; border-radius: var(--rayon-petit); background: var(--surface-2); color: var(--texte); font-size: .95rem; }
.o-test-webcam-micro-message:empty { display: none; }
.o-test-webcam-micro-message.erreur { background: var(--erreur-fond); color: var(--erreur-texte); }
.o-test-webcam-micro-bloc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bord); }
.o-test-webcam-micro-bloc h2 { margin: 0 0 10px; font-size: 1.25rem; }
.o-test-webcam-micro-commandes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.o-test-webcam-micro-ecran { position: relative; display: grid; place-items: center; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; margin: 0 auto; border-radius: var(--rayon); background: var(--surface-2); overflow: hidden; }
.o-test-webcam-micro-ecran video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: none; }
.o-test-webcam-micro[data-cam="on"] .o-test-webcam-micro-ecran video { display: block; }
.o-test-webcam-micro[data-cam="on"] .o-test-webcam-micro-vide { display: none; }
.o-test-webcam-micro[data-reflet="oui"] .o-test-webcam-micro-ecran video { transform: scaleX(-1); }
.o-test-webcam-micro-vide { margin: 0; padding: 16px; max-width: 26em; text-align: center; color: var(--texte-2); }
.o-test-webcam-micro-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 720px; margin: 12px auto 0; }
.o-test-webcam-micro-stats div { background: var(--surface-2); border-radius: var(--rayon-petit); padding: 8px 6px; text-align: center; min-width: 0; }
.o-test-webcam-micro-stats dt { font-size: .82rem; color: var(--texte-2); }
.o-test-webcam-micro-stats dd { margin: 2px 0 0; font: 700 clamp(1.05rem, 4.6vw, 1.5rem)/1.2 var(--police); font-variant-numeric: tabular-nums; color: var(--texte); overflow-wrap: anywhere; }
.o-test-webcam-micro-reponse { max-width: 720px; margin: 8px auto 12px; min-height: 1.4em; color: var(--texte-2); font-size: .92rem; text-align: center; }
.o-test-webcam-micro .reglages { margin-top: 4px; }
.o-test-webcam-micro .reglages select { width: 100%; min-width: 0; }
.o-test-webcam-micro-photo { margin: 16px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.o-test-webcam-micro-photo[hidden], .o-test-webcam-micro-son[hidden] { display: none; }
.o-test-webcam-micro-photo canvas { max-width: min(100%, 360px); height: auto; border-radius: var(--rayon-petit); border: 1px solid var(--bord); }
.o-test-webcam-micro-vu { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.o-test-webcam-micro-vu-nom { font-size: .88rem; color: var(--texte-2); }
.o-test-webcam-micro-jauge { display: block; height: 18px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--bord); overflow: hidden; }
.o-test-webcam-micro-jauge i { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, #12803c 0 65%, #c98a00 65% 85%, #b3261e 85%); }
.o-test-webcam-micro-db { min-width: 4.5em; text-align: right; font: 700 1rem var(--mono); font-variant-numeric: tabular-nums; color: var(--texte); }
.o-test-webcam-micro-onde { display: block; width: 100%; height: 90px; margin-top: 10px; border-radius: var(--rayon-petit); background: var(--surface-2); }
.o-test-webcam-micro-capte { display: block; margin: 10px 0 12px; font-weight: 600; color: var(--texte-2); }
.o-test-webcam-micro-capte[data-etat="oui"] { color: var(--ok-texte); }
.o-test-webcam-micro-capte[data-etat="non"] { color: var(--erreur-texte); }
.o-test-webcam-micro-son { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px; border-radius: var(--rayon-petit); background: var(--surface-2); }
.o-test-webcam-micro-son figcaption { flex-basis: 100%; font-size: .88rem; color: var(--texte-2); }
.o-test-webcam-micro-son audio { flex: 1 1 240px; max-width: 100%; }
.o-test-webcam-micro-larsen { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--texte-2); }
.o-test-webcam-micro-aide { margin: 0 0 10px; color: var(--texte-2); font-size: .95rem; }
.o-test-webcam-micro-hp { font-weight: 600; color: var(--texte); }
@media (max-width: 420px) {
  .o-test-webcam-micro-commandes .btn { flex: 1 1 100%; }
  .o-test-webcam-micro-arreter { width: 100%; }
}
