/* Test de clics par seconde (CPS test) */
.o-test-clics-durees { border-top: 0; padding-top: 0; }
.atelier .o-test-clics-durees .btn[aria-pressed="true"] { background: var(--marque); border-color: var(--marque); color: var(--sur-marque); }
.o-test-clics-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.o-test-clics-stats div { background: var(--surface-2); border-radius: var(--rayon-petit); padding: 8px 6px; text-align: center; min-width: 0; }
.o-test-clics-stats dt { font-size: .8rem; color: var(--texte-2); overflow-wrap: anywhere; }
.o-test-clics-stats dd { margin: 2px 0 0; font: 700 clamp(1.4rem, 6vw, 2rem)/1.1 var(--police); font-variant-numeric: tabular-nums; color: var(--texte); }
.o-test-clics-jauge { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 10px; }
.o-test-clics-jauge i { display: block; height: 100%; width: var(--part, 0%); background: var(--marque); border-radius: 999px; }
.o-test-clics-zone {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: clamp(220px, 42vh, 340px); padding: 16px; margin: 0;
  border: 2px dashed var(--marque); border-radius: var(--rayon); background: var(--surface-2); color: var(--texte);
  font-family: var(--police); cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.o-test-clics-zone:focus-visible { outline: 3px solid var(--marque-fort); outline-offset: 3px; }
.o-test-clics-grand { font-weight: 800; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.1; pointer-events: none; font-variant-numeric: tabular-nums; }
.o-test-clics-petit { font-size: 1rem; color: var(--texte-2); pointer-events: none; max-width: 32em; }
.o-test-clics-petit:empty { display: none; }
.o-test-clics.marche .o-test-clics-zone { border-style: solid; background: var(--marque); color: var(--sur-marque); }
.o-test-clics.marche .o-test-clics-grand { font-size: clamp(4rem, 20vw, 7rem); }
.o-test-clics.marche .o-test-clics-petit { color: var(--sur-marque); }
.o-test-clics.verrou .o-test-clics-zone { border-style: solid; border-color: var(--bord); cursor: wait; }
.o-test-clics.fini .o-test-clics-zone { border-style: solid; border-color: var(--ok-texte); background: var(--ok-fond); color: var(--ok-texte); cursor: default; }
.o-test-clics.fini .o-test-clics-grand { font-size: clamp(2.6rem, 12vw, 4.4rem); }
.o-test-clics.fini .o-test-clics-petit { color: var(--ok-texte); font-weight: 600; font-size: 1.15rem; }
.o-test-clics-onde {
  position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; pointer-events: none;
  border: 3px solid currentColor; opacity: .55; animation: o-test-clics-onde .45s ease-out forwards;
}
@keyframes o-test-clics-onde { from { transform: scale(.2); opacity: .55; } to { transform: scale(1.5); opacity: 0; } }
.o-test-clics-suite { padding: 14px 0 6px; }
.o-test-clics-resultat { display: block; max-width: 40em; font-size: 1.05rem; color: var(--texte); }
.o-test-clics-resultat:empty { display: none; }
.o-test-clics-resultat strong { display: block; font-size: 1.2rem; }
.o-test-clics-record { margin: 0; color: var(--texte-2); font-size: .95rem; }
.o-test-clics-record.nouveau { color: var(--ok-texte); background: var(--ok-fond); padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.o-test-clics-commandes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 4px; }
.o-test-clics-historique { border-top: 1px solid var(--bord); padding-top: 14px; margin-top: 8px; }
.o-test-clics-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.o-test-clics-entete strong { font-size: .9rem; color: var(--texte-2); font-weight: 600; }
.o-test-clics-barres { display: flex; align-items: flex-end; gap: 4px; height: 150px; margin: 10px 0 0; padding: 0; list-style: none; max-width: 560px; }
.o-test-clics-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: .72rem; font-variant-numeric: tabular-nums; color: var(--texte-2); }
.o-test-clics-barres b { font-weight: 600; color: var(--texte); white-space: nowrap; }
.o-test-clics-barres i { display: block; width: 100%; max-width: 44px; height: var(--h, 4%); min-height: 3px; background: var(--marque); opacity: .55; border-radius: 5px 5px 0 0; }
.o-test-clics-barres li:last-child i { opacity: 1; }
.o-test-clics-barres span { white-space: nowrap; }
.o-test-clics-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .o-test-clics-onde { display: none; animation: none; } }
