/* Note nécessaire à l'examen final : styles propres à l'outil. */
.o-note-examen [hidden] { display: none !important; }
.o-note-examen-bareme { grid-template-columns: minmax(0, 420px); margin-bottom: 14px; }
.o-note-examen-avis { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--surface-2); color: var(--texte); font-size: .95rem; }
.o-note-examen-lettres { margin: 0 0 14px; padding: 10px 14px 4px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); }
.o-note-examen-lettres legend { padding: 0 6px; font-size: .9rem; font-weight: 600; color: var(--texte-2); }
.o-note-examen-seuils { display: grid; grid-template-columns: repeat(4, minmax(0, 90px)); gap: 8px; }
.o-note-examen-seuils label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; color: var(--texte); }
.o-note-examen-seuils input { font-family: var(--mono); text-align: right; min-width: 0; }
.o-note-examen-bloc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bord); }
.o-note-examen-bloc h2 { margin: 0 0 10px; font-size: 1.1rem; }
.o-note-examen-modes { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 10px; }
.o-note-examen-modes label.case { display: flex; align-items: center; gap: 8px; min-height: 42px; color: var(--texte); cursor: pointer; }
.o-note-examen-modes input { width: 20px; height: 20px; accent-color: var(--marque); }
.o-note-examen-champs { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.o-note-examen-champs input { font: 600 1.05rem var(--mono); }
.o-note-examen-rangs { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; max-width: 420px; }
.o-note-examen-rang { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px; gap: 8px; align-items: end; }
.o-note-examen-rang label { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; font-size: .82rem; color: var(--texte-2); }
.o-note-examen-rang input { font: 600 1rem var(--mono); text-align: right; }
.o-note-examen-rang .btn { width: 42px; min-height: 42px; padding: 0; font-size: 1.25rem; line-height: 1; }
.o-note-examen-rang:not(:first-child) label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.o-note-examen input[aria-invalid], .o-note-examen input[aria-invalid="true"] { border-color: var(--erreur-texte); outline: 1px solid var(--erreur-texte); }
.o-note-examen input:focus-visible, .o-note-examen select:focus-visible { outline: 3px solid var(--marque); outline-offset: 0; }
.o-note-examen-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.o-note-examen-resume { font-weight: 600; color: var(--texte); }
.o-note-examen .o-note-examen-info { display: block; margin: 10px 0 0; }
.o-note-examen .o-note-examen-info:empty { display: none; }
.o-note-examen-champs + .o-note-examen-champs, .o-note-examen-info + .o-note-examen-champs { margin-top: 12px; }
.o-note-examen-sortie { display: grid; gap: 8px; margin-bottom: 12px; }
.o-note-examen-ligne { display: block; padding: 10px 14px; border-radius: var(--rayon-petit); font-weight: 600; background: var(--surface-2); color: var(--texte); }
.o-note-examen-besoin { border-left: 4px solid var(--marque); }
.o-note-examen-ligne.o-note-examen-ok { background: var(--ok-fond); color: var(--ok-texte); }
.o-note-examen-ligne.o-note-examen-non { background: var(--erreur-fond); color: var(--erreur-texte); }
.o-note-examen-ligne.o-note-examen-attente { font-weight: 400; color: var(--texte-2); }
.o-note-examen-hors { margin: 0 0 10px; color: var(--erreur-texte); font-size: .95rem; }
.o-note-examen-hors:empty { display: none; }
.o-note-examen-defile { overflow-x: auto; }
.o-note-examen-tableau { width: 100%; max-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.o-note-examen-tableau th, .o-note-examen-tableau td { padding: 7px 12px; border-bottom: 1px solid var(--bord); text-align: right; }
.o-note-examen-tableau th { font-size: .88rem; color: var(--texte-2); font-weight: 600; }
.o-note-examen-tableau td { font-family: var(--mono); }
.o-note-examen-tableau tr.o-note-examen-atteint td { background: var(--ok-fond); color: var(--ok-texte); }
.o-note-examen .o-note-examen-memo { display: block; margin-top: 16px; }
@media (max-width: 640px) {
  .o-note-examen-champs { grid-template-columns: 1fr; }
  .o-note-examen-tableau th, .o-note-examen-tableau td { padding: 6px 8px; }
}
