/* /diagnostic/ — compléments à /telecharger.css (même habillage, maquette C). */
.tete { align-self: stretch; display: flex; align-items: center; gap: 14px; }
.icone.petite { width: 56px; height: 56px; }
.nom.petit { margin: 0; font-size: 22px; }
.tete .client { margin-top: 2px; }
.tete + h1 { align-self: stretch; text-align: left; margin-top: 28px; }
.tete + h1 + .sous { align-self: stretch; text-align: left; }

.passage { margin-top: 22px; background: var(--accent-soft); box-shadow: none; }
.passage .note { color: var(--on-accent-soft); }
.progres { margin-top: 14px; display: flex; gap: 6px; }
.progres span { flex: 1; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, var(--raised)); }
.progres span.cours { background: color-mix(in srgb, var(--accent) 55%, var(--raised)); }
.progres span.fait { background: var(--accent); }
.bouton-lien { margin-top: 14px; display: inline-flex; align-items: center; text-decoration: none; }

/* Les tests : nom + valeur à gauche, état (icône + mot) à droite. */
.tests { margin: 10px 0 0; padding: 0; list-style: none; }
.tests li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--border); }
.tests li:last-child { box-shadow: none; padding-bottom: 0; }
.test-nom { display: block; font-weight: 600; font-size: 15px; }
.test-valeur { display: block; margin-top: 2px; font-size: 14px; color: var(--text2); overflow-wrap: anywhere; }
.statut { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px 0 7px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.statut svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.statut.ok { background: var(--success-soft); color: var(--success); }
.statut.attention { background: var(--warning-soft); color: var(--warning); }
.statut.non { background: var(--error-soft); color: var(--error); }
.statut.attente { background: var(--surface); color: var(--text2); box-shadow: inset 0 0 0 1px var(--border); }

/* Les gestes. */
.geste { margin-top: 16px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--border); }
.bloc h2 + .geste { margin-top: 12px; padding-top: 0; box-shadow: none; }
.geste-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.geste h3 { margin: 0; font-size: 16px; font-weight: 700; }
.geste .secondaire { margin-top: 12px; }
.bouton-fichier { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.bouton-fichier input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bouton-fichier:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.photo-resultat { margin-top: 12px; display: flex; gap: 12px; align-items: center; }
.photo-resultat img { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 16px; }
.oui-non { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.oui-non p { font-size: 15px; font-weight: 600; }
.oui-non div { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.oui-non .secondaire { margin-top: 0; }

/* Le rapport. */
.rapport { margin: 12px 0 0; max-height: 220px; overflow: auto; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); -webkit-user-select: text; user-select: text; }
.actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions .principal { margin-top: 0; }
#effacer { margin-top: 10px; font-size: 14px; }
