@font-face { font-family: 'DM Sans'; src: url("/static/fonts/dm-sans.09d1eaa1672d.ttf") format('truetype'); font-display: swap; font-weight: 100 900; }
@font-face { font-family: 'Archivo'; src: url("/static/fonts/archivo-variable.c5a01ed02269.woff2") format('woff2'); font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; }
@font-face { font-family: 'JetBrains Mono'; src: url("/static/fonts/jetbrains-mono-400.caf0dfde4e44.woff2") format('woff2'); font-display: swap; font-weight: 400; }
@font-face { font-family: 'JetBrains Mono'; src: url("/static/fonts/jetbrains-mono-600.075ec35bc15b.woff2") format('woff2'); font-display: swap; font-weight: 600; }
/* Jetons FiTraining : bleu nuit, ivoire et or lumineux. Sombre par défaut, clair au choix ou selon le système (« Auto »). */
:root { --radius: 24px; --display: "Archivo", "DM Sans", Arial, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace; color-scheme: dark; --brand: #070e1c; --brand-hover: #0f1a31; --brand-active: #15244a; --brand-line: #18264a; --brand-line-strong: #2b3d66; --on-brand: #eef2fa; --on-brand-muted: #8f9dba; --brand-text: #dbe6ff; --primary-bg: #f4f1e8; --primary-ink: #08101f; --primary-hover: #ffffff; --bg: #050a15; --surface: #0c1527; --surface-2: #131f38; --ink: #eef2fa; --muted: #95a3bf; --line: #1a2745; --line-strong: #2a3a5f; --gold: #e6bf6c; --gold-ink: #f1d18e; --accent: #7fb0ff; --success: #8ad8ad; --success-bg: #10281f; --success-line: #1f4a36; --danger: #ff9e92; --danger-bg: #32161a; --danger-line: #5a262c; --warn-bg: #241f12; --warn-line: #4a3e1d; --glow: 0 0 0 1px rgba(230, 191, 108, .55), 0 0 28px rgba(230, 191, 108, .28); --shadow: 0 18px 40px rgba(0, 0, 0, .35); }
:root[data-theme="light"] { color-scheme: light; --brand: #0b1a33; --brand-hover: #13264a; --brand-active: #1a3260; --brand-line: #22365e; --brand-line-strong: #3d5482; --on-brand: #f6f4ee; --on-brand-muted: #a9b6cf; --brand-text: #0b1a33; --primary-bg: #0b1a33; --primary-ink: #fbf9f3; --primary-hover: #17305c; --bg: #f3f1ea; --surface: #fffdf8; --surface-2: #ebeae3; --ink: #0d1a2d; --muted: #556275; --line: #dfdfd6; --line-strong: #cbcdc4; --gold: #b38b3c; --gold-ink: #77591c; --accent: #1f4f99; --success: #23613f; --success-bg: #e5f0e8; --success-line: #c5dccb; --danger: #8f3a30; --danger-bg: #f8ebe5; --danger-line: #e7cbc1; --warn-bg: #f2edd9; --warn-line: #dfd5af; --glow: 0 0 0 1px rgba(179, 139, 60, .5), 0 0 22px rgba(179, 139, 60, .18); --shadow: 0 14px 32px rgba(11, 26, 51, .08); }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] { color-scheme: light; --brand: #0b1a33; --brand-hover: #13264a; --brand-active: #1a3260; --brand-line: #22365e; --brand-line-strong: #3d5482; --on-brand: #f6f4ee; --on-brand-muted: #a9b6cf; --brand-text: #0b1a33; --primary-bg: #0b1a33; --primary-ink: #fbf9f3; --primary-hover: #17305c; --bg: #f3f1ea; --surface: #fffdf8; --surface-2: #ebeae3; --ink: #0d1a2d; --muted: #556275; --line: #dfdfd6; --line-strong: #cbcdc4; --gold: #b38b3c; --gold-ink: #77591c; --accent: #1f4f99; --success: #23613f; --success-bg: #e5f0e8; --success-line: #c5dccb; --danger: #8f3a30; --danger-bg: #f8ebe5; --danger-line: #e7cbc1; --warn-bg: #f2edd9; --warn-line: #dfd5af; --glow: 0 0 0 1px rgba(179, 139, 60, .5), 0 0 22px rgba(179, 139, 60, .18); --shadow: 0 14px 32px rgba(11, 26, 51, .08); } }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', Arial, sans-serif; font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; font-weight: 600; letter-spacing: -1.6px; margin-bottom: 12px; overflow-wrap: anywhere; }
h2 { font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: -.35px; margin-bottom: 20px; }
h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
p:last-child { margin-bottom: 0; }
.muted, .help-text { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 2px; font-weight: 700; margin-bottom: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 20px; background: var(--surface); padding: 8px 16px; z-index: 100; }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 246px; background: var(--brand); color: var(--on-brand); display: flex; flex-direction: column; padding: 38px 22px 24px; }
.brand { display: flex; gap: 13px; align-items: center; font-size: 23px; line-height: 1; font-weight: 600; letter-spacing: -.8px; }
.brand small { display: block; color: var(--gold); font-size: 9px; letter-spacing: 4.2px; margin-top: 8px; font-weight: 500; }
.brand-mark { width: 43px; height: 43px; border: 1px solid var(--brand-line-strong); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 25px; font-weight: 700; letter-spacing: -4px; padding-right: 4px; }
.brand-mark span { color: var(--gold); }
.workspace-label { margin: 50px 12px 18px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; color: var(--on-brand-muted); overflow-wrap: anywhere; }
.main-nav { display: grid; gap: 8px; }
.main-nav a { display: flex; gap: 13px; align-items: center; padding: 13px 15px; border-radius: 9px; color: var(--on-brand-muted); font-size: 13px; }
.main-nav a:hover { background: var(--brand-hover); color: var(--on-brand); }
.main-nav a[aria-current] { color: var(--on-brand); background: var(--brand-active); box-shadow: inset 3px 0 var(--gold); }
.nav-symbol { font-size: 21px; width: 22px; line-height: 1; color: var(--gold); }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.account { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--brand-line); padding: 22px 2px 18px; }
.account-avatar { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; background: var(--gold); color: var(--brand-text); border-radius: 50%; font-size: 13px; font-weight: 600; }
.account strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.account small { display: block; font-size: 10px; color: var(--on-brand-muted); margin-top: 1px; }
.account-link { background: none; border: 0; padding: 7px 3px; display: flex; align-items: center; justify-content: space-between; width: 100%; color: var(--on-brand-muted); font-size: 11px; text-align: left; }
.account-link:hover { color: var(--on-brand); }
.main-content { margin-left: 246px; padding: 30px 48px 24px; max-width: 1800px; min-height: 100vh; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); padding: 0 0 22px; margin-bottom: 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page-heading p:last-child { margin-bottom: 0; font-size: 14px; }
.page-heading .button { flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 19px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; line-height: 1.4; font-weight: 600; transition: background .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.primary { color: var(--primary-ink); background: var(--primary-bg); border-color: var(--primary-bg); }
.primary:hover { background: var(--primary-hover); }
.secondary { background: transparent; border-color: var(--line-strong); color: var(--brand-text); }
.secondary:hover { background: var(--surface-2); }
.full { width: 100%; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card { display: block; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 23px 26px 19px; }
.stat-card > span { color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; font-size: 44px; line-height: 1.5; font-weight: 500; letter-spacing: -2px; }
.stat-card small { font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
.stat-card:first-child { border-top: 3px solid var(--gold); padding-top: 21px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(275px, 1fr); gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; }
.section-heading a { font-size: 11px; color: var(--muted); }
.section-heading a:hover { text-decoration: underline; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.empty-state { text-align: center; max-width: 450px; margin: auto; padding: 36px 12px 42px; }
.empty-symbol { border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--gold-ink); width: 62px; height: 62px; margin: 0 auto 25px; border-radius: 19px; font-size: 32px; display: grid; place-items: center; }
.empty-state h3, .empty-state h2 { font-size: 19px; font-weight: 500; line-height: 1.45; margin-bottom: 12px; }
.empty-state p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 24px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 15px; position: relative; padding-bottom: 24px; font-size: 12px; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 4px; top: 12px; bottom: 0; width: 1px; background: var(--line); }
.timeline-dot { margin-top: 6px; width: 9px; height: 9px; border: 2px solid var(--gold); background: var(--surface); border-radius: 50%; flex-shrink: 0; }
.timeline p { color: var(--muted); margin: 3px 0 5px; overflow-wrap: anywhere; }
.timeline small { color: var(--muted); font-size: 10px; }
.timeline strong { font-weight: 600; }
.timeline .empty-timeline { padding: 20px 0; }
.client-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.client-row:last-child { border-bottom: 0; }
.avatar { width: 42px; height: 42px; border-radius: 13px; background: var(--surface-2); color: var(--gold-ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.client-row:nth-child(3n) .avatar, tr:nth-child(3n) .avatar { color: var(--accent); background: var(--surface-2); }
.client-row-text { min-width: 0; }
.client-row-text strong { font-weight: 600; font-size: 13px; display: block; overflow-wrap: anywhere; }
.client-row-text small { color: var(--muted); font-size: 11px; display: block; overflow-wrap: anywhere; }
.row-arrow { margin-left: auto; color: var(--muted); }
.page-footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); }
.search-toolbar { display: flex; gap: 12px; align-items: center; }
.search-field { flex: 1; display: flex; align-items: center; position: relative; }
.search-field > span { position: absolute; left: 15px; font-size: 22px; color: var(--muted); }
.search-field input { padding-left: 43px; }
input, select, textarea { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 7px; padding: 11px 13px; width: 100%; min-height: 44px; font-size: 13px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; }
.search-toolbar select { width: 170px; }
.list-summary { display: flex; justify-content: space-between; gap: 12px; margin: 23px 0; font-size: 11px; color: var(--muted); }
.list-summary a { text-decoration: underline; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { background: var(--surface-2); font-size: 10px; color: var(--muted); font-weight: 500; padding: 12px; white-space: nowrap; }
th:first-child { border-radius: 7px 0 0 7px; }
th:last-child { border-radius: 0 7px 7px 0; }
td { border-bottom: 1px solid var(--line); padding: 18px 12px; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
.table-client { display: flex; gap: 12px; align-items: center; min-width: 185px; }
.table-client strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.table-client small { display: block; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.goal-cell { max-width: 240px; min-width: 150px; color: var(--muted); overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; background: var(--success-bg); color: var(--success); border-radius: 5px; font-size: 10px; white-space: nowrap; }
.badge::before { content: ''; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.badge.archived { background: var(--surface-2); color: var(--muted); }
.date-cell { white-space: nowrap; color: var(--muted); font-size: 11px; }
.table-open { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 7px; font-size: 18px; }
.table-open:hover { background: var(--bg); }
.pagination { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; display: flex; justify-content: center; gap: 25px; font-size: 12px; }
.back-link { display: inline-flex; margin: 2px 0 28px; font-size: 12px; color: var(--muted); }
.back-link:hover { color: var(--brand-text); }
.form-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr); gap: 36px; align-items: start; }
.client-form h2 { margin-bottom: 8px; }
.form-intro { font-size: 11px; margin-bottom: 27px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .field:nth-last-child(-n+3), .form-grid > .alert { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.required { color: var(--gold-ink); }
.help-text { font-size: 11px; margin-top: 6px; }
.help-text ul { padding-left: 18px; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 6px; }
.field-error ul, .alert ul { list-style: none; margin: 0; padding: 0; }
.field-invalid input, .field-invalid textarea { border-color: var(--danger); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 28px; }
.form-aside { padding: 24px 0; }
.form-aside h2 { font-size: 25px; line-height: 1.45; margin-top: 20px; }
.form-aside p { font-size: 12px; line-height: 1.9; color: var(--muted); }
.aside-rule { height: 1px; background: var(--line); margin: 24px 0; }
.stack-form { display: grid; gap: 20px; }
.stack-form .button { justify-self: start; }
.stack-form .full { justify-self: stretch; }
.profile-title { display: flex; align-items: center; gap: 20px; min-width: 0; }
.avatar.large { width: 75px; height: 75px; font-size: 24px; border-radius: 20px; }
.profile-heading h1 { margin-bottom: 10px; font-size: clamp(26px, 3vw, 36px); }
.profile-heading .eyebrow { margin-bottom: 9px; }
.profile-grid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.profile-sidebar, .profile-main { display: grid; gap: 24px; }
.info-list { margin: 0; }
.info-list dt { color: var(--muted); font-size: 10px; margin-top: 17px; }
.info-list dd { font-size: 12px; margin: 3px 0 0; overflow-wrap: anywhere; }
.info-list dd a:hover { text-decoration: underline; }
.main-goal { color: var(--gold-ink); font-size: 14px; overflow-wrap: anywhere; }
.prose { font-size: 12px; color: var(--muted); line-height: 1.9; overflow-wrap: anywhere; }
.archive-section { padding: 0 12px; }
.archive-section h3 { color: var(--muted); font-size: 12px; }
.archive-section p { font-size: 11px; color: var(--muted); }
.archive-section .button { font-size: 11px; }
.count-pill { background: var(--surface-2); font-size: 11px; border-radius: 6px; padding: 2px 8px; }
.goal-item { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.goal-item strong { font-size: 13px; display: block; font-weight: 500; overflow-wrap: anywhere; }
.goal-item small { color: var(--muted); display: block; font-size: 10px; margin-top: 4px; }
.goal-marker { color: var(--gold); font-size: 25px; flex-shrink: 0; }
.goal-marker.done { color: var(--accent); font-size: 19px; }
.goal-item form { margin-left: auto; flex-shrink: 0; }
.text-button { background: transparent; border: 0; color: var(--muted); font-size: 10px; padding: 10px 4px; text-decoration: underline; }
.disclosure { margin-top: 20px; }
.disclosure summary { font-size: 12px; font-weight: 600; color: var(--gold-ink); padding: 7px 0; }
.inset-form { margin-top: 20px; }
.subtle-label { font-size: 10px; color: var(--muted); text-align: right; }
.section-empty { font-size: 12px; padding: 12px 0; }
.note { padding: 22px 0; border-top: 1px solid var(--line); }
.note:first-child { margin-top: 24px; }
.note-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: var(--muted); }
.note-meta strong { color: var(--ink); font-size: 11px; font-weight: 500; }
.note p { font-size: 12px; line-height: 1.9; margin-top: 10px; overflow-wrap: anywhere; }
.narrow { max-width: 650px; }
.messages { margin-bottom: 22px; }
.alert { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: 12px 16px; font-size: 13px; margin-bottom: 15px; }
.alert.success { color: var(--success); background: var(--success-bg); border-color: var(--success-line); }
.alert.error { color: var(--danger); background: var(--danger-bg); border-color: var(--danger-line); }
.auth-content { min-height: 100vh; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-story { background: var(--brand); color: var(--on-brand); padding: 45px 60px 30px; display: flex; flex-direction: column; overflow: hidden; }
.story-content { margin: auto 0; padding: 75px 0 35px; }
.story-content .eyebrow { color: var(--gold); }
.story-content h1 { font-size: clamp(40px, 4vw, 62px); font-weight: 400; line-height: 1.15; letter-spacing: -2px; margin: 28px 0; }
.story-content p:not(.eyebrow) { color: var(--on-brand-muted); font-size: 15px; line-height: 1.9; }
.story-art { height: 150px; display: flex; align-items: flex-end; gap: 14px; margin-top: 45px; transform: skewY(-6deg); max-width: 330px; }
.story-art span { flex: 1; border: 1px solid var(--brand-line-strong); background: linear-gradient(180deg, #aa975b24, #aa975b03); border-radius: 6px 6px 0 0; }
.story-art span:nth-child(1) { height: 25%; }
.story-art span:nth-child(2) { height: 43%; }
.story-art span:nth-child(3) { height: 62%; }
.story-art span:nth-child(4) { height: 80%; }
.story-art span:nth-child(5) { height: 100%; border-color: var(--gold); }
.story-footer { font-size: 10px; color: var(--on-brand-muted); margin: 0; }
.login-form-panel { display: grid; place-items: center; padding: 50px; }
.login-form-inner { max-width: 380px; width: 100%; }
.login-form-inner h2 { font-size: 29px; font-weight: 500; letter-spacing: -.8px; line-height: 1.25; margin: 0 0 14px; }
.login-form-inner > p.muted { font-size: 13px; margin-bottom: 32px; }
.login-form-inner .button { margin-top: 6px; justify-content: space-between; }
.forgot-link { display: block; margin-top: 24px; font-size: 11px; color: var(--muted); text-align: center; text-decoration: underline; }
.auth-card { max-width: 530px; margin: 10vh auto; padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.auth-card h1 { font-size: 28px; margin-top: 20px; }
.auth-card p { font-size: 14px; }
.wordmark { color: var(--brand-text); font-size: 16px; font-weight: 600; }
.status-panel { margin-top: 40px; }
/* Style FiTraining v3 : contrastes forts, titres affirmés, étiquettes monospace, pilules et accents lumineux. */
h1, h2, .brand, .stat-card strong, .login-form-inner h2, .story-content h1, .form-aside h2 { font-family: var(--display); }
h1 { font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
h1 em, h2 em { font-style: normal; color: var(--gold); text-shadow: 0 0 26px rgba(230, 191, 108, .25); }
h2 { font-weight: 600; letter-spacing: -.01em; }
.eyebrow, .topline, .subtle-label, .workspace-label, th, .info-list dt, .list-summary, .page-footer, .tag, .count-pill, .filter-form .field > label, .filter-form legend { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 600; }
.topline { font-size: 10px; }
.sidebar { border-right: 1px solid var(--brand-line); }
.brand-mark { border-radius: 14px; border-color: var(--brand-line-strong); box-shadow: var(--glow); }
.main-nav a { border-radius: 999px; font-weight: 500; }
.main-nav a[aria-current] { background: var(--brand-active); box-shadow: inset 0 0 0 1px var(--brand-line-strong); }
.main-nav a[aria-current] .nav-symbol { text-shadow: 0 0 14px var(--gold); }
.button { border-radius: 999px; min-height: 46px; padding: 12px 22px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.primary { box-shadow: var(--shadow); }
.primary:hover { box-shadow: var(--glow); }
.secondary { border-color: var(--line-strong); color: var(--ink); }
.secondary:hover { background: var(--surface-2); }
.panel, .stat-card, .auth-card { border-radius: var(--radius); border-color: var(--line); background: var(--surface); }
.panel { padding: 28px; }
.stat-card strong { font-weight: 700; letter-spacing: -.04em; }
.stat-card:first-child { border-top: 1px solid var(--gold); box-shadow: var(--glow); }
input, select, textarea { border-radius: 14px; background: var(--surface-2); border-color: var(--line); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); background: var(--surface); }
.search-field input { border-radius: 999px; }
th { background: var(--surface-2); font-size: 9px; }
.badge { border-radius: 999px; }
.avatar { border-radius: 50%; background: var(--surface-2); color: var(--gold); }
.avatar.large { border-radius: 50%; box-shadow: var(--glow); }
.empty-symbol { border-radius: 22px; background: var(--surface-2); border-color: var(--line-strong); color: var(--gold); box-shadow: var(--glow); }
.alert { border-radius: 16px; }
.count-pill { border-radius: 999px; background: var(--surface-2); padding: 3px 10px; font-size: 10px; }
.timeline-dot { border-color: var(--gold); box-shadow: 0 0 10px rgba(230, 191, 108, .45); }
.login-story { background: radial-gradient(120% 80% at 0% 100%, var(--brand-active), var(--brand) 60%); }
.story-art span { border-color: var(--brand-line-strong); }
.story-art span:nth-child(5) { box-shadow: var(--glow); }
.filter-form .field > label.check-line { font-family: inherit; text-transform: none; letter-spacing: 0; }
:root[data-theme="light"] .exercise-thumb.placeholder { background: linear-gradient(135deg, var(--surface-2), var(--surface)); text-shadow: none; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] .exercise-thumb.placeholder { background: linear-gradient(135deg, var(--surface-2), var(--surface)); text-shadow: none; } }
@media (min-width: 1650px) { .main-content { padding-left: 70px; padding-right: 70px; } }
@media (max-width: 1150px) { .sidebar { width: 215px; padding-inline: 17px; } .main-content { margin-left: 215px; padding-inline: 28px; } .brand { font-size: 20px; gap: 9px; } .dashboard-grid { grid-template-columns: 1fr; } .stats-grid { gap: 12px; } .stat-card { padding-inline: 18px; } .form-layout { grid-template-columns: 1fr; } .form-aside { max-width: 600px; padding-top: 0; } .profile-grid { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr); } .profile-grid .panel { padding: 20px; } .goal-item { flex-wrap: wrap; } .login-story { padding: 40px; } }
@media (max-width: 780px) { .sidebar { position: static; width: 100%; padding: 20px 22px 0; } .sidebar .brand { font-size: 20px; } .sidebar .brand-mark { width: 36px; height: 36px; } .workspace-label { display: none; } .main-nav { display: flex; margin-top: 22px; gap: 10px; } .main-nav a { border-radius: 8px 8px 0 0; font-size: 12px; padding: 12px; } .main-nav a[aria-current] { box-shadow: inset 0 -3px var(--gold); } .sidebar-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 12px 0; border-top: 1px solid var(--brand-line); } .account { margin-right: auto; border: 0; padding: 0; } .account small, .account-avatar { display: none; } .account strong { max-width: 170px; font-size: 10px; } .account-link { width: auto; font-size: 10px; } .main-content { margin-left: 0; padding: 24px 22px; } .topline { margin-bottom: 28px; font-size: 10px; padding-bottom: 17px; } .page-heading { gap: 16px; flex-wrap: wrap; margin-bottom: 25px; } .page-heading h1 { font-size: 32px; } .stats-grid { gap: 9px; margin-bottom: 24px; } .stat-card { padding: 16px 14px; border-radius: 12px; } .stat-card:first-child { padding-top: 14px; } .stat-card > span { font-size: 10px; } .stat-card strong { font-size: 34px; } .stat-card small { font-size: 9px; line-height: 1.5; } .panel { padding: 21px; } .search-toolbar { flex-wrap: wrap; gap: 10px; } .search-field { flex-basis: 100%; } .search-toolbar select { flex: 1; } .profile-grid { grid-template-columns: 1fr; } .profile-sidebar { order: 1; } .profile-main { order: 2; } .profile-heading .button { margin-left: 95px; } .page-footer span:last-child { max-width: 180px; text-align: right; } .login-layout { grid-template-columns: 1fr; } .login-story { padding: 27px; } .story-content { padding: 38px 0 8px; } .story-content h1 { font-size: 37px; margin: 10px 0 17px; } .story-content p:not(.eyebrow) { font-size: 13px; } .story-art, .story-footer { display: none; } .login-form-panel { padding: 36px 27px 50px; } .login-form-inner { max-width: 500px; } .login-form-inner h2 { font-size: 26px; } .auth-card { margin: 30px 18px; padding: 25px; } }
@media (max-width: 430px) { .main-nav { gap: 4px; } .main-nav a { gap: 7px; padding: 12px 9px; } .nav-symbol { display: none; } .main-content { padding: 22px 16px; } .sidebar { padding-inline: 16px; } .stat-card { padding-inline: 10px; } .stats-grid { gap: 7px; } .stat-card small { min-height: 37px; } .form-grid { grid-template-columns: 1fr; gap: 18px; } .form-actions { flex-direction: column-reverse; } .panel { padding: 18px; } .section-heading { gap: 7px; } .section-heading h2 { font-size: 17px; } .subtle-label { font-size: 9px; } .profile-title { gap: 14px; } .avatar.large { width: 60px; height: 60px; } .profile-heading .button { margin-left: 74px; } .sidebar-bottom { gap: 12px; } .account strong { max-width: 115px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
/* Bibliothèque d'exercices */
.text-link { color: var(--accent); font-size: 12px; text-decoration: underline; }
.spaced { margin-top: 22px; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: transparent; border: 1px solid var(--gold); color: var(--gold-ink); font-size: 9px; font-weight: 600; white-space: nowrap; }
.tag.subtle { background: var(--surface-2); border-color: var(--line-strong); color: var(--muted); font-weight: 500; }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.library-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.filter-panel { position: sticky; top: 20px; padding: 20px; }
.filter-form { display: grid; gap: 14px; }
.filter-form .field label, .filter-form legend { font-size: 11px; }
.filter-form .text-link { text-align: center; }
.library-results .list-summary { margin-top: 0; }
.exercise-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.exercise-card { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.exercise-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--glow); }
.exercise-card-link { display: block; }
.exercise-thumb { display: block; width: 100%; aspect-ratio: 5 / 2; object-fit: cover; background: var(--surface-2); }
.exercise-thumb.placeholder { display: grid; place-items: center; font-family: var(--display); font-size: 40px; color: var(--gold); font-weight: 800; text-shadow: 0 0 24px rgba(230, 191, 108, .35); background: radial-gradient(90% 120% at 100% 0%, var(--brand-active), var(--surface-2) 55%, var(--surface)); }
.exercise-card-body { display: grid; gap: 3px; padding: 14px 16px 16px; }
.exercise-card-body strong { font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.35; padding-right: 30px; overflow-wrap: anywhere; }
.exercise-card-body > small { font-size: 11px; }
.card-meta { color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.favorite-form { position: absolute; right: 8px; top: 8px; }
.favorite-button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 18px; line-height: 1; }
.favorite-button.is-on { color: var(--gold); border-color: var(--gold); box-shadow: var(--glow); }
.form-section { margin-bottom: 20px; }
.form-section h2 { margin-bottom: 14px; }
.choice-group.spaced, .field.spaced { margin-top: 24px; }
.filter-disclosure > summary { display: none; }
.exercise-form .form-grid .field:nth-last-child(-n+3) { grid-column: auto; }
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group legend { font-size: 12px; font-weight: 600; margin-bottom: 9px; padding: 0; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.choice-group .choice-chip { display: inline-flex; margin: 0; font-weight: 500; align-items: center; gap: 7px; min-height: 36px; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 18px; font-size: 12px; cursor: pointer; background: var(--surface); }
.choice-chip input, .check-line input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--gold); flex-shrink: 0; }
.choice-chip:has(input:checked) { border-color: var(--gold); background: var(--surface-2); color: var(--ink); box-shadow: var(--glow); }
.choice-chip:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.filter-form .choice-grid { display: grid; gap: 6px; }
.check-line { display: flex !important; align-items: center; gap: 9px; font-weight: 500 !important; cursor: pointer; }
input[type="file"] { padding: 9px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 35%); padding-bottom: 16px; z-index: 2; }
.current-image img, .exercise-figure img { display: block; width: 100%; border-radius: 10px; }
.current-image { margin: 0; max-width: 320px; }
.current-image figcaption { font-size: 11px; color: var(--muted); margin-top: 6px; }
.exercise-figure { margin: 0; padding: 10px; }
.cue-list { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.8; }
.cue-list li::marker { color: var(--gold); font-weight: 600; }
.cue-list.warning li::marker { color: var(--danger); }
.safety-note { margin-top: 22px; padding: 14px 16px; border-radius: 10px; background: var(--warn-bg); border: 1px solid var(--warn-line); }
.relation-form { display: grid; grid-template-columns: 1fr 2fr auto; gap: 12px; align-items: end; }
.relation-form .alert { grid-column: 1 / -1; }
/* Sélecteur de thème */
.theme-switch { display: flex; gap: 4px; margin: 0 0 10px; padding: 4px; border-radius: 999px; background: var(--brand-hover); border: 1px solid var(--brand-line); }
.theme-switch button { flex: 1; border: 0; background: transparent; color: var(--on-brand-muted); font-size: 11px; padding: 6px 4px; border-radius: 999px; min-height: 32px; }
.theme-switch button[aria-pressed="true"] { background: var(--brand-active); color: var(--on-brand); box-shadow: inset 0 0 0 1px var(--brand-line-strong); }
@media (max-width: 1150px) { .library-layout { grid-template-columns: 230px minmax(0, 1fr); } .relation-form { grid-template-columns: 1fr; } }
@media (max-width: 780px) { .library-layout { grid-template-columns: 1fr; } .filter-disclosure > summary { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; padding: 2px 0; } .filter-disclosure[open] > summary { margin-bottom: 16px; } .exercise-thumb.placeholder { display: none; } .exercise-thumb { aspect-ratio: 16 / 7; } .sidebar-bottom { flex-wrap: wrap; } .theme-switch { order: 5; flex-basis: 100%; } .filter-panel { position: static; } .exercise-grid { grid-template-columns: 1fr; } .heading-actions { width: 100%; } .theme-switch { margin: 0; flex: 0 0 auto; } .theme-switch button { padding: 6px 8px; } .main-nav { overflow-x: auto; } .main-nav a { white-space: nowrap; } }
.profile-heading .heading-actions .button { margin-left: 0; }

/* ===== Style FiTraining v4 : premium, massif et sobre. Typographie lourde, peu d'effets, mouvement discret. ===== */
h1 { font-family: var(--display); font-weight: 900; font-stretch: 115%; text-transform: uppercase; letter-spacing: -.015em; line-height: .94; font-size: clamp(34px, 5vw, 76px); margin-bottom: 16px; }
h1 em { text-shadow: none; }
h2 { font-family: var(--display); font-weight: 800; font-stretch: 108%; letter-spacing: -.01em; }
.brand { font-family: var(--display); font-weight: 900; font-stretch: 118%; text-transform: uppercase; letter-spacing: 0; font-size: 19px; }
.brand-mark, .avatar.large, .empty-symbol, .timeline-dot, .stat-card:first-child, .favorite-button.is-on, .story-art span:nth-child(5) { box-shadow: none; }
.main-nav a { font-family: var(--display); font-weight: 700; font-stretch: 108%; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; transition: background .2s, color .2s, transform .2s; }
.main-nav a:hover { transform: translateX(3px); }
.main-nav a[aria-current] { background: var(--ink); color: var(--bg); box-shadow: none; }
.main-nav a[aria-current] .nav-symbol { color: var(--bg); text-shadow: none; }
.page-heading { position: relative; padding: 18px 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); overflow: hidden; align-items: flex-end; }
.page-heading::after { content: ''; position: absolute; left: -20%; bottom: 0; width: 45%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: sweep 5.5s cubic-bezier(.6, 0, .2, 1) infinite; pointer-events: none; }
.page-heading .muted { font-size: 15px; max-width: 560px; }
.button { font-family: var(--display); font-weight: 800; font-stretch: 110%; letter-spacing: .05em; min-height: 50px; padding: 13px 26px; transition: transform .18s, background .18s, box-shadow .18s; }
.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.button:active { transform: translateY(0) scale(.98); }
.stat-card { position: relative; overflow: hidden; padding: 26px 28px 22px; transition: transform .2s, border-color .2s; }
.stat-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.stat-card > span { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.stat-card strong { font-family: var(--display); font-weight: 900; font-stretch: 120%; font-size: clamp(54px, 6vw, 96px); line-height: 1; letter-spacing: -.03em; margin: 18px 0 16px; }
.stat-card:first-child { border-top: 1px solid var(--line); background: linear-gradient(155deg, var(--brand-active), var(--surface) 65%); }
.stat-card:first-child strong { color: var(--gold); }
.panel { transition: border-color .2s; }
.exercise-card { transition: transform .22s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .22s; }
.exercise-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.exercise-card-body strong { font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 15px; letter-spacing: .01em; line-height: 1.2; }
.exercise-thumb.placeholder { font-weight: 900; font-stretch: 125%; font-size: 62px; text-shadow: none; position: relative; overflow: hidden; }
.exercise-thumb.placeholder::after { content: ''; position: absolute; inset: -40% auto auto -30%; width: 160%; height: 2px; background: linear-gradient(90deg, transparent, rgba(230, 191, 108, .55), transparent); transform: rotate(-16deg); top: 70%; }
.choice-chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.tag { border-color: var(--line-strong); color: var(--ink); }
.tag:first-child { border-color: var(--gold); color: var(--gold-ink); }
.story-content h1 { font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 78px); line-height: .95; letter-spacing: -.02em; }
.login-form-inner h2 { font-weight: 900; font-stretch: 112%; text-transform: uppercase; font-size: 30px; line-height: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateX(330%); opacity: 0; } }
.page-heading > div, .stat-card, .panel, .exercise-card, .login-form-inner, .story-content { animation: rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.stat-card:nth-child(2), .exercise-card:nth-child(2) { animation-delay: .06s; }
.stat-card:nth-child(3), .exercise-card:nth-child(3) { animation-delay: .12s; }
.exercise-card:nth-child(4) { animation-delay: .18s; }
.exercise-card:nth-child(n+5) { animation-delay: .24s; }
@media (max-width: 780px) { .main-nav a[aria-current] { box-shadow: none; } .page-heading { padding-bottom: 28px; } .stat-card strong { font-size: 46px; margin: 12px 0; } .stat-card { padding: 16px 14px; } }
@media (max-width: 430px) { h1 { font-size: 34px; } .stat-card strong { font-size: 38px; } }
@media (prefers-reduced-motion: reduce) { .page-heading::after { animation: none; display: none; } .page-heading > div, .stat-card, .panel, .exercise-card, .login-form-inner, .story-content { animation: none; } }
.stat-card > span { display: block; line-height: 1.5; }

/* ===== Style FiTraining v5 : fonds en dégradés profonds et ombres en relief ===== */
:root { --glass: rgba(13, 22, 42, .72); --glass-strong: rgba(17, 29, 56, .85); --edge: rgba(255, 255, 255, .06);
  --aura-1: rgba(38, 78, 196, .55); --aura-2: rgba(84, 52, 168, .35); --aura-3: rgba(230, 191, 108, .16); --aura-4: rgba(14, 116, 168, .30);
  --depth: 0 1px 0 var(--edge) inset, 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px -18px rgba(0, 0, 0, .75);
  --depth-hover: 0 1px 0 var(--edge) inset, 0 4px 10px rgba(0, 0, 0, .4), 0 40px 80px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(230, 191, 108, .25); }
:root[data-theme="light"] { --glass: rgba(255, 253, 248, .78); --glass-strong: rgba(255, 253, 248, .92); --edge: rgba(255, 255, 255, .9);
  --aura-1: rgba(70, 120, 230, .22); --aura-2: rgba(140, 110, 220, .14); --aura-3: rgba(212, 170, 80, .22); --aura-4: rgba(60, 160, 200, .14);
  --depth: 0 1px 0 var(--edge) inset, 0 2px 6px rgba(11, 26, 51, .06), 0 24px 50px -22px rgba(11, 26, 51, .28);
  --depth-hover: 0 1px 0 var(--edge) inset, 0 4px 10px rgba(11, 26, 51, .08), 0 36px 70px -22px rgba(11, 26, 51, .38), 0 0 0 1px rgba(179, 139, 60, .35); }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] { --glass: rgba(255, 253, 248, .78); --glass-strong: rgba(255, 253, 248, .92); --edge: rgba(255, 255, 255, .9);
  --aura-1: rgba(70, 120, 230, .22); --aura-2: rgba(140, 110, 220, .14); --aura-3: rgba(212, 170, 80, .22); --aura-4: rgba(60, 160, 200, .14);
  --depth: 0 1px 0 var(--edge) inset, 0 2px 6px rgba(11, 26, 51, .06), 0 24px 50px -22px rgba(11, 26, 51, .28);
  --depth-hover: 0 1px 0 var(--edge) inset, 0 4px 10px rgba(11, 26, 51, .08), 0 36px 70px -22px rgba(11, 26, 51, .38), 0 0 0 1px rgba(179, 139, 60, .35); } }
html { background: var(--bg); }
body { background: transparent; }
body::before, body::after { content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none; }
body::before { background:
  radial-gradient(38% 42% at 82% 8%, var(--aura-1), transparent 70%),
  radial-gradient(34% 40% at 12% 88%, var(--aura-2), transparent 70%),
  radial-gradient(26% 30% at 58% 38%, var(--aura-3), transparent 70%),
  radial-gradient(30% 34% at 30% 18%, var(--aura-4), transparent 72%);
  filter: blur(10px); animation: aurora 26s ease-in-out infinite alternate; }
body::after { background: linear-gradient(180deg, transparent 0%, var(--bg) 92%); opacity: .55; }
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-4%, 3%, 0) scale(1.08); } 100% { transform: translate3d(3%, -2%, 0) scale(1.03); } }
.sidebar { background: linear-gradient(180deg, rgba(10, 18, 36, .92), rgba(6, 11, 24, .96)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 1px 0 0 var(--edge), 30px 0 60px -30px rgba(0, 0, 0, .8); }
:root[data-theme="light"] .sidebar { background: linear-gradient(180deg, #0d1e3d, #08142b); }
.panel, .stat-card, .exercise-card, .auth-card, .filter-panel { background: linear-gradient(160deg, var(--glass-strong), var(--glass)); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); border-color: var(--edge); box-shadow: var(--depth); }
.stat-card:hover, .exercise-card:hover { box-shadow: var(--depth-hover); }
.stat-card:first-child { background: radial-gradient(120% 120% at 0% 0%, rgba(230, 191, 108, .22), transparent 55%), linear-gradient(160deg, rgba(36, 66, 150, .75), var(--glass)); }
.exercise-thumb.placeholder { background: radial-gradient(80% 140% at 100% 0%, rgba(60, 100, 220, .55), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(230, 191, 108, .18), transparent 60%), linear-gradient(160deg, #142449, #0b1530); }
:root[data-theme="light"] .exercise-thumb.placeholder { background: radial-gradient(80% 140% at 100% 0%, rgba(70, 120, 230, .25), transparent 60%), linear-gradient(160deg, #eef1f8, #fffdf8); }
.primary { background: linear-gradient(180deg, #ffffff, #e9e4d6); border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 24px -8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(230, 191, 108, .35); }
.primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(230, 191, 108, .7), 0 0 40px -6px rgba(230, 191, 108, .35); }
:root[data-theme="light"] .primary { background: linear-gradient(180deg, #17305c, #0b1a33); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 12px 26px -10px rgba(11, 26, 51, .55); }
.main-nav a[aria-current] { background: linear-gradient(180deg, #ffffff, #e6e1d2); color: #08101f; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7); }
.main-nav a[aria-current] .nav-symbol { color: #08101f; }
h1 { text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
h1 em { background: linear-gradient(180deg, #f6dc9c, #d9a944 70%, #b98a2f); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 22px rgba(230, 191, 108, .25)); }
:root[data-theme="light"] h1 { text-shadow: none; }
:root[data-theme="light"] h1 em { background: linear-gradient(180deg, #c99a3e, #8f6a1f); -webkit-background-clip: text; background-clip: text; filter: none; }
.stat-card:first-child strong { background: linear-gradient(180deg, #f6dc9c, #d9a944); -webkit-background-clip: text; background-clip: text; color: transparent; }
input, select, textarea { box-shadow: 0 1px 2px rgba(0, 0, 0, .25) inset; }
.login-story { background: radial-gradient(70% 60% at 85% 10%, rgba(38, 78, 196, .55), transparent 70%), radial-gradient(60% 60% at 0% 100%, rgba(84, 52, 168, .4), transparent 70%), linear-gradient(160deg, #0b1630, #050a15); }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
/* v5 · intensité et relief renforcés */
:root { --aura-1: rgba(46, 96, 236, .75); --aura-2: rgba(102, 64, 210, .5); --aura-3: rgba(236, 190, 96, .24); --aura-4: rgba(20, 140, 200, .42); --edge: rgba(255, 255, 255, .1);
  --depth: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 -1px 0 rgba(0, 0, 0, .5) inset, 0 3px 8px rgba(0, 0, 0, .45), 0 30px 70px -20px rgba(0, 0, 0, .9);
  --depth-hover: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 -1px 0 rgba(0, 0, 0, .5) inset, 0 8px 16px rgba(0, 0, 0, .5), 0 50px 90px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(230, 191, 108, .35); }
body::after { opacity: .2; }
.sidebar { background: radial-gradient(120% 50% at 0% 0%, rgba(46, 96, 236, .35), transparent 60%), radial-gradient(100% 40% at 100% 100%, rgba(236, 190, 96, .12), transparent 60%), linear-gradient(180deg, rgba(10, 18, 38, .94), rgba(5, 10, 22, .97)); }
.panel, .stat-card, .exercise-card, .filter-panel { background: linear-gradient(165deg, rgba(34, 56, 110, .62), rgba(12, 21, 42, .78) 45%, rgba(8, 14, 30, .86)); }
:root[data-theme="light"] .panel, :root[data-theme="light"] .stat-card, :root[data-theme="light"] .exercise-card, :root[data-theme="light"] .filter-panel { background: linear-gradient(165deg, #ffffff, rgba(255, 253, 248, .86)); }
.stat-card:first-child { background: radial-gradient(120% 120% at 0% 0%, rgba(236, 190, 96, .28), transparent 55%), linear-gradient(160deg, rgba(46, 90, 210, .85), rgba(14, 24, 52, .9)); }
h1 { text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 18px 40px rgba(0, 0, 0, .55); }
h1 em { filter: drop-shadow(0 2px 0 rgba(90, 60, 10, .65)) drop-shadow(0 14px 30px rgba(230, 191, 108, .3)); }
.stat-card strong { text-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 16px 34px rgba(0, 0, 0, .6); }
.stat-card:first-child strong { text-shadow: none; filter: drop-shadow(0 2px 0 rgba(90, 60, 10, .65)) drop-shadow(0 12px 26px rgba(230, 191, 108, .35)); }
.exercise-thumb.placeholder { font-size: 72px; filter: none; }
.exercise-thumb.placeholder { text-shadow: 0 3px 0 rgba(90, 60, 10, .8), 0 16px 30px rgba(0, 0, 0, .7); }
.brand-mark { background: linear-gradient(160deg, #1d3570, #0a1530); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 10px 24px -8px rgba(0, 0, 0, .8); }
.avatar, .favorite-button { box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 6px 14px -4px rgba(0, 0, 0, .7); }
:root[data-theme="light"] h1, :root[data-theme="light"] .stat-card strong { text-shadow: 0 10px 26px rgba(11, 26, 51, .14); }
@media (max-width: 780px) { .sidebar { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-right: 0; } }
/* Logo FiTraining */
.brand-mark { display: grid; place-items: center; padding: 0; letter-spacing: 0; background: radial-gradient(120% 120% at 20% 0%, #23407f, #0a1530 70%); border: 1px solid rgba(236, 197, 111, .35); }
.brand-mark img { width: 66%; height: auto; display: block; filter: drop-shadow(0 2px 0 rgba(70, 45, 8, .7)) drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.story-content h1 { font-size: clamp(34px, 3.7vw, 64px); overflow-wrap: normal; } .login-story .brand-mark { width: 52px; height: 52px; }
/* Avatars et paramètres */
.person-avatar { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; object-fit: cover; width: 42px; height: 42px; background: radial-gradient(120% 120% at 20% 0%, #23407f, #0a1530 70%); color: var(--gold); font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 14px; box-shadow: 0 0 0 2px rgba(236, 197, 111, .55), 0 8px 18px -6px rgba(0, 0, 0, .7); }
.person-avatar.sm { width: 36px; height: 36px; font-size: 12px; }
.person-avatar.md { width: 48px; height: 48px; font-size: 16px; }
.person-avatar.xl { width: 132px; height: 132px; font-size: 44px; box-shadow: 0 0 0 3px rgba(236, 197, 111, .7), 0 24px 50px -16px rgba(0, 0, 0, .85); }
.account { color: inherit; border-radius: 14px; transition: background .2s; }
.account:hover, .account[aria-current] { background: var(--brand-hover); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.settings-side { display: grid; gap: 24px; }
.avatar-editor { display: flex; gap: 28px; align-items: center; margin: 8px 0 28px; }
.avatar-stage { position: relative; }
.avatar-stage::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(236, 197, 111, .22), transparent); z-index: -1; }
.avatar-fields { flex: 1; display: grid; gap: 12px; min-width: 0; }
.settings-form .form-grid .field:nth-last-child(-n+3) { grid-column: auto; }
.chat-preview { border-radius: 20px; padding: 16px; background: rgba(5, 10, 21, .55); border: 1px solid var(--edge); margin: 6px 0 14px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.chat-head strong { display: block; font-size: 14px; }
.chat-head small { color: var(--success); font-size: 11px; }
.chat-bubble { display: inline-block; max-width: 90%; padding: 11px 14px; border-radius: 4px 18px 18px 18px; background: linear-gradient(160deg, rgba(46, 90, 210, .55), rgba(20, 34, 70, .8)); font-size: 13px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .7); }
:root[data-theme="light"] .chat-preview { background: var(--surface-2); }
:root[data-theme="light"] .chat-bubble { background: #dfe7f7; }
@media (max-width: 1150px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 780px) { .avatar-editor { flex-direction: column; align-items: flex-start; } .person-avatar.xl { width: 108px; height: 108px; } .account { padding: 4px; } }
@media (max-width: 780px) { .security-link { display: none; } }
input[type="file"]::file-selector-button { border: 0; border-radius: 999px; padding: 8px 16px; margin-right: 12px; background: linear-gradient(180deg, #ffffff, #e6e1d2); color: #08101f; font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.import-errors { margin-top: 10px; padding-left: 18px !important; list-style: disc !important; max-height: 320px; overflow: auto; font-size: 12px; }
/* Fiches à valider */
.tag.review-tag, .tag.review-tag:first-child { background: rgba(255, 158, 146, .12); border-color: #f0a497; color: #ffb4a8; }
:root[data-theme="light"] .tag.review-tag { background: #fbe9e5; border-color: #c96a5c; color: #8f3a30; }
.review-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.heading-actions form { margin: 0; }
/* Miniatures et lecteur YouTube */
.exercise-thumb.video-thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.exercise-thumb.video-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.exercise-card:hover .video-thumb img { transform: scale(1.04); }
.exercise-thumb.video-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 21, 0) 55%, rgba(5, 10, 21, .75)); pointer-events: none; }
.play-badge { position: absolute; left: 14px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #08101f; font-size: 12px; padding-left: 2px; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.video-figure { margin: 0; padding: 10px; }
.video-launch { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; max-height: 560px; cursor: pointer; }
.video-launch img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .2s, transform .4s; }
.video-launch:hover img { opacity: 1; transform: scale(1.02); }
.play-button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #08101f; font-size: 24px; padding-left: 4px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .18), 0 14px 34px rgba(0, 0, 0, .6); }
.video-frame { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 560px; border: 0; border-radius: 16px; background: #000; }
.video-figure figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 780px) { .exercise-thumb.video-thumb { aspect-ratio: 16 / 9; } }
@media (max-width: 780px) { .heading-actions { gap: 8px; } .heading-actions .button { min-height: 40px; padding: 9px 14px; font-size: 10px; } }
/* Invitations */
.access-panel .badge { margin-bottom: 6px; }
.invite-link { display: flex; gap: 8px; margin: 12px 0; }
.invite-link input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-row form { margin: 0; }
.activation-card { max-width: 520px; }
.activation-card .brand { margin-bottom: 26px; }
@media (max-width: 430px) { .invite-link { flex-direction: column; } }
/* Programmes */
.small { font-size: 12px; }
.program-sessions { display: grid; gap: 20px; margin-bottom: 20px; }
.program-description { margin-bottom: 20px; }
.block-title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 18px 0 8px; }
.prescription-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.prescription { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.prescription-thumb { width: 54px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); display: grid; place-items: center; font-family: var(--display); font-weight: 900; color: var(--gold); }
.prescription-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.prescription-main strong { font-size: 14px; }
.prescription-params { font-size: 12px; color: var(--muted); }
.prescription-params b { color: var(--ink); font-family: var(--display); font-weight: 800; }
.prescription-actions { display: flex; gap: 4px; }
.prescription-actions form { margin: 0; }
.icon-button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); }
.icon-button:hover { color: var(--ink); border-color: var(--gold); }
.prescription-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; align-items: end; }
.prescription-form .wide { grid-column: span 2; }
.prescription-form .button { grid-column: 1 / -1; justify-self: start; }
.inline-form { display: grid; grid-template-columns: 1fr 2fr auto; gap: 12px; align-items: end; }
.workout-log { padding: 14px 0; border-top: 1px solid var(--line); }
.log-list { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: var(--muted); }
.session-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 14px 0 24px; }
.session-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--edge); box-shadow: var(--depth); background: #0b1530; }
.session-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.session-cover.placeholder { background: radial-gradient(90% 120% at 100% 0%, rgba(60, 100, 220, .55), transparent 60%), linear-gradient(160deg, #142449, #0b1530); }
.session-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 21, .05) 25%, rgba(5, 10, 21, .92) 80%); }
.session-card-body { position: relative; z-index: 1; padding: 22px; display: grid; gap: 6px; }
.session-card-body h2 { font-weight: 900; font-stretch: 115%; text-transform: uppercase; font-size: 24px; margin: 0; color: #fff; }
.session-meta { font-size: 12px; color: #c7d1e6; margin: 0; }
.session-card .button { justify-self: start; margin-top: 8px; }
.portal-description { max-width: 640px; }
.workout-form { display: grid; gap: 18px; }
.workout-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.workout-head h2 { margin-bottom: 4px; }
.video-launch.compact { width: 110px; flex-shrink: 0; aspect-ratio: 9 / 16; max-height: none; border-radius: 12px; }
.video-launch.compact .play-button { width: 40px; height: 40px; font-size: 14px; }
.workout-head .video-frame { width: 220px; flex-shrink: 0; }
.sets-table td, .sets-table th { padding: 8px 6px; }
.sets-table input { min-height: 40px; padding: 8px 10px; text-align: center; max-width: 110px; font-size: 15px; }
.rest-timer { margin-top: 12px; }
.rest-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5, 10, 21, .82); backdrop-filter: blur(8px); }
.rest-overlay[hidden] { display: none; }
.rest-box { text-align: center; display: grid; gap: 14px; justify-items: center; }
.rest-count { font-family: var(--display); font-weight: 900; font-stretch: 120%; font-size: 120px; line-height: 1; color: var(--gold); }
.small.inline, small.inline { font-size: 20px; }
@media (max-width: 780px) { .prescription-form, .inline-form { grid-template-columns: 1fr 1fr; } .prescription-form .wide { grid-column: 1 / -1; } .inline-form .button { grid-column: 1 / -1; } .workout-head { flex-direction: column; } .video-launch.compact { width: 100%; max-height: 420px; } .workout-head .video-frame { width: 100%; } .session-card { min-height: 300px; } }
.nav-short { display: none; }
@media (max-width: 780px) { .nav-label { display: none; } .nav-short { display: inline; } .main-nav { gap: 2px; } .main-nav a { padding: 11px 9px; font-size: 11px; letter-spacing: .03em; } .nav-symbol { display: none; } }
/* Suivi des séances côté coach */
.workouts-feed { margin-bottom: 24px; }
.workout-row .avatar { font-family: var(--display); font-weight: 800; font-size: 12px; }
.avatar.feeling-1, .avatar.feeling-2 { color: #ffb4a8; box-shadow: 0 0 0 1px #f0a497; }
.avatar.feeling-4, .avatar.feeling-5 { color: #8ad8ad; box-shadow: 0 0 0 1px #8ad8ad; }
.client-comment { margin-bottom: 20px; }
.client-comment .quote { font-size: 18px; font-style: italic; margin: 0; }
.coach-exercise { margin-bottom: 18px; }
.sets-table.compare td { padding: 12px 8px; }
.trend { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.trend.up { color: #8ad8ad; }
.trend.down { color: #ffb4a8; }
.trend.same { color: var(--muted); }
:root[data-theme="light"] .trend.up { color: #23613f; }
:root[data-theme="light"] .trend.down { color: #8f3a30; }
.stat-unit { font-size: .35em; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
/* Mesures et courbes (une courbe par mesure, un seul axe) */
:root { --chart-line: #b8892e; }
:root[data-theme="light"] { --chart-line: #9a7524; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] { --chart-line: #9a7524; } }
.measure-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.measure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.measure-grid.compact { margin-top: 18px; gap: 16px; }
.measure-entry { margin-bottom: 18px; }
.measure-headline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.measure-headline strong { font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: 40px; line-height: 1; }
.measure-mini .measure-headline strong { font-size: 30px; }
.delta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.trend-chart { position: relative; margin: 0; }
.trend-chart svg { width: 100%; height: 200px; display: block; overflow: visible; }
.measure-mini .trend-chart svg { height: 140px; }
.trend-chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend-chart .axis { fill: var(--muted); font-family: var(--mono); font-size: 10px; }
.trend-chart .line { fill: none; stroke: var(--chart-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trend-chart .dot { fill: var(--chart-line); stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; }
.trend-chart .dot:focus { outline: none; stroke: var(--ink); }
.trend-chart .crosshair { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart-tooltip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 10px; font-size: 12px; white-space: nowrap; box-shadow: var(--shadow); z-index: 2; }
.chart-tooltip b { display: block; font-size: 14px; }
.period-filter { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 18px; }
.period-filter a { padding: 7px 14px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.period-filter a[aria-current] { background: var(--ink); color: var(--bg); }
.measure-table td, .measure-table th { padding: 8px; }
.portal-measures { margin-top: 18px; }
@media (max-width: 780px) { .measure-form { grid-template-columns: 1fr 1fr; } .measure-form .field:first-of-type { grid-column: 1 / -1; } .measure-form .button { grid-column: 1 / -1; } .measure-grid { grid-template-columns: 1fr; } }
.trend-chart svg { height: auto; }
.measure-mini .trend-chart svg { height: auto; }
.trend-chart .crosshair[hidden] { display: none; }
/* Nutrition : anneau des calories, macros, repas et ajout d'aliments */
.macro-protein { --macro: var(--gold); } .macro-carbs { --macro: var(--accent); } .macro-fat { --macro: var(--success); }
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 420px; margin: 0 0 18px; padding: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.day-nav a, .day-nav > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.day-nav a:hover { background: var(--surface); box-shadow: var(--glow); }
.day-nav strong { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.nutri-hero { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 34px; align-items: center; margin-bottom: 18px; background: radial-gradient(120% 140% at 0% 0%, rgba(230, 191, 108, .10), transparent 55%), var(--surface); box-shadow: var(--depth, var(--shadow)); }
.kcal-ring { position: relative; width: 210px; aspect-ratio: 1; }
.kcal-ring svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ring-track { fill: none; stroke: var(--surface-2); stroke-width: 11; }
.ring-value { fill: none; stroke: url(#ring-gold); stroke-width: 11; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(230, 191, 108, .45)); transition: stroke-dasharray .8s ease; }
.ring-value.over { stroke: var(--danger); filter: none; }
.ring-stop-a { stop-color: var(--gold-ink); } .ring-stop-b { stop-color: var(--gold); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label strong { font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: 44px; line-height: 1; }
.ring-label small { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-top: 6px; }
.kcal-line { display: flex; gap: 30px; margin: 0 0 18px; }
.kcal-line dt { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.kcal-line dd { margin: 4px 0 0; font-family: var(--display); font-weight: 900; font-size: 26px; }
.macro-bar { margin-top: 14px; }
.macro-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.macro-head span:first-child { color: var(--macro); font-weight: 600; }
.macro-bar svg { width: 100%; height: 8px; display: block; }
.bar-track { fill: var(--surface-2); } .bar-value { fill: var(--macro); }
.meal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.meal-card .section-heading { margin-bottom: 8px; }
.food-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.food-row > div { flex: 1; min-width: 0; }
.food-row strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.food-row small { color: var(--muted); font-size: 11px; font-family: var(--mono); }
.food-row > b { font-family: var(--display); font-size: 17px; }
.food-row .icon-button { width: 28px; height: 28px; }
.meal-add { display: inline-flex; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--gold-ink); }
.meal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.meal-chips a { padding: 7px 14px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line-strong); color: var(--muted); }
.meal-chips a[aria-current] { color: var(--primary-ink); background: var(--primary-bg); border-color: var(--primary-bg); }
.add-options { display: grid; gap: 10px; }
.add-option { border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); overflow: hidden; }
.add-option[open] { border-color: var(--gold); box-shadow: var(--glow); }
.add-option summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; }
.add-option summary::-webkit-details-marker { display: none; }
.add-option summary strong { display: block; font-size: 14px; }
.add-option summary small, .nutri-teaser small { color: var(--muted); font-size: 12px; }
.option-icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; font-size: 20px; color: var(--gold); background: radial-gradient(100% 100% at 30% 20%, var(--brand-active), var(--surface)); box-shadow: inset 0 0 0 1px var(--line-strong); }
.option-body { padding: 4px 16px 18px; display: grid; gap: 14px; }
.scanner { display: grid; gap: 10px; }
.scanner-video { width: 100%; max-height: 320px; border-radius: 14px; object-fit: cover; background: #000; }
.inline-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; margin: 0; }
.file-button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; cursor: pointer; background: var(--surface); color: var(--ink); }
.file-button.primary { background: var(--primary-bg); color: var(--primary-ink); border-color: var(--primary-bg); }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-button:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.photo-form.is-loading .file-button { opacity: .7; pointer-events: none; }
.photo-form.is-loading .file-button span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.food-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; }
.food-form .field { margin: 0; } .food-form .field.wide { grid-column: 1 / -1; } .food-form .button { grid-column: 1 / -1; justify-self: start; }
.nutri-layout { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 26px; }
.nutri-results { display: grid; gap: 16px; }
.profile-form { display: grid; gap: 14px; }
.profile-form .field { margin: 0; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-row .choice-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 18px; font-size: 13px; cursor: pointer; }
fieldset.field { border: 0; padding: 0; min-width: 0; } fieldset.field legend { font-size: 12px; font-weight: 600; margin-bottom: 7px; padding: 0; }
.bmr-hero { text-align: center; background: radial-gradient(90% 120% at 50% 0%, rgba(230, 191, 108, .14), transparent 60%), var(--surface); box-shadow: var(--depth, var(--shadow)); }
.bmr-figure { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin: 6px 0 10px; }
.bmr-figure strong { font-family: var(--display); font-weight: 900; font-stretch: 120%; font-size: clamp(54px, 9vw, 84px); line-height: 1; color: var(--gold); text-shadow: 0 0 34px rgba(230, 191, 108, .3); }
.bmr-figure span { font-family: var(--mono); color: var(--muted); font-size: 12px; text-transform: uppercase; }
.level-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.level-card { padding: 18px 16px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); box-shadow: var(--depth, var(--shadow)); display: grid; gap: 4px; }
.level-card .eyebrow { font-size: 9px; margin: 0 0 4px; }
.level-card strong { font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 1; }
.level-card span { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; }
.level-card small { color: var(--muted); font-size: 11px; margin-top: 6px; }
.level-card.is-rest { border-color: var(--gold); }
.target-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.target-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.target { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); border-top: 3px solid var(--macro, var(--line-strong)); }
.target.main { --macro: var(--gold); }
.target strong { display: block; font-family: var(--display); font-weight: 900; font-size: 24px; }
.target span { font-size: 11px; color: var(--muted); }
.methods summary { cursor: pointer; }
.section-title { font-family: var(--display); text-transform: uppercase; font-weight: 900; font-size: 22px; margin: 10px 0 14px; }
.nutri-teaser { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: var(--ink); }
.nutri-teaser > span:nth-child(2) { flex: 1; } .nutri-teaser strong { display: block; }
.nutri-teaser:hover { border-color: var(--gold); box-shadow: var(--glow); }
.portion-preview { grid-column: 1 / -1; font-family: var(--mono); color: var(--gold-ink); margin: 0; min-height: 1em; }
.product-panel .food-form { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.review-rows { display: grid; gap: 10px; margin: 14px 0; }
.review-row { display: grid; grid-template-columns: 34px minmax(0, 2.4fr) repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 0; background: var(--surface-2); }
.review-row .field { margin: 0; } .review-row .field label { font-size: 10px; } .review-row .field.wide { grid-column: auto; }
.review-row .keep { align-self: center; } .review-row .keep input { width: 20px; height: 20px; accent-color: var(--gold); }
.review-row:has(.keep input:not(:checked)) { opacity: .45; }
.review-actions { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.review-actions .field { margin: 0; min-width: 200px; }
@media (max-width: 980px) { .nutri-layout { grid-template-columns: 1fr; } .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px) { .nutri-hero { grid-template-columns: 1fr; justify-items: center; gap: 18px; } .nutri-figures { width: 100%; } .kcal-line { justify-content: center; } .meal-list { grid-template-columns: 1fr; } .food-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .food-form .field:nth-of-type(4) { grid-column: auto; } .target-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .target-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } .review-row { grid-template-columns: 30px repeat(3, minmax(0, 1fr)); } .review-row .field.wide { grid-column: 2 / -1; } .review-row .field:nth-of-type(2) { grid-column: 2; } }
@media (max-width: 430px) { .kcal-ring { width: 190px; } .level-card strong { font-size: 26px; } .target-grid.compact .target strong { font-size: 18px; } }
/* Contact du coach via WhatsApp */
.coach-contact { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; color: var(--ink); border-color: var(--gold); box-shadow: var(--glow); background: radial-gradient(120% 160% at 0% 0%, rgba(230, 191, 108, .14), transparent 60%), var(--surface); }
.coach-contact:hover { transform: translateY(-1px); }
.contact-icon { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 16px; color: var(--primary-ink); background: linear-gradient(140deg, var(--gold-ink), var(--gold)); box-shadow: 0 8px 20px -8px rgba(230, 191, 108, .7); }
.contact-text { flex: 1; min-width: 0; } .contact-text strong { display: block; font-size: 16px; } .contact-text small { color: var(--muted); font-size: 12px; }
.whatsapp-panel h2 { margin-top: 2px; }
/* Comportement d'application sur mobile : pas de zoom à la saisie, pas de surbrillance au toucher */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
@media (max-width: 780px), (pointer: coarse) { input, select, textarea { font-size: 16px; } }
@media (display-mode: standalone) { body { overscroll-behavior-y: none; } .install-banner { display: none !important; } .main-content { padding-bottom: calc(24px + env(safe-area-inset-bottom)); } }
.install-banner { position: relative; z-index: 3; margin: 12px auto; width: calc(100% - 24px); display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 20px; border: 1px solid var(--gold); background: var(--glass-strong, var(--surface-2)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--glow), var(--shadow); max-width: 520px; margin: 0 auto; }
.install-banner[hidden] { display: none; }
.install-banner .brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.install-banner p { flex: 1; min-width: 0; margin: 0; font-size: 12px; color: var(--muted); }
.install-banner p strong { display: block; color: var(--ink); font-size: 14px; }
.install-banner .button { min-height: 38px; padding: 0 16px; }
.login-form-inner .check-line { font-size: 13px; }
.install-banner [hidden] { display: none !important; }
/* Connexion sur téléphone : formulaire visible immédiatement, comme une application */
@media (max-width: 780px) { .login-story { padding: 22px 22px 4px; } .login-story .story-content { display: none; } .login-form-panel { padding: 22px 22px 44px; align-items: start; } .login-form-inner > p.muted { margin-bottom: 22px; } .login-form-inner h2 { font-size: 26px; } }
/* Navigation : icônes, barre du haut et onglets du bas sur téléphone */
.nav-icon { width: 21px; height: 21px; flex-shrink: 0; }
.theme-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.theme-choice button { display: grid; justify-items: center; gap: 8px; padding: 12px 6px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.theme-choice button[aria-pressed="true"] { border-color: var(--gold); color: var(--ink); box-shadow: var(--glow); }
.theme-swatch { width: 38px; height: 26px; border-radius: 8px; border: 1px solid var(--line-strong); }
.theme-swatch.dark { background: linear-gradient(135deg, #0c1527 55%, #e6bf6c 55%); }
.theme-swatch.light { background: linear-gradient(135deg, #f3f1ea 55%, #b38b3c 55%); }
.theme-swatch.auto { background: linear-gradient(90deg, #0c1527 50%, #f3f1ea 50%); }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 780px) {
  .sidebar { position: sticky; top: 0; inset: auto; z-index: 20; width: 100%; height: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--brand); border-bottom: 1px solid var(--brand-line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
  .sidebar .brand { font-size: 17px; gap: 10px; }
  .sidebar .brand small { font-size: 7px; margin-top: 5px; letter-spacing: 3.4px; }
  .sidebar .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .sidebar .workspace-label, .sidebar .account-link, .sidebar-bottom form, .sidebar .account > div { display: none; }
  .sidebar-bottom { margin: 0; padding: 0; border: 0; display: flex; }
  .sidebar .account { border: 0; padding: 0; margin: 0; background: none; }
  .sidebar .account .person-avatar { width: 36px; height: 36px; }
  .main-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; justify-content: space-around; gap: 4px; margin: 0; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); background: var(--brand); border-top: 1px solid var(--brand-line); box-shadow: 0 -12px 30px -16px rgba(0, 0, 0, .8); }
  .main-nav a, .main-nav a:hover { flex: 1; max-width: 120px; flex-direction: column; justify-content: center; gap: 4px; padding: 7px 2px 5px; border-radius: 14px; font-family: var(--display); font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: var(--on-brand-muted); background: none; box-shadow: none; transform: none; }
  .main-nav a[aria-current] { background: none; color: var(--gold); box-shadow: none; }
  .main-nav a .nav-symbol, .main-nav a[aria-current] .nav-symbol { display: block; width: 24px; height: 24px; font-size: inherit; color: inherit; text-shadow: none; }
  .main-nav a[aria-current] .nav-icon { filter: drop-shadow(0 0 8px rgba(230, 191, 108, .55)); }
  .main-nav a[aria-current]::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  .main-nav a { position: relative; }
  .nav-label { display: none; } .nav-short { display: inline; }
  .main-content { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
/* Accueil client : carte de la prochaine séance */
.next-session { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; color: var(--ink); overflow: hidden; }
.next-session:hover { border-color: var(--gold); box-shadow: var(--glow); }
.next-cover { width: 84px; height: 84px; flex-shrink: 0; object-fit: cover; border-radius: 16px; }
.next-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.next-body .eyebrow { margin: 0; color: var(--gold); }
.next-body strong { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 20px; line-height: 1.1; overflow-wrap: anywhere; }
.next-body small { color: var(--muted); font-size: 12px; }
@media (max-width: 380px) { .main-nav a, .main-nav a:hover { font-size: 8.5px; letter-spacing: .02em; } }
/* Objectifs : anneau de progression, cartes hebdomadaires et long terme */
.goal-ring { position: relative; width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; --macro: var(--gold); }
.goal-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.goal-ring .ring-track { fill: none; stroke: var(--surface-2); stroke-width: 4; }
.goal-ring .ring-value { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(230, 191, 108, .45)); }
.goal-ring.is-done .ring-value { stroke: var(--success); filter: none; }
.goal-ring b { position: relative; font-family: var(--display); font-weight: 900; font-size: 13px; line-height: 1; }
.goal-ring b small { font-size: 8px; margin-left: 1px; color: var(--muted); }
.goal-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.goal-board .section-heading { margin-bottom: 6px; }
.goal-card { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.goal-card:first-of-type { border-top: 0; }
.goal-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.goal-text strong { font-size: 14px; overflow-wrap: anywhere; }
.goal-text small { color: var(--muted); font-size: 12px; }
.goal-bar { width: 100%; height: 6px; margin-top: 6px; --macro: var(--gold); }
.check-button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-strong); background: transparent; color: transparent; font-size: 20px; font-weight: 700; cursor: pointer; transition: all .2s; }
.check-button:hover { border-color: var(--gold); color: var(--muted); }
.check-button.is-on { background: linear-gradient(140deg, var(--gold-ink), var(--gold)); border-color: var(--gold); color: var(--primary-ink); box-shadow: var(--glow); }
.goal-item .goal-ring { width: 46px; height: 46px; }
.more-measures { grid-column: 1 / -1; }
.more-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.more-grid .field { margin: 0; }
@media (max-width: 780px) { .goal-boards { grid-template-columns: 1fr; } .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Objectifs à plusieurs données suivies */
.goal-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.goal-main small { color: var(--muted); font-size: 11px; }
.indicator-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.indicator-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.indicator-list li span { font-size: 13px; font-weight: 600; }
.indicator-list li b { font-family: var(--display); font-size: 13px; color: var(--gold); grid-row: 1; grid-column: 2; }
.indicator-list li small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.indicator-list li .goal-bar { grid-column: 1 / -1; margin-top: 4px; }
.indicator-picker { display: grid; gap: 14px; }
.indicator-group { display: grid; gap: 6px; }
.indicator-group .eyebrow { margin: 4px 0 2px; font-size: 9px; }
.indicator-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 10px; align-items: center; }
.indicator-row .check-line { margin: 0; font-size: 13px; }
.indicator-row input[type="text"] { min-height: 38px; padding: 7px 10px; }
.indicator-row:has(input[type="checkbox"]:not(:checked)) input[type="text"] { opacity: .45; }
/* Éditeur de programme : grille séries × semaines */
.weeks-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.weeks-bar strong { font-family: var(--display); font-weight: 900; font-size: 22px; text-transform: uppercase; }
.weeks-bar .eyebrow { margin: 0 0 4px; }
.weeks-bar .help-text { flex-basis: 100%; margin: 0; }
.exercise-blocks { display: grid; gap: 14px; margin-bottom: 10px; }
.exercise-block { border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); padding: 14px; min-width: 0; }
.exercise-block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.exercise-block-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.exercise-block-title strong { font-size: 15px; }
.exercise-block-title small { font-size: 11px; }
.grid-form { position: relative; }
.param-menu { margin-bottom: 8px; }
.param-menu > summary { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; list-style: none; font-size: 12px; font-weight: 600; color: var(--gold-ink); padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.param-menu > summary::-webkit-details-marker { display: none; }
.param-menu[open] > summary { border-color: var(--gold); box-shadow: var(--glow); }
.param-panel { margin-top: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.param-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.param-grid .check-line { font-size: 13px; margin: 0; }
.param-panel .button { justify-self: start; }
.grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.set-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.set-grid th, .set-grid td { padding: 5px 6px; text-align: left; white-space: nowrap; }
.set-grid thead th { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; padding-top: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.set-grid tbody.week-rows { border-top: 1px solid var(--line-strong); }
.set-grid tbody th { font-family: var(--display); font-weight: 900; color: var(--gold); width: 44px; }
.set-grid .set-number { color: var(--muted); font-family: var(--mono); width: 40px; }
.set-grid input { min-height: 34px; padding: 5px 9px; border-radius: 10px; min-width: 72px; width: 100%; font-size: 13px; }
.set-grid .rest-cell { display: flex; align-items: center; gap: 4px; }
.set-grid .rest-cell input { min-width: 0; width: 46px; text-align: center; padding: 5px 4px; }
.set-grid .rest-cell span { font-size: 10px; color: var(--muted); }
.set-grid .add-row td { padding-top: 2px; padding-bottom: 8px; }
.icon-button.small { width: 28px; height: 28px; font-size: 12px; }
.grid-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.save-state { font-size: 11px; font-family: var(--mono); }
.save-state.error { color: var(--danger); }
.target-cell { white-space: normal; }
.target-cell span { display: inline-block; margin: 0 8px 2px 0; }
.target-cell small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 780px) { .set-grid input { min-width: 64px; font-size: 16px; } .set-grid .rest-cell input { width: 44px; } }
.set-grid th { background: transparent; border-radius: 0; }
.weeks-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.weeks-form label { font-size: 12px; font-weight: 600; }
.weeks-form input { width: 84px; min-height: 40px; text-align: center; }
/* Ajout rapide et glisser-déposer dans l'éditeur de programme */
.quick-add-panel { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.quick-add-bar { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; }
.quick-add-bar .search-field { margin: 0; }
.quick-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; max-height: 420px; overflow-y: auto; }
.quick-result { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; }
.quick-result:hover, .quick-result:focus-visible { border-color: var(--gold); box-shadow: var(--glow); }
.quick-result img, .quick-thumb { width: 56px; height: 42px; flex-shrink: 0; object-fit: cover; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--gold); font-family: var(--display); font-weight: 900; }
.quick-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.quick-text strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-text small { font-size: 11px; color: var(--muted); }
.quick-plus { color: var(--gold); font-size: 18px; }
.drag-handle { cursor: grab; color: var(--muted); font-size: 18px; padding: 4px 2px; user-select: none; }
.drag-handle:hover { color: var(--gold); }
.exercise-block.is-dragging { opacity: .5; border-style: dashed; border-color: var(--gold); }
@media (max-width: 780px) { .quick-add-bar { grid-template-columns: 1fr; } .drag-handle { display: none; } }
.bulk-form { display: grid; gap: 12px; margin-top: 10px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.bulk-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.bulk-items .check-line { margin: 0; font-size: 13px; }
.bulk-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
.bulk-fields .field { margin: 0; }
.rest-pair { display: flex; align-items: center; gap: 4px; }
.rest-pair input { width: 54px; text-align: center; }
.rest-pair span { font-size: 11px; color: var(--muted); }
.bulk-form .button { justify-self: start; }
@media (max-width: 780px) { .bulk-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.copy-panel { margin-bottom: 18px; }
.copy-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; margin-top: 12px; }
.client-filter { margin-bottom: 8px; }
.client-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; max-height: 240px; overflow-y: auto; padding: 4px 2px; }
.client-checks .check-line { margin: 0; font-size: 13px; }
.client-checks label[hidden] { display: none; }
@media (max-width: 780px) { .copy-grid { grid-template-columns: 1fr; } }
/* Catégories de programmes et programme en cours dans la liste des clients */
.program-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.program-tabs a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; }
.program-tabs a span { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.program-tabs a[aria-current] { background: var(--primary-bg); color: var(--primary-ink); border-color: var(--primary-bg); box-shadow: var(--glow); }
.program-tabs a[aria-current] span { background: var(--primary-ink); color: var(--primary-bg); }
.program-cell { min-width: 170px; }
.program-cell strong { display: block; font-size: 13px; color: var(--ink); }
.program-cell small { display: block; font-size: 11px; color: var(--success); margin-top: 2px; }
.program-cell small.is-soon { color: var(--gold-ink); }
.program-cell small.is-over { color: var(--danger); }
/* Séance client en onglets par bloc */
.block-tabs { position: sticky; top: 0; z-index: 10; display: flex; gap: 6px; overflow-x: auto; margin: 0 0 16px; padding: 8px; border-radius: 20px; background: var(--brand); border: 1px solid var(--brand-line); box-shadow: var(--shadow); scrollbar-width: none; }
.block-tabs::-webkit-scrollbar { display: none; }
.block-tabs a { flex: 1 0 auto; min-width: 104px; display: grid; justify-items: center; gap: 2px; padding: 8px 10px; border-radius: 14px; color: var(--on-brand-muted); text-align: center; }
.block-tabs a span:nth-child(2) { font-family: var(--display); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.block-tabs a small { font-size: 10px; opacity: .8; }
.tab-step { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--brand-line-strong); font-family: var(--mono); font-size: 11px; }
.block-tabs a[aria-current] { background: linear-gradient(180deg, #ffffff, #e6e1d2); color: #08101f; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .7); }
.block-tabs a[aria-current] .tab-step { border-color: #08101f; }
.block-panel-title { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 22px; margin: 6px 0 12px; }
.block-panel-title span { font-family: var(--mono); font-size: 11px; color: var(--gold); font-weight: 500; }
.block-panel .workout-exercise { margin-bottom: 14px; }
.block-next { width: 100%; justify-content: center; margin: 4px 0 18px; }
.block-title { display: flex; align-items: center; gap: 8px; }
.block-index { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); font-size: 10px; }
.block-names-form { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.block-names-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.block-names-grid .field { margin: 0; }
.block-names-form .button { justify-self: start; }
@media (max-width: 780px) { .block-tabs { top: 56px; } .block-names-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Séance client : séries cochées, historique par exercice, tonnage */
.set-done { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; cursor: pointer; }
.set-done input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.set-done span[aria-hidden] { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line-strong); color: transparent; font-weight: 800; transition: all .15s; }
.set-done input:checked + span { background: linear-gradient(140deg, var(--gold-ink), var(--gold)); border-color: var(--gold); color: var(--primary-ink); box-shadow: var(--glow); }
.set-done input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.sets-table tr.is-done td { background: rgba(230, 191, 108, .06); }
.history { margin-top: 10px; }
.history-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.history-list li { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.history-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.history-head span { font-family: var(--mono); font-size: 11px; color: var(--gold-ink); }
.history-sets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.history-sets span { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); }
.summary-row { margin-top: 14px; }
.tonnage-live { display: grid; gap: 2px; justify-items: center; padding: 16px; margin-bottom: 16px; border-radius: 18px; background: radial-gradient(90% 120% at 50% 0%, rgba(230, 191, 108, .14), transparent 60%), var(--surface-2); text-align: center; }
.tonnage-live span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tonnage-live strong { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; color: var(--gold); }
.tonnage-live small { font-size: 11px; color: var(--muted); }
/* 1RM estimé et charge conseillée */
.target-cell .suggested { color: var(--gold-ink); font-weight: 700; }
.rm-box { margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.rm-box .eyebrow { margin: 0 0 4px; font-size: 9px; }
.rm-value { margin: 0 0 8px; }
.rm-value strong { font-family: var(--display); font-weight: 900; font-size: 28px; color: var(--gold); }
.rm-value small { display: block; color: var(--muted); font-size: 11px; }
.rm-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; text-align: center; }
.rm-table th, .rm-table td { padding: 4px 2px; background: transparent; border-radius: 0; }
.rm-table tbody tr:first-child td { color: var(--ink); font-weight: 700; }
.rm-table tbody tr:last-child td { color: var(--muted); }
.rm-cell, .rm-hint { color: var(--gold); font-weight: 700; }
.sets-table input[data-reps] { min-width: 54px; text-align: center; } .sets-table input[data-load] { min-width: 70px; text-align: center; }

/* ==========================================================================
   v7 — Identité épurée : typographie système fine, cartes plates, boutons légers.
   Bleu nuit, ivoire et or conservés ; plus d'effets lumineux ni de titres massifs.
   ========================================================================== */
:root {
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "DM Sans", Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "DM Sans", Roboto, Arial, sans-serif;
  --mono: var(--sans);
  --radius: 16px;
  --bg: #05080f; --surface: #0e1424; --surface-2: #161e31; --line: #1c2538; --line-strong: #29344d;
  --glow: 0 0 0 1px rgba(230, 191, 108, .45); --shadow: 0 8px 24px rgba(0, 0, 0, .28);
  --tint: rgba(230, 191, 108, .13); --tint-strong: rgba(230, 191, 108, .2);
}
:root[data-theme="light"] { --bg: #f4f4f6; --surface: #ffffff; --surface-2: #f1f1f4; --line: #e6e6eb; --line-strong: #d6d6de;
  --glow: 0 0 0 1px rgba(179, 139, 60, .45); --shadow: 0 6px 18px rgba(11, 26, 51, .06); --tint: rgba(179, 139, 60, .12); --tint-strong: rgba(179, 139, 60, .2); }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] { --bg: #f4f4f6; --surface: #ffffff; --surface-2: #f1f1f4; --line: #e6e6eb; --line-strong: #d6d6de;
  --glow: 0 0 0 1px rgba(179, 139, 60, .45); --shadow: 0 6px 18px rgba(11, 26, 51, .06); --tint: rgba(179, 139, 60, .12); --tint-strong: rgba(179, 139, 60, .2); } }

body { font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
body::before, body::after { display: none; }

/* Titres : casse normale, graisse modérée */
h1, h2, h3, .brand, .stat-card strong, .login-form-inner h2, .story-content h1, .form-aside h2, .section-title, .block-panel-title, .next-body strong {
  font-family: var(--display); font-stretch: 100%; text-transform: none; letter-spacing: -.01em; text-shadow: none; filter: none; }
h1, :root[data-theme="light"] h1 { font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; margin: 0 0 6px; text-shadow: none; }
h1 em, h2 em { font-style: normal; color: var(--gold); background: none; -webkit-background-clip: initial; background-clip: initial; text-shadow: none; filter: none; }
h2 { font-weight: 600; font-size: 18px; }
h3 { font-weight: 600; font-size: 15px; }
.eyebrow, .topline, .subtle-label, .workspace-label, th, .info-list dt, .list-summary, .page-footer, .tag, .count-pill, .filter-form .field > label, .filter-form legend {
  font-family: var(--sans); letter-spacing: .03em; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.muted, .help-text { color: var(--muted); }

/* En-tête de page compact */
.page-heading, .page-heading:where(*) { padding: 4px 0 0; margin-bottom: 22px; border-bottom: 0; align-items: flex-end; }
.page-heading::after { display: none; }
.page-heading .muted { font-size: 14px; }
.topline { border-bottom: 0; margin-bottom: 14px; padding-bottom: 0; font-size: 12px; }

/* Cartes plates */
.panel, .stat-card, .exercise-card, .auth-card, .filter-panel, .level-card, .exercise-block, .meal-card, .nutri-hero, .bmr-hero, .goal-board {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.panel { padding: 18px; }
.panel:hover, .exercise-card:hover { box-shadow: none; transform: none; }
.exercise-card:hover, .nutri-teaser:hover, .next-session:hover, .coach-contact:hover { border-color: var(--line-strong); box-shadow: none; transform: none; }
.stat-card:first-child { border-top: 1px solid var(--line); box-shadow: none; }
.stat-card strong, .stat-card:first-child strong { font-weight: 700; font-size: 30px; text-shadow: none; filter: none; }
.section-heading h2 { font-size: 17px; }

/* Boutons : pilules légères, texte en casse normale */
.button { font-family: var(--sans); font-weight: 600; font-stretch: 100%; text-transform: none; letter-spacing: 0; font-size: 15px; min-height: 44px; padding: 10px 18px; border-radius: 12px; box-shadow: none; transition: background .15s, opacity .15s; }
.button:hover, .button:active { transform: none; box-shadow: none; }
.button.primary { background: var(--primary-bg); color: var(--primary-ink); border-color: transparent; }
.button.secondary { background: var(--tint); color: var(--gold-ink); border-color: transparent; }
.button.secondary:hover { background: var(--tint-strong); }
.text-button, .text-link { font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.file-button { border-radius: 12px; font-weight: 600; }
.icon-button { border-color: var(--line-strong); }

/* Champs */
input, select, textarea { border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; font-family: var(--sans); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; background: var(--surface-2); }
.field label, fieldset.field legend { font-size: 13px; font-weight: 600; }

/* Étiquettes et pastilles */
.tag { border: 0; background: var(--tint); color: var(--gold-ink); font-size: 11px; font-weight: 600; padding: 3px 9px; }
.tag.subtle { background: var(--surface-2); color: var(--muted); }
.badge { box-shadow: none; }
.count-pill { background: var(--surface-2); color: var(--muted); border: 0; }
th { background: transparent; font-size: 11px; font-weight: 600; color: var(--muted); padding: 10px 12px; }
td { border-color: var(--line); }

/* Barre latérale (ordinateur) */
.sidebar { background: var(--brand); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-right: 1px solid var(--brand-line); }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand small { font-family: var(--sans); font-size: 10px; letter-spacing: .18em; font-weight: 600; }
.brand-mark { box-shadow: none; }
.main-nav a { font-family: var(--sans); font-weight: 500; font-stretch: 100%; text-transform: none; letter-spacing: 0; font-size: 14px; border-radius: 10px; padding: 10px 12px; }
.main-nav a:hover { transform: none; background: var(--brand-hover); }
.main-nav a[aria-current] { background: var(--brand-active); color: var(--on-brand); box-shadow: none; }
.main-nav a[aria-current] .nav-symbol { color: var(--gold); text-shadow: none; filter: none; }

/* Téléphone : barre d'onglets du bas façon application */
@media (max-width: 780px) {
  .sidebar { background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: none; }
  .sidebar .brand { font-size: 16px; }
  .main-nav { background: var(--bg); border-top: 1px solid var(--line); box-shadow: none; padding-top: 6px; }
  .main-nav a, .main-nav a:hover { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); gap: 3px; }
  .main-nav a[aria-current] { color: var(--ink); background: none; }
  .main-nav a[aria-current]::before { display: none; }
  .main-nav a[aria-current] .nav-icon { color: var(--gold); filter: none; }
  .main-content { padding: 16px 16px calc(92px + env(safe-area-inset-bottom)); }
  h1, :root[data-theme="light"] h1 { font-size: 26px; }
  .page-heading { margin-bottom: 16px; }
}

/* Composants à chiffres : plus légers */
.ring-label strong, .kcal-line dd, .bmr-figure strong, .level-card strong, .target strong, .tonnage-live strong, .rm-value strong, .measure-headline strong, .weeks-bar strong, .goal-ring b, .food-row > b, .set-grid tbody th {
  font-family: var(--display); font-weight: 700; font-stretch: 100%; text-shadow: none; text-transform: none; }
.ring-label strong { font-size: 38px; }
.bmr-figure strong { font-size: clamp(44px, 8vw, 64px); }
.ring-value, .goal-ring .ring-value { filter: none; }
.nutri-hero, .bmr-hero { background: var(--surface); }
.add-option[open], .param-menu[open] > summary, .choice-chip:has(input:checked), .favorite-button.is-on, .empty-symbol, .coach-contact, .check-button.is-on, .set-done input:checked + span { box-shadow: none; }
.coach-contact { border-color: var(--line); background: var(--surface); }
.contact-icon, .option-icon { box-shadow: none; }
.block-title, .meal-chips a, .day-nav strong, .set-grid thead th, .save-state, .history-head span, .history-sets span, .rm-table, .portion-preview, .tab-step, .block-panel-title span, .delta, .chart-tooltip, .trend-chart .axis { font-family: var(--sans); }
.block-title { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }

/* Séance client : onglets de blocs façon bandeau de jours */
.block-tabs { background: var(--bg); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 6px 0; margin: 0 -16px 14px; padding-inline: 16px; }
.block-tabs a { border-radius: 10px; padding: 6px 10px; min-width: 92px; }
.block-tabs a span:nth-child(2) { font-family: var(--sans); text-transform: none; font-weight: 600; font-size: 13px; letter-spacing: 0; }
.block-tabs a[aria-current] { background: none; color: var(--ink); box-shadow: none; }
.block-tabs a[aria-current] .tab-step { background: var(--gold); border-color: var(--gold); color: var(--primary-ink); }
.block-panel-title { font-size: 20px; font-weight: 700; text-transform: none; }
.sets-table tr.is-done td { background: transparent; }
.set-done input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--primary-ink); }

/* Animations d'entrée retirées : affichage immédiat */
.page-heading > div, .stat-card, .panel, .exercise-card, .login-form-inner, .story-content { animation: none !important; opacity: 1 !important; transform: none !important; }
/* Cartes de séance : plus compactes, titre en casse normale */
.session-card { min-height: 220px; }
.session-card-body { padding: 16px; gap: 4px; }
.session-card-body h2 { font-family: var(--display); font-weight: 700; font-stretch: 100%; text-transform: none; font-size: 20px; letter-spacing: -.01em; }
.session-card .button { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.exercise-card-body strong, .workout-head h2, .exercise-block-title strong { font-family: var(--display); font-weight: 600; font-stretch: 100%; text-transform: none; }
.workout-head h2 { font-size: 19px; }
.stat-card > span { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 13px; }
.stat-card, .stat-card:first-child { background: var(--surface); }
.stat-card:first-child strong { color: var(--gold); }
.copy-panel { padding-top: 14px; padding-bottom: 14px; }
.copy-panel > .disclosure { margin: 0; }
.stat-card small, .stat-card > span { text-transform: none; }
.login-form-inner h2 { font-family: var(--display); font-weight: 700; font-stretch: 100%; font-size: 26px; letter-spacing: -.01em; text-transform: none; }
.login-story { background: var(--brand); }
.login-form-inner .button { justify-content: center; }
.copy-grid-menu { margin-top: 10px; }
.copy-grid-form { display: grid; gap: 12px; margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.copy-grid-actions { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.copy-grid-actions .field { margin: 0; min-width: 180px; }
/* Séance client : vignette compacte et lien « Voir l'exécution » */
.workout-head { gap: 12px; align-items: center; }
.exercise-mini { width: 64px; height: 64px; flex-shrink: 0; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.exercise-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--gold-ink); margin: 0 0 4px; }
.workout-head .eyebrow { margin-bottom: 2px; }
.workout-head h2 { margin: 0 0 2px; }
.video-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .82); }
.video-modal[hidden] { display: none; }
.video-modal-box { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.video-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; }
.video-modal-frame { aspect-ratio: 9 / 16; max-height: 78vh; background: #000; }
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
body.modal-open { overflow: hidden; }
.workout-head, .workout-head > div { text-align: left; }
@media (max-width: 780px) { .workout-head { flex-direction: row !important; align-items: center; } .workout-head > div { flex: 1; min-width: 0; } }
.video-modal-box { width: min(420px, calc(100vw - 32px)); }
.video-modal-frame { width: 100%; height: min(72vh, 680px); aspect-ratio: auto; max-height: none; }
/* Tableau des séries client : tient dans la largeur du téléphone */
.sets-table[data-tonnage-table] { width: 100%; table-layout: fixed; }
.sets-table[data-tonnage-table] th:nth-child(1), .sets-table[data-tonnage-table] td:nth-child(1) { width: 34px; padding-left: 4px; padding-right: 2px; }
.sets-table[data-tonnage-table] th:nth-child(3), .sets-table[data-tonnage-table] td:nth-child(3) { width: 60px; }
.sets-table[data-tonnage-table] th:nth-child(4), .sets-table[data-tonnage-table] td:nth-child(4) { width: 78px; }
.sets-table[data-tonnage-table] th:nth-child(5), .sets-table[data-tonnage-table] td:nth-child(5) { width: 46px; }
.sets-table[data-tonnage-table] td { padding: 8px 3px; vertical-align: middle; }
.sets-table[data-tonnage-table] input[data-reps], .sets-table[data-tonnage-table] input[data-load] { min-width: 0; width: 100%; padding: 8px 4px; }
.sets-table[data-tonnage-table] .target-cell { font-size: 13px; overflow-wrap: anywhere; }
.workout-exercise { overflow: hidden; }
.video-modal { left: 0; right: 0; width: 100%; }
.block-panel .workout-head .eyebrow { display: none; }

/* Téléphone : aucun champ sous 16 px (évite le zoom automatique d'iPhone), pas de défilement horizontal */
@media (max-width: 780px), (pointer: coarse) { input, select, textarea { font-size: 16px !important; } }
html, body { overflow-x: clip; }
/* Les effets de survol ne restent pas collés après un toucher (iPhone) */
@media (hover: none) {
  .main-nav a:hover { background: none; }
  .main-nav a:not([aria-current]):hover { color: var(--on-brand-muted); }
  .button:hover, .exercise-card:hover, .quick-result:hover, .day-nav a:hover { transform: none; box-shadow: none; }
}
@media (max-width: 780px) { .main-nav a:not([aria-current]), .main-nav a:not([aria-current]):hover, .main-nav a:not([aria-current]):focus { background: none; color: var(--muted); } }
.workout-head .disclosure { margin-top: 2px; } .workout-head .disclosure summary { padding: 2px 0; }
/* Listes simples façon application : programmes et séances */
.list-cards { display: grid; gap: 10px; }
.list-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.list-card:active { background: var(--surface-2); }
.list-card-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.list-card-text strong { font-size: 16px; font-weight: 600; }
.list-card-text small { font-size: 13px; color: var(--muted); }
.list-card-arrow { font-size: 24px; color: var(--muted); line-height: 1; }
.list-card-action { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; background: var(--tint); color: var(--gold-ink); font-size: 14px; font-weight: 600; }
.session-index { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 14px; }
.session-index.is-live { background: var(--gold); color: var(--primary-ink); }
/* Barre d'onglets du bas : taille et position identiques quel que soit l'état (normal, appuyé, actif) */
@media (max-width: 780px) {
  .main-nav a, .main-nav a:hover, .main-nav a:active, .main-nav a:focus, .main-nav a:focus-visible, .main-nav a[aria-current] {
    flex: 1 1 0; min-width: 0; max-width: none; margin: 0; padding: 7px 2px 5px; border: 0; transform: none; transition: color .15s; }
  .main-nav a .nav-icon { transition: color .15s; transform: none; }
}

/* Montres connectées */
.devices-panel form { margin-top: 12px; }
.device-status { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; color: var(--muted); font-size: 14px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.status-dot.ok { background: var(--gold); }
.activity-list { list-style: none; margin: 8px 0 0; padding: 0; }
.activity-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity-list li:last-child { border-bottom: 0; }
.activity-list strong { display: block; font-size: 15px; }
.activity-list small { color: var(--muted); font-size: 12.5px; }
.activity-stats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; color: var(--muted); font-size: 13px; text-align: right; }
.activity-stats span:first-child { color: var(--ink); font-weight: 600; }
.device-disconnect { margin-top: 14px; }
.device-disconnect summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.devices-panel .check-line { align-items: flex-start; font-size: 13.5px; font-weight: 400 !important; line-height: 1.45; color: var(--muted); margin-bottom: 12px; }
.devices-panel .check-line input { margin-top: 2px; }

/* Assistant du coach */
.assistant-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.assistant-layout:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.assistant-chat { display: flex; flex-direction: column; gap: 16px; }
.chat-thread { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 88%; padding: 12px 15px; border-radius: 16px; line-height: 1.5; font-size: 15px; overflow-wrap: anywhere; }
.bubble.coach { align-self: flex-end; background: var(--tint); color: var(--ink); border-bottom-right-radius: 6px; }
.bubble.assistant { align-self: flex-start; background: var(--surface-2, var(--surface)); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.assistant-text p { margin: 0 0 8px; } .assistant-text p:last-child { margin-bottom: 0; }
.assistant-text ul { margin: 4px 0 10px; padding-left: 20px; } .assistant-text li { margin: 3px 0; }
.assistant-text h3 { font-size: 15px; margin: 12px 0 4px; }
.assistant-action { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.assistant-action blockquote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: var(--tint); border-radius: 8px; font-size: 14px; color: var(--ink); }
.chat-form textarea { width: 100%; resize: vertical; min-height: 84px; }
.chat-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 8px; }
.chat-pending { color: var(--muted); font-size: 13.5px; }
.is-busy { opacity: .55; pointer-events: none; }
.suggestions { display: flex; flex-direction: column; gap: 8px; }
.suggestion { text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 14.5px; cursor: pointer; }
.suggestion:hover { border-color: var(--gold); }
.assistant-history h2 { font-size: 16px; }
.assistant-history ul { list-style: none; margin: 0; padding: 0; }
.assistant-history a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.assistant-history a[aria-current] { color: var(--gold); }
.assistant-history small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .assistant-layout { grid-template-columns: minmax(0, 1fr); } }

/* Bilan hebdomadaire calculé */
.week-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.weekly-stats { grid-template-columns: repeat(4, 1fr); }
.weekly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.weekly-wide { grid-column: 1 / -1; }
.weekly-grid h2 { font-size: 18px; margin: 0 0 10px; }
.weekly-lead { font-size: 15.5px; line-height: 1.5; margin: 0 0 10px; }
.small-title { font-size: 13px; margin: 10px 0 4px; }
.plain-list { margin: 0; padding-left: 18px; }
.weekly-goal { padding: 10px 0; border-bottom: 1px solid var(--line); }
.weekly-goal:last-child { border-bottom: 0; }
.weekly-goal-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.weekly-goal p { margin: 6px 0 0; font-size: 13.5px; }
.progress-bar { display: block; width: 100%; height: 6px; }
.progress-bar rect { fill: var(--line); }
.progress-bar rect.fill { fill: var(--gold); }
.feedback { padding: 12px 0; border-bottom: 1px solid var(--line); }
.feedback:last-child { border-bottom: 0; }
.feedback-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14.5px; }
.feedback-head .muted { font-size: 13px; }
.feeling { margin: 6px 0; font-size: 14.5px; }
.feedback blockquote { margin: 6px 0 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: var(--tint); border-radius: 8px; font-size: 14.5px; line-height: 1.5; }
.measure-lines { list-style: none; margin: 0; padding: 0; }
.measure-lines li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.measure-lines li:last-child { border-bottom: 0; }
.measure-lines small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.weekly-points h2 { margin-top: 18px; } .weekly-points h2:first-child { margin-top: 0; }
.point-list { margin: 0; padding-left: 22px; } .point-list li { margin: 7px 0; line-height: 1.5; font-size: 15px; }
.point-list.warn li::marker { color: var(--danger); }
.point-list.positive li::marker { color: var(--success); }
.point-list.advice li::marker { color: var(--gold); font-weight: 700; }
@media (max-width: 780px) { .weekly-stats { grid-template-columns: repeat(2, 1fr); } .weekly-grid { grid-template-columns: minmax(0, 1fr); } }
.teaser-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin: 4px 0 16px; }
.teaser-figures strong { display: block; font-size: 22px; font-family: var(--display); }
.teaser-figures small { color: var(--muted); font-size: 12px; }

/* Accueil client : à faire et évaluation hebdomadaire */
.todo-panel { margin-bottom: 18px; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.todo-list li:last-child a { border-bottom: 0; }
.todo-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); flex-shrink: 0; }
.todo-text { flex: 1; min-width: 0; }
.todo-text strong { display: block; font-size: 15px; }
.todo-text small { color: var(--muted); font-size: 13px; }
.todo-arrow { color: var(--muted); font-size: 22px; line-height: 1; }
.checkin { margin-bottom: 18px; }
.checkin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.checkin-head h2 { margin: 2px 0 0; font-size: 20px; }
.score-badge { min-width: 74px; text-align: center; padding: 8px 10px; border-radius: 14px; background: var(--tint); }
.score-badge strong { font-size: 26px; font-family: var(--display); color: var(--gold); }
.score-badge small { color: var(--muted); font-size: 13px; }
.score-badge.ok { background: var(--success-bg); } .score-badge.ok strong { color: var(--success); }
.score-badge.alert { background: var(--danger-bg); } .score-badge.alert strong { color: var(--danger); }
.checkin-intro { margin: 8px 0 4px; font-size: 14px; }
.checkin-q { border: 0; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.checkin-q legend { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; padding: 0; }
.q-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--gold); font-size: 13px; font-weight: 700; }
.q-text { display: block; margin: 8px 0 2px; font-size: 15px; }
.q-hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.scale-dot { position: relative; cursor: pointer; }
.scale-dot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.scale-dot span { display: grid; place-items: center; aspect-ratio: 1; max-width: 40px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background .12s, color .12s; }
.scale-dot input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.scale-dot input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.scale-ends { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 11.5px; }
.q-comment { margin-top: 10px; }
.q-comment summary { cursor: pointer; color: var(--gold); font-size: 13.5px; }
.q-comment textarea, .checkin-q > textarea { width: 100%; margin-top: 8px; }
.choice-grid.two { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.score-scale { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0; font-size: 12px; color: var(--muted); }
.score-scale span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--gold); }
.score-scale .lvl-ok::before { background: var(--success); } .score-scale .lvl-alert::before { background: var(--danger); }
.checkin-submit { width: 100%; }
.checkin-done { margin: 10px 0; font-weight: 600; }
.checkin-done.ok { color: var(--success); } .checkin-done.watch { color: var(--gold); } .checkin-done.alert { color: var(--danger); }
.checkin-summary { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checkin-summary li { padding: 10px; border-radius: 12px; background: var(--tint); text-align: center; }
.checkin-summary span { display: block; color: var(--muted); font-size: 12px; }
.checkin-summary b { font-size: 18px; }
.checkin-edit summary { cursor: pointer; color: var(--gold); font-size: 14px; padding: 6px 0; }

.quote { margin: 4px 0 8px; padding: 10px 12px; border-left: 3px solid var(--gold); background: var(--tint); border-radius: 8px; font-size: 14.5px; line-height: 1.5; }
.checkin-overview { margin-bottom: 18px; }
.checkin-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.checkin-row:last-child { border-bottom: 0; }
.checkin-row-text { flex: 1; min-width: 0; }
.checkin-row-text strong { display: block; font-size: 15px; }
.checkin-row-text small { color: var(--muted); font-size: 12.5px; }
.score-badge.small { min-width: 58px; padding: 5px 8px; } .score-badge.small strong { font-size: 19px; }
.checkin .choice-chip { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 22px; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.checkin-measures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 430px) { .checkin-measures { grid-template-columns: 1fr 1fr; } .checkin-measures .field:first-child { grid-column: 1 / -1; } }

/* Séance client v2 : barre d'étapes fine, consigne unique, lignes de séries compactes */
.block-tabs.slim { gap: 4px; padding-block: 6px; margin-bottom: 10px; }
.block-tabs.slim a { flex: 0 0 auto; min-width: 0; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.block-tabs.slim .tab-step { width: 20px; height: 20px; min-width: 20px; font-size: 11px; border-width: 1px; }
.block-tabs.slim a[aria-current] { color: var(--ink); border-color: var(--gold); background: var(--tint); }
.block-tabs.slim .tab-label { font: inherit; text-transform: none; letter-spacing: 0; }
.block-panel-title { font-size: 17px; margin: 4px 0 10px; }
.block-panel-title small { color: var(--muted); font-weight: 500; font-size: 13px; }
.workout-exercise { padding: 16px; }
.workout-exercise .workout-head { flex-direction: row; gap: 12px; align-items: center; margin-bottom: 10px; }
.workout-exercise .exercise-mini { flex-shrink: 0; }
.workout-title h2 { font-size: 18px; margin: 0 0 2px; }
.workout-title .disclosure { margin-top: 4px; }
.prescription-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.pill { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2, var(--tint)); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.pill small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.pill.strong { background: var(--tint); border-color: transparent; }
.pill.gold { color: var(--gold); }
.coach-note { margin: 0 0 10px; padding: 9px 12px; border-left: 3px solid var(--gold); background: var(--tint); border-radius: 8px; font-size: 14px; line-height: 1.45; }
.set-grid-v2 { width: 100%; border-collapse: separate; border-spacing: 0 6px; table-layout: fixed; }
.set-grid-v2 thead th { padding: 0 4px 2px; font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: center; text-transform: none; letter-spacing: 0; border: 0; }
.set-grid-v2 thead th:first-child { text-align: left; }
.set-grid-v2 col.c-set { width: 20%; } .set-grid-v2 col.c-in { width: 31%; } .set-grid-v2 col.c-done { width: 18%; }
.set-grid-v2 td { padding: 0 4px; border: 0; vertical-align: middle; background: transparent; }
.set-grid-v2 tr td:first-child { padding-left: 2px; }
.set-num b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); font-size: 13.5px; }
.set-own { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.set-own em { display: block; font-style: normal; color: var(--ink); }
.set-grid-v2 input { width: 100%; max-width: none; min-width: 0; min-height: 46px; padding: 6px 4px; border-radius: 12px; text-align: center; font-size: 17px; font-weight: 600; }
.set-grid-v2 input::placeholder { color: var(--muted); opacity: .55; font-weight: 500; }
.set-grid-v2 .set-done { width: 46px; height: 46px; }
.set-grid-v2 .set-done span[aria-hidden] { width: 40px; height: 40px; }
.set-grid-v2 tr.is-done input { border-color: var(--gold); }
.set-grid-v2 tr.is-done .set-num b { background: var(--gold); color: var(--primary-ink); }
.workout-exercise > .disclosure { margin-top: 8px; font-size: 14px; }
.rest-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rest-chip:hover { border-color: var(--gold); }
@media (max-width: 780px) { .block-tabs.slim { top: 0; top: env(safe-area-inset-top, 0); } }
.set-grid-v2 td:last-child { text-align: center; }
.exercise-note-field { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
.exercise-note-field span { font-size: 12px; color: var(--muted); font-weight: 600; }
.exercise-note-field textarea { min-height: 40px; resize: vertical; font-size: 14px; }

/* Tests sportifs */
.test-badge { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--primary-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.test-entry label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.test-input { display: flex; align-items: center; gap: 10px; }
.test-input input { flex: 1; min-height: 54px; border-radius: 14px; text-align: center; font-size: 22px; font-weight: 700; }
.test-input span { font-size: 16px; font-weight: 600; color: var(--muted); min-width: 52px; }
.test-history { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.test-history b { color: var(--ink); }
.block-exercise-test { color: var(--gold); font-weight: 700; }
.delta.better { color: var(--success); } .delta.worse { color: var(--danger); }
.test-result-line { font-size: 16px; margin: 4px 0; }

/* Factures Stripe */
.invoice-list { list-style: none; margin: 0; padding: 0; }
.invoice-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.invoice-list li:last-child { border-bottom: 0; }
.invoice-main strong { display: block; font-size: 17px; }
.invoice-main small { color: var(--muted); font-size: 13px; }
.invoice-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--gold); }
.invoice-status.paid { background: var(--success-bg); color: var(--success); }
.invoice-status.uncollectible { background: var(--danger-bg); color: var(--danger); }
.invoice-status.void { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.invoice-links { grid-column: 1 / -1; display: flex; gap: 16px; font-size: 14px; font-weight: 600; }
.gmail-steps { margin: 6px 0 12px; padding-left: 20px; font-size: 14.5px; line-height: 1.55; } .gmail-steps li { margin: 4px 0; }
.gmail-steps a { color: var(--gold); font-weight: 600; text-decoration: underline; }
.invite-panel { margin-bottom: 18px; }

/* Cadenas des semaines */
.lock-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--gold); background: var(--tint); color: var(--ink); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.lock-toggle.open { border-color: var(--line-strong); background: transparent; color: var(--muted); }
.lock-toggle:hover { border-color: var(--gold); }
.session-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: flex-end; } .session-tools form { margin: 0; }

/* Copier-coller des modalités */
.copy-chip, .paste-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.copy-chip { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
.copy-chip.is-copied { border-color: var(--gold); color: var(--gold); background: var(--tint); }
.paste-chip { border: 1px solid var(--gold); background: var(--gold); color: var(--primary-ink); }
.paste-form { margin: 0; }
.clipboard-bar, .undo-bar { position: sticky; top: 8px; z-index: 12; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2, var(--surface)); border: 1px solid var(--gold); font-size: 14px; box-shadow: var(--shadow); }
.undo-bar { border-color: var(--line-strong); position: static; }
.undo-bar form { margin: 0; }
.prescription-actions { flex-wrap: wrap; align-items: center; justify-content: flex-end; }

/* Exercices repliables */
.collapse-toggle { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 14px; transition: transform .15s; }
.exercise-block.is-collapsed .collapse-toggle { transform: rotate(-90deg); }
.exercise-summary { display: none; font-size: 13.5px; color: var(--muted); }
.exercise-block.is-collapsed .exercise-summary { display: block; }
.exercise-block.is-collapsed .collapsible-body, .exercise-block.is-collapsed .exercise-block-title small, .exercise-block.is-collapsed .prescription-thumb { display: none; }
.exercise-block.is-collapsed { padding-block: 10px; }
.exercise-block.is-collapsed .exercise-block-head { margin-bottom: 0; }
.progression-badge { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--gold); font-size: 11.5px; font-weight: 600; }
.collapse-all { display: flex; justify-content: flex-end; gap: 12px; margin: 4px 0 6px; }
.collapse-all .text-button { font-size: 13px; color: var(--gold); text-decoration: none; padding: 4px 2px; }
.clipboard-bar[hidden], .paste-form[hidden] { display: none !important; }
@media (max-width: 780px) {
  .exercise-block-head { flex-wrap: wrap; row-gap: 8px; }
  .exercise-block-head .exercise-block-title { flex: 1 1 0; min-width: 0; }
  .exercise-block-head .prescription-actions { flex: 1 0 100%; justify-content: flex-end; }
  .exercise-block.is-collapsed .prescription-actions form:not(.paste-form), .exercise-block.is-collapsed .drag-handle { display: none; }
  .exercise-block.is-collapsed .prescription-actions { flex: 0 0 auto; }
  .exercise-block.is-collapsed .exercise-block-head { align-items: center; }
  .exercise-block.is-collapsed .exercise-block-title { flex: 1 1 55%; }
  .session-panel .section-heading { flex-wrap: wrap; }
}
.set-count { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.set-count input { width: 44px; min-height: 36px; text-align: center; font-weight: 700; padding: 4px; }
.set-count span { color: var(--muted); font-weight: 600; }

/* Programme : vue d'ensemble façon fiche + liste de séances */
.program-card .program-name input { font-size: 20px; font-weight: 600; }
.program-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 10px 0; }
.input-addon { display: flex; align-items: stretch; }
.input-addon input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; width: 100%; }
.input-addon span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 12px 12px 0; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.field .label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.info-value { margin: 10px 0 0; font-size: 15px; }
.program-card .advanced { margin-top: 10px; }
.sessions-card .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.add-session { position: relative; }
.add-session > summary { list-style: none; cursor: pointer; }
.add-session > summary::-webkit-details-marker { display: none; }
.add-session-form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 15; width: min(360px, 86vw); padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: grid; gap: 10px; }
.session-list { list-style: none; margin: 8px 0 0; padding: 0; }
.session-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.session-row:last-child { border-bottom: 0; }
.session-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.session-thumbs { display: flex; flex-shrink: 0; }
.session-thumbs img, .thumb-placeholder { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); background: var(--surface-2, var(--line)); }
.session-thumbs img + img { margin-left: -14px; }
.thumb-placeholder { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.session-text { min-width: 0; }
.session-text strong { display: block; font-size: 16px; }
.session-text small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.session-row-actions form { margin: 0; }
.pill-button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.pill-button:hover { border-color: var(--gold); }
.session-switch { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 4px; scrollbar-width: none; }
.session-switch::-webkit-scrollbar { display: none; }
.session-switch a { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.session-switch a[aria-current] { border-color: var(--gold); color: var(--ink); background: var(--tint); }
.session-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
@media (max-width: 780px) {
  .program-info-grid { grid-template-columns: 1fr 1fr; }
  .session-row { flex-wrap: wrap; }
  .session-row-actions { width: 100%; }
  .pill-button span { display: inline; }
}

/* Titres de séance */
.title-row { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; }
.title-row .block-index { flex-shrink: 0; }
.title-form { flex: 1; min-width: 0; margin: 0; }
.title-input { width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid transparent; background: transparent; color: var(--gold); font: inherit; font-size: 17px; font-weight: 700; border-radius: 10px; }
.title-input:hover, .title-input:focus { border-color: var(--line-strong); background: var(--surface-2, var(--surface)); color: var(--ink); }
.title-row form:not(.title-form) { margin: 0; }
.empty-title { margin: 0 0 8px 40px; }
.add-title-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 6px; }
.add-title-form input { flex: 1 1 220px; min-width: 0; }
.move-title { margin: 0; }
.move-title select { min-height: 32px; padding: 4px 8px; border-radius: 999px; font-size: 12.5px; max-width: 150px; }

/* ==========================================================================
   v8 — Style professionnel sobre (16/11/2026) : fond neutre, texte blanc et
   gris, accent doré réservé aux actions principales et à l'élément actif,
   icônes au trait, angles nets, pas d'effets.
   ========================================================================== */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --radius: 10px;
  --bg: #0d0f12; --surface: #14171c; --surface-2: #1a1e24; --line: #23272e; --line-strong: #2f343c;
  --ink: #e7e9ec; --muted: #8b929c;
  --brand: #0a0c0f; --brand-hover: #15181d; --brand-active: #1c2026; --brand-line: #1f232a; --brand-line-strong: #2b3038;
  --on-brand: #e7e9ec; --on-brand-muted: #8b929c; --brand-text: #e7e9ec;
  --gold: #d4aa55; --gold-ink: #e2bf74; --accent: #d4aa55;
  --primary-bg: #d4aa55; --primary-ink: #14120d; --primary-hover: #e0b865;
  --tint: rgba(212, 170, 85, .10); --tint-strong: rgba(212, 170, 85, .16);
  --glow: none; --shadow: 0 1px 2px rgba(0, 0, 0, .3); --edge: transparent;
  --success: #6fcf97; --success-bg: rgba(111, 207, 151, .10); --success-line: rgba(111, 207, 151, .28);
  --danger: #f08b80; --danger-bg: rgba(240, 139, 128, .10); --danger-line: rgba(240, 139, 128, .3);
  --warn-bg: rgba(212, 170, 85, .08); --warn-line: rgba(212, 170, 85, .28);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f1f3f5; --line: #e4e7eb; --line-strong: #d3d8de;
  --ink: #16191d; --muted: #5f6772;
  --brand: #ffffff; --brand-hover: #f1f3f5; --brand-active: #e9ecef; --brand-line: #e4e7eb; --brand-line-strong: #d3d8de;
  --on-brand: #16191d; --on-brand-muted: #5f6772; --brand-text: #16191d;
  --gold: #9a7224; --gold-ink: #7d5b17; --accent: #9a7224;
  --primary-bg: #16191d; --primary-ink: #ffffff; --primary-hover: #2a2f36;
  --tint: rgba(154, 114, 36, .08); --tint-strong: rgba(154, 114, 36, .14);
  --glow: none; --shadow: 0 1px 2px rgba(16, 24, 40, .05); --edge: transparent;
  --success: #1f7a4a; --success-bg: #e8f5ee; --success-line: #c3e3d0;
  --danger: #b4392d; --danger-bg: #fbecea; --danger-line: #f0c9c4;
  --warn-bg: #fbf5e8; --warn-line: #ecdcb6;
}
@media (prefers-color-scheme: light) { :root[data-theme="auto"] {
  color-scheme: light;
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f1f3f5; --line: #e4e7eb; --line-strong: #d3d8de;
  --ink: #16191d; --muted: #5f6772;
  --brand: #ffffff; --brand-hover: #f1f3f5; --brand-active: #e9ecef; --brand-line: #e4e7eb; --brand-line-strong: #d3d8de;
  --on-brand: #16191d; --on-brand-muted: #5f6772; --brand-text: #16191d;
  --gold: #9a7224; --gold-ink: #7d5b17; --accent: #9a7224;
  --primary-bg: #16191d; --primary-ink: #ffffff; --primary-hover: #2a2f36;
  --tint: rgba(154, 114, 36, .08); --tint-strong: rgba(154, 114, 36, .14);
  --glow: none; --shadow: 0 1px 2px rgba(16, 24, 40, .05); --edge: transparent;
  --success: #1f7a4a; --success-bg: #e8f5ee; --success-line: #c3e3d0;
  --danger: #b4392d; --danger-bg: #fbecea; --danger-line: #f0c9c4;
  --warn-bg: #fbf5e8; --warn-line: #ecdcb6;
} }
html, body { background: var(--bg); color: var(--ink); }
body { font-size: 14.5px; line-height: 1.5; }

/* Icônes au trait */
.icon { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -3px; }
.icon.filled { fill: currentColor; }
button .icon, .button .icon, a .icon, summary .icon { margin-right: 2px; }
.icon-button .icon { margin: 0; }

/* Titres : blancs, sans mot doré ; étiquettes discrètes en casse normale */
h1, h2, h3 { color: var(--ink); letter-spacing: -.01em; }
h1 em, h2 em, h3 em { color: inherit; font-style: normal; }
.page-heading h1 { font-size: 26px; font-weight: 650; line-height: 1.25; }
.page-heading { margin-bottom: 20px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 4px; }
.panel h2, .section-heading h2 { font-size: 16px; font-weight: 650; }
.help-text { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Surfaces : plates, angles nets, une seule bordure fine */
.panel, .stat-card, .exercise-block, .session-panel { border-radius: var(--radius); box-shadow: none; background: var(--surface); border: 1px solid var(--line); }
.panel { padding: 20px; }
.stat-card strong { font-weight: 650; letter-spacing: -.02em; }
.sidebar { background: var(--brand); border-right: 1px solid var(--line); box-shadow: none; }

/* Boutons : principal plein (accent), secondaire bordé, discret en texte */
.button { border-radius: 8px; min-height: 38px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; gap: 6px; box-shadow: none; }
.button.primary { background: var(--primary-bg); color: var(--primary-ink); border-color: var(--primary-bg); }
.button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.button.secondary:hover { background: var(--surface-2); }
.button.small { min-height: 32px; padding: 5px 11px; font-size: 13px; }
.pill-button, .copy-chip, .rest-chip, .suggestion, .lock-toggle, .session-switch a, .choice-chip, .tag, .count-pill, .pill { border-radius: 7px; }
.pill-button, .copy-chip, .rest-chip { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); font-weight: 550; }
.pill-button:hover, .copy-chip:hover, .rest-chip:hover { background: var(--surface-2); border-color: var(--line-strong); }
.paste-chip { border-radius: 7px; }
.icon-button { border-radius: 7px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); display: inline-grid; place-items: center; }
.icon-button:hover { color: var(--ink); background: var(--surface-2); }
.text-link, .text-button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.text-link:hover, .text-button:hover { text-decoration-color: currentColor; }

/* Champs */
input, select, textarea { border-radius: 8px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; box-shadow: none; }

/* Volets repliables : libellé neutre, chevron discret */
.disclosure > summary, details > summary { color: var(--ink); font-weight: 600; }
.disclosure > summary .icon { color: var(--muted); }

/* Créateur de programmes : neutre, accent seulement sur l'état actif */
.title-input { color: var(--ink); font-size: 16px; font-weight: 650; }
.block-index, .tab-step { border-color: var(--line-strong); color: var(--muted); background: transparent; }
.lock-toggle { border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-weight: 600; }
.lock-toggle .icon { width: 13px; height: 13px; }
.lock-toggle.open { color: var(--gold); border-color: var(--gold); }
.copy-chip.is-copied { color: var(--gold); border-color: var(--gold); background: var(--tint); }
.progression-badge, .report-status, .count-pill { font-weight: 600; }
.clipboard-bar { border-color: var(--line-strong); box-shadow: none; }
.session-switch a[aria-current] { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.collapse-toggle { border-radius: 7px; color: var(--muted); }
.collapse-all .text-button { color: var(--muted); }
.prescription-strip .pill.gold, .pill.gold { color: var(--gold); }
.coach-note, .quote, .feedback blockquote, .assistant-action blockquote { background: var(--surface-2); border-left-color: var(--line-strong); }
.scale-dot input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--primary-ink); }

/* Navigation : élément actif sobre */
.main-nav a[aria-current] { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.main-nav a[aria-current] .nav-icon { color: var(--gold); }

/* v8 : plus de petites capitales espacées — casse normale partout (sauf le logo) */
.block-panel-title, .block-tabs a span:nth-child(2), .block-title, .bmr-figure span, .button, .count-pill, .day-nav strong,
.exercise-card-body strong, .eyebrow, .filter-form .field > label, .filter-form legend, .info-list dt, .kcal-line dt, .level-card span,
.list-summary, .login-form-inner h2, .main-nav a, .next-body strong, .page-footer, .ring-label small, .section-title, .session-card-body h2,
.set-grid thead th, .stat-card > span, .story-content h1, .subtle-label, .tag, .target-cell small, .test-badge, .tonnage-live span, .topline,
.trend, .video-figure figcaption, .weeks-bar strong, .workspace-label, h1, th, input[type="file"]::file-selector-button {
  text-transform: none; letter-spacing: 0;
}
.topline, .subtle-label, .set-grid thead th, th, .stat-card > span, .info-list dt, .tag, .count-pill { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.page-footer { font-size: 12px; color: var(--muted); }
.workspace-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat-card strong, .stat-card:first-child strong { color: var(--ink); }
.main-nav a .nav-icon { color: var(--muted); }
.main-nav a[aria-current] .nav-icon { color: var(--gold); }
.week-rows th[scope="row"], .set-grid tbody th { color: var(--muted); font-weight: 600; }
.param-menu > summary { color: var(--ink); border-color: var(--line-strong); }
.param-menu > summary .icon { color: var(--muted); }
.tag { border-radius: 6px; padding: 2px 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.test-badge { border-radius: 6px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); font-size: 12px; }
.row-arrow .icon, .stat-card small .icon { color: var(--muted); }
.timeline-dot { border-color: var(--line-strong); background: var(--surface); }
.live-dot { background: var(--muted); }
.block-tabs.slim a { border-radius: 8px; border-color: var(--line); color: var(--muted); }
.block-tabs.slim a[aria-current] { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.block-tabs.slim a[aria-current] .tab-step { background: var(--gold); border-color: var(--gold); color: var(--primary-ink); }
.block-panel-title span { color: var(--muted); }
@media (max-width: 780px) {
  .main-nav a[aria-current], .main-nav a[aria-current]:hover { background: transparent; color: var(--ink); }
}
:root[data-theme="light"] .sidebar, :root[data-theme="light"] .panel, :root[data-theme="light"] .stat-card, :root[data-theme="light"] .exercise-block { background: var(--surface); background-image: none; }
:root[data-theme="light"] .sidebar { background: var(--brand); border-right: 1px solid var(--line); }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .sidebar, :root[data-theme="auto"] .panel, :root[data-theme="auto"] .stat-card, :root[data-theme="auto"] .exercise-block { background: var(--surface); background-image: none; }
  :root[data-theme="auto"] .sidebar { background: var(--brand); border-right: 1px solid var(--line); }
}
.button, .button:hover, .button.primary, .button.secondary, .icon-button, .pill-button, .copy-chip { box-shadow: none !important; }

/* v8 — interface client */
.install-banner { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: none; }
.install-banner .icon-button { border-color: var(--line-strong); }
.day-nav, .meal-chips a, .choice-chip, .day-nav a { border-radius: 8px; }
.meal-chips a[aria-current], .meal-chips a.is-active, .choice-chip:has(input:checked) { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.scan-option, .entry-option, details.option-card, .option-card { border-color: var(--line); box-shadow: none; }
.option-card[open], details.option-card[open] { border-color: var(--line-strong); }
.option-icon { color: var(--muted); background: var(--surface-2); border-radius: 8px; }
.empty-symbol { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.empty-symbol .icon { width: 22px; height: 22px; }
.search-field .icon { color: var(--muted); }
.trend .icon { width: 14px; height: 14px; }
.todo-dot { border-color: var(--line-strong); }
.goal-ring circle:last-child, .ring-value { stroke: var(--gold); }
.page-footer { justify-content: flex-start; }
.login-story { background: var(--brand); border-right: 1px solid var(--line); }
.login-story .story-art { display: none; }
.story-content h1 { font-size: 34px; }
.checkin .score-badge { border-radius: 8px; }
.scale-dot span { border-radius: 8px; }
.meal-chips a { border-radius: 8px; }
.meal-chips a[aria-current] { color: var(--ink); background: var(--surface-2); border-color: var(--line-strong); }
.add-option { border-radius: 10px; background: var(--surface); }
.add-option[open] { border-color: var(--line-strong); box-shadow: none; }
.day-nav { border-radius: 10px; }
.check-button .icon, .set-done span[aria-hidden] .icon { width: 18px; height: 18px; }
.tab-step .icon, .avatar .icon { width: 14px; height: 14px; }
.check-button { display: inline-grid; place-items: center; }
/* Calendrier client : rattrapage et statuts */
.catch-up-note { display: flex; gap: 8px; align-items: center; padding: 10px 12px; margin: 0 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 14px; }
.cycle-progress { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cycle-progress-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.cycle-progress-head strong { color: var(--ink); font-weight: 600; }
.week-card { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.week-card.is-current { border-color: var(--line-strong); }
.week-card > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.week-card > summary::-webkit-details-marker { display: none; }
.week-card > summary small { margin-left: auto; color: var(--muted); font-size: 13px; }
.week-title { font-weight: 600; color: var(--ink); }
.week-now { margin-left: 6px; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--gold); font-size: 12px; font-weight: 600; }
.week-chevron .icon { width: 16px; height: 16px; transition: transform .2s; }
.week-card[open] .week-chevron .icon { transform: rotate(180deg); }
.week-sessions { padding: 0 8px 8px; }
.week-session { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line); }
.session-dot { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 13px; color: var(--muted); }
.session-dot .icon { width: 14px; height: 14px; }
.status-done .session-dot, .status-caught_up .session-dot { border-color: var(--gold); color: var(--gold); }
.status-in_progress .session-dot { border-color: var(--gold); color: var(--ink); }
.week-session-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.week-session-text strong { font-weight: 600; overflow-wrap: anywhere; }
.week-session-text small { color: var(--muted); font-size: 13px; }
.status-missed .status-tag { color: var(--danger, #e5866f); }
.week-session-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.next-up { margin: 0 0 16px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.next-up .eyebrow { margin: 0 0 4px; color: var(--muted); }
.next-up h2 { margin: 0 0 4px; font-size: 20px; }
.next-up p { margin: 0 0 12px; color: var(--muted); }
.next-up .button { width: 100%; }
.week-session-actions .button { white-space: nowrap; }
/* Correction d'une séance terminée */
.correction-table th, .correction-table td { padding: 6px 4px; }
.correction-table input { width: 100%; min-width: 0; text-align: center; }
.correction-table .set-own { display: block; color: var(--muted); font-size: 12px; }
.correction-log { list-style: none; margin: 0; padding: 0; }
.correction-log li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.correction-log li:first-child { border-top: 0; }
.correction-log span { color: var(--ink); }
.correction-log small { color: var(--muted); }
.summary-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
/* Charges signalées */
.set-flag { display: block; margin-top: 2px; color: var(--danger); font-size: 11px; font-weight: 600; }
.reliability { display: grid; gap: 4px; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--warn-line); border-radius: 8px; background: var(--warn-bg); }
.reliability.aberrant { border-color: var(--danger-line); background: var(--danger-bg); }
.reliability.is-validated { border-color: var(--line); background: var(--surface-2); }
.reliability > span { font-size: 13px; font-weight: 600; }
.reliability small { color: var(--muted); }
.reliability .button { justify-self: start; }
/* RPE de séance */
.rpe-scale legend { font-weight: 600; margin-bottom: 10px; }
.rpe-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rpe-group { display: grid; gap: 4px; text-align: center; }
.rpe-values { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.rpe-chip { position: relative; }
.rpe-chip input { position: absolute; opacity: 0; inset: 0; }
.rpe-chip span { display: grid; place-items: center; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 600; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.rpe-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.rpe-chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--primary-ink); transform: scale(1.04); }
.rpe-group small { color: var(--muted); font-size: 11px; line-height: 1.2; }
@media (max-width: 420px) { .rpe-chip span { height: 36px; font-size: 14px; } .rpe-group small { font-size: 10px; } }
.effort-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
/* Onglet Progrès */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.segmented a { padding: 8px 6px; border-radius: 7px; text-align: center; color: var(--muted); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.segmented a[aria-current] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); }
.period-line { margin: -6px 0 14px; }
.week-mini { list-style: none; margin: 0; padding: 0; }
.week-mini li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.week-mini li:first-child { border-top: 0; }
.week-mini li > span:nth-child(2) { flex: 1; font-weight: 600; }
.week-mini small { color: var(--muted); }
.tip-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.tip-list li { display: grid; gap: 2px; }
.tip-list span { color: var(--muted); }
.bar-chart { margin: 4px 0 0; }
.bar-chart svg { width: 100%; height: 110px; display: block; }
.bar-chart .bar { fill: var(--line-strong); transition: fill .2s; }
.bar-chart .bar.is-last { fill: var(--gold); }
.bar-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 4px; }
.photo-upload { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.photo-upload .file-button { grid-column: 1 / -1; justify-content: center; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.photo-grid figure { position: relative; margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.photo-grid figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.photo-grid form { position: absolute; top: 6px; right: 6px; }
.photo-grid .icon-button { background: rgba(0, 0, 0, .55); color: #fff; border: 0; }
@media (max-width: 520px) { .photo-upload { grid-template-columns: 1fr; } }
@media (max-width: 780px) { .main-nav a.nav-desktop { display: none; } }
/* Raccourcis de l'accueil client */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.quick-action { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 600; transition: border-color .2s, transform .15s; }
.quick-action:hover { border-color: var(--line-strong); }
.quick-action:active { transform: scale(.98); }
.quick-action .icon { width: 20px; height: 20px; color: var(--gold); flex: 0 0 auto; }
/* v9 — micro-interactions (150 à 250 ms, sans excès) */
.button, .icon-button, .quick-action, .list-card, .client-row, .week-card > summary, .choice-chip span, .check-button { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .15s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s ease; }
.button:active, .icon-button:active, .list-card:active, .client-row:active, .check-button:active { transform: scale(.97); }
.panel, .stat-card, .next-up, .week-card { transition: border-color .2s ease; }
.set-done span[aria-hidden] { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.set-done input:checked + span[aria-hidden] { transform: scale(1.06); }
tr.just-done { animation: set-done .25s ease-out; }
@keyframes set-done { from { background: color-mix(in srgb, var(--gold) 18%, transparent); } to { background: transparent; } }
.alert { animation: fade-in .2s ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.auto-rest { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; cursor: pointer; }
.auto-rest > span:first-of-type { flex: 1; }
.auto-rest .icon { color: var(--muted); }
.auto-rest input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auto-rest .switch { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line-strong); transition: background-color .2s ease; flex: 0 0 auto; }
.auto-rest .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.auto-rest input:checked + .switch { background: var(--gold); }
.auto-rest input:checked + .switch::after { transform: translateX(16px); background: var(--primary-ink); }
.auto-rest input:focus-visible + .switch { outline: 2px solid var(--gold); outline-offset: 2px; }

.shift-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.shift-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .shift-form { grid-template-columns: 1fr 1fr; } .shift-form .field:first-child { grid-column: 1 / -1; } }
.trend-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.trend-table th, .trend-table td { padding: 8px 6px; text-align: center; border-top: 1px solid var(--line); }
.trend-table th { color: var(--muted); font-weight: 600; font-size: 12px; border-top: 0; }
.trend-table td:first-child, .trend-table th:first-child { text-align: left; }
.trend-table td.low { color: var(--danger); font-weight: 600; }
.trend-table tr.is-current td { background: var(--surface-2); }
.table-scroll { overflow-x: auto; }
/* Nutrition : résumé compact du jour */
.nutri-summary { display: grid; gap: 10px; padding: 16px; }
.kcal-compact { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kcal-main strong { font-size: 28px; font-weight: 700; color: var(--ink); }
.kcal-main span { color: var(--muted); margin-left: 4px; }
.kcal-left { color: var(--muted); font-size: 14px; }
.kcal-left b { color: var(--ink); }
.kcal-left b.over, .kcal-bar .bar-value.over { color: var(--danger); fill: var(--danger); }
.kcal-bar { width: 100%; height: 8px; display: block; }
.kcal-bar .bar-track, .macro-cell .bar-track { fill: var(--surface-2); }
.kcal-bar .bar-value, .macro-cell .bar-value { fill: var(--gold); transition: width .25s ease; }
.macro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.macro-cell { display: grid; gap: 2px; }
.macro-cell > span { color: var(--muted); font-size: 12px; }
.macro-cell strong { font-size: 16px; font-weight: 600; }
.macro-cell strong small { color: var(--muted); font-weight: 400; font-size: 12px; }
.macro-cell > small { color: var(--muted); font-size: 11px; }
.macro-cell svg { width: 100%; height: 4px; display: block; margin-top: 2px; }
/* Planification annuelle */
.planning-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .planning-grid { grid-template-columns: 1fr; } }
.zoom-switch { max-width: 420px; }
.timeline { display: flex; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; margin-bottom: 8px; }
.tl-labels { flex: 0 0 auto; border-right: 1px solid var(--line-strong); background: var(--surface); }
.tl-scroll { flex: 1; overflow-x: auto; overscroll-behavior-x: contain; }
.tl-grid { display: block; }
.tl-row-bg { fill: transparent; stroke: var(--line); stroke-width: 1; }
.tl-row-bg.top { fill: var(--surface-2); fill-opacity: .35; }
.tl-row-label { fill: var(--muted); font-size: 12px; }
.tl-row-label.top, .tl-head-label { fill: var(--ink); font-size: 13px; font-weight: 600; }
.tl-col { stroke: var(--line); stroke-width: 1; stroke-opacity: .6; }
.tl-col.month-start { stroke: var(--line-strong); stroke-opacity: 1; }
.tl-month { fill: var(--surface-2); stroke: var(--line); }
.tl-month-label { fill: var(--ink); font-size: 11px; font-weight: 600; }
.tl-week { fill: var(--muted); font-size: 10px; }
.tl-today { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 4 3; }
.tl-block { cursor: grab; touch-action: none; outline: none; }
.tl-block.is-dragging { cursor: grabbing; }
.tl-block.is-dragging .tl-block-body { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); }
.tl-block.is-saving { opacity: .6; }
.tl-block-body { stroke: rgba(0, 0, 0, .25); stroke-width: 1; transition: x .12s ease, width .12s ease; }
.tl-block.is-selected .tl-block-body, .tl-block:focus-visible .tl-block-body { stroke: var(--ink); stroke-width: 2; }
.tl-block.is-cycle .tl-block-body { stroke-dasharray: 5 3; stroke: rgba(0, 0, 0, .55); }
.tl-block-label { fill: #0b0f17; font-size: 12px; font-weight: 600; pointer-events: none; }
.tl-handle { fill: rgba(0, 0, 0, .28); cursor: ew-resize; }
.tl-program { fill: transparent; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tl-program-label { fill: var(--muted); font-size: 12px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch svg { width: 30px; height: 30px; display: block; border-radius: 50%; border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.swatch input:checked + svg { border-color: var(--ink); transform: scale(1.08); }
.swatch input:focus-visible + svg { outline: 2px solid var(--gold); outline-offset: 2px; }
.color-field legend { font-weight: 600; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.block-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.block-list li { display: grid; grid-template-columns: 14px 1fr; column-gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.block-list li svg { width: 12px; height: 12px; margin-top: 4px; grid-row: span 2; }
.block-list small { color: var(--muted); }
.quality-group { padding: 6px 0; border-top: 1px solid var(--line); }
.quality-group:first-child { border-top: 0; }
.quality-row > summary { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; list-style: none; }
.quality-row > summary::-webkit-details-marker { display: none; }
.quality-row > summary svg { width: 12px; height: 12px; }
.quality-row > summary .icon { color: var(--muted); width: 14px; height: 14px; margin-left: auto; }
.quality-row.is-child > summary { padding-left: 22px; }
.quality-row.is-child > summary strong { font-weight: 500; }
.quality-row[open] { padding-bottom: 10px; }
.quality-edit { display: grid; gap: 8px; margin: 4px 0 8px 22px; }
@media (max-width: 600px) { .tl-labels { width: 112px; } }
/* Champs date sur iPhone : Safari leur donne une largeur propre et centre la valeur ; on les aligne sur les autres champs. */
input[type="date"], input[type="time"], input[type="datetime-local"] { display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; text-align: left; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field { min-width: 0; }

/* v10 — fluidité visible et sobre.
   Les fondus restent toujours actifs ; les mouvements (glissés, rebonds) sont coupés si l'appareil demande moins d'animations. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .16s ease-in both; }
::view-transition-new(root) { animation: vt-in .22s ease-out both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
html { -webkit-tap-highlight-color: transparent; }
.main-content > *:not(.rest-overlay), .main-content form > .panel { animation: content-in .28s ease-out backwards; }
.main-content > *:nth-child(2) { animation-delay: .03s; }
.main-content > *:nth-child(3) { animation-delay: .06s; }
.main-content > *:nth-child(4) { animation-delay: .09s; }
.main-content > *:nth-child(5) { animation-delay: .12s; }
.main-content > *:nth-child(n+6) { animation-delay: .15s; }
@keyframes content-in { from { opacity: 0; } to { opacity: 1; } }
details[open] > :not(summary) { animation: content-in .2s ease-out backwards; }
.main-nav a .nav-icon { transition: color .2s ease, transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.list-card, .client-row, .quick-action, .week-session, .goal-card, .meal-card, .stat-card, .tl-block-body { transition: background-color .18s ease, border-color .18s ease, transform .15s ease, opacity .18s ease; }
.messages .alert { animation: content-in .25s ease-out backwards; }
.rest-overlay:not([hidden]) { animation: content-in .2s ease-out backwards; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes content-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .main-content > *:not(.rest-overlay), .main-content form > .panel { animation-name: content-rise; }
  details[open] > :not(summary) { animation-name: content-rise; }
  .main-nav a[aria-current] .nav-icon { animation: nav-pop .3s cubic-bezier(.34, 1.56, .64, 1); }
  @keyframes nav-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.12); } 100% { transform: none; } }
  .main-nav a:active .nav-icon { transform: scale(.88); }
  .list-card:active, .client-row:active, .quick-action:active, .week-session:active, .goal-card:active { transform: scale(.985); }
  .set-done input:checked + span[aria-hidden], .rpe-chip input:checked + span, .check-button.is-on, .choice-chip input:checked + span { animation: check-pop .28s cubic-bezier(.34, 1.56, .64, 1); }
  @keyframes check-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
  .rest-overlay:not([hidden]) .rest-box { animation: content-rise .25s ease-out backwards; }
  .button.primary:hover { transform: translateY(-1px); }
}
/* Photo de profil du client à la place des initiales (interface coach) */
.avatar.has-photo { padding: 0; overflow: hidden; background: var(--surface-2); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
/* Téléphone : pas d'indicateur de défilement gris (page et zones défilantes) ; le défilement reste intact. */
@media (max-width: 780px) {
  html, body, * { scrollbar-width: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; background: transparent; }
}
/* Courbes : zone en dégradé sous la courbe, projection pointillée vers l'objectif */
.trend-chart .area-stop-a { stop-color: var(--gold); stop-opacity: .32; }
.trend-chart .area-stop-b { stop-color: var(--gold); stop-opacity: 0; }
.trend-chart .area { stroke: none; }
.trend-chart .dot { fill: var(--surface); stroke: var(--chart-line); stroke-width: 2; r: 4; }
.trend-chart .projection, .trend-chart .goal-line { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.trend-chart .goal-dot { fill: var(--surface); stroke: var(--chart-line); stroke-width: 2; vector-effect: non-scaling-stroke; }
.trend-chart .goal-label { fill: var(--muted); font-size: 12px; font-weight: 600; }
/* Onglet Progrès : onglets soulignés, cartes de courbes, jauges en demi-cercle */
.underline-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.underline-tabs a { position: relative; padding: 12px 6px; text-align: center; color: var(--muted); font-weight: 600; font-size: 16px; transition: color .2s ease; }
.underline-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
.underline-tabs a[aria-current] { color: var(--ink); }
.underline-tabs a[aria-current]::after { transform: scaleX(1); }
.section-title { margin: 22px 0 10px; font-size: 20px; }
.graph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .graph-grid { grid-template-columns: 1fr; } }
.graph-card { display: grid; gap: 2px; border-radius: 16px; }
.graph-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.graph-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.graph-value { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.15; margin-bottom: 6px; }
.graph-value small { font-size: 13px; font-weight: 400; color: var(--muted); }
.graph-card .trend-chart svg { height: 210px; }
.goal-gauge-card { border-radius: 16px; display: grid; gap: 6px; }
.goal-gauge-card h2 { margin: 0; font-size: 22px; }
.goal-deadline { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.goal-deadline .icon { width: 18px; height: 18px; }
.gauge { position: relative; max-width: 340px; width: 100%; margin: 10px auto 0; }
.gauge svg { width: 100%; display: block; overflow: visible; }
.gauge-track { fill: none; stroke: var(--surface-2); stroke-width: 9; stroke-linecap: round; }
.gauge-value { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.gauge-knob { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.gauge strong { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font-size: 44px; font-weight: 600; color: var(--ink); }
.sub-title { margin: 14px 0 4px; font-size: 16px; font-weight: 600; color: var(--muted); }
.sub-goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sub-goals li { display: flex; gap: 12px; align-items: flex-start; }
.sub-box { flex: 0 0 22px; height: 22px; border: 2px solid var(--line-strong); border-radius: 5px; margin-top: 1px; }
.sub-goals strong { display: block; }
.sub-goals small { color: var(--muted); }
.goal-done-note { display: flex; gap: 8px; align-items: center; color: var(--success); margin: 8px 0 0; }
@media (prefers-reduced-motion: no-preference) { .gauge-value { animation: gauge-fill .8s ease-out backwards; } @keyframes gauge-fill { from { stroke-dasharray: 0 126; } } }
.gauge strong small { font-size: 16px; font-weight: 500; color: var(--muted); }
/* Lipides en corail (le vert évoquait un état « validé ») — choix du coach 17/11/2026 */
:root { --macro-fat: #e8896b; }
:root[data-theme="light"] { --macro-fat: #b5543a; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] { --macro-fat: #b5543a; } }
.macro-fat { --macro: var(--macro-fat); }
/* Onglets de la fiche client (17/11/2026) : bandeau horizontal sous le nom, défilant sur téléphone. */
.client-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.client-bar-name { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.client-bar-name strong { font-size: 18px; }
.client-bar-name:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.client-tabs { display: flex; gap: 2px; margin: 0 0 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.client-tabs::-webkit-scrollbar { display: none; }
.client-tabs a { flex: none; padding: 11px 14px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.client-tabs a:hover { color: var(--ink); }
.client-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }
.profile-heading + .client-tabs { margin-top: -6px; }
.plan-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 18px; }
.plan-switch a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 13px; }
.plan-switch a small { color: var(--muted); }
@media (max-width: 430px) { .client-tabs { margin-inline: -16px; padding-inline: 10px; } .client-tabs a { padding: 10px 11px; font-size: 13px; } }
.segmented.two { grid-template-columns: repeat(2, 1fr); max-width: 460px; }
.client-tab-stack { display: grid; gap: 24px; }
/* Alternatives d'exercices (17/11/2026) */
.alt-list { list-style: none; margin: 0; padding: 0; }
.alt-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.alt-item:last-child { border-bottom: 0; }
.alt-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.alt-text small { color: var(--muted); }
.alt-text .video-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; }
.exercise-mini.placeholder { display: inline-grid; place-items: center; color: var(--muted); }
.alt-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: none; cursor: pointer; }
.alt-link:hover { color: var(--ink); }
.alt-note { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.workout-exercise { scroll-margin-top: 150px; }
.alt-current { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.alt-current p { margin: 0; }
.button.small { padding: 7px 12px; font-size: 13px; }
