/* ============================================================
   BELLA FLOW — Move • Nourish • Mind
   Identité visuelle : premium, moderne, féminine, dynamique.
   Les classes historiques (card, btn, meal-row, badge-tile…) sont
   conservées : les pages existantes restent fonctionnelles.
   ============================================================ */

:root {
  /* Palette BELLA FLOW */
  --noir: #111111;
  --blanc-casse: #FAFAF7;
  --violet: #7C3AED;
  --rose: #F43F7A;
  --vert: #B8E986;
  --lilas: #E9D5FF;

  /* Alias historiques (compatibilité avec l'ancien CSS/JS) */
  --color-primary: var(--violet);
  --color-primary-dark: var(--rose);
  --color-bg: var(--noir);
  --color-card: #1A1A1D;
  --color-text: var(--blanc-casse);
  --color-muted: #9C97A6;
  --color-success: var(--vert);

  /* Surfaces & effets */
  --surface-2: #222227;
  --surface-3: #2C2C33;
  --line: rgba(250, 250, 247, 0.10);
  --line-strong: rgba(250, 250, 247, 0.18);
  --grad: linear-gradient(135deg, var(--violet), var(--rose));
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(244, 63, 122, 0.18));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 8px 26px rgba(124, 58, 237, 0.35);
}

.discovery-page {
  --discovery-night: #020224;
  --discovery-pink: #FF2C9C;
  --discovery-purple: #782BCE;
  --discovery-blue: #287BFF;
  background: radial-gradient(ellipse at 90% 15%, #782BCE24, transparent 45%), radial-gradient(ellipse at 0 90%, #287BFF18, transparent 40%), var(--discovery-night);
  color: #fbf7ff;
  min-height: 100svh;
}
.discovery-page .app-header { display: none; }
.discovery-page .app-main { max-width: 1100px; padding: 24px 22px; animation: none; }
.public-overview { max-width: 760px; margin: 32px auto 16px; padding: clamp(18px, 4vw, 28px); border: 1px solid #782BCE80; border-left: 3px solid #FF2C9C; border-radius: 16px; background: #020224; color: #fbf7ff; text-align: left; }
.public-overview h2 { margin: 0 0 16px; font-size: clamp(1.1rem, 3vw, 1.4rem); line-height: 1.4; }
.public-overview p, .public-overview dd { color: #c7bedf; font-size: .88rem; line-height: 1.75; }
.public-overview p { margin: 12px 0; }
.public-overview dl { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 12px 16px; margin: 20px 0; }
.public-overview dt { color: #ff91cc; font-size: .82rem; font-weight: 700; line-height: 1.9; }
.public-overview dd { margin: 0; }
.public-overview nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 16px; }
.public-overview a { display: inline-block; padding: 10px 0; color: #a9c9ff; font-size: .82rem; text-underline-offset: 4px; }
.public-overview a:hover { color: #fbf7ff; }
.public-overview a:focus-visible { outline: 2px solid #FF2C9C; outline-offset: 4px; border-radius: 2px; }
.discovery-shell { width: 100%; }
.discovery-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 0 28px; border-bottom: 1px solid #ffffff20; }
.discovery-brand { font-weight: 800; font-size: 1.8rem; letter-spacing: -.065em; }
.discovery-brand > span { display: block; font-size: .55rem; font-weight: 500; letter-spacing: .19em; color: #c7bedf; margin-top: 7px; }
.discovery-login { font-size: .8rem; color: #f9f3ff; text-decoration: none; padding: 12px 0; }
.discovery-login:hover, .discovery-footer a:hover { color: #ff91cc; }
.discovery-progress { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 28px 0 40px; font-size: .65rem; letter-spacing: .09em; color: #c7bedf; }
.discovery-progress progress { grid-column: 1 / -1; width: 100%; height: 3px; border: 0; border-radius: 4px; background: #ffffff18; accent-color: var(--discovery-pink); }
.discovery-progress progress::-webkit-progress-bar { background: #ffffff18; border-radius: 4px; }
.discovery-progress progress::-webkit-progress-value { background: linear-gradient(90deg, var(--discovery-pink), var(--discovery-purple), var(--discovery-blue)); border-radius: 4px; }
.discovery-progress progress::-moz-progress-bar { background: linear-gradient(90deg, var(--discovery-pink), var(--discovery-purple), var(--discovery-blue)); }
.discovery-body { max-width: 760px; margin: auto; animation: discovery-enter .28s ease both; }
.discovery-body:has(.discovery-intro) { max-width: none; }
.discovery-kicker { color: #ff91cc; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 18px; font-weight: 650; }
.discovery-body h1 { font-size: clamp(2rem, 4.8vw, 3.6rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.09; margin: 0 0 22px; text-wrap: balance; }
.discovery-body h1 span { color: #ff91cc; }
.discovery-lead { color: #c7bedf; font-size: 1rem; line-height: 1.8; max-width: 580px; margin: 0 0 28px; }
.discovery-primary.btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 18px; min-height: 58px; padding: 18px 22px; margin: 28px 0 14px; border: 1px solid #ffffff24; border-radius: 12px; background: linear-gradient(110deg, #c21971, #782BCE 68%, #285ccc); box-shadow: 0 8px 26px #02022466; color: white; font-size: .78rem; letter-spacing: .055em; line-height: 1.5; text-align: left; }
.discovery-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 30px #782bce30; }
.discovery-primary:disabled { opacity: .5; cursor: not-allowed; }
.discovery-primary > span { font-size: 1.3rem; }
.discovery-note { font-size: .76rem; line-height: 1.75; color: #b9afd3; }
.discovery-signature { font-family: Georgia, serif; font-style: italic; font-size: 1.38rem; line-height: 1.55; margin: 30px 0; }
.discovery-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; text-align: center; }
.discovery-intro-copy { width: 100%; }
.discovery-intro .discovery-lead { margin-inline: auto; }
.discovery-intro .discovery-signature { margin: 0; }
.discovery-welcome-image { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 16px; box-shadow: 0 0 0 1px #782BCE66, 0 16px 48px #02022480; }
.discovery-intro-action { width: 100%; max-width: 520px; margin-inline: auto; }
.discovery-intro-action .discovery-primary { margin-top: 0; background: linear-gradient(110deg, var(--discovery-purple), var(--discovery-blue)); border-color: var(--discovery-pink); box-shadow: 0 8px 26px #FF2C9C24; }
.discovery-choices { display: grid; gap: 12px; margin: 28px 0; }
.discovery-choice { display: grid; grid-template-columns: 48px 1fr 22px; align-items: center; gap: 16px; text-align: left; border: 1px solid #ffffff26; background: #ffffff04; color: #fbf7ff; padding: 20px; min-height: 96px; border-radius: 15px; cursor: pointer; transition: transform .18s, background .18s; font: inherit; }
.discovery-choice:hover { background: #ffffff09; transform: translateX(3px); }
.discovery-choice.selected { border-color: #ff91cc; background: linear-gradient(110deg, #ff2c9c12, #782bce16); }
.discovery-choice strong { display: block; font-size: 1.05rem; font-weight: 650; letter-spacing: .015em; }
.discovery-choice small { display: block; color: #c7bedf; font-size: .8rem; line-height: 1.65; margin-top: 6px; }
.discovery-choice-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #ffffff1f; border-radius: 50%; font-size: .8rem; color: #c7bedf; }
.discovery-plume .discovery-choice-mark, .discovery-pulpe .discovery-choice-mark, .discovery-plume-pulpe .discovery-choice-mark { font-size: 1.6rem; }
.discovery-choice-check { font-size: 1.25rem; color: #ff91cc; }
.discovery-sites { display: grid; gap: 14px; margin-top: 32px; }
.discovery-site { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px; border: 1px solid #ffffff22; background: #ffffff04; border-radius: 15px; }
.discovery-site-index { font-family: Georgia, serif; color: #ff91cc; font-style: italic; font-size: 1.7rem; }
.discovery-site h2 { font-size: 1.18rem; margin: 0 0 9px; }
.discovery-site p { color: #c7bedf; line-height: 1.65; font-size: .88rem; }
.discovery-site a { display: inline-block; padding: 12px 0; color: #a9c9ff; text-decoration: none; font-size: .82rem; }
.discovery-age { padding: 24px; margin-top: 30px; border: 1px solid #ffffff26; border-radius: 15px; }
.discovery-age label { display: block; margin-bottom: 12px; }
.discovery-age input { display: block; width: 100%; max-width: 200px; min-height: 58px; padding: 12px 18px; background: #ffffff08; border: 1px solid #ffffff50; border-radius: 10px; color: #fff; font: inherit; font-size: 1.3rem; }
.discovery-age p { font-size: .78rem; line-height: 1.8; color: #c7bedf; margin: 18px 0 0; }
.discovery-skip { min-height: 48px; width: 100%; border: 0; background: transparent; color: #c7bedf; font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.discovery-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #ffffff1f; border: 1px solid #ffffff1f; border-radius: 15px; overflow: hidden; margin: 28px 0; }
.discovery-summary > div { padding: 20px; background: #09092e; }
.discovery-summary dt { color: #c7bedf; font-size: .7rem; margin-bottom: 10px; }
.discovery-summary dd { margin: 0; font-weight: 600; font-size: 1rem; }
.discovery-insight { border-left: 2px solid var(--discovery-pink); padding: 8px 0 8px 20px; margin: 26px 0; }
.discovery-insight p { line-height: 1.8; font-size: .92rem; }
.discovery-content-grid { display: grid; gap: 12px; }
.discovery-content-card, .discovery-tips { border: 1px solid #ffffff24; background: #ffffff04; border-radius: 15px; padding: 22px; }
.discovery-content-label { font-size: .64rem; letter-spacing: .14em; color: #a9c9ff; }
.discovery-content-card h3 { margin: 12px 0; font-size: 1.1rem; }
.discovery-content-card p, .discovery-tips p { color: #c7bedf; line-height: 1.8; font-size: .83rem; margin-bottom: 0; }
.discovery-tips { margin: 14px 0; }
.discovery-tips small { display: block; color: #c7bedf; font-size: .75rem; line-height: 1.8; margin-top: 15px; }
.discovery-offer { display: grid; grid-template-columns: 140px 1fr; gap: 28px; padding: 30px; margin: 28px 0; border-radius: 18px; border: 1px solid #ff2c9c50; background: linear-gradient(120deg, #ff2c9c12, #782bce18, #287bff0a); }
.discovery-offer-number { font-family: Georgia, serif; font-size: 6rem; line-height: 1; color: #ff91cc; text-align: center; }
.discovery-offer-number > span { display: block; font: 500 .68rem/1.7 sans-serif; color: #c7bedf; margin-top: 12px; }
.discovery-offer h2 { font-size: 1.1rem; margin: 0 0 16px; }
.discovery-offer ul { padding-left: 18px; color: #c7bedf; font-size: .87rem; line-height: 2; }
.discovery-terms { color: #d0c8e1; font-size: .83rem; line-height: 1.85; }
.discovery-message { min-height: 22px; color: #ffb2d9; font-size: .8rem; line-height: 1.7; margin: 16px auto; max-width: 760px; }
.discovery-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid #ffffff20; margin-top: 36px; padding-top: 20px; font-size: .7rem; color: #c7bedf; }
.discovery-footer nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.discovery-footer a { color: #c7bedf; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.discovery-back { min-height: 44px; border: 0; background: none; color: #f9f3ff; font: inherit; cursor: pointer; padding: 8px 0; }
.discovery-shell :focus-visible { outline: 2px solid #a9c9ff; outline-offset: 5px; }
.discovery-shell h1:focus { outline: none; }
.discovery-shell .legal-consent { color: #d0c8e1; }
.discovery-shell .legal-consent a { color: #a9c9ff; }
@keyframes discovery-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .discovery-page .app-main { padding: 22px 20px; }
  .discovery-top { align-items: flex-start; gap: 18px; padding-bottom: 20px; }
  .discovery-brand { font-size: 1.5rem; flex-shrink: 0; }
  .discovery-brand > span { font-size: .45rem; }
  .discovery-login { font-size: .69rem; max-width: 160px; text-align: right; line-height: 1.6; padding: 3px 0; min-height: 44px; }
  .discovery-progress { margin: 24px 0 30px; }
  .discovery-intro { gap: 20px; }
  .discovery-signature { margin: 20px 0; font-size: 1.15rem; }
  .discovery-choice { padding: 16px; gap: 12px; grid-template-columns: 40px 1fr 20px; }
  .discovery-choice-mark { width: 40px; height: 40px; }
  .discovery-choice strong { font-size: .95rem; }
  .discovery-offer { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .discovery-offer-number { font-size: 5rem; }
  .discovery-footer { flex-wrap: wrap; gap: 8px; margin-top: 26px; }
  .discovery-footer nav { width: 100%; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .discovery-page .app-main, .discovery-body { animation: none; }
  .discovery-shell *, .discovery-shell *::before, .discovery-shell *::after { transition: none; animation: none; scroll-behavior: auto; }
  .discovery-primary:hover:not(:disabled), .discovery-choice:hover { transform: none; }
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--noir);
  background-image:
    radial-gradient(900px 420px at 12% -8%, rgba(124, 58, 237, 0.30), transparent 60%),
    radial-gradient(760px 380px at 92% 4%, rgba(244, 63, 122, 0.20), transparent 62%);
  background-attachment: fixed;
  color: var(--color-text);
  padding-bottom: 96px;
  -webkit-font-smoothing: antialiased;
}

body.path-choice-active {
  padding-bottom: 0;
}

body.path-choice-active .app-header,
body.path-choice-active .bottom-nav {
  display: none;
}

body.path-choice-active .app-main {
  max-width: 920px;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 36px;
}

/* ---------------- Header ---------------- */

.app-header {
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  color: var(--blanc-casse);
  padding: 18px 18px 14px;
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { text-align: left; }

.app-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 6px;
}

.subtitle {
  margin: 3px 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.header-profile {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--blanc-casse);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.header-profile:active { transform: scale(0.92); }

.app-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 8px;
  animation: page-in 0.32s ease both;
}

/* ---------------- Choix du parcours ---------------- */

.path-choice-shell {
  width: 100%;
}

.path-choice-brand {
  margin: 0 4px 26px;
}

.path-choice-brand h1 {
  margin: 8px 0 0;
  max-width: 650px;
  font-size: clamp(2.15rem, 8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.path-choice-brand h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.path-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.path-choice-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  color: var(--blanc-casse);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.path-choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,0.08), transparent 45%);
}

.path-choice-card:hover { transform: translateY(-4px); border-color: rgba(250, 250, 247, 0.34); }
.path-choice-card:active { transform: scale(0.985); }
.path-choice-plume { background: radial-gradient(circle at 20% 12%, rgba(233,213,255,0.24), transparent 34%), linear-gradient(145deg, #21172f, #17151d); }
.path-choice-pulpe { background: radial-gradient(circle at 82% 12%, rgba(244,63,122,0.28), transparent 36%), linear-gradient(145deg, #351424, #1b151b); }
.path-choice-combined {
  grid-column: 1 / -1;
  min-height: 260px;
  background: radial-gradient(circle at 18% 12%, rgba(233,213,255,0.2), transparent 34%), radial-gradient(circle at 84% 16%, rgba(244,63,122,0.22), transparent 36%), linear-gradient(145deg, #29182d, #18151d);
}
.path-choice-card:disabled { cursor: default; }
.path-choice-card:disabled:hover,
.path-choice-card:disabled:active { transform: none; border-color: var(--line-strong); }
.path-choice-icon { position: absolute; top: 24px; right: 26px; font-size: 3.2rem; }
.path-choice-combined .path-choice-icon { display: flex; align-items: center; gap: 8px; }
.path-choice-combined .path-choice-icon span { color: var(--lilas); font-size: 1.3rem; font-weight: 800; }
.path-choice-name { font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.path-choice-title { margin-top: 8px; color: var(--blanc-casse); font-size: 1rem; font-weight: 750; }
.path-choice-copy { max-width: 310px; margin-top: 8px; color: rgba(250,250,247,0.72); font-size: 0.95rem; line-height: 1.5; }
.path-choice-cta { margin-top: 22px; color: var(--lilas); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.path-choice-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
}
.path-choice-info-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad-soft); color: var(--lilas); font-size: 1.1rem; }
.path-choice-info h2 { margin: 1px 0 7px; font-size: clamp(1rem, 3vw, 1.18rem); }
.path-choice-info p { margin: 0; color: var(--color-muted); font-size: 0.9rem; line-height: 1.55; }

/* ---------------- Onboarding ---------------- */

.onboarding-shell {
  align-self: start;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.onboarding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.onboarding-back {
  min-height: 44px;
  padding: 0 4px;
  border: none;
  background: none;
  color: var(--lilas);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.onboarding-count { color: var(--color-muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }

.onboarding-progress {
  height: 4px;
  margin: 6px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.onboarding-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
  transition: width 0.3s ease;
}

.onboarding-step h1 {
  margin: 0 0 22px;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.onboarding-welcome { margin: 12vh 0 40px; }
.onboarding-welcome h1 { font-size: clamp(2rem, 8vw, 3rem); }
.onboarding-welcome p { margin: 0; color: rgba(250,250,247,0.72); font-size: 1.05rem; line-height: 1.55; }

.onboarding-subquestion { margin: 28px 0 14px; font-size: 1.1rem; letter-spacing: -0.01em; }

.onboarding-choices { display: grid; gap: 12px; }
.onboarding-choices-inline { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

.onboarding-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--color-card);
  color: var(--blanc-casse);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.onboarding-choice:active { transform: scale(0.985); }
.onboarding-choice.active { border-color: var(--lilas); background: var(--grad-soft); box-shadow: var(--shadow-glow); }
.onboarding-choices-inline .onboarding-choice { justify-content: center; text-align: center; }
.onboarding-choice-emoji { font-size: 1.6rem; line-height: 1; }
.onboarding-choice-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.onboarding-choice-text strong { font-size: 1rem; font-weight: 750; overflow-wrap: anywhere; }
.onboarding-choice-text small { color: rgba(250,250,247,0.72); font-size: 0.9rem; }

.onboarding-next { min-height: 54px; margin-top: 28px; font-size: 1rem; }

.onboarding-ready { margin: -10px 0 18px; color: rgba(250,250,247,0.82); font-size: 1.05rem; line-height: 1.5; }

.onboarding-summary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
}

.onboarding-hint { margin: 22px 0 0; color: var(--color-muted); font-size: 0.88rem; line-height: 1.5; }
.onboarding-paths { display: grid; gap: 12px; margin-top: 16px; }
.onboarding-paths .onboarding-next { margin-top: 0; }

.path-settings h3 { margin-bottom: 4px; }
.path-settings > p { margin-top: 0; color: var(--color-muted); }
.path-change-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.path-change-btn { display: grid; grid-template-columns: auto 1fr; gap: 2px 9px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--color-text); text-align: left; font: inherit; cursor: pointer; }
.path-change-btn > span { grid-row: span 2; font-size: 1.45rem; }
.path-change-btn strong { font-size: 0.78rem; }
.path-change-btn small { color: var(--lilas); font-size: 0.68rem; }
.path-change-btn.active { border-color: var(--lilas); background: var(--grad-soft); }
.path-change-btn:disabled { cursor: default; opacity: 0.76; }

.placeholder-card { position: relative; min-height: 350px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.placeholder-card .btn-link { position: absolute; top: 24px; }
.placeholder-icon { font-size: 3.4rem; margin-bottom: 18px; }
.placeholder-card p { max-width: 520px; color: var(--color-muted); line-height: 1.65; }
.pulpe-hero { background: linear-gradient(135deg, rgba(244,63,122,0.28), rgba(124,58,237,0.22)); }
.pulpe-module { border-color: rgba(244,63,122,0.2); }

/* ---------------- BELL’A PULPE ---------------- */

.pulpe-hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 143, 180, 0.24);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 192, 203, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(244, 63, 122, 0.28), rgba(124, 58, 237, 0.22));
}

.pulpe-hero::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -54px;
  bottom: -74px;
  border: 1px solid rgba(233, 213, 255, 0.18);
  border-radius: 46% 54% 60% 40%;
  transform: rotate(18deg);
  pointer-events: none;
}

.pulpe-module {
  border-color: rgba(244, 63, 122, 0.2);
  background:
    linear-gradient(145deg, rgba(244, 63, 122, 0.08), transparent 58%),
    var(--color-card);
}

.pulpe-module:hover { border-color: rgba(255, 143, 180, 0.48); }

.pulpe-panel {
  border-color: rgba(244, 63, 122, 0.22);
  box-shadow: 0 12px 34px rgba(66, 13, 40, 0.28);
}

.pulpe-lead { color: var(--lilas); line-height: 1.6; }

.pulpe-focus-grid .module-tile:nth-child(1),
.pulpe-focus-grid .module-tile:nth-child(4) { min-height: 132px; }

.pulpe-profile-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pulpe-profile-strip > div { display: grid; gap: 4px; }
.pulpe-profile-strip strong { font-size: 0.92rem; }
.pulpe-profile-strip small { color: var(--color-muted); line-height: 1.45; }

.pulpe-pillar-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.pulpe-pillar { margin: 0; min-height: 150px; }
.pulpe-pillar:nth-child(2), .pulpe-pillar:nth-child(3) { transform: translateY(14px); }
.pulpe-pillar > span { font-size: 1.7rem; }
.pulpe-pillar h3 { margin: 12px 0 6px; font-size: 0.98rem; }
.pulpe-pillar p { margin: 0; color: var(--color-muted); font-size: 0.82rem; line-height: 1.55; }
.pulpe-week { border-color: rgba(244, 63, 122, 0.2); }

.pulpe-mind-list { display: grid; gap: 10px; margin-bottom: 16px; }

.pulpe-mind-card {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  border-color: rgba(233, 213, 255, 0.16);
}

.pulpe-mind-card:hover { border-color: rgba(244, 63, 122, 0.42); transform: translateX(3px); }
.pulpe-mind-card > span:nth-child(2) { display: grid; gap: 5px; }
.pulpe-mind-card strong { font-size: 0.96rem; }
.pulpe-mind-card small { color: var(--color-muted); line-height: 1.45; }
.pulpe-mind-icon { font-size: 1.8rem; }
.pulpe-arrow { color: #FF8FB4; font-size: 1.3rem; }

.pulpe-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pulpe-step;
  display: grid;
  gap: 12px;
}

.pulpe-steps li {
  counter-increment: pulpe-step;
  position: relative;
  padding: 13px 14px 13px 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  line-height: 1.55;
  font-size: 0.88rem;
}

.pulpe-steps li::before {
  content: counter(pulpe-step);
  position: absolute;
  left: 13px;
  top: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.pulpe-script {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.pulpe-script p {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  line-height: 1.65;
  font-size: 0.88rem;
}

.pulpe-breath {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  color: var(--color-muted);
  font-size: 0.72rem;
  text-align: center;
}

.pulpe-breath i {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFB2CB, var(--violet));
  box-shadow: 0 0 28px rgba(244, 63, 122, 0.28);
  animation: pulpe-breathe 7s ease-in-out infinite;
}

@keyframes pulpe-breathe {
  0%, 100% { transform: scale(0.76); opacity: 0.64; }
  45% { transform: scale(1); opacity: 1; }
}

.pulpe-format-row { margin-bottom: 20px; }
.pulpe-format-row .pulpe-preferred { border-color: rgba(244, 63, 122, 0.52); color: #FFC2D6; }

.pulpe-format-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.pulpe-format-card:last-child { border-bottom: none; }
.pulpe-format-card > span { font-size: 1.55rem; }
.pulpe-format-card strong { display: block; margin-bottom: 4px; }
.pulpe-format-card p { margin: 0; color: var(--color-muted); font-size: 0.82rem; line-height: 1.45; }
.pulpe-progress-head { display: flex; align-items: center; justify-content: space-between; }

.pulpe-match-note {
  margin: -2px 0 12px;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.pulpe-match-note.exact { color: var(--vert); }

.pulpe-workout-list { display: grid; gap: 10px; }

.pulpe-workout-card {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  border-color: rgba(244, 63, 122, 0.2);
}

.pulpe-workout-card:hover { border-color: rgba(255, 143, 180, 0.48); transform: translateX(3px); }
.pulpe-workout-icon { font-size: 1.8rem; }
.pulpe-workout-copy { display: grid; gap: 4px; }
.pulpe-workout-copy strong { font-size: 0.96rem; }
.pulpe-workout-copy small { color: var(--color-muted); line-height: 1.35; }

.pulpe-session-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pulpe-session-facts div { display: grid; gap: 6px; }
.pulpe-session-facts span { color: var(--color-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pulpe-session-facts strong { font-size: 0.88rem; line-height: 1.45; }

@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- Cartes ---------------- */

.card {
  background: var(--color-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.card h2 { margin-top: 0; font-size: 1.15rem; letter-spacing: -0.01em; }
.card h3 { margin-top: 0; font-size: 1rem; }
.card p { line-height: 1.55; }

.hero {
  background: var(--grad);
  border: none;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -30% -70% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 65%);
  pointer-events: none;
}

.hero h2 { color: #fff; }
.hero p { color: rgba(255, 255, 255, 0.92); }

.eyebrow {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lilas);
  margin-bottom: 8px;
  font-weight: 700;
}

.hero .eyebrow { color: rgba(255, 255, 255, 0.85); }

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 24px 4px 12px;
}

.section-title h3 {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 700;
}

/* ---------------- BELL’IA Coach du jour ---------------- */

.bell-ia-coach {
  position: relative;
  overflow: hidden;
  border-color: rgba(233, 213, 255, 0.2);
  background:
    radial-gradient(circle at 94% 4%, rgba(244, 63, 122, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(124, 58, 237, 0.11), transparent 55%),
    var(--color-card);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.bell-ia-coach::after {
  content: "✦";
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(233, 213, 255, 0.36);
  font-size: 1.15rem;
}

.bell-ia-coach-heading { padding-right: 34px; }
.bell-ia-coach-heading h2 { margin-bottom: 0; }

.bell-ia-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(17, 17, 17, 0.42);
}

.bell-ia-action-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--grad-soft);
  font-size: 1.55rem;
}

.bell-ia-action-copy { min-width: 0; display: grid; gap: 10px; }
.bell-ia-action-copy > strong { font-size: 1rem; line-height: 1.3; }
.bell-ia-coach-details { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.bell-ia-coach-detail { display: grid; gap: 2px; }
.bell-ia-coach-detail small { color: var(--color-muted); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.bell-ia-coach-detail strong { color: var(--lilas); font-size: 0.75rem; }
.bell-ia-coach-buttons { display: grid; justify-items: stretch; gap: 8px; min-width: 138px; }
.bell-ia-action-label { color: var(--lilas); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.bell-ia-action-copy > .bell-ia-action-message { margin: -4px 0 0; color: var(--color-muted); font-size: 0.84rem; line-height: 1.45; overflow-wrap: anywhere; }
.bell-ia-coach-detail strong { overflow-wrap: anywhere; }
.bell-ia-tone { margin: 14px 0 0; font-size: 0.84rem; line-height: 1.45; }
.bell-ia-why { margin-top: 10px; font-size: 0.8rem; }
.bell-ia-why summary { width: fit-content; color: var(--lilas); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bell-ia-why p { margin: 8px 0 0; color: var(--color-muted); line-height: 1.5; }

.bell-ia-chat {
  width: min(640px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  box-sizing: border-box;
  margin: auto;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--color-text, #fff);
  background: linear-gradient(155deg, #171039, #020224 65%);
  border: 1px solid rgba(255, 44, 156, 0.35);
  border-radius: var(--radius, 24px);
  box-shadow: 0 24px 90px rgba(2, 2, 36, 0.6);
  font-family: inherit;
}
.bell-ia-chat::backdrop { background: rgba(2, 2, 36, 0.8); }
.bell-ia-chat .bell-ia-chat-header { display: flex; align-items: flex-start; gap: 16px; }
.bell-ia-chat .bell-ia-chat-header > div { flex: 1; min-width: 0; }
.bell-ia-chat h2 { font-size: clamp(1.15rem, 4vw, 1.5rem); line-height: 1.35; margin: 10px 0; }
.bell-ia-chat .bell-ia-chat-close { flex: none; padding: 0; min-width: 44px; min-height: 44px; }
.bell-ia-chat .bell-ia-chat-note { display: block; color: var(--color-muted); font-size: 0.78rem; line-height: 1.6; margin: 12px 0; }
.bell-ia-chat .bell-ia-chat-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.bell-ia-chat .bell-ia-chat-categories button {
  display: flex; align-items: center; gap: 10px; padding: 18px 12px; min-height: 76px;
  background: linear-gradient(135deg, rgba(255, 44, 156, 0.13), rgba(61, 78, 255, 0.1));
  color: inherit; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  text-align: left; font: inherit; cursor: pointer;
}
.bell-ia-chat .bell-ia-chat-categories button span { font-size: 1.6rem; }
.bell-ia-chat .bell-ia-chat-categories button strong { font-size: 0.9rem; }
.bell-ia-chat button:focus-visible, .bell-ia-chat textarea:focus-visible, .bell-ia-chat summary:focus-visible { outline: 2px solid #FF2C9C; outline-offset: 4px; }
.bell-ia-chat button:disabled { opacity: 0.55; cursor: wait; }
.bell-ia-chat .bell-ia-chat-log { display: grid; gap: 12px; }
.bell-ia-chat .bell-ia-chat-bubble { padding: 14px 16px; border-radius: 18px; background: rgba(139, 92, 246, 0.12); border: 1px solid var(--line-strong); overflow-wrap: anywhere; }
.bell-ia-chat .bell-ia-chat-user { margin-left: 30px; background: rgba(255, 44, 156, 0.12); }
.bell-ia-chat .bell-ia-chat-author { color: var(--lilas); font-weight: 700; }
.bell-ia-chat .bell-ia-chat-bubble p, .bell-ia-chat .bell-ia-chat-mission p { white-space: pre-wrap; line-height: 1.6; margin: 8px 0 0; }
.bell-ia-chat .bell-ia-chat-more { margin-top: 12px; font-size: 0.85rem; }
.bell-ia-chat .bell-ia-chat-more summary { color: var(--lilas); cursor: pointer; }
.bell-ia-chat .bell-ia-chat-mission:not(:empty) { padding: 18px; margin-top: 18px; border: 1px solid rgba(255, 44, 156, 0.45); border-radius: var(--radius-sm); background: rgba(255, 44, 156, 0.06); overflow-wrap: anywhere; }
.bell-ia-chat .bell-ia-chat-mission h3 { margin: 10px 0 0; font-size: 1rem; }
.bell-ia-chat .bell-ia-chat-mission-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.bell-ia-chat .bell-ia-chat-mission .btn { min-height: 44px; white-space: normal; }
.bell-ia-chat .bell-ia-chat-status { color: var(--lilas); font-size: 0.85rem; line-height: 1.5; min-height: 2.5em; margin: 16px 0; }
.bell-ia-chat .bell-ia-chat-form { display: grid; gap: 10px; }
.bell-ia-chat .bell-ia-chat-form label { font-size: 0.85rem; font-weight: 700; }
.bell-ia-chat textarea { box-sizing: border-box; width: 100%; min-height: 80px; resize: vertical; padding: 14px; font: inherit; font-size: 16px; color: inherit; background: rgba(2, 2, 36, 0.7); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.bell-ia-chat textarea::placeholder { color: var(--color-muted); opacity: 1; }
.bell-ia-chat .bell-ia-chat-form .btn { min-height: 48px; }
@media (max-width: 520px) {
  .bell-ia-chat { padding: 16px; width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .bell-ia-chat .bell-ia-chat-categories button { padding: 14px 10px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .bell-ia-chat .bell-ia-chat-mission-actions { display: grid; grid-template-columns: 1fr; }
  .bell-ia-chat .bell-ia-chat-mission-actions .btn { width: 100%; }
}

/* ---------------- Ma journée ---------------- */

.day-journey {
  border-color: rgba(233, 213, 255, 0.18);
  background:
    radial-gradient(circle at 8% 0%, rgba(244, 63, 122, 0.08), transparent 28%),
    var(--color-card);
}

.day-journey-heading h2 { margin-bottom: 6px; }
.day-journey-heading p { margin: 0; color: var(--color-muted); font-size: 0.86rem; }

.day-journey-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.day-journey-period {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17, 17, 17, 0.28);
}

.day-journey-period h3 {
  margin: 0 0 12px;
  color: var(--lilas);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.day-journey-actions { display: grid; gap: 9px; }

.module-tile.day-journey-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 0;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.day-journey-action .module-emoji { font-size: 1.35rem; }
.day-journey-action-copy { display: grid; gap: 3px; min-width: 0; }
.day-journey-action .module-name { font-size: 0.74rem; }
.day-journey-action .module-desc { font-size: 0.7rem; }

.day-journey-arrow {
  color: var(--lilas);
  font-size: 1rem;
  transition: transform 0.18s ease;
}

.day-journey-action:hover .day-journey-arrow { transform: translateX(3px); }

/* ---------------- Stats ---------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stats-grid.three { grid-template-columns: repeat(3, 1fr); }

.stat-card {
  background: var(--color-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 16px 14px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--color-muted);
  margin-top: 5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------------- Barres de progression ---------------- */

.progress-bar {
  background: var(--surface-3);
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
  margin-top: 12px;
}

.progress-fill {
  background: var(--grad);
  height: 100%;
  border-radius: 20px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-fill.green { background: linear-gradient(135deg, var(--vert), #8FD35B); }
.progress-fill.water { background: linear-gradient(135deg, #6FD3FF, var(--violet)); }

/* ---------------- Pas ---------------- */

.steps-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(244, 63, 122, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(124, 58, 237, 0.16), rgba(17, 17, 17, 0.96) 58%);
  border-color: rgba(233, 213, 255, 0.2);
}

.steps-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.steps-heading h2 { margin-bottom: 5px; letter-spacing: 0.08em; }
.steps-heading p { margin: 0; color: var(--color-muted); font-size: 0.78rem; }

.steps-ring {
  --steps-pct: 0;
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--rose) calc(var(--steps-pct) * 1%), rgba(250, 250, 247, 0.08) 0);
  position: relative;
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.18);
}

.steps-ring::before { content: ""; position: absolute; inset: 8px; border-radius: inherit; background: var(--color-card); }
.steps-ring span { position: relative; font-size: 1.04rem; font-weight: 800; }
.steps-count { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.steps-count strong { font-size: clamp(2.15rem, 10vw, 3.45rem); line-height: 1; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.steps-count span { color: var(--lilas); font-size: 0.9rem; }
.steps-progress { height: 12px; margin-top: 17px; }
.steps-remaining { margin: 13px 0 0; color: var(--color-muted); }
.steps-remaining strong { color: var(--blanc-casse); }

.steps-celebration { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; color: var(--blanc-casse); }
.steps-celebration strong { color: var(--rose); letter-spacing: 0.05em; }
.steps-celebration span { color: var(--lilas); font-size: 0.86rem; }
.steps-form .field { margin-bottom: 10px; }

.steps-sync-note {
  margin: 14px 0 0;
  padding: 11px 12px;
  border-left: 2px solid #D4AF37;
  background: rgba(212, 175, 55, 0.06);
  color: var(--color-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.steps-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.steps-section-head h3 { margin-bottom: 0; }
.steps-section-head > strong { color: var(--lilas); font-size: 0.86rem; white-space: nowrap; }
.steps-history { margin-top: 14px; }

.steps-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}

.steps-history-row:last-child { border-bottom: 0; }
.steps-history-row > span { display: flex; flex-direction: column; gap: 2px; }
.steps-history-row strong { text-transform: capitalize; font-size: 0.86rem; }
.steps-history-row small { color: var(--color-muted); font-size: 0.68rem; }
.steps-history-row b { font-variant-numeric: tabular-nums; }
.steps-history-row.today strong, .steps-history-row.today b { color: var(--rose); }

.steps-goal-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 12px; }
.steps-goal-form > label { grid-column: 1 / -1; color: var(--color-muted); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.steps-goal-form > div { display: flex; align-items: center; gap: 8px; }
.steps-goal-form input { width: 100%; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--blanc-casse); font: inherit; font-weight: 700; }
.steps-goal-form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22); }
.steps-goal-form span { color: var(--color-muted); font-size: 0.8rem; }

.ring {
  --pct: 0;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    conic-gradient(var(--violet) calc(var(--pct) * 1%), var(--surface-3) 0),
    var(--surface-3);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--color-card);
}

.ring span { position: relative; font-weight: 800; font-size: 1.15rem; }

/* ---------------- Boutons ---------------- */

.btn {
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}

.btn:hover { opacity: 0.94; }
.btn:active { transform: scale(0.97); }

.btn.ghost {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  color: var(--blanc-casse);
}

.btn.green {
  background: linear-gradient(135deg, var(--vert), #93D65E);
  color: var(--noir);
  box-shadow: 0 6px 18px rgba(184, 233, 134, 0.24);
}

.btn.small { padding: 9px 13px; font-size: 0.8rem; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.btn-link {
  background: none;
  border: none;
  color: var(--lilas);
  cursor: pointer;
  padding: 0;
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.quick-links { display: grid; grid-template-columns: 1fr; gap: 10px; }

/* ---------------- Chips ---------------- */

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px; }

.chip {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--blanc-casse);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease;
  font-weight: 500;
}

.chip.active {
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(244, 63, 122, 0.3);
  font-weight: 600;
}

.chip.static { cursor: default; background: rgba(233, 213, 255, 0.10); border-color: rgba(233, 213, 255, 0.25); color: var(--lilas); }

.tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  color: var(--lilas);
  font-weight: 700;
}

.tag.green { background: rgba(184, 233, 134, 0.16); color: var(--vert); }
.tag.rose { background: rgba(244, 63, 122, 0.16); color: #FF8FB4; }

/* ---------------- Tuiles modules (accueil) ---------------- */

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.module-tile {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  color: var(--blanc-casse);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 108px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.module-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.module-tile:active { transform: scale(0.975); }
.module-tile:hover::before { opacity: 1; }
.module-tile > * { position: relative; }

.module-emoji { font-size: 1.7rem; line-height: 1; }

.module-name {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.module-desc { font-size: 0.76rem; color: var(--color-muted); line-height: 1.35; }

.module-tile.wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: 14px; }
.module-tile.done { border-color: rgba(184, 233, 134, 0.45); }

/* ---------------- Grilles listes ---------------- */

.week-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.week-tile {
  background: var(--color-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 15px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--blanc-casse);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.week-tile:active { transform: scale(0.975); }
.week-tile:hover { border-color: var(--line-strong); }

.week-number {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.week-theme { font-size: 0.85rem; color: var(--color-muted); line-height: 1.35; }
.week-theme-detail { color: var(--lilas); font-size: 0.9rem; }

/* ---------------- Repas ---------------- */

.nourish-search-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(233, 213, 255, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 63, 122, 0.12), transparent 32%),
    var(--color-card);
}

.nourish-search-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -90px;
  top: 72px;
  border: 1px solid rgba(233, 213, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.nourish-search-card h2 { margin-bottom: 6px; }

.nourish-search-intro {
  margin: 0 0 20px;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.nourish-search-form { position: relative; z-index: 1; }

.nourish-pantry-card { margin-top: 18px; }

.nourish-ingredient-add {
  margin-bottom: 12px;
}

.nourish-ingredient-add > label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.84rem;
  font-weight: 700;
}

.nourish-ingredient-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.nourish-ingredient-entry .input { min-width: 0; }

.nourish-ingredient-feedback {
  min-height: 18px;
  margin: 7px 2px 0;
  color: var(--vert);
  font-size: 0.74rem;
}

.nourish-ingredient-feedback.is-error { color: #FF8FB4; }

.nourish-selected-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(250, 250, 247, 0.025);
}

.nourish-ingredients-empty {
  align-self: center;
  margin: 0 2px;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.nourish-ingredient-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 7px 7px 11px;
  border: 1px solid rgba(233, 213, 255, 0.22);
  border-radius: 999px;
  background: var(--grad-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.nourish-ingredient-chip button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(250, 250, 247, 0.14);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.28);
  color: var(--color-text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.nourish-ingredient-chip button:hover { border-color: rgba(244, 63, 122, 0.58); }
.nourish-ingredient-chip button:focus-visible { outline: 2px solid var(--lilas); outline-offset: 2px; }

.nourish-filter-group {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.nourish-filter-group legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.nourish-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.nourish-filter-option { cursor: pointer; min-width: 0; }

.nourish-filter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nourish-filter-option span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.nourish-filter-option:hover span { border-color: rgba(233, 213, 255, 0.36); }
.nourish-filter-option:active span { transform: scale(0.98); }

.nourish-filter-option input:checked + span {
  border-color: rgba(244, 63, 122, 0.58);
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px rgba(233, 213, 255, 0.08);
}

.nourish-filter-option input:focus-visible + span {
  outline: 2px solid var(--lilas);
  outline-offset: 2px;
}

.nourish-search-submit { margin-top: 4px; }

.nourish-search-status {
  min-height: 19px;
  margin: 10px 2px 0;
  color: var(--vert);
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
}

.nourish-search-status.is-error { color: #FF8FB4; }

.nourish-search-results:empty { display: none; }
.nourish-pantry-results:empty { display: none; }

.nourish-results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 2px 12px;
}

.nourish-results-heading h3 { margin: 3px 0 0; }

.quick-recipe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.quick-recipe-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
}

.quick-recipe-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.quick-recipe-head h3 { margin: 4px 0 0; }

.quick-recipe-time {
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid rgba(184, 233, 134, 0.28);
  border-radius: 999px;
  background: rgba(184, 233, 134, 0.08);
  color: var(--vert);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.quick-recipe-facts,
.quick-recipe-nutrition {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-recipe-facts span,
.quick-recipe-nutrition span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--color-text);
  font-size: 0.76rem;
}

.quick-recipe-breakdown {
  margin: -4px 0 0;
  color: var(--color-muted);
  font-size: 0.76rem;
}

.quick-recipe-ingredients {
  padding: 12px 14px;
  border-left: 2px solid rgba(233, 213, 255, 0.38);
  background: rgba(250, 250, 247, 0.025);
}

.quick-recipe-ingredients strong { font-size: 0.78rem; }
.quick-recipe-ingredients p { margin: 4px 0 0; color: var(--color-muted); font-size: 0.82rem; line-height: 1.5; }
.quick-recipe-actions { display: grid; gap: 8px; margin-top: auto; }
.meal-shopping-add { align-self: flex-start; margin-top: 10px; }
.nourish-results-empty { margin-top: 16px; }
.nourish-results-empty h3 { margin-bottom: 6px; }

.pulpe-recipe-source {
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pulpe-recipe-source.is-cooking-target {
  background: var(--grad-soft);
  box-shadow: 0 0 0 1px rgba(233, 213, 255, 0.24);
}

.meal-row, .meal-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.meal-card { border-bottom: none; }
.meal-row:last-child { border-bottom: none; }

.meal-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.meal-slot {
  font-size: 0.66rem;
  text-transform: uppercase;
  color: var(--lilas);
  letter-spacing: 0.16em;
  font-weight: 700;
}

.meal-name { font-weight: 600; }
.meal-ingredients { font-size: 0.8rem; color: var(--color-muted); line-height: 1.4; }
.meal-actions { display: flex; gap: 8px; flex-shrink: 0; }

.cooking-move-entry { align-self: flex-start; margin-top: 8px; }

.cooking-move-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cooking-move-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 240px;
  height: 240px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 122, 0.2), transparent 68%);
  pointer-events: none;
}

.cooking-move-card h2 { margin: 10px 0 6px; font-size: clamp(1.5rem, 6vw, 2.2rem); }
.cooking-move-card > p { color: var(--color-muted); }

.cooking-move-time {
  width: 96px;
  height: 96px;
  margin: 22px 0 8px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--grad);
  box-shadow: 0 12px 30px rgba(244, 63, 122, 0.22);
}

.cooking-move-time strong { font-size: 2rem; line-height: 0.9; }
.cooking-move-time span { margin-top: 5px; font-size: 0.67rem; letter-spacing: 0.16em; text-transform: uppercase; }

.cooking-move-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.cooking-move-choice {
  min-height: 82px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--blanc-casse);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cooking-move-choice:hover { border-color: rgba(233, 213, 255, 0.48); }
.cooking-move-choice:active { transform: scale(0.98); }
.cooking-move-choice.active { border-color: var(--rose); background: var(--grad-soft); }
.cooking-move-choice span { font-size: 1.45rem; }
.cooking-move-choice strong { font-size: 0.84rem; }
.cooking-move-grid .cooking-move-choice:last-child:nth-child(odd) { grid-column: 1 / -1; }

.cooking-move-actions { display: grid; gap: 10px; }
.cooking-move-note { margin: 14px 0 0; text-align: center; font-size: 0.76rem; }

.icon-btn {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 11px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--blanc-casse);
  transition: transform 0.16s ease, background 0.16s ease;
}

.icon-btn:active { transform: scale(0.9); }
.icon-btn.active { background: rgba(244, 63, 122, 0.18); border-color: rgba(244, 63, 122, 0.4); }

/* ---------------- Défis ---------------- */

.challenge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.challenge-row:last-child { border-bottom: none; }
.challenge-row input { width: 21px; height: 21px; accent-color: var(--violet); flex-shrink: 0; }
.challenge-row span { font-size: 0.92rem; }
.challenge-done { text-decoration: line-through; color: var(--color-muted); }

.challenge-points {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--vert);
  font-weight: 700;
  flex-shrink: 0;
}

.challenge-week-block { margin-bottom: 20px; }

.challenge-counter {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.challenge-section-year { border-left: 3px solid var(--violet); }
.challenge-section-legacy { border-left: 3px solid var(--lilas); }

.challenge-week-block h4 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--lilas);
}

/* ---------------- Badges ---------------- */

.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.badge-tile {
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
}

.badge-tile.unlocked { background: var(--grad-soft); border-color: rgba(233, 213, 255, 0.3); }
.badge-tile.locked { background: var(--surface-2); opacity: 0.5; }
.badge-emoji { font-size: 1.9rem; }
.badge-name { font-weight: 700; font-size: 0.88rem; }
.badge-desc { font-size: 0.72rem; color: var(--color-muted); }

/* ---------------- Formulaires ---------------- */

.inline-form { display: flex; gap: 8px; margin-bottom: 16px; }

.inline-form input, .field input, .field select, .field textarea {
  flex: 1;
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--blanc-casse);
  font-size: 0.95rem;
  font-family: inherit;
}

.inline-form input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 7px;
  font-weight: 700;
}

.field-hint { font-size: 0.76rem; color: var(--color-muted); margin: 6px 0 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* ---------------- Tableaux ---------------- */

.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.data-table th, .data-table td {
  text-align: left;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

/* ---------------- Hydratation ---------------- */

.hydration-tracker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 14px 0;
}

.hydration-count { font-size: 1.5rem; font-weight: 800; color: var(--blanc-casse); }

.hydrate-layout { display: flex; align-items: center; gap: 20px; }

.bottle {
  width: 74px;
  height: 178px;
  border: 3px solid var(--line-strong);
  border-radius: 16px 16px 26px 26px;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
}

.bottle::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 13px;
  background: var(--line-strong);
  border-radius: 5px 5px 0 0;
}

.bottle-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #7ADCFF, #6E5BFF);
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bottle-fill::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: wave 2.6s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(3px) scaleX(1.12); }
}

.bottle-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  pointer-events: none;
}

.bottle-ticks i { height: 1px; background: rgba(250, 250, 247, 0.16); margin-left: 50%; }

/* ---------------- Exercices & séances ---------------- */

.ex-list { display: flex; flex-direction: column; gap: 10px; }

.ex-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}

.ex-row.done { border-color: rgba(184, 233, 134, 0.45); background: rgba(184, 233, 134, 0.07); }
.ex-emoji { font-size: 1.5rem; flex-shrink: 0; }
.ex-body { flex: 1; min-width: 0; }
.ex-name { font-weight: 600; font-size: 0.94rem; }
.ex-meta { font-size: 0.75rem; color: var(--color-muted); margin-top: 3px; }
.ex-actions { display: flex; gap: 7px; flex-shrink: 0; }

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  margin: 12px 0;
  border: 1px solid var(--line);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------- Lecteur audio ---------------- */

.player {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 12px;
}

.player-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.player-emoji { font-size: 1.9rem; }
.player-title { font-weight: 700; }
.player-sub { font-size: 0.75rem; color: var(--color-muted); margin-top: 2px; }

.player-seek {
  height: 8px;
  background: var(--surface-3);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  margin: 4px 0 6px;
}

.player-seek-fill { height: 100%; background: var(--grad); width: 0%; border-radius: 20px; }

.player-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0 10px;
}

.player-btn {
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--blanc-casse);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 0.82rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.16s ease;
}

.player-btn:active { transform: scale(0.9); }

.player-btn.main {
  width: 62px;
  height: 62px;
  background: var(--grad);
  border: none;
  font-size: 1.35rem;
  box-shadow: var(--shadow-glow);
}

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

.player-volume input[type="range"] {
  flex: 1;
  accent-color: var(--violet);
  height: 4px;
}

.player-note {
  font-size: 0.76rem;
  color: var(--color-muted);
  background: rgba(233, 213, 255, 0.07);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  margin-top: 12px;
  line-height: 1.45;
}

.file-pick { font-size: 0.78rem; color: var(--lilas); margin-top: 8px; display: block; }
.file-pick input { display: block; margin-top: 6px; font-size: 0.76rem; color: var(--color-muted); max-width: 100%; }

/* ---------------- Timer ---------------- */

.timer-display {
  font-size: 2.4rem;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 6px 0 2px;
}

/* ---------------- Repas 20 minutes ---------------- */

.meal-timer-card {
  overflow: hidden;
  position: relative;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(233, 213, 255, 0.13), transparent 38%),
    var(--color-card);
}

.meal-timer-card .btn-link { display: block; text-align: left; }
.meal-timer-card .eyebrow { margin-top: 10px; }
.meal-timer-card h2 { font-size: clamp(1.45rem, 5vw, 2rem); margin-bottom: 22px; }

.meal-timer-clock {
  width: min(260px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  background: conic-gradient(from 215deg, var(--violet), var(--rose), var(--violet));
  box-shadow: var(--shadow-glow);
}

.meal-timer-clock::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 32%, rgba(124, 58, 237, 0.18), transparent 48%),
    var(--noir);
}

.meal-timer-clock span {
  font-size: clamp(3rem, 14vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.meal-timer-message {
  min-height: 26px;
  margin: 0 auto 20px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.meal-timer-message.visible { color: var(--lilas); font-weight: 600; }
.meal-timer-start { max-width: 360px; margin: 0 auto; }

.meal-ambiance-card h3,
.meal-feeling-card h3 { margin-bottom: 6px; }

.meal-section-copy {
  color: var(--color-muted);
  font-size: 0.82rem;
  margin: 0 0 16px;
}

.meal-choice-grid,
.meal-feeling-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meal-choice {
  width: 100%;
  min-height: 48px;
  border-radius: var(--radius-sm);
  text-align: left;
}

.meal-feeling-choice {
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--blanc-casse);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.meal-feeling-choice:hover { border-color: rgba(233, 213, 255, 0.45); }
.meal-feeling-choice:active { transform: scale(0.98); }
.meal-feeling-choice.active { border-color: var(--lilas); background: var(--grad-soft); }
.meal-timer-restart { margin-top: 16px; }

.meal-timer-running {
  min-height: min(620px, calc(100vh - 210px));
  display: grid;
  align-content: center;
  gap: 8px;
}

.meal-timer-running h2 { margin-bottom: 18px; }

/* ---------------- Sound · ambiance repas ---------------- */

.sound-meal-hero {
  background:
    radial-gradient(circle at 84% 12%, rgba(233, 213, 255, 0.15), transparent 32%),
    radial-gradient(circle at 6% 96%, rgba(217, 70, 239, 0.1), transparent 38%),
    var(--color-card);
}

.sound-meal-card h3 { margin-bottom: 16px; }

.sound-ambiance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sound-ambiance-choice {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--blanc-casse);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.sound-ambiance-choice:last-child { grid-column: 1 / -1; }
.sound-ambiance-choice:hover { border-color: rgba(233, 213, 255, 0.45); }
.sound-ambiance-choice:active { transform: scale(0.98); }
.sound-ambiance-choice.active { border-color: var(--lilas); background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(233, 213, 255, 0.08); }

.sound-ambiance-emoji {
  grid-row: span 2;
  font-size: 1.75rem;
}

.sound-ambiance-choice small {
  color: var(--color-muted);
  font-size: 0.7rem;
  font-weight: 500;
}

.sound-selection-note {
  min-height: 42px;
  margin: 16px 0 12px;
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.sound-meal-launch { max-width: 380px; margin-inline: auto; }
.sound-player-host:empty { display: none; }
.sound-meal-disclaimer { padding-block: 14px; }

/* ---------------- Graphiques ---------------- */

.chart { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.72rem; color: var(--color-muted); margin-top: 10px; }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }

/* ---------------- Divers ---------------- */

.empty-hint { color: var(--color-muted); font-size: 0.88rem; line-height: 1.5; }
.shopping-list { list-style: none; padding: 0; margin: 0; }

.mood-row { display: flex; gap: 8px; justify-content: space-between; margin-top: 12px; }

.mood-btn {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 4px 9px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
  color: var(--blanc-casse);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mood-btn span { font-size: 0.62rem; color: var(--color-muted); letter-spacing: 0.04em; }
.mood-btn:active { transform: scale(0.93); }
.mood-btn.active { background: var(--grad-soft); border-color: var(--lilas); }
.mood-btn.active span { color: var(--lilas); }

.streak-flame { font-size: 1.6rem; }

.disclaimer {
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.5;
  border-left: 2px solid var(--line-strong);
  padding-left: 11px;
  margin-top: 14px;
}

/* ---------------- Navigation basse ---------------- */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 17, 17, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 10;
}

.nav-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 4px 6px;
  border-radius: 10px;
  transition: color 0.18s ease;
  flex: 1;
}

.nav-btn.active { color: var(--blanc-casse); font-weight: 700; }
.nav-btn.active .nav-icon { transform: translateY(-2px) scale(1.12); }
.nav-icon { font-size: 1.25rem; transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nav-label { text-transform: uppercase; }

/* ---------------- Animations & toasts ---------------- */

.toast-zone {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 40;
  pointer-events: none;
  padding: 0 16px;
}

.toast {
  background: var(--color-card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  animation: toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both, toast-out 0.3s ease 1.9s both;
  max-width: 100%;
}

.toast.points { background: var(--grad); border-color: transparent; color: #fff; }
.toast.badge { background: linear-gradient(135deg, var(--vert), #8FD35B); color: var(--noir); border-color: transparent; }

@keyframes toast-in { from { opacity: 0; transform: translateY(22px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); } }

.pop { animation: pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }

.check-burst { animation: burst 0.5s ease; }
@keyframes burst {
  0% { box-shadow: 0 0 0 0 rgba(184, 233, 134, 0.5); }
  100% { box-shadow: 0 0 0 22px rgba(184, 233, 134, 0); }
}

/* ---------------- 🥗 NOURISH — journal nutritionnel ----------------
   Mêmes cartes, arrondis et dégradés que le reste de BELLA FLOW.
   Pensé d'abord pour le smartphone : 2 colonnes, chiffres lisibles. */

.journal-datebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.journal-date { text-align: center; line-height: 1.35; }
.journal-date strong { display: block; font-size: 0.98rem; text-transform: capitalize; }

.journal-date span {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.nut-cell {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nut-grid.compact .nut-cell { padding: 7px 9px; background: rgba(250, 250, 247, 0.035); }

.nut-cell-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nut-cell-value {
  font-weight: 700;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.nut-cell-value em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.nut-cell-value.big { font-size: 1.12rem; }

.nut-day { background: var(--grad-soft); border-color: rgba(233, 213, 255, 0.28); }
.nut-day .nut-cell { background: rgba(17, 17, 17, 0.42); border-color: rgba(233, 213, 255, 0.16); }

.nut-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.nut-slot-head h3 { margin: 0; }

.nut-slot-kcal {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nut-slot-kcal strong { color: var(--blanc-casse); font-size: 0.95rem; }

/* ---------------- Ajouter mon repas ---------------- */

.add-meal-hero {
  background:
    radial-gradient(circle at 88% 16%, rgba(184, 233, 134, 0.14), transparent 30%),
    radial-gradient(circle at 8% 0%, rgba(233, 213, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(124, 58, 237, 0.15), rgba(17, 17, 17, 0.96) 62%);
}

.add-meal-hero .btn-link { margin-bottom: 18px; }
.add-meal-hero h2 { margin-top: 8px; }
.add-meal-title { margin-top: 20px; }

.add-meal-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.add-meal-method {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--color-card);
  color: var(--color-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.add-meal-method:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.add-meal-method:active { transform: scale(0.985); }
.add-meal-method.active { border-color: rgba(233, 213, 255, 0.45); background: var(--grad-soft); }
.add-meal-method > span:nth-child(2) { display: grid; gap: 5px; min-width: 0; }
.add-meal-method strong { font-size: 0.95rem; }
.add-meal-method small { color: var(--color-muted); font-size: 0.75rem; line-height: 1.42; }
.add-meal-method-icon { font-size: 1.9rem; }
.add-meal-method-arrow { color: var(--lilas); font-size: 1.55rem; }

.add-meal-workspace { border-color: rgba(233, 213, 255, 0.2); }
.add-meal-workspace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.add-meal-workspace-head h3 { margin: 5px 0 0; }

.add-meal-notice { margin: 12px 0 0; color: var(--color-muted); font-size: 0.76rem; line-height: 1.5; }
.add-meal-workspace .field-error { margin: 10px 0 0; color: #FF8FB4; font-size: 0.78rem; line-height: 1.45; }
.add-meal-detected {
  display: grid;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(184, 233, 134, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(184, 233, 134, 0.055), rgba(17, 17, 17, 0.2));
}

.add-meal-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.add-meal-section-head h4 { margin: 4px 0 0; font-size: 1rem; }
.add-meal-future-badge { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--color-muted); font-size: 0.64rem; font-weight: 750; }
.add-meal-detected-list { display: grid; gap: 8px; }

.add-meal-detected-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
}

.add-meal-detected-empty > span { color: var(--vert); font-size: 1.3rem; }
.add-meal-detected-empty p { margin: 0; font-size: 0.76rem; line-height: 1.45; }
.add-meal-detected-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.add-meal-detected-row input { min-width: 0; }

.add-meal-empty {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.add-meal-empty > span { font-size: 2.5rem; }
.add-meal-empty p { max-width: 470px; margin: 0; color: var(--color-muted); line-height: 1.55; }

.add-meal-voice { display: grid; gap: 18px; overflow: hidden; }
.add-meal-voice .add-meal-workspace-head { margin-bottom: 0; }
.add-meal-voice-intro { margin: -7px 0 0; color: var(--color-muted); line-height: 1.55; }

.add-meal-voice-console {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 28px 18px;
  overflow: hidden;
  border: 1px solid rgba(233, 213, 255, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 10%, rgba(233, 213, 255, 0.14), transparent 44%),
    linear-gradient(160deg, rgba(124, 58, 237, 0.1), rgba(17, 17, 17, 0.28));
  text-align: center;
}

.add-meal-voice-console::before,
.add-meal-voice-console::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(233, 213, 255, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.add-meal-voice-console::before { top: -118px; left: -64px; }
.add-meal-voice-console::after { right: -92px; bottom: -132px; }

.add-meal-voice-orbit {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(233, 213, 255, 0.25);
  border-radius: 50%;
  background: rgba(233, 213, 255, 0.07);
}

.add-meal-voice-orbit::before,
.add-meal-voice-orbit::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(233, 213, 255, 0.17);
  border-radius: inherit;
}

.add-meal-voice-orbit::after { inset: -9px; border-style: dashed; }
.add-meal-voice-orbit span { position: relative; z-index: 1; font-size: 2rem; }
.add-meal-voice-console.recording .add-meal-voice-orbit { animation: voice-breathe 1.7s ease-in-out infinite; }
.add-meal-voice-console.recording .add-meal-voice-orbit::after { animation: voice-spin 7s linear infinite; }

.add-meal-voice-status { display: inline-flex; align-items: center; gap: 8px; }
.add-meal-voice-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 5px rgba(184, 233, 134, 0.08); }
.add-meal-voice-console.recording .add-meal-voice-status-dot { background: var(--rose); box-shadow: 0 0 0 5px rgba(244, 63, 122, 0.1); animation: voice-dot 1.25s ease-in-out infinite; }
.add-meal-voice-console p { max-width: 480px; margin: 0; color: var(--color-muted); font-size: 0.78rem; line-height: 1.5; }
.add-meal-voice-button { min-width: min(100%, 270px); }
.add-meal-voice-button.stop { background: linear-gradient(135deg, #9c3155, #d95678); box-shadow: 0 6px 18px rgba(217, 86, 120, 0.2); }
.add-meal-voice-reset { margin: -3px 0 0; }

.add-meal-voice-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.add-meal-voice-steps li { display: grid; justify-items: center; gap: 6px; color: var(--color-muted); text-align: center; }
.add-meal-voice-steps li span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); font-size: 0.68rem; font-weight: 800; }
.add-meal-voice-steps li strong { font-size: 0.61rem; line-height: 1.3; }
.add-meal-voice-steps li.done { color: var(--blanc-casse); }
.add-meal-voice-steps li.done span { border-color: rgba(184, 233, 134, 0.4); background: rgba(184, 233, 134, 0.1); color: var(--vert); }

.add-meal-voice-review { display: grid; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.add-meal-voice-review .field { margin: 0; }
.add-meal-voice-review textarea { min-height: 112px; resize: vertical; }
.add-meal-voice-example { padding: 10px 12px; border-left: 2px solid var(--lilas); background: rgba(233, 213, 255, 0.045); }
.add-meal-voice-example span { color: var(--color-muted); font-size: 0.64rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.add-meal-voice-example p { margin: 5px 0 0; font-size: 0.8rem; }
.add-meal-voice-example b { padding: 0 5px; color: var(--color-muted); font-weight: 400; }

@keyframes voice-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes voice-spin { to { transform: rotate(360deg); } }
@keyframes voice-dot { 50% { opacity: 0.42; transform: scale(0.76); } }

.add-meal-search-field { margin-bottom: 12px; }
.add-meal-recipes { max-height: 430px; overflow-y: auto; }

.add-meal-recipe {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--color-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.add-meal-recipe:last-child { border-bottom: 0; }
.add-meal-recipe:hover strong { color: var(--lilas); }
.add-meal-recipe > span:nth-child(2) { display: grid; gap: 4px; }
.add-meal-recipe small { color: var(--color-muted); font-size: 0.72rem; }
.add-meal-recipe > span:last-child { color: var(--lilas); font-size: 1.4rem; }
.add-meal-recipe-icon { font-size: 1.45rem; }

.add-meal-estimate {
  display: grid;
  gap: 12px 18px;
  border-style: dashed;
  background: linear-gradient(135deg, rgba(184, 233, 134, 0.055), rgba(233, 213, 255, 0.04));
}

.add-meal-estimate h3 { margin: 5px 0 0; }
.add-meal-estimate p { margin: 0; color: var(--color-muted); font-size: 0.74rem; line-height: 1.5; }

.meal-data-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.meal-data-state { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(17, 17, 17, 0.28); }
.meal-data-state strong { font-size: 0.66rem; letter-spacing: 0.055em; }
.meal-data-state span { color: var(--color-muted); font-size: 0.7rem; line-height: 1.4; }
.meal-data-state.real { border-color: rgba(184, 233, 134, 0.32); }
.meal-data-state.real strong { color: var(--vert); }
.meal-data-state.estimated { border-color: rgba(233, 213, 255, 0.3); }
.meal-data-state.estimated strong { color: var(--lilas); }
.meal-data-state.missing { border-color: rgba(255, 187, 132, 0.25); }
.meal-data-state.missing strong { color: #efbd95; }

.bell-ia-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.bell-ia-metric { min-width: 0; display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.bell-ia-metric span { color: var(--color-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.035em; text-transform: uppercase; }
.bell-ia-metric strong { font-size: 0.88rem; line-height: 1.35; }
.bell-ia-metric small { color: var(--color-muted); font-size: 0.66rem; line-height: 1.4; }
.bell-ia-metric.available { border-color: rgba(184, 233, 134, 0.35); }
.bell-ia-metric.available strong { color: var(--vert); font-size: 1.12rem; }
.bell-ia-metric.partial { border-color: rgba(233, 213, 255, 0.35); }
.bell-ia-metric.partial strong { color: var(--lilas); }
.bell-ia-metric.pending strong { color: var(--lilas); font-weight: 600; }
.meal-estimate-empty { display: grid; gap: 5px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: rgba(17, 17, 17, 0.22); }
.meal-estimate-empty strong { font-size: 0.84rem; }

.meal-draft {
  position: relative;
  overflow: hidden;
  border-color: rgba(184, 233, 134, 0.25);
  background:
    linear-gradient(135deg, rgba(184, 233, 134, 0.065), transparent 45%),
    var(--color-card);
}

.meal-draft::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -86px;
  bottom: -96px;
  border: 1px solid rgba(184, 233, 134, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.meal-draft-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.meal-draft-head h3 { margin: 5px 0 0; }
.meal-draft-count {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 233, 134, 0.28);
  border-radius: 50%;
  background: rgba(184, 233, 134, 0.08);
  color: var(--vert);
  font-weight: 800;
}

.meal-draft-list { position: relative; z-index: 1; display: grid; gap: 10px; }
.meal-draft-empty { min-height: 170px; display: grid; place-items: center; align-content: center; gap: 7px; text-align: center; }
.meal-draft-empty > span { font-size: 2.2rem; filter: grayscale(0.25); }
.meal-draft-empty p { max-width: 470px; margin: 0; color: var(--color-muted); font-size: 0.78rem; line-height: 1.5; }

.meal-draft-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(17, 17, 17, 0.4);
}

.meal-draft-item-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); font-size: 1.2rem; }
.meal-draft-item-fields { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.meal-draft-name { min-width: 0; font-weight: 700; }
.meal-draft-portion { display: grid; grid-template-columns: auto 76px auto; align-items: center; gap: 7px; }
.meal-draft-portion label { color: var(--color-muted); font-size: 0.68rem; white-space: nowrap; }
.meal-draft-portion label span { display: none; }
.meal-draft-portion input { width: 76px; text-align: right; }
.meal-draft-portion > span { color: var(--color-muted); font-size: 0.76rem; }
.meal-draft-remove { align-self: center; }
.meal-draft-validate { margin-top: 14px; }
.meal-draft-validate:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.bell-ia-review {
  position: relative;
  overflow: hidden;
  border-color: rgba(233, 213, 255, 0.3);
  background:
    radial-gradient(circle at 92% 4%, rgba(233, 213, 255, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(184, 233, 134, 0.045), transparent 52%),
    var(--color-card);
}

.bell-ia-review::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--lilas), var(--vert));
}

.bell-ia-review-head,
.bell-ia-foods-head,
.bell-ia-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bell-ia-review-head h3 { margin: 5px 0 0; }
.bell-ia-status { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(233, 213, 255, 0.25); border-radius: 999px; color: var(--lilas); font-size: 0.65rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.bell-ia-intro { position: relative; z-index: 1; max-width: 690px; margin: 13px 0 16px; color: var(--color-muted); font-size: 0.8rem; line-height: 1.55; }

.bell-ia-flow { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.bell-ia-flow::-webkit-scrollbar { display: none; }
.bell-ia-flow span { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--color-muted); font-size: 0.65rem; font-weight: 700; }
.bell-ia-flow span.done { border-color: rgba(184, 233, 134, 0.33); background: rgba(184, 233, 134, 0.07); color: var(--vert); }
.bell-ia-flow i { color: var(--color-muted); font-style: normal; }

.bell-ia-foods-head { align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.bell-ia-foods-head h4 { margin: 0; }
.bell-ia-foods { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: 12px; }
.bell-ia-food { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(17, 17, 17, 0.35); }
.bell-ia-food-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.bell-ia-food-index { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(233, 213, 255, 0.1); color: var(--lilas); font-size: 0.72rem; font-weight: 800; }
.bell-ia-food-identity > span:last-child { min-width: 0; display: grid; gap: 4px; }
.bell-ia-food-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell-ia-food-identity small { color: var(--color-muted); font-size: 0.68rem; line-height: 1.35; }
.bell-ia-portions { margin: 0; padding: 0; border: 0; }
.bell-ia-portions legend { margin: 0 0 6px; color: var(--color-muted); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.bell-ia-portions > div { display: grid; grid-template-columns: repeat(3, auto); gap: 5px; }
.bell-ia-portions button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--color-muted); font: inherit; font-size: 0.68rem; font-weight: 700; cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.bell-ia-portions button:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.bell-ia-portions button.active { border-color: rgba(184, 233, 134, 0.4); background: rgba(184, 233, 134, 0.1); color: var(--vert); }
.bell-ia-portions button:focus-visible { outline: 2px solid var(--lilas); outline-offset: 2px; }

.bell-ia-waiting { position: relative; z-index: 1; min-height: 150px; display: grid; place-items: center; align-content: center; gap: 7px; margin-top: 12px; padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius-sm); text-align: center; }
.bell-ia-waiting > span { color: var(--lilas); font-size: 2rem; }
.bell-ia-waiting p { max-width: 500px; margin: 0; color: var(--color-muted); font-size: 0.76rem; line-height: 1.5; }
.bell-ia-actions { align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.bell-ia-actions p { max-width: 470px; margin: 0; color: var(--color-muted); font-size: 0.76rem; line-height: 1.45; }
.bell-ia-actions p strong { color: var(--color-text); }
.bell-ia-validate { flex: 0 0 auto; }
.bell-ia-validate:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; }

.nut-entry {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  margin: 10px 0;
  background: rgba(250, 250, 247, 0.02);
}

.nut-entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.nut-entry-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nut-entry-name { font-weight: 600; font-size: 0.95rem; }

.nut-entry-qty {
  font-size: 0.76rem;
  color: var(--lilas);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.qty-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
}

.qty-btn {
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--blanc-casse);
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease;
}

.qty-btn:active { transform: scale(0.9); }

.qty-field input {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--color-text);
  padding: 11px 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.qty-field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18); }

.qty-unit {
  font-size: 0.82rem;
  color: var(--color-muted);
  min-width: 22px;
}

.nut-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.nut-missing {
  margin: 9px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.nut-missing .btn-link { font-size: 0.78rem; }

.nut-add {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.nut-add .field { margin-bottom: 0; }

.food-results { max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; }

.food-result, .food-row {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: rgba(250, 250, 247, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 10px 12px;
  margin-bottom: 7px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.food-result:active, .food-row:active { transform: scale(0.985); }
.food-result:hover, .food-row:hover { border-color: var(--line-strong); }

.food-result-name, .food-row-name { font-weight: 600; font-size: 0.92rem; }
.food-result-meta { font-size: 0.72rem; color: var(--color-muted); }

.food-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.food-row-state { font-size: 0.72rem; color: var(--color-muted); white-space: nowrap; }
.food-row-state.ok { color: var(--vert); }

.food-group { margin-bottom: 18px; }

.food-group h4 {
  margin: 0 0 9px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilas);
}

.goal-row { margin-top: 12px; }

.goal-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
}

.goal-line strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 360px) {
  .nut-grid { grid-template-columns: 1fr; }
  .add-meal-methods { grid-template-columns: 1fr; }
  .meal-choice-grid,
  .meal-feeling-grid,
  .sound-ambiance-grid { grid-template-columns: 1fr; }
  .sound-ambiance-choice:last-child { grid-column: auto; }
}

@media (max-width: 620px) {
  .path-choice-grid { grid-template-columns: 1fr; }
  .path-choice-card { min-height: 230px; }
  .path-choice-combined { grid-column: auto; }
  .path-choice-info { grid-template-columns: 1fr; padding: 20px; }
  .path-change-grid { grid-template-columns: 1fr; }
  .pulpe-pillar-grid { grid-template-columns: 1fr; }
  .pulpe-pillar:nth-child(2), .pulpe-pillar:nth-child(3) { transform: none; }
  .pulpe-profile-strip { align-items: flex-start; flex-direction: column; }
  .pulpe-profile-strip .btn { width: 100%; }
  .pulpe-session-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

@media (min-width: 600px) {
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(3, 1fr); }
  .day-journey-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-header h1 { font-size: 1.5rem; }
  .nourish-time-grid,
  .nourish-cooking-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nourish-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nut-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nut-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .add-meal-method { min-height: 128px; }
}

@media (max-width: 520px) {
  .bell-ia-action-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 14px; padding: 14px; }
  .bell-ia-action-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1.3rem; }
  .bell-ia-coach-buttons { grid-column: 1 / -1; width: 100%; }
  .bell-ia-coach-buttons .btn { width: 100%; }
  .nourish-ingredient-entry { grid-template-columns: 1fr; }
  .nourish-ingredient-entry .btn { width: 100%; }
  .add-meal-methods { grid-template-columns: 1fr; }
  .add-meal-method { min-height: 94px; }
  .meal-data-status, .bell-ia-metrics { grid-template-columns: 1fr; }
  .add-meal-section-head { align-items: flex-start; flex-direction: column; }
  .meal-draft-item { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
  .meal-draft-item-fields { grid-template-columns: 1fr; }
  .meal-draft-portion { grid-template-columns: auto minmax(70px, 95px) auto; justify-content: start; }
  .meal-draft-portion label span { display: inline; }
  .bell-ia-review-head, .bell-ia-actions { align-items: stretch; flex-direction: column; }
  .bell-ia-status { align-self: flex-start; }
  .bell-ia-food { grid-template-columns: 1fr; }
  .bell-ia-portions > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bell-ia-portions button { padding-inline: 6px; }
  .bell-ia-validate { width: 100%; }
}

/* ============================================================
   🥗 NOURISH — accueil, Mon repas, recettes
   (palette et composants existants : card, module-tile, chip, btn)
   ============================================================ */

.nourish-hero h2 { letter-spacing: 0.14em; }

.nourish-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.nourish-action { min-height: 132px; justify-content: flex-end; }
.nourish-action .module-emoji { font-size: 2rem; }
.nourish-action .module-desc { font-size: 0.8rem; }

.nourish-illus {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid rgba(233, 213, 255, 0.16);
  font-size: 1.7rem;
  line-height: 1;
}

.nourish-illus.large { width: 72px; height: 72px; border-radius: 20px; font-size: 2.2rem; }
.nourish-illus.xl { width: 96px; height: 96px; border-radius: 24px; font-size: 3rem; }

.nourish-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--color-muted); font-size: 0.8rem; }

.nourish-now { border-color: rgba(233, 213, 255, 0.22); }
.nourish-now-body, .nourish-meal-main, .nourish-recipe-top { display: flex; align-items: center; gap: 16px; }
.nourish-now-body h3, .nourish-meal-main h4 { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.3; }
.nourish-now-ingredients { margin: 8px 0 0; color: var(--color-muted); font-size: 0.82rem; }
.nourish-more { display: block; margin: 12px auto 0; }

.nourish-btn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.nourish-btn-grid .btn, .nourish-btn-row .btn { min-height: 50px; }
.nourish-btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.nourish-btn-row .btn { flex: 1 1 180px; }
.btn.ghost.active { border-color: rgba(244, 63, 122, 0.45); background: rgba(244, 63, 122, 0.14); }
.nourish-logged { color: var(--vert); }

.nourish-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.nourish-meal-card { scroll-margin-top: 16px; }
.nourish-meal-card.is-now { border-color: rgba(244, 63, 122, 0.4); }
.nourish-meal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.nourish-meal-head h3 { margin: 0; }
.nourish-link-row { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 14px; }
.nourish-link-row .btn-link { margin: 0; padding: 6px 0; }
.nourish-logged-line { margin: 12px 0 0; font-size: 0.82rem; color: var(--vert); }
.nourish-jump { margin: 0 0 16px; }

.nourish-ingredients { list-style: none; margin: 16px 0 0; padding: 0; }
.nourish-ingredients li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.nourish-ingredients li:last-child { border-bottom: none; }
.nourish-ingredients strong { color: var(--lilas); font-weight: 600; text-align: right; white-space: nowrap; }

.nourish-filters { display: grid; gap: 10px; }
.nourish-filter-row { margin: 0; }
.nourish-filter-row .chip { min-height: 40px; }

.nourish-quick-banner { margin-bottom: 8px; border-color: rgba(233, 213, 255, 0.2); }

.nourish-recipe-grid { display: grid; gap: 12px; margin-bottom: 16px; }

.nourish-recipe-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--color-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.nourish-recipe-card:hover { border-color: var(--line-strong); }
.nourish-recipe-card:active { transform: scale(0.985); }
.nourish-recipe-card:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.nourish-recipe-copy { display: grid; gap: 4px; min-width: 0; }
.nourish-recipe-copy strong { font-size: 0.95rem; line-height: 1.3; }

.nourish-recipe-top h2 { margin: 0 0 8px; }

.nourish-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nourish-steps label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  line-height: 1.5;
  font-size: 0.9rem;
}
.nourish-steps input { width: 21px; height: 21px; margin-top: 1px; accent-color: var(--violet); }
.nourish-steps b { color: var(--lilas); margin-right: 8px; }
.nourish-steps input:checked + span { color: var(--color-muted); text-decoration: line-through; }
.nourish-preparing { border-color: rgba(244, 63, 122, 0.4); scroll-margin-top: 16px; }
.nourish-prep-challenge { margin-top: 14px; }

.nourish-timer-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nourish-timer-card h3 { margin: 0 0 4px; }


/* Journal : repas regroupés */
.journal-slot-sub { font-size: 0.72rem; font-weight: 500; color: var(--color-muted); margin-left: 6px; }
.journal-meal { padding: 12px 0; border-bottom: 1px solid var(--line); }
.journal-meal:last-of-type { border-bottom: none; }
.journal-meal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.journal-meal-id { display: grid; gap: 6px; min-width: 0; }
.journal-meal-time { display: inline-flex; align-items: center; gap: 6px; color: var(--color-muted); font-size: 0.82rem; }
.journal-meal-time input {
  background: var(--surface-2);
  color: var(--blanc-casse);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 6px 8px;
  font: inherit;
  color-scheme: dark;
}
.journal-meal-edit summary { cursor: pointer; margin-top: 10px; color: var(--lilas); font-size: 0.84rem; font-weight: 600; padding: 6px 0; }
.journal-meal-move { margin: 10px 0; }
.journal-summary h3 { margin-bottom: 12px; }
.journal-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.journal-summary-cell {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--blanc-casse);
  text-decoration: none;
  font-size: 0.8rem;
}
.journal-summary-cell span { color: var(--color-muted); }
.journal-summary-cell strong { font-size: 0.86rem; line-height: 1.35; }
.journal-summary-cell small { color: var(--color-muted); }
.journal-summary-cell.done { border-color: rgba(184, 233, 134, 0.4); }

/* Courses */
.shopping-add { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; margin-top: 14px; }
.shopping-add input, .shopping-add select {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--blanc-casse);
  font: inherit;
  font-size: 0.92rem;
}
.shopping-item { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.shopping-item:last-child { border-bottom: none; }
.shopping-item .challenge-row { flex: 1; border-bottom: none; }

@media (min-width: 600px) {
  .nourish-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nourish-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nourish-recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .shopping-add { grid-template-columns: 1fr 1fr; }
  .shopping-add input { grid-column: 1 / -1; }
  .nourish-recipe-top { align-items: flex-start; }
  .nourish-illus.xl { width: 76px; height: 76px; font-size: 2.4rem; }
  .nourish-timer-card { flex-direction: column; align-items: stretch; }
}

@media (max-width: 360px) {
  .nourish-btn-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   🏃 MOVE GUIDÉ — parcours → niveau → durée → objectif → séance
   Mobile d'abord : grandes cibles tactiles, un choix par écran.
   ============================================================ */

.move-home-head { margin: 6px 4px 18px; }
.move-home-head p { margin: 0; color: var(--color-muted); font-size: 0.92rem; line-height: 1.5; }
.move-title { margin: 0 0 8px; font-size: 2.1rem; font-weight: 900; letter-spacing: 0.06em; line-height: 1; }
.move-title span {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.move-path-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }

.move-path-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 20px;
  text-align: left;
  color: var(--blanc-casse);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--color-card);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.move-path-card::before { content: ""; position: absolute; inset: 0; opacity: 0.55; pointer-events: none; }
.move-path-plume::before { background: linear-gradient(135deg, rgba(124, 58, 237, 0.34), rgba(233, 213, 255, 0.06)); }
.move-path-pulpe::before { background: linear-gradient(135deg, rgba(244, 63, 122, 0.34), rgba(124, 58, 237, 0.10)); }
.move-path-card > * { position: relative; }
.move-path-card:active { transform: scale(0.98); }
.move-path-card.active { border-color: rgba(233, 213, 255, 0.7); box-shadow: var(--shadow-glow); }
.move-path-card.active::before { opacity: 1; }
.move-path-card .tag { position: absolute; top: 16px; right: 16px; }
.move-path-emoji { font-size: 2rem; line-height: 1; }
.move-path-card strong { font-size: 1.05rem; letter-spacing: 0.08em; }
.move-path-card small { color: rgba(250, 250, 247, 0.82); font-size: 0.9rem; }
.move-path-cta { margin-top: 4px; color: var(--lilas); font-size: 0.82rem; font-weight: 700; }

.move-quick {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: var(--blanc-casse);
  cursor: pointer;
  border-color: rgba(184, 233, 134, 0.35);
}
.move-quick > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.move-quick small { color: var(--color-muted); font-size: 0.82rem; }
.move-quick-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; background: var(--grad); font-size: 1.15rem;
}

.move-note { color: var(--color-muted); font-size: 0.82rem; line-height: 1.5; margin: 6px 4px 12px; }
.move-safety { color: var(--color-muted); font-size: 0.8rem; line-height: 1.5; text-align: center; margin: 18px 8px 8px; }
.move-week { margin-top: 18px; }
.move-links { display: grid; gap: 6px; justify-items: center; }
.move-links .btn-link { margin: 8px 0 0; }

/* Étapes */
.move-step-head { margin: 0 4px 18px; }
.move-step-head h2 { margin: 0; font-size: 1.5rem; }
.move-stepper { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.move-stepper li { display: grid; justify-items: center; gap: 4px; color: var(--color-muted); font-size: 0.66rem; }
.move-stepper li span {
  width: 100%; height: 6px; border-radius: 999px; background: var(--surface-3);
  font-size: 0; overflow: hidden;
}
.move-stepper li.done span, .move-stepper li.current span { background: var(--grad); }
.move-stepper li.current { color: var(--blanc-casse); font-weight: 700; }

.move-choice-list { display: grid; gap: 12px; }
.move-choice, .move-duration, .move-goal {
  color: var(--blanc-casse);
  background: var(--color-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.move-choice:active, .move-duration:active, .move-goal:active { transform: scale(0.98); }
.move-choice.active, .move-duration.active, .move-goal.active { border-color: transparent; background: var(--grad); box-shadow: var(--shadow-glow); }
.move-choice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px;
  min-height: 84px; padding: 16px 18px; text-align: left;
}
.move-choice > span:last-child { display: grid; gap: 4px; }
.move-choice strong { font-size: 1.05rem; }
.move-choice small { color: rgba(250, 250, 247, 0.75); font-size: 0.86rem; }
.move-choice-emoji { font-size: 1.9rem; }

.move-duration-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.move-duration { min-height: 112px; display: grid; place-content: center; gap: 2px; text-align: center; }
.move-duration strong { font-size: 2.3rem; font-weight: 900; line-height: 1; }
.move-duration small { font-size: 0.8rem; letter-spacing: 0.24em; color: rgba(250, 250, 247, 0.75); font-weight: 700; }

.move-goal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.move-goal { min-height: 92px; padding: 14px 12px; display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; }
.move-goal span { font-size: 1.7rem; line-height: 1; }
.move-goal strong { font-size: 0.92rem; line-height: 1.25; }

/* Ta séance du jour */
.move-proposal-path { display: block; font-weight: 800; letter-spacing: 0.12em; font-size: 0.86rem; color: #fff; margin-bottom: 4px; }
.move-proposal h2 { font-size: 1.45rem; margin-bottom: 4px; }
.move-proposal-name { margin: 0 0 6px; font-style: italic; }
.move-proposal-structure { margin: 12px 0 0; font-size: 0.82rem; }
.move-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 0; }
.move-facts div, .move-summary div { display: grid; gap: 4px; }
.move-facts dt, .move-summary dt { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.move-facts dd, .move-summary dd { margin: 0; font-weight: 700; font-size: 1rem; }
.move-start { min-height: 58px; font-size: 1.05rem; letter-spacing: 0.08em; margin-bottom: 10px; }
.move-change { min-height: 50px; margin-bottom: 16px; }
.move-details summary { cursor: pointer; font-weight: 700; color: var(--lilas); padding: 4px 0; }
.move-preview { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.move-preview li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: 0.9rem; }
.move-preview small { display: block; color: var(--color-muted); font-size: 0.78rem; margin-top: 2px; }

/* Lecteur */
.move-player { display: grid; gap: 12px; }
.move-player-top { display: flex; align-items: center; justify-content: space-between; }
.move-player-top .btn-link { margin: 0; padding: 8px 0; }
.move-player-count { font-weight: 800; font-size: 0.9rem; color: var(--lilas); }
.move-player .progress-bar { margin: 0; }
.move-phase { margin: 6px 0 0; }
.move-phase-echauffement { color: #FFD68A; }
.move-phase-recuperation { color: #9FD8FF; }
.move-ex-name { margin: 0; font-size: 1.7rem; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.move-player .video-wrap { margin: 0; }
.move-ex-visual {
  display: grid; place-items: center; min-height: 150px;
  border-radius: var(--radius); background: var(--grad-soft); border: 1px solid var(--line);
  font-size: 4.5rem;
}
.move-dose { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 6px 0; }
.move-reps { font-size: 3.4rem; font-weight: 900; line-height: 1; }
.move-reps-label { color: var(--lilas); font-weight: 700; font-size: 0.95rem; }
.move-rest { color: var(--color-muted); font-size: 0.8rem; }
.move-timer { display: grid; justify-items: center; gap: 8px; width: 100%; }
.move-timer-value { font-size: 3.6rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.move-timer-value.running { color: var(--vert); }
.move-timer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 4px; }
.move-timer-actions .btn { min-height: 52px; }
.move-timer-actions .btn:only-child { grid-column: 1 / -1; }
.move-tip { margin: 0; text-align: center; font-size: 1rem; line-height: 1.5; color: var(--blanc-casse); }
.move-more { font-size: 0.86rem; color: var(--color-muted); }
.move-more summary { cursor: pointer; color: var(--lilas); font-weight: 600; text-align: center; }
.move-more ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.move-nav {
  position: sticky;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  margin: 4px -10px 0;
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(10px);
}
.move-nav .btn { min-height: 56px; font-size: 0.95rem; letter-spacing: 0.04em; padding: 12px 8px; }
.move-player .move-safety { margin-top: 6px; }

/* Fin de séance */
.move-done { text-align: center; }
.move-done h2 { font-size: 2rem; margin: 6px 0 4px; letter-spacing: 0.06em; }
.move-done p { margin: 0; }
.move-done-emoji { font-size: 3rem; }
.move-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; }
.move-summary dd { font-size: 0.98rem; }
.move-saved { display: grid; gap: 10px; }
.move-saved p { margin: 0 0 4px; text-align: center; color: var(--vert); }
.move-back-link { display: block; margin: 6px auto 0; }

/* Progression */
.move-progress .stats-grid { margin-bottom: 14px; }
.move-progress-paths { font-size: 1rem; }
.move-history { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.move-history li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2);
}
.move-history li > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.move-history strong { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.move-history small { color: var(--color-muted); font-size: 0.76rem; }
.move-history li > span:last-child { color: var(--lilas); font-weight: 700; font-size: 0.85rem; }

@media (min-width: 600px) {
  .move-path-grid { grid-template-columns: repeat(2, 1fr); }
  .move-path-card { min-height: 170px; }
  .move-duration-grid { grid-template-columns: repeat(4, 1fr); }
  .move-goal-grid { grid-template-columns: repeat(3, 1fr); }
  .move-nav { position: static; margin: 4px 0 0; padding: 0; background: none; backdrop-filter: none; }
}

/* ---------------- Liens partenaires (encarts discrets) ---------------- */
.partner-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
}
.partner-link-text { margin: 0; flex: 1 1 200px; min-width: 0; display: grid; gap: 3px; }
.partner-link-text strong { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--lilas); }
.partner-link-text span { font-size: 0.82rem; line-height: 1.45; color: var(--color-muted); }
.partner-link-btn { flex: 0 0 auto; max-width: 100%; text-decoration: none; white-space: normal; text-align: center; }

/* ---------------- 🌸 PLUS : l’univers Bella ---------------- */
.bella-universe { margin-top: 16px; }
.bella-universe h3 { margin: 4px 0 12px; }
.bella-universe-list { display: grid; gap: 10px; }
.bella-universe-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  min-width: 0;
}
.bella-universe-text { margin: 0; flex: 1 1 200px; min-width: 0; display: grid; gap: 3px; }
.bella-universe-text strong { font-size: 0.95rem; }
.bella-universe-text span { font-size: 0.82rem; line-height: 1.45; color: var(--color-muted); }
.bella-universe-btn { flex: 0 0 auto; max-width: 100%; text-decoration: none; white-space: normal; text-align: center; }

/* ---------------- 📅 Mon année : bande des 52 semaines ---------------- */
.year-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.year-card-copy { min-width: 0; }
.year-card-copy h2 { margin: 0 0 2px; font-size: 1.3rem; }
.year-card-copy h2 small { font-size: 0.8rem; color: var(--color-muted); font-weight: 600; }
.year-card-copy p { margin: 0; font-size: 0.88rem; color: var(--color-muted); }
.year-card-head .btn { flex-shrink: 0; }
.year-card .stats-grid { margin-bottom: 14px; }

.year-strip-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.year-strip {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 2px 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.year-strip::-webkit-scrollbar { display: none; }
.year-strip li { flex: 0 0 auto; scroll-snap-align: center; }
.year-strip-arrow { display: none; }

.year-pill {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  width: 58px;
  min-height: 64px;
  padding: 6px 4px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--blanc-casse);
  font: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.year-pill:active { transform: scale(0.95); }
.year-pill-label { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.year-pill strong { font-size: 1.15rem; line-height: 1.1; }
.year-pill-mark { min-height: 0.9rem; font-size: 0.62rem; font-weight: 700; color: var(--vert); white-space: nowrap; }
.year-pill.is-selected { border-color: var(--lilas); box-shadow: 0 0 0 1px var(--lilas) inset; }
.year-pill.is-active {
  width: 84px;
  min-height: 74px;
  border-color: transparent;
  background: var(--grad);
  box-shadow: var(--shadow-glow);
}
.year-pill.is-active .year-pill-label,
.year-pill.is-active .year-pill-mark { color: rgba(255, 255, 255, 0.92); }
.year-pill.is-active strong { font-size: 1.4rem; }
.year-pill.is-active.is-selected { box-shadow: var(--shadow-glow), 0 0 0 2px rgba(255, 255, 255, 0.55) inset; }
.year-pill.is-verrouillee { opacity: 0.4; cursor: not-allowed; }
.year-pill.is-verrouillee .year-pill-mark { color: var(--color-muted); }

.year-strip-card { padding: 14px 14px 16px; }
.year-week-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.year-week-nav .btn { min-width: 0; min-height: 44px; padding: 9px 4px; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.year-hero h2 { margin: 2px 0 4px; font-size: 1.6rem; letter-spacing: 0.04em; }
.year-hero .year-hero-title { margin: 0 0 12px; font-size: 1rem; font-weight: 600; }
.year-hero .tag { position: relative; background: rgba(255, 255, 255, 0.2); color: #fff; }
.year-hero .tag.green { background: rgba(184, 233, 134, 0.3); }

.year-goal p { margin: 0; font-size: 0.98rem; }
.year-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.year-block-head h3 { margin: 0; }
.year-block h3 { letter-spacing: 0.04em; }
.year-meal { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.year-meal-copy { display: grid; gap: 4px; min-width: 0; }
.year-meal-copy strong { font-size: 1rem; line-height: 1.3; }
.year-meal-actions { margin-top: 10px; }
.year-meal-actions .btn { flex: 1 1 150px; min-height: 44px; }
.year-move-name { margin: 0 0 6px; font-weight: 700; }
.year-block .nourish-meta { margin: 0 0 12px; }
.year-done { margin: 0 0 12px; color: var(--vert); font-size: 0.88rem; font-weight: 600; }

.year-progress-body { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.year-progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; min-width: 0; }
.year-progress-list li { display: flex; gap: 8px; color: var(--color-muted); }
.year-progress-list li.done { color: var(--blanc-casse); }
.year-progress-list li.done > span { color: var(--vert); font-weight: 700; }
.year-progress .ring { flex-shrink: 0; }

@media (min-width: 600px) {
  .year-strip-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--blanc-casse);
    font-size: 1.2rem;
    cursor: pointer;
  }
  .year-week-nav { grid-template-columns: repeat(3, minmax(0, 170px)); justify-content: center; }
  .year-week-nav .btn { font-size: 0.82rem; padding: 9px 12px; }
}

/* ============================================================
   🌍 LE MONDE BELL’APP — bleu nuit, violet, rose, bleu électrique
   ============================================================ */

.monde-home,
.monde-movement,
.monde-today {
  --monde-nuit: #14123A;
  --monde-electrique: #60A5FA;
}

.monde-home {
  position: relative;
  overflow: hidden;
  border-color: rgba(96, 165, 250, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.20), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(244, 63, 122, 0.16), transparent 45%),
    linear-gradient(160deg, #14123A, var(--color-card) 70%);
}

.monde-home.is-participating { border-color: rgba(244, 63, 122, 0.45); }

.monde-home-head { display: flex; align-items: center; gap: 14px; }
.monde-home-globe {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(96, 165, 250, 0.45), rgba(124, 58, 237, 0.35) 60%, rgba(20, 18, 58, 0.9));
  box-shadow: 0 0 0 1px rgba(233, 213, 255, 0.25), 0 6px 22px rgba(96, 165, 250, 0.25);
}
.monde-home-copy { min-width: 0; }
.monde-home-copy h2 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.monde-home-movement { margin: 14px 0 6px; font-weight: 600; }
.monde-home-bellia,
.monde-home-status,
.monde-home-count { margin: 0 0 12px; font-size: 0.9rem; color: rgba(250, 250, 247, 0.86); }
.monde-home-bellia strong { color: var(--lilas); margin-right: 6px; font-size: 0.78rem; letter-spacing: 0.06em; }
.monde-home-status { color: #FBCFE8; font-weight: 600; }
.monde-home .btn { min-height: 48px; }

/* Héros de la page Monde */
.monde-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: 6px;
  background:
    radial-gradient(circle at 50% 18%, rgba(96, 165, 250, 0.30), transparent 55%),
    linear-gradient(160deg, #14123A 0%, #3B1C7A 55%, #8A1F5A 100%);
}
.monde-hero-copy { min-width: 0; }
.monde-hero-copy h2 { margin: 4px 0 6px; font-size: 1.4rem; }
.monde-hero-copy p { margin: 0; }
.monde-globe { width: min(200px, 56vw); height: auto; display: block; }
.monde-globe-dots circle { fill: #FBCFE8; stroke: rgba(244, 63, 122, 0.8); stroke-width: 2; }
.monde-globe-arcs path { stroke-dasharray: 160; stroke-dashoffset: 0; }
.monde-globe.is-active .monde-globe-arcs path { animation: monde-arc 1.6s ease-out 1; }
.monde-globe.is-active .monde-globe-dots circle { fill: #fff; }
@keyframes monde-arc { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }

/* Mouvement mondial du jour */
.monde-movement {
  border-color: rgba(244, 63, 122, 0.28);
  background: linear-gradient(150deg, rgba(124, 58, 237, 0.16), transparent 60%), var(--color-card);
}
.monde-movement h2 { line-height: 1.3; }
.monde-movement.is-participating { border-color: rgba(244, 63, 122, 0.55); }
.monde-inclusive { color: var(--lilas); font-size: 0.9rem; margin: 0 0 14px; }

.monde-activities { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.monde-activities legend { padding: 0; margin-bottom: 10px; font-size: 0.86rem; font-weight: 600; }
.monde-activities legend small { color: var(--color-muted); font-weight: 400; }
.monde-activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.monde-activity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--blanc-casse);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.monde-activity.active {
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(244, 63, 122, 0.3);
  font-weight: 600;
}
.monde-activity:disabled { cursor: default; }
.monde-activity:disabled:not(.active) { opacity: 0.5; }
.monde-activity:focus-visible,
.monde-home .btn:focus-visible,
.monde-participate:focus-visible { outline: 3px solid var(--monde-electrique); outline-offset: 2px; }

.monde-participate { min-height: 56px; font-size: 1.05rem; }
.monde-joined {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.30), rgba(244, 63, 122, 0.30));
  border: 1px solid rgba(244, 63, 122, 0.45);
}
.monde-joined span { font-size: 0.85rem; color: rgba(250, 250, 247, 0.85); }

/* Statistiques réelles */
.monde-today { border-color: rgba(96, 165, 250, 0.25); }
.monde-stats h3 { margin: 0 0 6px; }
.monde-stats p { margin: 0; color: rgba(250, 250, 247, 0.86); }
.monde-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.monde-stat {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(20, 18, 58, 0.7);
  border: 1px solid rgba(96, 165, 250, 0.25);
  min-width: 0;
}
.monde-stat strong { font-size: 1.6rem; color: #fff; line-height: 1.1; }
.monde-stat small { color: var(--color-muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.monde-mix-title { margin-top: 14px !important; font-size: 0.82rem; color: var(--color-muted) !important; }
.monde-mix { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; }
.monde-mix li {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(233, 213, 255, 0.10);
  border: 1px solid rgba(233, 213, 255, 0.25);
  font-size: 0.82rem;
}
.monde-mix li strong { margin-left: 4px; color: #fff; }

/* Ma participation */
.monde-week { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 12px 0 0; }
.monde-week li {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 0;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--color-muted);
}
.monde-week li.done { background: rgba(244, 63, 122, 0.18); color: var(--blanc-casse); }
.monde-week small { font-size: 0.68rem; }
.monde-personal p { color: rgba(250, 250, 247, 0.84); font-size: 0.9rem; }

.monde-privacy { margin: 4px 6px 16px; font-size: 0.8rem; line-height: 1.5; color: var(--color-muted); }

@media (min-width: 600px) {
  .monde-hero { grid-template-columns: auto minmax(0, 1fr); text-align: left; justify-items: start; align-items: center; gap: 20px; }
  .monde-activity-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .monde-globe.is-active .monde-globe-arcs path { animation: none; }
}

/* 🔥 Défi mondial — progression collective réelle (js/defi-mondial.js) */
.monde-defi { --monde-electrique: #60A5FA; }
.monde-defi-eyebrow { color: #FBCFE8; letter-spacing: 0.08em; }
.monde-defi-progress {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(20, 18, 58, 0.75);
  border: 1px solid rgba(96, 165, 250, 0.30);
  min-width: 0;
}
.monde-defi-progress.is-reached { border-color: rgba(244, 63, 122, 0.6); background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(244, 63, 122, 0.22)), rgba(20, 18, 58, 0.75); }
.monde-defi-progress.is-unavailable { border-style: dashed; }
.monde-defi-label { margin: 0 0 4px; font-size: 0.82rem; font-weight: 600; color: var(--lilas); }
.monde-defi-headline { margin: 0 0 4px; font-weight: 700; }
.monde-defi-reached { font-size: 1.1rem; color: #fff; }
.monde-defi-count { margin: 0 0 10px; font-size: 1.05rem; color: rgba(250, 250, 247, 0.9); overflow-wrap: anywhere; }
.monde-defi-count strong { font-size: 2rem; line-height: 1.1; color: #fff; }
.monde-defi-count span { font-size: 0.86rem; color: var(--color-muted); }
.monde-defi-bar { height: 10px; border-radius: 999px; background: rgba(250, 250, 247, 0.12); overflow: hidden; }
.monde-defi-bar.is-small { height: 6px; margin: 0 0 12px; }
.monde-defi-bar span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #60A5FA, var(--violet), var(--rose)); }
.monde-defi-note { margin: 8px 0 0; font-size: 0.86rem; color: rgba(250, 250, 247, 0.86); }
.monde-defi-milestones { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 10px 0 0; }
.monde-defi-milestones li {
  text-align: center;
  padding: 5px 0;
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--color-muted);
  border: 1px solid var(--line-strong);
}
.monde-defi-milestones li.reached { color: #fff; border-color: rgba(244, 63, 122, 0.55); background: rgba(244, 63, 122, 0.18); font-weight: 600; }
.monde-defi-progress.is-new-milestone { animation: monde-defi-pop 0.9s ease-out 1; }
@keyframes monde-defi-pop { 0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(244, 63, 122, 0.55); } 60% { transform: scale(1.01); box-shadow: 0 0 0 10px rgba(244, 63, 122, 0); } 100% { transform: none; } }
.monde-pending { color: #FDE68A !important; font-weight: 600; }
.monde-home-count strong { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .monde-defi-progress.is-new-milestone { animation: none; }
}

/* ---------------- 🔒 Mes données (Profil) ---------------- */

.my-data-actions { display: grid; gap: 10px; margin: 12px 0 6px; }
.my-data-delete { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-strong); }
.my-data-warning { margin: 0; font-size: 0.86rem; color: var(--blanc-casse); }
.my-data-danger { background: #C81E4E; box-shadow: none; }
.my-data-danger-outline { border-color: rgba(244, 63, 122, 0.55); color: var(--rose); }

/* ---------------- 🎁 Bêta 7 jours & ⚖️ informations légales ---------------- */

.beta-welcome { margin-bottom: 28px; }
.beta-welcome .eyebrow { margin-bottom: 14px; }
.beta-welcome h1 { overflow-wrap: anywhere; }
.beta-welcome p + p { margin-top: 12px; }
.beta-welcome .beta-reassure { margin-top: 18px; color: var(--lilas); font-size: 0.95rem; font-weight: 600; }

.beta-shell .my-data { margin-top: 8px; }
.beta-code { margin: 0 0 18px; }
.beta-code input { text-transform: uppercase; letter-spacing: 0.08em; }
.beta-offer { margin: 0 0 18px; }
.beta-offer h2 { margin: 0 0 10px; font-size: 1.15rem; overflow-wrap: anywhere; }
.beta-offer p { margin: 0 0 14px; line-height: 1.55; }
.beta-offer-soon .btn { margin-top: 4px; }
.beta-ended-note { margin: 0 0 18px; color: var(--lilas); font-size: 0.9rem; font-weight: 600; }
.beta-message { min-height: 1.2em; margin: 12px 0 0; color: #FDA4C4; font-size: 0.88rem; line-height: 1.5; }
.beta-message:empty { margin: 0; min-height: 0; }
.beta-legal-note { margin: 0; color: var(--color-muted); font-size: 0.86rem; line-height: 1.55; }
.beta-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; font-size: 0.86rem; }
.beta-signature { margin: 26px 0 0; color: var(--color-muted); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }

.beta-shell a,
.legal-consent a,
.legal-page a,
.field-hint a { color: var(--lilas); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }

.beta-pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--grad-soft);
  font-size: 0.82rem;
}
.beta-pill span { color: rgba(250, 250, 247, 0.78); }
.beta-pill strong { font-weight: 650; }

.legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}
.legal-consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--violet); flex-shrink: 0; }
.legal-accept-card .legal-consent { margin-bottom: 14px; background: var(--surface-2); }

.legal-page { min-width: 0; }
.legal-lead { margin: 0; color: var(--color-muted); }
.legal-updated { margin: 0; color: var(--color-muted); font-size: 0.8rem; }
.legal-accepted { margin: 0 4px 16px; }

.legal-list { display: grid; gap: 10px; margin-bottom: 16px; }
.legal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  color: var(--blanc-casse) !important;
  text-decoration: none;
}
.legal-row:active { transform: scale(0.985); }
.legal-row-emoji { font-size: 1.4rem; line-height: 1; }
.legal-row-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.legal-row-text strong { font-size: 0.95rem; overflow-wrap: anywhere; }
.legal-row-text small { color: var(--color-muted); font-size: 0.8rem; font-weight: 400; }
.legal-row-arrow { color: var(--lilas); font-size: 1.4rem; }

.legal-doc { padding: 22px 20px; }
.legal-section + .legal-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-section h3 { margin: 0 0 10px; color: var(--lilas); font-size: 0.98rem; line-height: 1.35; }
.legal-section p,
.legal-section li { color: rgba(250, 250, 247, 0.86); font-size: 0.95rem; line-height: 1.65; overflow-wrap: anywhere; }
.legal-section p { margin: 0 0 10px; }
.legal-section ul { margin: 0 0 10px; padding-left: 20px; }
.legal-section li + li { margin-top: 6px; }
.legal-editor { margin: 4px 0 12px; padding: 12px 14px; border-left: 2px solid var(--violet); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: normal; line-height: 1.6; }
.legal-contact { margin: 0 0 10px; }
.legal-doc-link { display: inline-block; margin-top: 4px; font-size: 0.9rem; }

/* ============================================================
   💗 ABONNEMENT BELL’App (js/abonnement.js) — bleu nuit, magenta, bleu électrique
   ============================================================ */

.abo-shell {
  --abo-nuit: #020224;
  --abo-magenta: #FF2C9C;
  --abo-electrique: #60A5FA;
  min-width: 0;
  max-width: 35rem;
  margin-inline: auto;
}
.abo-shell * { min-width: 0; }
.abo-step { margin: 0 0 10px; color: var(--abo-electrique); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.abo-head h1 { overflow-wrap: anywhere; }
.abo-choices .abo-choice.active,
.abo-plan.active { border-color: var(--abo-magenta); box-shadow: 0 8px 26px rgba(255, 44, 156, 0.28); }

.abo-plans { display: grid; gap: 12px; }
.abo-plan {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--abo-nuit), var(--color-card) 75%);
  color: var(--blanc-casse);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.abo-plan-label { color: var(--lilas); font-size: 0.85rem; font-weight: 700; }
.abo-plan-price { font-size: 1.3rem; font-weight: 800; color: var(--blanc-casse); overflow-wrap: anywhere; }
.abo-plan-then,
.abo-plan-eq { color: rgba(250, 250, 247, 0.72); font-size: 0.86rem; overflow-wrap: anywhere; }
.abo-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--abo-magenta); color: #fff; font-size: 0.7rem; font-style: normal; font-weight: 700; }

.abo-providers { display: grid; gap: 10px; }
.abo-provider { min-height: 54px; font-size: 1rem; }
.abo-provider.active { box-shadow: 0 0 0 2px var(--abo-electrique); }
.abo-safe { margin: 16px 0 0; color: var(--color-muted); font-size: 0.84rem; line-height: 1.55; }

.abo-recap dl { display: grid; gap: 10px; margin: 0 0 12px; }
.abo-recap dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.abo-recap dt { color: var(--color-muted); font-size: 0.84rem; }
.abo-recap dd { margin: 0; font-size: 0.92rem; text-align: right; overflow-wrap: anywhere; }
.abo-promo { display: grid; gap: 12px; margin-bottom: 16px; }
.abo-promo label { color: var(--abo-electrique); font-weight: 700; }
.abo-promo input { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: inherit; font: inherit; }
.abo-promo input:focus-visible { outline: 2px solid var(--abo-electrique); outline-offset: 3px; }
.abo-trial-note { margin: 0 0 10px; color: var(--abo-electrique); font-size: 0.95rem; font-weight: 700; }
.abo-legal-slot { margin-bottom: 4px; }
.abo-account-hint { margin: 16px 0 0; color: rgba(250, 250, 247, 0.82); font-size: 0.92rem; line-height: 1.55; }

.abo-form { margin-top: 4px; }
.abo-form input { width: 100%; }
.abo-switch,
.abo-account-note { margin: 14px 0 0; font-size: 0.86rem; }
.abo-login-link { margin: 18px 0 0; text-align: center; font-size: 0.92rem; }
.abo-login-link a { color: var(--abo-magenta) !important; }
.abo-back { margin-top: 12px; }
.abo-notice p,
.abo-locked p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.abo-locked { margin-top: 18px; }
.abo-locked p + p { margin-top: 8px; color: var(--color-muted); font-size: 0.88rem; }
.abo-loading { color: var(--color-muted); }
.abo-pill { text-decoration: none; color: var(--blanc-casse); }
.path-change-btn.locked { opacity: 0.6; }

@media (min-width: 56em) {
  .abo-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .abo-shell:has(.abo-plans) { max-width: 55rem; }
}

/* ============================================================
   🌸 Accueil personnalisé & 💡 TIPS (js/tips.js) — palette existante
   ============================================================ */
.bell-welcome { margin: 2px 4px 16px; }
.bell-welcome p { margin: 0; line-height: 1.4; }
.bell-welcome-hello { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; color: var(--blanc-casse); }
.bell-welcome-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bell-welcome-line { margin-top: 2px !important; color: var(--blanc-casse); font-size: 0.98rem; }
.bell-welcome-soft { margin-top: 2px !important; color: var(--lilas); font-size: 0.9rem; }

.bell-tips-home h3 { margin-bottom: 12px; }
.bell-tip-daily { display: grid; gap: 4px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--grad-soft); }
.bell-tip-daily small { color: var(--lilas); font-size: 0.76rem; font-weight: 700; }
.bell-tip-daily p { margin: 0; font-size: 0.9rem; color: rgba(250, 250, 247, 0.86); }
.bell-tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 10px; }
.bell-tips-tile { display: grid; gap: 4px; min-height: 44px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--blanc-casse); font: inherit; text-align: left; cursor: pointer; }
.bell-tips-tile:hover, .bell-tips-tile:focus-visible { border-color: rgba(244, 63, 122, 0.55); box-shadow: var(--shadow-glow); }
.bell-tips-tile strong { font-size: 0.86rem; letter-spacing: 0.02em; }
.bell-tips-tile small { color: var(--color-muted); font-size: 0.8rem; line-height: 1.35; }
.bell-tips-home .field-hint .btn-link { display: inline; padding: 0; margin: 0; }
.bell-tips-switch { margin-bottom: 16px; }
.bell-tip-cat h3 + p { margin-top: 0; }
.bell-tip-cat p + h3 { margin-top: 18px; }
.bell-tip-action { color: rgba(250, 250, 247, 0.9); }
.bell-tip-caution { color: var(--lilas); font-size: 0.86rem; }
