/* Foostr — feuille de styles
   Construite sur le système de design « Foostr » : l'étiquette verte à la
   toque, Nunito, les verts de marque, la tomate pour les promos, la moutarde
   pour les mises en avant, fond crème. Les noms de variables reprennent ses tokens. */

:root {
  color-scheme: light;
  /* Couleurs (tokens.json, thème clair) */
  /* Palette chaude, harmonisée d'après Romi et Jow : fond crème, carotte
     (couleur de marque), beurre (mise en avant), expresso (texte, fonds
     sombres), tomate pour les rabais, persil seulement en petite touche. */
  --surface: #fbf5ec;
  --surface-raised: #ffffff;
  --ink: #2b211b;
  --ink-muted: #6e5e54;
  --line: #efe3d3;
  --brand: #f07a2a;
  --brand-strong: #b8501a;
  --on-brand: #ffffff;
  --brand-soft: #fde7d4;
  --forest: #2b211b;
  --on-forest: #fbf5ec;
  --leaf-light: #f6b37e;
  --carrot: #f07a2a;
  --carrot-strong: #b8501a;
  --carrot-soft: #fde7d4;
  --persil: #3f7f32;
  --persil-soft: #e4efdc;
  --tomato: #e5533d;
  --tomato-strong: #c2402c;
  --on-tomato: #ffffff;
  --tomato-soft: #fce3de;
  --mustard: #f6c453;
  --on-mustard: #2b211b;
  --control-line: #6e5e54;

  /* Typographie */
  --font-sans: Nunito, ui-rounded, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Espacements */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/24px var(--font-sans);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-strong); text-underline-offset: 3px; font-weight: 700; }
a:hover { color: var(--forest); }

:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; border-radius: 4px; }

/* Styles de texte : display, h1, h2, h3 */
h1, h2, h3 { font-family: var(--font-sans); margin: 0 0 var(--space-3); color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 32px); line-height: 38px; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 18px; line-height: 24px; font-weight: 700; }
p { margin: 0 0 var(--space-4); }

.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: var(--surface-raised); padding: 8px 12px; }

.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.note { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); background: var(--brand-soft); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); }
.banner { background: var(--brand-soft); color: var(--ink); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-weight: 700; }
.overline { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Logo (étiquette verte à la pomme + « foostr » au trait) ---------- */
.logo { display: block; height: 36px; width: auto; color: var(--ink); }
.logo-inverse { color: var(--on-forest); }

/* ---------- En-tête ---------- */
.site-header {
  display: flex; align-items: center; gap: var(--space-6);
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
}
.brand { color: var(--ink); flex: none; text-decoration: none; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--brand-strong); text-decoration: underline; text-decoration-thickness: 2px; }
.locale { display: flex; align-items: center; gap: 10px; }
.country { font-size: 1.25rem; line-height: 1; }
.langs { display: flex; border: 1.5px solid var(--line); background: var(--surface-raised); border-radius: var(--radius-pill); padding: 2px; }
.langs a, .langs span { font-size: 12px; line-height: 16px; font-weight: 800; padding: 4px 9px; border-radius: var(--radius-pill); text-decoration: none; color: var(--ink-muted); }
.langs span { background: var(--forest); color: var(--on-forest); }

@media (max-width: 720px) {
  .site-header { flex-wrap: wrap; gap: 12px 16px; }
  .logo { height: 30px; }
  .main-nav { order: 3; width: 100%; margin: 0; gap: 18px; font-size: 15px; }
  .locale { margin-left: auto; }
}

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(48px, 8vw, 88px) 0; }

/* ---------- Boutons (Foostr.Button) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 8px var(--space-6);
  font: 700 16px/24px var(--font-sans); border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--brand-strong); color: var(--on-brand); }
.btn-primary:hover { background: var(--forest); color: var(--on-brand); }
.btn-ghost { background: var(--surface-raised); border-color: var(--brand-strong); color: var(--brand-strong); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
/* Mise en avant (moutarde) : l'abonnement, un seul par écran */
.btn-tag { background: var(--mustard); color: var(--on-mustard); }
.btn-tag:hover { background: var(--carrot); color: var(--on-mustard); }
.btn-link { background: none; color: var(--ink-muted); text-decoration: underline; padding-inline: 4px; min-height: 0; }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions form { margin: 0; }

/* ---------- Étiquette promo (Foostr.PromoTag) ----------
   Seule forme qui porte un rabais : pointe à gauche, trou rond, tomate. */
.tag {
  position: relative; display: inline-flex; align-items: center; justify-self: end;
  height: 28px; padding: 0 10px 0 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  clip-path: polygon(0 50%, 12px 0, 100% 0, 100% 100%, 12px 100%);
  background: var(--tomato-strong); color: var(--on-tomato);
  font: 800 14px/20px var(--font-sans); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tag::before {
  content: ''; position: absolute; left: 12px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--tag-cut, var(--surface-raised));
}
.tag-sm { height: 22px; padding: 0 8px 0 19px; font-size: 12px; line-height: 16px; clip-path: polygon(0 50%, 9px 0, 100% 0, 100% 100%, 9px 100%); }
.tag-sm::before { left: 9px; width: 5px; height: 5px; margin-top: -2.5px; }
.tag-soft { background: var(--brand-soft); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
  padding-top: clamp(24px, 5vw, 64px);
}
.hero h1 { max-width: 14ch; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 46ch; }
.hero .actions { margin-top: var(--space-6); }

.flyer {
  margin: 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6) var(--space-4);
  box-shadow: 0 24px 48px -32px rgba(43, 33, 27, 0.35);
  transform: rotate(1.5deg);
}
.flyer figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--space-3); }
.flyer figcaption strong { font-size: 20px; line-height: 26px; font-weight: 800; }
.flyer figcaption span { color: var(--ink-muted); font-size: 14px; line-height: 20px; font-weight: 600; }
.flyer-meals { list-style: none; margin: 0; padding: 0; }
.flyer-meals li {
  display: grid; grid-template-columns: 3.4em 1fr auto; gap: 12px; align-items: center;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.flyer-day { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.flyer-name { font-weight: 700; line-height: 1.3; }
.flyer-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-top: 6px; padding-top: 18px; border-top: 2px dashed var(--line);
}
.flyer-total span:first-child { display: flex; flex-direction: column; color: var(--ink-muted); font-size: 14px; font-weight: 600; }
.flyer-total b { font-size: 28px; line-height: 32px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.saved { color: var(--brand-strong); font-weight: 800; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .flyer { transform: none; }
}

/* ---------- Étapes ---------- */
.steps ol { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.steps li { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-4);
  border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-strong);
  font-size: 20px; font-weight: 800;
}
.steps p { color: var(--ink-muted); max-width: 34ch; margin: 0; }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ---------- Promos ---------- */
.deals { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.deals-copy p { color: var(--ink-muted); max-width: 44ch; }
.deal-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--surface-raised); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.deal-table th, .deal-table td { padding: 12px var(--space-4); border-bottom: 1px solid var(--line); text-align: left; }
.deal-table tr:last-child th, .deal-table tr:last-child td { border-bottom: 0; }
.deal-table thead th { font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.deal-table tbody th { font-weight: 700; }
.deal-table .num { text-align: right; }
.deal-table td:last-child { text-align: right; width: 1%; }
.deal-table td b { font-weight: 800; }
.strike { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; }
@media (max-width: 860px) { .deals { grid-template-columns: 1fr; } }

/* ---------- Magasins ---------- */
.stores > p:first-of-type { color: var(--ink-muted); }
.store-list { list-style: none; padding: 0; margin: var(--space-6) 0; display: flex; flex-wrap: wrap; gap: 10px; }
.store-list li { border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 8px 16px; font-weight: 700; background: var(--surface-raised); }

/* ---------- Tarif (fond forêt, motif d'étiquettes) ---------- */
.pricing {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px);
  background-color: var(--forest); color: var(--on-forest); border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 72px); margin: clamp(24px, 4vw, 48px) 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg transform='rotate%28-8 24 24%29' fill='%23F07A2A' fill-opacity='.09'%3E%3Cpath d='M10 24 L17 15 H36 Q38 15 38 17 V31 Q38 33 36 33 H17 Z'/%3E%3C/g%3E%3Ccircle cx='17.6' cy='24' r='2.4' fill='%232B211B' transform='rotate%28-8 24 24%29'/%3E%3C/svg%3E");
  background-size: 48px 48px;
}
.pricing h2 { color: var(--on-forest); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.price .amount { font-size: clamp(56px, 9vw, 88px); line-height: 0.95; font-weight: 800; color: var(--leaf-light); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.price .per { font-weight: 700; font-size: 18px; }
.muted-light { color: #d8c8ba; }
.checks { list-style: none; padding: 0; margin: 0 0 var(--space-6); }
.checks li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid rgba(251, 245, 236, 0.16); font-weight: 600; }
.checks li::before {
  content: ''; position: absolute; left: 2px; top: 15px; width: 16px; height: 9px;
  border-left: 3px solid var(--leaf-light); border-bottom: 3px solid var(--leaf-light); border-radius: 1px; transform: rotate(-45deg);
}
.pricing form { margin: 0 0 14px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 var(--space-4); margin-bottom: var(--space-2); }
.faq summary { cursor: pointer; font-size: 18px; line-height: 24px; font-weight: 700; padding: 16px 32px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 800; color: var(--brand-strong); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-muted); max-width: 62ch; }

/* ---------- Pied de page (forêt, logo inversé) ---------- */
.site-footer {
  margin-top: var(--space-12); background: var(--forest); color: var(--on-forest);
}
.site-footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: start;
}
.footer-brand .logo { height: 30px; margin-bottom: 12px; }
.footer-brand p { color: #d8c8ba; margin: 0; font-weight: 600; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--on-forest); }
.site-footer nav a:hover { color: var(--leaf-light); }
.copyright { grid-column: 1 / -1; color: #d8c8ba; font-size: 14px; margin: 0; }
@media (max-width: 640px) { .site-footer-inner { grid-template-columns: 1fr; } }

/* ---------- Pages simples ---------- */
.narrow { max-width: 620px; padding: clamp(32px, 6vw, 72px) 0; }
.stack { display: grid; gap: var(--space-4); max-width: 420px; }
.facts { margin: var(--space-6) 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 var(--space-4); }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--ink-muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; }
.narrow h2 { margin-top: var(--space-12); font-size: 24px; line-height: 30px; }
.plan-history { list-style: none; padding: 0; margin: 0; }
.plan-history li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }

@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; font-size: 14px; line-height: 20px; padding: 0; }
.field small { color: var(--ink-muted); font-size: 14px; }
input[type='email'], input[type='number'], select {
  font: 600 16px/24px var(--font-sans); color: var(--ink); background: var(--surface-raised);
  border: 1.5px solid var(--control-line); border-radius: var(--radius-md); padding: 10px 14px; width: 100%; min-height: 44px;
}
input:focus, select:focus { border-color: var(--brand-strong); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip input, .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 7px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--control-line); background: var(--surface-raised); font-size: 14px; font-weight: 700; cursor: pointer; }
.chip input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.chip input:focus-visible + span, .toggle input:focus-visible + span { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
.toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; font-weight: 600; }
.toggle span { position: relative; padding-left: 52px; min-height: 26px; }
.toggle span::before { content: ''; position: absolute; left: 0; top: 0; width: 42px; height: 24px; border-radius: var(--radius-pill); background: #c9c0b2; transition: background 0.15s; }
.toggle span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.toggle input:checked + span::before { background: var(--brand-strong); }
.toggle input:checked + span::after { transform: translateX(18px); }
.form-error { color: var(--tomato-strong); font-weight: 700; margin: 0; }

/* ==========================================================================
   Parcours client (inspiré de Romi et Jow, aux couleurs de Foostr)
   ========================================================================== */
.ic { display: inline-block; vertical-align: middle; flex: none; }
.btn-sm { min-height: 36px; padding: 4px 14px; font-size: 14px; line-height: 20px; }
.btn-xl { min-height: 64px; width: 100%; flex-direction: column; gap: 0; font-size: 19px; line-height: 24px; font-weight: 800; box-shadow: 0 10px 24px rgba(43, 33, 27, 0.22); }
.btn-xl small { font-size: 13px; font-weight: 700; opacity: 0.85; }
.btn-cta { min-height: 60px; padding: 8px 10px 8px 30px; gap: 18px; font-size: 18px; font-weight: 800; background: var(--forest); color: var(--on-forest); box-shadow: 0 12px 28px rgba(43, 33, 27, 0.24); }
.btn-cta:hover { background: var(--brand-strong); color: #fff; }
.btn-cta.btn-tag { background: var(--mustard); color: var(--on-mustard); box-shadow: none; }
.cta-arrow { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.btn-tag .cta-arrow { background: rgba(43, 33, 27, 0.12); }
.btn-on-dark { background: var(--carrot); color: var(--ink); }
.btn-on-dark:hover { background: var(--mustard); color: var(--ink); }
.center { text-align: center; }
.fine { font-size: 13px; line-height: 18px; color: var(--ink-muted); font-weight: 600; }
.plate-art { display: block; }
svg[hidden] { display: none; }

/* Étiquettes de style (Romi : « rapide », « healthy »…) */
.stag { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 800; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--forest); white-space: nowrap; }
.stag-quick { background: #fbecc8; color: #6b4a00; }
.stag-healthy { background: var(--persil-soft); color: #2f6326; }
.stag-protein { background: #dfe9f5; color: #22466e; }
.stag-comfort { background: #fce3de; color: #8e2c1d; }
.stag-family { background: #ece3f4; color: #553273; }
.stag-world { background: #fde5cf; color: #7a3b0b; }
.sale-chip { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 800; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--tomato-soft); color: var(--tomato-strong); }

/* ---------- Accueil ---------- */
.page-home main { max-width: none; padding: 0; overflow-x: clip; }
.page-home main > section, .page-home main > .strip { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.hero2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(24px, 4vw, 48px); }
.hero2 h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; margin-bottom: 10px; }
.hero2-sub { color: var(--carrot-strong); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin-bottom: var(--space-4); }
.hero2-actions { margin: var(--space-6) 0 8px; }
.hero2-note { color: var(--ink-muted); font-size: 14px; font-weight: 600; }
.proof { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.proof li { display: flex; align-items: center; gap: 10px; color: var(--forest); }
.proof b { font-weight: 800; }
.hero2-visual { position: relative; min-height: 560px; display: grid; place-items: center; }
.hero-plate { position: absolute; left: -10px; top: 56%; transform: translateY(-50%); width: min(400px, 78%); }
.hero-plate .plate-art { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(43, 33, 27, 0.18)); }
.deco { position: absolute; width: 46px; height: 46px; }
.deco-1 { left: 6%; top: 10%; transform: rotate(-20deg); }
.deco-2 { right: 4%; bottom: 6%; transform: rotate(140deg) scale(0.8); }


/* Téléphone : un seul modèle d'appareil (cadre titane, îlot, barre d'état,
   barre d'onglets, indicateur d'accueil) pour tous les écrans de démonstration. */
.device { --dv-w: 300px; position: relative; z-index: 1; width: var(--dv-w); flex: none; text-align: left; filter: drop-shadow(0 38px 46px rgba(43, 33, 27, 0.28)); }
.dv-frame { position: relative; border-radius: 54px; padding: 11px; background: linear-gradient(150deg, #4b5751 0%, #1c2420 22%, #121815 60%, #36413b 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18), inset 0 0 0 6px #0b0f0d; }
.dv-frame::before, .dv-frame::after { content: ''; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a332f, #49554f); }
.dv-frame::before { left: -3px; top: 132px; height: 92px; box-shadow: 0 -38px 0 -10px #3a4540; }
.dv-frame::after { right: -3px; top: 168px; height: 70px; }
.dv-screen { position: relative; height: 626px; border-radius: 43px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; color: var(--ink); }
.dv-status { position: relative; flex: none; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0 34px; font-size: 14px; font-weight: 800; color: var(--ink); }
.dv-island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 20px; background: #050706; }
.dv-home { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 112px; height: 5px; border-radius: 3px; background: var(--ink); opacity: 0.85; z-index: 3; }
.dv-scr { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.device-how .dv-scr { position: absolute; inset: 50px 0 0; opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s ease; }
.device-how .dv-scr.is-on { opacity: 1; transform: none; }
.dv-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 4px 14px 22px; overflow: hidden; }
.dv-tabs { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 8px 24px; background: #fff; border-top: 1px solid var(--line); }
.dv-tabs span { display: grid; justify-items: center; gap: 2px; color: #a89a8f; }
.dv-tabs small { font-size: 10px; font-weight: 800; }
.dv-tabs .on { color: var(--brand-strong); }
.dv-over { text-align: center; font-size: 20px; line-height: 24px; font-weight: 800; margin: 2px 0 4px; }
.dv-pill { display: flex; align-items: center; gap: 4px; width: fit-content; margin: 0 auto 10px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-strong); font-size: 11px; font-weight: 800; }
.dv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.dv-card { display: grid; gap: 3px; align-content: start; background: #fff; border-radius: 16px; padding: 9px 11px; box-shadow: 0 1px 0 var(--line); }
.dv-card small { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.dv-card b { font-size: 17px; line-height: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dv-card-save { background: var(--tomato-soft); }
.dv-card-save b { color: var(--tomato-strong); }
.dv-card-save .tag { justify-self: start; --tag-cut: var(--tomato-soft); }
.dv-bar { display: block; height: 5px; border-radius: 3px; background: var(--brand-soft); overflow: hidden; margin-top: 3px; }
.dv-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.dv-bar-big { height: 8px; margin: 2px 0 10px; background: #e8dfcf; }
.dv-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dv-days li { display: grid; grid-template-columns: 24px 46px 1fr auto; gap: 8px; align-items: center; background: #fff; border-radius: 16px; padding: 6px 10px 6px 0; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.dv-day { align-self: stretch; display: grid; place-items: center; background: var(--brand-strong); color: #fff; font-size: 9px; font-weight: 800; writing-mode: vertical-rl; transform: rotate(180deg); text-transform: capitalize; }
.dv-name { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.dv-name b { font-size: 11.5px; line-height: 14px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dv-name small { display: flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 700; color: var(--ink-muted); }
.dv-name .stag { font-size: 9px; line-height: 12px; padding: 1px 6px; }
.dv-price { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dv-ob-top { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; color: var(--ink); }
.dv-progress { flex: 1; height: 5px; border-radius: 3px; background: #e8dfcf; }
.dv-progress i { display: block; width: 20%; height: 100%; border-radius: 3px; background: var(--brand); }
.dv-h { font-size: 22px; line-height: 26px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
.dv-center { text-align: center; }
.dv-sub { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); margin: 0 0 10px; }
.dv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dv-tiles span { position: relative; background: #fff; border: 2px solid transparent; border-radius: 16px; padding: 15px 6px; text-align: center; font-size: 12px; font-weight: 800; box-shadow: 0 1px 0 var(--line); }
.dv-tiles span.on { border-color: var(--brand); background: #fff4ea; }
.dv-tiles i { position: absolute; right: 6px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.dv-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; padding: 10px; border-radius: 16px; background: #fff; color: var(--ink-muted); font-size: 11px; line-height: 15px; font-weight: 600; }
.dv-note .ic { color: var(--brand); }
.dv-note b { color: var(--ink); }
.dv-btn { margin-top: auto; display: grid; justify-items: center; padding: 12px; border-radius: var(--radius-pill); background: var(--forest); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 8px 16px rgba(43, 33, 27, 0.2); }
.dv-btn small { font-size: 10px; font-weight: 700; opacity: 0.85; }
.dv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 16px; padding: 10px 4px; margin: 8px 0 12px; box-shadow: 0 1px 0 var(--line); }
.dv-kpis span { display: grid; justify-items: center; text-align: center; font-size: 9px; line-height: 11px; font-weight: 700; color: var(--ink-muted); }
.dv-kpis b { font-size: 16px; line-height: 20px; font-weight: 800; color: var(--ink); }
.dv-rc { display: flex; gap: 8px; margin-right: -14px; overflow: hidden; }
.dv-rc > span { flex: none; width: 112px; display: grid; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.dv-rc em { position: relative; display: grid; place-items: center; padding: 4px 0; background: var(--carrot-soft); }
.dv-rc em i { position: absolute; left: 6px; top: 6px; padding: 1px 6px; border-radius: var(--radius-pill); background: var(--brand-strong); color: #fff; font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.dv-rc b { font-size: 10.5px; line-height: 13px; font-weight: 800; padding: 6px 8px 0; min-height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dv-rc small { font-size: 10px; font-weight: 800; padding: 2px 8px 8px; }
.dv-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.dv-plans span { display: grid; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 7px 10px; }
.dv-plans span.on { border-color: var(--brand); background: #fff4ea; }
.dv-plans small { font-size: 10px; font-weight: 700; color: var(--ink-muted); }
.dv-plans b { font-size: 15px; font-weight: 800; }
.dv-aisle { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-strong); margin: 6px 0 2px; }
.dv-list { list-style: none; margin: 0 0 4px; padding: 2px 10px; background: #fff; border-radius: 16px; box-shadow: 0 1px 0 var(--line); }
.dv-list li { display: grid; grid-template-columns: 16px 1fr auto auto; gap: 7px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 11.5px; }
.dv-list li:first-child { border-top: 0; }
.dv-list i { width: 16px; height: 16px; border-radius: 5px; border: 2px solid #c9bea9; display: grid; place-items: center; color: transparent; }
.dv-list li.done i { background: var(--brand); border-color: var(--brand); color: #fff; }
.dv-list li.done b { text-decoration: line-through; color: var(--ink-muted); }
.dv-list b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-list em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.dv-total { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-radius: 16px; background: var(--forest); color: var(--on-forest); font-size: 12px; font-weight: 700; }
.dv-total b { font-size: 18px; color: var(--mustard); }
.device-hero { margin-left: 150px; }
.band-forest .dv-frame { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22), inset 0 0 0 6px #0b0f0d, 0 0 0 1.5px rgba(251, 245, 236, 0.16); }
.dv-plans + .dv-btn, .dv-note + .dv-plans { margin-top: 0; }
.device-how { justify-self: center; }

/* Bandeau des épiceries (défilement) */
.strip { padding-block: 18px 30px; text-align: center; overflow: hidden; }
.strip .overline { margin-bottom: 12px; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { list-style: none; display: flex; gap: 12px; padding: 0 6px; margin: 0; flex: none; animation: marquee 60s linear infinite; }
.marquee li { white-space: nowrap; font-weight: 800; color: var(--forest); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 8px 18px; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Nappe à carreaux (séparateur) */
.cloth { height: 18px; background: repeating-linear-gradient(90deg, var(--carrot) 0 18px, var(--surface) 18px 36px); }

/* Comment ça marche (bande verte foncée) */
.band-forest { background: var(--forest); color: var(--on-forest); }
.page-home main > .how2 { max-width: none; }
.how2-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.how2 h2 { color: var(--on-forest); }
.timeline { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-8); display: grid; gap: 0; }
.timeline li { position: relative; padding-bottom: 14px; }
.tl-btn { display: grid; grid-template-columns: 64px 1fr; gap: 18px; width: 100%; padding: 12px; border: 0; border-radius: 22px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 0.2s; }
.tl-btn:hover { background: rgba(240, 122, 42, 0.06); }
.timeline li.is-on .tl-btn { background: rgba(240, 122, 42, 0.12); }
.timeline li.is-on .tl-ic { background: var(--carrot); color: var(--ink); }
.tl-btn:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.tl-tx b { display: block; color: var(--on-forest); font-size: 21px; line-height: 26px; font-weight: 800; margin: 6px 0 4px; }
.tl-tx > span { color: #d8c8ba; display: block; max-width: 40ch; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 43px; top: 82px; bottom: 6px; border-left: 2px dashed rgba(240, 122, 42, 0.5); }
.tl-ic { position: relative; width: 64px; height: 64px; border-radius: 50%; background: rgba(240, 122, 42, 0.16); color: var(--leaf-light); display: grid; place-items: center; }
.tl-n { position: absolute; right: -4px; top: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--mustard); color: var(--ink); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.timeline h3 { color: var(--on-forest); font-size: 21px; line-height: 26px; margin: 8px 0 4px; }
.timeline p { color: #d8c8ba; margin: 0; max-width: 40ch; }

/* Calculateur d'économies (bande moutarde) */
.saver-in { background: var(--mustard); border-radius: 32px; padding: clamp(28px, 5vw, 56px); text-align: center; }
.saver-q { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.6; font-weight: 800; color: var(--forest); max-width: 30ch; margin: 0 auto var(--space-6); }
.mini-stepper { display: inline-flex; align-items: center; gap: 4px; background: #fff; border-radius: var(--radius-pill); padding: 3px; vertical-align: middle; margin: 0 4px; }
.mini-stepper button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fbe7b5; color: var(--forest); display: grid; place-items: center; cursor: pointer; }
.mini-stepper button:disabled { opacity: 0.35; cursor: default; }
.mini-stepper output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.saver-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 auto var(--space-4); max-width: 820px; }
.saver-kpis div { background: #fff; border-radius: 20px; padding: 22px 12px; display: grid; gap: 4px; }
.saver-kpis b { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 800; color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.saver-kpis span { font-weight: 700; color: var(--ink-muted); font-size: 14px; }
.saver-note { font-size: 13px; font-weight: 700; color: var(--forest); opacity: 0.8; }

/* Recettes : filtres + cartes (Jow + Romi) */
.recipes2 h2 { max-width: 22ch; }
.fchips { display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 14px; margin: var(--space-4) 0 var(--space-2); scrollbar-width: none; }
.fchip { flex: none; display: grid; justify-items: center; gap: 6px; min-width: 88px; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--ink); text-align: center; }
.fchip-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--forest); transition: background 0.15s, border-color 0.15s; }
.rfilter > input:focus-visible + * , .rfilter > input:focus-visible ~ .fchips label[for] { outline: none; }
#rf-all:checked ~ .fchips [for='rf-all'] .fchip-ic, #rf-quick:checked ~ .fchips [for='rf-quick'] .fchip-ic, #rf-healthy:checked ~ .fchips [for='rf-healthy'] .fchip-ic,
#rf-protein:checked ~ .fchips [for='rf-protein'] .fchip-ic, #rf-family:checked ~ .fchips [for='rf-family'] .fchip-ic, #rf-comfort:checked ~ .fchips [for='rf-comfort'] .fchip-ic,
#rf-world:checked ~ .fchips [for='rf-world'] .fchip-ic, #rf-veg:checked ~ .fchips [for='rf-veg'] .fchip-ic { background: var(--carrot); border-color: var(--carrot); color: #fff; }
#rf-all:focus-visible ~ .fchips [for='rf-all'] .fchip-ic, #rf-quick:focus-visible ~ .fchips [for='rf-quick'] .fchip-ic, #rf-healthy:focus-visible ~ .fchips [for='rf-healthy'] .fchip-ic,
#rf-protein:focus-visible ~ .fchips [for='rf-protein'] .fchip-ic, #rf-family:focus-visible ~ .fchips [for='rf-family'] .fchip-ic, #rf-comfort:focus-visible ~ .fchips [for='rf-comfort'] .fchip-ic,
#rf-world:focus-visible ~ .fchips [for='rf-world'] .fchip-ic, #rf-veg:focus-visible ~ .fchips [for='rf-veg'] .fchip-ic { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
#rf-quick:checked ~ .rgrid .rcard:not([data-cats~='quick']), #rf-healthy:checked ~ .rgrid .rcard:not([data-cats~='healthy']), #rf-protein:checked ~ .rgrid .rcard:not([data-cats~='protein']),
#rf-family:checked ~ .rgrid .rcard:not([data-cats~='family']), #rf-comfort:checked ~ .rgrid .rcard:not([data-cats~='comfort']), #rf-world:checked ~ .rgrid .rcard:not([data-cats~='world']),
#rf-veg:checked ~ .rgrid .rcard:not([data-cats~='veg']) { display: none; }
.rgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-height: 760px; overflow-y: auto; padding-right: 4px; }
.rcard { display: grid; grid-template-columns: 112px 1fr auto; gap: 14px; align-items: center; background: #fff; border-radius: 22px; padding: 10px 16px 10px 10px; box-shadow: 0 1px 0 var(--line); }
.rcard-art { position: relative; border-radius: 18px; background: var(--carrot-soft); overflow: hidden; }
.rcard-art .tag { position: absolute; left: 6px; bottom: 6px; --tag-cut: var(--carrot-soft); }
.rcard-body { display: grid; gap: 5px; justify-items: start; min-width: 0; }
.rcard-body b { font-size: 16px; line-height: 20px; font-weight: 800; }
.rcard-body small { color: var(--ink-muted); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.rcard-price { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Fonctionnalités */
.feats ul { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feats li { background: #fff; border-radius: 24px; padding: 26px; box-shadow: 0 1px 0 var(--line); }
.feat-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 14px; }
.feats li:nth-child(1) .feat-ic { background: var(--tomato-soft); color: var(--tomato-strong); }
.feats li:nth-child(3n+2) .feat-ic { background: #fbe7b5; color: #7a5300; }
.feats li:nth-child(3n+3) .feat-ic { background: var(--persil-soft); color: var(--persil); }
.feats p { color: var(--ink-muted); margin: 0; }

/* Tarifs */
.pricing2 { padding-block: clamp(24px, 4vw, 48px); }
.pricing2-in { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 48 48'%3E%3Cg transform='rotate%28-8 24 24%29' fill='%23F07A2A' fill-opacity='.09'%3E%3Cpath d='M10 24 L17 15 H36 Q38 15 38 17 V31 Q38 33 36 33 H17 Z'/%3E%3C/g%3E%3Ccircle cx='17.6' cy='24' r='2.4' fill='%232B211B' transform='rotate%28-8 24 24%29'/%3E%3C/svg%3E"); background-size: 56px 56px; background-color: var(--forest); color: var(--on-forest); border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.pricing2 h2 { color: var(--on-forest); }
.pricing2-lead { color: #d8c8ba; font-weight: 600; max-width: 42ch; }
.pcards { display: grid; gap: 12px; }
.pcard { position: relative; display: grid; gap: 2px; background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(251, 245, 236, 0.2); border-radius: 22px; padding: 18px 20px; }
.pcard b { font-size: 18px; font-weight: 800; }
.pcard small { color: #d8c8ba; font-weight: 600; }
.pcard-best { border-color: var(--mustard); background: rgba(246, 196, 83, 0.1); }
.pcard-price { font-size: 32px; line-height: 1.1; font-weight: 800; color: var(--mustard); font-variant-numeric: tabular-nums; }
.pcard-price small { font-size: 15px; margin-left: 6px; color: #d8c8ba; }
.plan-badge { position: absolute; right: 16px; top: -12px; background: var(--mustard); color: var(--on-mustard); font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: var(--radius-pill); }

/* Appel final */
.final { text-align: center; }
.final h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin-bottom: 6px; }
.final .lead { margin: 0 auto var(--space-6); color: var(--carrot-strong); font-weight: 800; }
.final-plates { display: flex; justify-content: center; margin-bottom: var(--space-4); }
.final-plates .plate-art { margin: 0 -14px; filter: drop-shadow(0 12px 18px rgba(43, 33, 27, 0.16)); }
.final-plates .plate-art:nth-child(2) { transform: translateY(-14px) scale(1.12); position: relative; z-index: 1; }

@media (max-width: 960px) {
  .hero2 { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero2 h1, .hero2 .lead { margin-inline: auto; }
  .proof { justify-content: center; }
  .hero2-visual { min-height: 520px; }
  .hero-plate { left: 4%; width: min(340px, 70%); }
  .device-hero { margin-left: 120px; }
  .how2-in, .pricing2-in { grid-template-columns: minmax(0, 1fr); }
  .rgrid { grid-template-columns: repeat(2, 1fr); }
  .feats ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rgrid { grid-template-columns: 1fr; max-height: 640px; }
  .rcard { grid-template-columns: 92px 1fr auto; }
  .rcard-art .plate-art { width: 92px; height: 92px; }
  .feats ul { grid-template-columns: 1fr; }
  .saver-kpis { grid-template-columns: 1fr; }
  .hero-plate { left: -90px; }
  .device { zoom: 0.86; }
  .device-hero { margin-left: 0; }
  .hero2-visual { min-height: 0; padding: 10px 0 20px; }
  .btn-cta { font-size: 17px; padding-left: 22px; }
}

/* ---------- Questionnaire (plein écran, une question par écran) ---------- */
body.page-start { background: var(--surface); }
.start { min-height: 100vh; }
.ob { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 0 20px; }
.ob-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 16px 0 12px; background: var(--surface); }
.ob-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.ob-icon:hover { background: var(--brand-soft); color: var(--ink); }
.ob-progress { flex: 1; height: 6px; border-radius: 3px; background: #e8dfcf; overflow: hidden; }
.ob-progress span { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width 0.25s ease; }
.ob-main { flex: 1; min-width: 0; width: 100%; max-width: none; margin: 0; padding: 12px 0 120px; }
.ob-main h1 { font-size: clamp(30px, 7vw, 38px); line-height: 1.1; letter-spacing: -0.02em; margin: 8px 0 8px; outline: none; }
.ob-sub { color: var(--ink-muted); font-size: 17px; line-height: 24px; margin-bottom: 22px; }
.ob-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--surface) 30%); }
.ob-next { display: flex; width: 100%; max-width: 520px; margin: 0 auto; min-height: 58px; font-size: 18px; font-weight: 800; background: var(--forest); }
.ob-next[disabled] { background: #cdbfb3; opacity: 1; cursor: not-allowed; }
.opts { display: grid; gap: 12px; }
.opt { display: grid; grid-template-columns: 48px 1fr 26px; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; background: #fff; border: 2px solid transparent; border-radius: 20px; box-shadow: 0 1px 0 var(--line); cursor: pointer; font: inherit; color: var(--ink); transition: border-color 0.15s, background 0.15s; }
.opt:hover { border-color: #f8d3b5; }
.opt.on { border-color: var(--brand); background: #fff4ea; }
.opt-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); }
.opt-ic.big { width: 64px; height: 64px; margin: 0 auto 10px; }
.opt-tx { display: grid; gap: 2px; }
.opt-tx b { font-size: 16px; line-height: 21px; font-weight: 800; }
.opt-tx small { color: var(--ink-muted); font-size: 14px; line-height: 19px; font-weight: 600; }
.opt-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d6ccbb; display: grid; place-items: center; color: transparent; }
.opt.on .opt-mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 96px; padding: 14px 10px; background: #fff; border: 2px solid transparent; border-radius: 20px; box-shadow: 0 1px 0 var(--line); cursor: pointer; font: inherit; color: var(--ink); text-align: center; }
.tile b { font-size: 15px; line-height: 19px; font-weight: 800; }
.tile.on { border-color: var(--brand); background: #fff4ea; }
.tiles.stores { grid-template-columns: repeat(3, 1fr); }
.tiles.stores .tile { min-height: 64px; }
.where { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 800; color: var(--forest); flex-wrap: wrap; }
.where select { margin-left: auto; min-width: 200px; }
.ob-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; background: #fff; border-radius: 18px; padding: 14px; }
.ob-note .opt-ic { width: 36px; height: 36px; }
.ob-note p { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; font-weight: 600; }
.ob-note b { color: var(--ink); }
.steppers { display: grid; gap: 12px; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 1px 0 var(--line); }
.stepper-row b { font-size: 17px; font-weight: 800; display: block; }
.stepper-row small { color: var(--ink-muted); font-weight: 600; font-size: 14px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand-soft); color: var(--forest); display: grid; place-items: center; cursor: pointer; }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 34px; text-align: center; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.budget { display: grid; justify-items: center; gap: 6px; background: #fff; border-radius: 24px; padding: 28px 20px 22px; text-align: center; }
.budget-v { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 18px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--forest); font-size: 13px; font-weight: 800; }
.budget input[type='range'] { width: 100%; -webkit-appearance: none; appearance: none; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--brand) var(--p), #e8dfcf var(--p)); outline: none; }
.budget input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 2px 8px rgba(43, 33, 27, 0.25); cursor: pointer; }
.budget input[type='range']::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); cursor: pointer; }
.budget input[type='range']:focus-visible { box-shadow: 0 0 0 3px var(--brand-soft); }
.range-ends { width: 100%; display: flex; justify-content: space-between; margin-top: 10px; color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.range-ends span { display: grid; text-align: left; }
.range-ends span:last-child { text-align: right; }
.range-ends b { color: var(--ink); font-weight: 800; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius-pill); padding: 0 16px; border: 2px solid var(--line); margin-bottom: 18px; color: var(--ink-muted); }
.search input { flex: 1; border: 0; outline: none; background: none; font: 600 16px/24px var(--font-sans); padding: 12px 0; color: var(--ink); }
.search:focus-within { border-color: var(--brand); }
.chip-group { margin-bottom: 16px; }
.chip-group .overline { margin: 0 0 8px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; }
.chip2 { border: 2px solid var(--line); background: #fff; border-radius: var(--radius-pill); padding: 7px 14px; font: 700 14px/20px var(--font-sans); color: var(--ink); cursor: pointer; }
.chip2.on { background: var(--tomato-soft); border-color: var(--tomato); color: var(--tomato-strong); text-decoration: line-through; }

/* Préparation */
.ob-loading .ob-main { display: grid; align-content: center; justify-items: center; text-align: center; min-height: 100vh; padding: 40px 0; }
.load-mark { width: 92px; height: 92px; margin-bottom: 18px; animation: wobble 1.6s ease-in-out infinite; }
.load-mark svg { width: 100%; height: 100%; }
@keyframes wobble { 50% { transform: rotate(8deg) scale(1.06); } }
.load-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; width: 100%; max-width: 420px; text-align: left; }
.load-list li { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 18px; padding: 14px 16px; opacity: 0.55; transition: opacity 0.2s; }
.load-list li.wip, .load-list li.done { opacity: 1; }
.load-list li > span:last-child { display: grid; }
.load-list small { color: var(--ink-muted); font-weight: 600; }
.load-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 3px solid #e8dfcf; }
.load-list li.wip .load-dot { border-color: var(--brand) transparent var(--brand) var(--brand); animation: spin 0.8s linear infinite; }
.load-list li.done .load-dot { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 16px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Résultat et offre */
.ob-result .ob-main { padding-top: 24px; padding-bottom: 48px; position: relative; }
.ob-close { position: absolute; right: -6px; top: 14px; }
.ob-result h1 { padding-right: 40px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: 22px; padding: 14px 6px; margin: 0 0 18px; box-shadow: 0 1px 0 var(--line); }
.kpis div { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 0 4px; }
.kpis dd { order: -1; margin: 0; font-size: 22px; line-height: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpis dt { font-size: 12px; line-height: 15px; font-weight: 700; color: var(--ink-muted); }
.kpis .kpi-save dd { color: var(--tomato-strong); }
.ob-result h2 { font-size: 22px; line-height: 28px; text-align: center; margin: 26px 0 12px; }
.rcards { list-style: none; padding: 0 20px 6px; margin: 0 -20px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rc { flex: none; width: 168px; scroll-snap-align: start; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.rc-art { position: relative; display: grid; place-items: center; background: var(--carrot-soft); padding: 6px 0; }
.rc-art .plate-art { width: 132px; height: 132px; }
.rc-day { position: absolute; left: 8px; top: 8px; background: var(--brand-strong); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-pill); text-transform: uppercase; }
.rc-art .tag { position: absolute; right: 8px; bottom: 8px; --tag-cut: var(--carrot-soft); }
.rc-body { display: grid; gap: 4px; padding: 10px 12px 12px; }
.rc-body b { font-size: 14px; line-height: 18px; font-weight: 800; min-height: 36px; }
.rc-body small { display: flex; align-items: center; gap: 4px; color: var(--ink-muted); font-weight: 700; font-size: 12px; }
.rc-price { font-weight: 800; font-size: 13px; }
.benefits { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 12px; }
.benefits .opt-ic { width: 38px; height: 38px; }
.benefits div { display: grid; gap: 2px; }
.benefits b { font-size: 14px; line-height: 18px; font-weight: 800; }
.benefits small { color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 600; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.plan { position: relative; display: grid; gap: 2px; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 16px 14px; cursor: pointer; font: inherit; color: var(--ink); }
.plan.on { border-color: var(--brand); background: #fff4ea; box-shadow: 0 0 0 3px var(--brand-soft); }
.plan b { font-size: 16px; font-weight: 800; }
.plan-price { font-size: 22px; line-height: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 13px; color: var(--ink-muted); font-weight: 700; margin-left: 4px; }
.plan > small { color: var(--ink-muted); font-weight: 600; font-size: 13px; }
.plan .plan-badge { right: 10px; top: -11px; font-size: 12px; }
.ob-result .btn-xl { background: var(--forest); }
.ob-result .fine.center { margin: 10px 0 18px; }
.reassure { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.reassure li { display: grid; justify-items: center; gap: 4px; color: var(--brand-strong); }
.reassure span { display: grid; color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 600; }
.reassure b { color: var(--ink); font-size: 13px; }

/* Fenêtre (inscription, fiche recette) */
dialog.sheet { border: 0; padding: 0; background: transparent; width: min(560px, 100%); max-width: 100%; max-height: 100%; margin: auto auto 0; }
@media (min-width: 640px) { dialog.sheet { margin: auto; } }
dialog.sheet::backdrop { background: rgba(43, 33, 27, 0.45); }
.sheet-in { position: relative; background: var(--surface); border-radius: 28px 28px 0 0; padding: 30px 22px calc(26px + env(safe-area-inset-bottom)); display: grid; gap: 12px; max-height: 92vh; overflow-y: auto; }
@media (min-width: 640px) { .sheet-in { border-radius: 28px; } }
.sheet-in h2 { font-size: 26px; line-height: 30px; margin: 0; text-align: center; }
.sheet-in > .muted { text-align: center; margin: 0; }
.sheet-x { position: absolute; right: 12px; top: 12px; }
.sheet .field input { width: 100%; }

/* ---------- Espace abonné : ma semaine ---------- */
.week { max-width: 980px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) 0 64px; }
.week-loading, .week-empty { display: grid; justify-items: center; gap: 14px; padding: 80px 0; text-align: center; color: var(--ink-muted); font-weight: 700; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--brand-soft); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
.wbanner { display: flex; align-items: center; gap: 10px; }
.whead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; }
.whead h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 4px; }
.whead p { margin: 0; font-weight: 600; }
.whead-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wkpis { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 22px; margin: 0 0 16px; box-shadow: 0 1px 0 var(--line); overflow: hidden; }
.wkpis div { padding: 14px 18px; border-left: 1px solid var(--line); }
.wkpis div:first-child { border-left: 0; }
.wkpis dt { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.wkpis dd { margin: 4px 0 0; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wkpis .kpi-save { background: var(--tomato-soft); }
.wkpis .kpi-save dd { color: var(--tomato-strong); }
.wtabs { display: flex; gap: 6px; background: #ece4d6; padding: 5px; border-radius: var(--radius-pill); width: fit-content; margin: 8px 0 18px; }
.wtabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: var(--radius-pill); padding: 9px 18px; font: 800 15px/20px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.wtabs button[aria-selected='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(43, 33, 27, 0.12); }
.wtabs .count { background: var(--brand-soft); color: var(--forest); border-radius: var(--radius-pill); padding: 0 8px; font-size: 12px; }
.wmeals { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.wmeal { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; background: #fff; border-radius: 24px; padding: 10px 18px 10px 10px; box-shadow: 0 1px 0 var(--line); transition: opacity 0.2s; }
.wmeal.is-busy { opacity: 0.45; }
.wmeal-art { position: relative; border: 0; padding: 0; border-radius: 18px; background: var(--carrot-soft); cursor: pointer; display: grid; place-items: center; }
.wmeal-art .tag { position: absolute; left: 6px; bottom: 6px; --tag-cut: var(--carrot-soft); }
.wmeal-day { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-strong); }
.wmeal h3 { margin: 2px 0 4px; font-size: 19px; line-height: 24px; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.linkish:hover { color: var(--brand-strong); text-decoration: underline; }
.wmeal-meta { display: block; margin: 0 0 6px; color: var(--ink-muted); font-size: 14px; font-weight: 700; }
.wmeal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.wmeal-side { display: grid; justify-items: end; gap: 2px; text-align: right; }
.wmeal-side b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wmeal-side small { color: var(--ink-muted); font-weight: 600; margin-bottom: 8px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.list-progress { display: grid; gap: 6px; margin: 0; min-width: 240px; }
.list-progress .bar { height: 8px; border-radius: 4px; background: #e8dfcf; overflow: hidden; }
.list-progress .bar i { display: block; height: 100%; background: var(--brand); transition: width 0.2s; }
.aisles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.aisles .aisle { margin-top: 14px; border: 0; box-shadow: 0 1px 0 var(--line); border-radius: 22px; }
.aisle ul { list-style: none; margin: 0; padding: 0; }
.aisle li label { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.aisle li:first-child label { border-top: 0; }
.aisle li input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aisle .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #c9bea9; display: grid; place-items: center; color: transparent; }
.aisle li.done .box { background: var(--brand); border-color: var(--brand); color: #fff; }
.aisle li input:focus-visible + .box { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
.li-name { display: grid; }
.li-name b { font-weight: 800; }
.li-name small { color: var(--ink-muted); font-size: 13px; font-weight: 600; }
.li-name em { color: var(--tomato-strong); font-style: normal; font-weight: 700; }
.aisle li.done .li-name b { text-decoration: line-through; color: var(--ink-muted); }
.li-price { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.li-price s { color: var(--ink-muted); font-size: 12px; text-decoration-color: var(--tomato); }
.li-price b { font-weight: 800; }
.list-total { display: flex; justify-content: space-between; align-items: baseline; background: var(--forest); color: var(--on-forest); border-radius: 20px; padding: 16px 20px; margin-top: 14px; font-weight: 700; }
.list-total b { font-size: 26px; font-weight: 800; color: var(--mustard); }
.recipe-sheet .sheet-in { gap: 8px; }
.rs-art { display: grid; place-items: center; background: var(--carrot-soft); border-radius: 22px; margin-bottom: 8px; }
.recipe-sheet h2 { text-align: left; }
.recipe-sheet h3 { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.recipe-sheet h3 small { font-size: 13px; font-weight: 700; }
.ing { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: 18px; padding: 4px 14px; }
.ing li { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.ing li:first-child { border-top: 0; }
.ing b { font-weight: 800; color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.steps2 { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps2 li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; line-height: 24px; }
.steps2 li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 800; }

@media (max-width: 720px) {
  .wmeal { grid-template-columns: 96px 1fr; padding-right: 12px; }
  .wmeal-art .plate-art { width: 96px; height: 96px; }
  .wmeal-side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
  .wmeal-side small { margin: 0 auto 0 6px; }
  .aisles { grid-template-columns: 1fr; }
  .wkpis dd { font-size: 20px; }
  .wkpis div { padding: 12px; }
  .benefits { grid-template-columns: 1fr; }
  .kpis dd { font-size: 19px; }
  .tiles.stores { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  .site-header, .site-footer, .whead-actions, .wkpis, .wtabs, .wpanel[hidden], .wbanner, .note, .list-head .btn { display: none !important; }
  .wpanel[hidden] { display: none !important; }
  .wpanel:not([hidden]) { display: block !important; }
  body { background: #fff; font-size: 11pt; }
  .aisles { grid-template-columns: 1fr 1fr; }
  .aisle, .list-total { box-shadow: none; border: 1px solid #ccc; }
  .tag { border: 1px solid #000; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .marquee { overflow-x: auto; }
}
