:root {
    --bg-color: #FFFFFF; /* Super blanc et épuré */
    --text-color: #111111; /* Texte très sombre pour le contraste */
    --accent-color: #FF6B6B; /* Une couleur pop (rouge saumon) pour le stimulus, ou on peut garder noir */
    --font-family: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/* 
    Loi de Fitts: La zone d'interaction occupe 100% de l'écran (D/W -> 0)
    Loi de Hick: Aucune autre option visible
*/
.interactive-zone {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* Bordures rectilignes, pas d'ombres */
    border: none;
    border-radius: 0;
}

/* Masquer le curseur pendant le test pour réduire la distraction visuelle (optionnel mais recommandé pour le focus) */
.testing {
    cursor: none;
}

#instruction {
    font-size: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

#stimulus {
    font-size: 8rem;
    color: var(--accent-color);
    font-weight: 700;
    /* Eviter que le texte saute */
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
}

#result {
    text-align: center;
}

#result-text {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.small-text {
    font-size: 1rem;
    color: #888888;
}

.hidden {
    display: none !important;
}

.visible {
    display: flex !important;
}

/* Auth / Dashboard Box */
.auth-box {
    background-color: #FAFAFA;
    border: 1px solid #EAEAEA;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    z-index: 10;
}

.console-input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-family: var(--font-family);
    background-color: #FFF;
    color: var(--text-color);
}

.console-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
    background-color: var(--text-color);
    color: var(--bg-color);
    font-family: var(--font-family);
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.console-btn.outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.console-btn:hover {
    background-color: var(--accent-color);
    color: #FFF;
    border-color: var(--accent-color);
}

/* Dashboard Télémétrie - Neuro-Brutalisme Light */
.telemetry-container {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    border: 2px solid var(--text-color);
    box-shadow: 4px 4px 0px var(--text-color);
    overflow-y: auto;
    max-height: 90vh;
}

.telemetry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 1rem;
}

.telemetry-header div {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.telemetry-value {
    font-size: 2rem;
    color: var(--accent-color);
}

.telemetry-chart-container {
    width: 100%;
    height: 350px;
    margin-bottom: 2rem;
    border: 1px solid var(--text-color);
    padding: 10px;
    background: #FAFAFA;
}

.telemetry-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--text-color);
}

.telemetry-table th, .telemetry-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--text-color);
    text-align: left;
    font-size: 0.9rem;
}

.telemetry-table th {
    background-color: var(--text-color);
    color: var(--bg-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.telemetry-table td span {
    font-weight: bold;
}

.telemetry-action {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--text-color);
}

.telemetry-action p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}
