/* ============================================================
   Régime Méditerranéen — thème clair unique
   Inspiré d'une interface printanière méditerranéenne :
   mer, brume claire, citron, surfaces blanches et photos.
   ============================================================ */

:root {
  color-scheme: light;

  --paper: #e8f4f3;
  --paper-strong: #fbfdf8;
  --paper-soft: #eff8f7;
  --mist: #dcedec;
  --ink: #123442;
  --ink-soft: #58737a;
  --muted: #78949a;
  --line: #c2dadd;
  --line-strong: #91bcc4;

  --olive: #6d8441;
  --olive-deep: #41572a;
  --olive-soft: #edf3dd;
  --terracotta: #0f6f84;
  --terracotta-deep: #075875;
  --tomato: #d45d3d;
  --saffron: #eadf78;
  --saffron-deep: #f3b51b;
  --saffron-light: #f6ea8a;
  --saffron-soft: #fff5b9;
  --sea: #0a7fa0;
  --sky: #d9eff4;
  --leaf: #7f9b48;
  --deep-green: #6f7d3e;

  --surface: rgba(252, 255, 250, 0.88);
  --surface-strong: #ffffff;
  --shadow: 0 26px 68px rgba(18, 77, 91, 0.13);
  --shadow-soft: 0 16px 36px rgba(18, 77, 91, 0.08);

  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-body);

  --radius: 22px;
  --radius-sm: 14px;
  --sidebar: 164px;

  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
}

@property --progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 112px;
}

#cover {
  scroll-margin-top: 0;
}

body {
  min-width: 320px;
  margin: 0;
  background: linear-gradient(90deg, #dceced 0%, #eef7f5 58%, #f7f4d9 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  display: none;
}

body::after {
  display: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

em,
i {
  font-style: normal;
}

img {
  display: block;
  max-width: 100%;
}

.cover__bg img,
.cover__bg video,
.meal-thumb img,
.side-card--photo img,
.recipe-card img,
.dialog-hero img,
.ingredient-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin-top: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-left: 0;
}

::selection {
  background: var(--saffron-soft);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Barre latérale
   ============================================================ */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 54px);
  width: auto;
  min-height: 76px;
  padding: 14px clamp(24px, 3.8vw, 64px);
  overflow: visible;
  color: #174f61;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28) 58%, transparent);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.topbar::before {
  display: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #164f60;
}

.brand__logo {
  display: block;
  width: clamp(74px, 7.2vw, 118px);
  height: auto;
  max-height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(32, 73, 84, 0.08));
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(36, 100, 118, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 66% 34%, #f4cf45 0 5px, transparent 6px),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(32, 73, 84, 0.09);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
}

.brand__text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
}

.brand__text em {
  font-style: normal;
  font-weight: 400;
}

.topnav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 42px);
  min-width: 0;
}

.topnav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0 7px;
  border-radius: 0;
  color: rgba(23, 79, 97, 0.52);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.topnav a [data-icon] {
  display: none;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.22em;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2d8fc1, #e4c849);
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.topnav a:hover,
.topnav a.is-current {
  color: #19677a;
  background: transparent;
  transform: none;
}

.topnav a:hover::after,
.topnav a.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.topbar__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
}

.weather-pill,
.icon-button,
.tiny-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(38, 87, 98, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #244e55;
  box-shadow: 0 12px 28px rgba(37, 76, 88, 0.08);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.weather-pill {
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather-pill [data-icon] {
  color: #d9a300;
  font-size: 0.95rem;
}

.icon-button,
.tiny-button {
  width: 34px;
  height: 34px;
}

.icon-button:hover,
.tiny-button:hover {
  border-color: rgba(38, 87, 98, 0.26);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

[data-icon] {
  display: inline-grid;
  place-items: center;
}

[data-icon] svg {
  width: 1.08em;
  height: 1.08em;
  stroke-width: 2;
}

/* ============================================================
   Hero plein écran
   ============================================================ */

.cover {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 100svh;
  padding: 130px clamp(18px, 7vw, 150px) 90px;
  overflow: hidden;
  isolation: isolate;
}

.cover__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  min-height: 100%;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.cover__bg img,
.cover__bg video {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(96%) contrast(91%) brightness(1.08);
}

.cover__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  height: auto;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.48), transparent 23rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 39%, rgba(255, 255, 255, 0.3) 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(237, 249, 251, 0.62));
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.24);
}

.cover__plate {
  display: grid;
  justify-items: center;
  gap: 24px;
  width: min(760px, 100%);
  min-width: 0;
  text-align: center;
}

.cover__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(21, 75, 93, 0.78);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.cover__top {
  position: relative;
  width: min(620px, 100%);
  gap: 14px;
}

.cover__top::before,
.cover__top::after,
.cover__bottom::before {
  content: "";
  flex: 1 1 70px;
  height: 1px;
  background: rgba(25, 103, 122, 0.32);
}

.cover__issue {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.cover__price,
.cover__date {
  color: rgba(21, 75, 93, 0.78);
}

.cover__title {
  max-width: 100%;
  margin: 0;
  color: #166474;
  font-family: var(--font-display);
  font-size: clamp(4rem, 7.8vw, 7.45rem);
  font-weight: 400;
  font-style: normal;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 15px 50px rgba(255, 255, 255, 0.62);
}

.cover__title em {
  display: block;
  color: var(--terracotta-deep);
  font-style: normal;
}

.cover__sub {
  max-width: 56ch;
  margin: 0;
  color: rgba(36, 54, 55, 0.64);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.25vw, 1.24rem);
  font-style: normal;
  line-height: 1.55;
}

.cover__bottom {
  width: min(620px, 100%);
  margin-top: 2px;
  gap: 28px;
}

.cover__cue,
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid rgba(98, 108, 31, 0.36);
  border-radius: 999px;
  background: rgba(230, 206, 75, 0.74);
  color: #174f61;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  box-shadow: 0 18px 38px rgba(96, 94, 30, 0.16);
}

.link-arrow {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(104, 125, 52, 0.3);
  border-radius: 13px;
  background: var(--surface);
  color: var(--olive-deep);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 10px 22px rgba(82, 54, 25, 0.07);
}

.cover__cue {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: rgba(230, 206, 75, 0.74);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  box-shadow: 0 18px 38px rgba(96, 94, 30, 0.16);
}

.cover__cue svg,
.link-arrow svg {
  width: 15px;
  height: 15px;
}

.cover__cue:hover,
.link-arrow:hover {
  border-color: rgba(216, 95, 50, 0.42);
  color: var(--terracotta-deep);
}

.spread__header .link-arrow {
  border-color: rgba(100, 113, 37, 0.38);
  background: rgba(239, 224, 120, 0.86);
  color: var(--ink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================================
   Sections générales
   ============================================================ */

.section {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) clamp(18px, 4vw, 46px);
}

.section + .section {
  border-top: 1px solid rgba(145, 188, 196, 0.34);
}

.cover {
  order: 0;
}

.section--week {
  order: 1;
}

.section--spread {
  order: 2;
}

.section--premium {
  order: 3;
  width: min(1320px, 100%);
}

.section--recipes {
  order: 4;
  width: min(1320px, 100%);
}

.section--manifesto {
  order: 5;
}

.section--health {
  order: 6;
}

.colophon {
  order: 7;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section__num {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--olive-soft);
  color: var(--olive-deep);
  font-family: var(--font-display);
  font-weight: 700;
}

.section__label,
.kicker {
  color: var(--olive);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section__title {
  max-width: 20ch;
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.section__title em {
  color: var(--terracotta-deep);
  font-style: normal;
}

.section[data-page]::after {
  display: none;
}

.section--manifesto,
.section--health,
.section--week,
.section--recipes,
.section--premium,
.section--market {
  background: transparent;
}

/* ============================================================
   Manifeste et santé
   ============================================================ */

.manifesto__body,
.health-layout {
  display: grid;
  gap: 18px;
}

.manifesto__body {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.manifesto__lede,
.health-notice,
.health-panel,
.health-references,
.principles li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.manifesto__lede {
  min-height: 100%;
  padding: 24px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  line-height: 1.46;
}

.drop-cap {
  float: left;
  margin: 3px 10px 0 0;
  color: var(--terracotta-deep);
  font-size: 4.6rem;
  line-height: 0.82;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.principles li {
  min-height: 180px;
  padding: 18px;
}

.principle__num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fffaf2;
  font-family: var(--font-display);
  font-weight: 700;
}

.principles h3,
.health-panel h3 {
  margin-bottom: 7px;
  color: var(--olive-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.principles p,
.health-notice p,
.health-panel__lede,
.health-list li,
.portion-guide dd,
.health-references span {
  color: var(--ink-soft);
}

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

.health-notice,
.health-panel,
.health-references {
  padding: 20px;
}

.health-list {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
}

.health-list li {
  position: relative;
  padding-left: 18px;
}

.health-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

.portion-guide {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.portion-guide div,
.health-references li {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(104, 125, 52, 0.08);
}

.portion-guide dt,
.health-references strong {
  color: var(--olive-deep);
  font-weight: 900;
}

/* ============================================================
   Sélecteur semaine
   ============================================================ */

.section--week {
  width: min(1320px, 100%);
  padding-top: 34px;
  padding-bottom: 10px;
}

.section--week .section__head,
.section--week .section__title {
  display: none;
}

.week-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: thin;
}

.day-tab {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 92px;
  min-height: 84px;
  padding: 14px 10px 13px;
  border: 1px solid rgba(194, 218, 221, 0.42);
  border-radius: 10px;
  background: rgba(252, 255, 250, 0.78);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 8px 22px rgba(18, 77, 91, 0.05);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.day-tab:hover {
  transform: translateY(-2px);
}

.day-tab.is-selected {
  border-color: rgba(196, 180, 65, 0.58);
  background: linear-gradient(145deg, #f6e98c, #e8d861);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(124, 120, 39, 0.18);
}

.day-tab.is-selected::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #e8d861;
  transform: rotate(45deg);
  margin-left: -7px;
}

.day-tab span:first-child {
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.day-tab strong {
  color: currentColor;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
}

.day-tab small {
  color: currentColor;
  font-weight: 800;
  opacity: 0.78;
}

/* ============================================================
   Planning du jour
   ============================================================ */

.section--spread {
  width: min(1320px, 100%);
  padding-top: 10px;
}

.spread__header,
.spread__layout,
.meal-card,
.side-card,
.recipe-card,
.shopping-item,
.shopping-empty,
.recipe-dialog {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.spread__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  min-height: 190px;
  margin-bottom: 18px;
  padding: 30px clamp(26px, 4.4vw, 62px);
  border-color: rgba(145, 188, 196, 0.5);
  border-radius: 26px;
  background:
    linear-gradient(112deg, rgba(235, 249, 250, 0.96), rgba(252, 255, 250, 0.9) 58%, rgba(255, 245, 185, 0.74)),
    var(--surface);
  box-shadow: var(--shadow);
}

.spread__num {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 0;
  background: transparent;
  color: var(--terracotta-deep);
  font-family: var(--font-display);
  font-size: clamp(5rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.86;
}

.spread__intro .kicker {
  display: block;
  margin-bottom: 6px;
}

.spread__title {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 4.5rem);
  font-style: normal;
  font-weight: 400;
  line-height: 0.98;
}

.spread__mood {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-style: normal;
}

.spread__health {
  max-width: 64ch;
  margin-bottom: 0;
  color: var(--terracotta-deep);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.spread__stats {
  display: grid;
  gap: 12px;
  justify-items: end;
  text-align: right;
}

.stat strong {
  display: block;
  color: var(--terracotta-deep);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.spread__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, 0.88fr);
  gap: 16px;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.meal-timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 252, 0.92);
  box-shadow: var(--shadow-soft);
}

.meal-timeline__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.meal-timeline__header h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
  color: var(--tomato);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
  line-height: 1;
}

.meal-timeline__header h2 [data-icon] {
  color: var(--olive);
  font-size: 1.55rem;
}

.meal-timeline__header p {
  margin: 0;
  color: var(--olive-deep);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}

.meal-timeline__recipes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(104, 125, 52, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--olive-deep);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.meal-timeline__recipes:hover {
  border-color: rgba(104, 125, 52, 0.5);
  background: #fffef6;
  transform: translateY(-1px);
}

.meal-timeline__list {
  position: relative;
  display: grid;
  gap: 18px;
}

.meal-timeline__list::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 18px;
  left: 72px;
  width: 2px;
  background: linear-gradient(rgba(145, 188, 196, 0.58), rgba(145, 188, 196, 0.16));
}

.meal-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) clamp(150px, 16vw, 190px) 28px;
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.meal-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 68px;
  width: 10px;
  height: 10px;
  border: 2px solid color-mix(in srgb, var(--meal-color) 72%, #ffffff);
  border-radius: 50%;
  background: #fffef8;
}

.meal-time {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translateX(-8px);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.meal-card--extra::before {
  top: 12px;
}

.meal-time .meal-dot {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  background: var(--meal-color, var(--terracotta));
  color: #fff;
  box-shadow: 0 12px 22px rgba(18, 77, 91, 0.13);
}

.meal-time .meal-dot.is-done {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.68), 0 12px 22px rgba(18, 77, 91, 0.13);
}

.meal-time .meal-dot svg {
  width: 1.36em;
  height: 1.36em;
}

.meal-body {
  min-width: 0;
}

.meal-kind {
  margin-bottom: 4px;
  color: var(--meal-color, var(--terracotta-deep));
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
}

.meal-body h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.22;
}

.meal-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.meal-title-row h3 {
  flex: 1;
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.22;
}

.meal-body p {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.36;
}

.meal-health,
.meal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meal-health {
  margin-bottom: 6px;
}

.meal-health span,
.meal-meta span,
.ingredient-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(104, 125, 52, 0.1);
  color: var(--olive-deep);
  font-size: 0.76rem;
  font-weight: 900;
}

.meal-meta span {
  background: rgba(244, 181, 30, 0.16);
  color: #7f6411;
}

.favorite-button,
.done-check {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf8;
  color: var(--muted);
}

.favorite-button svg,
.done-check svg {
  width: 14px;
  height: 14px;
}

.favorite-button:hover,
.done-check:hover {
  border-color: rgba(216, 95, 50, 0.4);
  color: var(--terracotta-deep);
}

.favorite-button.is-on {
  border-color: rgba(244, 181, 30, 0.55);
  background: var(--saffron-soft);
  color: #9a6b00;
}

.done-check.is-done {
  border-color: rgba(104, 125, 52, 0.35);
  background: var(--olive);
  color: #fff;
}

.meal-media {
  display: grid;
  justify-items: end;
  gap: 7px;
  width: clamp(150px, 16vw, 190px);
}

.meal-thumb {
  display: block;
  width: 100%;
  height: 92px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-soft);
  box-shadow: 0 8px 18px rgba(18, 77, 91, 0.08);
  line-height: 0;
}

.meal-thumb img {
  display: block;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.meal-thumb-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 7px;
  min-height: 26px;
}

.meal-thumb-actions--static {
  visibility: hidden;
}

.meal-open {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  color: var(--olive);
}

.meal-open:hover {
  color: var(--terracotta-deep);
  transform: translateX(2px);
}

.meal-open--static {
  opacity: 0.75;
}

/* ============================================================
   Rail de droite
   ============================================================ */

.spread__side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto minmax(164px, auto) minmax(0, 1fr);
  gap: 14px;
  align-self: stretch;
  position: sticky;
  top: 92px;
}

.side-card {
  min-height: 164px;
  padding: 18px 20px;
  border-color: rgba(194, 218, 221, 0.68);
  border-radius: 18px;
  background: rgba(252, 255, 250, 0.9);
}

.side-card--photo {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.side-card--photo img {
  width: 100%;
  height: clamp(230px, 20vw, 290px);
  object-fit: cover;
  object-position: 56% center;
}

.side-card .kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--olive);
}

.side-card__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--sea);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.side-card__label [data-icon] {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.side-card__label svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.side-card__label--plain {
  color: var(--olive);
  font-size: 0.9rem;
}

.side-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.hydration__today {
  margin: -7px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.hydration__count {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.hydration__count .muted {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.tiny-controls {
  display: flex;
  gap: 6px;
}

.spread__side .tiny-button {
  width: 32px;
  height: 32px;
  border-color: var(--line);
  background: #fffdf8;
  color: var(--ink);
}

.water-glasses {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}

.glass {
  height: 32px;
  border: 1px solid rgba(45, 143, 193, 0.3);
  border-radius: 4px 4px 10px 10px;
  background: rgba(45, 143, 193, 0.08);
}

.glass.is-filled {
  background: linear-gradient(180deg, #80d1ef, var(--sea));
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.26);
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  margin: 2px auto 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--paper-strong) 68%, transparent 69%),
    conic-gradient(var(--olive) calc(var(--progress) * 1%), rgba(104, 125, 52, 0.13) 0);
  color: var(--olive-deep);
  transition: --progress 0.7s ease;
}

.progress-ring span {
  font-size: 1.45rem;
  font-weight: 900;
}

#progressHint {
  margin-bottom: 0;
  color: var(--ink-soft);
  text-align: center;
}

.side-card--tip {
  grid-column: 1 / -1;
  display: grid;
  min-height: 0;
  align-content: start;
  padding: 22px 22px 24px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.94), rgba(255, 253, 248, 0.7) 50%, rgba(255, 253, 248, 0.46)),
    url("assets/images/capri-lemon-hero.webp") center / cover;
}

.side-card--market {
  width: 100%;
  min-height: 0;
  margin-top: 16px;
  padding: 16px 20px 18px;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 252, 0.97), rgba(255, 255, 252, 0.92)),
    radial-gradient(circle at 82% 18%, rgba(246, 234, 138, 0.25), transparent 36%);
}

.side-card--tip hr {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(104, 125, 52, 0.18);
}

.side-card__focus {
  margin-bottom: 0;
  color: var(--olive-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.side-card__tip {
  margin-bottom: 0;
  color: var(--ink-soft);
}

/* ============================================================
   Recettes
   ============================================================ */

.daily-strips {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  margin-top: 16px;
}

.daily-strip {
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(194, 218, 221, 0.68);
  border-radius: 16px;
  background: rgba(252, 255, 250, 0.9);
  box-shadow: var(--shadow-soft);
}

.daily-strip > div {
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: 18px 24px;
}

.daily-strip h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: var(--olive-deep);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
}

.daily-strip h2 [data-icon] {
  display: inline-grid;
  place-items: center;
  color: var(--leaf);
}

.daily-strip p {
  max-width: 64ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.daily-strip--advice {
  background:
    linear-gradient(90deg, rgba(252, 255, 250, 0.96), rgba(252, 255, 250, 0.82) 56%, rgba(252, 255, 250, 0.42)),
    url("assets/images/recipes/day-03-snack.webp") right 33% center / cover;
}

.daily-strip--wellness {
  background:
    linear-gradient(90deg, rgba(235, 249, 250, 0.98), rgba(235, 249, 250, 0.8) 48%, rgba(235, 249, 250, 0.28)),
    url("assets/images/capri-lemon-hero.webp") right center / cover;
}

.daily-strip--wellness h2 {
  color: var(--terracotta-deep);
}

.daily-strip--wellness h2 [data-icon] {
  color: var(--saffron);
}

/* ============================================================
   Offre premium
   ============================================================ */

.premium-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.premium-copy,
.premium-compare,
.premium-notice,
.premium-page-card,
.premium-week,
.premium-list-card,
.premium-variant-card {
  border: 1px solid rgba(145, 188, 196, 0.62);
  border-radius: var(--radius);
  background: rgba(252, 255, 250, 0.92);
  box-shadow: var(--shadow-soft);
}

.premium-copy {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 100%;
  padding: clamp(24px, 3vw, 38px);
  background:
    linear-gradient(135deg, rgba(235, 249, 250, 0.96), rgba(252, 255, 250, 0.92) 58%, rgba(255, 245, 185, 0.65)),
    rgba(252, 255, 250, 0.92);
}

.premium-copy .section__title {
  max-width: 11ch;
  margin-bottom: 0;
}

.premium-badge {
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(104, 125, 52, 0.28);
  border-radius: 999px;
  background: rgba(255, 245, 185, 0.72);
  color: var(--olive-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-subtitle {
  max-width: 48ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.premium-price {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 0;
}

.premium-price strong {
  color: var(--terracotta-deep);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.92;
}

.premium-price span {
  color: var(--muted);
  font-weight: 800;
}

.premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.premium-checkout,
.premium-secondary,
.premium-print-button,
.premium-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(104, 125, 52, 0.35);
  border-radius: 999px;
  font-weight: 900;
}

.premium-checkout,
.premium-print-button {
  background: rgba(239, 224, 120, 0.9);
  color: var(--ink);
  box-shadow: 0 16px 30px rgba(96, 94, 30, 0.13);
}

.premium-checkout:hover,
.premium-print-button:hover {
  transform: translateY(-1px);
}

.premium-checkout[disabled],
.premium-checkout.is-loading {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.premium-secondary,
.premium-return {
  background: rgba(255, 255, 255, 0.7);
  color: var(--olive-deep);
}

.premium-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.premium-status.is-error {
  color: var(--tomato);
}

.premium-status.is-ok {
  color: var(--olive-deep);
}

.premium-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.premium-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(194, 218, 221, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.premium-card--featured {
  background:
    linear-gradient(145deg, rgba(255, 245, 185, 0.56), rgba(235, 249, 250, 0.84)),
    rgba(255, 255, 255, 0.7);
}

.premium-card span {
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.premium-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.premium-card ul,
.premium-notice p {
  margin-bottom: 0;
}

.premium-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
}

.premium-card li + li {
  margin-top: 7px;
}

.premium-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
}

.premium-notice {
  grid-column: 1 / -1;
  padding: 18px 22px;
  background:
    linear-gradient(90deg, rgba(252, 255, 250, 0.95), rgba(235, 249, 250, 0.9)),
    rgba(252, 255, 250, 0.92);
}

.premium-notice strong {
  display: block;
  margin-bottom: 7px;
  color: var(--olive-deep);
}

.premium-notice p {
  color: var(--ink-soft);
}

.premium-notice p + p {
  margin-top: 8px;
}

.premium-page {
  min-height: 100dvh;
  background: linear-gradient(112deg, #e8f4f3, #fbfdf8 58%, #fff5b9);
}

.premium-page-shell,
.premium-pack {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) 0;
}

.premium-page-card {
  padding: clamp(24px, 4vw, 42px);
}

.premium-page-card h1,
.premium-page-card h2,
.premium-pack-hero h1,
.premium-week h2,
.premium-list-card h2,
.premium-variant-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0;
}

.premium-page-card h1,
.premium-pack-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.premium-page-card p,
.premium-pack-hero p,
.premium-health-warning p,
.premium-week p,
.premium-list-card li,
.premium-variant-card p,
.premium-day span {
  color: var(--ink-soft);
}

.premium-page-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(145, 188, 196, 0.48);
  font-size: 0.92rem;
}

.premium-pack {
  display: grid;
  gap: 18px;
}

.premium-pack-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid rgba(145, 188, 196, 0.62);
  border-radius: 28px;
  background:
    linear-gradient(118deg, rgba(235, 249, 250, 0.96), rgba(252, 255, 250, 0.94) 58%, rgba(255, 245, 185, 0.74)),
    rgba(252, 255, 250, 0.92);
  box-shadow: var(--shadow);
}

.premium-calendar,
.premium-list-grid,
.premium-variant-grid {
  display: grid;
  gap: 16px;
}

.premium-week {
  padding: clamp(20px, 3vw, 28px);
}

.premium-week header {
  margin-bottom: 16px;
}

.premium-week h2,
.premium-list-card h2,
.premium-variant-card h2 {
  font-size: 1.28rem;
}

.premium-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.premium-day {
  display: grid;
  gap: 5px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(145, 188, 196, 0.45);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.premium-day strong {
  color: var(--terracotta-deep);
  font-weight: 900;
}

.premium-day span {
  font-size: 0.86rem;
  line-height: 1.35;
}

.premium-list-grid,
.premium-variant-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.premium-list-card,
.premium-variant-card {
  padding: 20px;
}

.premium-list-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.premium-list-card li {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(104, 125, 52, 0.1);
  font-size: 0.86rem;
  font-weight: 800;
}

.premium-health-warning {
  border-left: 5px solid var(--tomato);
}

.recipe-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recipe-card {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-align: left;
}

.recipe-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.recipe-card img {
  width: 100%;
  height: clamp(205px, 16vw, 250px);
  object-fit: cover;
  border-radius: 0;
}

.recipe-card div {
  padding: 16px 18px 18px;
}

.recipe-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.24;
}

.recipe-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

/* ============================================================
   Marché
   ============================================================ */

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

.market__topline .section__title {
  margin-bottom: 0;
}

.market-card__title {
  margin: 0;
  color: var(--tomato);
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.05;
}

.market-card__title span {
  color: var(--terracotta-deep);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 900;
}

.market__scope {
  margin: 3px 0 8px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--olive-deep);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.switch input {
  width: 17px;
  height: 17px;
  accent-color: var(--terracotta);
}

.switch__track {
  display: none;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.category-tab {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(104, 125, 52, 0.1);
  color: var(--olive-deep);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.category-tab:hover,
.category-tab.is-selected {
  background: var(--terracotta-deep);
  color: #fff;
}

.shopping-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 1fr);
  grid-template-rows: 1fr;
  gap: 0;
  overflow-x: auto;
  border-top: 1px solid rgba(216, 95, 50, 0.14);
  border-bottom: 1px solid rgba(216, 95, 50, 0.1);
  border-radius: 0;
  scrollbar-width: thin;
}

.shopping-item {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 4px;
  align-items: center;
  min-width: 96px;
  min-height: 92px;
  padding: 8px 8px 9px;
  border-right: 1px solid rgba(216, 95, 50, 0.16);
  border-radius: 0;
  text-align: center;
}

.ingredient-art {
  display: grid;
  place-items: center;
  width: 60px;
  height: 46px;
  overflow: hidden;
}

.ingredient-art img {
  filter: drop-shadow(0 6px 9px rgba(18, 77, 91, 0.1));
}

.shopping-copy {
  display: grid;
  justify-items: center;
  max-width: 100%;
}

.shopping-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopping-copy > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.shopping-arrow {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  min-height: 92px;
  padding: 0;
  border-right: 1px solid rgba(216, 95, 50, 0.16);
  background: linear-gradient(90deg, rgba(255, 255, 252, 0.98), rgba(255, 255, 252, 0.78));
  color: var(--muted);
}

.shopping-arrow--next {
  right: 0;
  left: auto;
  border-right: 0;
  border-left: 1px solid rgba(216, 95, 50, 0.16);
  background: linear-gradient(270deg, rgba(255, 255, 252, 0.98), rgba(255, 255, 252, 0.78));
}

.shopping-arrow [data-icon] {
  font-size: 1.15rem;
}

.shopping-arrow:not(.shopping-arrow--next) [data-icon] {
  transform: rotate(180deg);
}

.shopping-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
}

/* ============================================================
   Pied de page et dialogue
   ============================================================ */

.colophon {
  margin-left: 0;
  padding: 46px clamp(20px, 4vw, 54px) 60px;
  color: var(--ink);
}

.colophon__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.colophon__title {
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.colophon__meta,
.colophon__small {
  margin-bottom: 4px;
  color: var(--ink-soft);
}

.recipe-dialog {
  width: min(1080px, 92vw);
  max-height: 92dvh;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(194, 218, 221, 0.88);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 252, 0.96), rgba(246, 251, 246, 0.96)),
    radial-gradient(circle at 74% 8%, rgba(246, 234, 138, 0.14), transparent 38%);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(18, 77, 91, 0.22);
}

.recipe-dialog::backdrop {
  background: rgba(15, 47, 58, 0.34);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--saffron-deep);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(18, 77, 91, 0.16);
}

.dialog-close:hover {
  background: #fffef8;
  color: var(--terracotta-deep);
  transform: translateY(-1px);
}

.dialog-hero {
  position: relative;
  height: clamp(330px, 44dvh, 480px);
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.dialog-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 31, 37, 0.04) 28%, rgba(10, 31, 37, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 31, 37, 0.38), transparent 62%);
}

.dialog-hero__copy {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 56px);
  bottom: clamp(24px, 4dvh, 42px);
  left: clamp(24px, 5vw, 56px);
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.dialog-hero__copy span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialog-hero__copy h2 {
  max-width: min(22ch, 82%);
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.02;
}

.dialog-body {
  padding: clamp(28px, 4dvh, 44px) clamp(28px, 5vw, 58px) clamp(36px, 5dvh, 58px);
}

.dialog-body h3 {
  margin: 28px 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}

.dialog-body p,
.dialog-health-notes p,
.recipe-steps li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.dialog-meta,
.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-meta span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
}

.dialog-meta {
  margin-top: 22px;
  padding: 13px 16px;
  border: 1px solid rgba(145, 188, 196, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 252, 0.72);
}

.dialog-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--muted);
}

.dialog-health-notes {
  display: grid;
  gap: 12px;
}

.dialog-health-notes article {
  padding: 15px 18px;
  border-left: 4px solid var(--tomato);
  border-radius: 12px;
  background: rgba(104, 125, 52, 0.08);
}

.dialog-health-notes strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.dialog-health-notes p {
  margin-bottom: 0;
}

.recipe-steps {
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
  list-style: decimal;
}

.data-error {
  max-width: 760px;
  margin: 80px auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ============================================================
   États et responsive
   ============================================================ */

.is-compact .meal-health,
.is-compact .meal-body p,
.is-compact .side-card--tip {
  display: none;
}

.is-compact .meal-thumb {
  height: 70px;
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 0px;
  }

  .brand__text {
    display: inline;
  }

  .topbar {
    gap: 16px;
    padding-inline: 18px;
  }

  .topnav {
    justify-content: start;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .topnav a {
    width: auto;
    min-width: max-content;
    min-height: 34px;
    padding: 0 0 7px;
    font-size: 0.68rem;
  }

  .topnav a > span:last-child {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .topnav a [data-icon] {
    display: none;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .cover,
  .spread__layout,
  .manifesto__body,
  .health-columns,
  .premium-shell {
    grid-template-columns: 1fr;
  }

  .spread__side {
    grid-template-rows: auto;
    position: static;
  }

  .premium-compare,
  .premium-pack-hero,
  .premium-list-grid,
  .premium-variant-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .daily-strips {
    grid-template-columns: 1fr;
  }

  .recipe-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --sidebar: 0px;
  }

  body {
    padding-top: 0;
  }

  [id] {
    scroll-margin-top: 82px;
  }

  main,
  .colophon {
    margin-left: 0;
  }

  .topbar {
    inset: 0 0 auto 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: auto;
    min-height: 68px;
    height: 68px;
    padding: 10px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

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

  .topbar::before,
  .topbar__actions {
    display: none;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 1.4rem;
  }

  .topnav {
    display: flex;
    gap: 8px;
  }

  .topnav a {
    width: auto;
    min-width: max-content;
    min-height: 42px;
    padding: 0 10px;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .topnav a > span:last-child {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .topnav a [data-icon] {
    flex-basis: 18px;
    font-size: 1rem;
  }

  .cover {
    display: grid;
    min-height: 100svh;
    padding: 98px 18px 58px;
  }

  .cover__bg {
    min-height: 100%;
    margin-top: 0;
  }

  .cover__bg img,
  .cover__bg video {
    min-height: 100%;
    object-position: 60% center;
  }

  .cover__title {
    max-width: 100%;
    font-size: clamp(3rem, 13vw, 3.75rem);
    line-height: 0.96;
  }

  .cover__plate {
    gap: 18px;
  }

  .cover__row {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }

  .cover__top {
    gap: 8px;
  }

  .cover__top::before,
  .cover__top::after {
    flex-basis: 28px;
  }

  .cover__sub {
    max-width: 31ch;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .cover__bottom {
    flex-direction: column;
    gap: 16px;
  }

  .cover__bottom::before {
    display: none;
  }

  .cover__cue {
    min-height: 42px;
    padding: 0 18px;
  }

  .section {
    padding: 28px 14px;
  }

  .section__title {
    font-size: 2.4rem;
  }

  .principles,
  .week-tabs,
  .spread__header,
  .spread__side,
  .recipe-cards {
    grid-template-columns: 1fr;
  }

  .week-tabs {
    display: flex;
    overflow-x: auto;
  }

  .day-tab {
    flex: 0 0 116px;
  }

  .spread__header {
    align-items: start;
    padding: 18px;
  }

  .spread__stats {
    justify-items: start;
    text-align: left;
  }

  .meal-timeline {
    padding: 18px 14px;
  }

  .meal-timeline__header {
    display: grid;
    gap: 12px;
  }

  .meal-timeline__header h2 {
    font-size: 1.72rem;
  }

  .meal-timeline__recipes {
    width: max-content;
    max-width: 100%;
    white-space: normal;
  }

  .meal-timeline__list::before {
    left: 48px;
  }

  .meal-card {
    grid-template-columns: 64px minmax(0, 1fr) 30px;
    gap: 12px;
    align-items: start;
    min-height: 0;
  }

  .meal-card::before {
    top: 9px;
    left: 43px;
  }

  .meal-time .meal-dot {
    width: 56px;
    height: 56px;
  }

  .meal-time > span:last-child {
    font-size: 0.86rem;
  }

  .meal-media {
    grid-column: 2 / 4;
    width: 100%;
  }

  .meal-thumb {
    height: 150px;
  }

  .meal-open {
    grid-column: 3;
    grid-row: 1;
  }

  .side-card--market {
    padding: 16px 18px 18px;
  }

  .side-card--market .market__topline {
    align-items: flex-start;
  }

  .side-card--market .shopping-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(82px, 1fr);
    grid-template-columns: none;
    grid-template-rows: 1fr;
  }

  .recipe-dialog {
    width: calc(100vw - 18px);
    max-height: 94dvh;
  }

  .dialog-hero {
    height: clamp(260px, 38dvh, 360px);
  }

  .dialog-hero__copy h2 {
    max-width: 94%;
    font-size: clamp(1.65rem, 8vw, 2.45rem);
  }

  .dialog-body {
    padding: 24px 20px 32px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .topbar,
  .cover,
  .spread__side,
  .link-arrow,
  .recipe-card,
  .section--manifesto,
  .section--health,
  .section--week,
  .section--recipes,
  .section--market,
  .side-card--market,
  .colophon,
  .favorite-button,
  .done-check,
  .meal-open {
    display: none !important;
  }

  main {
    margin-left: 0;
  }

  .section {
    padding: 0;
  }

  .meal-timeline,
  .spread__header {
    border: 0;
    box-shadow: none;
  }

  .premium-page,
  .premium-pack-page {
    background: #fff !important;
  }

  .premium-page-shell,
  .premium-pack {
    width: 100%;
    padding: 0;
  }

  .premium-pack {
    gap: 12px;
  }

  .premium-pack-hero,
  .premium-page-card,
  .premium-week,
  .premium-list-card,
  .premium-variant-card {
    break-inside: avoid;
    border-color: #bbb;
    box-shadow: none !important;
    background: #fff !important;
  }

  .premium-print-button,
  .premium-return {
    display: none !important;
  }

  .premium-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
