/* Heure 12 h <-> 24 h : styles propres à l'outil. */
.o-heure-12-24 { display: grid; gap: 26px; min-width: 0; }
.o-heure-12-24 [hidden] { display: none !important; }
.o-heure-12-24-bloc { display: grid; gap: 12px; min-width: 0; }
.o-heure-12-24-bloc + .o-heure-12-24-bloc { padding-top: 22px; border-top: 1px solid var(--bord); }
.o-heure-12-24 h2 { margin: 0; font-size: 1.2rem; }
.o-heure-12-24-saisie, .o-heure-12-24-lot { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: .88rem; color: var(--texte-2); }
.o-heure-12-24-saisie input { font: 600 1.45rem var(--mono); min-height: 54px; max-width: 100%; }
.o-heure-12-24-exemples { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.o-heure-12-24-exemples .btn { padding: 4px 10px; font: 500 .9rem var(--mono); min-height: 34px; }
.o-heure-12-24-aide, .o-heure-12-24-lot small { margin: 0; font-size: .85rem; color: var(--texte-2); }
.o-heure-12-24 input:focus-visible, .o-heure-12-24 textarea:focus-visible { outline: 3px solid var(--marque); outline-offset: 0; }
.o-heure-12-24 input[aria-invalid="true"] { border-color: var(--erreur-texte); outline: 1px solid var(--erreur-texte); }
.o-heure-12-24-resultat { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--rayon); background: var(--surface-2); color: var(--texte); font-variant-numeric: tabular-nums; }
.o-heure-12-24-resultat > strong { font: 700 1.9rem var(--mono); line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.o-heure-12-24-details { display: grid; gap: 6px; margin: 0; }
.o-heure-12-24-details > div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 4px 14px; padding-top: 6px; border-top: 1px solid var(--bord); }
.o-heure-12-24-details dt { color: var(--texte-2); font-size: .9rem; }
.o-heure-12-24-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.o-heure-12-24-details > div:not([data-ligne-mots]) dd { font-family: var(--mono); }
.o-heure-12-24-note { margin: 0; padding: 8px 12px; border-radius: var(--rayon-petit); background: var(--ok-fond); color: var(--ok-texte); font-size: .95rem; }
.o-heure-12-24-note:empty { display: none; }
.o-heure-12-24 .o-heure-12-24-erreur { margin: 0; color: var(--erreur-texte); font-size: .95rem; }
.o-heure-12-24-erreur:empty { display: none; }
.o-heure-12-24-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.o-heure-12-24-actions label.case { margin: 0; }
.o-heure-12-24-maintenant { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.o-heure-12-24-maintenant p { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--surface-2); text-align: center; }
.o-heure-12-24-maintenant span { font-size: .85rem; color: var(--texte-2); }
.o-heure-12-24-maintenant strong { font: 700 1.8rem var(--mono); font-variant-numeric: tabular-nums; }
.o-heure-12-24 textarea { min-height: 140px; font: 1rem var(--mono); }
.o-heure-12-24-defile { overflow-x: auto; min-width: 0; }
.o-heure-12-24-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.o-heure-12-24-table th, .o-heure-12-24-table td { padding: 5px 10px; border-bottom: 1px solid var(--bord); text-align: left; }
.o-heure-12-24-table thead th { font-size: .82rem; font-weight: 600; color: var(--texte-2); }
.o-heure-12-24-table td { font-family: var(--mono); }
.o-heure-12-24-table td small { font-family: var(--police); color: inherit; }
.o-heure-12-24-table tr.piege td { background: var(--ok-fond); color: var(--ok-texte); font-weight: 700; }
.o-heure-12-24-table tr.actif td { outline: 2px solid var(--marque); outline-offset: -2px; color: var(--marque-fort); font-weight: 700; }
.o-heure-12-24-table tr.refus td { color: var(--erreur-texte); }
.o-heure-12-24-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 22px; }
@media (max-width: 560px) {
  .o-heure-12-24-resultat > strong { font-size: 1.45rem; }
  .o-heure-12-24-details > div { grid-template-columns: minmax(0, 1fr); }
  .o-heure-12-24-maintenant strong { font-size: 1.5rem; }
}
