73 lines
3.3 KiB
CSS
73 lines
3.3 KiB
CSS
/* Base : remise à zéro, typographie, mise en page de l'écran. */
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
html, body { margin: 0; padding: 0; }
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: var(--font-body);
|
|
font-size: var(--fs-md);
|
|
line-height: 1.5;
|
|
overscroll-behavior-y: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
/* place pour la barre d'action collée en bas */
|
|
padding-bottom: calc(var(--action-bar-h) + env(safe-area-inset-bottom));
|
|
}
|
|
body.has-timer { padding-bottom: calc(var(--action-bar-h) + 96px + env(safe-area-inset-bottom)); }
|
|
|
|
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
|
|
|
|
h1, h2, h3, p, ul, ol { margin: 0; }
|
|
ul, ol { padding: 0; list-style: none; }
|
|
a { color: inherit; }
|
|
button, input, select, textarea { font: inherit; color: inherit; }
|
|
button { cursor: pointer; }
|
|
[hidden] { display: none !important; }
|
|
|
|
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
|
|
h1:focus { outline: none; }
|
|
|
|
.visually-hidden {
|
|
position: absolute !important; width: 1px; height: 1px; overflow: hidden;
|
|
clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
|
|
}
|
|
.skip-link { position: absolute; left: var(--space-2); top: -100px; z-index: 50; }
|
|
.skip-link:focus { top: var(--space-2); background: var(--surface); padding: var(--space-2) var(--space-3); }
|
|
|
|
/* Chiffres alignés partout où l'on compare des nombres. */
|
|
.tnum, .timer__time, .stepper__value, .set-btn, .field__input, .exercise__count, .objective__value, .action-bar__meta { font-variant-numeric: tabular-nums; }
|
|
|
|
/* Typographie d'affichage : capitales condensées. */
|
|
.kicker, .section-label, .mini-label, .card__eyebrow, .plate__id, .plate__last, .tag, .back, .btn, .timer__label {
|
|
font-family: var(--font-display);
|
|
text-transform: uppercase;
|
|
font-weight: 600;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
.title, .card__title, .plate__name, .note__title, .dialog__title, .timer__time, .objective__value, .stepper__value {
|
|
font-family: var(--font-display);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.screen-head { padding: var(--space-5) 0 var(--space-4); }
|
|
.kicker { font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: 0.16em; }
|
|
.title { font-size: var(--fs-3xl); line-height: 0.95; text-transform: uppercase; margin-top: var(--space-1); letter-spacing: -0.005em; }
|
|
.title--hero { font-size: 3.25rem; }
|
|
.lede { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-2); max-width: 46ch; }
|
|
.muted { color: var(--text-muted); font-size: var(--fs-sm); }
|
|
.foot { color: var(--text-muted); font-size: var(--fs-xs); margin: var(--space-6) 0 var(--space-4); }
|
|
.empty { color: var(--text-muted); padding: var(--space-5) 0; }
|
|
|
|
.section-label {
|
|
font-size: var(--fs-sm); color: var(--text-muted); letter-spacing: 0.16em;
|
|
margin: var(--space-6) 0 var(--space-3); display: flex; align-items: baseline; gap: var(--space-2);
|
|
}
|
|
.section-label__hint { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: none; font-family: var(--font-body); font-weight: 400; }
|
|
|
|
.status { min-height: 1.5em; margin-top: var(--space-3); color: var(--danger); font-size: var(--fs-sm); }
|
|
.status--ok { color: var(--primary); }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after { transition: none !important; animation: none !important; }
|
|
}
|