/* Test de daltonisme : accueil, planche sur canvas, pavé de chiffres, résultat par axe */
.o-test-daltonisme [hidden] { display: none !important; }
.o-test-daltonisme-accueil h2, .o-test-daltonisme-resultat h2 { margin: 0 0 8px; font-size: 1.15rem; }
.o-test-daltonisme-accueil ul { margin: 0 0 8px; padding-left: 1.2em; color: var(--texte); }
.o-test-daltonisme-accueil li { margin: 4px 0; }
.o-test-daltonisme-test { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.o-test-daltonisme-progression { font-weight: 600; color: var(--texte-2); font-variant-numeric: tabular-nums; }
.o-test-daltonisme-jauge { width: min(100%, 340px); height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.o-test-daltonisme-jauge i { display: block; width: 0; height: 100%; background: var(--marque); border-radius: inherit; }
.o-test-daltonisme-planche { display: block; width: min(100%, 340px); aspect-ratio: 1; height: auto; }
.o-test-daltonisme-consigne { margin: 0; font-weight: 600; color: var(--texte); }
.o-test-daltonisme-pave { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: min(100%, 360px); }
.atelier .o-test-daltonisme-pave .btn { min-height: 48px; padding: 4px; font: 700 1.3rem/1 var(--police); }
.atelier .o-test-daltonisme-pave .o-test-daltonisme-rien { grid-column: 1 / -1; font-size: 1rem; font-weight: 600; }
.o-test-daltonisme-verdict { display: block; margin: 0 0 12px; }
.o-test-daltonisme-verdict p { margin: 0 0 8px; padding: 10px 12px; border-radius: var(--rayon-petit); font-weight: 600; }
.o-test-daltonisme-verdict p.ok { background: var(--ok-fond); color: var(--ok-texte); }
.o-test-daltonisme-verdict p.attention { background: var(--surface-2); color: var(--texte); border-left: 4px solid var(--marque); }
.o-test-daltonisme-verdict p.alerte { background: var(--erreur-fond); color: var(--erreur-texte); }
.o-test-daltonisme-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 12px; }
.o-test-daltonisme-scores div { background: var(--surface-2); border-radius: var(--rayon-petit); padding: 8px 10px; min-width: 0; }
.o-test-daltonisme-scores dt { font-size: .85rem; color: var(--texte-2); overflow-wrap: anywhere; }
.o-test-daltonisme-scores dd { margin: 2px 0 0; font: 700 1.2rem/1.25 var(--police); font-variant-numeric: tabular-nums; color: var(--texte); }
.o-test-daltonisme-rappel { 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-daltonisme-detail summary { cursor: pointer; font-weight: 600; color: var(--texte); }
.o-test-daltonisme-detail table { width: 100%; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.o-test-daltonisme-detail th, .o-test-daltonisme-detail td { padding: 4px 6px; border-bottom: 1px solid var(--bord); text-align: left; color: var(--texte); }
.o-test-daltonisme-detail tr.faux td { color: var(--erreur-texte); font-weight: 600; }
.o-test-daltonisme-actions { display: flex; justify-content: center; margin: 16px 0 4px; }
.o-test-daltonisme-local { margin: 12px 0 0; color: var(--texte-2); font-size: .88rem; text-align: center; }
.o-test-daltonisme-planche:focus { outline: none; }
.o-test-daltonisme-resultat h2:focus { outline: none; }
