/* ============ Application client (mobile-first) ============ */
html, body { height: 100%; }
body.app-body { background: var(--bg-2); overscroll-behavior-y: none; }
.shell { position: relative; max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; }
@media (min-width: 520px) { .shell { border-left: 1px solid var(--border-soft); border-right: 1px solid var(--border-soft); } }

.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 16px 8px; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); min-height: 52px; }
.topbar .t { flex: 1; min-width: 0; font-weight: 600; font-size: 17px; text-align: center; opacity: 0; transition: opacity .2s; }
.topbar.scrolled .t { opacity: 1; }
.topbar.scrolled { border-bottom: 1px solid var(--border-soft); }
.topbar .side { display: flex; gap: 2px; min-width: 72px; }
.topbar .side.r { justify-content: flex-end; }
.icon-badge { position: relative; }
.icon-badge .n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

.view { flex: 1; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); animation: rise .3s var(--ease); }
.view.no-tab { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.page-title { padding: 4px 0 18px; }
.page-title .eyebrow-sm { margin-bottom: 4px; }
.page-title h1 { font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }

.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--border-soft); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--text-3); font-size: 10px; font-weight: 600; text-decoration: none !important; letter-spacing: 0; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--link); }
.tabbar a .n { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; }

.sec { margin-top: 26px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sec-h h2 { font-size: 21px; letter-spacing: -0.015em; }
.sec-h a, .sec-h button { font-size: 15px; color: var(--link); }

.acard { background: var(--surface); border-radius: 22px; padding: 16px; }
.acard + .acard { margin-top: 10px; }
.acard.hero-card { padding: 20px; }
.acard.tint-blue { background: var(--tint-blue); } .acard.tint-orange { background: var(--tint-orange); }
.acard.tint-violet { background: var(--tint-violet); } .acard.tint-green { background: var(--tint-green); } .acard.tint-teal { background: var(--tint-teal); }
.acard.click { cursor: pointer; transition: transform .15s; } .acard.click:active { transform: scale(.985); }

.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wday { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 14px; font-size: 12px; color: var(--text-2); cursor: pointer; }
.wday b { font-size: 16px; color: var(--text); font-weight: 600; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.wday.today b { background: var(--blue); color: #fff; }
.wday .st { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.wday .st.done { background: var(--green); } .wday .st.miss { background: var(--red); } .wday .st.plan { background: var(--surface-3); }
.wday.sel { background: var(--surface); }

.mini-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mtile { background: var(--surface); border-radius: 18px; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mtile .k { font-size: 12px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.mtile .k svg { width: 14px; height: 14px; }
.mtile .v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mtile .v small { font-size: 12px; font-weight: 500; color: var(--text-2); }

/* Exercices (séance) */
.ex-card { background: var(--surface); border-radius: 22px; padding: 16px; transition: opacity .2s; }
.ex-card + .ex-card { margin-top: 10px; }
.ex-card.done { opacity: .62; }
.ex-head { display: flex; gap: 12px; align-items: flex-start; }
.ex-num { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; color: var(--text-2); }
.ex-name { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ex-note { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--tint-orange); color: var(--text); font-size: 13px; display: flex; gap: 8px; }
.ex-note svg { width: 16px; height: 16px; color: var(--orange); flex: none; margin-top: 1px; }
.sets { width: 100%; margin-top: 12px; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.sets th { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; text-align: center; padding: 0 4px; }
.sets td { text-align: center; padding: 0 3px; }
.sets td:first-child { font-weight: 700; color: var(--text-2); width: 28px; }
.sets .prev { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.sets input { width: 100%; max-width: 74px; min-height: 38px; text-align: center; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--bg); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
[data-theme="light"] .sets input { background: #fff; border-color: var(--border); }
.sets input:focus { outline: none; border-color: var(--link); }
.sets tr.ok input { background: var(--tint-green); border-color: transparent; }

.sticky-cta { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 440px; z-index: 70; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border-soft); }

.rest-timer { position: fixed; right: 16px; top: calc(60px + env(safe-area-inset-top)); z-index: 80; height: 44px; padding: 0 6px 0 6px; border-radius: 22px; background: color-mix(in srgb, var(--text) 88%, transparent); color: var(--bg); display: flex; align-items: center; gap: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: rise .3s var(--ease); }
.rest-timer .rt-ring { width: 32px; height: 32px; transform: rotate(-90deg); }
.rest-timer .rt-ring circle { fill: none; stroke-width: 3.5; }
.rest-timer .rt-ring .bg { stroke: color-mix(in srgb, var(--bg) 25%, transparent); }
.rest-timer .rt-ring .fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.rest-timer .tm { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 38px; }
.rest-timer button { border: 0; height: 30px; min-width: 30px; padding: 0 8px; border-radius: 15px; background: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; display: grid; place-items: center; }
.rest-timer button svg { width: 14px; height: 14px; }

/* Repas */
.meal { background: var(--surface); border-radius: 22px; padding: 16px; }
.meal + .meal { margin-top: 10px; }
.meal.eaten .meal-items { opacity: .55; }
.meal-items { margin-top: 10px; display: grid; gap: 6px; }
.meal-items .it { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.meal-items .it span:last-child { color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.alt { margin-top: 10px; font-size: 13px; color: var(--text-2); display: flex; gap: 6px; }
.alt svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.water { display: flex; gap: 6px; flex-wrap: wrap; }
.water button { width: 34px; height: 42px; border-radius: 10px; border: 2px solid var(--surface-3); display: grid; place-items: center; color: var(--text-3); transition: all .2s; }
.water button.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.water button svg { width: 16px; height: 16px; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.chat .day { align-self: center; font-size: 12px; color: var(--text-3); font-weight: 600; margin: 12px 0 4px; }
.bubble { max-width: 80%; padding: 9px 13px; border-radius: 20px; font-size: 15px; line-height: 1.38; word-wrap: break-word; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.bubble img { border-radius: 14px; margin: -3px -7px 4px; max-width: calc(100% + 14px); }
.bubble .tm { display: block; font-size: 10px; opacity: .65; margin-top: 3px; text-align: right; }
.composer { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(64px + env(safe-area-inset-bottom)); width: 100%; max-width: 440px; z-index: 55; padding: 8px 12px; background: var(--nav-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border-soft); }
.composer .row { gap: 8px; }
.composer textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 9px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--input-bg); font-size: 16px; line-height: 1.35; }
.composer textarea:focus { outline: none; border-color: var(--link); }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }

/* Calendrier */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal .h { font-size: 11px; font-weight: 600; color: var(--text-3); padding: 6px 0; }
.cal .d { padding: 6px 0 8px; border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cal .d.out { color: var(--text-3); opacity: .5; }
.cal .d.today span:first-child { background: var(--blue); color: #fff; }
.cal .d span:first-child { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.cal .d.sel { background: var(--surface); }
.cal .dots { display: flex; gap: 3px; height: 5px; }
.cal .dots i { width: 5px; height: 5px; border-radius: 50%; }
.ev { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); align-items: center; }
.ev + .ev { margin-top: 8px; }
.ev .bar-v { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.slot { padding: 10px; border-radius: var(--r-sm); border: 1px solid var(--border); font-weight: 600; font-size: 15px; text-align: center; }
.slot.on { border-color: var(--link); background: var(--tint-blue); color: var(--link); }
.slot[disabled] { opacity: .35; text-decoration: line-through; }

/* Profil */
.set-list { background: var(--surface); border-radius: 22px; padding: 0 16px; }
.set-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); color: var(--text); text-decoration: none !important; width: 100%; text-align: left; font-size: 16px; }
.set-item:last-child { border-bottom: 0; }
.set-item .si { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.set-item .si svg { width: 17px; height: 17px; }
.set-item .chev { color: var(--text-3); width: 18px; height: 18px; }

.pending-hero { text-align: center; padding: 28px 20px; }
.pending-hero .ico { width: 72px; height: 72px; border-radius: 50%; background: var(--tint-violet); color: var(--violet); display: inline-grid; place-items: center; }
.pending-hero .ico svg { width: 34px; height: 34px; }
.timeline { display: grid; gap: 0; margin-top: 8px; }
.tl { display: flex; gap: 12px; padding: 10px 0; align-items: center; }
.tl .c { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-2); }
.tl .c svg { width: 14px; height: 14px; stroke-width: 3; }
.tl.ok .c { background: var(--green); color: #fff; }
.tl.now .c { background: var(--violet); color: #fff; }

.emoji-row { display: flex; justify-content: space-between; gap: 6px; }
.emoji-row button { flex: 1; font-size: 26px; padding: 8px 0; border-radius: 14px; border: 2px solid transparent; background: var(--surface-2); transition: all .15s; filter: grayscale(.6); }
.emoji-row button.on { border-color: var(--link); background: var(--tint-blue); filter: none; transform: scale(1.04); }
.scale-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale-row button { padding: 10px 0; border-radius: var(--r-sm); background: var(--surface-2); font-weight: 600; }
.scale-row button.on { background: var(--blue); color: #fff; }
.pr-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--tint-yellow); color: #9a7a00; font-size: 12px; font-weight: 700; }
[data-theme="dark"] .pr-pill { color: var(--yellow); }
.desk-hint { display: none; }
@media (min-width: 900px) { .desk-hint { display: block; position: fixed; left: 24px; bottom: 24px; max-width: 260px; font-size: 13px; color: var(--text-2); } }
.sets input::placeholder { color: var(--text-3); font-weight: 500; }
.app-body .toast-wrap { bottom: calc(100px + env(safe-area-inset-bottom)); }

/* Lecteur de séance : un exercice à la fois */
.player-top { position: sticky; top: calc(52px + env(safe-area-inset-top)); z-index: 40; background: var(--bg); padding: 4px 0 12px; }
.steps-bar { display: flex; gap: 4px; margin-top: 8px; }
.steps-bar button { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); padding: 0; }
.steps-bar button.done { background: var(--green); }
.steps-bar button.cur { background: var(--text); }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fig-pair figure { margin: 0; }
.fig-pair figcaption { font-size: 12px; color: var(--text-2); text-align: center; margin-top: 6px; font-weight: 500; }
.player-head { margin-top: 18px; }
.player-name { font-size: 28px; line-height: 1.12; letter-spacing: -0.02em; margin: 4px 0 10px; }
.howto { margin-top: 12px; background: var(--surface); border-radius: 18px; padding: 14px 16px; }
.howto summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary svg { width: 18px; height: 18px; color: var(--link); }
.howto p { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.howto .link-arrow { margin-top: 10px; }
.ex-thumb { flex: none; width: 64px; border-radius: 10px; overflow: hidden; display: block; }
.ex-thumb svg.fig, .ex-thumb img { border-radius: 10px; }
.ex-row { gap: 14px; }
.week-dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.week-dots span { height: 6px; border-radius: 6px; background: var(--surface-3); }
.week-dots span.past { background: var(--text-3); }
.week-dots span.now { background: var(--blue); }
.big-ico { width: 34px; height: 34px; color: var(--text-3); }
.sticky-cta .btn-icon.btn-lg { width: 50px; height: 50px; min-height: 50px; }

/* ---------- Séances : mois (4 semaines + bonus), cartes avec progression ---------- */
.month-bar { display: flex; gap: 6px; margin-top: 18px; }
.mb-seg { flex: 7; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mb-seg.bonus { flex: 2.4; }
.mb-track { position: relative; display: block; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.mb-seg.now .mb-track { box-shadow: 0 0 0 2px var(--text) inset; }
.mb-fill { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 8px; transition: width .4s; }
.mb-lbl { font-size: 11px; font-weight: 600; color: var(--text-3); text-align: center; letter-spacing: .02em; }
.mb-seg.now .mb-lbl { color: var(--text); }
.mb-seg.bonus .mb-track { background: repeating-linear-gradient(135deg, var(--surface-3) 0 4px, transparent 4px 7px); }
.mb-seg.locked .mb-lbl { opacity: .55; }
.rest-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); background: var(--tint-teal); padding: 9px 12px; border-radius: 12px; }
.rest-note svg { width: 16px; height: 16px; color: var(--teal); flex: none; }
.seg button { white-space: nowrap; }
.seg .seg-lock { display: inline-block; width: 12px; height: 12px; margin-right: 3px; vertical-align: -1px; opacity: .6; }

.scard { display: block; position: relative; background: var(--surface); border-radius: 20px; padding: 14px 16px 16px; color: inherit; text-decoration: none; transition: transform .15s; }
a.scard:active { transform: scale(.985); }
.scard .sc-day { width: 44px; height: 48px; border-radius: 12px; background: var(--surface-2, var(--bg)); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.scard .sc-day span { font-size: 10px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; }
.scard .sc-day b { font-size: 19px; font-weight: 600; line-height: 1.1; }
.scard .sc-name { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.scard .sc-pct { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.scard .sc-lock { width: 18px; height: 18px; color: var(--text-3); }
.scard .sc-bar { height: 6px; border-radius: 6px; background: var(--surface-3); margin-top: 12px; overflow: hidden; }
.scard .sc-bar span { display: block; height: 100%; background: var(--green); border-radius: 6px; transition: width .4s; }
.scard.done .sc-day { background: var(--green); }
.scard.done .sc-day span, .scard.done .sc-day b { color: #fff; }
.scard.locked { opacity: .5; cursor: not-allowed; }
.scard.locked .sc-bar { display: none; }
.scard.late .sc-day { box-shadow: 0 0 0 2px var(--orange) inset; }
.scard .sc-bar.grey span { background: var(--text-3); }
.scard.partial .sc-day { box-shadow: 0 0 0 2px var(--orange) inset; }

/* Choix d'un repas (style segmenté Apple) */
.opt-chips { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0 2px; padding-bottom: 2px; scrollbar-width: none; }
.opt-chips::-webkit-scrollbar { display: none; }
.opt-chips button { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.opt-chips button small { font-size: 11px; font-weight: 500; color: var(--text-3); }
.opt-chips button.on { background: var(--text); color: var(--bg); }
.opt-chips button.on small { color: var(--bg); opacity: .7; }

/* Accueil : résumé de la semaine */
.wk7 { display: grid; gap: 4px; margin-top: 14px; }
.wk-d { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 10px; border-radius: 14px; color: inherit; text-decoration: none; }
.wk-d .l { font-size: 11px; color: var(--text-3); font-weight: 600; text-transform: capitalize; }
.wk-d b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-d .pill { width: 22px; height: 6px; border-radius: 6px; background: transparent; margin-top: 2px; }
.wk-d.done .pill { background: var(--green); }
.wk-d.todo .pill { background: var(--surface-3); }
.wk-d.late .pill { background: var(--orange); }
.wk-d.today { background: var(--surface-2); }
.wk-d.today b { color: var(--red); }
a.wk-d:active { transform: scale(.95); }
.wk-legend { display: flex; gap: 14px; justify-content: center; margin-top: 10px; font-size: 11px; color: var(--text-3); }
.wk-legend span { display: inline-flex; align-items: center; gap: 5px; }
.wk-legend i { width: 12px; height: 5px; border-radius: 5px; display: inline-block; }
.wk-legend i.done { background: var(--green); } .wk-legend i.todo { background: var(--surface-3); } .wk-legend i.late { background: var(--orange); }

/* Résumé de séance : charges par série */
.set-list { margin: 10px 0 0 36px; display: grid; gap: 4px; }
.set-row { display: grid; grid-template-columns: 64px 1fr 60px 22px; align-items: center; font-size: 14px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); }
.set-row .k { color: var(--text-3); font-size: 12px; font-weight: 600; }
.set-row svg.ok { width: 16px; height: 16px; color: var(--green); }
.set-row.off { opacity: .5; }

/* Photos de progression */
.ph-timeline { margin-top: 18px; display: grid; gap: 18px; }
.ph-date { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ph-empty { display: grid; place-items: center; border: 1px dashed var(--border, var(--surface-3)); background: transparent; }
.cmp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; max-height: 55vh; overflow: auto; }
.cmp-d { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 16px; border: 2px solid transparent; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.cmp-d .th { width: 100%; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.cmp-d .th img { width: 100%; height: 100%; object-fit: cover; }
.cmp-d.on { border-color: var(--red); }
.cmp-d .n { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cmp-poses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cmp-pose { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 16px; border: 0; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.cmp-pose:disabled { opacity: .45; cursor: not-allowed; }
.cmp-pose .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%; }
.cmp-pose .pair img, .cmp-pose .pair i { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; background: var(--surface-2); display: block; }

.ph-slot { position: relative; display: grid; place-items: center; border: 1.5px dashed var(--surface-3); background: var(--surface); cursor: pointer; }

/* Nutrition : carte de repas claire */
.m-info { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); background: var(--surface); border-radius: 14px; padding: 10px 12px; margin: -2px 0 12px; }
.m-info svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--text-3); }
.meal2 { background: var(--surface); border-radius: 22px; padding: 16px; }
.meal2 + .meal2 { margin-top: 12px; }
.m-head { display: flex; align-items: flex-start; gap: 12px; }
.m-head h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.m-kcal { margin-top: 2px; font-size: 14px; color: var(--text-2); }
.m-kcal b { font-size: 22px; color: var(--text); letter-spacing: -.02em; }
.m-kcal span { display: block; font-size: 12px; color: var(--text-3); margin-top: 1px; }
.m-eat { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; border: 1.5px solid var(--surface-3); background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.m-eat svg { width: 15px; height: 15px; }
.m-eat.on { background: var(--green); border-color: var(--green); color: #fff; }
.m-label { margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.m-opts { margin-top: 6px; }
.m-list { margin-top: 12px; border-top: 1px solid var(--surface-2); }
.m-item { width: 100%; display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 10px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--surface-2); background: none; color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.m-item:last-child { border-bottom: 0; }
.m-item .m-name { min-width: 0; }
.m-item .m-name small { display: block; font-size: 11px; color: var(--orange); }
.m-item .m-qty { display: block; color: var(--text-3); font-size: 13px; margin-top: 1px; }
.m-item .m-k { color: var(--text-2); font-size: 13px; text-align: right; white-space: nowrap; }
.m-item .m-pen { width: 14px; height: 14px; color: var(--text-3); }
.m-edited { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--tint-blue); font-size: 13px; }
.m-edited.warn { background: var(--tint-orange); }
.m-edited svg { width: 15px; height: 15px; flex: none; }
.m-edited span { flex: 1; min-width: 160px; }
.m-edited button { border: 0; background: none; color: var(--red); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.m-alt { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.m-alt b { display: block; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.meal2.eaten .m-head h3::after { content: ''; }
.m-auto { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.m-auto svg { width: 13px; height: 13px; flex: none; }
.m-item .m-k small { display: block; font-size: 11px; font-weight: 600; margin-top: 1px; }
.m-item .m-k small.up { color: var(--orange); }
.m-item .m-k small.down { color: var(--green); }
.m-search { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
/* Cartes des muscles */
.scard .sc-map { width: 46px; flex: none; }
.scard.locked .sc-map { opacity: .6; }
.mm-big { width: 132px; flex: none; }
.mm-ex { width: 64px; flex: none; }
.mm-legend { display: flex; flex-wrap: wrap; gap: 4px; }
.mm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px 0 8px; vertical-align: 0; }
.mm-dot:first-child { margin-left: 0; }
.mm-dot.on { background: var(--red); } .mm-dot.sec { background: #e58a96; }

/* Illustration animée de l'exercice */
.fig-solo { margin: 0; }
.fig-solo .fig-anim { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--fig-bg); }
.fig-solo .fig-anim svg { display: block; width: 100%; height: 100%; }
.fig-solo figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-2); margin-top: 8px; font-weight: 500; }
.fig-solo figcaption svg { width: 14px; height: 14px; }
/* Rappel discret de la dernière séance */
.prev-line { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; color: var(--text-3); }
.prev-line svg { width: 12px; height: 12px; flex: none; }
.prev-line b { color: var(--text-2); font-weight: 650; }
.sets td { vertical-align: top; }
.sets td:first-child { padding-top: 10px; }
.sets .check { margin-top: 4px; }
.was { font-size: 11px; color: var(--text-3); margin-top: 3px; white-space: nowrap; }
.was .up { color: var(--green); font-weight: 650; } .was .dn { color: var(--orange); font-weight: 650; }
