:root {
  --red: #e8001c;
  --red-dim: rgba(232,0,28,.1);
  --red-border: rgba(232,0,28,.25);
  --black: #080808;
  --surface: #0f0f0f;
  --surface2: #161616;
  --surface3: #1e1e1e;
  --surface4: #252525;
  --border: rgba(255,255,255,.06);
  --border2: rgba(255,255,255,.1);
  --text: #efefef;
  --text-muted: #777;
  --text-dim: #444;
  --green: #22c55e;
  --gold: #d4a847;
  --discord: #5865F2;
}

/* ─── LIGHT MODE ──────────────────────────────────────────────────────────── */
body.theme-light {
  --black:      #f0f2f5;
  --surface:    #ffffff;
  --surface2:   #f7f8fa;
  --surface3:   #eceef1;
  --surface4:   #e0e2e6;
  --border:     rgba(0,0,0,.09);
  --border2:    rgba(0,0,0,.14);
  --text:       #0d0d0d;
  --text-muted: #4a4a4a;
  --text-dim:   #8a8a8a;
  --red-dim:    rgba(232,0,28,.06);
  --red-border: rgba(232,0,28,.3);
}

/* scrollbar */
body.theme-light ::-webkit-scrollbar-thumb { background: #ccc; }

/* fond global */
body.theme-light { background: var(--black); }

/* sidebar */
body.theme-light .sidebar { background: #fff; border-right: 1px solid rgba(0,0,0,.08); }
body.theme-light .sidebar-head { border-bottom-color: rgba(0,0,0,.07); }
body.theme-light .sidebar-user { background: #f7f8fa; border-color: rgba(0,0,0,.08); }
body.theme-light .s-name { color: #111; }
body.theme-light .s-plan { color: #666; }
body.theme-light .sidebar-nav .nav-section { color: #aaa; }
body.theme-light .nav-item { color: #333; }
body.theme-light .nav-item:hover { background: rgba(0,0,0,.04); color: #111; }
body.theme-light .nav-item.active { background: rgba(232,0,28,.07); color: #111; }
body.theme-light .nav-item.active .nav-label-text { color: #111; }
body.theme-light .nc-lock { background: rgba(0,0,0,.05); color: #999; border-color: rgba(0,0,0,.1); }
body.theme-light .nc-free { background: rgba(34,197,94,.1); }
body.theme-light .nc-paid { background: rgba(34,197,94,.1); }
body.theme-light .theme-toggle-row { border-top-color: rgba(0,0,0,.07); }
body.theme-light .theme-switch { background: #ddd; }
body.theme-light .sidebar-admin-link { color: #ccc; }
body.theme-light .sidebar-upgrade { border-color: rgba(232,0,28,.2); background: rgba(232,0,28,.03); }
body.theme-light .su-label { color: #e8001c; }
body.theme-light .su-price { color: #333; }
body.theme-light .su-sub { color: #888; }
body.theme-light .su-btn { background: var(--red); color: #fff; }

/* topbar */
body.theme-light .topbar { background: rgba(240,242,245,.92); border-bottom: 1px solid rgba(0,0,0,.08); }
body.theme-light .topbar-title { color: #999; }
body.theme-light .topbar-title span { color: #444; }
body.theme-light .sidebar-overlay { background: rgba(0,0,0,.25); }

/* pages */
body.theme-light .page-header { border-bottom-color: rgba(0,0,0,.07); }
body.theme-light .page-eyebrow { color: #aaa; }
body.theme-light .page-title { color: #111; }
body.theme-light .page-desc { color: #666; }

/* auth gate */
body.theme-light #auth-gate { background: #f0f2f5; }
body.theme-light .auth-gate-inner { background: #fff; box-shadow: 0 2px 24px rgba(0,0,0,.1); }
body.theme-light .auth-tabs { border-bottom-color: rgba(0,0,0,.1); }
body.theme-light .auth-tab { color: #888; }
body.theme-light .auth-tab.active { color: #111; border-bottom-color: var(--red); }
body.theme-light .auth-label { color: #666; }
body.theme-light .auth-input-wrap input { background: #f7f8fa; border-color: rgba(0,0,0,.14); color: #111; }
body.theme-light .auth-input-icon { color: #aaa; }

/* formulaires */
body.theme-light .form-field label { color: #888; }
body.theme-light .form-field input,
body.theme-light .form-field select,
body.theme-light .form-field textarea { background: #fff; color: #111; border-color: rgba(0,0,0,.14); }
body.theme-light .form-field input::placeholder,
body.theme-light .form-field textarea::placeholder { color: #bbb; }
body.theme-light .form-field input:focus,
body.theme-light .form-field select:focus,
body.theme-light .form-field textarea:focus { border-color: var(--red); }
body.theme-light .tool-section-label { color: #999; border-bottom-color: rgba(0,0,0,.07); }
body.theme-light .calc-btn { background: var(--red); color: #fff; }
body.theme-light .physique-note { color: #aaa; }

/* navy badge / hint */
body.theme-light .navy-hint { background: #f7f8fa; border-color: rgba(0,0,0,.1); border-left-color: rgba(0,200,255,.4); color: #555; }
body.theme-light .physique-bf-preview { background: #fff; border-color: rgba(0,0,0,.1); }
body.theme-light .pbp-label { color: #aaa; }
body.theme-light .pbp-lean { color: #999; }

/* résultat analyse */
body.theme-light .analysis-result { background: #fff; border-color: rgba(0,0,0,.1); }
body.theme-light .ar-eyebrow { color: #aaa; }
body.theme-light .ar-eyebrow::before { background: var(--red); }
body.theme-light .phys-score-hero { border-bottom-color: rgba(0,0,0,.08); }
body.theme-light .phys-body-type { color: #111; }
body.theme-light .phys-body-desc { color: #666; }
body.theme-light .phys-score-label,
body.theme-light .phys-muscle-name { color: #555; }
body.theme-light .phys-score-track,
body.theme-light .phys-muscle-track { background: #e8e8e8; }
body.theme-light .phys-section-title { color: #aaa; }
body.theme-light .phys-muscle-note { color: #888; }
body.theme-light .phys-sw-card { background: #fff; border-color: rgba(0,0,0,.1); }
body.theme-light .phys-sw-item { color: #444; }
body.theme-light .phys-diagnosis { background: #fff; border-color: rgba(0,0,0,.1); }
body.theme-light .phys-diag-label { color: #aaa; }
body.theme-light .phys-diag-text { color: #333; }
body.theme-light .phys-bf-row { background: #fff; border-color: rgba(0,0,0,.1); }
body.theme-light .phys-bf-lean { color: #888; }
body.theme-light .phys-urgency { color: #111; }
body.theme-light .phys-timegoal { color: #888; }

/* slots photo */
body.theme-light .photo-slot { background: #f7f8fa; border-color: rgba(0,0,0,.14); }
body.theme-light .photo-slot:hover { background: #fff; border-color: var(--red); }
body.theme-light .slot-plus { color: #bbb; }
body.theme-light .slot-label { color: #aaa; }
body.theme-light .physique-slots-hint { color: #aaa; }

/* analyse repas */
body.theme-light .analysis-cards { background: transparent; }
body.theme-light .ac { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .ac:hover { background: #f7f8fa; }
body.theme-light .ac-label { color: #aaa; }
body.theme-light .ac-value { color: #333; }
body.theme-light .ac.ac-highlight { border-left-color: var(--red); background: #fff; }
body.theme-light .food-rejection { background: #fff; border-color: rgba(0,0,0,.1); }
body.theme-light .food-info-block { background: #f7f8fa; border-color: rgba(0,0,0,.08); }
body.theme-light .food-info-line { color: #555; }
body.theme-light .food-details-optional { color: #aaa; }

/* tracker */
body.theme-light .tracker-wrap { background: transparent; }
body.theme-light .perf-empty { color: #aaa; }
body.theme-light .perf-history-item { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .perf-history-item:hover { background: #f7f8fa; }
body.theme-light .phi-exo { color: #111; }
body.theme-light .phi-date { color: #999; }
body.theme-light .phi-stats span { color: #555; }
body.theme-light .add-perf-btn { background: var(--red); color: #fff; }

/* modal perf */
body.theme-light .perf-modal-overlay { background: rgba(0,0,0,.35); }
body.theme-light .perf-modal { background: #fff; box-shadow: 0 8px 40px rgba(0,0,0,.15); }
body.theme-light .perf-modal-title { color: #111; }
body.theme-light .perf-modal-date { color: #888; }
body.theme-light .perf-input { background: #f7f8fa; border-color: rgba(0,0,0,.12); color: #111; }
body.theme-light .perf-input:focus { border-color: var(--red); }
body.theme-light .perf-save-btn { background: var(--red); color: #fff; }

/* métabolisme */
body.theme-light .metabo-result { background: #fff; border-color: rgba(0,0,0,.1); }
body.theme-light .metabo-result-item { border-bottom-color: rgba(0,0,0,.07); }
body.theme-light .mr-label { color: #888; }
body.theme-light .mr-val { color: #111; }
body.theme-light .metabo-empty { color: #aaa; }

/* modules */
body.theme-light .module-card { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .module-card::before { opacity: .06; }
body.theme-light .ms-tag { color: #aaa; }
body.theme-light .module-title { color: #111; }
body.theme-light .module-desc { color: #555; }
body.theme-light .ms-dur { color: #aaa; }
body.theme-light .ms-count { color: #aaa; }
body.theme-light .section-header { border-bottom-color: rgba(0,0,0,.07); }
body.theme-light .section-label { color: #aaa; }
body.theme-light .section-line { background: rgba(0,0,0,.06); }

/* profil */
body.theme-light .profile-card { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .profile-display-name { color: #111; }
body.theme-light .profile-display-email { color: #666; }
body.theme-light .profile-display-meta { color: #aaa; }
body.theme-light .profile-section-title { color: #aaa; border-bottom-color: rgba(0,0,0,.07); }
body.theme-light .profile-save-btn { background: var(--red); color: #fff; }

/* modal paiement / présentation */
body.theme-light .modal-overlay { background: rgba(0,0,0,.45); }
body.theme-light .modal { background: #fff; }
body.theme-light .modal-header { background: #f7f8fa; border-bottom-color: rgba(0,0,0,.08); }
body.theme-light .modal-title { color: #111; }
body.theme-light .modal-close { color: #aaa; background: #eee; }
body.theme-light .modal-section-title { color: #888; }
body.theme-light .il-title { color: #111; }
body.theme-light .il-desc { color: #666; }
body.theme-light .modal-prog { background: #f7f8fa; border-color: rgba(0,0,0,.1); }
body.theme-light .mp-label { color: #111; }
body.theme-light .mp-desc { color: #666; }
body.theme-light .modal-claudo-banner { background: #f0f2f5; border-color: rgba(0,0,0,.08); }
body.theme-light .mcb-title { color: #111; }
body.theme-light .mcb-desc { color: #555; }
body.theme-light .modal-avis-title { color: #888; }
body.theme-light .include-list li { border-bottom-color: rgba(0,0,0,.06); }

/* ia banner */
body.theme-light .ia-banner { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .ia-tool { border-color: rgba(0,0,0,.08); }
body.theme-light .ia-tool:hover { background: #f7f8fa; }
body.theme-light .ia-tool-name { color: #333; }

/* coaching */
body.theme-light .cp-hero { background: #1a1a1a; }
body.theme-light .cp-feature-card { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .cp-feature-title { color: #111; }
body.theme-light .cp-feature-desc { color: #555; }

/* food goal bar */
body.theme-light .food-goal-bar { background: #fff; border-color: rgba(0,0,0,.08); }

/* toast */
body.theme-light .toast { background: #222; color: #fff; }

/* dashboard */
body.theme-light .dash-home-header { border-bottom-color: rgba(0,0,0,.07); }
body.theme-light .dash-greeting { color: #111; }
body.theme-light .dash-plan-badge { background: rgba(0,0,0,.06); color: #666; }
body.theme-light .dash-plan-badge.paid { background: rgba(34,197,94,.1); color: #16a34a; }
body.theme-light .dash-cta-text { color: #555; }
body.theme-light .dash-quick-title { color: #aaa; }
body.theme-light .dash-quick-card { background: #fff; border-color: rgba(0,0,0,.08); }
body.theme-light .dash-quick-card:hover { background: #f7f8fa; border-color: rgba(0,0,0,.14); }
body.theme-light .dqc-label { color: #111; }
body.theme-light .dqc-sub { color: #888; }

/* ─── SWITCH THÈME ────────────────────────────────────────────────────────── */
.theme-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; margin: 4px 8px 8px;
  border-top: 1px solid var(--border);
}
.theme-toggle-label {
  font-size: 11px; color: var(--text-dim); letter-spacing: .3px; font-weight: 400;
}
.theme-switch {
  position: relative; width: 36px; height: 20px;
  background: var(--surface3); border: none; border-radius: 10px;
  cursor: pointer; transition: background .25s; flex-shrink: 0;
  padding: 0;
}
.theme-switch.active { background: var(--red); }
.theme-switch-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.theme-switch.active .theme-switch-thumb { transform: translateX(16px); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 2px; }

/* ─── AUTH GATE ───────────────────────────────────────────────────────────── */
#auth-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black); display: flex; overflow-y: auto;
}
#auth-gate.hidden { display: none; }
.gate-inner { min-height: 100vh; display: flex; width: 100%; }

/* LEFT PANEL */
.gate-left {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 72px 80px; position: relative; overflow: hidden;
}
.gate-left::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

/* Decorative background grid */
.gate-left-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(232,0,28,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,0,28,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 30%, transparent 80%);
}
.gate-left-bg::after {
  content: '';
  position: absolute; bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,0,28,.07) 0%, transparent 65%);
  pointer-events: none;
}

.gate-left-content { position: relative; z-index: 1; }

.gate-wordmark {
  display: flex; align-items: center; gap: 14px; margin-bottom: 56px;
}
.gate-mark {
  width: 38px; height: 38px; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 15px; color: #fff; letter-spacing: 1px;
  flex-shrink: 0;
}
.gate-brand-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 5px; color: var(--text);
  line-height: 1.1;
}
.gate-brand-sub {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--red);
  margin-top: 2px; font-weight: 500;
}

.gate-headline {
  font-family: 'Bebas Neue', sans-serif; font-size: 76px; letter-spacing: 2px;
  line-height: .92; margin-bottom: 20px;
}
.gate-headline em { color: var(--red); font-style: normal; }
.gate-sub {
  font-size: 14px; color: var(--text-muted); max-width: 380px;
  margin-bottom: 44px; line-height: 1.8; font-weight: 300;
}

.gate-perks { display: flex; flex-direction: column; gap: 13px; margin-bottom: 44px; }
.gate-perk { display: flex; align-items: center; gap: 12px; }
.gate-perk-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(232,0,28,.1); border: 1px solid rgba(232,0,28,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); flex-shrink: 0;
}
.gate-perk-text { font-size: 13px; color: var(--text-muted); }
.gate-perk-text strong { color: var(--text); font-weight: 500; }

.gate-stats {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border2); border-radius: 8px;
  overflow: hidden; background: var(--surface);
}
.gate-stat {
  flex: 1; padding: 14px 16px; text-align: center;
}
.gate-stat-val {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px;
  color: var(--red); line-height: 1;
}
.gate-stat-label {
  font-size: 10px; color: var(--text-dim); letter-spacing: .5px; margin-top: 3px; text-transform: uppercase;
}
.gate-stat-sep {
  width: 1px; height: 36px; background: var(--border); flex-shrink: 0;
}

/* RIGHT PANEL */
.gate-right {
  width: 460px; flex-shrink: 0; background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 52px 48px; position: relative;
}
.gate-right::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.gate-mobile-header {
  display: none; align-items: center; gap: 12px;
  margin-bottom: 28px; align-self: flex-start;
}

.auth-box { width: 100%; }

.auth-box-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 6px;
}
.auth-box-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 3px;
}
.auth-free-badge {
  display: flex; align-items: center; gap: 5px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2);
  border-radius: 20px; padding: 4px 10px;
  font-size: 10px; font-weight: 600; letter-spacing: .5px; color: var(--green);
  white-space: nowrap; flex-shrink: 0; margin-top: 4px;
}
.auth-free-badge svg { flex-shrink: 0; }

.auth-box-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 28px; }

.auth-tabs {
  display: flex; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1; padding: 10px 0; text-align: center; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
  cursor: pointer; color: var(--text-dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.auth-tab.active { color: var(--text); border-bottom-color: var(--red); }
.auth-tab:hover:not(.active) { color: var(--text-muted); }

.auth-form { display: none; flex-direction: column; gap: 12px; }
.auth-form.active { display: flex; }

/* 2-col row for Prénom + Téléphone */
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim);
}

/* Input with icon */
.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); pointer-events: none; flex-shrink: 0;
}
.auth-input-wrap input,
.auth-input-wrap.pw-wrap input {
  width: 100%;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 6px; padding: 11px 14px 11px 36px; color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 13px; outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.auth-input-wrap input:focus,
.auth-input-wrap.pw-wrap input:focus {
  border-color: rgba(232,0,28,.4);
  background: var(--surface3);
  box-shadow: 0 0 0 3px rgba(232,0,28,.06);
}
.auth-input-wrap input::placeholder,
.auth-input-wrap.pw-wrap input::placeholder { color: var(--text-dim); }

.auth-btn {
  width: 100%; padding: 13px; background: var(--red); border: none; border-radius: 6px;
  font-family: 'Bebas Neue', sans-serif; font-size: 17px; letter-spacing: 3px;
  color: #fff; cursor: pointer; margin-top: 4px;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(232,0,28,.25);
}
.auth-btn:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(232,0,28,.35); }
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-error {
  font-size: 12px; color: #f87171; padding: 10px 13px;
  background: rgba(232,0,28,.06); border: 1px solid rgba(232,0,28,.15);
  border-radius: 6px; display: none;
}
.auth-error.show { display: block; }
.auth-success {
  font-size: 12px; color: var(--green); padding: 10px 13px;
  background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.2);
  border-radius: 6px; display: none;
}
.auth-success.show { display: block; }
.auth-footnote { font-size: 11px; color: var(--text-dim); text-align: center; }

/* Password specifics */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px !important; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 13px; padding: 0; font-family: 'Barlow', sans-serif;
}
.pw-strength { display: flex; gap: 3px; margin-top: 6px; }
.pw-str-bar { flex: 1; height: 2px; background: var(--surface4); border-radius: 99px; transition: background .2s; }
.pw-str-label { font-size: 10px; color: var(--text-dim); margin-top: 4px; letter-spacing: .5px; }

/* ─── APP SHELL ───────────────────────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px; min-height: 100vh; background: var(--surface);
  border-right: 1px solid var(--border); position: fixed; left: 0; top: 0; bottom: 0;
  display: flex; flex-direction: column; z-index: 100; overflow-y: auto;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.sidebar-head {
  padding: 22px 20px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.s-mark {
  width: 28px; height: 28px; background: var(--red); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 12px; color: #fff;
}
.s-brand { font-family: 'Bebas Neue', sans-serif; font-size: 17px; letter-spacing: 3px; }
.s-sub { font-size: 9px; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; margin-top: -1px; }

.sidebar-user {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.user-initials {
  width: 30px; height: 30px; background: var(--surface3);
  border: 1px solid var(--border2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--text-muted); flex-shrink: 0;
  letter-spacing: .5px;
}
.user-name { font-size: 13px; font-weight: 500; }
.user-plan { font-size: 10px; color: var(--text-dim); letter-spacing: .5px; margin-top: 1px; }
.user-plan.paid { color: var(--gold); }
.user-logout {
  margin-left: auto; font-size: 10px; color: var(--text-dim); cursor: pointer;
  padding: 3px 8px; border: 1px solid var(--border); border-radius: 3px;
  background: none; transition: color .15s, border-color .15s; white-space: nowrap;
  font-family: 'Barlow', sans-serif; letter-spacing: .5px;
}
.user-logout:hover { color: #f87171; border-color: rgba(232,0,28,.2); }

.sidebar-nav { flex: 1; padding: 16px 0; }
.nav-section {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); padding: 10px 20px 5px;
}
.nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 20px; cursor: pointer; font-size: 12px; color: var(--text-muted);
  border-left: 2px solid transparent; transition: all .12s;
  user-select: none; text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.03); color: var(--text); }
#nav-video { display: none; } /* Masqué tant qu'aucune vidéo n'est ouverte */
.nav-item.active {
  background: var(--red-dim); color: var(--text);
  border-left-color: var(--red);
}
.nav-item.locked-nav { opacity: .5; cursor: pointer; }
.nav-label-text { font-weight: 500; }
.nav-chip {
  font-size: 9px; letter-spacing: .5px; padding: 2px 6px;
  border-radius: 2px; font-weight: 600;
}
.nc-free { background: rgba(34,197,94,.1); color: var(--green); }
.nc-lock { background: rgba(255,255,255,.05); color: var(--text-dim); }
.nc-paid { background: rgba(212,168,71,.1); color: var(--gold); }

.sidebar-admin-link {
  display: block; text-align: center; font-size: 10px; color: #333;
  text-decoration: none; padding: 6px; letter-spacing: 1px;
  transition: color .2s;
}
.sidebar-admin-link:hover { color: #555; }

.sidebar-upgrade {
  margin: 12px; padding: 16px; border: 1px solid var(--red-border);
  border-radius: 4px; cursor: pointer; transition: background .15s;
}
.sidebar-upgrade:hover { background: var(--red-dim); }
.sidebar-upgrade.hidden { display: none; }
.su-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.su-price { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 2px; line-height: 1; }
.su-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.su-btn {
  width: 100%; margin-top: 12px; padding: 8px; background: var(--red); border: none;
  border-radius: 3px; font-family: 'Bebas Neue', sans-serif; font-size: 14px;
  letter-spacing: 2px; color: #fff; cursor: pointer; transition: opacity .15s;
}
.su-btn:hover { opacity: .88; }

/* ─── MAIN + TOPBAR ───────────────────────────────────────────────────────── */
.main { margin-left: 240px; flex: 1; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,8,.94); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); padding: 0 32px; height: 50px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-title { font-size: 12px; color: var(--text-dim); letter-spacing: .5px; }
.topbar-title span { color: var(--text-muted); }
.hamburger {
  display: none; background: none; border: none; color: var(--text-muted);
  font-size: 20px; cursor: pointer; padding: 6px 8px; margin-right: 8px;
  -webkit-tap-highlight-color: transparent;
}
/* Overlay sombre derrière le sidebar sur mobile */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,.6); backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* Remember me checkbox */
.remember-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); cursor: pointer;
  margin-bottom: 4px;
}
.remember-label input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: var(--red); cursor: pointer;
}

.progress-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 3px; padding: 5px 12px;
}
.progress-bar-wrap { width: 60px; height: 2px; background: var(--surface4); border-radius: 99px; }
.progress-bar-fill { height: 100%; background: var(--red); border-radius: 99px; transition: width .4s; }
.progress-text { font-size: 10px; color: var(--text-dim); letter-spacing: .5px; }

/* ─── PAGES ───────────────────────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* Page header pattern */
.page-header {
  padding: 40px 36px 24px; border-bottom: 1px solid var(--border);
}
.page-eyebrow {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
}
.page-eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--red); }
.page-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 42px; letter-spacing: 2px;
  line-height: 1; margin-bottom: 8px;
}
.page-desc { font-size: 13px; color: var(--text-muted); max-width: 500px; font-weight: 300; }

/* ─── FORMATION PAGE ──────────────────────────────────────────────────────── */
/* ─── PAGE FORMATION ───────────────────────────────────────────────────────── */

/* Header */
.fm-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 36px 20px; border-bottom: 1px solid var(--border);
}
.fm-greeting {
  font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 2px; line-height: 1;
}
.fm-sub { font-size: 12px; color: var(--text-dim); margin-top: 4px; font-weight: 300; letter-spacing: .3px; }

/* Stats */
.fm-stats {
  display: flex; border-bottom: 1px solid var(--border);
}
.fm-stat {
  flex: 1; padding: 18px 28px; border-right: 1px solid var(--border);
  position: relative; transition: background .15s;
}
.fm-stat:last-child { border-right: none; }
.fm-stat:hover { background: var(--surface); }
.fm-stat-val {
  font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px;
  line-height: 1; color: var(--text);
}
.fm-stat-label { font-size: 10px; color: var(--text-dim); letter-spacing: .5px; margin-top: 3px; }

/* IA Banner */
.ia-banner {
  display: flex; align-items: center; gap: 32px;
  padding: 22px 36px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background .2s;
}
.ia-banner:hover { background: rgba(255,255,255,.015); }
.ia-banner-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(232,0,28,.05) 0%, rgba(212,168,71,.04) 50%, transparent 100%);
}
.ia-banner-bg::before {
  content: 'IA'; position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif; font-size: 96px; letter-spacing: 8px;
  color: rgba(255,255,255,.02); pointer-events: none; line-height: 1;
}
.ia-banner-left { flex-shrink: 0; }
.ia-banner-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); margin-bottom: 6px;
}
.ia-dot {
  width: 5px; height: 5px; background: var(--red); border-radius: 50%;
  animation: iaDotPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 5px rgba(232,0,28,.6);
}
@keyframes iaDotPulse { 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
.ia-banner-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 2px; line-height: 1.1;
}
.ia-banner-title span {
  background: linear-gradient(90deg, var(--red), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ia-banner-sub { font-size: 11px; color: var(--text-muted); margin-top: 5px; font-weight: 300; }
.ia-banner-tools {
  display: flex; gap: 10px; flex: 1; justify-content: center; position: relative; z-index: 1;
}
.ia-tool {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; position: relative; z-index: 2;
}
.ia-tool-icon {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.ia-tool:hover .ia-tool-icon { transform: translateY(-3px); }
.ia-tool-name { font-size: 9px; color: var(--text-dim); letter-spacing: .5px; white-space: nowrap; }
.ia-banner-arrow {
  font-size: 20px; color: var(--text-dim); flex-shrink: 0; position: relative; z-index: 1;
  transition: transform .2s, color .2s;
}
.ia-banner:hover .ia-banner-arrow { transform: translateX(4px); color: var(--text-muted); }

/* Modules */
.modules-body { padding: 28px 36px 80px; }
.section-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.section-label {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim);
  white-space: nowrap;
}
.section-tag {
  font-size: 9px; letter-spacing: 1px; padding: 2px 8px; border-radius: 2px; font-weight: 600;
  white-space: nowrap;
}
.st-free { background: rgba(34,197,94,.08); color: var(--green); }
.st-paid { background: rgba(232,0,28,.08); color: var(--red); }
.st-unlocked { background: rgba(212,168,71,.08); color: var(--gold); }
.section-line { flex: 1; height: 1px; background: var(--border); }

.modules-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 28px;
}
.module-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 18px 16px;
  cursor: pointer; transition: all .18s; position: relative;
  display: flex; flex-direction: column; min-height: 175px; overflow: hidden;
}
.module-card::before {
  content: attr(data-num);
  position: absolute; bottom: -10px; right: 8px;
  font-family: 'Bebas Neue', sans-serif; font-size: 64px; letter-spacing: 2px;
  color: rgba(255,255,255,.03); pointer-events: none; line-height: 1;
}
.module-card:hover {
  background: var(--surface2); border-color: var(--border2);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.module-card.locked { cursor: pointer; }
.module-card.locked .module-body-inner { opacity: .38; filter: blur(1.5px); user-select: none; pointer-events: none; }

.module-num-tag {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.module-status-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.msd-active { background: var(--red); box-shadow: 0 0 5px rgba(232,0,28,.5); }
.msd-free { background: var(--green); }
.msd-lock { background: var(--text-dim); }
.msd-unlocked { background: var(--gold); }

.module-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 1px;
  line-height: 1.25; margin-bottom: 8px; color: var(--text);
}
.module-desc { font-size: 11px; color: var(--text-muted); line-height: 1.65; flex: 1; font-weight: 300; }
.module-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.module-meta span { font-size: 10px; color: var(--text-dim); letter-spacing: .3px; }
.module-meta span + span::before { content: '·'; margin-right: 8px; color: var(--text-dim); }
.module-lock-badge {
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; background: var(--surface3); border: 1px solid var(--border2);
  border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 10px;
}

/* Paid banner */
.paid-banner {
  display: flex; align-items: center; gap: 20px; padding: 18px 22px;
  background: linear-gradient(90deg, rgba(232,0,28,.05) 0%, transparent 100%);
  border: 1px solid var(--red-border); border-radius: 8px; margin-bottom: 14px;
}
.paid-banner-text { font-size: 13px; color: var(--text-muted); flex: 1; }
.paid-banner-text strong { color: var(--text); font-weight: 600; }
.paid-banner-btn {
  padding: 9px 22px; background: var(--red); border: none; border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 2px;
  color: #fff; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: opacity .15s;
}
.paid-banner-btn:hover { opacity: .88; }

/* Guide Compléments card */
.module-card-complements {
  position: relative; overflow: hidden; border-radius: 4px;
  background: #0d080d; border: 1px solid rgba(192,38,211,.25);
  cursor: pointer; transition: border-color .2s, transform .15s;
  margin-top: 12px;
}
.module-card-complements:hover { border-color: rgba(192,38,211,.5); transform: translateY(-1px); }
.mc-comp-glow {
  position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,38,211,.18) 0%, transparent 70%);
  pointer-events: none;
}
.mc-comp-inner { padding: 28px; position: relative; z-index: 1; }
.mc-comp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mc-comp-tag {
  font-size: 8px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #22c55e; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2);
  border-radius: 2px; padding: 3px 8px;
}
.mc-comp-badge {
  font-size: 8px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #c026d3; background: rgba(192,38,211,.1); border: 1px solid rgba(192,38,211,.2);
  border-radius: 2px; padding: 3px 8px;
}
.mc-comp-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 36px; line-height: 1; margin-bottom: 10px;
  background: linear-gradient(135deg, #7c3aed, #c026d3, #f72585);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.mc-comp-desc { font-size: 13px; color: var(--text-muted); font-weight: 300; line-height: 1.7; margin-bottom: 22px; }
.mc-comp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mc-comp-btn {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 18px; border-radius: 3px; cursor: pointer; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; transition: opacity .2s;
  border: none;
}
.mc-comp-btn:hover { opacity: .85; }
.mc-comp-btn-pdf {
  background: transparent; border: 1px solid rgba(192,38,211,.3) !important; color: #c026d3;
}
.mc-comp-btn-pdf:hover { background: rgba(192,38,211,.07); opacity: 1; }

/* ─── INTERACTIVE PROGRAMS ──────────────────────────────────────────────────── */
.ip-section-header {
  display: flex; align-items: center; gap: 10px; margin: 28px 0 14px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.ip-section-label {
  font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-muted);
}
.ip-section-badge {
  font-size: 8px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #22c55e; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2);
  border-radius: 2px; padding: 3px 8px;
}
.ip-section-badge-locked {
  color: #e8b84b; background: rgba(232,184,75,.1); border-color: rgba(232,184,75,.2);
}
.ip-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.ip-card {
  position: relative; overflow: hidden; border-radius: 4px;
  cursor: pointer; transition: border-color .2s, transform .15s;
}
.ip-card-masse {
  background: #0d0808; border: 1px solid rgba(232,0,28,.25);
}
.ip-card-masse:hover { border-color: rgba(232,0,28,.55); transform: translateY(-2px); }
.ip-card-seche {
  background: #08090d; border: 1px solid rgba(0,200,255,.25);
}
.ip-card-seche:hover { border-color: rgba(0,200,255,.55); transform: translateY(-2px); }
.ip-card-locked { opacity: .65; }
.ip-card-locked:hover { transform: translateY(-1px); }
.ip-card-glow {
  position: absolute; top: -60px; right: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  pointer-events: none;
}
.ip-card-lock {
  position: absolute; top: 14px; right: 14px; font-size: 18px; opacity: .5; z-index: 2;
}
.ip-card-inner { padding: 26px; position: relative; z-index: 1; }
.ip-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ip-card-tag, .ip-card-badge {
  font-size: 8px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 2px; padding: 3px 8px; border: 1px solid transparent;
}
.ip-card-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 42px; line-height: 1;
  margin-bottom: 2px; display: block;
}
.ip-card-subtitle {
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.ip-card-desc {
  font-size: 12.5px; color: var(--text-muted); font-weight: 300; line-height: 1.7;
  margin-bottom: 22px;
}
.ip-card-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 11px 20px; border-radius: 3px; color: #fff; transition: opacity .2s;
  border: none;
}
.ip-card:not(.ip-card-locked) .ip-card-btn:hover { opacity: .85; }
@media (max-width: 600px) {
  .ip-grid { grid-template-columns: 1fr; }
  .ip-card-title { font-size: 34px; }
}

/* ─── KCAL TRACKER ──────────────────────────────────────────────────────────── */
.kcal-tabs {
  display: flex; gap: 6px; padding: 0 28px 20px;
  border-bottom: 1px solid var(--border); margin-bottom: 0; overflow-x: auto;
}
.kcal-tab {
  padding: 8px 18px; border: 1px solid var(--border); background: transparent;
  color: var(--text-dim); font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; border-radius: 3px; cursor: pointer;
  font-family: 'Barlow', sans-serif; transition: all .15s; white-space: nowrap;
}
.kcal-tab:hover { border-color: var(--red); color: var(--text); }
.kcal-tab.kcal-tab-active { background: var(--red); border-color: var(--red); color: #fff; }
.kcal-tab-content { }
.kcal-section-pad { padding: 28px; display: flex; flex-direction: column; gap: 18px; }

/* Activity cards */
.activity-cards { display: flex; flex-direction: column; gap: 8px; }
.activity-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border: 1px solid var(--border); border-radius: 4px;
  background: var(--surface2); cursor: pointer; transition: border-color .15s, background .15s;
}
.activity-card:hover { border-color: rgba(232,0,28,.3); }
.activity-card.activity-card-selected { border-color: var(--red); background: rgba(232,0,28,.06); }
.activity-card.activity-card-selected .ac-name { color: var(--red); }
.activity-card.activity-card-selected .ac-mult  { color: var(--red); }
.ac-name { font-size: 13px; font-weight: 600; color: var(--text); }
.ac-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.ac-mult { font-size: 13px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }

/* Goal chips */
.goal-chips { display: flex; gap: 8px; }
.goal-chip {
  flex: 1; padding: 10px 6px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text-dim); font-size: 11px;
  font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; font-family: 'Barlow', sans-serif;
  transition: all .15s;
}
.goal-chip-masse.goal-chip-active   { border-color: #4ade80; color: #4ade80; background: rgba(74,222,128,.08); }
.goal-chip-seche.goal-chip-active   { border-color: #f97316; color: #f97316; background: rgba(249,115,22,.08); }
.goal-chip-maintien.goal-chip-active { border-color: #00c8ff; color: #00c8ff; background: rgba(0,200,255,.08); }

/* Today tab */
.kcal-big-bar-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 28px;
}
.kcal-big-nums { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.kcal-consumed-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; }
.kcal-consumed-val { font-family: 'Bebas Neue', sans-serif; font-size: 60px; line-height: 1; color: var(--text); }
.kcal-consumed-val.kcal-over { color: #f97316; }
.kcal-target-mini { text-align: right; }
.kcal-target-label { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; }
.kcal-target-val { font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: var(--text-muted); line-height: 1; }
.kcal-progress-bar { height: 8px; background: rgba(255,255,255,.05); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.kcal-progress-fill { height: 100%; border-radius: 4px; transition: width .6s ease; background: var(--red); }
.kcal-progress-fill.kcal-fill-over { background: #f97316; }
.kcal-status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 3px; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.kcal-status-badge.ok   { background: rgba(0,200,255,.08); border: 1px solid rgba(0,200,255,.2); color: #00c8ff; }
.kcal-status-badge.over { background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.2); color: #f97316; }
.kcal-status-badge.done { background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2); color: #4ade80; }

.kcal-macros-card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 20px 28px; }
.kcal-macros-title { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; margin-bottom: 18px; }
.kcal-macro-row { margin-bottom: 14px; }
.kcal-macro-row:last-child { margin-bottom: 0; }
.kcal-macro-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.kcal-macro-name { color: var(--text-muted); font-weight: 500; }
.kcal-macro-cur  { font-weight: 700; }
.kcal-macro-max  { color: var(--text-dim); font-weight: 300; }
.kcal-macro-bar  { height: 6px; background: rgba(255,255,255,.05); border-radius: 3px; overflow: hidden; }
.kcal-macro-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }

/* Meals tab */
.kcal-add-btn {
  width: 100%; padding: 14px 20px; background: var(--red); color: #fff;
  border: none; font-family: 'Barlow', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; border-radius: 3px; cursor: pointer; transition: opacity .15s;
}
.kcal-add-btn:hover { opacity: .88; }
.kcal-add-btn.kcal-add-manual { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.kcal-add-btn.kcal-add-manual:hover { border-color: var(--red); color: var(--text); }

.kcal-manual-form { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 20px; display: none; flex-direction: column; gap: 12px; }
.kcal-manual-form.open { display: flex; }

.kcal-meals-list { display: flex; flex-direction: column; gap: 8px; }
.kcal-meal-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
}
.kcal-meal-left  { display: flex; align-items: center; gap: 12px; }
.kcal-meal-name  { font-size: 13px; font-weight: 600; color: var(--text); }
.kcal-meal-meta  { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.kcal-meal-right { display: flex; align-items: center; gap: 12px; }
.kcal-meal-kcal  { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--red); line-height: 1; }
.kcal-meal-kcal span { font-family: 'Barlow', sans-serif; font-size: 10px; color: var(--text-dim); font-weight: 300; margin-left: 2px; }
.kcal-meal-del   { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 14px; padding: 4px; transition: color .15s; }
.kcal-meal-del:hover { color: var(--red); }
.kcal-empty-day  { text-align: center; padding: 48px 20px; }
.kcal-empty-icon { font-size: 36px; margin-bottom: 10px; }
.kcal-empty-text { font-size: 13px; color: var(--text-dim); font-weight: 300; line-height: 1.7; }

/* Journal tab */
.kcal-month-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.kcal-stat-cell  { background: var(--surface); padding: 18px 10px; text-align: center; }
.kcal-stat-val   { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--red); line-height: 1; }
.kcal-stat-label { font-size: 10px; color: var(--text-dim); margin-top: 4px; }

.kcal-day-card   { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.kcal-day-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; }
.kcal-day-date   { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.kcal-day-badge  { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
.kcal-day-badge.ok    { background: rgba(74,222,128,.1); color: #4ade80; }
.kcal-day-badge.over  { background: rgba(249,115,22,.1); color: #f97316; }
.kcal-day-badge.under { background: rgba(255,255,255,.05); color: var(--text-dim); }
.kcal-day-kcal   { font-family: 'Bebas Neue', sans-serif; font-size: 26px; }
.kcal-day-bar-wrap { height: 4px; background: rgba(255,255,255,.04); }
.kcal-day-bar-fill { height: 100%; transition: width .4s; }
.kcal-day-meals  { display: none; border-top: 1px solid var(--border); }
.kcal-day-meals.open { display: block; }
.kcal-day-meal-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,.04); }
.kcal-day-meal-row:last-child { border-bottom: none; }
.kcal-day-meal-name { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.kcal-day-meal-time { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.kcal-day-meal-cal  { font-size: 12px; font-weight: 700; color: var(--text-muted); }

/* Light mode overrides */
body.theme-light .activity-card { background: #f0f0f0; border-color: rgba(0,0,0,.1); }
body.theme-light .activity-card.activity-card-selected { background: rgba(232,0,28,.06); border-color: var(--red); }
body.theme-light .goal-chip { background: #f0f0f0; border-color: rgba(0,0,0,.1); }
body.theme-light .kcal-big-bar-wrap,
body.theme-light .kcal-macros-card,
body.theme-light .kcal-meal-row,
body.theme-light .kcal-manual-form,
body.theme-light .kcal-day-card,
body.theme-light .kcal-stat-cell { background: #fff; border-color: rgba(0,0,0,.1); }
body.theme-light .kcal-progress-bar,
body.theme-light .kcal-macro-bar { background: rgba(0,0,0,.07); }
body.theme-light .kcal-month-stats { background: rgba(0,0,0,.1); border-color: rgba(0,0,0,.1); }
body.theme-light .kcal-day-meals { border-top-color: rgba(0,0,0,.08); }
body.theme-light .kcal-day-meal-row { border-bottom-color: rgba(0,0,0,.06); }
body.theme-light .kcal-tab { border-color: rgba(0,0,0,.12); color: #666; }

/* ─── TRACKER CARDS ─────────────────────────────────────────────────────────── */
.tr-table-legend { display: none; } /* plus utile avec les cards */
.tr-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 20px 24px;
}
.ex-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: border-color .15s, transform .12s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.ex-card:hover { border-color: rgba(232,0,28,.35); transform: translateY(-2px); }
.ex-card:active { transform: translateY(0); }
.ex-card.ex-card-empty { opacity: .65; }
.ex-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
.ex-card-name { font-size: 11px; font-weight: 600; color: var(--text-muted); line-height: 1.35; flex: 1; }
.ex-card-pr { font-family: 'Bebas Neue', sans-serif; font-size: 34px; line-height: 1; color: var(--text); margin-bottom: 6px; }
.ex-card-pr.empty { color: var(--text-dim); }
.ex-card-pr span { font-size: 13px; color: var(--text-muted); font-family: 'Barlow', sans-serif; font-weight: 300; margin-left: 2px; }
.ex-no-data { font-size: 11px; color: var(--text-dim); font-family: 'Barlow', sans-serif; }
.ex-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; min-height: 16px; }
.ex-card-prog { font-size: 11px; font-weight: 700; }
.ex-card-prog.up { color: #22c55e; }
.ex-card-prog.down { color: var(--red); }
.ex-card-prog.neutral { color: var(--text-dim); }
.ex-card-last { font-size: 9px; color: var(--text-dim); max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.mini-graph { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-bottom: 10px; flex: 1; align-content: flex-end; }
.mini-bar { flex: 1; border-radius: 1px; min-height: 2px; background: rgba(255,255,255,.1); }
.mini-bar.last { background: var(--red); }
.ex-card-add {
  width: 100%; padding: 7px 0; background: transparent; border: 1px solid var(--border);
  border-radius: 3px; color: var(--text-dim); font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  font-family: 'Barlow', sans-serif; transition: all .15s; margin-top: auto;
}
.ex-card-add:hover { border-color: var(--red); color: var(--red); background: rgba(232,0,28,.05); }

/* Level badges */
.lvl-badge { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; white-space: nowrap; flex-shrink: 0; display: inline-block; }
.lvl-debutant { background: rgba(100,100,100,.12); color: #666; }
.lvl-bronze { background: rgba(205,127,50,.15); color: #cd7f32; border: 1px solid rgba(205,127,50,.2); }
.lvl-argent { background: rgba(192,192,192,.12); color: #c0c0c0; border: 1px solid rgba(192,192,192,.18); }
.lvl-or { background: rgba(232,184,75,.12); color: #e8b84b; border: 1px solid rgba(232,184,75,.2); }
.lvl-elite { background: rgba(0,200,255,.12); color: #00c8ff; border: 1px solid rgba(0,200,255,.2); }

.tr-stat-level-cell { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.tr-overall-badge { font-size: 14px !important; padding: 6px 14px !important; letter-spacing: 2px !important; margin: 4px 0; }

/* Chart amélioré */
.perf-chart-svg { display: block; width: 100%; height: 140px; }

/* Light mode overrides */
body.theme-light .ex-card { background: #fff; border-color: rgba(0,0,0,.1); }
body.theme-light .ex-card:hover { border-color: rgba(232,0,28,.3); }
body.theme-light .mini-bar { background: rgba(0,0,0,.1); }
body.theme-light .ex-card-add { border-color: rgba(0,0,0,.12); color: #999; }

/* Responsive */
@media (max-width: 900px) {
  .tr-cards-grid { grid-template-columns: repeat(2, 1fr); padding: 12px 16px 20px; }
}
@media (max-width: 480px) {
  .tr-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px 12px 16px; }
  .ex-card { padding: 11px 11px 10px; }
  .ex-card-pr { font-size: 28px; }
}

/* Discord section */
.discord-section {
  margin-top: 8px; padding: 24px 28px;
  background: var(--surface); border: 1px solid rgba(88,101,242,.2); border-radius: 10px;
  display: flex; align-items: center; gap: 20px;
}
.discord-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 2px; }
.discord-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-weight: 300; }
.discord-btn {
  margin-left: auto; flex-shrink: 0; background: #5865F2; border: none;
  border-radius: 4px; padding: 10px 22px; font-family: 'Bebas Neue', sans-serif;
  font-size: 14px; letter-spacing: 2px; color: #fff; cursor: pointer; transition: opacity .15s;
}
.discord-btn:hover { opacity: .88; }

/* ─── PROGRAMME PAGES (MASSE / SÈCHE) ────────────────────────────────────── */
.prog-page-header { padding: 28px 28px 0; margin-bottom: 24px; }
.prog-page-back { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim); cursor: pointer; margin-bottom: 20px; transition: color .2s; }
.prog-page-back:hover { color: var(--text-muted); }
.prog-page-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 4px; }
.prog-page-title { font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 4px; margin-bottom: 6px; }
.prog-page-sub { font-size: 12px; color: var(--text-muted); }
.prog-page-desc { font-size: 13px; color: var(--text-muted); margin-top: 10px; max-width: 540px; line-height: 1.7; }

/* ─── VIDEO PAGE ──────────────────────────────────────────────────────────── */
.video-layout { display: grid; grid-template-columns: 1fr 300px; gap: 0; min-height: calc(100vh - 50px); }
.video-main { padding: 28px 32px 60px; border-right: 1px solid var(--border); }
.video-sidebar-panel { padding: 20px; overflow-y: auto; }

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-dim); margin-bottom: 20px;
}
.breadcrumb span { cursor: pointer; transition: color .12s; }
.breadcrumb span:hover { color: var(--text-muted); }
.breadcrumb .sep { cursor: default; color: var(--text-dim); }
.bc-current { color: var(--text-muted) !important; cursor: default !important; }

.video-wrap {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 4px; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.yt-thumb-wrap { position: absolute; inset: 0; cursor: pointer; overflow: hidden; }
.yt-thumb-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.yt-thumb-wrap:hover .yt-thumb-img { transform: scale(1.03); }
.yt-thumb-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(0,0,0,.35); transition: background .2s; }
.yt-thumb-wrap:hover .yt-thumb-overlay { background: rgba(0,0,0,.55); }
.yt-play-btn { width: 64px; height: 64px; background: rgba(0,0,0,.7); border: 2px solid rgba(255,255,255,.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.yt-thumb-wrap:hover .yt-play-btn { transform: scale(1.1); background: #e8001c; border-color: transparent; }
.yt-thumb-label { font-size: 11px; color: rgba(255,255,255,.8); letter-spacing: 1px; }
.video-placeholder {
  text-align: center; color: var(--text-dim);
}
.video-placeholder-icon {
  width: 48px; height: 48px; background: var(--surface3); border: 1px solid var(--border2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 18px;
}
.video-placeholder p { font-size: 12px; color: var(--text-dim); }

.video-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 2px; margin-bottom: 8px; }
.video-meta { display: flex; gap: 0; margin-bottom: 16px; }
.video-meta-item { font-size: 11px; color: var(--text-dim); padding-right: 12px; margin-right: 12px; border-right: 1px solid var(--border); }
.video-meta-item:last-child { border-right: none; }
.video-desc { font-size: 13px; color: var(--text-muted); line-height: 1.8; font-weight: 300; }

.panel-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.video-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 28px; }
.video-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px;
  border-radius: 3px; cursor: pointer; transition: background .12s;
}
.video-item:hover { background: var(--surface2); }
.video-item.active-vid { background: var(--red-dim); }
.vi-num {
  width: 22px; height: 22px; background: var(--surface3); border: 1px solid var(--border);
  border-radius: 2px; display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--text-dim); flex-shrink: 0;
}
.video-item.active-vid .vi-num { background: var(--red); border-color: var(--red); color: #fff; }
.vi-name { font-size: 12px; font-weight: 500; line-height: 1.3; }
.vi-dur { font-size: 10px; color: var(--text-dim); margin-top: 1px; }

/* Comments */
.comments-section { }
.comments-title { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.comment-item { display: flex; gap: 10px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.comment-avatar {
  width: 26px; height: 26px; background: var(--surface3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--text-dim); flex-shrink: 0; letter-spacing: .5px;
}
.comment-name { font-size: 12px; font-weight: 600; }
.comment-time { font-size: 10px; color: var(--text-dim); margin-left: 7px; }
.comment-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.6; font-weight: 300; }
.comment-input-wrap { display: flex; gap: 8px; margin-top: 12px; }
.comment-input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 3px; padding: 9px 12px; color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 12px; outline: none;
  transition: border-color .15s;
}
.comment-input:focus { border-color: var(--red-border); }
.comment-input::placeholder { color: var(--text-dim); }
.comment-send {
  padding: 9px 14px; background: var(--surface3); border: 1px solid var(--border);
  border-radius: 3px; color: var(--text-muted); cursor: pointer; font-size: 11px;
  font-family: 'Barlow', sans-serif; transition: all .12s; white-space: nowrap; letter-spacing: .5px;
}
.comment-send:hover { border-color: var(--red-border); color: var(--red); }

/* ─── TOOLS PAGE ──────────────────────────────────────────────────────────── */
.tl-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 28px 36px 24px; border-bottom: 1px solid var(--border);
}
.tl-eyebrow {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 5px;
}
.tl-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 2px; line-height: 1;
}
.tl-badge {
  font-size: 10px; color: var(--text-dim); letter-spacing: .5px; padding-bottom: 4px;
}

.tl-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  padding: 28px 36px; margin: 0;
}

.tl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
}
.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
  border-color: var(--border2);
}
.tl-card-accent {
  height: 3px; background: var(--ac); flex-shrink: 0;
  box-shadow: 0 0 16px var(--ac);
}
.tl-card-body {
  padding: 22px 22px 16px; flex: 1; display: flex; flex-direction: column; gap: 0;
}
.tl-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--ic); border: 1px solid var(--ib);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; flex-shrink: 0;
  transition: transform .18s;
}
.tl-card:hover .tl-card-icon { transform: scale(1.08); }
.tl-card-cat {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 5px; font-weight: 600;
}
.tl-card-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 1.5px;
  line-height: 1; margin-bottom: 10px; color: var(--text);
}
.tl-card-desc {
  font-size: 12px; color: var(--text-muted); line-height: 1.75; font-weight: 300; flex: 1;
}
.tl-card-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px;
}
.tl-tag {
  font-size: 9px; letter-spacing: .5px; padding: 3px 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 3px; color: var(--text-dim);
}
.tl-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; border-top: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--fc);
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.1) 100%);
  transition: background .15s;
}
.tl-card:hover .tl-card-footer { background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.2) 100%); }
.tl-arrow { font-size: 16px; transition: transform .18s; }
.tl-card:hover .tl-arrow { transform: translateX(4px); }

/* PDF */
.tl-pdf {
  margin: 0 36px 40px; padding: 18px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: border-color .15s;
}
.tl-pdf:hover { border-color: var(--border2); }
.tl-pdf-left { display: flex; align-items: center; gap: 16px; }
.tl-pdf-icon {
  width: 40px; height: 40px; background: var(--surface3); border: 1px solid var(--border2);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
}
.tl-pdf-title { font-size: 13px; font-weight: 600; color: var(--text); }
.tl-pdf-sub { font-size: 11px; color: var(--text-dim); margin-top: 3px; font-weight: 300; }
.tl-pdf-btn {
  flex-shrink: 0; padding: 9px 20px; background: transparent;
  border: 1px solid var(--border2); border-radius: 6px; color: var(--text-muted);
  font-size: 12px; font-weight: 500; text-decoration: none;
  transition: all .15s; white-space: nowrap;
}
.tl-pdf-btn:hover { border-color: var(--red-border); color: var(--red); }

/* ─── TRACKER PAGE ────────────────────────────────────────────────────────── */
.tracker-wrap { padding: 28px 36px 80px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; margin-bottom: 24px;
}
.stat-box { background: var(--surface); padding: 20px; }
.stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; line-height: 1; }
.stat-label { font-size: 10px; color: var(--text-dim); margin-top: 4px; letter-spacing: .5px; }

.tracker-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tracker-tab {
  padding: 7px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 3px; font-size: 11px; cursor: pointer; color: var(--text-dim);
  transition: all .12s; letter-spacing: .5px;
}
.tracker-tab.active { background: var(--red-dim); border-color: var(--red-border); color: var(--text); }
.tracker-tab:hover:not(.active) { border-color: var(--border2); color: var(--text-muted); }

.exercise-table {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; margin-bottom: 16px;
}
.ex-header {
  display: grid; grid-template-columns: 1fr 90px 120px 80px 80px;
  padding: 10px 18px; border-bottom: 1px solid var(--border);
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim);
}
.ex-row {
  display: grid; grid-template-columns: 1fr 90px 120px 80px 80px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  align-items: center; transition: background .12s; cursor: pointer;
}
.ex-row:last-child { border-bottom: none; }
.ex-row:hover { background: var(--surface2); }
.ex-name { font-size: 13px; font-weight: 500; }
.ex-pr { font-family: 'Bebas Neue', sans-serif; font-size: 16px; color: var(--gold); letter-spacing: .5px; }
.ex-last { font-size: 11px; color: var(--text-muted); }
.ex-prog { font-size: 11px; color: var(--green); }
.mini-graph { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.mini-bar { width: 6px; background: var(--surface4); border-radius: 1px; }
.mini-bar.last { background: var(--red); }

.add-perf-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: transparent; border: 1px solid var(--border2); border-radius: 3px;
  color: var(--text-muted); font-size: 12px; cursor: pointer;
  transition: all .12s; letter-spacing: .5px;
}
.add-perf-btn:hover { border-color: var(--red-border); color: var(--red); }
.add-perf-btn::before { content: '+'; font-size: 16px; line-height: 1; }

/* ─── TRACKER REDESIGN (tr-* classes) ─────────────────────────────────────── */
.tr-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 16px;
}
.tr-eyebrow { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.tr-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px; }
.tr-add-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; background: var(--red); border: none; border-radius: 3px;
  color: #fff; font-family: 'Barlow', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .5px; cursor: pointer; transition: opacity .12s;
}
.tr-add-btn:hover { opacity: .85; }

.tr-stats {
  display: grid; grid-template-columns: repeat(3, 1fr) repeat(3, 1fr);
  gap: 1px; background: var(--border); margin: 0 28px 20px; border-radius: 4px; overflow: hidden;
}
.tr-stat { background: var(--surface); padding: 16px 18px; }
.tr-stat-main { background: var(--surface2); position: relative; }
.tr-stat-main::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold);
}
.tr-stat-label { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.tr-stat-val { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: .5px; line-height: 1; }
.tr-stat-main .tr-stat-val { font-size: 30px; }
.tr-gold { color: var(--gold); }
.tr-green { color: var(--green); }
.tr-stat-sub { font-size: 9px; color: var(--text-dim); margin-top: 4px; }

/* Tooltip 1RM */
.tooltip-1rm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; background: var(--surface4); border-radius: 50%;
  font-size: 9px; color: var(--text-muted); cursor: default;
  position: relative; font-style: normal; vertical-align: middle; margin-left: 2px;
}
.tooltip-1rm .tooltip-1rm-text {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); background: var(--surface3);
  border: 1px solid var(--border2); color: var(--text); font-size: 11px;
  line-height: 1.5; padding: 8px 10px; border-radius: 6px;
  width: 220px; white-space: normal; z-index: 100; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.tooltip-1rm:hover .tooltip-1rm-text { display: block; }

.tr-tabs-row {
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px 10px; border-bottom: 1px solid var(--border);
}
.tr-tabs { display: flex; gap: 4px; }
.tr-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: transparent; border: 1px solid var(--border2);
  border-radius: 3px; font-family: 'Barlow', sans-serif; font-size: 11px; font-weight: 500;
  color: var(--text-dim); cursor: pointer; transition: all .12s; letter-spacing: .4px;
}
.tr-tab.active { background: var(--red-dim); border-color: var(--red-border); color: var(--text); }
.tr-tab:hover:not(.active) { border-color: var(--border2); color: var(--text-muted); }
.tr-tab svg { opacity: .6; }
.tr-tab.active svg { opacity: 1; }

.tr-table-legend {
  display: grid; grid-template-columns: 1fr 90px 130px 80px 80px 44px;
  flex: 1; padding: 0 18px;
  font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim);
}

.tr-table-wrap { padding: 0 28px 80px; }
.tr-table-wrap .ex-row { grid-template-columns: 1fr 90px 130px 80px 80px 44px; }

.ex-name { font-size: 13px; font-weight: 500; }
.ex-pr { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--gold); letter-spacing: .5px; }
.ex-last { font-size: 11px; color: var(--text-muted); }
.ex-prog { font-size: 11px; font-weight: 600; color: var(--text-dim); }
.ex-prog.up { color: var(--green); }
.ex-prog.down { color: var(--red); }
.mini-graph { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.mini-bar { width: 6px; background: var(--surface4); border-radius: 1px; flex-shrink: 0; }
.mini-bar.last { background: var(--red); }
.ex-row-add {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border2); border-radius: 50%;
  color: var(--text-dim); font-size: 18px; line-height: 1; cursor: pointer;
  transition: all .12s;
}
.ex-row-add:hover { border-color: var(--red-border); color: var(--red); background: var(--red-dim); }
.ex-empty { color: var(--text-dim); font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 400; }

/* ─── METABOLISM PAGE ─────────────────────────────────────────────────────── */
.calc-wrap { padding: 28px 36px 80px; max-width: 640px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 3px; padding: 10px 13px; color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 14px; outline: none;
  transition: border-color .15s; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--red-border); outline: none; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-dim); }
.form-field textarea { line-height: 1.6; font-family: inherit; font-size: 12px; }
.food-details-optional { font-size: 8px; color: var(--text-dim); font-weight: 400; letter-spacing: 0; text-transform: none; margin-left: 6px; }
.form-field select option { background: var(--surface2); }
.calc-btn {
  padding: 12px 28px; background: var(--red); border: none; border-radius: 3px;
  font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 2px;
  color: #fff; cursor: pointer; transition: opacity .15s;
}
.calc-btn:hover { opacity: .88; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.results-wrap {
  background: var(--border); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; margin-top: 24px;
}
.result-card { background: var(--surface); padding: 20px; }
.result-card.highlight { background: var(--surface2); border-left: 2px solid var(--red); }
.result-val { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 1px; line-height: 1; }
.result-unit { font-size: 14px; color: var(--text-muted); font-family: 'Barlow', sans-serif; }
.result-label { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.result-sub { font-size: 10px; color: var(--text-dim); margin-top: 2px; font-weight: 300; }

/* ─── PHYSIQUE PAGE ───────────────────────────────────────────────────────── */
.physique-wrap { padding: 28px 36px 80px; max-width: 640px; }
.upload-zone {
  border: 1px dashed var(--border2); border-radius: 4px; padding: 36px;
  text-align: center; cursor: pointer; transition: all .2s; margin-bottom: 20px;
  position: relative;
}
.upload-zone:hover { border-color: var(--red-border); background: var(--red-dim); }
.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-placeholder-icon {
  width: 44px; height: 44px; background: var(--surface3); border: 1px solid var(--border2);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 16px; color: var(--text-dim);
}
.upload-title { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.upload-sub { font-size: 11px; color: var(--text-dim); margin-top: 4px; font-weight: 300; }
.upload-preview { max-width: 100%; max-height: 180px; border-radius: 3px; object-fit: contain; display: none; margin: 0 auto; }
.analysis-result {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 24px; margin-top: 20px; display: none;
}
.analysis-result.show { display: block; }
.analysis-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.analysis-text { font-size: 13px; color: var(--text-muted); line-height: 1.8; white-space: pre-wrap; font-weight: 300; }

/* ─── DISCORD PAGE ────────────────────────────────────────────────────────── */
/* ─── DISCORD PAGE ─────────────────────────────────────────────────────────── */

/* Hero */
.dc-hero {
  position: relative; overflow: hidden;
  padding: 52px 40px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.dc-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(88,101,242,.18) 0%, transparent 70%);
  pointer-events: none;
}
.dc-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--black) 100%);
}
.dc-hero-content { position: relative; z-index: 1; }
.dc-logo {
  width: 52px; height: auto; margin-bottom: 20px;
  filter: drop-shadow(0 0 16px rgba(88,101,242,.5));
}
.dc-hero-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 3px;
  line-height: 1; margin-bottom: 12px;
}
.dc-hero-sub {
  font-size: 14px; color: var(--text-muted); max-width: 420px;
  margin: 0 auto 28px; font-weight: 300; line-height: 1.8;
}
.dc-join-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; background: #5865F2; border: none; border-radius: 6px;
  font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .5px; color: #fff; cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 20px rgba(88,101,242,.35);
}
.dc-join-btn:hover { background: #4752c4; box-shadow: 0 6px 28px rgba(88,101,242,.5); transform: translateY(-1px); }
.dc-join-btn svg { width: 18px; height: 14px; flex-shrink: 0; }

/* Body layout */
.dc-body {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: 420px;
}

/* Sidebar */
.dc-sidebar {
  background: #111214; border-right: 1px solid var(--border);
  padding: 20px 0 20px; display: flex; flex-direction: column;
}
.dc-server-header {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px 16px; border-bottom: 1px solid rgba(255,255,255,.04); margin-bottom: 12px;
}
.dc-server-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: #5865F2; display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 16px; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(88,101,242,.4);
}
.dc-server-name { font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--text); }
.dc-server-meta { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.dc-section-label {
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim); padding: 0 16px; margin-bottom: 4px; font-weight: 600;
}
.dc-channels-list { display: flex; flex-direction: column; gap: 1px; }
.dc-ch-item {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 16px; cursor: pointer; border-radius: 0;
  color: var(--text-dim); font-size: 13px; transition: all .12s;
  position: relative;
}
.dc-ch-item:hover { background: rgba(255,255,255,.04); color: var(--text-muted); }
.dc-ch-active { background: rgba(88,101,242,.12) !important; color: var(--text) !important; }
.dc-ch-active::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: #5865F2; border-radius: 0 2px 2px 0;
}
.dc-ch-hash { color: var(--text-dim); font-size: 16px; line-height: 1; flex-shrink: 0; }
.dc-ch-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-ch-notif {
  background: var(--red); color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 8px; flex-shrink: 0;
}
.dc-members { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }
.dc-member {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 8px; border-radius: 4px; cursor: default; transition: background .12s;
}
.dc-member:hover { background: rgba(255,255,255,.04); }
.dc-member-av {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff; position: relative;
}
.dc-member-name { flex: 1; font-size: 12px; color: var(--text-muted); }
.dc-member-badge {
  background: #5865F2; color: #fff; font-size: 8px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px; letter-spacing: .5px; margin-left: 5px;
}
.dc-member-dot {
  width: 8px; height: 8px; background: var(--green);
  border-radius: 50%; border: 2px solid #111214; flex-shrink: 0;
  box-shadow: 0 0 5px rgba(34,197,94,.5);
}

/* Preview messages */
.dc-preview { display: flex; flex-direction: column; background: #18191c; }
.dc-preview-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.dc-ph-hash { font-size: 20px; color: var(--text-dim); line-height: 1; }
.dc-ph-name { font-size: 14px; font-weight: 700; color: var(--text); }
.dc-ph-sep { color: var(--text-dim); font-size: 12px; }
.dc-ph-desc { font-size: 12px; color: var(--text-dim); }
.dc-messages-preview {
  flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 18px;
}
.dc-msg { display: flex; gap: 14px; }
.dc-msg-av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.dc-msg-body { flex: 1; min-width: 0; }
.dc-msg-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.dc-msg-time { font-size: 10px; color: var(--text-dim); font-weight: 400; margin-left: 8px; }
.dc-msg-text { font-size: 13px; color: #b9bbbe; line-height: 1.6; font-weight: 300; }
.dc-preview-cta {
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0;
}
.dc-preview-cta-text { font-size: 12px; color: var(--text-muted); }
.dc-join-btn-sm {
  padding: 9px 18px; background: #5865F2; border: none; border-radius: 4px;
  font-family: 'Barlow', sans-serif; font-size: 12px; font-weight: 700;
  color: #fff; cursor: pointer; transition: opacity .15s; white-space: nowrap;
}
.dc-join-btn-sm:hover { opacity: .88; }

/* ─── PAYMENT MODAL ───────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,.88); backdrop-filter: blur(12px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 8px; width: 100%; max-width: 540px; max-height: 90vh;
  overflow-y: auto; position: relative; animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity:0; transform:translateY(14px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }

/* Header */
.modal-header {
  padding: 32px 28px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(232,0,28,.04) 0%, transparent 100%);
  position: relative;
}
.modal-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(232,0,28,.3) 100%);
  border-radius: 8px 8px 0 0;
}
.modal-tag {
  display: flex; align-items: center; gap: 7px;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.modal-tag-dot {
  width: 5px; height: 5px; background: var(--red); border-radius: 50%;
  animation: tagPulse 2s ease-in-out infinite;
}
@keyframes tagPulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.modal-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 36px; letter-spacing: 3px; margin-bottom: 18px;
}

/* Deux programmes */
.modal-programs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.modal-prog {
  padding: 12px 14px; border-radius: 4px; border: 1px solid transparent;
}
.mp-masse {
  background: rgba(232,0,28,.06); border-color: rgba(232,0,28,.18);
}
.mp-seche {
  background: rgba(0,200,255,.06); border-color: rgba(0,200,255,.18);
}
.mp-label {
  font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.mp-masse .mp-label { color: var(--red); }
.mp-seche .mp-label { color: #00c8ff; }
.mp-desc { font-size: 10px; color: var(--text-dim); line-height: 1.6; }

/* Prix */
.modal-price-row { display: flex; align-items: center; gap: 12px; }
.modal-price {
  font-family: 'Bebas Neue', sans-serif; font-size: 52px; letter-spacing: 2px;
  color: var(--text); line-height: 1;
}
.modal-price-right { display: flex; flex-direction: column; gap: 3px; }
.modal-price-old { font-size: 16px; color: var(--text-dim); text-decoration: line-through; }
.modal-price-save {
  font-size: 10px; font-weight: 700; color: var(--green);
  background: rgba(34,197,94,.1); padding: 2px 7px; border-radius: 3px;
  letter-spacing: .5px;
}
.modal-price-info {
  font-size: 11px; color: var(--text-dim); line-height: 1.6;
  margin-left: auto; text-align: right;
}

/* Body */
.modal-body { padding: 22px 28px 28px; }
.modal-section-title {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 14px;
}
.include-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
.include-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.include-list li:last-child { border-bottom: none; }
.il-check {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--green); line-height: 1;
}
.il-content { flex: 1; min-width: 0; }
.il-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.il-desc { font-size: 11px; color: var(--text-dim); line-height: 1.55; font-weight: 300; }

/* Claudo banner */
.modal-claudo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 0 0 20px; padding: 16px 18px;
  background: linear-gradient(135deg, rgba(232,0,28,.07) 0%, rgba(232,0,28,.02) 100%);
  border: 1px solid rgba(232,0,28,.22); border-radius: 6px;
}
.mcb-left { flex: 1; min-width: 0; }
.mcb-tag { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 5px; }
.mcb-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.mcb-desc { font-size: 11px; color: var(--text-muted); line-height: 1.65; font-weight: 300; }
.mcb-robot {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--surface3); border: 1px solid rgba(232,0,28,.25); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mcb-eye {
  width: 7px; height: 7px; background: var(--red); border-radius: 2px;
  box-shadow: 0 0 6px rgba(232,0,28,.8);
  animation: mcbBlink 3s ease-in-out infinite;
}
.mcb-eye:nth-child(2) { animation-delay: .08s; }
@keyframes mcbBlink { 0%,88%,100% { transform: scaleY(1); } 92% { transform: scaleY(0.1); } }

/* CTA */
.modal-cta {
  width: 100%; padding: 15px; background: var(--red); border: none; border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 3px;
  color: #fff; cursor: pointer; transition: opacity .15s, transform .12s;
  box-shadow: 0 4px 20px rgba(232,0,28,.35);
}
.modal-cta:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(232,0,28,.45); }
.modal-cta:active { transform: translateY(0); }
.modal-cta:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.modal-price-sub { font-size: 11px; color: var(--text-muted); }
.modal-wa-link {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; color: #25d366; text-decoration: none; margin-top: 14px;
  padding: 10px; border: 1px solid rgba(37,211,102,.2); border-radius: 3px;
  transition: background .15s;
}
.modal-wa-link:hover { background: rgba(37,211,102,.06); }

/* Badges confiance */
/* Avis dans modal paiement */
.modal-avis-title {
  font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-dim); margin-top: 22px; margin-bottom: 12px; text-align: center;
}
.modal-avis-grid {
  display: flex; flex-direction: column; gap: 10px;
}
.modal-avis-row {
  display: flex; gap: 10px;
}
.modal-avis-img {
  width: 100%; border-radius: 10px;
  object-fit: contain; border: 1px solid var(--border);
  background: #111; display: block;
}
.modal-avis-img-half {
  width: calc(50% - 5px); border-radius: 10px;
  object-fit: contain; border: 1px solid var(--border);
  background: #111; display: block;
}

.modal-trust {
  display: flex; justify-content: center; gap: 20px; margin-top: 14px; flex-wrap: wrap;
}
.modal-trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--text-dim); letter-spacing: .4px;
}
.modal-trust-item svg { opacity: .5; flex-shrink: 0; }

/* Close btn */
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; background: var(--surface3); border: 1px solid var(--border);
  border-radius: 3px; color: var(--text-muted); cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; z-index: 1;
  transition: color .12s, border-color .12s;
}
.modal-close:hover { color: var(--text); border-color: var(--border2); }

/* ─── PERFORMANCE MODAL ───────────────────────────────────────────────────── */
.perf-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,.88); backdrop-filter: blur(12px);
  align-items: center; justify-content: center; padding: 20px;
}
.perf-modal-overlay.show { display: flex; }
.perf-modal {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 10px; width: 100%; max-width: 880px;
  position: relative; animation: modalIn .2s ease;
  max-height: 92vh; overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 360px;
}
.perf-modal-left {
  padding: 28px 26px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.perf-modal-right {
  padding: 28px 24px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.perf-modal-title { font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 3px; margin-bottom: 2px; }
.perf-modal-date { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 20px; }

/* Stats rapides sous le titre */
.perf-quick-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 18px; }
.pqs-cell { background: var(--surface2); border: 1px solid var(--border); border-radius: 5px; padding: 10px 12px; }
.pqs-label { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.pqs-val { font-family: 'Bebas Neue', sans-serif; font-size: 22px; line-height: 1; color: var(--text); }
.pqs-val.gold { color: #e8b84b; }
.pqs-val.green { color: #22c55e; }
.pqs-val.red { color: var(--red); }
.pqs-sub { font-size: 9px; color: var(--text-dim); margin-top: 3px; }

/* Courbe de progression */
.perf-chart-wrap {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; padding: 14px 16px; flex: 1;
}
.perf-chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.perf-chart-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); }
.perf-chart-right { display: flex; align-items: center; gap: 10px; }
.perf-chart-delta { font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.perf-chart-sessions { font-size: 10px; color: var(--text-dim); }
.perf-chart-svg { width: 100%; display: block; overflow: visible; height: 200px; }
.perf-chart-empty { font-size: 12px; color: var(--text-dim); text-align: center; padding: 40px 20px; }

/* Light mode */
body.theme-light .perf-modal-left { border-right-color: rgba(0,0,0,.1); }

.perf-fields { display: flex; flex-direction: column; gap: 12px; }
.perf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Séries ajoutées */
.perf-sets-empty { font-size: 12px; color: var(--text-dim); padding: 10px 0 2px; }
.perf-sets-header {
  display: grid; grid-template-columns: 32px 1fr 1fr 1fr 28px;
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim);
  padding: 0 0 6px; border-bottom: 1px solid var(--border);
}
.perf-set-item {
  display: grid; grid-template-columns: 32px 1fr 1fr 1fr 28px;
  align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.perf-set-item:last-child { border-bottom: none; }
.psi-num { font-size: 10px; color: var(--text-dim); }
.psi-weight { font-weight: 600; }
.psi-reps { color: var(--text-muted); }
.psi-1rm { color: var(--gold); font-family: 'Bebas Neue', sans-serif; font-size: 15px; }
.psi-del {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 3px; cursor: pointer; font-size: 10px; padding: 2px 5px;
  transition: color .12s, border-color .12s;
}
.psi-del:hover { color: var(--red); border-color: var(--red-border); }

/* Ajouter une série */
.perf-add-row { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; }
.perf-add-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perf-add-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.perf-add-set-btn {
  padding: 8px 16px; background: var(--surface3); border: 1px solid var(--border2);
  border-radius: 4px; color: var(--text); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: border-color .15s, color .15s; white-space: nowrap;
}
.perf-add-set-btn:hover { border-color: var(--red-border); color: var(--red); }
.perf-1rm-preview {
  background: transparent; border: none;
  padding: 0; font-size: 11px; color: var(--text-muted); line-height: 1.4;
}
.perf-1rm-val { display: block; color: var(--gold); font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; margin-top: 2px; }

.perf-submit {
  width: 100%; padding: 12px; background: var(--red); border: none; border-radius: 5px;
  font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 2px;
  color: #fff; cursor: pointer; transition: opacity .15s, transform .1s;
  box-shadow: 0 3px 12px rgba(232,0,28,.2);
}
.perf-submit:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.perf-submit:disabled { opacity: .35; cursor: default; transform: none; }
.perf-close {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; background: var(--surface3); border: 1px solid var(--border);
  border-radius: 3px; color: var(--text-muted); cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; transition: color .12s;
}
.perf-close:hover { color: var(--text); }

/* ─── TOAST ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 4px; padding: 11px 16px; font-size: 12px; color: var(--text);
  transform: translateY(60px); opacity: 0; transition: all .25s;
  max-width: 300px; letter-spacing: .3px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(34,197,94,.3); color: var(--green); }
.toast.error { border-color: var(--red-border); color: #f87171; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */

/* ── 1100px — large tablet ── */
@media (max-width: 1100px) {
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 900px — tablet / phablet ── */
@media (max-width: 900px) {
  /* Sidebar → offcanvas drawer */
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 8px 0 32px rgba(0,0,0,.6); }
  .main { margin-left: 0; }
  .hamburger { display: flex; }

  /* Auth gate */
  .gate-inner { flex-direction: column; }
  .gate-left {
    width: 100%; min-height: 0; padding: 40px 24px 28px;
    position: relative; overflow: hidden;
  }
  .gate-left-bg { opacity: .4; }
  .gate-perks { display: none; }
  .gate-stats { display: none; }
  .gate-headline { font-size: clamp(36px, 10vw, 56px); margin-bottom: 10px; }
  .gate-sub { font-size: 13px; max-width: 100%; }
  .gate-right {
    width: 100%; flex-shrink: 1; padding: 48px 36px;
    min-width: 0; justify-content: flex-start; min-height: 100vh;
  }
  .gate-right::before { background: linear-gradient(90deg, transparent, var(--red) 50%, transparent); }
  .gate-mobile-header { display: flex; }

  /* Grids */
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-grid { grid-template-columns: 1fr; }
  .tl-card:hover { transform: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(2, 1fr); }

  /* Video */
  .video-layout { grid-template-columns: 1fr; }
  .video-sidebar-panel { border-top: 1px solid var(--border); max-height: 320px; overflow-y: auto; }

  /* Discord */
  .dc-body { grid-template-columns: 1fr; }
  .dc-sidebar { display: none; }

  /* Tracker table */
  .ex-header, .ex-row { grid-template-columns: 1fr 80px 110px 44px; }
  .ex-header > *:nth-child(4), .ex-header > *:nth-child(5),
  .ex-row > *:nth-child(4), .ex-row > *:nth-child(5) { display: none; }
  .tr-table-wrap .ex-row { grid-template-columns: 1fr 80px 110px 44px; }
  .tr-table-legend { grid-template-columns: 1fr 80px 110px 44px; }
  .tr-table-legend > *:nth-child(4), .tr-table-legend > *:nth-child(5) { display: none; }
  .tr-stats { grid-template-columns: repeat(3, 1fr); }

  /* Formation stats */
  .fm-stats { flex-wrap: wrap; }
  .fm-stat { flex: 1 1 50%; min-width: 0; border-bottom: 1px solid var(--border); }
  .fm-stat:last-child { border-bottom: none; }

  /* Metabolism tablet */
  .metabo-layout { flex-direction: column; min-height: 0; }
  .metabo-form-col { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 28px 24px; }
  .metabo-results-col { padding: 28px 24px; justify-content: flex-start; align-items: stretch; }
  .results-grid-v2 { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  .rcv2-val { font-size: 32px; }

  /* Physique tablet */
  .physique-layout { flex-direction: column; }
  .physique-upload-col { border-right: none; border-bottom: 1px solid var(--border); }
  .physique-form-col { width: 100%; }
}

/* ── 600px — smartphone ── */
@media (max-width: 600px) {
  /* Auth gate */
  .gate-right { padding: 32px 20px; }
  .auth-box-title { font-size: 22px; }
  .auth-row { grid-template-columns: 1fr; }

  /* Topbar */
  .topbar { padding: 0 16px; height: 46px; }
  .topbar-title { display: none; }
  .progress-pill { gap: 6px; padding: 5px 10px; }
  .progress-bar-wrap { width: 48px; }
  .progress-text { font-size: 9px; }

  /* Layout */
  .main { padding-bottom: 0; }

  /* Formation dashboard */
  .fm-header { padding: 18px 16px 14px; }
  .fm-greeting { font-size: 22px; }
  .fm-stats { flex-wrap: wrap; }
  .fm-stat { flex: 1 1 50%; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .fm-stat:nth-child(3), .fm-stat:nth-child(4) { border-bottom: none; }
  .fm-stat-val { font-size: 24px; }

  /* Modules */
  .modules-body { padding: 0 12px 100px; }
  .modules-grid { grid-template-columns: 1fr; gap: 10px; margin: 0 0 20px; }
  .module-card { min-height: 0; touch-action: manipulation; }
  .paid-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 16px; }
  .paid-banner-btn { width: 100%; text-align: center; }

  /* IA Banner */
  .ia-banner { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .ia-banner-left { flex: 1 1 100%; }
  .ia-banner-title { font-size: 18px; }
  .ia-banner-tools { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .ia-banner-arrow { display: none; }

  /* Discord section (inside modules) */
  .discord-section { flex-direction: column; text-align: center; gap: 12px; padding: 20px 0 0; }
  .discord-btn { margin: 0 auto; width: 100%; max-width: 260px; }

  /* Tools page */
  .tl-header { padding: 18px 16px 14px; }
  .tl-grid { margin: 0 16px; gap: 12px; }
  .tl-pdf { margin: 12px 16px 0; }
  .tl-card:hover { transform: none; }
  .tl-card-title { font-size: 20px; }

  /* Tracker */
  .tr-header { padding: 16px 16px 12px; }
  .tr-add-btn span { display: none; }
  .tr-stats { margin: 0 16px 14px; grid-template-columns: repeat(2, 1fr); }
  .tr-stat { padding: 12px 12px; }
  .tr-stat-main .tr-stat-val { font-size: 20px; }
  .tr-stat-val { font-size: 18px; }
  .tr-stat-label { font-size: 8px; }
  .tr-tabs-row { padding: 0 16px 10px; flex-wrap: wrap; gap: 8px; }
  .tr-table-legend { display: none; }
  .tr-table-wrap { padding: 0 16px 80px; }
  .tr-table-wrap .ex-row { grid-template-columns: 1fr 76px 44px; padding: 12px 10px; }
  .tr-table-wrap .ex-row > *:nth-child(3),
  .tr-table-wrap .ex-row > *:nth-child(4),
  .tr-table-wrap .ex-row > *:nth-child(5) { display: none; }
  .ex-name { font-size: 12px; }
  .ex-pr { font-size: 15px; }

  /* Metabolism mobile */
  .calc-wrap { padding: 20px 16px 80px; }
  .metabo-layout { flex-direction: column; min-height: 0; height: auto; }
  .metabo-form-col { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 20px 16px; }
  .metabo-results-col {
    padding: 0; align-items: stretch; justify-content: flex-start;
    overflow: visible; flex: none; height: auto;
  }
  .results-eyebrow { margin: 16px 16px 0; text-align: left; font-size: 9px; }

  /* Résultats : liste ligne par ligne, label à gauche, chiffre à droite */
  .results-grid-v2 {
    display: block !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    max-width: 100% !important;
    margin-bottom: 80px;
  }
  .rcv2 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 13px 16px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    border-left: none !important;
    border-radius: 0 !important;
  }
  .rcv2:last-child { border-bottom: none !important; }
  .rcv2.rcv2-accent { background: rgba(232,0,28,.05) !important; }
  /* Label + sub empilés à gauche */
  .rcv2-label {
    font-size: 14px !important; font-weight: 500 !important;
    color: var(--text) !important; margin-top: 0 !important;
    order: 1; flex: 1;
  }
  .rcv2-sub {
    display: none !important; /* masqué pour garder la ligne compacte */
  }
  /* Valeur + unité à droite */
  .rcv2-val {
    font-size: 26px !important; line-height: 1 !important;
    text-align: right; order: 2; white-space: nowrap;
  }
  .rcv2-unit {
    font-size: 10px !important; color: var(--text-muted) !important;
    text-align: right; order: 3; margin-top: 0 !important;
    margin-left: 3px; align-self: flex-end; padding-bottom: 3px; white-space: nowrap;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }

  /* Physique / Food */
  .physique-wrap { padding: 20px 16px 80px; }
  .physique-layout { flex-direction: column; }
  .physique-upload-col { border-right: none; border-bottom: 1px solid var(--border); min-height: 260px; }
  .physique-form-col { width: 100%; padding: 20px 16px; }
  .upload-zone { min-height: 200px; }

  /* Discord page */
  .dc-hero { padding: 36px 20px 28px; }
  .dc-hero-title { font-size: 34px; }
  .dc-hero-sub { font-size: 13px; }
  .dc-join-btn { padding: 11px 20px; font-size: 13px; width: 100%; justify-content: center; }
  .dc-preview-cta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dc-join-btn-sm { width: 100%; text-align: center; }
  .dc-messages-preview { padding: 16px; gap: 14px; }

  /* Video */
  .video-main { padding: 16px; }
  .video-sidebar-panel { max-height: 260px; }

  /* Claudo — géré dans la section CLAUDO PAGE */

  /* Profile — géré dans la section dédiée profile */

  /* Misc */
  .page-header { padding: 20px 16px 14px; }
  .fstat { padding: 14px 16px; }
  .modal { max-height: 94vh; border-radius: 6px; }
  .modal-header { padding: 24px 18px 18px; }
  .modal-title { font-size: 28px; }
  .modal-programs { grid-template-columns: 1fr 1fr; gap: 6px; }
  .mp-label { font-size: 14px; }
  .mp-desc { font-size: 9px; }
  .modal-price { font-size: 42px; }
  .modal-price-info { font-size: 10px; }
  .modal-body { padding: 16px 18px 22px; }
  .include-list li { gap: 10px; padding: 10px 0; }
  .il-title { font-size: 12px; }
  .il-desc { font-size: 10px; }
  .modal-cta { font-size: 17px; padding: 13px; }
  .modal-trust { gap: 14px; }
}

/* ─── SHARED TOOL HELPERS ────────────────────────────────────────────────── */
.full-w { width: 100%; }
.tool-section-label {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 12px;
}

/* ─── METABOLISM LAYOUT ───────────────────────────────────────────────────── */
.metabo-layout {
  display: flex; min-height: calc(100vh - 50px - 100px);
}
.metabo-form-col {
  width: 340px; flex-shrink: 0; padding: 36px;
  border-right: 1px solid var(--border);
}
.metabo-results-col {
  flex: 1; padding: 48px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.metabo-empty {
  text-align: center; pointer-events: none;
}
.metabo-empty-icon {
  font-size: 32px; color: var(--border2); margin-bottom: 14px; font-family: 'Bebas Neue', sans-serif;
}
.metabo-empty-text { font-size: 12px; color: var(--text-dim); font-weight: 300; }
.results-eyebrow {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 24px; text-align: center;
}
.results-grid-v2 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; width: 100%; max-width: 600px;
}
.rcv2 { background: var(--surface); padding: 28px 22px; }
.rcv2.rcv2-accent { background: var(--surface2); border-left: 2px solid var(--red); }
.rcv2-val {
  font-family: 'Bebas Neue', sans-serif; font-size: 46px;
  letter-spacing: 1px; line-height: 1; color: var(--text);
}
.rcv2-unit { font-size: 13px; color: var(--text-muted); margin-top: 2px; font-family: 'Barlow', sans-serif; }
.rcv2-label { font-size: 11px; color: var(--text-muted); margin-top: 10px; font-weight: 500; }
.rcv2-sub { font-size: 10px; color: var(--text-dim); margin-top: 3px; font-weight: 300; }

/* ─── PHYSIQUE MULTI-SLOTS ────────────────────────────────────────────────── */
.physique-slots-hint {
  font-size: 10px; color: var(--text-dim); font-weight: 300;
  letter-spacing: .3px; margin-bottom: 10px; padding: 0 2px;
}
.physique-slots-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; margin-bottom: 16px;
}
.photo-slot {
  position: relative; aspect-ratio: 3/4; cursor: pointer;
  background: var(--surface); border: 1px dashed var(--border2);
  border-radius: 3px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.photo-slot:hover { border-color: var(--red-border); background: var(--red-dim); }
.photo-slot.slot-filled { border-style: solid; border-color: var(--border); }
.slot-preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.slot-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; text-align: center; padding: 12px;
}
.slot-plus {
  font-size: 22px; color: var(--text-dim); line-height: 1; font-weight: 300;
}
.slot-label {
  font-size: 10px; color: var(--text-dim); font-weight: 400;
  letter-spacing: .5px; text-transform: uppercase;
}
.slot-required { color: var(--red); }
.slot-clear {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: 10px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  z-index: 2; border: none;
  transition: background .15s;
}
.slot-clear:hover { background: rgba(232,0,28,.8); }

/* ─── PHYSIQUE LAYOUT ─────────────────────────────────────────────────────── */
.physique-layout {
  display: flex; min-height: calc(100vh - 50px - 100px);
}
.physique-upload-col {
  flex: 1; padding: 36px; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 20px;
}
.physique-form-col {
  width: 340px; flex-shrink: 0; padding: 36px;
  display: flex; flex-direction: column;
}
.upload-zone {
  flex: 1; border: 1px dashed var(--border2); border-radius: 4px;
  cursor: pointer; transition: border-color .2s, background .2s; position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 300px; overflow: hidden;
}
.upload-zone:hover { border-color: var(--red-border); background: rgba(232,0,28,.04); }
.upload-zone input { display: none; }
.upload-placeholder { text-align: center; pointer-events: none; padding: 20px; }
.up-icon {
  width: 52px; height: 52px; background: var(--surface3); border: 1px solid var(--border2);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 28px; color: var(--text-dim); font-weight: 300;
}
.up-title { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
.up-sub { font-size: 11px; color: var(--text-dim); font-weight: 300; line-height: 1.7; }
.upload-preview-full {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 3px;
}
.physique-note {
  font-size: 10px; color: var(--text-dim); margin-top: 12px;
  letter-spacing: .3px; font-weight: 300;
}
.physique-tips {
  margin-top: 28px; padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 4px;
}
.tip-label {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 12px;
}
.tip-item {
  font-size: 12px; color: var(--text-muted); font-weight: 300;
  padding: 5px 0; border-bottom: 1px solid var(--border); line-height: 1.5;
}
.tip-item:last-child { border-bottom: none; }
.tip-item::before { content: '—'; color: var(--red); margin-right: 8px; font-weight: 700; }

/* ─── NAVY + BF PREVIEW ──────────────────────────────────────────────────── */
.navy-badge {
  display: inline-block; font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700; color: #00c8ff; background: rgba(0,200,255,.1);
  border: 1px solid rgba(0,200,255,.25); border-radius: 3px;
  padding: 2px 6px; vertical-align: middle; margin-left: 8px;
}
.navy-hint {
  font-size: 11px; color: var(--text-dim); font-weight: 300; line-height: 1.6;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid rgba(0,200,255,.4);
  border-radius: 3px; padding: 10px 12px; margin-bottom: 12px;
}
.physique-bf-preview {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 14px 16px; margin: 12px 0;
}
.pbp-left { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pbp-bf {
  font-size: 28px; font-weight: 900; letter-spacing: -1px; line-height: 1;
  transition: color .3s;
}
.pbp-label { font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); font-weight: 500; }
.pbp-right { display: flex; flex-direction: column; gap: 3px; }
.pbp-cat { font-size: 13px; font-weight: 700; letter-spacing: .5px; transition: color .3s; }
.pbp-lean { font-size: 11px; color: var(--text-dim); font-weight: 300; }

/* ─── PHYSIQUE RESULT ────────────────────────────────────────────────────── */
.phys-score-hero {
  text-align: center; padding: 24px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.phys-score-num {
  font-size: 56px; font-weight: 900; letter-spacing: -2px; line-height: 1;
}
.phys-score-max { font-size: 20px; color: var(--text-dim); font-weight: 400; }
.phys-body-type { font-size: 16px; font-weight: 700; color: var(--text); margin-top: 8px; letter-spacing: .5px; }
.phys-body-desc { font-size: 12px; color: var(--text-dim); font-weight: 300; margin-top: 4px; line-height: 1.5; }
.phys-bf-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 12px 14px; margin-bottom: 12px;
}
.phys-bf-val { font-size: 20px; font-weight: 900; }
.phys-bf-cat { font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.phys-bf-lean { font-size: 11px; color: var(--text-dim); font-weight: 300; margin-left: auto; }
.phys-scores-section { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.phys-score-row { display: flex; align-items: center; gap: 8px; }
.phys-score-label { font-size: 11px; color: var(--text-muted); font-weight: 400; width: 90px; flex-shrink: 0; text-transform: capitalize; }
.phys-score-track {
  flex: 1; height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden;
}
.phys-score-fill { height: 100%; border-radius: 2px; transition: width .5s ease; }
.phys-score-val { font-size: 11px; font-weight: 700; width: 24px; text-align: right; flex-shrink: 0; }
.phys-section-title {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim);
  font-weight: 700; margin: 16px 0 10px;
}
.phys-muscle-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.phys-muscle-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.phys-muscle-name { font-size: 11px; color: var(--text-muted); width: 80px; flex-shrink: 0; font-weight: 400; }
.phys-muscle-track {
  flex: 1; height: 3px; background: var(--surface2); border-radius: 2px; overflow: hidden; min-width: 40px;
}
.phys-muscle-fill { height: 100%; border-radius: 2px; transition: width .5s ease; }
.phys-muscle-score { font-size: 10px; font-weight: 700; width: 22px; text-align: right; flex-shrink: 0; }
.phys-muscle-note { font-size: 10px; color: var(--text-dim); font-weight: 300; width: 100%; padding-left: 88px; line-height: 1.4; }
.phys-sw-grid { display: flex; gap: 10px; margin-bottom: 14px; }
.phys-sw-card { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 14px; }
.phys-sw-title { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.phys-sw-strengths .phys-sw-title { color: #22c55e; }
.phys-sw-weaknesses .phys-sw-title { color: #e8001c; }
.phys-sw-item { font-size: 11px; color: var(--text-muted); font-weight: 300; padding: 4px 0; line-height: 1.4; }
.phys-sw-plus::before { content: '+'; color: #22c55e; font-weight: 700; margin-right: 6px; }
.phys-sw-minus::before { content: '—'; color: #e8001c; font-weight: 700; margin-right: 6px; }
.phys-diagnosis {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 14px 16px; margin-bottom: 10px;
}
.phys-diag-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); font-weight: 700; margin-bottom: 6px; }
.phys-diag-text { font-size: 12px; color: var(--text-muted); font-weight: 300; line-height: 1.75; }
.phys-program-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; border-radius: 4px; padding: 8px 14px; margin-bottom: 10px;
}
.phys-program-masse  { background: rgba(232,0,28,.1); color: #e8001c; border: 1px solid rgba(232,0,28,.25); }
.phys-program-seche  { background: rgba(0,200,255,.1); color: #00c8ff; border: 1px solid rgba(0,200,255,.25); }
.phys-urgency {
  font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.5;
}
.phys-timegoal { font-size: 11px; color: var(--text-dim); font-weight: 300; }

/* ─── ANALYSIS RESULT CARDS ───────────────────────────────────────────────── */
.analysis-result { }

/* ── Avis panel (module 01 — "Avis clients") ── */
.video-wrap.avis-mode {
  aspect-ratio: unset;
  height: auto;
  overflow: visible;
  display: block;
  background: transparent;
  border: none;
}
.avis-panel { display: flex; flex-direction: column; gap: 16px; padding: 4px 0 8px; }
.avis-panel-eyebrow { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); text-align: center; }
.avis-panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.avis-panel-grid img { width: 100%; border-radius: 8px; display: block; object-fit: cover; max-height: 220px; }
.avis-panel-cta { text-align: center; padding-top: 4px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.avis-panel-sub { font-size: 13px; color: var(--text-muted); }
.avis-panel-btn { background: var(--red); color: #fff; border: none; border-radius: 4px; padding: 13px 36px; font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 2px; cursor: pointer; transition: background .2s; }
.avis-panel-btn:hover { background: #ff1a30; }
@media (max-width: 600px) {
  .avis-panel-grid { grid-template-columns: 1fr; }
  .avis-panel-grid img { max-height: 180px; }
}

/* Food goal progress bar */
.food-goal-bar {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; padding: 12px 16px; margin-bottom: 20px;
}
.fgb-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fgb-label { font-size: 11px; color: var(--text-muted); }
.fgb-remaining { font-size: 11px; font-weight: 600; }
.fgb-track { height: 5px; background: var(--surface4); border-radius: 99px; overflow: hidden; }
.fgb-fill { height: 100%; border-radius: 99px; transition: width .6s ease; }
.fgb-sub { font-size: 10px; color: var(--text-dim); margin-top: 5px; display: flex; align-items: center; gap: 10px; }
.fgb-reset-btn { margin-left: auto; background: none; border: 1px solid var(--surface4); color: var(--text-dim); font-size: 10px; padding: 2px 8px; border-radius: 4px; cursor: pointer; transition: border-color .2s, color .2s; }
.fgb-reset-btn:hover { border-color: var(--text-muted); color: var(--text-secondary); }

/* Food needs profile block */
.food-needs-profile {
  padding: 28px 20px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.fnp-icon { font-size: 28px; }
.fnp-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 2px; color: var(--gold); }
.fnp-msg { font-size: 13px; color: var(--text-muted); max-width: 380px; line-height: 1.7; }
.fnp-btn {
  margin-top: 4px; padding: 10px 24px; background: var(--red); border: none; border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 2px;
  color: #fff; cursor: pointer; transition: opacity .15s;
}
.fnp-btn:hover { opacity: .88; }

/* Rejection block */
.analysis-rejection {
  padding: 28px 24px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.ar-icon {
  font-size: 28px; line-height: 1;
  color: #f97316;
}
.ar-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 2px;
  color: #f97316;
}
.ar-reason {
  font-size: 14px; color: var(--text-muted); max-width: 420px; line-height: 1.7;
}
.ar-hint {
  font-size: 11px; color: var(--text-dim); max-width: 380px; line-height: 1.7;
  padding: 10px 14px; background: var(--surface2); border-radius: 4px;
  border: 1px solid var(--border);
}

.ar-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.ar-eyebrow {
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--red);
}
.ar-eyebrow::before { content: ''; display: inline-block; width: 16px; height: 1px; background: var(--red); margin-right: 8px; vertical-align: middle; }
.analysis-cards {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
}
.ac {
  background: var(--surface); padding: 14px 18px; transition: background .12s;
}
.ac:hover { background: var(--surface2); }
.ac-label {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--red); margin-bottom: 5px;
}
.ac-value {
  font-size: 13px; color: var(--text-muted); line-height: 1.75; font-weight: 300;
}
.ac.ac-highlight { background: var(--surface2); border-left: 2px solid var(--red); }
.ac.ac-highlight .ac-value { color: var(--text); font-weight: 400; }

/* ─── DASH HOME HEADER ────────────────────────────────────────────────────── */
.dash-home-header {
  padding: 36px 36px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.dash-greeting {
  font-family: 'Bebas Neue', sans-serif; font-size: 38px;
  letter-spacing: 2px; line-height: 1; margin-bottom: 6px;
}
.dash-sub { font-size: 12px; color: var(--text-dim); font-weight: 300; letter-spacing: .3px; }
.dash-plan-badge {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: var(--text-dim); white-space: nowrap; flex-shrink: 0;
}
.dash-plan-badge.paid {
  background: rgba(212,168,71,.08); border-color: rgba(212,168,71,.2); color: var(--gold);
}

/* ─── TOOL CARDS REFRESH ──────────────────────────────────────────────────── */
.tool-card-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.tool-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.td-green { background: var(--green); }
.td-blue  { background: #38bdf8; }
.td-red   { background: var(--red); }
.td-gold  { background: var(--gold); }
.tool-tag {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim);
}

/* ─── CLAUDO PAGE ──────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════
   CLAUDO PAGE
   ═══════════════════════════════════════════════════════════ */

/* Shell de page */
#page-claudo { display: none; flex-direction: column; }
#page-claudo.active {
  display: flex !important; flex-direction: column;
  height: calc(100vh - 50px); overflow: hidden;
}

/* ── Version verrouillée ── */
#claudo-locked { flex: 1; overflow-y: auto; }
.claudo-locked-wrap {
  max-width: 460px; margin: 52px auto 80px; padding: 0 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.claudo-locked-robot { opacity: .35; }
.claudo-locked-title {
  font-family: 'Bebas Neue', sans-serif; font-size: 40px; letter-spacing: 4px;
}
.claudo-locked-desc { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.claudo-locked-features {
  width: 100%; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.clf-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-muted); padding: 12px 18px;
  border-bottom: 1px solid var(--border); text-align: left; line-height: 1.5;
}
.clf-item:last-child { border-bottom: none; }
.clf-item::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  box-shadow: 0 0 6px rgba(232,0,28,.5);
}
.claudo-locked-cta {
  width: 100%; padding: 14px; background: var(--red); border: none; border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif; font-size: 17px; letter-spacing: 3px;
  color: #fff; cursor: pointer; transition: opacity .15s;
  box-shadow: 0 4px 18px rgba(232,0,28,.3);
}
.claudo-locked-cta:hover { opacity: .88; }
.claudo-locked-note { font-size: 10px; color: var(--text-dim); letter-spacing: .5px; }

/* ── Version active ── */
#claudo-active {
  flex: 1; display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}

/* Header compact */
.claudo-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0;
  background: var(--surface); gap: 16px;
}
.claudo-header-left { display: flex; align-items: center; gap: 14px; }
.claudo-header-info { display: flex; flex-direction: column; gap: 3px; }
.claudo-header-status { display: flex; align-items: center; gap: 5px; }
.claudo-header-right { text-align: right; }
.claudo-name { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 3px; line-height: 1; }
.claudo-sub { font-size: 11px; color: var(--text-muted); letter-spacing: .5px; }
.claudo-limit-hint { font-size: 9px; color: var(--text-dim); letter-spacing: .5px; margin-top: 2px; }

/* Petit robot dans le header */
.claudo-avatar {
  display: flex; flex-direction: column; align-items: center;
  animation: crFloat 3.5s ease-in-out infinite;
  transform-origin: center bottom; flex-shrink: 0;
}

/* Status dot */
.cr-status-dot {
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
  animation: crDotPulse 2s ease-in-out infinite;
  box-shadow: 0 0 5px rgba(34,197,94,.6); flex-shrink: 0;
}
@keyframes crDotPulse { 0%,100%{ opacity:1; box-shadow: 0 0 5px rgba(34,197,94,.6); } 50%{ opacity:.4; box-shadow: none; } }
.cr-status-text { font-size: 10px; color: var(--green); letter-spacing: .5px; }

/* Zone chat */
.claudo-chat-area {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
}
.claudo-messages {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 20px 24px 8px;
  display: flex; flex-direction: column; gap: 16px;
  scroll-behavior: smooth;
}
.claudo-messages::-webkit-scrollbar { width: 2px; }
.claudo-messages::-webkit-scrollbar-thumb { background: var(--surface4); }

/* Bulles */
.cl-msg { display: flex; flex-direction: column; max-width: 78%; }
.cl-msg.user { align-items: flex-end; align-self: flex-end; }
.cl-msg.bot  { align-items: flex-start; align-self: flex-start; }
.cl-bubble {
  padding: 12px 16px; font-size: 13px;
  line-height: 1.8; font-weight: 300; word-break: break-word;
}
.cl-msg.user .cl-bubble {
  background: var(--red); color: #fff; font-weight: 400;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 2px 12px rgba(232,0,28,.2);
}
.cl-msg.bot .cl-bubble {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); border-radius: 4px 16px 16px 16px;
}
.cl-typing .cl-bubble {
  display: flex; align-items: center; gap: 5px;
  padding: 14px 18px;
}
.cl-dot {
  width: 5px; height: 5px; background: var(--text-dim);
  border-radius: 50%; animation: clDot .9s infinite;
}
.cl-dot:nth-child(2) { animation-delay: .15s; }
.cl-dot:nth-child(3) { animation-delay: .3s; }
@keyframes clDot { 0%,80%,100%{ opacity:.3; transform:translateY(0); } 40%{ opacity:1; transform:translateY(-3px); } }
.cl-time { font-size: 9px; color: var(--text-dim); margin-top: 5px; padding: 0 4px; }

/* Input zone */
.claudo-input-row {
  padding: 12px 20px 16px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; flex-shrink: 0;
  background: var(--surface);
}
.claudo-input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 24px; padding: 11px 18px; color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 13px; outline: none;
  transition: border-color .15s, background .15s;
}
.claudo-input:focus { border-color: var(--red-border); background: var(--surface3); }
.claudo-input::placeholder { color: var(--text-dim); }
.claudo-input:disabled { opacity: .5; }
.claudo-send {
  width: 44px; height: 44px; background: var(--red); border: none;
  border-radius: 50%; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s, transform .12s; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(232,0,28,.3);
}
.claudo-send:hover { opacity: .88; transform: scale(1.05); }
.claudo-send:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Responsive Claudo ── */
@media (max-width: 600px) {
  #page-claudo.active { height: calc(100vh - 46px); }
  .claudo-header { padding: 10px 14px; gap: 10px; }
  .claudo-header-right { display: none; }
  .claudo-name { font-size: 18px; }
  .claudo-messages { padding: 14px 14px 6px; gap: 12px; }
  .cl-msg { max-width: 88%; }
  .cl-bubble { font-size: 13px; padding: 10px 14px; }
  .claudo-input-row { padding: 10px 12px 14px; gap: 6px; }
  .claudo-input { padding: 10px 14px; font-size: 13px; }
  .claudo-send { width: 40px; height: 40px; }
  .claudo-locked-wrap { margin: 32px auto 60px; padding: 0 16px; gap: 16px; }
  .claudo-locked-title { font-size: 30px; }
  .clf-item { padding: 10px 14px; font-size: 11px; }
}

/* ─── ROBOT CSS ─────────────────────────────────────────────────────────────── */
.claudo-avatar {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  animation: crFloat 3.5s ease-in-out infinite;
  position: relative;
}
@keyframes crFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Antenne */
.cr-antenna-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.cr-antenna-stick {
  width: 3px; height: 14px;
  background: linear-gradient(to top, var(--surface3), var(--surface4));
  border-radius: 2px 2px 0 0;
}
.cr-antenna-ball {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(232,0,28,.8), 0 0 20px rgba(232,0,28,.4);
  animation: crPulse 1.8s ease-in-out infinite;
  margin-bottom: -5px;
}
@keyframes crPulse {
  0%,100% { box-shadow: 0 0 8px rgba(232,0,28,.8), 0 0 20px rgba(232,0,28,.4); transform: scale(1); }
  50%      { box-shadow: 0 0 14px rgba(232,0,28,1), 0 0 30px rgba(232,0,28,.6); transform: scale(1.15); }
}

/* Tête */
.cr-head {
  display: flex; align-items: center; gap: 0; position: relative;
}
.cr-ear {
  width: 10px; height: 22px;
  background: var(--surface3); border: 1px solid var(--surface4);
  display: flex; align-items: center; justify-content: center;
}
.cr-ear-l { border-radius: 4px 0 0 4px; }
.cr-ear-r { border-radius: 0 4px 4px 0; }
.cr-ear-dot {
  width: 4px; height: 12px; background: var(--surface4);
  border-radius: 2px; position: relative;
}
.cr-ear-dot::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 4px; height: 4px; background: var(--red); border-radius: 50%;
  animation: crEarLed 2.5s ease-in-out infinite;
  box-shadow: 0 0 4px rgba(232,0,28,.6);
}
.cr-ear-r .cr-ear-dot::after { animation-delay: .6s; }
@keyframes crEarLed { 0%,100%{ opacity:1; } 50%{ opacity:.2; } }

.cr-head-face {
  width: 74px; height: 58px;
  background: linear-gradient(160deg, #1c1c1c 0%, #141414 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 4px 20px rgba(0,0,0,.5);
}

/* Ligne de scan sur le viseur */
.cr-visor {
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  pointer-events: none; overflow: hidden; border-radius: 10px;
}
.cr-visor::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232,0,28,.4), transparent);
  animation: crScan 3s linear infinite;
}
@keyframes crScan { 0%{ top: -2px; } 100%{ top: 100%; } }

/* Yeux */
.cr-eyes { display: flex; gap: 12px; }
.cr-eye {
  width: 18px; height: 16px;
  background: #0a0a0a; border: 1px solid rgba(232,0,28,.3);
  border-radius: 4px; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  animation: crBlink 5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(232,0,28,.15), inset 0 0 6px rgba(0,0,0,.8);
}
.cr-eye:nth-child(2) { animation-delay: .08s; }
@keyframes crBlink {
  0%,88%,100% { transform: scaleY(1); }
  91%          { transform: scaleY(0.05); }
  94%          { transform: scaleY(1); }
  97%          { transform: scaleY(0.05); }
}
/* Scan dans l'oeil */
.cr-scan {
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background: linear-gradient(180deg, rgba(232,0,28,.0) 0%, rgba(232,0,28,.25) 50%, rgba(232,0,28,.0) 100%);
  animation: crEyeScan 2s ease-in-out infinite;
}
@keyframes crEyeScan {
  0%,100% { transform: translateY(-100%); }
  50%      { transform: translateY(100%); }
}
.cr-pupil {
  width: 7px; height: 7px; background: var(--red); border-radius: 50%;
  position: relative; z-index: 1;
  box-shadow: 0 0 6px rgba(232,0,28,.9);
  animation: crLook 6s ease-in-out infinite;
}
@keyframes crLook {
  0%,35%,100% { transform: translate(0,0); }
  15%          { transform: translate(3px,0); }
  50%          { transform: translate(-3px,1px); }
  70%          { transform: translate(1px,-1px); }
}

/* Bouche LED */
.cr-mouth {
  display: flex; gap: 3px; align-items: center; height: 6px;
}
.cr-m-seg {
  width: 8px; height: 3px; border-radius: 1px;
  background: var(--surface4);
  transition: all .15s;
}
.cr-m-seg:nth-child(1), .cr-m-seg:nth-child(5) { height: 2px; margin-top: 1px; }
.cr-m-seg:nth-child(2), .cr-m-seg:nth-child(4) { height: 4px; }
.cr-m-seg:nth-child(3) { height: 2px; }

/* sourire par défaut */
.cr-m-seg:nth-child(1) { transform: rotate(10deg); }
.cr-m-seg:nth-child(2) { transform: rotate(5deg); }
.cr-m-seg:nth-child(4) { transform: rotate(-5deg); }
.cr-m-seg:nth-child(5) { transform: rotate(-10deg); }

/* parle */
.cr-mouth.talking .cr-m-seg {
  background: var(--red);
  box-shadow: 0 0 4px rgba(232,0,28,.6);
  animation: crTalkSeg .25s ease-in-out infinite alternate;
}
.cr-mouth.talking .cr-m-seg:nth-child(2) { animation-delay: .05s; }
.cr-mouth.talking .cr-m-seg:nth-child(3) { animation-delay: .1s; }
.cr-mouth.talking .cr-m-seg:nth-child(4) { animation-delay: .05s; }
.cr-mouth.talking .cr-m-seg:nth-child(5) { animation-delay: 0s; }
@keyframes crTalkSeg {
  from { height: 2px; transform: none; }
  to   { height: 7px; transform: none; }
}

/* Cou */
.cr-neck {
  width: 18px; height: 6px;
  background: linear-gradient(to bottom, var(--surface3), var(--surface2));
  border-left: 1px solid rgba(255,255,255,.06);
  border-right: 1px solid rgba(255,255,255,.06);
}

/* Corps */
.cr-body {
  display: flex; align-items: center;
}
.cr-arm {
  width: 8px; height: 28px;
  background: linear-gradient(160deg, var(--surface3), var(--surface2));
  border: 1px solid rgba(255,255,255,.06);
}
.cr-arm-l {
  border-radius: 4px 0 0 6px;
  animation: crArmL 3.5s ease-in-out infinite;
}
.cr-arm-r {
  border-radius: 0 4px 6px 0;
  animation: crArmR 3.5s ease-in-out infinite;
}
@keyframes crArmL { 0%,100%{ transform: rotate(0deg); transform-origin: top center; } 50%{ transform: rotate(4deg); } }
@keyframes crArmR { 0%,100%{ transform: rotate(0deg); transform-origin: top center; } 50%{ transform: rotate(-4deg); } }

.cr-body-inner {
  width: 68px; height: 38px;
  background: linear-gradient(160deg, #1c1c1c 0%, #121212 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

/* Display barres */
.cr-display { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.cr-bar {
  width: 6px; background: var(--red);
  border-radius: 1px 1px 0 0; opacity: .7;
}
.cr-bar:nth-child(1) { height: 6px;  animation: crBar1 1.4s ease-in-out infinite; }
.cr-bar:nth-child(2) { height: 12px; animation: crBar2 1.4s ease-in-out infinite .2s; }
.cr-bar:nth-child(3) { height: 8px;  animation: crBar3 1.4s ease-in-out infinite .4s; }
.cr-bar:nth-child(4) { height: 14px; animation: crBar4 1.4s ease-in-out infinite .1s; }
@keyframes crBar1 { 0%,100%{ height:6px;  } 50%{ height:14px; } }
@keyframes crBar2 { 0%,100%{ height:12px; } 50%{ height:5px;  } }
@keyframes crBar3 { 0%,100%{ height:8px;  } 50%{ height:16px; } }
@keyframes crBar4 { 0%,100%{ height:14px; } 50%{ height:7px;  } }

.cr-rivets { display: flex; gap: 28px; }
.cr-rivet {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--surface4); border: 1px solid rgba(255,255,255,.08);
}

/* Ombre sol */
.cr-shadow {
  width: 60px; height: 6px; border-radius: 50%;
  background: rgba(0,0,0,.5);
  filter: blur(4px);
  margin-top: 4px;
  animation: crShadow 3.5s ease-in-out infinite;
}
@keyframes crShadow {
  0%,100% { transform: scaleX(1); opacity: .5; }
  50%      { transform: scaleX(.7); opacity: .25; }
}

/* (doublons supprimés — styles dans la section CLAUDO PAGE) */

/* ─── PROFILE PAGE ────────────────────────────────────────────────────────── */
.profile-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 20px; padding: 24px 28px 60px; align-items: start;
}

/* Colonne gauche */
.profile-left { display: flex; flex-direction: column; }
.profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; display: flex; flex-direction: column;
}

/* Zone avatar */
.profile-avatar-zone {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 20px 20px; gap: 12px;
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border); position: relative;
}
.profile-avatar-zone::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(232,0,28,.2) 100%);
}
.profile-avatar {
  width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
  background: var(--surface3); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--text-muted);
  position: relative; transition: border-color .15s;
}
.profile-avatar:hover { border-color: var(--red); }
.profile-avatar:hover .profile-avatar-overlay { opacity: 1; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; opacity: 0; transition: opacity .15s; color: #fff;
}
.profile-display-badge {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text-dim);
}
.profile-display-badge.paid {
  background: rgba(212,168,71,.1); border-color: rgba(212,168,71,.25); color: var(--gold);
}

/* Identité */
.profile-identity {
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px;
}
.profile-display-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px; line-height: 1;
}
.profile-display-email { font-size: 12px; color: var(--text-muted); font-weight: 300; }
.profile-display-meta  { font-size: 10px; color: var(--text-dim); }
.profile-card-divider { height: 1px; background: var(--border); }

/* Bouton save */
.profile-save-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 16px 20px 20px; padding: 11px;
  background: var(--red); border: none; border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: 2px;
  color: #fff; cursor: pointer; transition: opacity .15s;
}
.profile-save-btn:hover { opacity: .88; }
.profile-save-btn:disabled { opacity: .4; cursor: not-allowed; }
.profile-save-ok {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; color: var(--green); font-weight: 500;
  padding: 0 20px 16px; margin-top: -8px;
}

/* Colonne droite */
.profile-right {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.profile-section { padding: 24px 24px 28px; }
.profile-section-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 18px;
}
.profile-section-label svg { opacity: .5; }

/* Goal buttons */
.goal-type-row { display: flex; gap: 8px; margin-bottom: 20px; }
.goal-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 8px; background: var(--surface2);
  border: 1px solid var(--border); border-radius: 4px;
  font-family: 'Barlow', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--text-dim); cursor: pointer; transition: all .15s;
}
.goal-btn:hover { border-color: var(--border2); color: var(--text); }
.goal-btn-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0; opacity: .4; transition: opacity .15s;
}
.goal-btn.active .goal-btn-dot { opacity: 1; }
.goal-btn[data-goal="masse"].active  { background: rgba(34,197,94,.08);  border-color: rgba(34,197,94,.35);  color: var(--green); }
.goal-btn[data-goal="seche"].active  { background: rgba(0,200,255,.08);  border-color: rgba(0,200,255,.35);  color: #00c8ff; }
.goal-btn[data-goal="maintien"].active { background: rgba(212,168,71,.08); border-color: rgba(212,168,71,.3); color: var(--gold); }

/* Form */
.profile-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Goal progress */
.goal-progress-wrap {
  margin-top: 22px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; padding: 18px;
}
.goal-progress-header {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px;
}
.goal-progress-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.goal-progress-pct { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; }
.goal-progress-bar {
  height: 5px; background: var(--surface4); border-radius: 3px; overflow: hidden; margin-bottom: 10px;
}
.goal-progress-fill { height: 100%; background: var(--red); border-radius: 3px; transition: width .5s ease; }
.goal-progress-sub { font-size: 11px; color: var(--text-dim); font-weight: 300; line-height: 1.6; }

/* ── Responsive profil ── */
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 220px 1fr; padding: 20px 20px 48px; }
}
@media (max-width: 640px) {
  .profile-layout { grid-template-columns: 1fr; padding: 14px 14px 60px; gap: 12px; }
  .profile-avatar-zone { flex-direction: row; align-items: center; padding: 18px 16px; gap: 16px; text-align: left; }
  .profile-avatar-zone::before { display: none; }
  .profile-avatar { width: 68px; height: 68px; font-size: 20px; flex-shrink: 0; }
  .profile-identity { padding: 14px 16px; }
  .profile-display-name { font-size: 20px; }
  .profile-save-btn { margin: 14px 16px 16px; font-size: 14px; }
  .profile-section { padding: 16px 14px 20px; }
  .goal-type-row { gap: 6px; }
  .goal-btn { font-size: 11px; padding: 9px 4px; }
  .profile-form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ─── FOOD ANALYSIS ───────────────────────────────────────────────────────── */
.food-info-block {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 6px; padding: 20px; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.food-info-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted); font-weight: 300;
}
.food-info-line::before {
  content: ''; width: 4px; height: 4px; background: var(--gold);
  border-radius: 50%; flex-shrink: 0;
}

/* Loading spinner on food analyze button */
.btn-loading {
  position: relative; pointer-events: none; opacity: .7;
}
.btn-loading::after {
  content: '';
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: translateY(-50%) rotate(360deg); } }

/* Macro highlight cards */
.ac-macro { background: rgba(212,168,71,.06); border-color: rgba(212,168,71,.2); }
.ac-macro .ac-label { color: var(--gold); }

/* ─── COACHING PERSO ─────────────────────────────────────────────────────── */

/* Hero */
.cp-hero {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 36px 32px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(37,211,102,.18);
}
.cp-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(37,211,102,.08) 0%, transparent 65%),
              linear-gradient(135deg, #0d1a10 0%, #0a0f0a 100%);
  z-index: 0;
}
.cp-hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 420px;
}
.cp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #25d366; background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.25); border-radius: 20px;
  padding: 4px 10px; width: fit-content;
}
.cp-badge-dot {
  width: 5px; height: 5px; border-radius: 50%; background: #25d366;
  animation: cpPulse 2s ease-in-out infinite;
}
@keyframes cpPulse {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}
.cp-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 9vw, 64px);
  line-height: .9; letter-spacing: 2px; color: var(--text);
}
.cp-hero-by {
  font-size: 15px; color: var(--text-muted); letter-spacing: 1px;
}
.cp-hero-by strong { color: #25d366; font-weight: 700; }
.cp-hero-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-top: 4px;
}

/* Avatar */
.cp-hero-avatar {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.cp-avatar-ring {
  width: 150px; height: 150px; border-radius: 50%;
  border: 3px solid rgba(37,211,102,.4);
  overflow: hidden; position: relative;
  background: var(--surface2);
  box-shadow: 0 0 40px rgba(37,211,102,.2);
}
.cp-avatar-ring img {
  width: 100%; height: 100%; object-fit: cover;
}
.cp-avatar-fallback {
  display: none; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-family: 'Bebas Neue', sans-serif; font-size: 36px; color: #25d366;
}
.cp-avatar-label {
  font-size: 11px; color: var(--text-dim); letter-spacing: .5px;
}

/* WhatsApp button */
.cp-wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #000;
  font-family: 'Bebas Neue', sans-serif; font-size: 14px; letter-spacing: 1.5px;
  padding: 11px 22px; border-radius: 8px; text-decoration: none;
  width: fit-content; margin-top: 6px;
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.cp-wa-btn:hover {
  opacity: .9; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,.3);
}
.cp-wa-btn-large {
  font-size: 17px; padding: 15px 32px;
}

/* Features list */
.cp-features {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 28px;
}
.cp-feature {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 20px 22px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}
.cp-feature:hover {
  border-color: rgba(37,211,102,.2);
  background: rgba(37,211,102,.03);
}
.cp-feature-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  color: rgba(37,211,102,.35); letter-spacing: 1px;
  flex-shrink: 0; line-height: 1; padding-top: 2px;
  min-width: 28px;
}
.cp-feature-title {
  font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px;
}
.cp-feature-desc {
  font-size: 12px; color: var(--text-muted); line-height: 1.65;
}

/* CTA bloc final */
.cp-cta-block {
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(37,211,102,.2);
  background: linear-gradient(135deg, #0d1a10 0%, #090909 100%);
}
.cp-cta-inner {
  padding: 36px 32px;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center;
}
.cp-cta-tag {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #25d366; background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.2); border-radius: 20px;
  padding: 4px 12px;
}
.cp-cta-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(26px, 5vw, 36px); letter-spacing: 1.5px;
  color: var(--text); line-height: 1.1;
}
.cp-cta-sub {
  font-size: 13px; color: var(--text-muted); max-width: 400px; line-height: 1.7;
}
.cp-cta-note {
  font-size: 11px; color: var(--text-dim); margin-top: 4px;
}

/* Responsive mobile */
@media (max-width: 600px) {
  .cp-hero { flex-direction: column-reverse; padding: 24px 20px; gap: 20px; }
  .cp-hero-avatar { flex-direction: row; gap: 14px; align-self: flex-start; }
  .cp-avatar-ring { width: 64px; height: 64px; }
  .cp-avatar-fallback { font-size: 24px; }
  .cp-hero-title { font-size: 42px; }
  .cp-feature { padding: 16px; gap: 14px; }
  .cp-cta-inner { padding: 28px 20px; }
  .cp-wa-btn-large { font-size: 15px; padding: 14px 24px; width: 100%; justify-content: center; }
}

/* ─── APP FOOTER ──────────────────────────────────────────────────────────── */
.app-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; padding: 28px 28px;
  border-top: 1px solid var(--border);
  background: #050505;
  margin-top: auto;
}
.app-footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 16px; letter-spacing: 3px; color: var(--text-muted); }
.app-footer-dot { color: var(--red); }
.app-footer-copy { font-size: 11px; color: var(--text-dim); letter-spacing: .5px; }
.app-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.app-footer-links a { font-size: 11px; color: var(--text-dim); text-decoration: none; transition: color .2s; }
.app-footer-links a:hover { color: var(--text-muted); }
@media (max-width: 600px) {
  .app-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — PRIORITÉ 1 : SAISIE DE TEXTE
   Empêche le zoom iOS (font-size < 16px déclenche le zoom)
   ═══════════════════════════════════════════════════════════ */

/* Tous les inputs/selects en dessous de 768px → 16px minimum */
@media (max-width: 768px) {
  html { overflow-x: hidden; }

  /* Auth inputs */
  .auth-input-wrap input,
  .auth-input-wrap.pw-wrap input {
    font-size: 16px;
    min-height: 48px;
    padding: 12px 14px 12px 38px;
  }

  /* Metabolism + physique + food form inputs */
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
    min-height: 48px;
    padding: 12px 13px;
  }

  /* Tracker performance modal inputs/select */
  #perf-exercise,
  #perf-custom-ex,
  #perf-weight,
  #perf-reps {
    font-size: 16px;
    min-height: 48px;
  }

  /* Claudo chat input */
  .claudo-input {
    font-size: 16px;
    min-height: 48px;
    padding: 12px 18px;
  }

  /* Bouton d'envoi Claudo — cible tactile confortable */
  .claudo-send {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  /* Boutons principaux — cible 48px */
  .auth-btn { min-height: 48px; }
  .tr-add-btn { min-height: 44px; padding: 10px 18px; }
  .perf-add-set-btn { min-height: 44px; padding: 10px 16px; }
  .perf-submit { min-height: 48px; font-size: 16px; }
  .modal-cta { min-height: 52px; }
  .calc-btn { min-height: 48px; }
  .claudo-locked-cta { min-height: 52px; }

  /* Tracker tab boutons */
  .tr-tab { min-height: 40px; padding: 8px 14px; }

  /* Modal de paiement — plein écran sur mobile */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    max-height: 92dvh;
    border-radius: 12px 12px 0 0;
    max-width: 100%;
    width: 100%;
  }

  /* Perf modal — plein largeur, scroll */
  .perf-modal-overlay { padding: 0; align-items: flex-end; }
  .perf-modal {
    max-width: 100%; width: 100%;
    border-radius: 12px 12px 0 0;
    max-height: 92dvh;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .perf-modal-left { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 16px 18px; }
  .perf-modal-right { padding: 18px 16px 28px; }
  .perf-quick-stats { grid-template-columns: repeat(3,1fr); }
  .pqs-val { font-size: 18px; }

  /* Toast centré en bas */
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE — CLAUDO : dvh pour gérer le clavier virtuel iOS
   100vh reste fixe quand le clavier s'ouvre → dvh s'adapte
   ═══════════════════════════════════════════════════════════ */
@supports (height: 100dvh) {
  #page-claudo.active {
    height: calc(100dvh - 50px);
  }
  @media (max-width: 600px) {
    #page-claudo.active {
      height: calc(100dvh - 46px);
    }
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — PRIORITÉ 2 : CONTENU
   Lisibilité, largeur, images
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Images fluid */
  img, video { max-width: 100%; height: auto; }

  /* Texte lisible sans zoom */
  .page-desc,
  .ac-value,
  .il-desc,
  .tl-pdf-sub,
  .cp-feature-desc,
  .gate-sub,
  .auth-box-sub {
    font-size: 14px;
    line-height: 1.65;
  }

  /* Titres de page plus petits sur 375px */
  .page-title { font-size: clamp(28px, 9vw, 42px); }

  /* Tracker table scroll horizontal si trop étroite */
  .tr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Form grid → 1 colonne sous 375px */
  @media (max-width: 375px) {
    .form-grid { grid-template-columns: 1fr; }
    .perf-row { grid-template-columns: 1fr; }
    .perf-add-inputs { grid-template-columns: 1fr; }
    .auth-row { grid-template-columns: 1fr; }
  }

  /* ia-tool names lisibles */
  .ia-tool-name { font-size: 10px; }

  /* Coaching perso hero — avatar plus petit */
  .cp-avatar-ring { width: 56px; height: 56px; }

  /* Dash home header padding */
  .dash-home-header { padding: 20px 16px 16px; }
  .dash-greeting { font-size: 28px; }

  /* Tools PDF card responsive */
  .tl-pdf { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tl-pdf-btn { width: 100%; text-align: center; }
}
