/* Test d'écran : informations, réglages, calques plein écran (couleurs voulues, hors thème) */
.o-test-ecran h2 { margin: 0 0 10px; font-size: 1.1rem; }
.o-test-ecran-infos dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 18px; }
.o-test-ecran-infos dl div { background: var(--surface-2); border-radius: var(--rayon-petit); padding: 8px 10px; min-width: 0; }
.o-test-ecran-infos dt { font-size: .8rem; color: var(--texte-2); overflow-wrap: anywhere; }
.o-test-ecran-infos dd { margin: 2px 0 0; font: 700 1.15rem/1.2 var(--police); font-variant-numeric: tabular-nums; color: var(--texte); white-space: nowrap; }
.o-test-ecran .o-test-ecran-lancer { width: auto; min-width: 180px; padding: 0 28px; border-radius: 999px; height: auto; min-height: 64px; font-size: 1.15rem; }
.o-test-ecran-astuce { text-align: center; max-width: 36em; }
.o-test-ecran-extras { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); }
.o-test-ecran-extras legend { padding: 0 6px; font-weight: 600; color: var(--texte); }
.o-test-ecran-extras label.case { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--texte); }
.o-test-ecran-extras input { width: 20px; height: 20px; accent-color: var(--marque); }
.o-test-ecran-debloquer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--bord); }
.o-test-ecran-debloquer > p { margin: 0 0 12px; color: var(--texte); }
.o-test-ecran-alerte { margin: 0 0 14px; padding: 12px 14px; border: 2px solid var(--erreur-texte); border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); }
.o-test-ecran-alerte p { margin: 4px 0 0; }
.o-test-ecran .reglages select { min-height: 42px; }
.o-test-ecran-commandes { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.atelier .o-test-ecran-commandes .btn-outline { min-height: 42px; font-weight: 600; }
.o-test-ecran-local { margin: 16px 0 0; font-size: .85rem; color: var(--texte-2); }

/* Page figée quand le plein écran n'est pas disponible */
html.o-test-ecran-fige, html.o-test-ecran-fige body { overflow: hidden; }

/* Calques : position fixe sur toute la fenêtre, ou plein écran */
.o-test-ecran-calque { position: fixed; inset: 0; z-index: 2147483000; margin: 0; padding: 0; border: 0; background: #000; overflow: hidden; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
.o-test-ecran-calque[hidden] { display: none; }
.o-test-ecran-calque:fullscreen { width: 100vw; height: 100vh; }
.o-test-ecran-calque::backdrop { background: #000; }
.o-test-ecran-calque.sans-curseur, .o-test-ecran-calque.sans-curseur * { cursor: none; }
.o-test-ecran-toile { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.o-test-ecran-toile[hidden], .o-test-ecran-bandes[hidden] { display: none; }
.o-test-ecran-bandes { display: flex; width: 100%; height: 100%; }
.o-test-ecran-bandes i { flex: 1; }
.o-test-ecran-calque[data-type="defilement"] {
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00) 0 0 / 200% 100%;
  animation: o-test-ecran-defile 60s linear infinite;
}
@keyframes o-test-ecran-defile { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .o-test-ecran-calque[data-type="defilement"] { animation: none; } }

/* Nom de l'écran : discret, disparaît après 1,5 s */
.o-test-ecran-nom { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgb(0 0 0 / 55%); color: #fff; font: 600 .95rem/1.3 var(--police); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s; }
.o-test-ecran-nom.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .o-test-ecran-nom { transition: none; } }

/* Débloqueur : fond noir, zone déplaçable, petite barre de commande */
.o-test-ecran-noir { background: #000; }
.o-test-ecran-zone { position: absolute; left: 0; top: 0; width: 64px; height: 64px; background: #f00; cursor: grab; touch-action: none; outline: 1px solid rgb(255 255 255 / 25%); }
.o-test-ecran-zone:focus-visible { outline: 2px dashed #fff; outline-offset: 4px; }
.o-test-ecran-zone:active { cursor: grabbing; }
.o-test-ecran-barre { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; max-width: calc(100% - 24px); padding: 8px 12px; border-radius: 12px; background: rgb(30 30 30 / 85%); color: #fff; font: 500 .9rem/1.3 var(--police); }
.o-test-ecran-barre.en-bas { top: auto; bottom: 12px; }
.o-test-ecran-barre [data-restant] { font-variant-numeric: tabular-nums; font-weight: 700; }
.o-test-ecran-barre .btn { min-height: 36px; background: #1f5fe0; border-color: #1f5fe0; color: #fff; }
.o-test-ecran-aide { color: #ddd; }
@media (max-width: 480px) { .o-test-ecran-aide { display: none; } }
