/* Test de temps de réaction : aucune transition sur la zone, le signal doit apparaître d'un coup */
.o-test-reaction-suivi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 34px; margin-bottom: 10px; }
.o-test-reaction-suivi strong { font-size: .95rem; color: var(--texte-2); font-weight: 600; }
.o-test-reaction-temps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.o-test-reaction-temps li { padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--texte); font: 600 .9rem var(--mono); white-space: nowrap; }
.o-test-reaction-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: clamp(240px, 46vh, 380px); padding: 18px; margin: 0;
  border: 3px dashed var(--marque); border-radius: var(--rayon); background: var(--surface-2); color: var(--texte);
  font-family: var(--police); cursor: pointer; transition: none;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.o-test-reaction-zone:focus-visible { outline: 3px solid var(--marque-fort); outline-offset: 3px; }
.o-test-reaction-forme { width: clamp(56px, 16vw, 84px); height: clamp(56px, 16vw, 84px); pointer-events: none; flex: none; }
.o-test-reaction-forme g { display: none; }
.o-test-reaction[data-etat="repos"] [data-forme="repos"],
.o-test-reaction[data-etat="attente"] [data-forme="attente"],
.o-test-reaction[data-etat="vert"] [data-forme="vert"],
.o-test-reaction[data-etat="tot"] [data-forme="tot"],
.o-test-reaction[data-etat="resultat"] [data-forme="resultat"],
.o-test-reaction[data-etat="fini"] [data-forme="resultat"] { display: inline; }
.o-test-reaction-grand { font-weight: 800; font-size: clamp(1.7rem, 7.5vw, 2.8rem); line-height: 1.1; pointer-events: none; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.o-test-reaction-petit { font-size: 1rem; color: var(--texte-2); pointer-events: none; max-width: 32em; }
/* Couleurs voulues du signal : rouge « attendez », vert « cliquez », texte blanc (contraste supérieur à 4,5) */
.o-test-reaction[data-etat="attente"] .o-test-reaction-zone { border: 3px solid #8e1b1b; background: #b3261e; color: #fff; }
.o-test-reaction[data-etat="vert"] .o-test-reaction-zone { border: 3px solid #0b5a2a; background: #12803c; color: #fff; }
.o-test-reaction[data-etat="attente"] .o-test-reaction-petit, .o-test-reaction[data-etat="vert"] .o-test-reaction-petit { color: #fff; }
.o-test-reaction[data-etat="vert"] .o-test-reaction-grand { font-size: clamp(2.4rem, 11vw, 4rem); }
.o-test-reaction[data-etat="tot"] .o-test-reaction-zone { border: 3px dotted var(--erreur-texte); background: var(--erreur-fond); color: var(--erreur-texte); }
.o-test-reaction[data-etat="tot"] .o-test-reaction-petit { color: var(--erreur-texte); }
.o-test-reaction[data-etat="resultat"] .o-test-reaction-zone { border-style: solid; }
.o-test-reaction[data-etat="resultat"] .o-test-reaction-grand { font-size: clamp(2.6rem, 12vw, 4.4rem); }
.o-test-reaction[data-etat="fini"] .o-test-reaction-zone { border: 3px solid var(--ok-texte); background: var(--ok-fond); color: var(--ok-texte); }
.o-test-reaction[data-etat="fini"] .o-test-reaction-petit { color: var(--ok-texte); }
.o-test-reaction-annonce { display: block; min-height: 1.5em; margin: 10px 0 0; text-align: center; color: var(--texte); font-size: 1rem; }
.o-test-reaction-bilan { border-top: 1px solid var(--bord); margin-top: 12px; padding-top: 14px; }
.o-test-reaction-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.o-test-reaction-stats div { background: var(--surface-2); border-radius: var(--rayon-petit); padding: 8px 6px; text-align: center; min-width: 0; }
.o-test-reaction-stats dt { font-size: .8rem; color: var(--texte-2); overflow-wrap: anywhere; }
.o-test-reaction-stats dd { margin: 2px 0 0; font: 700 clamp(1.15rem, 5.4vw, 1.9rem)/1.15 var(--police); font-variant-numeric: tabular-nums; color: var(--texte); white-space: nowrap; }
.o-test-reaction-rang { margin: 0 0 14px; color: var(--texte); font-size: 1.02rem; }
.o-test-reaction-rang strong { display: inline-block; margin-right: 4px; padding: 3px 12px; border-radius: 999px; background: var(--ok-fond); color: var(--ok-texte); }
.o-test-reaction-legende { margin: 0; font-size: .88rem; color: var(--texte-2); }
.o-test-reaction-barres { display: flex; align-items: flex-end; gap: 8px; height: 170px; margin: 8px 0 0; padding: 0; list-style: none; max-width: 460px; }
.o-test-reaction-barres li { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; font-size: .78rem; font-variant-numeric: tabular-nums; color: var(--texte-2); }
.o-test-reaction-barres b { font-weight: 600; color: var(--texte); white-space: nowrap; }
.o-test-reaction-barres i { display: block; width: 100%; max-width: 56px; height: var(--h, 4%); min-height: 3px; background: var(--marque); opacity: .5; border-radius: 5px 5px 0 0; }
.o-test-reaction-barres li.meilleur i { opacity: 1; }
.o-test-reaction-barres li.meilleur b::after { content: " ★"; }
.o-test-reaction-suite { padding: 14px 0 6px; }
.o-test-reaction-record { margin: 0; color: var(--texte-2); font-size: .95rem; }
.o-test-reaction-record.nouveau { color: var(--ok-texte); background: var(--ok-fond); padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.o-test-reaction-commandes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 4px; }
.o-test-reaction-honnete { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--bord); color: var(--texte-2); font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { .o-test-reaction *, .o-test-reaction { transition: none !important; animation: none !important; } }
