/* Convertisseur d'unités de temps */
.tu { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vh, 22px); width: 100%; text-align: center; }
.tu .tu-q { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.5; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px .3em; }
.tu-nw { white-space: nowrap; display: inline-flex; align-items: center; gap: .3em; }
.tu-in { width: 3.6em; max-width: 100%; padding: .05em .3em; border: 0; border-radius: 14px; background: var(--frame); color: var(--white); font: inherit; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; caret-color: var(--white); transition: background-color .15s, box-shadow .15s; }
.tu-in:hover { background: var(--frame-hi); }
.tu-in:focus { outline: none; box-shadow: 0 0 0 3px var(--white); }
.tu-in.is-bad { box-shadow: inset 0 0 0 3px var(--white); }
.tu-swap { font-size: inherit; width: max(44px, 1.5em); min-width: 0; height: max(44px, 1.5em); padding: 0; justify-content: center; margin-left: .15em; }
.tu-out { display: flex; flex-direction: column; align-items: center; line-height: .9; max-width: 100%; }
/* Le grand nombre rapetisse quand il s'allonge (--len = nombre de caractères), sans jamais déborder. */
.tu-big { font-family: var(--f-display); font-size: calc(min(clamp(88px, 13vw, 200px), 150vw / var(--len, 4)) * var(--cs, 1)); line-height: .95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tu-unit { margin-top: .3em; font-size: calc(clamp(20px, 2.5vw, 30px) * var(--cs, 1)); font-weight: 700; }
.tu-detail { width: 100%; margin: 0; font-size: clamp(16px, 1.8vw, 20px); font-weight: 500; opacity: .9; max-width: 900px; font-variant-numeric: tabular-nums; text-wrap: balance; }
.tu-detail span { display: block; }
.tu-copy { min-width: 110px; justify-content: center; }
@media (max-width: 520px) { .tu .tu-q { font-size: 26px; } .tu-big { font-size: calc(min(88px, 150vw / var(--len, 4)) * var(--cs, 1)); } .tu-detail { font-size: 15px; } }
/* Tableaux plus bas dans la page */
.tu-table td, .tu-table th { text-align: center; font-variant-numeric: tabular-nums; }
.content .tu-table td:nth-child(2) { font-family: inherit; font-size: inherit; }
/* Plein écran : la phrase reste réglable puis s'efface au repos ; le résultat garde des marges. */
.hero.is-fs .tu-out { max-width: calc(100vw - 2 * max(24px, 6vw)); }
@media (min-width: 721px) { .hero.is-fs main.tool { padding-bottom: 60px; } }
@media (max-width: 720px) { .hero.is-fs .tu::before { content: ""; display: block; flex: none; height: 64px; } }
.content .tu-now { padding: 14px 18px; border-radius: 14px; background: var(--tint); color: var(--dark); font-variant-numeric: tabular-nums; }
