/* cookIT — références approuvées le 22 octobre 2026.
   Socle et vues de navigation. Lecture, formulaires et cuisine : lecture.css. */
:root {
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --display: var(--body);
  --papier: #F8F9F6; --blanc: #FFFFFF; --encre: #193A3D; --gris: #EEF3EF;
  --ground: var(--papier); --surface: var(--blanc); --surface-2: var(--gris); --paper: var(--blanc);
  --ink: var(--encre); --ink-2: #596B6B; --ink-3: #596B6B;
  --accent: #B44732; --tomate: #B44732; --tomate-lu: #B44732;
  --filet: #7C9390; --edge: #7C9390; --edge-soft: #DCE4DE;
  --selection: #E8F0EB; --selection-ink: #193A3D; --focus: #245CA7;
  --shadow-sm: none; --shadow-md: none; --shadow-lg: none; --shadow-bas: none;
  --filet-w: 1px; --filet-w2: 1px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 10px;
  --station-w: 176px; --view-max: 1360px; --gutter: 28px;
  --motion-short: 120ms; --motion-content: 180ms;
  color-scheme: light;
}
[data-theme="dark"] {
  --papier: #111A1B; --blanc: #192526; --encre: #EEF3EF; --gris: #223334;
  --ground: var(--papier); --surface: var(--blanc); --surface-2: var(--gris); --paper: var(--blanc);
  --ink: var(--encre); --ink-2: #B1BEBA; --ink-3: #B1BEBA;
  --accent: #E58771; --tomate-lu: #E58771; --edge: #7F9690; --filet: #7F9690; --edge-soft: #374C48;
  --selection: #29443F; --selection-ink: #EEF3EF; --focus: #9FC9FF;
  color-scheme: dark;
}
body { font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
:focus-visible, .field:focus-visible, .tri__choix:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: none; }
.field:focus { border-color: var(--focus); box-shadow: none; }
::selection { background: var(--selection); color: var(--selection-ink); }
.display { font-family: var(--body); font-size: 32px; line-height: 1.16; font-weight: 730; letter-spacing: -.035em; }
.wordmark { font-family: var(--body); font-size: 26px; font-weight: 750; letter-spacing: -.055em; }
.wordmark em { color: var(--tomate-lu); }
.ic { stroke-width: 1.7; flex-shrink: 0; }
.ic--back { transform: rotate(180deg); }
.btn { min-height: 44px; font-weight: 600; font-size: 15px; border-radius: 12px; white-space: normal; justify-content: center; line-height: 1.35; border-color: var(--edge-soft); }
.btn, .icon-btn, .nav-item, .field, .tri, .role, .card { box-shadow: none; transform: none; }
.btn, .icon-btn, .nav-item, .tab { transition: background-color var(--motion-short), color var(--motion-short), border-color var(--motion-short); }
.btn:active, .btn--quiet:active, .role:hover, .role:focus-visible { transform: none; box-shadow: none; }
.btn--primary, [data-theme="dark"] .btn--primary, .btn--hero { --btn-bg: #B44732; --btn-fg: #FFFFFF; --btn-edge: #B44732; }
.btn--primary:hover, [data-theme="dark"] .btn--primary:hover { --btn-bg: #973B29; --btn-edge: #973B29; }
.btn--primary:active { --btn-bg: #873522; --btn-edge: #873522; }
.icon-btn { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }
.field { min-height: 48px; border-color: var(--edge-soft); background: var(--surface); border-radius: 12px; font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lede { font-size: 14px; font-weight: 400; line-height: 1.5; margin-top: 8px; }
.pastille, .pastille:nth-child(even) { transform: none; font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: 0; border: 0; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); box-shadow: none; }
.pastille--pick { min-height: 44px; padding: 10px 12px; }
.pastille--pick.is-on { background: var(--selection); color: var(--ink); }
.rond, .gommette { box-shadow: none; transform: none; }
.rond { border: 1px solid var(--edge-soft); background: transparent; color: var(--ink-2); min-width: 44px; min-height: 44px; }
.rond:hover { background: var(--selection); }

/* Coque : une seule ligne de commandes, puis le contenu. */
.shell { min-height: 0; }
.station { border-right: 1px solid var(--edge-soft); padding: 24px 12px 16px; min-height: 0; overflow-y: auto; }
.station .wordmark { padding: 0 10px 28px; }
.station__nav { gap: 8px; }
.nav-item { min-height: 48px; padding: 12px 10px; gap: 10px; border: 0; font-family: var(--body); font-size: 14px; font-weight: 500; }
.nav-item:hover { background: var(--surface-2); border: 0; }
.nav-item.is-active, [data-theme="dark"] .nav-item.is-active { background: var(--selection); color: var(--selection-ink); border: 0; box-shadow: none; font-weight: 650; }
.station .raccourcis, .station__nav .badge, .tabbar .badge { display: none; }
.station__foot { gap: 4px; }
.ghost-item { min-height: 44px; font-size: 13px; font-weight: 500; }
.who { border-top: 1px solid var(--edge-soft); }
.canvas { min-width: 0; min-height: 0; overflow-x: hidden; scroll-behavior: auto; scroll-padding-bottom: 24px; }
.canvas__head { padding-block: 4px; background: var(--ground); border-bottom: 0; }
.canvas__head-inner { min-width: 0; min-height: 44px; gap: 6px; }
.canvas__head .omni { flex: 0 1 340px; margin-right: auto; min-height: 44px; background: transparent; border: 0; padding: 10px 0; box-shadow: none; }
.canvas__head .omni:hover { color: var(--ink); }
.omni__label { overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.omni .kbd { display: none; }
.canvas__head #new-dish { background: transparent; border-color: transparent; color: var(--ink); padding: 10px; }
.canvas__head #new-dish .ic { width: 21px; height: 21px; }
.mobile-wordmark { display: none; }
.canvas__head .sync { display: none; }
.canvas__head .sync:is(.is-pending,.is-offline,.is-rejected) { display: inline-flex; min-height: 44px; font-size: 12px; border: 0; color: var(--ink-2); }
.view { min-width: 0; padding-top: 20px; animation: none; }
.tri, .tri__choix { max-width: 100%; }
.carnet__head { margin-bottom: 16px; }

/* La période garde un seul propriétaire DOM lors des changements de vue. */
.calendar-period { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px 44px; align-items: center; gap: 0; width: 100%; max-width: 520px; margin: 4px 0 0; }
.calendar-period > [data-calendar-label] { text-align: center; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.period-options { position: relative; }
.period-options > summary, .recipe-menu > summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.period-options summary::-webkit-details-marker, .recipe-menu summary::-webkit-details-marker { display: none; }
.period-options[open] > summary { background: var(--selection); }
.calendar-period__choices { position: absolute; right: 0; top: 48px; z-index: 15; display: grid; gap: 4px; min-width: 200px; padding: 8px; border: 1px solid var(--edge-soft); border-radius: 12px; background: var(--surface); box-shadow: 0 4px 16px #10292312; }
.calendar-period__choices .btn { justify-content: flex-start; }
.calendar-period button[aria-pressed="true"] { background: var(--selection); color: var(--ink); }
[data-period-host="courses"], [data-period-host="seance"] { margin-block: 4px 20px; }
#week-dates { display: none; }

/* Semaine : le repas sélectionné et les autres services ne se dupliquent pas. */
.week-layout { display: grid; grid-template-columns: minmax(260px,.78fr) minmax(0,1.45fr); grid-template-rows: max-content 1fr; gap: 0 28px; align-items: start; }
.week-heading { grid-column: 1; grid-row: 1; display: block; margin-bottom: 12px; }
.week-heading .lede { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.week-agenda { grid-column: 1; grid-row: 2; min-width: 0; }
.week-agenda__title { display: none; }
.week-days { display: none; }
.week { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.wday, .wday.is-today, .wday.is-empty, .wday--loose { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 0 8px; border: 0; border-bottom: 1px solid var(--edge-soft); border-radius: 0; background: transparent; padding: 10px 0; }
.wday__head { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; margin: 0; min-width: 0; }
.wday__date { order: 1; font-family: var(--body); font-size: 16px; font-weight: 650; line-height: 1.4; }
.wday__name { font-family: var(--body); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: capitalize; }
.wday__head .spacer { display: none; }
.wday__add { display: none; }
.wday.is-empty { min-height: 72px; grid-template-columns: 66px minmax(0,1fr); }
.wday.is-empty .wday__head { display: contents; }
.wday.is-empty .wday__date { grid-column: 1; grid-row: 2; align-self: start; }
.wday.is-empty .wday__name { grid-column: 1; grid-row: 1; align-self: end; }
.wday.is-empty .wday__add { display: flex; grid-column: 2; grid-row: 1/span 2; align-self: center; gap: 10px; padding: 0 4px; min-height: 52px; font-size: 14px; font-weight: 400; color: var(--ink-2); text-align: left; }
.wday.is-empty .wday__add .ic { padding: 10px; width: 44px; height: 44px; border: 1px solid var(--edge-soft); border-radius: 10px; }
.wdish { grid-column: 2; display: grid; grid-template-columns: 56px minmax(0,1fr) 44px; min-width: 0; gap: 8px; padding: 6px; border: 0; border-radius: 10px; background: transparent; }
.wdish.is-selected { background: var(--selection); }
.wdish__thumb { width: 56px; height: 64px; border: 0; border-radius: 8px; object-fit: cover; }
.wdish__thumb--vide { background: var(--surface-2) !important; }
.wdish__texte { gap: 0; justify-content: center; }
.wdish__nom { font-family: var(--body); font-weight: 650; font-size: 14px; white-space: normal; line-height: 1.35; text-align: left; min-height: 44px; padding: 0; }
.wdish__reglages { max-width: 100%; font-size: 12px; font-weight: 400; min-height: 28px; }
.wdish__resume { white-space: normal; overflow-wrap: anywhere; }
.wdish__resume b { color: var(--ink-2); font-weight: 400; }
.wdish__gestes { align-items: center; }
.wdish__gestes .rond { border: 0; padding: 0; min-width: 44px; width: 44px; min-height: 44px; }
.week-options { font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.week-options summary { min-height: 44px; padding-block: 12px; cursor: pointer; }
.week-options .carnet__tools { margin-top: 8px; flex-wrap: wrap; }
.repas { grid-column: 2; grid-row: 1/span 2; display: flex; flex-direction: column; position: sticky; top: 64px; border: 0; border-left: 1px solid var(--edge-soft); background: transparent; margin: 0; padding-left: 28px; border-radius: 0; overflow: visible; min-width: 0; }
.repas__heading { margin: 0 0 14px; font-size: 16px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.repas__heading span { text-transform: capitalize; }
.repas__heading strong { color: var(--accent); font-size: 16px; font-weight: 650; }
.repas__photo { width: 100%; aspect-ratio: 2; height: auto; min-height: 0; border: 0; border-radius: 16px; object-fit: cover; }
.repas__photo--vide { background: var(--surface-2); color: var(--ink-2); display: grid; place-content: center; justify-items: center; gap: 10px; font-size: 14px; }
.repas__photo--vide .ic { width: 28px; height: 28px; }
.repas__corps { display: flex; flex-direction: column; padding: 14px 0 0; gap: 8px; }
.repas__nom { font-family: var(--body); font-size: 30px; font-weight: 730; line-height: 1.18; letter-spacing: -.03em; margin: 0; }
.repas__nom .card__open { font: inherit; color: inherit; text-align: left; line-height: inherit; }
.repas__quand { align-self: flex-start; font-size: 15px; font-weight: 400; min-height: 44px; margin: -4px 0 0; color: var(--ink-2); }
.repas__actions { display: grid; grid-template-columns: 1.25fr 1fr 1.2fr; gap: 8px; margin-top: 0; }
.repas__actions .btn { min-height: 48px; padding-inline: 10px; font-size: 14px; }
.repas__suite { margin-block: 8px; }
.repas__plat { border-color: var(--edge-soft); font-family: var(--body); border-radius: 8px; }
.repas__recipe { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; border-top: 1px solid var(--edge-soft); padding-top: 24px; margin-top: 20px; }
.repas__recipe h3 { margin: 0 0 12px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.repas__recipe .muted { font-size: 12px; margin: -6px 0 8px; }
.repas__recipe .recipe-steps { font-size: 14px; }
.repas__recipe .recipe-steps li { padding-left: 30px; margin-bottom: 16px; }
.repas__recipe .recipe-steps li::before { width: 22px; height: 22px; font-size: 12px; }
.repas__recipe .btn { font-size: 13px; padding-inline: 0; justify-content: flex-start; }
.repas__about { border-top: 1px solid var(--edge-soft); margin-top: 16px; padding-top: 16px; font-size: 14px; line-height: 1.65; }
.repas__about h3 { font-size: 16px; margin: 0 0 8px; }
.repas__about p { margin: 0 0 8px; }
.repas__empty { padding: 32px 20px; background: var(--surface-2); border-radius: 16px; text-align: center; }
.repas__empty > .ic { width: 32px; height: 32px; margin-bottom: 12px; color: var(--ink-2); }
.repas__empty h2 { font-size: 24px; font-weight: 650; letter-spacing: -.025em; margin: 0 0 8px; }
.repas__empty p { font-size: 15px; margin: 0 auto 24px; max-width: 28ch; color: var(--ink-2); }
.repas__empty .btn { min-height: 48px; }
.oublie { background: transparent; border: 1px solid var(--edge-soft); border-radius: 12px; box-shadow: none; padding: 16px; margin-top: 24px; }
.oublie .gommette { display: none; }
.oublie__quoi, .oublie__plats { font-family: var(--body); font-size: 14px; }
.balance { font-size: 13px; border-top: 0; margin-top: 24px; }
.strip { margin-top: 32px; }
.strip__title { font-family: var(--body); font-size: 20px; font-weight: 650; }
.strip__note { font-family: var(--body); font-weight: 400; font-size: 13px; }

/* Carnet : image et titre ouvrent la fiche ; cœur et planification sont indépendants. */
#view-ideas { max-width: var(--view-max); }
.carnet-layout { display: grid; grid-template-columns: minmax(280px,.9fr) minmax(0,1.1fr); gap: 36px; align-items: start; }
.carnet-list { min-width: 0; }
#view-ideas .carnet__head { display: block; margin-bottom: 12px; }
#view-ideas .carnet__head > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
#carnet-count { font-size: 13px; line-height: 1.5; margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
#view-ideas .carnet__tools { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
.carnet-search { position: relative; flex: 1; min-width: 0; }
.carnet-search .field { width: 100%; padding-right: 48px; }
.carnet-search .field::-webkit-search-cancel-button { -webkit-appearance: none; }
.carnet-search .icon-btn { position: absolute; top: 2px; right: 2px; }
#open-filtres { width: 48px; flex: 0 0 48px; padding: 10px; }
.carnet-filterbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; }
.carnet-tabs { display: flex; gap: 8px; margin: 0; }
.carnet-tabs .btn { min-width: 88px; padding-inline: 14px; font-size: 14px; font-weight: 500; border-color: var(--edge-soft); background: transparent; }
.carnet-tabs .is-on { background: var(--selection); border-color: transparent; color: var(--ink); }
.carnet-options { font-size: 13px; color: var(--ink-2); margin: 0; }
.carnet-options summary { cursor: pointer; min-height: 44px; padding-block: 12px; white-space: nowrap; }
.carnet-options__body { position: absolute; z-index: 10; right: 0; top: 48px; width: min(540px,calc(100vw - 40px)); max-height: 60dvh; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--edge-soft); border-radius: 12px; box-shadow: 0 4px 16px #10292312; }
.carnet-options__body > nav, .carnet-options__body > .carnet-collections { flex-basis: 100%; }
.carnet-sections, .carnet-collections { flex-wrap: wrap; gap: 8px; }
.carnet-collections .field { min-width: 0; max-width: 100%; }
#view-ideas #dish-grid { display: grid; grid-template-columns: minmax(0,1fr); margin-top: 16px; gap: 18px; }
#view-ideas .card { border: 0; border-bottom: 1px solid var(--edge-soft); border-radius: 0; padding: 0 0 16px; overflow: visible; background: transparent; cursor: default; box-shadow: none; }
#view-ideas .card:hover, #view-ideas .card.is-sent { transform: none; box-shadow: none; }
#view-ideas .card.is-selected .card__visual { outline: 2px solid var(--selection-ink); outline-offset: 3px; border-radius: 16px; }
.card__visual { position: relative; }
.card__photo { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 2.5; background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
#view-ideas .card__cover { display: block; width: 100%; height: 100%; aspect-ratio: auto; border: 0; object-fit: cover; }
.card__photo-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; font-size: 14px; }
.card__photo-placeholder .ic { width: 28px; height: 28px; }
#view-ideas .card__body { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 8px; padding: 8px 0 0; }
.card__heading { grid-column: 1/-1; min-width: 0; display: block; }
#view-ideas .card__title { margin: 0; font-family: var(--body); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
#view-ideas .card__open { font: inherit; color: var(--ink); text-align: left; padding: 0; min-height: 44px; width: 100%; }
#view-ideas .card__fav { position: absolute; top: 8px; right: 8px; left: auto; margin: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); }
#view-ideas .card__fav.is-on { color: var(--accent); }
#view-ideas .card__meta { grid-column: 1; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.4; }
#view-ideas .card__pastilles { display: flex; grid-column: 1/-1; grid-row: 2; gap: 4px 8px; flex-wrap: wrap; margin: 2px 0 8px; color: var(--ink-2); }
#view-ideas .card__pastilles .pastille { min-height: 0; padding: 0; background: none; color: inherit; font-size: 12px; text-transform: none; }
#view-ideas .card__pastilles .pastille:nth-child(n+3) { display: none; }
#view-ideas .card__pastilles .pastille + .pastille::before { content: '·'; margin-right: 8px; }
#view-ideas .card__actions { grid-column: 2; grid-row: 3; align-self: center; display: flex; margin: 0; }
#view-ideas .card__actions .btn { font-size: 14px; padding: 8px 12px; background: var(--surface-2); border: 0; color: var(--ink); flex: none; }
#view-ideas .card__actions .btn .ic { width: 18px; height: 18px; }
.card__feedback { grid-column: 1/-1; margin: 8px 0 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.card__feedback.is-refused { color: var(--accent); }
.card__feedback .btn { margin-top: 8px; }
#view-ideas .idee { position: static; display: block; width: auto; height: auto; margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--edge-soft); border-radius: 12px; background: var(--surface); color: var(--ink); font-family: var(--body); font-size: 14px; transform: none; box-shadow: none; }
.carnet-loading { min-height: 0; aspect-ratio: 2.3; margin-top: 16px; border-radius: 16px; background: var(--surface-2); display: grid; place-items: center; }
.carnet-pagination { margin-top: 24px; text-align: center; font-size: 14px; }
.carnet-pagination p { margin: 0 0 12px; }
.recipe-preview { min-width: 0; border-left: 1px solid var(--edge-soft); padding-left: 28px; position: sticky; top: 72px; }
.recipe-preview__label { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; }
.recipe-preview h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.035em; margin: 0; overflow-wrap: anywhere; }
.recipe-preview__meta { color: var(--ink-2); font-size: 15px; margin: 10px 0 20px; }
.recipe-preview__description { font-size: 16px; line-height: 1.65; margin-block: 0 24px; white-space: pre-line; }
.recipe-preview__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.recipe-preview__actions .btn { min-height: 48px; }
.recipe-preview section { border-top: 1px solid var(--edge-soft); padding-top: 20px; }
.recipe-preview h3 { font-size: 18px; margin: 0 0 10px; }
.recipe-preview ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.recipe-preview li { padding-block: 12px; border-bottom: 1px solid var(--edge-soft); }
.recipe-preview__notes { border-bottom: 1px solid var(--edge-soft); padding-block: 16px; font-size: 15px; }
.recipe-preview__notes summary { min-height: 44px; cursor: pointer; padding-top: 10px; }
.recipe-preview__notes p { white-space: pre-line; line-height: 1.65; }
.recipe-preview__source { margin-block: 20px 8px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }

/* Courses : une liste, des quantités alignées et des détails à la demande. */
#view-courses { max-width: 880px; }
#view-courses .carnet__head { align-items: flex-start; }
#view-courses .carnet__tools { justify-content: flex-end; gap: 8px; }
#view-courses .outils__large { display: none; }
#view-courses .outils__menu { display: inline-flex; }
#view-courses .courses__partir { min-height: 52px; }
.courses-actions { display: flex; gap: 8px; margin-bottom: 24px; }
.courses-actions .courses__partir { flex: 1; }
#view-courses .avancee { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 8px; margin: 16px 0 20px; }
.avancee .barre { flex: none; width: 100%; height: 8px; }
.barre { height: 8px; border: 0; background: var(--surface-2); border-radius: 8px; }
.barre i { background: #4C9C7F; border: 0; border-radius: inherit; transition: width var(--motion-content); }
.avancee__n { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
#shopping { columns: auto; }
#shopping .aisle { margin-bottom: 24px; }
#shopping .aisle__head { font-size: 18px; text-transform: none; letter-spacing: -.02em; border-bottom: 1px solid var(--edge-soft); padding-bottom: 12px; margin-bottom: 0; }
#shopping .aisle__head b { background: none; border: 0; padding: 0; font-family: var(--body); font-weight: 650; letter-spacing: 0; }
#shopping .aisle__head::after { display: none; }
#shopping .aisle__count { background: none; color: var(--ink-2); border: 0; height: auto; min-width: 0; padding: 0; margin-left: auto; font-size: 13px; }
#shopping .line { min-height: 56px; border-bottom: 1px solid var(--edge-soft); padding: 4px 0; gap: 4px; flex-wrap: nowrap; cursor: default; }
#shopping .line__check { flex-basis: auto; gap: 12px; min-height: 48px; }
#shopping .case { width: 24px; height: 24px; border-radius: 6px; border-width: 1.5px; }
#shopping .line__item { font-size: 16px; font-weight: 400; overflow-wrap: anywhere; }
#shopping .line__qty { font-family: var(--body); font-size: 15px; color: var(--ink-2); min-width: 48px; max-width: 30%; align-self: auto; padding-left: 8px; }
#shopping .line.is-done .line__item, #shopping .line.is-done .line__qty { opacity: 1; color: var(--ink-2); }
.line__options { position: relative; flex: 0 0 44px; }
.line__options summary { list-style: none; width: 44px; min-height: 44px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; border-radius: 8px; }
.line__options summary::-webkit-details-marker { display: none; }
.line__options summary:hover, .line__options[open] summary { background: var(--selection); }
.line__options > div { position: absolute; z-index: 5; top: 46px; right: 0; width: min(280px,65vw); padding: 16px; border: 1px solid var(--edge-soft); border-radius: 12px; background: var(--surface); box-shadow: 0 4px 16px #10292312; }
#shopping .line__ranger { margin-left: 0; }
.line__options p { margin: 0 0 12px; line-height: 1.6; }
.shopping-taken { margin-block: 20px; border: 0; }
.shopping-taken > summary { min-height: 48px; padding: 12px; font-weight: 600; font-size: 16px; background: var(--selection); border-radius: 10px; cursor: pointer; }
.shopping-taken > summary span { font-weight: 400; margin-left: 8px; }
.shopping-taken ul { padding: 12px 20px; line-height: 1.8; font-size: 14px; }
#view-courses .extra-form { max-width: none; border-top: 1px solid var(--edge-soft); padding-top: 20px; margin-top: 24px; gap: 8px; }
#view-courses .extra-form .field { flex: 1; min-width: 0; }

/* Séance : même vocabulaire de liste et de commandes. */
.choix { border: 1px solid var(--edge-soft); border-radius: 12px; background: var(--surface); }
.seance__h { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 18px; border-bottom: 1px solid var(--edge-soft); }
.sdish__name { font-family: var(--body); font-weight: 650; font-size: 20px; }
.sdish__meta { font-weight: 400; font-size: 14px; }
.sday { min-height: 44px; border: 1px solid var(--edge-soft); box-shadow: none; transform: none; font-family: var(--body); }
.sday.is-on { background: var(--selection); color: var(--ink); border-color: var(--edge); }
[data-role="invite"] [data-act="plan"], [data-role="invite"] #recipe-preview [data-act="cook"], [data-role="invite"] #recipe-preview [data-act="edit"], [data-role="invite"] .week-options { display: none; }

/* L'iPad portrait garde de vraies colonnes, sans réduire la lecture à des légendes. */
@media (min-width: 1000px) and (max-width: 1150px) {
  :root { --station-w: 164px; --gutter: 22px; }
  .week-layout { grid-template-columns: minmax(260px,.95fr) minmax(0,1.35fr); gap: 0 22px; }
  .repas, .recipe-preview { padding-left: 22px; }
  .repas__actions { grid-template-columns: 1fr 1fr; }
  .repas__actions .btn--primary { grid-column: 1/-1; }
  .repas__recipe { grid-template-columns: 1fr; gap: 20px; }
  .carnet-layout { gap: 24px; }
}
/* Un espace étroit devient une vue de lecture, jamais deux colonnes écrasées. */
@media (max-width: 999px) {
  .week-layout { display: flex; flex-direction: column; gap: 16px; }
  .week-heading { width: 100%; margin: 0; }
  .week-heading .calendar-period { max-width: none; }
  .week-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(44px,1fr); gap: 4px; width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom; scroll-snap-type: x proximity; }
  .week-days::-webkit-scrollbar { display: none; }
  .week-days__day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 44px; min-height: 60px; padding: 6px 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; scroll-snap-align: start; position: relative; }
  .week-days__day span { font-size: 12px; text-transform: capitalize; }
  .week-days__day b { font-size: 17px; font-weight: 650; }
  .week-days__day.is-selected { background: var(--selection); color: var(--ink); }
  .week-days__day.is-today::after { content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
  .repas { position: static; border: 0; padding: 0; width: 100%; }
  .repas__heading { font-size: 14px; font-weight: 400; margin-bottom: 10px; color: var(--ink-2); }
  .repas__nom { font-size: 27px; }
  .repas__actions { grid-template-columns: 1fr 1fr; gap: 4px 8px; }
  .repas__actions .btn--primary { grid-column: 1/-1; min-height: 52px; font-size: 17px; }
  .repas__actions .btn:not(.btn--primary) { border: 0; background: transparent; min-height: 44px; font-size: 14px; }
  .repas__recipe, .repas__about { display: none; }
  .week-agenda { width: 100%; border-top: 1px solid var(--edge-soft); padding-top: 16px; }
  .week-agenda__title { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.02em; margin: 0 0 6px; }
  .wday.is-before-active, .wday.is-only-featured { display: none; }
  .week .wdish.is-selected { display: none; }
  .wdish { grid-template-columns: 56px minmax(0,1fr) 44px; }
  .wdish__gestes .rond { min-width: 44px; width: 44px; }
  .wday__name { font-size: 13px; }
  .wdish__nom { font-size: 15px; }
  .carnet-layout { display: block; }
  .recipe-preview { display: none; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .station { display: none; }
  .shell { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; }
  .canvas__head { padding-block: 4px; }
  .canvas__head-inner { display: flex; gap: 4px; flex-wrap: nowrap; }
  .canvas__head .mobile-wordmark { display: block; margin: 0 auto 0 0; padding: 0; font-size: 24px; }
  .canvas__head .omni { flex: 0 0 44px; width: 44px; margin: 0; padding: 10px; justify-content: center; }
  .canvas__head .omni__label { display: none; }
  .canvas__head #new-dish { display: none; }
  .canvas__head .new-dish__label { display: none; }
  .canvas__head #open-account { display: grid; }
  .canvas__head .sync:is(.is-pending,.is-offline,.is-rejected) { max-width: 96px; font-size: 11px; line-height: 1.3; }
  [data-current-view="ideas"] .canvas__head .omni { display: none; }
  [data-current-view="ideas"] .canvas__head #new-dish { display: flex; width: 44px; min-width: 44px; padding: 10px; }
  .view { padding: 8px var(--gutter) 32px; }
  .week-layout { gap: 12px; }
  .tabbar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; background: var(--surface); border-top: 1px solid var(--edge-soft); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .tab { border: 0; font-family: var(--body); font-weight: 500; min-height: 56px; font-size: 12px; padding: 6px 2px; border-radius: 10px; gap: 3px; color: var(--ink-2); box-shadow: none; }
  .tab .ic { width: 23px; height: 23px; }
  .tab.is-active { background: var(--selection); color: var(--selection-ink); font-weight: 650; border: 0; box-shadow: none; }
  #view-courses .carnet__head { flex-wrap: wrap; gap: 14px; margin-bottom: 0; }
  #view-courses .carnet__tools { width: 100%; flex-wrap: nowrap; }
  #view-courses .courses__partir { flex: 1; }
  .recipe-preview { display: none; }
  .balance { margin-top: 20px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .display { font-size: 30px; }
  .calendar-period { grid-template-columns: 44px minmax(0,1fr) 44px 44px; }
  .calendar-period > [data-calendar-label] { font-size: 12px; }
  .carnet-tabs .btn { min-width: 74px; padding-inline: 12px; }
  .carnet-options summary { font-size: 12px; }
  #view-ideas .card__actions .btn { font-size: 13px; padding-inline: 10px; }
  #shopping .line__check { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
