/* Test de vue : étalonnage par carte ID-1, E directionnels en SVG, résultat par œil, grille d'Amsler */
.o-test-vue [hidden] { display: none !important; }
.o-test-vue h2 { margin: 0 0 8px; font-size: 1.15rem; }
.o-test-vue-accueil h2 + p, .o-test-vue-accueil > h2:not(:first-child) { margin-top: 0; }
.o-test-vue-accueil > h2:not(:first-child) { margin-top: 20px; }
.o-test-vue-texte, .o-test-vue-rappel { margin: 0 0 10px; color: var(--texte); }
.o-test-vue-rappel { color: var(--texte-2); font-size: .92rem; }
.o-test-vue-etat { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); font-weight: 600; }
.o-test-vue-etat.ok { background: var(--ok-fond); color: var(--ok-texte); }

.o-test-vue-cadre { position: relative; min-height: 60px; margin: 0 0 10px; padding: 0; overflow: hidden; }
.o-test-vue-carte { box-sizing: border-box; border: 2px solid var(--marque); background: color-mix(in srgb, var(--marque) 12%, transparent); }
.o-test-vue-curseur { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.o-test-vue-curseur label { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; color: var(--texte); }
.o-test-vue-curseur input[type="range"] { flex: 1; min-width: 120px; }
.atelier .o-test-vue-curseur .btn { min-width: 44px; padding: 6px 10px; font-weight: 700; }
.o-test-vue-taille { display: block; margin: 6px 0 4px; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.o-test-vue-apercu { display: block; margin: 0 0 8px; color: var(--texte); font-variant-numeric: tabular-nums; }
.o-test-vue-message { margin: 0 0 8px; padding: 8px 12px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); font-weight: 600; }

.o-test-vue-consigne ul { margin: 0 0 8px; padding-left: 1.2em; color: var(--texte); }
.o-test-vue-consigne li { margin: 4px 0; }
.o-test-vue-cacher { margin: 0 0 8px; padding: 10px 12px; border-left: 4px solid var(--marque); background: var(--surface-2); color: var(--texte); font-weight: 600; border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0; }

.o-test-vue-test { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.o-test-vue-progression { font-weight: 600; color: var(--texte-2); font-variant-numeric: tabular-nums; }
/* Fond blanc et E noir volontaires : contraste maximal quel que soit le thème */
.o-test-vue-scene { display: flex; align-items: center; justify-content: center; align-self: stretch; padding: 12px; background: #fff; border-radius: var(--rayon-petit); border: 1px solid var(--bord); }
.o-test-vue-e { display: block; flex: none; fill: #000; shape-rendering: geometricPrecision; }
.o-test-vue-question { margin: 0; font-weight: 600; color: var(--texte); }
.o-test-vue-fleches { display: grid; grid-template-columns: repeat(3, 60px); grid-template-rows: repeat(3, 52px); gap: 6px; }
.atelier .o-test-vue-fleches .btn { padding: 0; font: 700 1.6rem/1 var(--police); }
.o-test-vue-haut { grid-column: 2; grid-row: 1; }
.o-test-vue-gauche { grid-column: 1; grid-row: 2; }
.o-test-vue-droite { grid-column: 3; grid-row: 2; }
.o-test-vue-bas { grid-column: 2; grid-row: 3; }
.o-test-vue-test p { margin: 0; }

.o-test-vue-yeux { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 0 0 12px; }
.o-test-vue-oeil { background: var(--surface-2); border-radius: var(--rayon-petit); padding: 10px 12px; min-width: 0; }
.o-test-vue-oeil h3 { margin: 0 0 4px; font-size: 1rem; color: var(--texte-2); }
.o-test-vue-valeur { margin: 0 0 8px; font: 700 1.5rem/1.25 var(--police); color: var(--texte); font-variant-numeric: tabular-nums; }
.o-test-vue-oeil dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 6px; margin: 0 0 8px; }
.o-test-vue-oeil dt { font-size: .8rem; color: var(--texte-2); }
.o-test-vue-oeil dd { margin: 0; font-weight: 700; color: var(--texte); font-variant-numeric: tabular-nums; }
.o-test-vue-limite { margin: 0 0 8px; padding: 6px 10px; background: var(--erreur-fond); color: var(--erreur-texte); border-radius: var(--rayon-petit); font-size: .92rem; }
.o-test-vue-detail { margin: 0; font-size: .85rem; color: var(--texte-2); overflow-wrap: anywhere; }
.o-test-vue-avertissement { margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid var(--marque); background: var(--surface-2); color: var(--texte); border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0; }
.o-test-vue-actions { display: flex; justify-content: center; margin: 16px 0 4px; }

.o-test-vue-amsler { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--bord); }
.o-test-vue-grille-cadre { display: flex; justify-content: center; }
.o-test-vue-grille { display: block; max-width: 100%; }
.o-test-vue-grille-cote { margin: 6px 0; text-align: center; color: var(--texte-2); font-size: .9rem; }
.o-test-vue-alerte-grille { margin: 0 0 10px; padding: 8px 12px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); }
.o-test-vue-local { margin: 12px 0 0; color: var(--texte-2); font-size: .88rem; text-align: center; }
.o-test-vue h2:focus { outline: none; }
