/* L'épreuve plateau. */

/* La page de l'épreuve */

.epreuve_titre {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.epreuve_titre h1 {
    margin: 0;
    font-size: 28px;
}

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

.barre {
    position: sticky;
    top: 80px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 0;
    background: #fff;
}

.barre_onglet {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1.5px solid var(--filet);
    background: #fff;
    color: var(--encre);
    border-radius: 20px;
    padding: 5px 12px 5px 6px;
    font: inherit;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.barre_onglet:hover {
    border-color: #B9B5C0;
    background: #FCFBFD;
}

.barre_onglet[aria-pressed="true"] {
    border-color: var(--encre);
    box-shadow: inset 0 0 0 1px var(--encre);
}

.barre_etoile {
    width: 20px;
    text-align: center;
}

.choix_parcours {
    display: inline-flex;
    background: var(--encre);
    border-radius: 20px;
    padding: 3px;
    margin-left: auto;
}

.choix_parcours button {
    border: 0;
    background: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 16px;
    font: inherit;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

.choix_parcours button[aria-pressed="true"] {
    background: #fff;
    color: var(--encre);
}

.choix_parcours button[aria-pressed="false"]:hover {
    background: rgba(255, 255, 255, .1);
}

.repere {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    vertical-align: 1px;
    line-height: 1;
}

.repere_porte {
    background: #fff;
}

.repere_vitesse {
    width: 23px;
    height: 23px;
    background: #fff;
    color: #1F1D24;
    font-size: 11px;
    font-weight: 900;
    box-shadow: inset 0 0 0 3px #E30613;
}

.repere_trait {
    vertical-align: 0;
    margin: 0 2px;
}

.fiche {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(30, 20, 50, .09);
    border: 1px solid var(--filet);
    margin: 14px 0 22px;
    overflow: hidden;
}

.fiche_entete {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    color: #fff;
}

.fiche_entete h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.fiche_num {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
}

.schema {
    padding: 16px 18px 10px;
    background: #E7E6EB;
}

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

.legende {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--gris);
    padding: 4px 4px 0;
}

.legende_zone {
    justify-content: flex-end;
}

.legende_zone span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.schema .legende svg {
    width: 14px;
    height: 14px;
    flex: none;
}

.legende_titre {
    font-weight: 700;
    color: var(--encre);
    margin-right: 2px;
    align-self: center;
}

.legende_ligne {
    flex-basis: 100%;
    height: 0;
}

.bouton_trace[aria-pressed="false"] .repere {
    opacity: .45;
}

.points_traces {
    display: inline-flex;
    gap: 2px;
}

.points_traces i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.2px solid #C9C5CF;
    box-sizing: border-box;
}

.colonnes {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "realiser evaluation" "savoir evaluation";
    gap: 18px;
    padding: 25px 22px;
    align-items: start;
}

/* Le parcours complet : réussite et échec côte à côte, sur toute la largeur, sous les deux colonnes. */
.colonnes_arret {
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "realiser evaluation" "resultats evaluation" "savoir savoir";
}

.resultats {
    grid-area: resultats;
    align-self: start;
    display: grid;
    gap: 18px;
}

.cadre_resultat {
    border: 1.5px solid;
    border-left-width: 5px;
    border-radius: 12px;
    padding: 12px 16px;
}

.cadre_resultat ul {
    margin: 0;
    padding-left: 18px;
    font-size: 14.5px;
}

.cadre_resultat p {
    margin: 6px 0 0;
    font-size: 14.5px;
}

.cadre_reussite {
    background: #F2FAF3;
    border-color: #9BD0A6;
    border-left-color: #1B7F32;
    --ico-coul: #1B7F32;
}

.cadre_echec {
    background: #FFF6F7;
    border-color: #EBA3AC;
    border-left-color: #B00020;
    --ico-coul: #B00020;
}

.titre_bloc_reussite {
    color: #1B7F32;
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 9.8'/%3E%3C/svg%3E");
}

.titre_bloc_echec {
    color: #B00020;
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3h8l5 5v8l-5 5H8l-5-5V8z'/%3E%3Cpath d='M9 9l6 6M15 9l-6 6'/%3E%3C/svg%3E");
}

.colonne_realiser {
    grid-area: realiser;
}

.colonnes .cadre_evaluation {
    grid-area: evaluation;
    align-self: stretch;
}

.colonnes .cadre_savoir {
    grid-area: savoir;
    align-self: stretch;
}

.colonne_realiser ul,
.cadre_savoir ul {
    margin: 0;
    padding-left: 18px;
    font-size: 15px;
}

.colonne_realiser li {
    margin: 3px 0;
}

.cadre_savoir li {
    margin: 4px 0;
    font-size: 14.5px;
}

.cadre_evaluation {
    background: #F4F1F8;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14.5px;
}

.cadre_savoir {
    border: 1.5px solid var(--filet);
    border-left: 5px solid var(--coul, var(--filet));
    border-radius: 12px;
    padding: 12px 16px;
}

.titre_bloc {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 15px;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.titre_bloc::before {
    content: '';
    flex: none;
    width: 21px;
    height: 21px;
    background: var(--ico-coul, var(--coul, currentColor));
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
    transform: translateY(-1px);
}

.titre_bloc_liste {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V3h6v1M9 10h6M9 14h6M9 18h3'/%3E%3C/svg%3E");
}

.titre_bloc_evaluation {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M8.5 12.5l2.5 2.5 4.5-5.5'/%3E%3C/svg%3E");
}

.titre_bloc_savoir {
    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 10.9v5.5M12 7.6v.1'/%3E%3C/svg%3E");
}

.groupe {
    position: relative;
    border: 1.5px solid;
    border-radius: 10px;
    padding: 16px 12px 8px;
    margin: 18px 0 25px;
    background: #fff;
}

.groupe:last-child {
    margin-bottom: 4px;
}

.groupe .note {
    position: absolute;
    top: -12px;
    left: 12px;
}

.groupe_ligne {
    position: relative;
    padding-left: 15px;
    margin: 3px 0;
}

.groupe_ligne::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--puce);
}

.groupe_suite {
    margin-top: 8px;
}

.groupe_a {
    border-color: #9BD0A6;
    --puce: #1B7F32;
}

.groupe_b {
    border-color: #F2C27E;
    --puce: #B56500;
}

.groupe_c {
    border-color: #EBA3AC;
    --puce: #B00020;
}

.note {
    min-width: 24px;
    height: 22px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.note_a {
    background: #DDF0E0;
    color: #1B7F32;
}

.note_b {
    background: #FDE7C8;
    color: #B56500;
}

.note_c {
    background: #F9D6DA;
    color: #B00020;
}

/* Les textes officiels */

.textes {
    margin-top: 40px;
}

.textes h2 {
    font-size: 24px;
    margin: 0 0 6px;
}

.textes > p {
    color: var(--gris);
    margin: 0 0 18px;
}

.textes > p a {
    color: var(--rouge);
}

.textes_liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.textes_liste a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--filet);
    border-radius: 14px;
    text-decoration: none;
    height: 100%;
    transition: border-color .15s, background .15s;
}

.textes_liste a:hover {
    border-color: var(--rouge);
    background: #FFFAFA;
}

.textes_liste b {
    display: block;
    font-size: 15.5px;
}

.textes_liste span:nth-child(2) {
    font-size: 14px;
    color: var(--gris);
    flex: 1;
}

.textes_pdf {
    flex: none;
    width: 42px;
    height: 50px;
    border-radius: 6px;
    background: var(--rouge);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

.textes_web {
    background: var(--noir);
}

.textes_poids {
    flex: none;
    font-size: 13px;
    color: var(--pale);
    white-space: nowrap;
}

@media (max-width: 950px) {
    .textes_liste {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 750px) {
    .colonnes {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas: "realiser" "evaluation" "savoir";
    }

    .colonnes_arret {
        grid-template-areas: "realiser" "evaluation" "resultats" "savoir";
    }

    .barre_nom {
        display: none;
    }

    .barre_onglet {
        padding: 5px 6px;
    }

    .choix_parcours button {
        padding: 6px 14px;
    }
}

@media print {
    .fiche {
        break-inside: avoid;
        box-shadow: none;
    }
}
