/* =====================================================================
   Lagree Society — Quiz nutrition
   Charte extraite de lagree-society.com (thème Shopify) :
   Inter (titres 600, sous-titres 500), encre #1C1C1C, or #C9A96E,
   fond #F5F4F2, sable #C4AC94 (fond du logo), terracotta des murs du studio.
   ===================================================================== */
@font-face { font-family: 'Inter'; src: url('../assets/fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/InterVariable-Italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --ink: #1c1c1c;
  --ink-2: #3a3734;
  --muted: #6b655f;          /* 5.3:1 sur --bg */
  --bg: #f5f4f2;
  --paper: #ffffff;
  --line: #e6e2dc;
  --gold: #c9a96e;           /* décoratif */
  --gold-ink: #7d6132;       /* or lisible (AA) sur fond clair */
  --sand: #c4ac94;
  --sand-soft: #ede4da;
  --terra: #8c4f3f;
  --ok: #3f6b4f; --ok-bg: #e8f0ea;
  --mid: #7d6132; --mid-bg: #f6efe1;
  --warn: #9a3f2c; --warn-bg: #f8e9e4;
  --p: #1c1c1c; --c: #c4ac94; --f: #c9a96e;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --shadow: 0 1px 2px rgba(28,28,28,.04), 0 8px 24px rgba(28,28,28,.06);
  --shadow-lg: 0 24px 60px rgba(28,28,28,.14);
  --ease: cubic-bezier(.2,.7,.2,1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif; font-feature-settings: 'cv11', 'ss01'; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 6px; }
h1:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Typo ---------- */
.kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 10px; }
.kicker--light { color: rgba(255,255,255,.82); }
.kicker--gold { color: var(--gold); }
.q-title { font-size: clamp(26px, 6.6vw, 34px); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; margin: 0 0 10px; text-wrap: balance; }
.q-sub { color: var(--muted); margin: 0; font-size: 15.5px; text-wrap: pretty; }
.h2 { font-size: clamp(23px, 5vw, 30px); line-height: 1.15; letter-spacing: -.022em; font-weight: 600; margin: 0 0 18px; text-wrap: balance; }
.h3 { font-size: 19px; line-height: 1.3; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.h4 { font-size: 16px; line-height: 1.35; font-weight: 600; margin: 0 0 6px; letter-spacing: -.005em; }
.h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
em { font-style: italic; color: var(--gold); font-weight: 500; }
.lead { color: var(--ink-2); margin: -6px 0 18px; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.note { font-size: 14px; color: var(--ink-2); }

/* ---------- Layout ---------- */
.stage { min-height: 100dvh; outline: none; }
.screen { max-width: 600px; margin: 0 auto; padding: 0 20px; }
body[data-type="welcome"] .screen, body[data-type="language"] .screen, body[data-type="results"] .screen, body[data-type="thanks"] .screen { max-width: none; padding: 0; }
body.has-actionbar .screen { padding-bottom: calc(120px + var(--safe-b)); }
.screen.enter { animation: in .45s var(--ease) both; }
.screen.enter-back { animation: inBack .45s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes inBack { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; padding: 0 8px; background: rgba(245,244,242,.9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.topbar__logo { justify-self: center; height: 26px; width: auto; }
.topbar > .icon-btn { justify-self: start; }
.topbar__right { justify-self: end; display: flex; align-items: center; gap: 6px; }
.topbar__count { white-space: nowrap; padding-right: 2px; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover { background: rgba(28,28,28,.06); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body[data-step="firstName"] #backBtn { visibility: visible; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--ink), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease); }

/* ---------- Questions ---------- */
.q { padding-top: 28px; }
.q-head { margin-bottom: 26px; }
.group { margin-bottom: 26px; }
.group-label { font-size: 14.5px; font-weight: 600; margin: 0 0 12px; color: var(--ink); }
.field-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; min-height: 1em; }
.opts { display: grid; gap: 10px; }
.opts--wrap { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.opts--scale { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 14px 18px; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.opt:hover { border-color: #cfc8bf; }
.opt:active { transform: scale(.985); }
.opt.is-on { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(28,28,28,.18); }
.opt.is-on .opt__d { color: rgba(255,255,255,.72); }
.opt__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--sand-soft); color: var(--ink); transition: background .2s, color .2s; }
.opt.is-on .opt__icon { background: rgba(255,255,255,.12); color: var(--gold); }
.opt__txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.opt__l { font-weight: 550; font-size: 15.5px; line-height: 1.3; }
.opt__d { font-size: 13px; color: var(--muted); line-height: 1.35; }
.opt__check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; transition: all .2s; }
.opt__check .ico { width: 14px; height: 14px; stroke-width: 2.2; opacity: 0; transform: scale(.6); transition: all .2s; }
.opt.is-on .opt__check { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.opt.is-on .opt__check .ico { opacity: 1; transform: none; }
.opts--scale .opt { flex-direction: column; justify-content: center; gap: 2px; padding: 12px 4px; min-height: 64px; text-align: center; }
.opts--scale .opt__txt { align-items: center; }
.opts--scale .opt__l { font-size: 18px; font-variant-numeric: tabular-nums; }
.opts--scale .opt__d { font-size: 10.5px; white-space: nowrap; }
.opts--wrap .opt { justify-content: center; text-align: center; min-height: 52px; padding: 12px; }
.opts--wrap .opt__txt { align-items: center; }
.opts--wrap .opt__check { display: none; }
.group .opts:not(.opts--cards):not(.opts--scale):not(.opts--wrap) { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.group .opts:not(.opts--cards):not(.opts--scale):not(.opts--wrap) .opt { justify-content: center; text-align: center; padding: 12px 10px; }
.group .opts:not(.opts--cards):not(.opts--scale):not(.opts--wrap) .opt__txt { align-items: center; }
.group .opts:not(.opts--cards):not(.opts--scale):not(.opts--wrap) .opt__check { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; }
.group .opts[role=group] .opt { padding-right: 30px; padding-left: 30px; }

/* Fields */
.field { display: block; }
.field__l { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.input { width: 100%; height: 58px; padding: 0 18px; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(201,169,110,.25); }
.input[aria-invalid=true] { border-color: var(--warn); }
.input--xl { height: 68px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.input::placeholder { color: #a8a199; }
.field-err { color: var(--warn); font-size: 13.5px; margin: 8px 0 0; min-height: 1.2em; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 14px 0 0; cursor: pointer; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 24px; height: 24px; flex: none; border: 1.5px solid #bdb5ab; border-radius: 7px; background: var(--paper); display: grid; place-items: center; transition: all .2s; margin-top: 1px; }
.check__box .ico { width: 15px; height: 15px; stroke-width: 2.4; opacity: 0; }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.check input:checked + .check__box .ico { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.check a { color: var(--gold-ink); }
#emailForm .btn { margin-top: 26px; }

/* Stepper / range */
.card { background: var(--paper); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.card--soft { box-shadow: none; border: 1px solid var(--line); margin-bottom: 14px; }
.stepper__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.stepper__label { font-weight: 600; font-size: 14.5px; }
.stepper__val { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper__val b { font-size: 34px; font-weight: 600; color: var(--ink); letter-spacing: -.03em; }
.stepper__row { display: flex; align-items: center; gap: 12px; }
.stepper__scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); padding: 6px 56px 0; font-variant-numeric: tabular-nums; }
.round-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 22px; line-height: 1; display: grid; place-items: center; transition: all .15s; }
.round-btn:hover { border-color: var(--ink); }
.round-btn:active { transform: scale(.92); background: var(--sand-soft); }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 44px; background: transparent; --fill: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--fill), var(--line) var(--fill)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 4px 12px rgba(28,28,28,.2); transition: transform .15s; }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(201,169,110,.35); }
.target-line { margin: 16px 0 0; font-size: 15px; }
.target-line b { font-size: 17px; }

/* Silhouettes */
.sils { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sil-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); font-size: 11.5px; font-weight: 500; line-height: 1.2; text-align: center; transition: all .2s; }
.sil { width: 100%; max-width: 54px; height: auto; fill: var(--sand); transition: fill .2s; }
.sil-opt.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.sil-opt.is-on .sil { fill: var(--gold); }

/* Realism */
.realism { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: 14.5px; line-height: 1.45; margin: 18px 0 0; animation: in .35s var(--ease); }
.realism .ico { margin-top: 1px; }
.realism--ok { background: var(--ok-bg); color: var(--ok); }
.realism--mid { background: var(--mid-bg); color: var(--mid); }
.realism--warn { background: var(--warn-bg); color: var(--warn); }
.realism b { font-weight: 600; }
.sec .realism { margin: 0 0 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 28px; border-radius: 999px; border: 0; font-weight: 600; font-size: 15px; letter-spacing: .02em; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.btn .ico { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(28,28,28,.22); }
.btn--primary:hover { background: #000; }
.btn--primary:disabled { background: #cfc9c1; color: #fff; box-shadow: none; cursor: not-allowed; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg); }
.btn--lg { height: 58px; font-size: 15.5px; padding: 0 32px; }
.btn--block { width: 100%; }
.btn.is-loading { opacity: .8; }
.link { background: none; border: 0; padding: 12px 4px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; display: inline-block; margin-top: 14px; }
.link--light { color: rgba(255,255,255,.85); }
.actionbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 14px 20px calc(14px + var(--safe-b)); background: linear-gradient(180deg, rgba(245,244,242,0), var(--bg) 30%); }
.actionbar .btn { max-width: 560px; margin: 0 auto; display: flex; }

/* ---------- Welcome & Thanks ---------- */
.welcome, .thanks { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.welcome__media, .thanks__media { position: absolute; inset: 0; }
.welcome__media img, .thanks__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: kb 14s ease-out both; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.welcome__media::after, .thanks__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,28,28,.25) 0%, rgba(28,28,28,.35) 35%, rgba(28,28,28,.9) 78%, #1c1c1c 100%); }
.welcome__inner, .thanks__inner { position: relative; width: 100%; max-width: 600px; margin: 0 auto; padding: 32px 24px calc(36px + var(--safe-b)); }
.welcome__logo { width: 112px; height: auto; margin-bottom: 26vh; opacity: .95; }
.thanks__inner img { width: 104px; height: auto; margin-bottom: 22vh; }
.welcome__title { font-size: clamp(36px, 10vw, 54px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 0 0 16px; text-wrap: balance; }
.welcome__lead { font-size: 16.5px; color: rgba(255,255,255,.86); margin: 0 0 22px; max-width: 34em; }
.welcome__points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,.9); }
.welcome__points li { display: flex; gap: 12px; align-items: center; }
.welcome__points .ico { color: var(--gold); width: 20px; height: 20px; }
.welcome__fine { font-size: 12px; color: rgba(255,255,255,.6); margin: 18px 0 0; }
.welcome .btn, .thanks .btn { width: 100%; max-width: 420px; }
.thanks__links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Analyzing ---------- */
.analyzing { min-height: 80dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 0; }
.loader { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin 1s linear infinite; margin-bottom: 30px; }
@keyframes spin { to { transform: rotate(360deg); } }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; text-align: left; }
.checklist li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); opacity: 0; animation: in .4s var(--ease) forwards; animation-delay: var(--d); }
.checklist .ico { color: var(--ok); width: 20px; height: 20px; stroke-width: 2; }

/* ---------- Minor ---------- */
.badge-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--sand-soft); display: grid; place-items: center; margin: 20px auto 22px; color: var(--terra); }
.q.center .btn { margin-top: 28px; }

/* ---------- Results ---------- */
.res-hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.res-hero__media { position: absolute; inset: 0; }
.res-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.res-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,28,28,.35), rgba(28,28,28,.85)); }
.res-hero__inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 28px 22px 80px; }
.res-hero__logo { width: 92px; height: auto; margin-bottom: 64px; }
.res-hero__title { font-size: clamp(32px, 8vw, 52px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; margin: 0 0 18px; max-width: 14em; text-wrap: balance; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); }
.res-body { max-width: 1080px; margin: 0 auto; padding: 0 18px 120px; }
.sec { margin-top: 56px; }
.sec--first { margin-top: -48px; position: relative; display: grid; gap: 14px; }
.card--ink { background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); padding: 28px 24px; }
.kpi-main__val { font-size: clamp(56px, 15vw, 84px); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
.kpi-main__val small { font-size: 16px; letter-spacing: 0; font-weight: 500; color: rgba(255,255,255,.65); }
.kpi-main__sub { color: rgba(255,255,255,.78); margin: 0 0 22px; max-width: 36em; font-size: 15px; }
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
.kpi-row__l { display: block; font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.kpi-row__v { display: block; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--mid-bg); color: var(--ink-2); font-size: 14.5px; }
.alert p { margin: 0; }
.alert .ico { color: var(--gold-ink); margin-top: 2px; }
.alert--soft { background: var(--paper); box-shadow: var(--shadow); padding: 24px; }
.alert--soft .ico { color: var(--terra); width: 28px; height: 28px; }
.alert--soft p { color: var(--ink-2); }

.macros { display: grid; gap: 22px; align-items: center; margin-bottom: 14px; }
.macros__chart { position: relative; width: 190px; height: 190px; margin: 0 auto; }
.donut { width: 100%; height: 100%; }
.donut__bg { fill: none; stroke: var(--bg); stroke-width: 18; }
.donut__seg { fill: none; stroke-width: 18; stroke-linecap: butt; animation: draw 1.1s var(--ease) both; }
.donut__seg.p { stroke: var(--p); } .donut__seg.c { stroke: var(--c); } .donut__seg.f { stroke: var(--f); }
@keyframes draw { from { stroke-dasharray: 0 999; } }
.macros__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.macros__center b { font-size: 30px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.macros__center span { font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.macros__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.macro__top { display: flex; align-items: center; gap: 10px; }
.macro__dot { width: 10px; height: 10px; border-radius: 50%; }
.macro--p .macro__dot, .macro--p .macro__bar span { background: var(--p); }
.macro--c .macro__dot, .macro--c .macro__bar span { background: var(--c); }
.macro--f .macro__dot, .macro--f .macro__bar span { background: var(--f); }
.macro__l { font-weight: 600; flex: 1; }
.macro__g { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.macro__g b { color: var(--ink); font-size: 18px; font-weight: 600; }
.macro__bar { height: 6px; background: var(--bg); border-radius: 6px; margin: 8px 0 6px; overflow: hidden; }
.macro__bar span { display: block; height: 100%; width: var(--w); border-radius: 6px; animation: grow 1s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.macro__d { font-size: 13px; color: var(--muted); }
.grid-2, .grid-3 { display: grid; gap: 14px; }
.mini { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.mini .ico { color: var(--gold-ink); margin-bottom: 6px; }
.mini__v { font-size: 28px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mini__l { font-size: 13px; color: var(--muted); line-height: 1.4; }

.tl-chart { width: 100%; height: auto; margin-bottom: 8px; overflow: visible; }
.tl-chart__area { fill: url(#none); fill: rgba(201,169,110,.14); }
.tl-chart__line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; animation: line 1.4s var(--ease) both; }
@keyframes line { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
.tl-chart__dot { fill: var(--paper); stroke: var(--gold-ink); stroke-width: 2; }
.tl-chart__lbl { font-size: 11px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.tl-chart__wk { font-size: 10px; fill: var(--muted); }
.milestones { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; }
.milestones li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.milestones__w { font-weight: 600; color: var(--gold-ink); font-size: 13px; letter-spacing: .02em; padding-top: 1px; }

.lagree { display: grid; padding: 0; overflow: hidden; background: var(--ink); color: #fff; }
.lagree__media { height: 200px; position: relative; }
.lagree__media img { width: 100%; height: 100%; object-fit: cover; }
.lagree__body { padding: 26px 24px 28px; }
.lagree__body p { color: rgba(255,255,255,.82); font-size: 15px; }
.lagree__n { font-size: 20px; margin: 0 0 14px; color: #fff !important; }
.lagree__n b { font-size: 54px; font-weight: 600; letter-spacing: -.04em; margin-right: 6px; }
.lagree__extra { font-size: 14px !important; border-left: 2px solid var(--gold); padding-left: 12px; }
.lagree .btn { margin-top: 10px; }
.week { display: flex; gap: 6px; margin: 0 0 18px; }
.week__d { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.55); }
.week__d.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.tip { display: flex; gap: 16px; align-items: flex-start; }
.tip > .ico { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--sand-soft); color: var(--ink); }
.tip p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.tip--plain { border-top: 3px solid var(--gold); }

.day { padding: 8px 22px; }
.day__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.day__row:last-child { border-bottom: 0; }
.day__name { display: block; font-weight: 600; }
.day__ex { display: block; font-size: 13.5px; color: var(--muted); }
.day__nums { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.day__nums b { font-size: 18px; color: var(--ink); font-weight: 600; }
.day__nums span { display: block; font-size: 12px; }
.day__bar { grid-column: 1 / -1; height: 4px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.day__bar span { display: block; height: 100%; width: var(--w); max-width: 100%; background: linear-gradient(90deg, var(--sand), var(--gold)); border-radius: 4px; animation: grow 1s var(--ease) both; transform-origin: left; }

.box { display: flex; flex-direction: column; }
.box .h4 { min-height: 2.7em; }
.ing { list-style: none; padding: 0; margin: 0; }
.ing li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.ing li b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.box__m { margin: auto 0 0; padding-top: 14px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.swaps { margin-top: 14px; }
.tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 7px 12px; border-radius: 999px; background: var(--bg); }
.tags b { font-weight: 600; margin-left: 4px; }

.recipes { display: grid; gap: 12px; }
.recipe { padding: 0; overflow: hidden; }
.recipe summary { list-style: none; cursor: pointer; padding: 20px 22px; display: grid; gap: 6px; position: relative; }
.recipe summary::-webkit-details-marker { display: none; }
.recipe__meta { display: flex; gap: 8px; }
.pill { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.pill--ghost { background: var(--bg); color: var(--ink-2); }
.pill .ico { width: 12px; height: 12px; }
.recipe__name { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin-top: 4px; }
.recipe__tag { font-size: 13px; color: var(--gold-ink); font-style: italic; }
.recipe__macros { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.recipe__macros b { color: var(--ink); }
.recipe__more { font-size: 13px; font-weight: 600; margin-top: 6px; text-decoration: underline; text-underline-offset: 4px; }
.recipe[open] .recipe__more { display: none; }
.recipe__body { padding: 0 22px 22px; display: grid; gap: 20px; animation: in .35s var(--ease); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }

.plate { display: grid; gap: 22px; align-items: center; }
.plate__svg { width: 200px; margin: 0 auto; }
.plate__rim { fill: var(--paper); stroke: var(--line); stroke-width: 2; }
.plate__veg { fill: #a7b59a; } .plate__prot { fill: var(--ink); } .plate__carb { fill: var(--sand); }
.plate__legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14.5px; }
.plate__legend li { display: flex; gap: 12px; align-items: flex-start; }
.sw { width: 14px; height: 14px; border-radius: 4px; flex: none; margin-top: 4px; }
.sw--veg { background: #a7b59a; } .sw--prot { background: var(--ink); } .sw--carb { background: var(--sand); } .sw--fat { background: var(--gold); }

.cta-sec { margin-top: 64px; }
.card--sand { background: var(--sand-soft); box-shadow: none; text-align: center; padding: 40px 24px; }
.card--sand p { color: var(--ink-2); max-width: 32em; margin: 0 auto 24px; }
.disclaimer { margin-top: 40px; font-size: 12.5px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 24px; }
.disclaimer__brand { margin-top: 12px; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; }
.sticky-cta { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 12px 18px calc(12px + var(--safe-b)); background: linear-gradient(180deg, rgba(245,244,242,0), var(--bg) 35%); transform: translateY(0); }
.sticky-cta .btn { max-width: 480px; margin: 0 auto; display: flex; }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .q { padding-top: 56px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .recipes { grid-template-columns: 1fr 1fr; align-items: start; }
  .recipe__body { grid-template-columns: 1fr; }
  .macros { grid-template-columns: 220px 1fr; padding: 30px 34px; gap: 40px; }
  .macros__chart { width: 210px; height: 210px; }
  .plate { grid-template-columns: 220px 1fr; padding: 30px; }
  .lagree { grid-template-columns: 1fr 1.15fr; }
  .lagree__media { height: auto; min-height: 100%; }
  .lagree__body { padding: 40px 40px 40px; }
  .card--ink { padding: 36px 40px; }
  .sec--first { grid-template-columns: 1fr; }
  .welcome__inner, .thanks__inner { padding-bottom: 64px; }
  .welcome__logo { margin-bottom: 20vh; }
  .res-hero__inner { padding: 36px 32px 110px; }
  .res-body { padding: 0 32px 140px; }
  .sec--first { margin-top: -72px; }
  .topbar { padding: 0 20px; }
  .opts--even { grid-template-columns: 1fr 1fr; }
  .opts--cards .opt { min-height: 80px; }
}
@media (min-width: 1024px) {
  .welcome { align-items: center; }
  .welcome__inner { max-width: 1080px; padding-left: 48px; }
  .welcome__inner > *:not(.welcome__logo) { max-width: 560px; }
  .welcome__logo { margin: 0 0 56px; width: 120px; }
  .welcome__media::after { background: linear-gradient(90deg, rgba(28,28,28,.92) 0%, rgba(28,28,28,.7) 42%, rgba(28,28,28,.15) 100%); }
  .thanks { align-items: center; }
  .thanks__inner img { margin-bottom: 48px; }
  .sticky-cta { display: none; }
  .day { padding: 8px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .checklist li { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* --- itération 2 --- */
.opts--seg { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.opts--seg .opt { justify-content: center; text-align: center; padding: 10px 4px; min-height: 52px; }
.opts--seg .opt__txt { align-items: center; }
.opts--seg .opt__l { font-size: 14px; }
.minis { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; }
.minis .mini { padding: 16px 12px; text-align: center; align-items: center; }
.minis .mini .ico { margin-bottom: 2px; }
.minis .mini__v { font-size: 24px; }
.minis .mini__l { font-size: 12px; }
.sticky-cta { transition: transform .35s var(--ease), opacity .35s; }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.restart { display: block; margin: 18px auto 0; }

.tl-wrap { display: grid; gap: 8px; }
.tl-chart { max-width: 560px; margin: 0 auto 8px; }
.kpi-grid { display: grid; gap: 22px; }
.kpi-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi-macros div { border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px 12px; text-align: center; }
.kpi-macros b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-macros span { font-size: 11.5px; color: rgba(255,255,255,.62); letter-spacing: .08em; text-transform: uppercase; }
.kpi-macros i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
@media (min-width: 900px) {
  .tl-wrap { grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
  .kpi-grid { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; }
  .kpi-grid .kpi-row { grid-column: 1 / -1; }
}

.toc { position: sticky; top: 0; z-index: 15; margin: 18px -18px 0; padding: 10px 18px; background: rgba(245,244,242,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-x: auto; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; white-space: nowrap; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: all .2s; }
.toc a:hover { border-color: var(--ink); }
.sec[id] { scroll-margin-top: 76px; }
html { scroll-behavior: smooth; }
@media (min-width: 720px) { .toc { margin: 22px -32px 0; padding: 12px 32px; } .toc ul { justify-content: center; } }

/* Panneau photo latéral sur grand écran (questions) */
@media (min-width: 1100px) {
  body.is-q .stage, body.is-q .topbar, body.is-q .actionbar { margin-right: 42vw; }
  body.is-q .actionbar { right: 42vw; margin-right: 0; }
  body.is-q::after { content: ''; position: fixed; top: 0; right: 0; bottom: 0; width: 42vw; background: var(--side-img, url("../assets/img/terrace.jpg")) center / cover no-repeat; transition: background-image .6s; }
  body.is-q::before { content: ''; position: fixed; z-index: 1; top: 0; right: 0; bottom: 0; width: 42vw; background: linear-gradient(180deg, rgba(28,28,28,0) 55%, rgba(28,28,28,.55)); pointer-events: none; }
  body.is-q .q { padding-top: 9vh; }
}
.field-err:empty { min-height: 0; margin: 0; }
.kpi-macros span { display: block; white-space: nowrap; font-size: 10.5px; letter-spacing: .06em; margin-top: 2px; }
@media (max-width: 380px) { .kpi-macros b { font-size: 19px; } .kpi-macros span { font-size: 9.5px; } }


/* ================= v2 ================= */
/* Langue : sélecteur barre du haut */
.topbar__lang select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231c1c1c' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 8px center / 8px; border: 1px solid var(--line); border-radius: 999px; height: 32px; padding: 0 22px 0 10px; cursor: pointer; }
.topbar__lang select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Langue : interrupteur segmenté (accueil, résultats, e-mail, merci) */
.lang-sw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.lang-sw button { font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .06em; min-width: 40px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.lang-sw button.is-on { background: var(--ink); color: #fff; }
.lang-sw--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang-sw--light button { color: rgba(255,255,255,.85); }
.lang-sw--light button.is-on { background: #fff; color: var(--ink); }
.lang-sw button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.welcome__top, .res-hero__top { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; z-index: 3; }
.email-lang { margin-top: 18px; }
/* Écran de choix de langue */
.lang-title { display: grid; gap: 2px; }
.lang-title span:not(:first-child) { font-size: .62em; font-weight: 500; opacity: .72; }
.lang-pick { display: grid; gap: 10px; margin: 22px 0 6px; max-width: 420px; }
.lang-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 0 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; text-align: left; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, border-color .2s, transform .15s; }
.lang-opt:hover { background: rgba(255,255,255,.16); }
.lang-opt:active { transform: scale(.985); }
.lang-opt.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.lang-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lang-opt__flag svg { display: block; width: 28px; height: 19px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-opt__name { flex: 1; }
.lang-opt .lang-opt__go { width: 18px; height: 18px; opacity: .55; }
.lang-opt.is-on .lang-opt__go { opacity: 1; }

/* Pastilles */
.pill--gold { background: var(--gold); color: var(--ink); }
.pill--terra { background: var(--terra); color: #fff; }
.pill--studio { background: var(--sand-soft); color: var(--gold-ink); letter-spacing: .04em; text-transform: none; font-size: 11.5px; }

/* Hormones & bien-être (accordéon) */
.hcards { display: grid; gap: 12px; }
.hcard { padding: 0; overflow: hidden; }
.hcard summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 18px 20px; min-height: 64px; }
.hcard summary::-webkit-details-marker { display: none; }
.hcard summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: var(--r-lg); }
.hcard__ico .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--sand-soft); color: var(--terra); }
.hcard__head { display: grid; gap: 2px; }
.hcard__t { font-weight: 600; font-size: 16px; }
.hcard__s { font-size: 13.5px; color: var(--muted); }
.hcard__chev { width: 10px; height: 10px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: rotate(45deg); margin: 0 4px 4px; transition: transform .25s var(--ease); }
.hcard[open] .hcard__chev { transform: rotate(225deg); margin-bottom: -2px; }
.hcard__body { padding: 0 20px 20px 74px; }
.hcard__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hcard__list li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--ink-2); }
.hcard__list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hcard__note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 13.5px; color: var(--ink-2); }
.hcard__note .ico { width: 18px; height: 18px; flex: none; color: var(--gold-ink); margin-top: 1px; }
@media (max-width: 520px) { .hcard__body { padding-left: 20px; } .hcard summary { gap: 12px; padding: 16px; } .hcard summary .pill { grid-column: 2; grid-row: 2; justify-self: start; } .hcard__chev { grid-row: 1; grid-column: 3; } }

/* Journée type : vignettes */
.day__meal { display: flex; align-items: center; gap: 12px; min-width: 0; }
.day__img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; background: var(--sand-soft); }
.day__ex .pill { vertical-align: 1px; margin-left: 4px; }
.day__mac { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.day__meal > div { min-width: 0; }
.detail-title { margin: 34px 0 6px; }
.detail { padding: 0; overflow: hidden; }
.dtabs { display: flex; gap: 6px; padding: 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.dtabs::-webkit-scrollbar { display: none; }
.dtab { flex: none; font: inherit; font-size: 14px; font-weight: 500; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.dtab.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dtab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dpanel { padding: 18px; }
.dpanel__head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.dpanel__head .kicker { margin: 0 0 4px; }
.dpanel__head .h3 { margin: 0 0 4px; }
.dpanel__img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex: none; background: var(--sand-soft); }
.dpanel__target { margin: 0; font-size: 13px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.mtable { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mt-qty { display: none; }
.mtable th, .mtable td { padding: 9px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mtable th:first-child, .mtable td:first-child { text-align: left; }
.mtable tbody th { font-weight: 500; white-space: normal; min-width: 150px; }
.mtable thead th { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mtable td small { color: var(--muted); }
.mtable tfoot th, .mtable tfoot td { font-weight: 600; border-bottom: 0; }
.mtable tfoot tr:first-child th, .mtable tfoot tr:first-child td { border-top: 1.5px solid var(--ink); }
.mtable__tg th, .mtable__tg td { font-weight: 500 !important; color: var(--gold-ink); font-size: 12.5px; padding-top: 2px; }
@media (max-width: 560px) { .mtable { font-size: 13px; } .mtable .c-qty { display: none; } .mt-qty { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; } .mtable th, .mtable td { padding: 8px 4px; } .mtable tbody th { min-width: 0; white-space: normal; } }
.dtot { margin-top: 14px; display: grid; gap: 10px; }
.dtot .h4 { margin: 0 0 4px; }
.dtot__row { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 12px; font-size: 13.5px; }
.dtot__l { color: var(--ink-2); }
.dtot__bar { height: 6px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.dtot__bar span { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--gold); }
.dtot__bar span.ok { background: var(--ok, #5b8a63); }
.dtot__v { font-variant-numeric: tabular-nums; color: var(--muted); }
.dtot__v b { color: var(--ink); }
.dtot .fine { margin: 4px 0 0; }

/* Recettes : vignettes */
.recipe summary { grid-template-columns: 84px 1fr; align-items: start; gap: 16px; }
.recipe__img { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; background: var(--sand-soft); }
.recipe__sum { display: grid; gap: 6px; min-width: 0; }
.recipe__meta { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 720px) { .recipe summary { grid-template-columns: 112px 1fr; } .recipe__img { width: 112px; height: 112px; } }

/* Meal prep : photo */
.box__img { width: calc(100% + 44px); height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: -22px -22px 16px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--sand-soft); }

/* Shakes */
.studio-banner { display: flex; gap: 16px; align-items: center; margin: 4px 0 16px; padding: 20px 22px; }
.studio-banner > .ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: rgba(201,169,110,.18); color: var(--gold); flex: none; }
.studio-banner p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,.88); }
.studio-banner .kicker { margin-bottom: 4px; }

/* Compléments */
.supps { margin-bottom: 14px; }
.supp { display: flex; flex-direction: column; gap: 6px; }
.supp__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.supp__top > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--sand-soft); color: var(--ink); }
.supp .h4 { margin: 0; }
.supp__dose { margin: 0; font-size: 13px; font-weight: 600; color: var(--gold-ink); }
.supp p:last-child { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.alert--caveat { background: var(--sand-soft); }
.alert--caveat ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.alert--caveat p { margin: 0; }

/* ---------- Guide ouvert depuis l'e-mail ---------- */
.guide-msg { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 40px 24px; text-align: center; }

/* ---------- Enregistrer en PDF (impression du guide) ---------- */
@media print {
  @page { margin: 14mm 12mm; }
  html, body { background: #fff !important; }
  .topbar, .actionbar, .sticky-cta, .toc, .lang-sw, .res-hero__top, .cta-sec, .restart, .skip, [role=tablist] { display: none !important; }
  .dpanel[hidden] { display: block !important; }
  .dpanel { break-inside: avoid; margin-bottom: 18px; }
  .tip, .hcard, .recipe, .macro, .milestones li, .plate { break-inside: avoid; }
  .h2, .kicker { break-after: avoid; }
  .res-hero { min-height: 0 !important; }
  * { animation: none !important; transition: none !important; }
  a[href]::after { content: none !important; }
  .results { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
