/* Le test « Freinage d'urgence » (TestFreinageScreen.kt, DetailPassage.kt) : le détail d'un essai, les Relevés, la Méthode. Les sp de
   l'appli × 1,15 en px, les dp tels quels. */

/* Les réglages du test : la page porte data-freinage_moto, _piste, _temps, _lieu ; seule la bonne variante se voit (0 par défaut). */

.interaction[data-freinage_moto="1"] .test_freinage_selon_moto_0,
.interaction:not([data-freinage_moto="1"]) .test_freinage_selon_moto_1,
.interaction[data-freinage_piste="1"] .test_freinage_selon_piste_0,
.interaction:not([data-freinage_piste="1"]) .test_freinage_selon_piste_1,
.interaction[data-freinage_temps="1"] .test_freinage_selon_temps_0,
.interaction:not([data-freinage_temps="1"]) .test_freinage_selon_temps_1,
.interaction[data-freinage_lieu="1"] .test_freinage_selon_lieu_0,
.interaction:not([data-freinage_lieu="1"]) .test_freinage_selon_lieu_1 {
    display: none;
}

/* La simulation : les essais seulement dans le test, et seulement quand il tourne avec le signal. */

.interaction:not([data-famille="test-freinage"]) [data-pour-famille="test-freinage"] {
    display: none;
}

.interaction:not([data-testencours="oui"]) [data-action="essai"][data-test="freinage"],
.interaction[data-signal="recherche"] [data-action="essai"][data-test="freinage"] {
    opacity: 0.4;
    pointer-events: none;
}

/* En cours : « ● prêt » en vert ; NOUVEL ESSAI grisé tant qu'il n'y a pas de résultat. */

.test_freinage_pret {
    font-weight: 800;
    color: var(--vert);
}

[data-ecran="test-freinage-encours"] .test_nouvel {
    opacity: 0.38;
    pointer-events: none;
}

/* Le haut : la vitesse sur C6, la force, la distance ; « * moyenne » dessous. */

.test_freinage_haut {
    display: flex;
    flex-direction: column;
}

.test_freinage_entete {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border: 2px solid #47454D;
    border-radius: 12px;
    background: #fff;
}

.test_freinage_entete > div {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.test_freinage_entete b {
    font-size: 31px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.test_freinage_entete > i {
    flex: none;
    width: 1px;
    height: 48px;
    background: var(--filet);
}

.test_freinage_sous {
    font-size: 13.8px;
    color: var(--gris);
    white-space: nowrap;
}

.test_freinage_moyenne {
    margin: 0;
    padding-right: 6px;
    font-size: 12.65px;
    color: var(--gris);
    text-align: right;
}

/* Les cartes (Carte, ProtocolesScreen.kt) : un titre gris en capitales, puis des lignes. */

.test_freinage_carte {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--filet);
    border-radius: 12px;
    background: #fff;
}

.test_freinage_carte_dessin {
    padding: 12px;
}

.test_freinage_carte_titre {
    font-size: 12.65px;
    font-weight: 700;
    letter-spacing: 1.7px;
    color: var(--gris-texte);
}

/* Une ligne « intitulé · valeur » (LigneInfo) : la valeur jamais plus des 3/5 de la ligne. */

.test_freinage_ligne {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 4px 0;
    border: none;
    background: none;
    font-size: 17.25px;
    text-align: left;
}

button.test_freinage_ligne {
    cursor: pointer;
}

.test_freinage_ligne > span {
    flex: 1;
    min-width: 0;
}

.test_freinage_ligne > b {
    max-width: 60%;
    padding-left: 8px;
    font-weight: 700;
    text-align: right;
}

.test_freinage_point_corrigee {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6D84A8;
}

/* La ligne de la dérive, avec « ↔ RELEVER » : la même hauteur avec ou sans le bouton. */

.test_freinage_corrigee {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 17.25px;
}

.test_freinage_corrigee > span {
    flex: 1;
}

.test_freinage_relever {
    min-height: 40px;
    padding: 6px 14px;
    border: 2px solid var(--orange);
    border-radius: 20px;
    background: #fff;
    font-size: 16.1px;
    font-weight: 700;
    letter-spacing: 1.15px;
    cursor: pointer;
}

.tel .test_freinage_relever {
    color: var(--orange);
}

/* La carte du dessin : la pastille du parcours, la piste, l'écart des trois vitesses. */

.test_freinage_pastille {
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 12.65px;
    font-weight: 700;
    letter-spacing: 1.15px;
}

.test_freinage_pastille_1 {
    background: #2A78D6;
}

.test_freinage_pastille_2 {
    background: #8E24AA;
}

.test_freinage_piste {
    display: block;
    width: 100%;
    height: auto;
}

.test_freinage_ecart {
    margin: 0;
    font-size: 15px;
    color: var(--gris);
    text-align: center;
}

/* La carte d'un essai (CarteEssaiTest) et ses trois cases (TuileTest). */

.test_freinage_essai {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: #F1EFF4;
    text-align: left;
    cursor: pointer;
}

.test_freinage_essai_haut {
    display: flex;
    align-items: center;
    gap: 9px;
}

.test_freinage_essai_haut b {
    font-size: 17.25px;
}

.test_freinage_essai_heure {
    flex: 1;
    font-size: 13.8px;
    color: var(--gris-texte);
}

.test_freinage_tuiles {
    display: flex;
    gap: 8px;
}

.test_freinage_tuile {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 5px 6px;
    border-radius: 10px;
    background: #fff;
}

.test_freinage_tuile_nom {
    font-size: 15px;
    font-weight: 700;
    color: var(--gris-texte);
    white-space: nowrap;
}

.test_freinage_tuile_ligne {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
}

.test_freinage_tuile_ligne b {
    font-size: 23px;
    line-height: 27.6px;
    white-space: nowrap;
}

.test_freinage_tuile_ecart {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 12.65px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.1;
}

.test_freinage_envoi {
    font-size: 15px;
    color: var(--gris);
}

/* La Méthode : les deux questions du Point de Contrôle en gras, et son schéma. */

.tel_methode .test_freinage_methode_titre {
    font-weight: 700;
}

.test_freinage_schema {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 6px;
}
