/* ===========================================================
   MOMAR LIFESTYLE — DESIGN SYSTEM V2 "ATELIER VERT"
   Refonte complète : magazine santé clair, vert forêt + ambre,
   cartes nettes, boutons pilule — inspiré de DietDoctor.com.
   =========================================================== */

/* -------- Fonts -------- */
@import url("https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Work+Sans:wght@300;400;500;600;700&display=swap");

/* -------- Tokens -------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f3;
  --surface: #ffffff;
  --ink: #1b1d17;
  --ink-soft: rgba(27, 29, 23, 0.68);
  --ink-faint: rgba(27, 29, 23, 0.46);
  --line: rgba(27, 29, 23, 0.11);

  --green: #1f7a54;
  --green-dark: #155b3d;
  --green-tint: #e8f3ec;
  --amber: #e0792c;
  --amber-dark: #b95f1f;
  --amber-tint: #fbeade;

  /* legacy aliases kept so existing markup/inline styles referencing old
     token names still resolve to the new palette */
  --cream: var(--bg);
  --cream-2: var(--surface);
  --beige: var(--bg-soft);
  --olive: var(--ink);
  --olive-2: var(--green-dark);
  --terracotta: var(--green);
  --terracotta-dark: var(--green-dark);
  --terracotta-soft: var(--amber-tint);
  --terracotta-tint: var(--green-tint);

  --font-head-ar: "Noto Kufi Arabic", "Tahoma", sans-serif;
  --font-body-ar: "Tajawal", "Tahoma", sans-serif;
  --font-head-fr: "Fraunces", "Georgia", serif;
  --font-body-fr: "Work Sans", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 12px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 16px 32px -22px rgba(27, 29, 23, 0.24);
  --shadow-card: 0 2px 4px rgba(27, 29, 23, 0.04), 0 10px 24px -18px rgba(27, 29, 23, 0.18);
  --shadow-card-hover: 0 6px 10px -4px rgba(27, 29, 23, 0.08), 0 20px 36px -20px rgba(27, 29, 23, 0.26);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------- Reset -------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body-ar);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="fr"] body { font-family: var(--font-body-fr); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head-ar); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
html[lang="fr"] h1, html[lang="fr"] h2, html[lang="fr"] h3, html[lang="fr"] h4 { font-family: var(--font-head-fr); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
.no-scroll { overflow: hidden; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* -------- Layout helpers -------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: 56px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section--tight { padding: 40px 0; }
@media (min-width: 900px) { .section--tight { padding: 56px 0; } }
.section--olive { background: var(--ink); color: #f4f2ea; }
.section--olive h2, .section--olive h3 { color: #f4f2ea; }
.section--beige { background: var(--bg-soft); }
.section--cream2 { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--green-tint);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
}
.eyebrow::before { content: none; }
.section--olive .eyebrow { color: #ffd9ae; background: rgba(244,242,234,.1); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); }
.section-head .lede { margin-top: 16px; font-size: 17px; color: var(--ink-soft); max-width: 58ch; }
.section--olive .lede { color: rgba(244,242,234,.78); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px -10px rgba(21,91,61,.5); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(21,91,61,.55); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--olive .btn-outline { color: #f4f2ea; border-color: rgba(244,242,234,.35); }
.section--olive .btn-outline:hover { background: #f4f2ea; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--amber-dark); border-color: var(--amber-tint); }
.btn-ghost:hover { background: var(--amber); color: #fff; border-color: var(--amber); }
.btn-small { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 16.5px; }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -18px rgba(27,29,23,.5); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { font-family: var(--font-head-ar); font-weight: 800; font-size: 20px; letter-spacing: 0.01em; color: var(--ink); display: flex; align-items: center; gap: 10px; line-height: 1.1; }
html[lang="fr"] .brand { font-family: var(--font-head-fr); }
.brand-mark { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand small { font-size: 10px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0.12em; text-transform: uppercase; }

.site-nav ul { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); position: relative; padding: 4px 0; transition: color .2s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: -2px; width: 0; height: 2px; background: var(--green); border-radius: 2px; transition: width .25s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 4px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; color: var(--ink-faint); }
.lang-switch a.is-active { background: var(--ink); color: #fff; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .25s var(--ease); }

@media (max-width: 900px) {
  .site-nav { position: fixed; inset: 72px 0 0 0; background: #fff; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); overflow-y: auto; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 30px; }
  .site-nav li { width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: 16px 2px; font-size: 17px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary.only-desktop { display: none; }
  /* Le menu mobile ne s'ouvrait pas du tout : backdrop-filter fait du header
     le bloc conteneur de ses enfants en position:fixed, exactement comme un
     transform. Le « inset: 72px 0 0 0 » du menu se calculait donc dans un
     header de 73px de haut au lieu du viewport — hauteur resultante : 0.
     Le flou n'apporte rien sur telephone et coute cher a l'affichage. */
  .site-header { backdrop-filter: none; background: #fff; }
  .site-header.nav-open .site-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (min-width: 901px) { .nav-toggle { display: none; } }

/* -------- Sticky mobile CTA -------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; box-shadow: 0 -10px 24px -20px rgba(27,29,23,.5); display: flex; }
.sticky-cta .btn { flex: 1; }
@media (min-width: 901px) { .sticky-cta { display: none; } }
@media (max-width: 900px) { body { padding-bottom: 74px; } }

/* -------- Hero -------- */
.hero { padding: 36px 0 56px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 60px 0 96px; } }
.hero .container { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.hero-copy h1 { font-size: clamp(36px, 6.4vw, 66px); letter-spacing: -0.02em; }
.hero-copy .lede { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 52ch; }
.hero-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 28px 0; }
.hero-badges[style] { align-items: center; }
.hero-badge { background: transparent; border: none; border-radius: 0; padding: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.hero-badge::before { content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.hero-badge b { color: var(--green-dark); }

.stat-hero { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; margin-top: 6px; }
.stat-hero-num { font-family: var(--font-head-ar); font-size: 30px; font-weight: 800; line-height: 1; white-space: nowrap; }
html[lang="fr"] .stat-hero-num { font-family: var(--font-head-fr); }
.stat-hero-num span { font-size: 15px; font-weight: 700; margin-inline-start: 3px; }
.stat-hero-label { font-size: 14.5px; font-weight: 700; color: #ffd9ae; border-inline-start: 1px solid rgba(244,242,234,.3); padding-inline-start: 12px; }
@media (max-width: 420px) { .stat-hero { padding: 10px 16px; } .stat-hero-num { font-size: 24px; } .stat-hero-label { font-size: 12.5px; padding-inline-start: 9px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.hero-visual { position: relative; }
.hero-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(155deg, var(--green-tint), #fff); box-shadow: var(--shadow-card); }
.hero-frame svg { width: 100%; height: 100%; }
.hero-caption { position: absolute; bottom: 18px; inset-inline-start: 18px; inset-inline-end: 18px; background: rgba(27,29,23,.78); color: #fff; padding: 12px 16px; border-radius: var(--radius); font-size: 12.5px; letter-spacing: .02em; backdrop-filter: blur(4px); }
.hero-ring { position: absolute; width: 130px; height: 130px; border: 1.5px solid var(--amber); border-radius: 50%; top: -30px; inset-inline-end: -30px; opacity: .55; }
@media (max-width: 640px) { .hero-ring { display:none; } }

/* -------- Reveal animation -------- */
[data-reveal] { opacity: 1; transform: translateY(0); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* -------- Problem section -------- */
.problem-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.problem-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; font-size: 16.5px; font-weight: 500; position: relative; box-shadow: var(--shadow-card); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.problem-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.problem-card::before { content: "؟"; position: absolute; top: 18px; inset-inline-end: 20px; font-family: var(--font-head-ar); font-size: 26px; color: var(--amber-tint); }
.problem-pivot { margin-top: 44px; text-align: center; }
.problem-pivot h3 { font-size: clamp(24px, 4vw, 32px); max-width: 30ch; margin: 0 auto; }

/* -------- Pillars (ce que tu reçois) -------- */
.pillars { display: grid; gap: 16px; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-card); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.pillar:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.pillar-num { font-family: var(--font-head-ar); font-size: 13px; font-weight: 800; color: #fff; background: var(--green); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 18px; }
.pillar h3 { font-size: 21px; margin-bottom: 10px; }
.pillar p { color: var(--ink-soft); font-size: 15.5px; }

/* -------- Alone vs Accompanied comparison -------- */
.duo { display: grid; gap: 18px; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; } }
.duo-card { border-radius: var(--radius-lg); padding: 32px 28px; }
.duo-card--alone { background: var(--bg-soft); border: 1px dashed var(--line); color: var(--ink-soft); }
.duo-card--with { background: var(--ink); color: #fff; box-shadow: var(--shadow-soft); }
.duo-card h3 { font-size: 22px; margin-bottom: 18px; }
.duo-card--with h3 { color: #ffd9ae; }
.duo-list li { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 15.5px; display: flex; gap: 10px; }
.duo-card--with .duo-list li { border-color: rgba(244,242,234,.14); }
.duo-list li:last-child { border-bottom: none; }
.duo-list li::before { content: "–"; color: var(--ink-faint); flex-shrink:0; }
.duo-card--with .duo-list li::before { content: "✓"; color: #ffd9ae; }

/* -------- Gallery (restaurant style) -------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery-item { display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--bg-soft); box-shadow: var(--shadow-card); cursor: pointer; }
.gallery-item:nth-child(3n+1) { aspect-ratio: 4/5; }
.gallery-item svg, .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item span { position: absolute; bottom: 10px; inset-inline-start: 10px; inset-inline-end: 10px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(27,29,23,.6); padding: 6px 10px; border-radius: 4px; backdrop-filter: blur(3px); }

/* -------- Testimonials & before/after (real proof) -------- */
.proof-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
.proof-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.proof-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.proof-card img { width: 100%; display: block; }
.proof-card .cap { padding: 14px 18px; font-size: 14px; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.proof-card .cap b { color: var(--ink); font-family: var(--font-head-ar); }
html[lang="fr"] .proof-card .cap b { font-family: var(--font-head-fr); }
.proof-card .cap span.tag { font-size: 11.5px; color: var(--amber-dark); background: var(--amber-tint); padding: 3px 9px; border-radius: 999px; font-weight: 700; flex-shrink: 0; }

.ba-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .ba-grid { grid-template-columns: repeat(2, 1fr); } }
.ba-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-card); }
.ba-card img { width: 100%; display: block; }
.ba-card .cap { padding: 12px 18px; font-size: 12.5px; color: var(--ink-faint); }

.stat-quote { border: 1px dashed rgba(244,242,234,.3); border-radius: var(--radius-lg); padding: 22px 26px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: baseline; justify-content: center; text-align: center; }
.stat-quote .stat-num { font-family: var(--font-head-ar); font-size: 26px; font-weight: 800; color: #ffd9ae; }
.stat-quote p { font-size: 14.5px; color: rgba(244,242,234,.75); max-width: 44ch; }
.section:not(.section--olive) .stat-quote { border-color: var(--line); }
.section:not(.section--olive) .stat-quote .stat-num { color: var(--amber-dark); }
.section:not(.section--olive) .stat-quote p { color: var(--ink-soft); }

/* -------- Wall of proof (mur de preuve) — clickable testimonial thumbnails -------- */
.proof-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 620px) { .proof-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .proof-wall { grid-template-columns: repeat(4, 1fr); } }
.proof-wall-item { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-card); cursor: zoom-in; padding: 0; appearance: none; }
.proof-wall-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; display: block; transition: transform .25s var(--ease); }
.proof-wall-item:hover img { transform: scale(1.04); }

.proof-lightbox { position: fixed; inset: 0; z-index: 999; display: none; align-items: center; justify-content: center; background: rgba(20,18,14,.86); padding: 24px; }
.proof-lightbox.is-open { display: flex; }
.proof-lightbox img { max-width: min(92vw, 560px); max-height: 88vh; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.proof-lightbox-close { position: absolute; top: 18px; inset-inline-end: 22px; width: 40px; height: 40px; border-radius: 999px; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.proof-lightbox-close:hover { background: rgba(255,255,255,.28); }

/* -------- Steps -------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-inline-start: 0; }
.step-num { font-family: var(--font-head-ar); font-size: 42px; font-weight: 800; color: var(--amber-tint); line-height: 1; display: block; margin-bottom: 12px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }
.section--olive .step p { color: rgba(244,242,234,.72); }

/* -------- Offer card -------- */
.offer-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 30px; box-shadow: var(--shadow-card); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.offer-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.offer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.offer-name { font-size: 26px; }
.offer-tag { font-size: 12.5px; font-weight: 700; color: var(--amber-dark); background: var(--amber-tint); padding: 5px 12px; border-radius: 999px; }
.offer-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 26px; }
.offer-price .num { font-family: var(--font-head-ar); font-size: 40px; font-weight: 800; color: var(--ink); }
.offer-price .cur { font-size: 16px; color: var(--ink-soft); font-weight: 700; }
.offer-list { display: grid; gap: 10px; margin-bottom: 28px; }
.offer-list li { display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
.offer-list li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.toc-grid { display: grid; gap: 14px 32px; margin-bottom: 0; }
@media (min-width: 700px) { .toc-grid { grid-template-columns: repeat(2, 1fr); } }
.toc-grid li { font-size: 15.5px; }

/* -------- Comparison table -------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1px solid var(--line); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
table.compare th, table.compare td { padding: 16px 20px; text-align: start; font-size: 15px; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--ink); color: #fff; font-family: var(--font-head-ar); font-size: 15.5px; }
html[lang="fr"] table.compare thead th { font-family: var(--font-head-fr); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr:hover { background: var(--bg-soft); }
table.compare td:first-child, table.compare th:first-child { font-weight: 700; color: var(--ink-faint); width: 34%; }

/* -------- Testimonial / proof placeholder -------- */
.proof-placeholder { border: 1.5px dashed var(--line); border-radius: var(--radius-lg); padding: 44px 28px; text-align: center; color: var(--ink-faint); font-size: 15px; background: var(--bg-soft); }
.proof-placeholder strong { display: block; color: var(--ink-soft); font-size: 16px; margin-bottom: 6px; }

/* -------- FAQ -------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: start; background: none; border: none; padding: 22px 2px; font-size: 17px; font-weight: 700; color: var(--ink); font-family: var(--font-head-ar); }
html[lang="fr"] .faq-question { font-family: var(--font-head-fr); font-weight: 600; font-size: 16.5px; }
.faq-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: transform .3s var(--ease), background .3s var(--ease); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--green); color: #fff; border-color: var(--green); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer p { padding: 0 2px 22px; color: var(--ink-soft); font-size: 15.5px; max-width: 68ch; }

/* -------- About -------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 60px; } }
.about-portrait { aspect-ratio: 3/4; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--bg-soft), #fff); overflow: hidden; box-shadow: var(--shadow-card); }
.about-portrait svg { width: 100%; height: 100%; }
.duo-portrait { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo-portrait-item { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.duo-portrait-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.duo-portrait-item span { position: absolute; bottom: 0; inset-inline: 0; padding: 10px 12px 12px; font-family: var(--font-head-ar); font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(to top, rgba(20,22,14,.85), transparent); }
html[lang="fr"] .duo-portrait-item span { font-family: var(--font-head-fr); }
.duo-portrait-item small { display: block; font-size: 10.5px; font-weight: 500; opacity: .8; letter-spacing: .03em; }
.momar-etym { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-head-ar); font-size: 15px; font-weight: 700; color: var(--green-dark); margin: 4px 0 2px; }
html[lang="fr"] .momar-etym { font-family: var(--font-head-fr); }
.about-copy p + p { margin-top: 16px; }
.about-copy p { font-size: 16.5px; color: var(--ink-soft); }

/* -------- Final CTA -------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(28px, 5vw, 46px); max-width: 22ch; margin: 0 auto; }
.final-cta .lede { max-width: 56ch; margin: 20px auto 34px; }
.final-cta .hero-actions { justify-content: center; }

/* -------- Footer -------- */
.site-footer { background: var(--ink); color: rgba(244,242,234,.82); padding: 56px 0 26px; }
.footer-top { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(244,242,234,.14); }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; color: rgba(244,242,234,.65); max-width: 40ch; }
.footer-col h4 { font-family: var(--font-head-ar); color: #fff; font-size: 15px; margin-bottom: 16px; }
html[lang="fr"] .footer-col h4 { font-family: var(--font-head-fr); }
.footer-col li { margin-bottom: 10px; font-size: 14.5px; }
.footer-col a:hover { color: #ffd9ae; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: 12.5px; color: rgba(244,242,234,.55); }
.footer-disclaimer { font-size: 12.5px; color: rgba(244,242,234,.55); max-width: 80ch; margin-top: 18px; line-height: 1.7; }

/* -------- CTA modal -------- */
.cta-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.cta-modal.is-open { opacity: 1; pointer-events: auto; }
@media (min-width: 640px) { .cta-modal { align-items: center; } }
.cta-modal__backdrop { position: absolute; inset: 0; background: rgba(15,17,12,.55); }
.cta-modal__box { position: relative; background: #fff; width: 100%; max-width: 440px; border-radius: 22px 22px 0 0; padding: 30px 26px 28px; transform: translateY(16px); transition: transform .3s var(--ease); box-shadow: var(--shadow-card-hover); }
.cta-modal.is-open .cta-modal__box { transform: translateY(0); }
@media (min-width: 640px) { .cta-modal__box { border-radius: var(--radius-lg); } }
.cta-modal__close { position: absolute; top: 14px; inset-inline-end: 14px; background: none; border: none; font-size: 16px; color: var(--ink-faint); width: 32px; height: 32px; }
.cta-modal__eyebrow { font-size: 12.5px; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.cta-modal__box h3 { font-size: 21px; margin-bottom: 16px; }
.cta-modal__msgbox { background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.cta-modal__msg { font-size: 15.5px; font-weight: 600; margin-bottom: 12px; }
.cta-modal__hint { font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 14px; }

/* -------- Plan configurator (wizard) -------- */
.plan-wizard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 34px 28px; max-width: 720px; margin: 0 auto; }
@media (min-width: 640px) { .plan-wizard { padding: 44px 46px; } }

.plan-progress { display: flex; gap: 8px; margin-bottom: 30px; }
.plan-progress-dot { flex: 1; height: 4px; border-radius: 999px; background: var(--line); }
.plan-progress-dot.is-active, .plan-progress-dot.is-done { background: var(--green); }

.plan-step { display: none; }
.plan-step.is-active { display: block; }
.plan-step-eyebrow { font-size: 12.5px; font-weight: 700; color: var(--green-dark); letter-spacing: 0.04em; margin-bottom: 8px; }
.plan-step h3 { font-size: 22px; margin-bottom: 22px; }

.choice-cards { display: grid; gap: 12px; margin-bottom: 22px; }
@media (min-width: 560px) { .choice-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice-card label { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 12px; font-size: 14.5px; font-weight: 700; color: var(--ink-soft); transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.choice-card label .ico { font-size: 24px; }
.choice-card label small { font-weight: 500; font-size: 12px; color: var(--ink-faint); }
.choice-card input:checked + label { border-color: var(--green); background: var(--green-tint); color: var(--green-dark); }
.choice-card input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }

.deficit-slider-box { margin: 20px 0; }
.deficit-slider-label { font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; color: var(--ink); direction: ltr; }
input[type="range"].deficit-slider { width: 100%; height: 8px; border-radius: 5px; background: var(--line); outline: none; -webkit-appearance: none; direction: ltr !important; touch-action: none; margin: 6px 0; }
input[type="range"].deficit-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green); cursor: pointer; }
input[type="range"].deficit-slider::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--green); cursor: pointer; border: none; }
.deficit-target-box { background: var(--green-tint); padding: 15px; border-radius: var(--radius); border-inline-start: 4px solid var(--green); margin-top: 15px; }
.deficit-target-box strong { font-size: 1.3em; color: var(--green-dark); }
.deficit-safety-note { background: #fff3cd; border-inline-start: 4px solid #ff9800; padding: 12px 14px; border-radius: var(--radius); margin-top: 15px; color: #856404; font-size: 14px; }

.field-grid { display: grid; gap: 18px; margin-bottom: 22px; }
@media (min-width: 560px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); }

.choice-list { display: grid; gap: 10px; margin-bottom: 22px; }
.choice-row { position: relative; }
.choice-row input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice-row label { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); transition: border-color .2s var(--ease), background .2s var(--ease); }
.choice-row input:checked + label { border-color: var(--green); background: var(--green-tint); color: var(--green-dark); }

.plan-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 8px; }
.plan-nav .btn-back { visibility: visible; }
.plan-nav .btn-back[hidden] { display: none; }

/* Result (free tier) */
.plan-result { display: none; }
.plan-result.is-active { display: block; }
.result-hero { text-align: center; margin-bottom: 30px; }
.result-hero .num { font-family: var(--font-head-ar); font-size: 52px; font-weight: 800; color: var(--ink); line-height: 1; }
html[lang="fr"] .result-hero .num { font-family: var(--font-head-fr); }
.result-hero .unit { font-size: 15px; font-weight: 700; color: var(--ink-faint); display: block; margin-top: 6px; }
.macro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.macro-tile { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px; text-align: center; }
.macro-tile .val { font-family: var(--font-head-ar); font-size: 22px; font-weight: 800; color: var(--green-dark); display: block; }
html[lang="fr"] .macro-tile .val { font-family: var(--font-head-fr); }
.macro-tile .lbl { font-size: 12px; color: var(--ink-faint); font-weight: 700; margin-top: 4px; display: block; }

/* Paywall / unlock */
.paywall-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-soft); }
.paywall-card h3 { color: #fff; font-size: 21px; margin-bottom: 10px; }
.paywall-card p { color: rgba(244,242,234,.75); font-size: 14.5px; }
.paywall-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0; }
.paywall-price .num { font-family: var(--font-head-ar); font-size: 34px; font-weight: 800; color: #ffd9ae; }
html[lang="fr"] .paywall-price .num { font-family: var(--font-head-fr); }
.paywall-price .cur { font-size: 15px; font-weight: 700; color: rgba(244,242,234,.75); }

/* Prix masqués par défaut, révélés au clic — voir data-price-gate dans site.js */
.price-gate-value[hidden] { display: none !important; }
.price-gate-btn { cursor: pointer; background: none; border: 1px dashed var(--ink-faint); border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink-soft); transition: border-color .2s, color .2s, background .2s; }
.price-gate-btn:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-tint); }
.price-gate.is-revealed .price-gate-btn { display: none; }
.hero-badge.price-gate::before { content: none; }
.hero-badge.price-gate .price-gate-btn { padding: 4px 12px; font-size: 13.5px; border-radius: 999px; }
.hero-badge.price-gate.is-revealed::before { content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.section--olive .price-gate-btn { border-color: rgba(244,242,234,.35); color: rgba(244,242,234,.85); }
.section--olive .price-gate-btn:hover { border-color: #ffd9ae; color: #ffd9ae; background: transparent; }

/* Lien pas encore fourni (Stripe/Chargily/Telegram) — voir data-cfg-href dans site.js.
   Grisé et non cliquable tant que le vrai lien n'est pas dans config.js. */
a.is-placeholder { opacity: .45; cursor: not-allowed; pointer-events: none; filter: grayscale(40%); }
.pay-methods { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 480px) { .pay-methods { grid-template-columns: 1fr 1fr; } }
.pay-btn { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius-pill); padding: 15px 18px; font-weight: 700; font-size: 14.5px; border: 1.5px solid rgba(244,242,234,.3); color: #fff; background: rgba(244,242,234,.06); transition: background .2s var(--ease), border-color .2s var(--ease); }
.pay-btn:hover { background: rgba(244,242,234,.14); border-color: rgba(244,242,234,.5); }
.pay-btn .ico { font-size: 18px; }
.paywall-note { font-size: 12.5px; color: rgba(244,242,234,.55); margin-top: 16px; text-align: center; }

.access-code-block { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(244,242,234,.18); }
.access-code-form { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.access-code-input { flex: 1 1 160px; min-width: 0; padding: 13px 16px; border-radius: var(--radius-pill); border: 1.5px solid rgba(244,242,234,.3); background: rgba(244,242,234,.06); color: #fff; font: inherit; font-size: 14.5px; }
.access-code-input::placeholder { color: rgba(244,242,234,.45); }
.access-code-input:focus { outline: none; border-color: #ffd9ae; }
.access-code-block .btn-primary { flex: 0 0 auto; padding: 13px 20px; font-size: 14.5px; }
.access-code-msg { font-size: 13px; margin-top: 12px; text-align: center; font-weight: 700; }
.access-code-msg.is-success { color: #a9e0b0; }
.access-code-msg.is-error { color: #f0a5a5; }

.crosssell-grid { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 640px) { .crosssell-grid { grid-template-columns: 1fr 1fr; } }
.crosssell-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.crosssell-card h4 { font-size: 16px; margin-bottom: 8px; }
.crosssell-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }

/* -------- Freemium ladder (accueil) -------- */
.ladder-grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 860px) { .ladder-grid { grid-template-columns: repeat(3, 1fr); } }
.ladder-card { display: flex; flex-direction: column; height: 100%; }
.ladder-card .btn { margin-top: auto; }
.ladder-card--free { border: 2px solid var(--green); position: relative; }
.tag-free { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 13px; border-radius: 999px; position: absolute; top: -13px; inset-inline-start: 28px; }

/* -------- Recipes (recettes) -------- */
.recipe-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-tab { border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 700; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.filter-tab.is-active, .filter-tab:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.recipe-count { font-size: 13.5px; color: var(--ink-faint); font-weight: 600; margin-bottom: 18px; }

.recipe-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .recipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .recipe-grid { grid-template-columns: repeat(3, 1fr); } }
.recipe-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.recipe-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.recipe-card[hidden] { display: none; }
.recipe-card__img { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.recipe-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-card__ico { font-size: 42px; opacity: .55; }
.recipe-card__free { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 999px; }
.recipe-card__lock { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--ink); color: #ffd9ae; font-size: 11px; font-weight: 800; padding: 5px 11px; border-radius: 999px; }
.recipe-card__carbs {
  position: absolute; top: 10px; inset-inline-end: 10px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.95); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.05; text-align: center;
}
.recipe-card__carbs b { font-family: var(--font-head-ar); font-size: 14.5px; font-weight: 800; color: var(--green-dark); }
html[lang="fr"] .recipe-card__carbs b { font-family: var(--font-head-fr); }
.recipe-card__carbs small { font-size: 8.5px; font-weight: 700; color: var(--ink-faint); letter-spacing: .01em; }
.recipe-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.recipe-card__body h3 { font-size: 19px; }
.recipe-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-faint); font-weight: 700; }
.recipe-card__meta span:not(:last-child)::after { content: "•"; margin-inline-start: 8px; color: var(--line); font-weight: 400; }
.recipe-card__diff { color: var(--amber-dark) !important; }
.recipe-macros { display: flex; flex-wrap: wrap; gap: 6px; }
.recipe-macro-pill { background: var(--green-tint); border: none; border-radius: var(--radius-pill); padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.recipe-macro-pill b { color: var(--green-dark); font-family: var(--font-head-ar); }
html[lang="fr"] .recipe-macro-pill b { font-family: var(--font-head-fr); }
.recipe-card__toggle { width: 100%; margin-top: auto; }

.recipe-detail { display: none; margin-top: 6px; padding-top: 16px; border-top: 1px dashed var(--line); }
.recipe-card.is-open .recipe-detail { display: block; }
.recipe-detail h4 { font-size: 14px; margin-bottom: 10px; color: var(--green-dark); }
.recipe-detail ul, .recipe-detail ol { display: grid; gap: 8px; margin-bottom: 18px; padding-inline-start: 20px; }
.recipe-detail ul { padding-inline-start: 0; list-style: none; }
.recipe-detail ul li { font-size: 14.5px; color: var(--ink-soft); display: flex; gap: 8px; }
.recipe-detail ul li::before { content: "•"; color: var(--green); font-weight: 800; flex-shrink: 0; }
.recipe-detail ol li { font-size: 14.5px; color: var(--ink-soft); padding-inline-start: 4px; }
.recipe-detail ol { padding-inline-start: 22px; }

/* -------- Recettes premium (page verrouillée) -------- */
.locked-banner { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 40px 30px; text-align: center; box-shadow: var(--shadow-soft); }
.locked-banner h2 { color: #fff; font-size: clamp(24px, 4vw, 32px); margin-bottom: 12px; }
.locked-banner p { color: rgba(244,242,234,.78); max-width: 56ch; margin: 0 auto 22px; }
.locked-banner .btn-primary { background: var(--amber); box-shadow: 0 10px 22px -10px rgba(185,95,31,.55); }
.locked-banner .btn-primary:hover { background: var(--amber-dark); }

/* -------- Widget "poids actuel" — recalcul périodique du TDEE -------- */
.weight-update-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow-card); margin-bottom: 28px; }
.weight-update-card h3 { font-size: 19px; margin-bottom: 4px; }
.weight-update-card .lede-sm { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.weight-update-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.weight-update-field { display: flex; flex-direction: column; gap: 6px; }
.weight-update-field label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.weight-update-field input { width: 130px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.weight-update-meta { font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; }
.weight-update-msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; }
.weight-update-msg.is-success { background: var(--green-tint); color: var(--green-dark); }
.weight-update-msg.is-error { background: #fdecea; color: #b3261e; }
.weight-update-msg.is-info { background: var(--bg-soft); color: var(--ink-soft); }

.weight-reminder-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--amber-tint); border: 1px solid var(--amber); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; font-size: 14px; color: var(--ink); }
.weight-reminder-banner strong { color: var(--amber-dark); }
.weight-reminder-banner .btn { flex-shrink: 0; }
.weight-reminder-dismiss { background: none; border: none; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink-faint); padding: 4px 8px; }
.weight-reminder-dismiss:hover { color: var(--ink); }

/* -------- Plan OMAD (v3) — grand, aéré, lisible pour tout âge -------- */
.omad-plan { display: grid; gap: 26px; margin-bottom: 48px; }
.omad-day { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow-card); }
.omad-day__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.omad-day__badge { width: 48px; height: 48px; border-radius: 50%; background: var(--green-tint); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-head-ar); font-weight: 800; font-size: 19px; flex-shrink: 0; }
.omad-day__label { font-family: var(--font-head-ar); font-weight: 800; color: var(--ink); font-size: 18px; }
html[lang="fr"] .omad-day__label { font-family: var(--font-head-fr); }
.omad-day__totals { margin-inline-start: auto; text-align: end; }
.omad-day__totals b { font-size: 22px; color: var(--green-dark); font-family: var(--font-head-ar); }
html[lang="fr"] .omad-day__totals b { font-family: var(--font-head-fr); }
.omad-day__totals small { display: block; font-size: 14px; color: var(--ink-faint); margin-top: 3px; }
.omad-day__warning { background: #fdf3e0; border: 1px solid #f0c98a; color: #8a5a10; border-radius: var(--radius); padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }

.omad-day__components { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.omad-comp { background: var(--green-tint); border-radius: var(--radius); padding: 20px; cursor: pointer; transition: box-shadow .2s var(--ease), transform .2s var(--ease); border: 2px solid transparent; overflow: hidden; }
.omad-comp:hover, .omad-comp:focus-visible { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); border-color: var(--green); }
.omad-comp__photo { width: calc(100% + 40px); margin: -20px -20px 14px; aspect-ratio: 16/10; background: var(--ink-faint); }
.omad-comp__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.omad-comp__photo--placeholder { display: flex; align-items: center; justify-content: center; font-size: 38px; background: #e4ebe0; }
.omad-comp__role { display: block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--green-dark); margin-bottom: 8px; }
.omad-comp__name { display: block; font-weight: 700; font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.omad-comp__kcal { display: block; font-size: 15px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.omad-comp__macros { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.omad-comp__swap { width: 100%; justify-content: center; font-size: 14.5px; padding: 12px 16px; background: #fff; }

.omad-day__toggles { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.omad-day__toggle { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.omad-day__toggle input { width: 20px; height: 20px; accent-color: var(--green); cursor: pointer; }
.omad-day__actions { margin-top: 16px; }
.omad-day__swap-all { width: 100%; justify-content: center; font-size: 14.5px; padding: 12px 16px; }
.omad-day__hint { font-size: 13px; color: var(--ink-faint); margin: 14px 0 0; text-align: center; }

.omad-modal-overlay { position: fixed; inset: 0; background: rgba(27,29,23,.6); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 200; }
.omad-modal-overlay[hidden] { display: none; }
.omad-modal { background: #fff; border-radius: var(--radius-lg); max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-soft); }
.omad-modal__close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 18px; cursor: pointer; z-index: 2; }
.omad-modal__close:hover { background: var(--ink); color: #fff; }
.omad-modal__body { padding: 28px; }
.omad-modal__photo { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: var(--green-tint); }
.omad-modal__photo img { width: 100%; height: 100%; object-fit: cover; }
.omad-modal__photo--placeholder { display: flex; align-items: center; justify-content: center; font-size: 48px; }
.omad-modal__role { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--green-dark); margin-bottom: 6px; }
.omad-modal__body h3 { font-size: clamp(22px, 3.5vw, 28px); margin-bottom: 16px; }
.omad-modal__macros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.omad-modal__macros span { background: var(--green-tint); border-radius: var(--radius-pill); padding: 8px 16px; font-size: 14px; color: var(--ink-soft); }
.omad-modal__macros b { color: var(--ink); }
.omad-modal__body h4 { font-size: 16px; margin: 20px 0 10px; }
.omad-modal__body ul, .omad-modal__body ol { padding-inline-start: 22px; font-size: 15px; line-height: 1.9; color: var(--ink-soft); }
.omad-modal__body li { margin-bottom: 6px; }

/* -------- Choisir soi-meme sa recette pour un jour -------- */
.recipe-card__addday { width: 100%; justify-content: center; font-size: 15px; padding: 13px 16px; margin-bottom: 10px; }
body:not(.plan-ready) .recipe-card__addday { display: none; }
.omad-picker__body { padding: 28px; }
.omad-picker__body h3 { font-size: clamp(20px, 3.2vw, 26px); margin-bottom: 20px; }
.omad-picker__title { font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.omad-picker__days { display: grid; gap: 10px; }
.omad-picker__day { display: flex; align-items: center; gap: 14px; width: 100%; text-align: start; background: var(--green-tint); border: 2px solid transparent; border-radius: var(--radius); padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.omad-picker__day:hover, .omad-picker__day:focus-visible { border-color: var(--green); transform: translateY(-2px); }
.omad-picker__daynum { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #fff; color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-head-ar); font-weight: 800; font-size: 17px; }
.omad-picker__daytext { display: block; min-width: 0; flex: 1; }
.omad-picker__daytext b { display: block; font-size: 16px; }
.omad-picker__daytext small { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omad-day.is-just-updated { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint), var(--shadow-card-hover); }
.omad-toast { position: fixed; inset-inline: 16px; bottom: 22px; margin-inline: auto; max-width: 420px; background: var(--ink); color: #fff; border-radius: var(--radius-pill); padding: 14px 22px; text-align: center; font-weight: 700; font-size: 15px; z-index: 300; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.omad-toast.is-visible { opacity: 1; transform: translateY(0); }

/* -------- Catalogue photo (choisir sa recette depuis un jour) -------- */
.omad-comp__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.omad-comp__actions .omad-comp__swap { width: 100%; padding: 12px 8px; font-size: 14px; }
.omad-modal--wide { max-width: 760px; display: flex; flex-direction: column; }
.omad-catalog__head { padding: 22px 16px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.omad-catalog__head h3 { font-size: clamp(20px, 3.2vw, 25px); margin-bottom: 14px; }
.omad-catalog__search { width: 100%; border: 2px solid var(--line); border-radius: var(--radius-pill); padding: 13px 20px; font: inherit; font-size: 16px; background: #fff; }
.omad-catalog__search:focus { outline: none; border-color: var(--green); }
.omad-catalog__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 16px 24px; }
@media (min-width: 560px) {
  .omad-catalog__head { padding: 26px 26px 16px; }
  .omad-catalog__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 20px 26px 28px; }
}
.omad-tile { background: var(--green-tint); border: 2px solid transparent; border-radius: var(--radius); padding: 0 0 12px; cursor: pointer; font: inherit; color: inherit; overflow: hidden; text-align: center; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.omad-tile:hover, .omad-tile:focus-visible { border-color: var(--green); transform: translateY(-2px); }
.omad-tile.is-current { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-tint); }
.omad-tile[hidden] { display: none; }
.omad-tile__photo { display: block; width: 100%; aspect-ratio: 4/3; background: #e4ebe0; margin-bottom: 10px; }
.omad-tile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.omad-tile__ico { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 30px; }
.omad-tile__name { display: block; padding: 0 10px; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.omad-tile__in { display: inline-block; margin-top: 7px; font-size: 11.5px; font-weight: 800; color: var(--green-dark); background: #fff; border-radius: var(--radius-pill); padding: 3px 10px; }
.omad-catalog__empty { text-align: center; color: var(--ink-soft); padding: 0 20px 30px; font-size: 15px; }

/* -------- Liste de courses -------- */
.omad-shopbar { margin-bottom: 22px; }
.omad-shopbar__btn { width: 100%; justify-content: center; }
.omad-shop__body { padding: 26px 20px 24px; }
.omad-shop__body h3 { font-size: clamp(21px, 3.4vw, 27px); margin-bottom: 6px; }
.omad-shop__lede { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
.omad-shop__list { display: grid; gap: 2px; margin-bottom: 22px; }
.omad-shop__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); cursor: pointer; font-size: 16px; }
.omad-shop__item:nth-child(odd) { background: var(--green-tint); }
.omad-shop__item input { width: 21px; height: 21px; flex-shrink: 0; accent-color: var(--green); cursor: pointer; }
.omad-shop__name { flex: 1; min-width: 0; font-weight: 600; }
.omad-shop__qty { flex-shrink: 0; font-family: var(--font-head-ar); font-weight: 800; color: var(--green-dark); }
.omad-shop__item input:checked ~ .omad-shop__name,
.omad-shop__item input:checked ~ .omad-shop__qty { opacity: .4; text-decoration: line-through; }
.omad-shop__copy { justify-content: center; }
@media (min-width: 560px) { .omad-shop__body { padding: 28px; } }

/* -------- Utility -------- */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.stack-gap { display: grid; gap: 14px; }
.visually-hidden { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
