/* ==========================================================================
   Momo — Design system partagé
   Dark premium · Space Grotesk (titres/chiffres) + Manrope (texte courant)
   ========================================================================== */

:root {
  --bg: #0D0E11;
  --bg-deep: #050608;
  --card: #16181D;
  --card-alt: #1B1E25;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #F4F5F7;
  --text-dim: #949AA6;
  --text-faint: #6E7480;

  --orange: #FF6A2B;   /* salle */
  --cyan: #22D3EE;     /* mobilité */
  --yellow: #FACC15;   /* cardio */
  --grey: #8B909A;     /* repos */
  --lime: #84CC16;     /* nutrition */

  --accent: var(--orange);

  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { background: var(--bg-deep); }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; }
ul { list-style: none; }

::-webkit-scrollbar { display: none; }

.grotesk { font-family: 'Space Grotesk', sans-serif; }

/* ---------- layout shell ---------- */

.shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* ---------- header ---------- */

.topheader {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 14, 17, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: calc(env(safe-area-inset-top) + 14px) 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: var(--bg-deep);
}

.brand-name { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; }
.brand-sub { font-size: 11px; color: var(--text-faint); font-weight: 600; margin-top: -1px; }

.header-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  padding: 7px 12px;
  border-radius: 11px;
  white-space: nowrap;
}

.back-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ---------- main content ---------- */

main {
  padding: 22px 16px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  padding: 0 4px 12px;
  text-transform: uppercase;
}

.section-title.tight { padding-top: 24px; }

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.card-gradient {
  background: linear-gradient(150deg, var(--card-alt) 0%, #141619 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.card-arrow { font-size: 22px; color: #4A4F59; flex-shrink: 0; }

/* stat chips row inside a card */
.stat-chips { display: flex; gap: 8px; margin-top: 16px; }
.stat-chip {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.stat-chip-val { font-size: 19px; font-weight: 800; line-height: 1; }
.stat-chip-lbl {
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ---------- category tints ---------- */

.tint-salle { color: var(--orange); }
.tint-mob { color: var(--cyan); }
.tint-cardio { color: var(--yellow); }
.tint-rest { color: var(--grey); }
.tint-nutrition { color: var(--lime); }

.bg-salle { background: rgba(255, 106, 43, 0.14); border: 1px solid rgba(255, 106, 43, 0.3); }
.bg-mob { background: rgba(34, 211, 238, 0.14); border: 1px solid rgba(34, 211, 238, 0.3); }
.bg-cardio { background: rgba(250, 204, 21, 0.14); border: 1px solid rgba(250, 204, 21, 0.3); }
.bg-rest { background: rgba(139, 144, 154, 0.14); border: 1px solid rgba(139, 144, 154, 0.3); }
.bg-nutrition { background: rgba(132, 204, 22, 0.14); border: 1px solid rgba(132, 204, 22, 0.3); }

/* ---------- progress bar ---------- */

.progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 99px;
  transition: width 0.6s ease;
}
.progress-fill.thin { height: 6px; }
.progress-track.thin { height: 6px; }

/* ---------- badges / chips ---------- */

.badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}

/* ---------- week strip / timeline ---------- */

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.week-cell {
  border-radius: 15px;
  padding: 11px 2px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.week-cell.today { box-shadow: 0 0 0 1.5px var(--dot-color, var(--accent)); }
.week-day-lbl { font-size: 10px; font-weight: 800; letter-spacing: 0.3px; color: var(--text-faint); }
.week-day-lbl.today { color: var(--dot-color, var(--accent)); }
.week-icon { font-size: 20px; line-height: 1; }
.week-dot { width: 6px; height: 6px; border-radius: 50%; }

/* vertical timeline w/ colored dots */
.timeline { border-left: 2px solid var(--cyan); padding-left: 14px; margin: 0 0 10px; }
.timeline.yellow { border-left-color: var(--yellow); }
.t-item { position: relative; margin-bottom: 14px; }
.t-item:last-child { margin-bottom: 0; }
.t-dot {
  position: absolute; left: -19px; top: 4px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.timeline.yellow .t-dot { background: var(--yellow); box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15); }
.t-time {
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 2px;
}
.t-name { font-weight: 700; font-size: 14px; }
.t-detail { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; line-height: 1.5; }

/* ---------- alerts ---------- */

.alert {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  border: 1px solid;
  margin-bottom: 10px;
}
.alert strong { display: block; margin-bottom: 3px; font-size: 13px; }
.alert-warn { background: rgba(250, 204, 21, 0.08); border-color: rgba(250, 204, 21, 0.25); color: #F4E5A8; }
.alert-warn strong { color: var(--yellow); }
.alert-info { background: rgba(34, 211, 238, 0.08); border-color: rgba(34, 211, 238, 0.25); color: #C7EFF7; }
.alert-info strong { color: var(--cyan); }
.alert-good { background: rgba(132, 204, 22, 0.08); border-color: rgba(132, 204, 22, 0.25); color: #DCEFC0; }
.alert-good strong { color: var(--lime); }
.alert-danger { background: rgba(255, 106, 43, 0.08); border-color: rgba(255, 106, 43, 0.25); color: #F5CBB4; }
.alert-danger strong { color: var(--orange); }

/* ---------- exercise table ---------- */

.ex-table { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 10px; }
.ex-row {
  display: grid;
  grid-template-columns: 26px 1fr 42px 56px 48px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.ex-row:last-child { border-bottom: none; }
.ex-row.hdr { background: rgba(255, 255, 255, 0.03); }
.ex-row.checked { background: rgba(132, 204, 22, 0.06); }
.ex-cell { padding: 10px 8px; font-size: 13px; display: flex; flex-direction: column; justify-content: center; }
.ex-cell.center { align-items: center; text-align: center; }
.ex-row.hdr .ex-cell { font-size: 9px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-faint); }
.ex-name { font-weight: 700; line-height: 1.3; }
.ex-row.checked .ex-name { color: var(--text-dim); text-decoration: line-through; text-decoration-color: rgba(132,204,22,0.5); }
.ex-note { font-size: 11px; color: var(--text-faint); margin-top: 2px; line-height: 1.4; }
.ex-note.warn { color: var(--orange); font-weight: 600; }
.ex-sets { font-weight: 800; font-size: 15px; }
.ex-reps { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.ex-rest { font-size: 11px; background: rgba(255, 255, 255, 0.06); color: var(--yellow); padding: 3px 6px; border-radius: 6px; font-weight: 700; }

/* checkbox */
.ex-check {
  width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: all 0.15s;
}
.ex-check.checked { background: var(--lime); border-color: var(--lime); }
.ex-check.checked::after {
  content: '✓'; color: #0D0E11; font-size: 13px; font-weight: 900;
}

/* exercise info block (mobility cards) */
.ex-block { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.ex-block-hdr { display: flex; align-items: center; gap: 10px; padding: 13px; }
.ex-check-block { flex-shrink: 0; }
.ex-num { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--cyan); width: 24px; flex-shrink: 0; }
.ex-info { flex: 1; min-width: 0; }
.ex-info .ex-title { font-weight: 700; font-size: 14px; line-height: 1.25; }
.ex-info .ex-target { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--cyan); margin-top: 2px; }
.ex-badge { background: rgba(255, 255, 255, 0.06); color: var(--yellow); font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 20px; flex-shrink: 0; white-space: nowrap; }
.ex-body { padding: 0 13px 12px; font-size: 12.5px; color: var(--text-dim); line-height: 1.55; }
.ex-warn-bar { background: rgba(255, 106, 43, 0.08); border-top: 1px solid rgba(255, 106, 43, 0.2); padding: 8px 13px; font-size: 11.5px; color: var(--orange); font-weight: 600; }
.ex-tip-bar { background: rgba(34, 211, 238, 0.08); border-top: 1px solid rgba(34, 211, 238, 0.2); padding: 8px 13px; font-size: 11.5px; color: var(--cyan); }
.vid-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 13px;
  border-top: 1px solid var(--border); font-size: 11.5px; font-weight: 700;
  color: var(--text); background: rgba(255, 255, 255, 0.02);
}
.yt { width: 24px; height: 17px; background: #FF0000; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yt::after { content: ''; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent white; margin-left: 2px; }

/* stretch card */
.stretch-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.stretch-body { display: flex; gap: 12px; padding: 13px; align-items: flex-start; }
.s-icon { font-size: 24px; flex-shrink: 0; line-height: 1.2; }
.s-zone { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--cyan); margin-bottom: 3px; }
.s-name { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.s-desc { font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.s-dur { margin-top: 6px; display: inline-block; background: rgba(255, 255, 255, 0.06); color: var(--yellow); font-size: 10px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }

/* ---------- buttons ---------- */

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.1px;
  transition: transform 0.1s, opacity 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); color: var(--bg-deep); }
.btn-done { background: var(--lime); color: var(--bg-deep); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-strong); color: var(--text); }

/* ---------- forms ---------- */

.field-row { display: flex; gap: 8px; }
.field-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.field-input::placeholder { color: var(--text-faint); font-weight: 500; }
.field-input:focus { outline: none; border-color: var(--accent); }

/* weight history list */
.weight-history { margin-top: 4px; }
.wh-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.wh-row:last-child { border-bottom: none; }
.wh-date { color: var(--text-dim); font-weight: 600; }
.wh-val { font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.wh-delta { font-size: 11px; font-weight: 700; margin-left: 6px; }
.wh-delta.down { color: var(--lime); }
.wh-delta.up { color: var(--orange); }
.wh-remove { color: var(--text-faint); font-size: 16px; padding: 4px 8px; }

/* ---------- tab nav (day nav / section tabs) ---------- */

.tab-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 0 14px;
  margin: 0 -2px;
}
.tab-btn {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  white-space: nowrap;
  transition: all 0.15s;
}
.tab-btn.active { color: var(--bg-deep); background: var(--accent); border-color: var(--accent); }
.tab-btn.done-marker::after { content: ' ✓'; }

.panel { display: none; }
.panel.active { display: block; }

/* ---------- bottom tab bar ---------- */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(13, 14, 17, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  padding: 8px 16px calc(env(safe-area-inset-bottom) + 8px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 50;
}
.tabbar-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 0;
}
.tabbar-icon { font-size: 21px; line-height: 1; opacity: 0.5; }
.tabbar-item.active .tabbar-icon { opacity: 1; }
.tabbar-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.3px; color: var(--text-faint); }
.tabbar-item.active .tabbar-lbl { font-weight: 800; color: var(--accent); }

.page-end-spacer { height: calc(env(safe-area-inset-bottom) + 96px); }

footer.site-footer {
  text-align: center;
  padding: 20px 16px 8px;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.6;
  font-weight: 600;
}

/* ---------- day hero (programme.html) ---------- */

.day-hero { padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.day-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.day-number { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 46px; line-height: 1; color: var(--border-strong); }
.day-title { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 24px; line-height: 1.1; margin-top: 10px; }
.day-subtitle { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 4px; color: var(--text-dim); }
.day-timing { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.timing-chip { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 10px; padding: 6px 11px; font-size: 12px; font-weight: 700; }
.timing-chip span { color: var(--text-dim); font-weight: 500; }
.badge-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- generic bullet list box ---------- */

.list-box { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 16px; padding: 13px 15px; margin-bottom: 10px; }
.list-box ul { padding-left: 16px; list-style: disc; }
.list-box li { font-size: 13px; color: var(--text-dim); margin-bottom: 5px; line-height: 1.5; }
.list-box li:last-child { margin-bottom: 0; }
.list-box li b, .list-box li strong { color: var(--text); }

.subhead { font-size: 13px; font-weight: 800; color: var(--text-dim); padding: 16px 2px 8px; }
.subhead:first-child { padding-top: 0; }

/* ---------- stat hero (steps / cardio big numbers) ---------- */

.stat-hero { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; margin-bottom: 12px; }
.stat-hero-big { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 44px; line-height: 1; margin-bottom: 4px; }
.stat-hero-lbl { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.stat-hero-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.stat-hero-tip { background: rgba(255, 255, 255, 0.04); border-radius: 12px; padding: 10px; }
.stat-hero-tip-val { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; }
.stat-hero-tip-lbl { font-size: 10px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* ---------- macro banner (nutrition.html) ---------- */

.macro-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--border); border-radius: 18px; margin-bottom: 16px; overflow: hidden; }
.macro-cell { padding: 14px 8px; text-align: center; border-right: 1px solid var(--border); }
.macro-cell:last-child { border-right: none; }
.macro-val { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--lime); line-height: 1; }
.macro-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-faint); margin-top: 4px; }

/* ---------- budget / rows table ---------- */

.row-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.row-card-header { background: rgba(255, 255, 255, 0.04); padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; }
.row-card-title { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; }
.row-card-total { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--lime); }
.data-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid var(--border); font-size: 13px; gap: 10px; }
.data-row:last-child { border-bottom: none; }
.data-row .label { color: var(--text-dim); }
.data-row .val { font-weight: 700; white-space: nowrap; }
.data-row .val.lime { color: var(--lime); }
.data-row.total-row { background: rgba(255, 255, 255, 0.03); }
.data-row.total-row .label { font-weight: 700; color: var(--text); }
.data-row .qty { display: block; font-size: 11px; color: var(--text-faint); font-weight: 400; margin-top: 1px; }
.data-row .name { flex: 1; font-weight: 600; line-height: 1.35; }

.category-hdr { background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--border); padding: 9px 15px; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); }

/* ---------- meal cards ---------- */

.meal-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.meal-header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.meal-time-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.3px; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.badge-matin { background: rgba(250, 204, 21, 0.14); color: var(--yellow); }
.badge-midi { background: rgba(132, 204, 22, 0.14); color: var(--lime); }
.badge-collation { background: rgba(34, 211, 238, 0.14); color: var(--cyan); }
.badge-soir { background: rgba(255, 106, 43, 0.14); color: var(--orange); }
.meal-name { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 700; flex: 1; }
.meal-kcal { font-size: 11px; font-weight: 700; color: var(--text-faint); white-space: nowrap; }
.meal-body { padding: 11px 14px; }
.meal-items { margin-bottom: 8px; }
.meal-item { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--border); gap: 10px; }
.meal-item:last-child { border-bottom: none; }
.meal-item-name { color: var(--text); }
.meal-item-qty { color: var(--text-faint); font-size: 12px; white-space: nowrap; }
.meal-macros { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mmacro { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 7px; }
.mp { background: rgba(132, 204, 22, 0.14); color: var(--lime); }
.mg { background: rgba(250, 204, 21, 0.14); color: var(--yellow); }
.ml { background: rgba(255, 106, 43, 0.14); color: var(--orange); }
.meal-tip { margin-top: 8px; font-size: 11.5px; color: var(--text-faint); font-style: italic; padding-top: 7px; border-top: 1px solid var(--border); line-height: 1.5; }

/* ---------- tip grid (nutrition conseils) ---------- */

.tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tip-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 13px; }
.tip-card-icon { font-size: 20px; margin-bottom: 6px; }
.tip-card-title { font-family: 'Space Grotesk', sans-serif; font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.tip-card-text { font-size: 11px; color: var(--text-dim); line-height: 1.45; }
