/* Première version : navigation, bibliothèque, constructeur, suivi, mode séance */
.top { gap: 10px; flex-wrap: wrap; }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.demo-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--accent-ink); background: var(--warn); padding: 2px 8px; border-radius: 99px; }
select {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; max-width: 100%;
}
label select, label input[type=range] { display: block; width: 100%; margin-top: 6px; }
input[type=range] { accent-color: var(--accent); padding: 0; border: 0; background: transparent; }
.small { font-size: 13px; }
.grow { flex: 1 1 auto; min-width: 0; }
.wide { width: 100%; margin-bottom: 16px; }
.clickable { cursor: pointer; }
.clickable:hover { background: var(--surface-2); }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title-row h1, .title-row h2 { margin: 8px 0; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 14px; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-badge { margin-left: 6px; font-size: 12px; background: var(--danger); color: #fff; border-radius: 99px; padding: 0 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.stat strong { display: block; font-size: 24px; }
.stat span { color: var(--muted); font-size: 13px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--accent); }
.pill.danger { color: var(--danger); }
.alert-card { border-color: var(--danger-line); }
.quote { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 14px; }
.persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.persona { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); text-align: left; }
.persona:hover { border-color: var(--accent); }

/* Formulaires */
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; align-items: end; }
.grid-form .full, .grid-form .status { grid-column: 1 / -1; }
.grid-form .grow2 { grid-column: span 2; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); margin-bottom: 12px; }
label.check input { width: auto; margin: 0; accent-color: var(--accent); }
label.inline { display: flex; align-items: center; gap: 6px; margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
legend { color: var(--muted); font-size: 14px; padding: 0 4px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 10px; }
.checks label.check { margin-bottom: 6px; }
input.tiny { width: 64px; display: inline-block; margin: 0; padding: 7px 8px; }
input[type=search] { margin-bottom: 10px; }
button.icon { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; font-size: 15px; line-height: 1; }
button.icon.danger { color: var(--danger); }

/* Bibliothèque */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; }
.chip-btn { font-size: 13px; font-weight: 500; background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }
.chip-btn.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.ex-row { display: flex; align-items: center; gap: 12px; }
.muscle-map { display: block; width: 100%; max-width: 360px; margin: 8px auto; }
.muscle-map.small { width: 64px; flex: 0 0 64px; margin: 0; }
.muscle-map .body { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; }
.muscle-map .muscle { fill: var(--muscle-off); }
.muscle-map .muscle.on { fill: var(--accent); }
.muscle-map .map-label { fill: var(--muted); font-size: 11px; }
.muscle-map.small .map-label { display: none; }
.ex-sheet h3 { font-size: 15px; margin: 16px 0 4px; color: var(--muted); }
.cue { font-size: 15px; }

/* Constructeur */
.block-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.block-head h2 { margin: 0; flex: 1 1 auto; }
.item-list { list-style: none; margin: 0 0 10px; padding: 0; }
.item-editor { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--bg); }
.item-head, .item-extra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-extra input { margin: 0; }
.item-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 0 8px; margin-top: 10px; }
.item-fields label { font-size: 12px; margin-bottom: 8px; }
.item-fields input, .item-fields select { padding: 8px; margin-top: 4px; }
.idx { font-weight: 800; color: var(--accent); min-width: 26px; }
.ex-pick { flex: 1 1 auto; text-align: left; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.ex-pick.empty { color: var(--muted); font-weight: 500; }
.sticky-save { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sticky-save .status { margin: 0; }
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: var(--surface); width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 16px; }
.picker-list .row { padding: 8px 4px; }

/* Suivi coach */
.fb-list { list-style: none; margin: 0; padding: 0; }
.fb-item { padding: 12px 0; border-top: 1px solid var(--line); }
.fb-item:first-child { border-top: 0; }
.fb-head { display: flex; align-items: center; gap: 8px; }
.fb-values { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-weight: 600; }
.progress-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.progress-item h3 { font-size: 15px; margin: 0 0 6px; }
.progress-chart { width: 100%; height: auto; }
.progress-chart .axis { stroke: var(--line); }
.progress-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.progress-chart .dot { fill: var(--accent); }
.progress-chart .val { fill: var(--muted); font-size: 11px; }
.delta { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.delta.up { color: var(--accent); }

/* Coaché */
.sessions { list-style: none; margin: 0 0 20px; padding: 0; }
.session-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.session-card.locked { opacity: .55; }
.session-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress-bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.progress-bar .fill { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.step .ex-title { margin: 6px 0 0; }
.prescribed { display: flex; flex-direction: column; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.prescribed strong { font-size: 18px; }
.segmented { display: flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; margin: 6px 0 12px; }
.segmented button { flex: 1; background: transparent; color: var(--muted); font-weight: 600; padding: 9px 8px; }
.segmented button.active { background: var(--accent); color: var(--accent-ink); }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: 14px; }
.scale button { padding: 10px 0; background: var(--surface-2); color: var(--text); font-weight: 600; }
.scale button.active { background: var(--accent); color: var(--accent-ink); }
p.label { color: var(--muted); font-size: 14px; margin: 4px 0 6px; }
.pain { border: 1px solid var(--danger-line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.pain-value { float: right; color: var(--text); font-weight: 700; }
.rest { margin: 0 0 8px; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }

/* Double authentification */
.mfa-steps { padding-left: 20px; margin: 16px 0; }
.mfa-steps li { margin-bottom: 18px; }
.mfa-steps li::marker { color: var(--accent); font-weight: 800; }
.mfa-steps .qr { margin: 12px 0 6px; }
.mfa-steps code { display: inline-block; padding: 6px 8px; background: var(--surface-2); border-radius: 8px; margin: 6px 0; font-size: 15px; letter-spacing: .05em; }
input.otp { font-size: 22px; letter-spacing: .2em; text-align: center; max-width: 220px; }

/* Carte d'accès (mot de passe provisoire) */
.access-card { border-color: var(--accent); }
.big-code { font-size: clamp(19px, 5.6vw, 26px); font-weight: 800; letter-spacing: .02em; color: var(--accent); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 4px 0 8px; overflow-wrap: break-word; user-select: all; }
.send-step { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.send-step .actions { margin-top: 8px; }
.strong { font-weight: 700; }
.access-preview { white-space: pre-wrap; font: 13px/1.5 system-ui, sans-serif; background: var(--surface-2); border-radius: 10px; padding: 12px; color: var(--text); }

/* Administration */
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.offer { background: var(--surface-2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.offer h3 { margin: 0; font-size: 15px; }
.offer label { width: 100%; margin: 0; }
.pay-placeholder { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.pay-placeholder strong { display: block; margin-bottom: 4px; }
.access-text { font-size: 14px; margin-bottom: 10px; }
.btn-link { display: inline-block; padding: 11px 16px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.btn-link:hover { border-color: var(--accent); }
li.stack { border-top: 1px solid var(--line); }
li.stack:first-child { border-top: 0; }
li.stack > .row { border-top: 0; }

/* En-tête, réglages, thème */
.top-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.settings-btn { font-size: 18px; padding: 6px 10px; }
.status.ok { color: var(--ok); }
.theme-options { display: grid; gap: 8px; margin: 8px 0 16px; }
.theme-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); margin: 0; cursor: pointer; }
.theme-option input { width: auto; margin: 3px 0 0; accent-color: var(--accent); }
.theme-option span { display: flex; flex-direction: column; }
.theme-option:has(input:checked) { border-color: var(--accent); }

/* Dessins des mouvements */
.moves { display: flex; align-items: center; gap: 4px; margin: 10px 0 4px; }
.move-frame { flex: 1 1 0; min-width: 0; margin: 0; text-align: center; }
.move-frame svg { width: 100%; height: auto; max-width: 170px; display: block; margin: 0 auto; background: var(--surface-2); border-radius: 12px; }
.move-frame figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.move-arrow { color: var(--accent); font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.move-svg .fig { stroke: var(--figure); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.move-svg .fig.far { opacity: .38; }
.move-svg .head { fill: var(--figure); }
.move-svg .prop { stroke: var(--muted); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.move-svg .prop-fill { fill: var(--muted); }
.move-svg .weight { fill: var(--accent); }
.move-svg .ground { stroke: var(--line); stroke-width: 2; }
.move-svg .cable { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
.moves-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
@media (max-width: 480px) {
  .stats-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-form .grow2 { grid-column: 1 / -1; }
  h1 { font-size: 23px; }
  .top-actions select { max-width: 190px; }
}

/* ---------- Version 1.1 : hiérarchie visuelle (bleu = action, rouge = douleur, neutre = reste) ---------- */
.pill.cta { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -8px var(--accent); }
.pill.ok { color: var(--muted); }
.session-card.next { border: 2px solid var(--accent); box-shadow: 0 10px 28px -16px var(--accent); }
.done-list { list-style: none; margin: 0 0 20px; padding: 0; }
.done-list li { padding: 8px 2px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 14px; }
.alert-card { border-color: var(--danger-line); border-left: 4px solid var(--danger); background: linear-gradient(var(--danger-soft), var(--danger-soft)), var(--surface); }
.note-card { border-left: 4px solid var(--accent); }
.danger-text { color: var(--danger); }
.banner.info { border-left-color: var(--accent); }
.banner-btn { margin-left: 10px; }
.issue-banner { border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.issue-banner p { margin: 6px 0 0; }
.issue-banner.danger { background: var(--danger-soft); border: 1px solid var(--danger-line); border-left: 5px solid var(--danger); }
.issue-banner.danger strong { color: var(--danger); }
.issue-banner.note { background: var(--accent-soft); border-left: 5px solid var(--accent); }
.all-good { margin: 6px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-weight: 700; }
.flag-list { list-style: none; margin: 0; padding: 0; }
.flag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.flag:first-child { border-top: 0; }
.flag-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.flag.danger .flag-tag, .chip-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.flag.hard .flag-tag, .chip-hard { background: rgba(255, 176, 32, .14); color: var(--warn); }
.flag.easy .flag-tag, .chip-easy { background: var(--accent-soft); color: var(--accent); }
.flag.load .flag-tag, .chip-load { background: var(--accent); color: var(--accent-ink); }
.flag.warn .flag-tag, .chip-warn { background: rgba(255, 176, 32, .14); color: var(--warn); }
.chip-cta { background: var(--accent-soft); color: var(--accent); }
.chip-ok { color: var(--muted); }
.summary-chips { margin: 6px 0 0; }
.summary-chips .chip { font-weight: 700; }
.details-card summary { cursor: pointer; font-weight: 700; color: var(--text); }
.details-card[open] summary { margin-bottom: 12px; }
.history-tag { color: var(--accent); font-weight: 700; }
.session-row .ghost { flex: 0 0 auto; }

/* Fenêtre de fin de séance */
.feedback-sheet h2 { font-size: 20px; }
.choices { display: grid; gap: 10px; margin: 12px 0; }
.choice { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; background: var(--surface-2); color: var(--text); border: 2px solid var(--line); box-shadow: none; padding: 14px 16px; font-size: 16px; }
.choice:hover { background: var(--surface-2); border-color: var(--accent); }
.choice-icon { font-size: 24px; line-height: 1; }
.choice.active { border-color: var(--accent); background: var(--accent-soft); }
.choice.danger.active { border-color: var(--danger); background: var(--danger-soft); }
.choice.danger .choice-icon + span { font-weight: 800; }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-bottom: 12px; }
.zone { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; padding: 9px 6px; font-size: 14px; font-weight: 600; }
.zone:hover { background: var(--surface); border-color: var(--danger); }
.zone.active { background: var(--danger); border-color: var(--danger); color: #fff; }
.pain-box { border: 1px solid var(--danger-line); background: var(--danger-soft); border-radius: 12px; padding: 12px; margin-bottom: 12px; }

/* ---------- Version 1.2 : code couleur des exercices (identique coach et client) ----------
   Nom de l'exercice : gras, couleur du texte (le repère). Charge : bleu (le chiffre qu'on cherche).
   Séries × répétitions : gris foncé. Repos et notes : petit gris. */
.ex-name { font-weight: 800; color: var(--text); letter-spacing: -.005em; }
.rx { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.rx-sets { font-weight: 700; color: var(--rx-sets); font-variant-numeric: tabular-nums; }
.rx-load { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.rx-set { white-space: nowrap; }
.rx-set + .rx-set::before { content: "·"; color: var(--muted); margin-right: 8px; }
.rx-rest { font-size: 13px; color: var(--muted); }
.rx-note { font-size: 13px; color: var(--muted); font-style: italic; margin-top: 2px; }
.ex-line { display: flex; flex-direction: column; gap: 1px; }
.rx-line { margin-top: 2px; }
.prescribed .rx { font-size: 18px; margin-top: 2px; }
:root { --rx-sets: #c3cede; }
:root[data-theme="light"] { --rx-sets: #3b4658; }

/* Saisie série par série */
.sets-editor { margin: 10px 0; }
.set-row { display: grid; grid-template-columns: 74px 1fr 1fr 34px; gap: 8px; align-items: center; margin-bottom: 6px; }
.set-row input { margin: 0; padding: 9px 10px; text-align: center; font-weight: 700; }
.set-row input:nth-of-type(2) { color: var(--accent); }
.set-head { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.set-head span { text-align: center; }
.set-head span:first-child { text-align: left; }
.set-n { font-weight: 800; display: flex; flex-direction: column; line-height: 1.15; }
.set-planned { font-weight: 500; font-size: 11px; color: var(--muted); }
.add-set { margin-top: 4px; }
.item-body .item-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.note-label { margin-top: 4px; }

/* Fiche client */
.client-title { margin-bottom: 4px; }
.profile-mini { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.mini-note { flex-basis: 100%; }
.subtabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; }
.subtab { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: 14px; }
.subtab.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.list-title { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 8px; }
.session-list { list-style: none; margin: 0; padding: 0; }
.session-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.session-item.todo { border-left: 4px solid var(--accent); }
.session-item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: -4px -6px 4px; padding: 4px 6px; border-radius: 8px; }
.session-n { font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.compact-list { list-style: none; margin: 6px 0 8px; padding: 0; font-size: 14px; }
.compact-list li { padding: 3px 0; border-top: 1px dashed var(--line); }
.compact-list li:first-child { border-top: 0; }
.compact-list .ex-line { flex-direction: row; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.compact-list .ex-name { font-weight: 700; }
button.reuse { color: var(--accent); border-color: var(--accent); }
.new-session .actions { margin-top: 4px; }
.prog-list { list-style: none; margin: 0; padding: 0; }
.prog-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px 56px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.prog-row:first-child { border-top: 0; }
.prog-loads { white-space: nowrap; }
.sparkline { width: 84px; height: 26px; }
.sparkline .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.sparkline .dot { fill: var(--accent); }
.prog-pct { font-weight: 800; text-align: right; color: var(--muted); }
.prog-pct.up { color: var(--accent); }
.prog-pct.down { color: var(--warn); }
.fb-item.editable { border-radius: 10px; padding: 12px 8px; margin: 0 -8px; }
.edit-hint { color: var(--accent); font-weight: 800; }
.big-pick { width: 100%; font-size: 17px; padding: 12px 14px; }
.sheet-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.center-actions { justify-content: center; margin: 4px 0 16px; }
.terms-text { white-space: pre-wrap; font-size: 14px; line-height: 1.55; max-height: 55vh; overflow: auto; color: var(--text); }
.terms-check { align-items: flex-start; font-weight: 600; margin: 4px 0 14px; }
.terms-check input { margin-top: 4px; }
.terms-ok { color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.terms-edit { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.client-name { font-size: 16px; }

/* Client : dernière séance, récapitulatif */
.last-card { display: block; }
.two-buttons { margin-top: 10px; }
.two-buttons button { flex: 1 1 0; }
.diff-chip { margin-left: 8px; font-weight: 700; }
.done-list li { display: flex; justify-content: space-between; gap: 10px; }
.diff { font-weight: 700; color: var(--text); }
.recap-list { list-style: none; margin: 0; padding: 0; }
.recap-row { padding: 9px 0; border-top: 1px solid var(--line); }
.recap-row:first-child { border-top: 0; }
@media (max-width: 480px) {
  .prog-row { grid-template-columns: auto 84px minmax(0, 1fr); gap: 2px 12px; }
  .prog-row .ex-name { grid-column: 1 / -1; }
}
.ex-pick { box-shadow: none; }
.subtabs { gap: 5px; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtab { padding: 7px 10px; font-size: 13px; }

/* Version 1.3 : progression côté client */
.progress-link { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 16px; font-size: 16px; }
.progress-link { border-color: var(--accent); background: var(--accent-soft); }
.progress-link > span:first-child { color: var(--accent); font-weight: 800; }

/* ---------- Version 1.4 : charte Mona-Coach, informations en marine ---------- */
.rx-load, .prog-loads .rx-load { color: var(--data); }
.set-row input:nth-of-type(2) { color: var(--data); }
.prog-pct.up, .delta.up, .history-tag, .terms-ok, .edit-hint { color: var(--data); }
.sparkline .line, .progress-chart .line { stroke: var(--data); }
.sparkline .dot, .progress-chart .dot { fill: var(--data); }
.chip-load, .flag.load .flag-tag { background: var(--data); color: var(--surface); }
.chip-easy, .flag.easy .flag-tag, .chip-cta { background: var(--data-soft); color: var(--data); }
.all-good { background: var(--data-soft); }
.banner.info, .note-card { border-left-color: var(--data); }
.issue-banner.note { background: var(--data-soft); border-left-color: var(--data); }
.quote { border-left-color: var(--data); }
.progress-link { border-color: var(--data); background: var(--data-soft); }
.progress-link > span:first-child { color: var(--data); }
button.reuse { color: var(--data); border-color: var(--data); }
.session-item.todo { border-left-color: var(--accent); }
.subtab.active { background: var(--text); border-color: var(--text); color: var(--surface); }
.segmented button.active, .scale button.active, .chip-btn.active { background: var(--text); color: var(--surface); }
.equip-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.equip-chips::-webkit-scrollbar { display: none; }
.equip-chips .chip-btn { white-space: nowrap; }
.pill.info { background: var(--data); color: var(--surface); }
.chip-btn, .zone, .choice, .scale button, .segmented button { box-shadow: none; }
.mail-sent { background: var(--data-soft); border-left: 4px solid var(--data); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.mail-sent strong { color: var(--data); }
.mail-sent p { margin: 6px 0 0; }
.mail-preview summary { cursor: pointer; }

/* ---------- Version 1.5.1 : petits écrans (dès 320 px), tout reste visible sans glisser ---------- */
@media (max-width: 560px) {
  .tabs { flex-wrap: wrap; overflow: visible; gap: 0; }
  .tab { flex: 1 1 auto; text-align: center; padding: 10px 8px; font-size: 15px; }
  .subtabs { flex-wrap: wrap; overflow: visible; }
  .subtab { flex: 1 1 auto; text-align: center; }
  .equip-chips { flex-wrap: wrap; overflow: visible; }
  .top { padding: 10px 12px; }
  main { padding: 12px; }
  .card { padding: 14px; }
  .sheet-actions button { flex: 1 1 auto; }
}
@media (max-width: 360px) {
  .tab { font-size: 14px; padding: 9px 6px; }
  .logo { font-size: 17px; }
  .set-row { grid-template-columns: 58px 1fr 1fr 32px; gap: 6px; }
  .stats-4 .stat strong, .stat strong { font-size: 20px; }
}
@media (max-width: 360px) { .logo { font-size: 19px; } }

/* ---------- Version 1.6 : visite guidée du client ---------- */
.tour-sheet { max-width: 520px; padding: 18px 18px 22px; }
.tour-bar { margin: 0 0 12px; height: 5px; }
.tour-panel { display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.tour-step-n { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tour-emoji { font-size: 44px; line-height: 1.1; margin: 6px 0 2px; animation: tour-pop .45s ease-out; }
.tour-emoji.small { font-size: 26px; margin: 0; animation: none; }
.tour-title { font-size: 22px; margin: 0 0 12px; }
.tour-visual { background: var(--surface-2); border-radius: 16px; padding: 14px; margin: 0 0 12px; text-align: left; pointer-events: none; }
.tour-mock { display: flex; flex-direction: column; gap: 10px; }
.tour-mock .session-card { margin: 0; }
.tour-mock .moves { margin: 0; }
.tour-mock .prescribed { margin: 0; background: var(--surface); }
.tour-text { font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.tour-tip { font-size: 14px; color: var(--muted); background: var(--data-soft); border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; text-align: left; }
.tour-dots { display: flex; justify-content: center; gap: 8px; margin: 2px 0 14px; }
.tour-pip { width: 10px; height: 10px; padding: 0; border-radius: 99px; background: var(--line); box-shadow: none; }
.tour-pip.seen { background: var(--data); }
.tour-pip.active { width: 26px; background: var(--accent); }
.tour-nav { display: flex; justify-content: space-between; gap: 10px; }
.tour-nav .tour-next { flex: 1 1 auto; font-size: 17px; padding: 14px 18px; }
.tour-tap-wrap { position: relative; display: inline-block; }
.tap-hint { position: absolute; right: -6px; bottom: -22px; font-size: 26px; animation: tour-tap 1.4s ease-in-out infinite; }
.tour-highlight { border-radius: 10px; box-shadow: 0 0 0 2px var(--accent); position: relative; }
.tour-highlight .tap-hint { position: static; font-size: 20px; animation: tour-tap 1.4s ease-in-out infinite; }
.tour-input { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; }
.tour-load { color: var(--data); }
.tour-sets .set-row { margin-bottom: 6px; }
.tour-scale { margin: 0; }
.tour-dot { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 8px; background: var(--surface); font-weight: 700; font-size: 14px; }
.tour-dot.active { background: var(--text); color: var(--surface); animation: tour-pop .6s ease-out; }
.tour-scale-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.tour-choices { margin: 0; }
.tour-choices .choice { padding: 10px 12px; font-size: 14px; }
.tour-fake-btn { align-self: flex-start; font-size: 14px; font-weight: 600; border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; background: var(--surface); }
.tour-static .tour-static-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tour-static .tour-static-head h2 { margin: 0; }
.help-btn { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.session-guide { list-style: none; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--data-soft); display: grid; gap: 4px; font-size: 14px; }
.session-guide strong { color: var(--data); }
.session-guide-more { margin-top: 2px; }
.link-btn { background: none; border: 0; box-shadow: none; padding: 0; color: var(--data); text-decoration: underline; font-weight: 600; font-size: 14px; }
@keyframes tour-tap { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(.92); } }
@keyframes tour-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tap-hint, .tour-emoji, .tour-dot.active { animation: none; } }
@media (max-width: 380px) { .help-label { display: none; } .tour-title { font-size: 20px; } }
.help-short { display: none; }
@media (max-width: 380px) { .help-short { display: inline; } }

/* 1.7 « Séance fluide » : boutons − / + sur la charge et « Fait comme prévu » */
.with-stepper .set-row { grid-template-columns: 64px 78px 1fr 30px; }
.set-row .load-in { color: var(--data); min-width: 0; }
.load-stepper { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 4px; align-items: center; }
.load-stepper input { padding: 9px 2px; }
.step-btn { margin: 0; padding: 0; min-height: 40px; font-size: 20px; font-weight: 800; line-height: 1; border-radius: 10px; background: var(--surface-2); color: var(--data); border: 1px solid var(--line); box-shadow: none; }
.as-planned-row { margin: 4px 0 6px; }
.as-planned { width: 100%; font-weight: 700; }
.as-planned.is-same { opacity: .7; }
@media (max-width: 360px) {
  .with-stepper .set-row { grid-template-columns: 50px 62px 1fr 28px; gap: 4px; }
  .load-stepper { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 3px; }
}

/* 1.8 « Packs de séances » */
.pack-card { padding: 14px 16px; }
.pack-card h2.small { margin: 0 0 8px; letter-spacing: .04em; }
.pack-card .title-row { align-items: center; margin-bottom: 4px; }
.pack-sum { display: flex; gap: 14px; align-items: center; }
.pack-big { font-size: 40px; font-weight: 900; line-height: 1; min-width: 52px; text-align: center; color: var(--data); font-variant-numeric: tabular-nums; }
.pack-title { display: block; font-size: 17px; margin-bottom: 2px; }
.pack-sum.tone-warn .pack-big, .pack-sum.tone-empty .pack-big { color: var(--danger); }
.pack-card:has(.tone-warn), .pack-card:has(.tone-empty) { border-left: 4px solid var(--danger); }
.pack-history { margin-top: 10px; }
.pack-history summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.small-btn { padding: 6px 10px; font-size: 13px; }
.pack-alerts { border-left: 4px solid var(--danger); }
@media (max-width: 360px) { .pack-big { font-size: 32px; min-width: 40px; } }
.pack-card .small-btn { white-space: nowrap; }
@media (max-width: 360px) { .pack-card .title-row { gap: 6px; } .pack-card h2.small { font-size: 11px; } }
/* 1.8 : bilan écrit, séance test */
.pack-actions { margin-top: 10px; flex-wrap: wrap; }
.end-hint { margin: 8px 0 0; }
.review-text { white-space: pre-wrap; margin: 4px 0 0; line-height: 1.5; }
.review-card { border-left: 4px solid var(--data); }
.review-old { margin-top: 10px; }
.test-chip { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--data); white-space: nowrap; }
