/* Date julienne */
.jd { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vh, 22px); width: 100%; text-align: center; }
.jd .jd-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; margin: 0; }
.jd .jd-q[hidden] { display: none; }
.jd-nw { white-space: nowrap; display: inline-flex; align-items: center; gap: .3em; }
.jd-in { width: 4.2em; 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; }
.jd-in:hover { background: var(--frame-hi); }
.jd-in:focus { outline: none; box-shadow: 0 0 0 3px var(--white); }
.jd-in.is-bad { box-shadow: inset 0 0 0 3px var(--white); }
.jd-out { display: flex; flex-direction: column; align-items: center; line-height: .9; max-width: 100%; }
/* Le grand résultat rapetisse quand il s'allonge (--len = nombre de caractères), sans jamais déborder. */
.jd-big { font-family: var(--f-display); font-size: calc(min(clamp(88px, 13vw, 200px), 150vw / var(--len, 5)) * var(--cs, 1)); line-height: .95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jd-unit { margin-top: .3em; font-size: calc(clamp(20px, 2.5vw, 30px) * var(--cs, 1)); font-weight: 700; }
.jd-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; }
.jd-detail > span { display: block; }
.jd-detail .pt { display: inline; white-space: nowrap; }
.jd-copy { min-width: 110px; justify-content: center; }
@media (max-width: 520px) { .jd .jd-q { font-size: 24px; } .jd-big { font-size: calc(min(88px, 150vw / var(--len, 5)) * var(--cs, 1)); } .jd-detail { font-size: 15px; } .jd-bar .chip-btn { padding: 0 10px; font-size: 14px; } }
/* Tableaux plus bas dans la page */
.jd-table td, .jd-table th, .jd-grid td, .jd-grid th { text-align: center; font-variant-numeric: tabular-nums; }
.jd-grid { font-size: 14px; }
.content .jd-grid td:nth-child(2), .content .jd-table td:nth-child(2) { font-family: inherit; font-size: inherit; }
.jd-grid td, .jd-grid th { padding: 4px 2px; }
.jd-grid tbody th { font-weight: 700; }
/* Plein écran : la phrase reste réglable puis s'efface au repos ; le résultat garde des marges. */
.hero.is-fs .jd-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 .jd::before { content: ""; display: block; flex: none; height: 64px; } }
