.scoreAudit {
    --score-audit-border: rgba(29, 54, 74, .14);
    --score-audit-ink: #19364a;
    --score-audit-muted: #657682;
    --score-audit-panel: #f7fafc;
    color: var(--score-audit-ink);
    margin: 0 auto 24px;
    max-width: 1180px;
}

.scoreAudit__entete,
.scoreAudit__selection,
.scoreAudit__etat,
.scoreAudit__kpis,
.scoreAudit__colonnes {
    display: flex;
    gap: 16px;
}

.scoreAudit__entete {
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.scoreAudit__entete h2,
.scoreAudit__entete p {
    margin: 0 0 6px;
}

.scoreAudit__surtitre {
    color: #28779d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.scoreAudit__navigation,
.scoreAudit__selection,
.scoreAudit__carte,
.scoreAudit__vide {
    background: #fff;
    border: 1px solid var(--score-audit-border);
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(32, 57, 75, .06);
}

.scoreAudit__navigation {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
    padding: 14px;
}

.scoreAudit__groupe > span {
    color: var(--score-audit-muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.scoreAudit__groupe > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scoreAudit__groupe .btn {
    font-size: 13px;
    margin: 0;
    padding: 7px 10px;
}

.scoreAudit__modeVide {
    opacity: .62;
}

.scoreAudit__selection {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
}

.scoreAudit__selection span,
.scoreAudit__selection label {
    color: var(--score-audit-muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.scoreAudit__selection strong {
    display: block;
    font-size: 19px;
    margin-top: 2px;
}

.scoreAudit__selection select {
    background: #fff;
    border: 1px solid var(--score-audit-border);
    border-radius: 6px;
    color: var(--score-audit-ink);
    display: block;
    margin-top: 4px;
    min-width: 180px;
    padding: 8px 10px;
}

.scoreAudit__etat {
    align-items: center;
    border-left: 5px solid;
    border-radius: 8px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 13px 16px;
}

.scoreAudit__etat strong,
.scoreAudit__etat span {
    display: block;
}

.scoreAudit__etat--ok {
    background: #edf9f2;
    border-color: #2a9c61;
}

.scoreAudit__etat--erreur {
    background: #fff1ef;
    border-color: #c64b42;
}

.scoreAudit__badge {
    background: rgba(255, 255, 255, .72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    text-transform: uppercase;
}

.scoreAudit__kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.scoreAudit__kpis article {
    background: linear-gradient(145deg, #173b52, #276987);
    border-radius: 9px;
    color: #fff;
    min-height: 102px;
    padding: 15px;
}

.scoreAudit__kpis span,
.scoreAudit__kpis small,
.scoreAudit__kpis strong {
    display: block;
}

.scoreAudit__kpis span,
.scoreAudit__kpis small {
    opacity: .8;
}

.scoreAudit__kpis strong {
    font-size: 27px;
    line-height: 1.15;
    margin: 6px 0 3px;
}

.scoreAudit__colonnes {
    align-items: stretch;
    margin-bottom: 16px;
}

.scoreAudit__colonnes > * {
    flex: 1;
}

.scoreAudit__carte,
.scoreAudit__vide {
    padding: 16px;
}

.scoreAudit__carte h3,
.scoreAudit__vide h3 {
    margin: 0 0 12px;
}

.scoreAudit__carte dl {
    margin: 0;
}

.scoreAudit__carte dl > div {
    align-items: baseline;
    border-bottom: 1px solid var(--score-audit-border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 8px 0;
}

.scoreAudit__carte dt {
    color: var(--score-audit-muted);
    font-weight: 400;
}

.scoreAudit__carte dd {
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.scoreAudit__carte dl > .scoreAudit__total {
    border-bottom: 0;
    font-size: 18px;
}

.scoreAudit__comparaison,
.scoreAudit__details {
    margin-bottom: 16px;
}

.scoreAudit__details summary {
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.scoreAudit__details > p {
    color: var(--score-audit-muted);
}

.scoreAudit__tableWrap {
    overflow-x: auto;
}

.scoreAudit table {
    border-collapse: collapse;
    min-width: 650px;
    width: 100%;
}

.scoreAudit th,
.scoreAudit td {
    border-bottom: 1px solid var(--score-audit-border);
    padding: 9px 8px;
    text-align: left;
}

.scoreAudit th {
    background: var(--score-audit-panel);
    color: var(--score-audit-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.scoreAudit__controle {
    border-radius: 999px;
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    text-transform: uppercase;
}

.scoreAudit__controle--ok {
    background: #dff4e7;
    color: #187246;
}

.scoreAudit__controle--erreur {
    background: #ffe1dd;
    color: #a33029;
}

.scoreAudit__vide {
    padding: 28px;
    text-align: center;
}

@media (max-width: 850px) {
    .scoreAudit__navigation,
    .scoreAudit__kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scoreAudit__colonnes {
        display: block;
    }

    .scoreAudit__colonnes > * + * {
        margin-top: 16px;
    }
}

@media (max-width: 560px) {
    .scoreAudit__entete,
    .scoreAudit__selection,
    .scoreAudit__etat {
        align-items: stretch;
        display: block;
    }

    .scoreAudit__entete .btn,
    .scoreAudit__selection label,
    .scoreAudit__etat .scoreAudit__badge {
        margin-top: 10px;
    }

    .scoreAudit__navigation,
    .scoreAudit__kpis {
        grid-template-columns: 1fr;
    }

    .scoreAudit__selection select {
        width: 100%;
    }
}

.scoreAudit__kpis--calcul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scoreAudit__formule { margin-bottom: 16px; }
.scoreAudit__equation { font-size: 18px; font-weight: 700; line-height: 1.5; }
.scoreAudit__etapes { padding-left: 26px; }
.scoreAudit__etapes li { padding: 8px 0 8px 6px; border-bottom: 1px solid var(--score-audit-border); }
.scoreAudit__etapes li:last-child { border-bottom: 0; }
.scoreAudit__etapes span, .scoreAudit__etapes strong { display: block; }
.scoreAudit__etapes span { color: var(--score-audit-muted); margin-bottom: 4px; }
.scoreAudit__etapes strong { overflow-wrap: anywhere; font-size: 17px; line-height: 1.5; }
.scoreAudit__etat--incomplet { background: #fff8e7; border-color: #c08c25; }
.scoreAudit__note { background: #fff8e7; padding: 12px; border-radius: 6px; }
.scoreAudit__tableWrap { margin-top: 12px; }
.scoreAudit table { min-width: 420px; }
.scoreAudit__details { min-width: 0; }
.scoreAudit__details summary { overflow-wrap: anywhere; }
@media (max-width: 560px) {
    .scoreAudit__kpis--calcul { grid-template-columns: 1fr; }
}
