:root {
  --green: #2E6A4A;
  --green-dark: #1F4D35;
  --green-deep: #27603F;
  --mint: #E3EEE6;
  --mint-ink: #1F5A37;
  --cream: #FBF6EE;
  --page: #F3F4EE;
  --ink: #1B241E;
  --soft: #5B665E;
  --line: #C9D0C4;
  --line-soft: #ECEEE7;
  --orange: #E0812B;
  --orange-soft: #FCE7CF;
  --orange-ink: #7A4106;
  --danger: #A3261B;
}

* { box-sizing: border-box; }
html { background: #DDE1D6; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Toujours le format téléphone, centré sur les grands écrans. */
.phone {
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--page);
  display: flex;
  flex-direction: column;
}
.phone.dark { background: var(--green); color: #FFFFFF; }

h1, .title {
  margin: 0;
  font-family: 'Bricolage Grotesque', Inter, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
h2 { margin: 0; font-size: 16px; font-weight: 700; }
p { margin: 0; line-height: 1.45; }
.soft { color: var(--soft); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.center { text-align: center; }

.top { display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 4px; }
.top-links { display: flex; align-items: center; justify-content: space-between; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.skip { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--soft); }
.progress { display: flex; align-items: center; gap: 10px; }
.progress-bar { flex: 1; height: 8px; border-radius: 4px; background: #DDE1D6; overflow: hidden; }
.progress-bar span { display: block; height: 8px; background: var(--green); border-radius: 4px; }
.progress-text { font-size: 14px; font-weight: 600; color: var(--soft); }

main.content { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 8px 16px 28px; }
form.content { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 8px 16px 28px; margin: 0; }

.card { background: #FFFFFF; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.tight { gap: 0; padding: 4px 16px; }
.note { background: var(--mint); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.note .label { font-size: 13px; font-weight: 700; color: var(--mint-ink); text-transform: uppercase; letter-spacing: 0.6px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 16px; font-weight: 700; }
.input {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #FFFFFF;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.input:focus { border-color: var(--green); }
select.input { appearance: auto; }
.error { color: var(--danger); font-size: 14px; font-weight: 600; }
.errors { background: #FBE9E7; color: var(--danger); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.status { background: var(--mint); color: var(--mint-ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
/* Confirmation en bulle en haut de l'écran : visible sans remonter, sans cacher les boutons du bas. */
.status.toast { position: fixed; left: 16px; right: 16px; top: calc(12px + env(safe-area-inset-top)); z-index: 30; max-width: 440px; margin: 0 auto; background: #1B241E; color: #FFFFFF; box-shadow: 0 6px 24px rgba(0, 0, 0, .22); animation: toast-in .2s ease-out both; cursor: pointer; }
.status.toast a { color: #CFE8D6; }
.status.toast-out { opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; width: 100%;
  border-radius: 14px; border: 0;
  background: var(--green); color: #FFFFFF;
  font: inherit; font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-dark); color: #FFFFFF; }
.btn.light { background: var(--cream); color: var(--green-dark); }
.btn.outline { background: transparent; border: 2px solid var(--green); color: var(--green-dark); min-height: 50px; font-size: 16px; }
.btn.small { min-height: 46px; width: auto; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.link-btn { border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--green-dark); text-decoration: underline; cursor: pointer; padding: 0; min-height: 44px; }
.push { margin-top: auto; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }

/* Pastilles : cases à cocher ou boutons radio stylés, sans JavaScript. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.chips.stack { flex-direction: column; align-items: stretch; }
.chips.stack .chip span { width: 100%; justify-content: flex-start; border-radius: 14px; padding: 10px 14px; text-align: left; line-height: 1.3; }
/* Choix avec titre et explication : en carte, le titre en gras, l'explication dessous. */
.chips.stack .chip span:has(> small) { flex-direction: column; align-items: flex-start; gap: 2px; }
.chips.stack .chip span > small { font-size: 13px; font-weight: 400; color: var(--soft); }
.chips.stack .chip input:checked + span > small { color: var(--mint-ink); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: #FFFFFF; color: #3F4842;
  font-size: 15px; font-weight: 600; cursor: pointer; user-select: none;
}
.chips.days .chip span { width: 100%; padding: 0; border-radius: 12px; min-height: 48px; font-size: 14px; font-weight: 700; }
.chip input:checked + span { background: var(--mint); color: var(--mint-ink); border-color: var(--green); }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.chip.add span, a.chip-add {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px dashed var(--green); background: transparent;
  color: var(--green-dark); font-size: 15px; font-weight: 600; text-decoration: none;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #FFFFFF;
  color: #3F4842; font-size: 15px; font-weight: 600; text-decoration: none;
}
.tab[aria-current="true"] { background: var(--mint); color: var(--mint-ink); border-color: var(--green); }

/* Interrupteurs : case à cocher stylée. */
.switch { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; border-bottom: 1px solid var(--line-soft); }
.switch:last-child { border-bottom: 0; }
.switch .text { flex: 1; display: flex; flex-direction: column; }
.switch .text b { font-size: 16px; font-weight: 600; }
.switch .text small { font-size: 13px; color: var(--soft); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 48px; height: 28px; flex: none; border-radius: 14px; background: var(--line); padding: 3px; display: flex; transition: background .15s; }
.switch .track::after { content: ""; width: 22px; height: 22px; border-radius: 11px; background: #FFFFFF; transition: transform .15s; }
.switch input:checked ~ .track { background: var(--green); }
.switch input:checked ~ .track::after { transform: translateX(20px); }
.switch input:focus-visible ~ .track { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Listes à cocher (magasins). */
.check-row { display: flex; align-items: center; gap: 12px; min-height: 60px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.check-row:last-child { border-bottom: 0; }
.check-row input { width: 24px; height: 24px; accent-color: var(--green); flex: none; }
.check-row .text { flex: 1; display: flex; flex-direction: column; }
.check-row .text b { font-size: 16px; font-weight: 600; }
.check-row .text small { font-size: 13px; color: var(--soft); }
.badge { font-size: 12px; font-weight: 700; color: var(--orange-ink); background: var(--orange-soft); border-radius: 999px; padding: 4px 8px; }

.group-title { font-size: 14px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: 0.6px; }

/* Autocomplétion des aliments. */
.autocomplete { position: relative; }
.autocomplete [role="listbox"] {
  position: absolute; left: 0; right: 0; top: 54px; z-index: 20;
  list-style: none; margin: 0; padding: 6px;
  background: #FFFFFF; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(27, 36, 30, 0.22);
}
.autocomplete [role="option"] { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 10px; border-radius: 10px; cursor: pointer; }
.autocomplete [role="option"][aria-selected="true"], .autocomplete [role="option"]:hover { background: var(--mint); }
.autocomplete [role="option"] b { flex: 1; font-size: 16px; font-weight: 600; }
.autocomplete [role="option"] small { font-size: 13px; color: var(--soft); }
.autocomplete .stacked [role="option"], .autocomplete [role="listbox"].stacked [role="option"] { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px 10px; }
.autocomplete [role="listbox"].stacked [role="option"] b { flex: none; }
.autocomplete [role="option"].propose { border-top: 1px solid var(--line-soft); border-radius: 0 0 10px 10px; color: var(--soft); font-size: 14px; }

/* Accueil et bienvenue. */
.hero { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 64px 24px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand span { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 36px; font-weight: 800; letter-spacing: -1.2px; }
.dark h1 { color: #FFFFFF; font-size: 34px; }
.dark .lead { font-size: 16px; color: #DCEBE1; }
.steps-list { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--green-deep); border-radius: 20px; }
.steps-list li { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.steps-list .n { width: 28px; height: 28px; border-radius: 14px; background: #346F50; color: var(--cream); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps-list .t { flex: 1; font-size: 16px; font-weight: 600; }
.steps-list .d { font-size: 14px; color: #CFE6D8; }
.bottom { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 36px; }
.dark .link-light { display: flex; align-items: center; justify-content: center; min-height: 48px; font-size: 15px; font-weight: 600; color: var(--cream); }

.banner { background: var(--green); color: #FFFFFF; padding: 36px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.banner h1 { color: #FFFFFF; font-size: 30px; }
.banner p { color: #DCEBE1; font-size: 15px; }
.banner .meta { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #CFE6D8; }

.meals { list-style: none; margin: 0; padding: 4px 16px; background: #FFFFFF; border-radius: 20px; }
.meals li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.meals li:last-child { border-bottom: 0; }
.meals .when { width: 84px; flex: none; font-size: 13px; font-weight: 700; color: var(--soft); }
.meals .what { font-size: 15px; font-weight: 600; }
.meals .what small { display: block; font-weight: 400; color: var(--soft); font-size: 13px; }

/* Menu de la semaine. */
.state { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--cream); color: var(--green-dark); font-size: 12px; font-weight: 700; }
.state.validated { background: var(--mint); }
.meal-card { background: #FFFFFF; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; scroll-margin-top: 16px; }
.meal-card.selected { border-color: var(--orange); }
.meal-card.past { opacity: .55; }
.meal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.meal-head .when { font-size: 13px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .4px; }
.meal-name { font-size: 18px; line-height: 1.25; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #E6E8E1; color: #3F4842; }
.tag.orange { background: var(--orange-soft); color: var(--orange-ink); }
.tag.green { background: var(--mint); color: var(--mint-ink); }
.meal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.meal-actions form { margin: 0; }
.pill-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--green); background: #FFFFFF; color: var(--green-dark); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.pill-btn[aria-expanded="true"] { background: var(--mint); }
.pill-btn.ghost { border-color: transparent; color: var(--soft); }
.btn.full { width: 100%; }
.choices { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.choices form { margin: 0; }
.choice { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; min-height: 56px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--page); font: inherit; color: var(--ink); cursor: pointer; }
.choice:hover { border-color: var(--green); background: var(--mint); }
.choice b { font-size: 16px; font-weight: 600; }
.choice small { font-size: 13px; color: var(--soft); }

/* Barre de navigation du bas. */
.tabbar { position: sticky; bottom: 0; display: flex; background: #FFFFFF; border-top: 1px solid var(--line-soft); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); z-index: 10; }
/* Clavier ouvert : la barre laisse la place aux suggestions (js/typing.js). */
body.typing .tabbar { display: none; }
body.typing .phone { padding-bottom: 50vh; } /* de quoi remonter un champ en bas de page */
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; font-size: 12px; font-weight: 600; color: var(--soft); text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--green-dark); }
.tabbar a.has-badge { position: relative; }
.tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #C0392B; color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.tab-badge.static { position: static; min-width: 10px; width: 10px; height: 10px; padding: 0; flex: none; }

/* « Il vous en reste ? » */
.base-row { display: flex; align-items: center; gap: 10px; min-height: 64px; border: 0; border-bottom: 1px solid var(--line-soft); margin: 0; padding: 8px 0; }
.base-row:last-child { border-bottom: 0; }
.base-row .text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.base-row .text b { font-size: 16px; font-weight: 600; }
.base-row .text small { font-size: 13px; color: var(--soft); }
.segmented { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; flex: none; }
.segmented label { position: relative; display: flex; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 14px; font-weight: 600; color: #3F4842; background: #FFFFFF; cursor: pointer; }
.segmented label + label span { border-left: 1.5px solid var(--line); }
.segmented input:checked + span { background: var(--mint); color: var(--mint-ink); }
.segmented input[value="no"]:checked + span { background: var(--orange-soft); color: var(--orange-ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: -3px; }

/* Liste de courses. */
.aisle { display: flex; flex-direction: column; gap: 6px; }
.shop-list { list-style: none; margin: 0; padding: 0 12px; background: #FFFFFF; border-radius: 20px; }
.shop-item { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 16px; }
.shop-item:last-child { border-bottom: 0; }
.shop-item form { margin: 0; }
.shop-check { flex: 1; min-width: 0; }
.shop-check button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.shop-check .box { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.shop-check .text { display: flex; flex-direction: column; min-width: 0; }
.shop-check b { font-size: 16px; font-weight: 600; }
.shop-check small { font-size: 13px; color: var(--soft); }
.shop-item.checked .box { background: var(--green); border-color: var(--green); }
.shop-item.checked .box::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid #FFFFFF; border-bottom: 2.5px solid #FFFFFF; transform: translateY(-2px) rotate(-45deg); }
.shop-item.checked b { text-decoration: line-through; color: var(--soft); }
.issue { min-height: 36px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.shop-item.missing .issue { background: #F9D9D6; border-color: #F9D9D6; color: #8E2419; }
.shop-item.missing b { color: #8E2419; }

/* Page d'avis (Magali). */
.segmented.wide { display: flex; width: 100%; background: #E6E8E1; border: 0; padding: 4px; border-radius: 14px; }
.segmented.wide a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--soft); text-decoration: none; }
.segmented.wide a[aria-current="true"] { background: #FFFFFF; color: var(--ink); }
.vote-card { background: #FFFFFF; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 16px; }
.vote-card .when { font-size: 13px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .4px; }
.vote-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vote-buttons form { margin: 0; }
.vote { width: 100%; min-height: 56px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; background: #FFFFFF; }
.vote.yes { border: 2px solid #B9CDBF; color: var(--green-dark); }
.vote.no { border: 2px solid #E5C3B2; color: #8A3410; }
.vote.yes[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.vote.no[aria-pressed="true"] { background: #9B3A12; border-color: #9B3A12; color: #FFFFFF; }
.tag.red { background: #F9D9D6; color: #8E2419; }
.family { display: flex; flex-direction: column; gap: 10px; }
.family-row { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.family-row:first-of-type { border-top: 0; padding-top: 0; }
.family-row .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.family-row .head b { font-size: 16px; }
.link-box { display: flex; gap: 8px; }
.link-box input { flex: 1; min-width: 0; min-height: 44px; font-size: 13px; }
.link-box[hidden] { display: none; }

/* Stock. */
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 5px; flex: none; }
.dot.red { background: #C0392B; }
.dot.orange { background: #E08A1E; }
.dot.green { background: #2E7D4F; }
.stock-list { list-style: none; margin: 0; padding: 0 14px; background: #FFFFFF; border-radius: 20px; }
.stock-list li { border-bottom: 1px solid var(--line-soft); }
.stock-list li:last-child { border-bottom: 0; }
.stock-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; color: var(--ink); text-decoration: none; }
.stock-row .text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stock-row b { font-size: 16px; font-weight: 600; }
.stock-row small { font-size: 13px; color: var(--soft); }
.tag.red { background: #F9D9D6; color: #8E2419; }
.sleep-row { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.sleep-row:first-of-type { border-top: 0; padding-top: 0; }
.sleep-row .text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sleep-row b { font-size: 16px; font-weight: 600; }
.sleep-row small { font-size: 13px; color: var(--soft); }
.sleep-row form { margin: 0; }
.pill-btn.on { background: var(--green); color: #FFFFFF; }

/* Fiche recette. */
.meal-link { color: inherit; text-decoration: none; }
.meal-link:hover { text-decoration: underline; color: inherit; }
.stepper-row { display: flex; align-items: center; gap: 14px; margin: 0; }
.round-btn { width: 48px; height: 48px; flex: none; border-radius: 24px; border: 1.5px solid var(--green); background: #FFFFFF; color: var(--green-dark); font: inherit; font-size: 24px; font-weight: 700; cursor: pointer; }
.round-btn:disabled { opacity: .4; cursor: default; }
.stepper-value { flex: 1; text-align: center; font-size: 18px; font-weight: 700; }
.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.ingredients li:last-child { border-bottom: 0; }
.ingredients .qty { width: 86px; flex: none; font-size: 15px; font-weight: 700; color: var(--green-dark); }
.ingredients .name { flex: 1; font-size: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n { width: 28px; height: 28px; flex: none; border-radius: 14px; background: var(--mint); color: var(--mint-ink); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-body { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.step-body p { font-size: 16px; }
.banner .back { min-height: 36px; }

/* Présences. */
.banner-link { color: var(--cream); font-weight: 600; margin-right: 14px; }
.banner-link:hover { color: #FFFFFF; }
.presence-grid { width: 100%; border-collapse: separate; border-spacing: 6px; background: #FFFFFF; border-radius: 20px; padding: 6px; }
.presence-grid th { font-size: 13px; font-weight: 700; color: var(--soft); text-align: left; padding: 0 4px; }
.presence-grid thead th { text-transform: uppercase; letter-spacing: .4px; text-align: center; }
.presence-grid thead th:first-child { text-align: left; }
.presence-grid tbody th { font-size: 15px; color: var(--ink); white-space: nowrap; }
.presence-grid form { margin: 0; }
.cell { width: 100%; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--soft); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.cell[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.presence-grid { table-layout: fixed; }
.presence-grid thead th:first-child { width: 84px; }

/* Carnet de recettes. */
textarea.input { min-height: 160px; padding: 12px; line-height: 1.45; resize: vertical; }
.tag.blue { background: #E4E9FA; color: #2B3B80; }
.search-row { display: flex; gap: 8px; }
.search-row .input { flex: 1; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.filter-row .tab { flex: none; }
.recipe-list { list-style: none; margin: 0; padding: 0 14px; background: #FFFFFF; border-radius: 20px; }
.recipe-list li { border-bottom: 1px solid var(--line-soft); }
.recipe-list li:last-child { border-bottom: 0; }
.recipe-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.recipe-row .head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.recipe-row b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.recipe-row .time { flex: none; font-size: 13px; color: var(--soft); }
.recipe-row .tags { gap: 6px; }
.recipe-row .tag { font-size: 12px; padding: 3px 8px; }
.recipe-row .last { font-size: 13px; color: var(--soft); }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.add-grid .pill-btn { justify-content: center; min-height: 52px; border-radius: 14px; }
.line-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line-soft); margin: 0; scroll-margin-top: 16px; }
.line-form:last-of-type { border-bottom: 0; }
.line-form .name { flex: 1 1 100%; font-size: 16px; font-weight: 600; }
.line-form input.input { flex: 1; min-width: 0; width: 70px; min-height: 44px; }
.line-form select.input { width: 104px; min-height: 44px; padding: 0 6px; }
.line-form .remove { width: 44px; padding: 0; justify-content: center; font-size: 16px; }
.line-form .pill-btn { min-height: 44px; padding: 0 12px; }
.slot-list { display: flex; flex-direction: column; gap: 8px; }
.slot-list form { margin: 0; }

/* Ordinateur ou tablette : message et QR code d'abord, jusqu'à « Continuer ici quand même ». */
.desktop-gate { display: none; }
@media (min-width: 768px) and (min-height: 560px) {
  .desktop-gate {
    display: flex; position: fixed; inset: 0; z-index: 100; overflow: auto;
    align-items: center; justify-content: center; padding: 24px;
    background: #E7EAE1;
  }
  .desktop-gate ~ .phone { display: none; }
}
.gate-card {
  width: 460px; max-width: 100%; margin: auto;
  background: #FFFFFF; border-radius: 28px; padding: 40px 40px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  box-shadow: 0 20px 50px -20px rgba(27, 36, 30, 0.25);
}
.gate-brand { display: inline-flex; align-items: center; gap: 8px; font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -0.6px; }
.gate-card h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.4px; }
.gate-lead { font-size: 16px; line-height: 1.5; color: #3F4842; }
.gate-qr { width: 232px; height: 232px; padding: 16px; border-radius: 20px; border: 2px solid #DDE1D6; background: #FFFFFF; }
.gate-qr svg { display: block; width: 100%; height: 100%; }
.gate-host { font-size: 14px; color: var(--soft); }
.gate-continue {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border-radius: 14px; border: 1.5px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none;
}
.gate-continue:hover { color: var(--ink); background: var(--page); }
.gate-note { font-size: 13px; color: var(--soft); line-height: 1.45; }

/* Installer et notifications (fin de l'assistant, réglages). */
.app-setup > div { display: flex; flex-direction: column; gap: 10px; }
.app-setup > div + div:not([hidden]) { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.autocomplete [role="listbox"] .notice { padding: 12px 10px; font-size: 14px; color: var(--soft); }

/* Mamie Coco, la mascotte. */
.mamie { display: block; flex: none; }
.mamie-hero { width: 150px; height: 150px; border-radius: 50%; background: var(--cream); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.mamie-hero .mamie { width: 150px; height: 150px; }
.mamie-says { display: flex; align-items: flex-start; gap: 10px; }
.mamie-says .mamie { border-radius: 12px; }
.mamie-says .bubble { position: relative; flex: 1; background: #FFFFFF; border-radius: 4px 16px 16px 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.mamie-says .who { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.6px; }
.mamie-says p { font-size: 15px; line-height: 1.45; }
.dedication { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--soft); text-align: left; }
.dedication .mamie { border-radius: 8px; }

/* Fiche d'un membre : le rythme n'apparaît qu'« À temps partiel ». */
.rhythm-choice { display: none !important; }
form:has(input[name="presence_mode"][value="partial"]:checked) .rhythm-choice { display: flex !important; }

/* Page « Regarde tes e-mails ». */
.mail-sent { gap: 18px; }
.mail-sent-hero { position: relative; align-self: center; margin-top: 4px; }
.mail-sent-hero .envelope { position: absolute; right: -6px; bottom: 6px; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(27, 36, 30, 0.2); border: 3px solid var(--page); animation: envelope-pop .6s .25s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes envelope-pop { from { transform: scale(0) rotate(-20deg); } to { transform: none; } }
.mail-sent h1 { margin-bottom: 6px; }
.mail-address { font-weight: 700; font-size: 17px; color: var(--green-dark); word-break: break-all; }
.mail-steps { list-style: none; margin: 0; }
.mail-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; }
.mail-steps .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--green-dark); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.resend { margin-top: 6px; }
button.link { background: none; border: 0; padding: 8px; font: inherit; font-weight: 600; color: var(--green-dark); text-decoration: underline; cursor: pointer; }

/* Changement de page : un fondu léger, la page qui arrive glisse un peu ; la barre d'onglets ne bouge pas. */
@view-transition { navigation: auto; }
.phone { view-transition-name: page; }
.tabbar { view-transition-name: tabbar; }
::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(page) { animation: page-out .16s ease-in both; }
::view-transition-new(page) { animation: page-in .26s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
/* Navigateurs sans transitions entre pages : la page apparaît en fondu. */
@supports not (view-transition-name: none) {
  .phone > * { animation: page-in .26s cubic-bezier(.2, .8, .3, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(page), ::view-transition-new(page), .phone > *, .mail-sent-hero .envelope { animation: none; }
}

/* Repères d'une recette : énergie et prix de revient. */
.benchmarks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.benchmarks h2 { grid-column: 1 / -1; }
.benchmark { display: flex; flex-direction: column; gap: 2px; }
.benchmark .label { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.6px; }
.benchmark p { margin: 0; font-size: 15px; }
.admin-recipe { display: flex; flex-direction: column; gap: 10px; }

/* Accueil « Cette semaine » */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 20px 4px; }
.home-head .date { font-size: 14px; font-weight: 500; color: var(--soft); }
.home-head h1 { font-size: 30px; letter-spacing: -0.5px; }
.avatar { width: 48px; height: 48px; flex: none; border-radius: 24px; background: var(--green); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; text-decoration: none; }
.avatar:hover { background: var(--green-dark); color: #FFFFFF; }
main.content.home { gap: 20px; }
.tonight { background: var(--green); color: #FFFFFF; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.tonight-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tonight-head h2 { font-family: Inter, system-ui, sans-serif; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: #CFE6D8; }
.tonight-head span { font-size: 13px; color: #CFE6D8; text-align: right; }
.tonight-dish { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-size: 26px; font-weight: 700; line-height: 1.15; color: #FFFFFF; }
.tonight-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tonight-chips span { background: #245A3D; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.tonight-chips .finish { background: var(--orange-soft); color: var(--orange-ink); font-weight: 600; }
.tonight .btn.light { background: #FFFFFF; color: var(--green-dark); }
.home-section { display: flex; flex-direction: column; gap: 10px; }
.home-section h2 { font-family: Inter, system-ui, sans-serif; font-size: 17px; font-weight: 700; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-head a { font-size: 15px; font-weight: 600; padding: 10px 0; }
.watch-row { display: flex; align-items: center; gap: 12px; background: #FFFFFF; border-radius: 16px; padding: 14px 16px; min-height: 44px; color: var(--ink, #1B241E); text-decoration: none; }
.watch-row:hover { color: var(--ink, #1B241E); }
.watch-row .text { flex: 1; font-size: 15px; }
.watch-row svg { color: var(--soft); flex: none; }
.watch-badge { border-radius: 10px; padding: 6px 9px; font-size: 13px; font-weight: 700; white-space: nowrap; background: #E6E8E1; color: #3F4842; }
.watch-badge.red { background: #F9D9D6; color: #8E2419; }
.watch-badge.orange { background: var(--orange-soft); color: var(--orange-ink); }
.meal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.meal-tile { display: flex; flex-direction: column; gap: 6px; background: #FFFFFF; border: 1.5px solid #FFFFFF; border-radius: 16px; padding: 12px; min-height: 112px; color: var(--ink, #1B241E); text-decoration: none; }
.meal-tile:hover { color: var(--ink, #1B241E); border-color: #B9CDBF; }
.meal-tile .when { font-size: 12px; font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: 0.5px; }
.meal-tile .dish { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.3; }
.meal-tile .status { align-self: flex-start; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 8px; background: #E3EEE6; color: #1F5A37; }
.meal-tile.done { background: #ECEEE7; border-color: #ECEEE7; }
.meal-tile.done .status { background: #E6E8E1; color: #3F4842; }
.meal-tile.tonight { border-color: var(--green); }
.meal-tile.tonight .status { background: var(--green); color: #FFFFFF; }
.past-meals { margin-bottom: 10px; }
.past-meals summary { cursor: pointer; padding: 10px 2px; font-size: 14px; font-weight: 600; color: var(--soft); }
.past-meals[open] summary { margin-bottom: 6px; }
.next-week { display: flex; align-items: center; gap: 12px; border: 1.5px dashed #9AA79E; border-radius: 16px; padding: 14px 16px; color: var(--ink, #1B241E); text-decoration: none; }
.next-week:hover { color: var(--ink, #1B241E); border-color: var(--green); }
.next-week svg { color: var(--green); flex: none; }
.next-week .text { flex: 1; font-size: 15px; }
.rarely-row { display: flex; align-items: center; gap: 10px; }
.rarely-row label { flex: 1; font-size: 15px; font-weight: 600; }
.rarely-row select { width: auto; flex: none; }

/* Retour de courses */
.problem p { font-size: 15px; line-height: 1.45; }
.problem .label { align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--green); }
.problem .label.orange { color: var(--orange-ink); }
.put-away { display: flex; flex-direction: column; gap: 12px; }
.put-row { background: #FFFFFF; border: 2px solid #FFFFFF; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.put-row.warn { border-color: #E2A55A; }
.put-head { display: flex; align-items: flex-start; gap: 10px; }
.put-head .text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.put-head small { font-size: 13px; color: var(--soft); }
.put-date input { width: 150px; min-height: 40px; padding: 4px 8px; font-size: 14px; }
.put-warn { font-size: 14px; color: var(--orange-ink); background: var(--orange-soft); border-radius: 10px; padding: 8px 10px; }

/* Consignes de la semaine : pastilles plus serrées pour tenir sur une ligne */
.instructions .chips { gap: 6px; }
.instructions .chip span { padding: 0 11px; min-height: 40px; font-size: 14px; }
.instructions .field { gap: 6px; }

/* Administration des aliments proposés */
.admin-ingredient { display: flex; flex-direction: column; gap: 12px; }
.admin-ingredient .chips form { display: contents; }
.admin-form { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line, #E8DDCB); padding-top: 12px; }
.admin-form .field > span { font-size: 14px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Mesures de la bêta (administration) */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.kpi-value { font-size: 28px; font-weight: 800; line-height: 1.1; }
.kpi-value small { font-size: 16px; font-weight: 600; color: var(--soft, #6B6B6B); }
.kpi-label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.kpi-label small { font-size: 12px; font-weight: 400; color: var(--soft, #6B6B6B); }
.table-scroll { overflow-x: auto; margin: 0 -4px; }
.metrics-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.metrics-table th, .metrics-table td { padding: 8px 3px; text-align: right; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.metrics-table thead th { font-size: 12px; font-weight: 700; color: var(--soft, #6B6B6B); white-space: normal; vertical-align: bottom; }
.metrics-table th[scope="row"], .metrics-table thead th:first-child { text-align: left; }
.metrics-households { list-style: none; margin: 0; padding: 0; }
.metrics-households li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.metrics-households .text { display: flex; flex-direction: column; gap: 2px; }
.metrics-households small { font-size: 13px; color: var(--soft, #6B6B6B); }
.metrics-households .when { font-size: 13px; font-weight: 700; white-space: nowrap; }
.metrics-households li.sleeping .when { color: var(--orange-ink); }

/* Ticket de caisse */
.receipt-entry { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px 14px; color: var(--ink); text-decoration: none; min-height: 56px; }
.receipt-entry span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.receipt-entry small { font-size: 13px; color: var(--soft); }
.receipt-icon { color: var(--green-dark); flex: none; }
.receipt-upload { display: flex; flex-direction: column; gap: 12px; }
.receipt-upload.busy .receipt-pick { opacity: .6; pointer-events: none; }
.receipt-pick { cursor: pointer; }
.receipt-tips { margin: 0; padding-left: 18px; }
.receipt-unmatched { display: flex; flex-direction: column; gap: 10px; }
.receipt-line { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.receipt-line p { margin: 0; }
.receipt-review { display: flex; flex-direction: column; gap: 12px; }
.check-line { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-line input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); flex: none; }
.check-line .text { display: flex; flex-direction: column; gap: 2px; }
.check-line small { font-size: 13px; color: var(--soft); }
.receipt-review .put-head { flex-direction: column; gap: 0; }
.receipt-review .small-link { margin-left: 32px; }
.small-link { font-size: 13px; min-height: 32px; }

/* Carnet : mes recettes / recettes Popoton */
.book-tabs { display: flex; width: 100%; }
.book-tabs a { flex: 1; }
.book-hint { margin-top: -4px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--green-dark); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.quick[aria-expanded="true"] { background: var(--mint); border-color: var(--green); }
.quick.mamie { padding-left: 6px; background: linear-gradient(160deg, var(--mint) 0%, #FFF6E5 100%); border-color: transparent; }
.origin-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 4px 0 2px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .2px; }
.origin-badge.popoton { background: rgba(251, 246, 238, .16); color: var(--cream); border: 1px solid rgba(251, 246, 238, .45); }
.origin-badge.mine { background: var(--cream); color: var(--green-dark); }
.week-summary { gap: 4px; font-size: 14px; } .week-summary b { font-weight: 600; } .week-summary[hidden] { display: none; }
.input-suffix { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.input-suffix .input { width: 96px; }
.chrono { font-size: 16px; color: var(--mint-ink); }
.journal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.journal li { display: flex; flex-direction: column; gap: 2px; }
.journal .when { font-size: 13px; font-weight: 700; color: var(--mint-ink); }
.watch-badge.mint { background: var(--mint); color: var(--mint-ink); }
.input-suffix[hidden] { display: none; }
.dictate { background: #FFFFFF; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.dictate[hidden], .mic-btn[hidden] { display: none; }
.dictate-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; }
.dictate-btn.on { background: var(--green); color: var(--cream); border-color: var(--green); animation: listening 1.4s ease-in-out infinite; }
@keyframes listening { 50% { box-shadow: 0 0 0 6px rgba(46, 106, 74, 0.18); } }
.dictate-result { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dictate-result li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.dictate-result li.unknown { color: var(--orange-ink); }
.dictate-result li.unknown::before { content: ''; }
.put-row.dictated { border-color: var(--green); transition: border-color 0.3s; }
.autocomplete:has(.mic-btn) .input { padding-right: 48px; }
.mic-btn { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mint); color: var(--mint-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mic-btn.on { background: var(--green); color: var(--cream); animation: listening 1.4s ease-in-out infinite; }
.weekly-btn { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid #D9DDD3; background: #FFFFFF; color: #9AA39C; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.weekly-btn[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.add-chip { font-weight: 600; }
.weekly-link { display: flex; align-items: center; gap: 12px; background: #FFFFFF; border-radius: 18px; padding: 14px 16px; color: inherit; text-decoration: none; }
.weekly-link span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.weekly-link small { font-size: 13px; color: var(--soft); }
.weekly-row { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border-radius: 14px; padding: 8px 8px 8px 14px; margin-bottom: 6px; }
.weekly-row .text { flex: 1; min-width: 0; }
.weekly-qty .input { width: 96px; min-height: 38px; padding: 4px 8px; font-size: 14px; }
.beta-card { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--mint) 0%, #FFF6E5 100%); border-radius: 24px; padding: 22px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.beta-card h2 { font-size: 21px; margin: 0; }
.beta-card p { margin: 0; font-size: 15px; line-height: 1.5; }
.beta-card .mamie { margin-top: 4px; }
.beta-ribbon { position: absolute; top: 18px; right: -34px; transform: rotate(35deg); background: var(--orange-ink, #B5581C); color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 5px 40px; }
.beta-sign { font-style: italic; color: var(--mint-ink); font-weight: 600; }
.famille-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.famille-counters div { background: var(--mint); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.famille-counters b { font-size: 24px; color: var(--mint-ink); }
.famille-counters span { font-size: 13px; }
.famille-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.famille-features li { display: flex; flex-direction: column; gap: 2px; padding-left: 28px; position: relative; }
.famille-features li::before { content: '✓'; position: absolute; left: 4px; top: 0; color: var(--green); font-weight: 700; }
.famille-features small { font-size: 13px; color: var(--soft); }
.famille-buy { display: flex; flex-direction: column; gap: 12px; }
.plan-choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-choice legend { margin-bottom: 8px; }
.plan-option { position: relative; }
.plan-option input { position: absolute; opacity: 0; }
.plan-option > span { display: flex; flex-direction: column; gap: 4px; background: #FFFFFF; border: 2px solid #E3E6DE; border-radius: 16px; padding: 12px; cursor: pointer; height: 100%; }
.plan-option input:checked + span { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 106, 74, 0.12); }
.plan-option input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.plan-price { font-size: 20px; font-weight: 700; }
.plan-price s { font-size: 14px; font-weight: 500; color: var(--soft); margin-right: 4px; }
.plan-price small, .plan-option small { font-size: 12px; font-weight: 500; color: var(--soft); }
.famille-buy .total { text-align: center; margin: 0; }
.famille-entry { display: flex; align-items: center; gap: 12px; background: linear-gradient(160deg, var(--mint) 0%, #FFF6E5 100%); border-radius: 18px; padding: 12px 14px; color: inherit; text-decoration: none; }
.famille-entry span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.famille-entry small { font-size: 13px; color: var(--soft); }

/* Cercle familial */
.circle-homes { list-style: none; margin: 0 0 12px; padding: 0; }
.circle-homes li { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line-soft); }
.circle-homes li:last-child { border-bottom: 0; }
.circle-homes .text { display: flex; flex-direction: column; }
.circle-homes .text small { font-size: 13px; color: var(--soft); }
.home-dot { width: 36px; height: 36px; flex: none; border-radius: 18px; background: var(--orange-soft); color: var(--orange-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.home-dot.me { background: var(--mint); color: var(--mint-ink); }
.invite-box { display: flex; flex-direction: column; gap: 6px; }
.section-title { font-size: 18px; margin: 8px 0 10px; }
.shared-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.shared-card { display: flex; flex-direction: column; gap: 6px; }
.shared-card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; }
.shared-card .head b { font-size: 17px; }
.shared-card .head .time { font-size: 14px; color: var(--soft); flex: none; }
.shared-card .soft.small, .shared-card .shared-note { margin: 0; }
.shared-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.shared-note { font-style: italic; color: #3F4842; }
.pill-btn.done { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.stack-actions { display: flex; flex-direction: column; gap: 10px; }
.switch-form { margin: 0; }
.circle-entry { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #FFFFFF; border: 1.5px solid var(--line); color: inherit; text-decoration: none; }
.circle-entry .text { flex: 1; display: flex; flex-direction: column; }
.circle-entry .text small { font-size: 13px; color: var(--soft); }

/* Invités */
.next-guests { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; border-left: 4px solid var(--green); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--soft); }
.guest-head { display: flex; align-items: center; gap: 14px; }
.home-dot.big { width: 56px; height: 56px; border-radius: 28px; font-size: 24px; }
.card .mt { margin-top: 14px; }
.guest-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.guest-history li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.guest-history li:last-child { border-bottom: 0; }
.guest-menu { display: flex; flex-direction: column; gap: 12px; }
.dish-card { display: flex; flex-direction: column; gap: 8px; border: 2px solid #FFFFFF; }
.dish-card.tone-orange { border-color: #E2A55A; }
.dish-card.tone-red { border-color: #E8A39B; }
.dish-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dish-links { display: flex; gap: 14px; }
.dish-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; }
.dish-title b { font-size: 17px; }
.dish-title .time { font-size: 14px; color: var(--soft); flex: none; }
.review-row { padding: 6px 0; }
.guest-line { margin: 0; color: var(--green-dark); font-weight: 600; }

/* Idées de Mamie */
.idea-list { display: flex; flex-direction: column; gap: 12px; }
.idea-card { display: flex; flex-direction: column; gap: 8px; }
.idea-card .small.soft, .idea-why { margin: 0; }
.idea-why { color: var(--green-dark); font-weight: 600; }
.idea-card details summary { cursor: pointer; font-weight: 600; color: var(--green-dark); min-height: 32px; }
.idea-card details .steps { margin-top: 10px; }
.idea-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.idea-actions form { margin: 0; }
.idea-choice { text-decoration: none; border-style: dashed; border-color: var(--green); }
.idea-choice small { color: var(--soft); }

/* Recettes de famille : pages, dictée, relecture avec certitude par ligne. */
.family-form { display: flex; flex-direction: column; gap: 14px; }
.family-pick { cursor: pointer; }
.family-pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.family-pages[hidden] { display: none; }
.family-pages li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--soft); }
.family-pages img, .family-pages .doc { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--line); background: #FFFFFF; }
.family-pages .doc { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--green-dark); }
.family-pages .remove { position: absolute; top: -6px; right: -6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ink); color: #FFFFFF; font-size: 18px; cursor: pointer; }
.pill-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.recorder { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; }
.recorder-timer { margin: 0; font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.recorder-status { margin: 0; font-size: 14px; color: var(--soft); }
.recording .recorder-status { color: var(--danger); font-weight: 600; }
.recorder-controls { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.rec-btn { width: 76px; height: 76px; border-radius: 50%; border: 4px solid var(--line); background: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rec-btn span { width: 58px; height: 58px; border-radius: 29px; background: var(--danger); transition: all .2s; }
.rec-btn.on span { width: 30px; height: 30px; border-radius: 6px; }
.recording .rec-btn { border-color: var(--danger); animation: listening 1.4s ease-in-out infinite; }
.family-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.family-thumbs img { height: 120px; border-radius: 10px; border: 1.5px solid var(--line); }
.family-voice audio { width: 100%; }
.certainty-head { display: flex; justify-content: space-between; align-items: baseline; }
.certainty-head .pct { font-size: 24px; font-weight: 700; }
.certainty-bar { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.certainty-bar span { display: block; height: 100%; background: var(--green); }
.certainty-card.tone-likely .certainty-bar span { background: var(--orange); }
.certainty-card.tone-unsure .certainty-bar span { background: var(--danger); }
.read-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.read-line { padding: 10px 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.read-line:first-child { border-top: 0; }
.read-line.open { background: #FFF8EE; margin: 0 -12px; padding: 10px 12px; border-radius: 12px; }
.read-text { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: start; }
.read-text .kind { grid-column: 1 / -1; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--soft); }
.read-text .pct { grid-column: 2; grid-row: 2; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.tone-sure, .tone-fixed { background: var(--mint); color: var(--mint-ink); }
.tone-likely { background: var(--orange-soft); color: var(--orange-ink); }
.tone-unsure { background: #F9D9D6; color: #8E2419; }
.doubt { display: flex; flex-direction: column; gap: 6px; }
.doubt p { margin: 0; }
.doubt .excerpt { font-family: Georgia, serif; font-style: italic; background: #FFFFFF; border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; align-self: flex-start; }
.doubt-options { display: flex; flex-wrap: wrap; gap: 8px; }
.doubt-options form { margin: 0; }
.doubt-other form { margin-top: 6px; }
.btn.danger { background: var(--danger); }
.btn:disabled { background: #8FA597; cursor: not-allowed; }
.recipe-files { display: flex; flex-direction: column; gap: 10px; }
.recipe-files .family-thumbs img { height: 160px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 700; }

/* Listes partagées. */
.list-card { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 17px; }
.list-new { justify-content: center; }
.add-grid.three { grid-template-columns: repeat(3, 1fr); }
.list-recipe { display: flex; flex-direction: column; gap: 8px; }
.list-recipe .dish-title a { color: inherit; text-decoration: none; }
.rating-sum { margin: 0; }
details.rate > summary { list-style: none; align-self: flex-start; display: inline-flex; }
details.rate > summary::-webkit-details-marker { display: none; }
details.rate[open] > summary { background: var(--mint); }
.rate-form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.tag.src-blue { background: #E4E9FA; color: #2B3B80; }
.tag.src-sand { background: #F3E6D2; color: #6B4A12; }
.tag.src-green { background: var(--mint); color: var(--mint-ink); }
.member-list, .pick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.member-list li, .pick-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--line-soft); }
.member-list li:first-child, .pick-list li:first-child { border-top: 0; }
.pick-list { background: #FFFFFF; border-radius: 18px; padding: 4px 16px; }
/* Le bouton ou le badge de droite garde sa taille : c'est le titre qui passe à la ligne. */
.member-list li > :not(:first-child), .pick-list li > :not(:first-child) { flex-shrink: 0; white-space: nowrap; }
.pick-list li { padding: 8px 0; }
.pick-title { display: flex; flex-direction: column; gap: 2px; }
.pill-btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.danger-text { color: var(--danger); }
.family-dest select { width: 100%; }

/* Longues listes (carnet Popoton : plus de 200 recettes) : le téléphone ne dessine que ce qui est à l'écran. */
.recipe-list > li { content-visibility: auto; contain-intrinsic-size: auto 96px; }

/* Passe d'allègement (23/11/2026) */
.banner-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.banner-chip { display: inline-block; max-width: 100%; line-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #FFFFFF; font-size: 14px; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-chip:hover { color: #FFFFFF; background: rgba(255, 255, 255, .22); }
.family-row.compact { gap: 4px; }
.family-row.compact .head { align-items: center; }
.row-actions { display: inline-flex; gap: 6px; flex: none; }
.more-actions { text-align: center; }
.more-actions > summary { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--green-dark); cursor: pointer; }
.more-actions[open] { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.more-actions .link-btn { display: inline-flex; align-items: center; }
.item-menu { position: relative; flex: none; }
.item-menu > summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; color: var(--soft); font-size: 20px; font-weight: 700; cursor: pointer; }
.item-menu > summary::-webkit-details-marker { display: none; }
.item-menu[open] > summary { background: var(--line-soft); }
.item-menu-panel { position: absolute; right: 0; top: 42px; z-index: 5; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #FFFFFF; border-radius: 14px; box-shadow: 0 8px 24px rgba(27, 36, 30, .16); }
.item-menu-panel .issue { width: 100%; }
.fold > summary { list-style: none; font-weight: 700; cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold[open] > summary { margin-bottom: 8px; }
.fold > summary.fold-btn { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 17px; }
.fold > summary.fold-btn::after { content: '▾'; font-size: 13px; color: var(--soft); }
.fold[open] > summary.fold-btn::after { content: '▴'; }
.watch-card { background: #FFFFFF; border-radius: 16px; padding: 4px 14px; }
.watch-line { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink, #1B241E); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.watch-line:last-child { border-bottom: 0; }
.watch-line:hover { color: var(--ink, #1B241E); }
.watch-line b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-line svg { color: var(--soft); flex: none; }
.watch-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #B9BDB5; }
.watch-dot.red { background: #D2483A; }
.watch-dot.orange { background: var(--orange, #E8892B); }
.watch-dot.mint { background: var(--mint-ink, #2F7D62); }
.watch-when { font-size: 13px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.meal-head { align-items: center; }
.meal-icons { display: inline-flex; gap: 6px; flex: none; }
.meal-icons form { margin: 0; }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--soft); cursor: pointer; padding: 0; }
.icon-btn:hover { color: var(--green-dark); border-color: var(--green-dark); }
.icon-btn[aria-pressed="true"], .icon-btn[aria-expanded="true"] { background: var(--green-dark); border-color: var(--green-dark); color: #FFFFFF; }
.meal-meta { margin: 2px 0 6px; }

/* Espace Recettes : onglets du bandeau (carnet, cercle, listes). */
.segmented { display: flex; gap: 4px; border: 0; margin-top: 6px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .14); }
.segmented a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 48px; padding: 4px 6px; border-radius: 10px; color: #E5F0E9; font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; line-height: 1.2; }
.segmented a small { font-size: 12px; font-weight: 500; opacity: .85; }
.segmented a:hover { color: #FFFFFF; background: rgba(255, 255, 255, .1); }
.segmented a[aria-current="page"] { background: #FFFFFF; color: var(--green-dark); }
.segmented a[aria-current="page"] small { color: var(--soft); opacity: 1; }

/* Filtres du carnet : légers, sur une ligne qui défile. */
.filter-row.slim { gap: 6px; margin-top: 10px; }
.filter-row.slim .tab { min-height: 34px; padding: 0 12px; font-size: 14px; font-weight: 600; border-width: 1px; }

/* Ajouter une recette : quatre façons, en cartes. */
.add-list { display: flex; flex-direction: column; gap: 10px; }
.add-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
a.add-card:hover { border-color: var(--green); }
.add-card .add-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--mint); color: var(--green-dark); }
.add-card b { display: block; font-size: 16px; }
.add-card small { display: block; font-size: 14px; color: var(--soft); margin-top: 2px; }
.add-card .famille-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--orange-soft); color: var(--orange-ink); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.add-card form { margin-top: 10px; }
.btn.add-recipe { margin: 12px 0 14px; }

/* Liste partagée : les droits rappelés en une ligne, nom et droits modifiés ensemble. */
.banner .rights-line { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #DCEBE1; }
.banner .rights-line::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3Cpath d='M21 21v-2a4 4 0 0 0-3-3.85'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3Cpath d='M21 21v-2a4 4 0 0 0-3-3.85'/%3E%3C/svg%3E") center / contain no-repeat; }
.banner-rename > summary { list-style: none; cursor: pointer; width: fit-content; }
.banner-rename > summary::-webkit-details-marker { display: none; }
.banner-rename[open] > summary { background: rgba(255, 255, 255, .26); }
.banner-rename > .card { margin-top: 12px; color: var(--ink); }
.banner-rename > .card p, .banner-rename > .card small { color: var(--soft); }
.banner-rename > .card .chip input:checked + span small { color: var(--mint-ink); }

/* Menu : chercher une recette pour un repas. */
.meal-search { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.search-results { display: flex; flex-direction: column; gap: 8px; }
.search-results:empty { display: none; }
.search-results form { margin: 0; }
.origin-tag { display: inline-block; margin-right: 2px; padding: 0 6px; border-radius: 6px; background: #EEF0EA; color: #4A524C; font-size: 12px; font-weight: 600; }
.choice .warn { color: var(--orange-ink); font-weight: 600; }
.status .undo { display: inline; margin: 0 0 0 10px; }
.status .undo button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }
.pill-btn.add-chip.added { background: var(--mint); border-color: var(--green); color: var(--mint-ink); }
#shopping-items, #classics { overflow-anchor: none; }

/* Fin de l'assistant : installer l'appli et activer les notifications. */
.app-step h2 { display: flex; align-items: center; gap: 10px; }
.step-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #FFFFFF; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.how { margin: 4px 0 0; display: grid; gap: 4px; font-size: 14px; }
.how dt { font-weight: 700; margin-top: 6px; }
.how dd { margin: 0; color: var(--ink); line-height: 1.45; }
.done-note { color: var(--mint-ink); font-weight: 700; }
.pill-btn.timer.ringing { background: var(--orange); border-color: var(--orange); color: #FFFFFF; animation: timer-ring .8s ease-in-out infinite alternate; }
@keyframes timer-ring { from { transform: scale(1); } to { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .pill-btn.timer.ringing { animation: none; } }

/* Formules : entrée et dessert autour du plat, formule du repas, choix d'un simple. */
.course-row { display: flex; align-items: baseline; gap: 10px; margin: 2px 0; padding: 4px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
a.course-row:hover { color: var(--green-dark); }
.course-row .k { flex: 0 0 64px; font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .5px; }
.course-row .v { font-weight: 600; }
.course-row .tag.simple { font-size: 11px; padding: 2px 8px; background: var(--orange-soft); color: var(--orange-ink); }
.formula { margin-top: 8px; }
.formula > summary { list-style: none; display: inline-flex; gap: 6px; cursor: pointer; }
.formula > summary::-webkit-details-marker { display: none; }
.formula[open] > summary { background: var(--mint); color: var(--mint-ink); }
.formula-options, .simple-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip-btn { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--mint); color: var(--mint-ink); border-color: var(--green); }

/* Fiche d'un produit du stock : « Il n'y en a plus ? ». */
.saved-note { color: var(--mint-ink); font-weight: 600; }
.gone { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.gone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gone-btn { width: 100%; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 8px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.gone-btn b { font-size: 16px; }
.gone-btn small { font-size: 12px; color: var(--soft); }
.gone-btn .ok { color: var(--green); }
.gone-btn .bin { color: var(--danger); }
.gone-btn:active { background: var(--line-soft); }

/* Fiche recette : partage au cercle (état, mot, retouches) et retrait du carnet à l'écart. */
.share-state { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; font-weight: 700; color: var(--mint-ink); }
.share-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--line-soft); font-style: italic; }
.share-edit > summary { list-style: none; display: inline-flex; cursor: pointer; }
.share-edit > summary::-webkit-details-marker { display: none; }
.share-edit[open] > summary { background: var(--mint); color: var(--mint-ink); }
.share-edit form { margin-top: 10px; }
.share-stop { margin-top: 6px; text-align: right; }
.link-btn.soft { color: var(--soft); font-size: 14px; font-weight: 500; }
.link-btn.danger { color: var(--danger); font-size: 14px; font-weight: 500; }
.remove-recipe { margin-top: 28px; text-align: center; }
