/* Convertisseur de timestamp Unix */
.o-timestamp-titre { margin: 0 0 10px; font-size: 1.1rem; color: var(--texte); }
.o-timestamp-horloge { padding-bottom: 6px; }
.o-timestamp-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.o-timestamp-chiffres p { margin: 0; padding: 12px 16px; border-radius: var(--rayon-petit); background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.o-timestamp-chiffres p:first-child { background: var(--marque); color: var(--sur-marque); }
.o-timestamp-chiffres span { font-size: .85rem; opacity: .85; }
.o-timestamp-chiffres output { font: 700 clamp(1.5rem, 6vw, 2.3rem)/1.15 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.o-timestamp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 8px; }
.o-timestamp-actions .btn { min-height: 42px; }
.atelier .o-timestamp-actions .btn[aria-pressed="true"] { background: var(--surface-2); }
.o-timestamp-bloc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bord); }
.o-timestamp-saisie { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(160px, 1fr)); }
.o-timestamp-ligne { display: flex; gap: 8px; }
.o-timestamp-ligne input { flex: 1; min-width: 0; font: 600 1.15rem var(--mono); }
.o-timestamp-ligne .btn { flex: none; min-height: 42px; }
.o-timestamp-etat { display: block; min-height: 1.4em; margin: 10px 0 6px; color: var(--texte-2); font-size: .92rem; }
.o-timestamp-etat.erreur { color: var(--erreur-texte); font-weight: 600; }
.o-timestamp-resultats { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0; border: 1px solid var(--bord); border-radius: var(--rayon-petit); overflow: hidden; }
.o-timestamp-resultats:empty { display: none; }
.o-timestamp-resultats dt, .o-timestamp-resultats dd { margin: 0; padding: 7px 12px; border-top: 1px solid var(--bord); }
.o-timestamp-resultats dt:first-of-type, .o-timestamp-resultats dt:first-of-type + dd { border-top: 0; }
.o-timestamp-resultats dt { color: var(--texte-2); font-size: .9rem; background: var(--surface-2); display: flex; align-items: center; }
.o-timestamp-resultats dd { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.o-timestamp-resultats dd span { overflow-wrap: anywhere; user-select: all; }
.o-timestamp-resultats dd .mono { font-family: var(--mono); font-weight: 600; }
.o-timestamp-resultats dd .btn { flex: none; min-height: 30px; padding: 2px 10px; font-size: .82rem; }
.o-timestamp-alerte { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--rayon-petit); background: var(--erreur-fond); color: var(--erreur-texte); font-size: .92rem; }
.o-timestamp-alerte[hidden] { display: none; }
.o-timestamp-note { margin: 0 0 8px; color: var(--texte-2); font-size: .9rem; }
.o-timestamp-defile { overflow-x: auto; }
.o-timestamp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.o-timestamp-table th, .o-timestamp-table td { padding: 6px 10px; border: 1px solid var(--bord); text-align: left; vertical-align: top; }
.o-timestamp-table thead th { background: var(--surface-2); color: var(--texte-2); font-weight: 600; }
.o-timestamp-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; user-select: all; white-space: nowrap; }
.o-timestamp-code td { user-select: text; white-space: normal; }
.o-timestamp-code code { font-family: var(--mono); font-size: .88rem; overflow-wrap: anywhere; }
.o-timestamp-lot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.o-timestamp-lot label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--texte-2); }
.o-timestamp-lot textarea { min-height: 130px; white-space: pre; overflow: auto; }
.o-timestamp-lot textarea[readonly] { background: var(--surface-2); }
.o-timestamp-2038 { margin: 18px 0 0; padding: 10px 14px; border-left: 4px solid var(--marque); background: var(--surface-2); border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0; font-size: .92rem; }
.o-timestamp .o-timestamp-prive { display: block; margin-top: 12px; }
.o-timestamp button:focus-visible, .o-timestamp input:focus-visible, .o-timestamp select:focus-visible, .o-timestamp textarea:focus-visible { outline: 3px solid var(--marque); outline-offset: 1px; }

@media (max-width: 760px) {
  .o-timestamp-saisie { grid-template-columns: 1fr 1fr; }
  .o-timestamp-saisie .o-timestamp-large { grid-column: 1 / -1; }
  .o-timestamp-lot { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .o-timestamp-saisie { grid-template-columns: 1fr; }
  .o-timestamp-resultats { grid-template-columns: 1fr; }
  .o-timestamp-resultats dt { border-top: 1px solid var(--bord); }
  .o-timestamp-resultats dd { border-top: 0; }
}
