/*
 * Les tests Slalom et Évitement (TestPassageScreen.kt, DetailPassage.kt) : ce qui est commun aux deux (test_passage_…), puis le
 * slalom. Les tailles : les sp de l'appli × 1,15, les dp tels quels.
 */

/* La simulation de ces tests : seulement dans leur écran. */

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

/* Les réglages du test, communs aux deux : la page porte data-passage_moto, _temps, _lieu (0 ou 1, 0 par défaut). */

.interaction[data-passage_moto="1"] .test_passage_moto_a2,
.interaction:not([data-passage_moto="1"]) .test_passage_moto_125,
.interaction[data-passage_temps="1"] .test_passage_temps_0,
.interaction:not([data-passage_temps="1"]) .test_passage_temps_1,
.interaction[data-passage_lieu="1"] .test_passage_lieu_0,
.interaction:not([data-passage_lieu="1"]) .test_passage_lieu_1 {
    display: none;
}

/* Le détail d'un essai : les cartes, l'une sous l'autre. */

.test_passage_detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Le haut : trois colonnes, un chiffre et ce qu'il est (EnteteSlalom, EnteteEvitement). */

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

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

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

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

.test_passage_entete span {
    font-size: 13.8px;
    color: #888888;
    white-space: nowrap;
}

/* L'astérisque d'une colonne du haut : en exposant, gris (« moyenne ») ou rouge (la dérive du freinage). */
.test_etoile {
    font-size: 0.92em;
    font-weight: 700;
    line-height: 0;
}

.test_etoile_rouge {
    color: #D32F2F;
}

/* En italique, comme la note de la dérive du freinage. */
.test_passage_moyenne {
    position: relative;
    top: 2px;   /* descendue de 2 px à l'affichage seulement */
    margin: 0;
    padding-right: 6px;
    font-size: 12.6px;
    font-style: italic;
    color: var(--gris);
    text-align: right;
}

/* Une carte du détail (Carte) : un titre gris en capitales, puis les lignes. */

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

.test_passage_bloc_dessin {
    padding: 12px;
}

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

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

.test_passage_svg text {
    font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

/* Une ligne « intitulé · valeur » (LigneInfo) ; la pastille de la ligne corrigée. */

.test_passage_ligne {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 17.2px;
}

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

.test_passage_ligne > b {
    max-width: 60%;
    font-weight: 700;
    text-align: right;
}

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

.test_passage_derive {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
}

.test_passage_derive.test_passage_ligne {
    flex-direction: row;
}

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

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

.test_passage_petit {
    margin: 0;
    font-size: 15px;
    color: #888888;
}

/* La pastille du parcours (PastilleParcours) ; la petite, dans les cartes des Relevés. */

.test_passage_pastille {
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--gris);
    color: #fff;
    font-size: 12.6px;
    font-weight: 700;
    letter-spacing: 1.15px;
}

.test_passage_pastille_court {
    align-self: center;
    padding: 2px 7px;
    font-size: 10.4px;
    line-height: 1.1;
    letter-spacing: 0.6px;
}

.test_passage_pastille_1 {
    background: #2A78D6;
}

.test_passage_pastille_2 {
    background: #8E24AA;
}

/* Une carte des Relevés (CarteEssaiTest) : le nom, l'heure, le parcours ; trois cases ; l'envoi. */

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

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

.test_passage_carte_haut b {
    font-size: 17.2px;
    font-weight: 700;
}

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

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

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

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

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

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

.test_passage_ecart {
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 12.6px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.test_passage_ecart_vert {
    background: #E5F2E8;
    color: var(--vert);
}

.test_passage_ecart_orange {
    background: #FFF4E5;
    color: var(--orange);
}

.test_passage_ecart_rouge {
    background: #FBE9EC;
    color: var(--rouge);
}

.test_passage_envoi {
    font-size: 15px;
    color: #888888;
}

/* La Méthode : le second intertitre du Point de Contrôle, et son schéma. */

.tel_methode .test_passage_ou {
    margin-top: 10px;
}

.test_passage_schema {
    margin-top: 8px;
}

/* La note rouge de la dérive du GPS sur C7, avant « * moyenne » (18/11/2026, EnteteSlalom) : le rouge de la note du freinage. */
.test_note_derive { color: #D32F2F; }
