Design system : jetons clair et sombre, composants CSS, coquille de l'app
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
eaefff096f
commit
74db3014f0
@@ -0,0 +1,8 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
||||
<rect width="512" height="512" fill="#14171A"/>
|
||||
<rect x="136" y="248" width="240" height="16" rx="4" fill="#EDEAE3"/>
|
||||
<rect x="154" y="190" width="32" height="132" rx="6" fill="#EDEAE3"/>
|
||||
<rect x="326" y="190" width="32" height="132" rx="6" fill="#EDEAE3"/>
|
||||
<rect x="192" y="212" width="20" height="88" rx="4" fill="#3FA06A"/>
|
||||
<rect x="300" y="212" width="20" height="88" rx="4" fill="#3FA06A"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 478 B |
@@ -0,0 +1,8 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
|
||||
<rect width="512" height="512" rx="96" fill="#14171A"/>
|
||||
<rect x="96" y="244" width="320" height="24" rx="6" fill="#EDEAE3"/>
|
||||
<rect x="120" y="164" width="44" height="184" rx="8" fill="#EDEAE3"/>
|
||||
<rect x="348" y="164" width="44" height="184" rx="8" fill="#EDEAE3"/>
|
||||
<rect x="172" y="196" width="28" height="120" rx="6" fill="#3FA06A"/>
|
||||
<rect x="312" y="196" width="28" height="120" rx="6" fill="#3FA06A"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 487 B |
@@ -0,0 +1,27 @@
|
||||
<!doctype html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
||||
<meta name="color-scheme" content="dark light">
|
||||
<meta name="theme-color" content="#14171A" media="(prefers-color-scheme: dark)">
|
||||
<meta name="theme-color" content="#F3F1EC" media="(prefers-color-scheme: light)">
|
||||
<meta name="description" content="Ton programme de musculation, construit avec ton IA, suivi séance par séance. Sans compte, tes données restent sur ton appareil.">
|
||||
<title>IA-Fit</title>
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
<link rel="icon" href="icons/icon.svg" type="image/svg+xml">
|
||||
<link rel="preload" href="fonts/barlow-condensed-bold.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="stylesheet" href="styles/fonts.css">
|
||||
<link rel="stylesheet" href="styles/tokens.css">
|
||||
<link rel="stylesheet" href="styles/base.css">
|
||||
<link rel="stylesheet" href="styles/components.css">
|
||||
<link rel="stylesheet" href="styles/session.css">
|
||||
<script type="module" src="main.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<a class="skip-link" href="#app">Aller au contenu</a>
|
||||
<main id="app" class="wrap">
|
||||
<noscript><p>IA-Fit a besoin de JavaScript pour fonctionner.</p></noscript>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "IA-Fit",
|
||||
"short_name": "IA-Fit",
|
||||
"description": "Ton programme de musculation, construit avec ton IA, suivi séance par séance.",
|
||||
"lang": "fr",
|
||||
"start_url": "./#/",
|
||||
"scope": "./",
|
||||
"display": "standalone",
|
||||
"orientation": "portrait",
|
||||
"background_color": "#14171A",
|
||||
"theme_color": "#14171A",
|
||||
"icons": [
|
||||
{ "src": "icons/icon.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "any" },
|
||||
{ "src": "icons/icon-maskable.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "maskable" }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
/* 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; }
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
/* Composants communs (docs/design.md). Un composant = un bloc nommé, avec ses
|
||||
éléments (bloc__element) et variantes (bloc--variante). */
|
||||
|
||||
/* ---- Bouton ------------------------------------------------------------- */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
|
||||
min-height: var(--tap); padding: 0 var(--space-4);
|
||||
background: var(--surface-2); color: var(--text);
|
||||
border: 1px solid var(--line-strong); border-radius: var(--radius);
|
||||
font-size: var(--fs-md); text-decoration: none; text-align: center;
|
||||
transition: background-color .12s, border-color .12s, transform .06s;
|
||||
}
|
||||
.btn:hover { border-color: var(--text-muted); }
|
||||
.btn:active { transform: scale(.985); }
|
||||
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
|
||||
.btn--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 700; }
|
||||
.btn--primary:hover { border-color: var(--text); }
|
||||
.btn--ghost { background: transparent; }
|
||||
.btn--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
|
||||
.btn--work { background: transparent; border-color: var(--work); color: var(--work); }
|
||||
.btn--block { display: flex; width: 100%; }
|
||||
.btn--lg { min-height: 56px; font-size: var(--fs-lg); letter-spacing: 0.06em; }
|
||||
.btn--sm { min-height: 44px; padding: 0 var(--space-3); font-size: var(--fs-sm); }
|
||||
|
||||
.link-btn {
|
||||
background: none; border: 0; padding: 0 var(--space-2); min-height: 44px; min-width: 44px;
|
||||
color: var(--text); text-decoration: underline; text-underline-offset: 3px; font-size: var(--fs-sm);
|
||||
}
|
||||
|
||||
.back {
|
||||
display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-2) 0 0;
|
||||
background: none; border: 0; color: var(--text-muted); font-size: var(--fs-sm); letter-spacing: 0.12em;
|
||||
}
|
||||
.back:hover { color: var(--text); }
|
||||
|
||||
/* ---- Barre d'action collée en bas -------------------------------------- */
|
||||
.action-bar {
|
||||
position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
|
||||
background: color-mix(in srgb, var(--bg) 92%, transparent);
|
||||
border-top: 1px solid var(--line);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
.action-bar__in {
|
||||
max-width: var(--max); margin: 0 auto; padding: var(--space-3) var(--gutter);
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
}
|
||||
.action-bar__in > .btn { flex: 1; }
|
||||
.action-bar__meta { color: var(--text-muted); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); white-space: nowrap; }
|
||||
|
||||
/* ---- Cartes ------------------------------------------------------------- */
|
||||
.card {
|
||||
display: block; position: relative; text-decoration: none; color: inherit;
|
||||
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
|
||||
padding: var(--space-4);
|
||||
}
|
||||
/* La carte du jour domine l'accueil : plus grande, bordée de la couleur de séance. */
|
||||
.card--today {
|
||||
border-left: 6px solid var(--accent); padding: var(--space-5) var(--space-4);
|
||||
}
|
||||
a.card--today:hover { border-color: var(--line-strong); border-left-color: var(--accent); }
|
||||
.card--proposal { border-left: 6px solid var(--primary); margin-bottom: var(--space-4); }
|
||||
.card__eyebrow { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-size: var(--fs-sm); letter-spacing: 0.16em; }
|
||||
.card__title { font-size: var(--fs-2xl); line-height: 1; text-transform: uppercase; margin-top: var(--space-1); }
|
||||
.card__meta { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-2); }
|
||||
.card__text { margin-top: var(--space-3); font-size: var(--fs-sm); }
|
||||
.card__hint { color: var(--text-muted); font-size: var(--fs-xs); margin-top: var(--space-3); }
|
||||
.card__actions { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
|
||||
|
||||
.swatch { width: 12px; height: 12px; border-radius: 2px; background: var(--accent); flex: none; }
|
||||
|
||||
/* ---- Plaque de séance (liste de l'accueil) ----------------------------- */
|
||||
.plates { display: grid; gap: var(--space-2); }
|
||||
.plate {
|
||||
display: flex; align-items: stretch; min-height: 72px; text-decoration: none; color: inherit;
|
||||
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
|
||||
}
|
||||
.plate:hover { border-color: var(--line-strong); }
|
||||
.plate__bar { width: 8px; flex: none; background: var(--accent); }
|
||||
.plate__body { flex: 1; min-width: 0; padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; }
|
||||
.plate__id { font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: 0.16em; }
|
||||
.plate__name { font-size: var(--fs-xl); line-height: 1.05; text-transform: uppercase; }
|
||||
.plate__meta { color: var(--text-muted); font-size: var(--fs-xs); margin-top: var(--space-1); }
|
||||
.plate__last { padding: var(--space-3) var(--space-3) 0 0; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; text-align: right; }
|
||||
|
||||
/* ---- Note (cardio, repères) --------------------------------------------- */
|
||||
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-2); }
|
||||
.note__title { font-size: var(--fs-lg); text-transform: uppercase; letter-spacing: 0.03em; }
|
||||
.note__text { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-1); }
|
||||
|
||||
.coach-note { color: var(--warn); border-left: 3px solid var(--warn); padding-left: var(--space-3); font-size: var(--fs-sm); margin: var(--space-3) 0; }
|
||||
|
||||
/* ---- Puces (muscles) et étiquettes -------------------------------------- */
|
||||
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; }
|
||||
.chip {
|
||||
display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-3);
|
||||
border-radius: 999px; font-size: var(--fs-xs); font-weight: 600;
|
||||
background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong);
|
||||
}
|
||||
.chip--secondary { background: transparent; color: var(--text-muted); border-style: dashed; font-weight: 400; }
|
||||
.tag {
|
||||
display: inline-block; padding: 1px 6px; margin-right: var(--space-2); border-radius: var(--radius-sm);
|
||||
font-size: var(--fs-xs); background: var(--accent); color: var(--accent-ink); letter-spacing: 0.08em; vertical-align: 1px;
|
||||
}
|
||||
.tag--superset { background: var(--work); color: var(--surface-sunk); }
|
||||
.badge {
|
||||
display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: var(--radius-sm);
|
||||
background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md);
|
||||
}
|
||||
.badge--warmup { background: var(--primary); color: var(--on-primary); }
|
||||
.inline-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); background: var(--surface-2); color: var(--text); padding: 2px 6px; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
|
||||
|
||||
/* ---- Champs ------------------------------------------------------------- */
|
||||
.field { display: flex; align-items: center; gap: var(--space-2); }
|
||||
.field--inline { justify-content: space-between; margin: var(--space-2) 0; }
|
||||
.field__label { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: 0.1em; font-size: var(--fs-sm); color: var(--text-muted); }
|
||||
.field__input {
|
||||
min-height: var(--tap); min-width: 0; padding: 0 var(--space-3);
|
||||
background: var(--surface-2); color: var(--text);
|
||||
border: 1px solid var(--line-strong); border-radius: var(--radius);
|
||||
font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg);
|
||||
}
|
||||
.field__input:focus { outline: 3px solid var(--focus); outline-offset: 0; }
|
||||
.field__input[aria-invalid="true"] { border-color: var(--danger); outline-color: var(--danger); }
|
||||
.field__input--date { font-size: var(--fs-md); }
|
||||
.field__input--area { width: 100%; min-height: 160px; padding: var(--space-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); font-weight: 400; }
|
||||
.field--amount .field__input { width: 5.5em; text-align: right; }
|
||||
.field--compact .field__input { width: 4.5em; }
|
||||
.field__unit { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; color: var(--text-muted); font-size: var(--fs-sm); }
|
||||
|
||||
/* ---- Choix segmenté (mode de suivi) ------------------------------------ */
|
||||
.segmented { display: flex; flex-wrap: wrap; gap: var(--space-2); }
|
||||
.segmented__opt {
|
||||
min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius);
|
||||
background: transparent; border: 1px solid var(--line-strong); color: var(--text-muted); font-size: var(--fs-sm);
|
||||
}
|
||||
.segmented__opt[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
|
||||
|
||||
/* ---- Liens de l'accueil, onboarding ------------------------------------ */
|
||||
.links { display: grid; gap: var(--space-2); }
|
||||
.hero { padding-top: var(--space-6); }
|
||||
.how { counter-reset: how; display: grid; gap: var(--space-3); margin-top: var(--space-4); }
|
||||
.how__step { counter-increment: how; position: relative; padding-left: 44px; min-height: 32px; font-size: var(--fs-sm); }
|
||||
.how__step::before {
|
||||
content: counter(how); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
|
||||
display: grid; place-items: center; background: var(--primary); color: var(--on-primary);
|
||||
font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg);
|
||||
}
|
||||
.alt { display: grid; gap: var(--space-2); margin-top: var(--space-5); }
|
||||
.manual-copy { margin-top: var(--space-3); display: grid; gap: var(--space-2); }
|
||||
|
||||
.preview { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
|
||||
.preview__session { display: grid; gap: 2px; font-size: var(--fs-sm); }
|
||||
|
||||
/* ---- Historique --------------------------------------------------------- */
|
||||
.history__list { display: grid; gap: var(--space-2); }
|
||||
.history__item {
|
||||
display: grid; grid-template-columns: 1fr auto; grid-template-areas: "date chev" "name chev" "meta chev";
|
||||
min-height: 72px; padding: var(--space-3) var(--space-4); text-decoration: none; color: inherit;
|
||||
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
|
||||
}
|
||||
.history__item:hover { border-color: var(--line-strong); }
|
||||
.history__date { grid-area: date; font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: 0.1em; font-size: var(--fs-xs); color: var(--text-muted); }
|
||||
.history__name { grid-area: name; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fs-lg); line-height: 1.1; }
|
||||
.history__meta { grid-area: meta; color: var(--text-muted); font-size: var(--fs-xs); }
|
||||
.history__item .chevron { grid-area: chev; align-self: center; }
|
||||
|
||||
.edit-list { display: grid; gap: var(--space-3); }
|
||||
.edit-ex { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-3); }
|
||||
.edit-ex__head { display: flex; justify-content: space-between; gap: var(--space-2); align-items: baseline; }
|
||||
.edit-sets { display: grid; gap: var(--space-2); }
|
||||
.edit-set { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
|
||||
.edit-set__n { color: var(--text-muted); font-size: var(--fs-sm); }
|
||||
.edit-sets__btns { display: flex; gap: var(--space-2); }
|
||||
|
||||
/* ---- Chevron ------------------------------------------------------------ */
|
||||
.chevron { width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(-45deg); flex: none; margin: 0 var(--space-1); transition: transform .15s; }
|
||||
|
||||
/* ---- Dialogue et message bref ------------------------------------------- */
|
||||
.dialog {
|
||||
width: min(100% - 2 * var(--gutter), 480px); padding: var(--space-5) var(--space-4) var(--space-4);
|
||||
background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius);
|
||||
}
|
||||
.dialog::backdrop { background: rgb(0 0 0 / .6); }
|
||||
.dialog__title { font-size: var(--fs-xl); text-transform: uppercase; line-height: 1.05; margin-bottom: var(--space-3); }
|
||||
.dialog__text { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-2); }
|
||||
.dialog__actions { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
|
||||
|
||||
.toast {
|
||||
position: fixed; left: 50%; bottom: calc(var(--action-bar-h) + var(--space-4) + env(safe-area-inset-bottom)); z-index: 40;
|
||||
transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
|
||||
max-width: calc(100% - 2 * var(--gutter)); padding: var(--space-3) var(--space-4);
|
||||
background: var(--text); color: var(--bg); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 600;
|
||||
transition: opacity .2s, transform .2s;
|
||||
}
|
||||
.toast--on { opacity: 1; transform: translate(-50%, 0); }
|
||||
|
||||
/* ---- Minuteur ----------------------------------------------------------- */
|
||||
.timer {
|
||||
position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
|
||||
background: var(--surface); border-top: 1px solid var(--line-strong);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
box-shadow: 0 -8px 24px rgb(0 0 0 / .25);
|
||||
}
|
||||
.timer__bar { height: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
|
||||
.timer__bar::after {
|
||||
content: ""; position: absolute; inset: 0; background: var(--text);
|
||||
transform-origin: left; transform: scaleX(var(--progress, 1)); transition: transform .25s linear;
|
||||
}
|
||||
.timer__in { max-width: var(--max); margin: 0 auto; padding: var(--space-3) var(--gutter); display: flex; align-items: center; gap: var(--space-3); }
|
||||
.timer__read { flex: 1; min-width: 0; }
|
||||
.timer__label { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.timer__time { font-size: 2.75rem; line-height: 1; }
|
||||
.timer__btns { display: flex; gap: var(--space-2); }
|
||||
.timer__btn { min-width: 64px; }
|
||||
.timer--work .timer__time { color: var(--work); }
|
||||
.timer--work .timer__bar::after { background: var(--work); }
|
||||
.timer--low .timer__time { color: var(--warn); }
|
||||
.timer--zero .timer__time { color: var(--primary); }
|
||||
.timer--zero .timer__bar::after { background: var(--primary); }
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Barlow Condensed, SIL Open Font License 1.1 (app/fonts/OFL.txt). Auto-hébergée
|
||||
(ADR 0007), sous-ensemble latin, depuis le dépôt google/fonts. */
|
||||
@font-face {
|
||||
font-family: "Barlow Condensed";
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url("../fonts/barlow-condensed-medium.woff2") format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Barlow Condensed";
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url("../fonts/barlow-condensed-semibold.woff2") format("woff2");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Barlow Condensed";
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: url("../fonts/barlow-condensed-bold.woff2") format("woff2");
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
/* Composants de la séance guidée : exercice, superset, séries, ressenti. */
|
||||
|
||||
.exercises { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
|
||||
|
||||
/* ---- Exercice (details/summary natif, accessible sans script) ---------- */
|
||||
.exercise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
|
||||
.exercise[open] { border-color: var(--line-strong); }
|
||||
.exercise__head {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
min-height: 64px; padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
.exercise__head::-webkit-details-marker { display: none; }
|
||||
/* Piège d'Atelier : combinateur enfant, et pas d'overflow:hidden sur la carte,
|
||||
sinon l'en-tête collant ne colle plus. */
|
||||
.exercise[open] > .exercise__head {
|
||||
position: sticky; top: 0; z-index: 5; background: var(--surface);
|
||||
border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
|
||||
}
|
||||
.exercise[open] > .exercise__head .chevron { transform: rotate(45deg); }
|
||||
.exercise__name { flex: 1; min-width: 0; display: grid; }
|
||||
.exercise__name strong { font-size: var(--fs-md); font-weight: 600; line-height: 1.25; }
|
||||
.exercise__sub { color: var(--text-muted); font-size: var(--fs-xs); }
|
||||
.exercise__count { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--text-muted); }
|
||||
.exercise__count--done { color: var(--primary); }
|
||||
.exercise__body { padding: var(--space-3) var(--space-4) var(--space-4); }
|
||||
|
||||
.mini-label { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: 0.14em; font-size: var(--fs-xs); color: var(--text-muted); margin: var(--space-4) 0 var(--space-2); }
|
||||
.cues li, .mistakes li { position: relative; padding-left: 20px; margin-bottom: var(--space-2); font-size: var(--fs-sm); }
|
||||
.cues li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
|
||||
.mistakes { border-left: 3px solid var(--danger); padding-left: var(--space-1); }
|
||||
.mistakes li { color: var(--text-muted); padding-left: var(--space-3); }
|
||||
.tutorial { margin-top: var(--space-2); }
|
||||
|
||||
.objective { display: flex; align-items: baseline; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
|
||||
.objective__value { font-size: var(--fs-xl); line-height: 1; }
|
||||
.objective__rest { margin-left: auto; font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .1em; font-size: var(--fs-sm); color: var(--text-muted); }
|
||||
|
||||
/* ---- Zone de saisie ----------------------------------------------------- */
|
||||
.work { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
|
||||
.work__fields { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: center; }
|
||||
.set-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
|
||||
.set-btn {
|
||||
position: relative; width: 52px; height: 52px; border-radius: var(--radius);
|
||||
background: transparent; border: 1px solid var(--line-strong); color: var(--text);
|
||||
font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg);
|
||||
}
|
||||
.set-btn[aria-expanded="true"] { outline: 3px solid var(--text); outline-offset: 1px; }
|
||||
.set-btn--done { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
|
||||
/* Pastille du ressenti : la couleur double le texte (aria-label), jamais seule. */
|
||||
.set-btn--done::after {
|
||||
content: ""; position: absolute; right: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
|
||||
border: 2px solid var(--on-primary); background: var(--dot, transparent);
|
||||
}
|
||||
.set-btn[data-effort="easy"] { --dot: var(--effort-easy); }
|
||||
.set-btn[data-effort="ok"] { --dot: var(--effort-ok); }
|
||||
.set-btn[data-effort="hard"] { --dot: var(--effort-hard); }
|
||||
.set-btn[data-effort="failure"] { --dot: var(--effort-failure); }
|
||||
|
||||
.set-panel { background: var(--surface-sunk); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--space-3); display: grid; gap: var(--space-3); }
|
||||
.set-panel__title, .set-panel__ask { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .12em; font-size: var(--fs-sm); color: var(--text-muted); }
|
||||
|
||||
.stepper { display: flex; align-items: center; gap: var(--space-3); }
|
||||
.stepper__btn { width: 56px; height: 56px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); font-size: 1.75rem; line-height: 1; }
|
||||
.stepper__value { min-width: 2.2ch; text-align: center; font-size: 2.5rem; line-height: 1; }
|
||||
.stepper__unit { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .1em; font-size: var(--fs-sm); color: var(--text-muted); }
|
||||
|
||||
.effort-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
|
||||
.effort {
|
||||
display: grid; gap: 2px; text-align: left; min-height: 64px; padding: var(--space-2) var(--space-3);
|
||||
background: var(--surface); border: 1px solid var(--line-strong); border-left: 6px solid var(--c); border-radius: var(--radius); color: var(--text);
|
||||
}
|
||||
.effort[data-effort="easy"] { --c: var(--effort-easy); }
|
||||
.effort[data-effort="ok"] { --c: var(--effort-ok); }
|
||||
.effort[data-effort="hard"] { --c: var(--effort-hard); }
|
||||
.effort[data-effort="failure"] { --c: var(--effort-failure); }
|
||||
.effort[aria-pressed="true"] { border-color: var(--c); background: var(--surface-2); }
|
||||
.effort__label { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; font-size: var(--fs-lg); color: var(--c); }
|
||||
.effort__hint { font-size: var(--fs-xs); color: var(--text-muted); }
|
||||
|
||||
.tracking { display: grid; gap: 0; margin-top: var(--space-3); padding-top: var(--space-1); border-top: 1px solid var(--line); }
|
||||
|
||||
/* ---- Superset ----------------------------------------------------------- */
|
||||
.superset { border: 1px solid var(--work); border-radius: var(--radius); padding: var(--space-2); display: grid; gap: var(--space-2); }
|
||||
.superset__head { padding: var(--space-2); }
|
||||
.superset__text { color: var(--text-muted); font-size: var(--fs-xs); margin-top: var(--space-1); }
|
||||
.superset .exercise { background: var(--surface); }
|
||||
|
||||
/* ---- Échauffement ------------------------------------------------------- */
|
||||
.exercise--warmup { border-color: var(--primary); }
|
||||
.steps { display: grid; }
|
||||
.step { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
|
||||
.step:first-child { border-top: 0; }
|
||||
.step__text { flex: 1; min-width: 0; display: grid; }
|
||||
.step__text strong { font-size: var(--fs-sm); font-weight: 600; }
|
||||
.step__text span { color: var(--text-muted); font-size: var(--fs-xs); }
|
||||
.tick {
|
||||
width: 44px; height: 44px; flex: none; border-radius: var(--radius); background: transparent;
|
||||
border: 1px solid var(--line-strong); position: relative;
|
||||
}
|
||||
.tick[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); }
|
||||
.tick[aria-pressed="true"]::after {
|
||||
content: ""; position: absolute; left: 15px; top: 9px; width: 10px; height: 18px;
|
||||
border-right: 3px solid var(--on-primary); border-bottom: 3px solid var(--on-primary); transform: rotate(45deg);
|
||||
}
|
||||
.step__go { flex: none; }
|
||||
@@ -0,0 +1,87 @@
|
||||
/* Jetons de design (docs/design.md). Toute couleur de l'interface passe par
|
||||
eux ; les ratios de contraste y sont notés. Thème sombre par défaut (« fonte et
|
||||
craie »), thème clair selon la préférence du système. */
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
|
||||
/* Surfaces */
|
||||
--bg: #14171A; /* iron */
|
||||
--surface: #1E2328; /* cartes */
|
||||
--surface-2: #272D33; /* champs, boutons secondaires */
|
||||
--surface-sunk: #0E1113; /* zones en creux */
|
||||
|
||||
/* Texte : AA sur toutes les surfaces */
|
||||
--text: #EDEAE3; /* chalk : 15,0 bg, 13,2 surface, 11,6 surface-2 */
|
||||
--text-muted: #A3AAB1; /* 7,7 bg, 6,7 surface, 5,9 surface-2 */
|
||||
|
||||
/* Traits */
|
||||
--line: #333A41; /* séparateurs décoratifs */
|
||||
--line-strong: #6B737B; /* bord des contrôles : 3,7 bg, 3,3 surface (≥ 3:1) */
|
||||
|
||||
/* Rôles */
|
||||
--primary: #3FA06A; /* action principale, séries faites */
|
||||
--on-primary: #0E1113; /* 5,8 sur primary */
|
||||
--warn: #E3B505; /* note du coach : 8,2 surface */
|
||||
--danger: #E0787C; /* 5,4 surface, 6,1 bg */
|
||||
--work: #7FB6CB; /* chrono de série : 7,1 surface */
|
||||
--focus: #7FB6CB;
|
||||
|
||||
/* Ressenti */
|
||||
--effort-easy: #3FA06A; /* 4,9 surface */
|
||||
--effort-ok: #E3B505; /* 8,2 surface */
|
||||
--effort-hard: #D9762B; /* 5,0 surface */
|
||||
--effort-failure: #EF6B70;/* 5,1 surface */
|
||||
|
||||
/* Couleur de la séance, posée par le programme (setAccent) */
|
||||
--accent: #8A9199;
|
||||
--accent-ink: #0E1113;
|
||||
|
||||
/* Typographie */
|
||||
--font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
|
||||
--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
--fs-xs: 0.8125rem; /* 13 px */
|
||||
--fs-sm: 0.875rem; /* 14 px */
|
||||
--fs-md: 1rem; /* 16 px */
|
||||
--fs-lg: 1.25rem;
|
||||
--fs-xl: 1.75rem;
|
||||
--fs-2xl: 2.25rem;
|
||||
--fs-3xl: 2.75rem;
|
||||
|
||||
/* Espaces, rayons, tailles */
|
||||
--space-1: 4px;
|
||||
--space-2: 8px;
|
||||
--space-3: 12px;
|
||||
--space-4: 16px;
|
||||
--space-5: 24px;
|
||||
--space-6: 32px;
|
||||
--radius: 6px;
|
||||
--radius-sm: 4px;
|
||||
--tap: 48px; /* cible tactile minimale (≥ 44 px) */
|
||||
--gutter: 16px;
|
||||
--max: 560px;
|
||||
--action-bar-h: 80px;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #F3F1EC;
|
||||
--surface: #FFFFFF;
|
||||
--surface-2: #E8E5DE;
|
||||
--surface-sunk: #ECE9E2;
|
||||
--text: #14171A; /* 15,9 bg, 18,0 surface, 14,3 surface-2 */
|
||||
--text-muted: #555D65; /* 5,9 bg, 6,7 surface, 5,3 surface-2 */
|
||||
--line: #D6D2C9;
|
||||
--line-strong: #8A857B; /* 3,3 bg, 3,7 surface */
|
||||
--primary: #2B7A4B;
|
||||
--on-primary: #FFFFFF; /* 5,3 */
|
||||
--warn: #806200; /* 5,0 bg, 5,6 surface */
|
||||
--danger: #B3262C; /* 6,5 surface */
|
||||
--work: #2E6E8A; /* 5,7 surface */
|
||||
--focus: #2E6E8A;
|
||||
--effort-easy: #2B7A4B;
|
||||
--effort-ok: #806200;
|
||||
--effort-hard: #A9531A;
|
||||
--effort-failure: #B3262C;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user