/* Polices hébergées sur le site (licence SIL OFL 1.1, voir fonts/) */
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(fonts/figtree-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900; src: url(fonts/figtree-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Lagon : lagon de l'océan Indien et vanille. Formes arrondies, plats qui flottent,
   barre de navigation sombre et flottante. Un seul thème, clair. */
:root {
  --bg: #F3F7F5;
  --surface: #FFFFFF;
  --sunk: #EAF1EE;
  --ink: #0D2B2C;
  --muted: #4F6866;
  --line: #D3E2DF;
  --lagoon: #0E7C7B;
  --lagoon-d: #0A5E5D;
  --lagoon-soft: #D7ECE9;
  --halo-1: #C3E2DD;
  --halo-2: #B1D9D3;
  --vanilla: #F5C451;
  --vanilla-soft: #FBF0D8;
  --vanilla-ink: #7A4E00;
  --coral: #EE6352;
  --p: #3B82C4; --p-ink: #2B6CB0; --p-soft: #E3EEF8;
  --g: #E0A526; --g-ink: #8A5800; --g-soft: #FBF0D8;
  --l: #EE6352; --l-ink: #B23A28; --l-soft: #FCE6E2;
  --kids: #6B4FA0; --kids-soft: #EEE8F7;
  --dial: #0D2B2C; --dial-ink: #FFFFFF; --dial-mute: #8FB5B0;
  --o-in: #96600A; --o-km: #1F7A72; --o-mg: #8A5536; --o-fam: #4F6866; --o-mes: #6B4FA0;
  --shadow-s: 0 1px 2px rgb(13 43 44 / .06);
  --shadow-m: 0 1px 2px rgb(13 43 44 / .06), 0 14px 34px rgb(14 124 123 / .13);
  --shadow-l: 0 16px 34px rgb(13 43 44 / .28);
  --f-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.5, .5, 1);
  --gut-l: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

/* ---------- Base ---------- */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
button, [role="button"] { cursor: pointer; }
button { transition: transform .15s var(--ease); }
button:active:not(:disabled), [role="button"]:active { transform: scale(.97); }
:focus-visible { outline: 3px solid var(--vanilla); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-family: var(--f-display); letter-spacing: -.015em; }
.num { font-variant-numeric: tabular-nums; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.s { width: 15px; height: 15px; }
.ico.l { width: 26px; height: 26px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-left: var(--gut-l); padding-right: var(--gut-r); padding-block: 0; max-width: 1280px; margin: 0 auto; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px) scaleY(.7); } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-32px) scaleY(1.15); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes drop { 0% { opacity: 0; transform: scale(.7) rotate(-35deg); } 60% { opacity: 1; transform: scale(1.04) rotate(4deg); } 100% { transform: none; } }
@keyframes halo { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes sheetup { from { transform: translateY(70px); } to { transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shine { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(260%); } }
@keyframes next-a { from { opacity: 0; transform: translateX(44px); } to { opacity: 1; transform: none; } }
@keyframes next-b { from { opacity: 0; transform: translateX(44px); } to { opacity: 1; transform: none; } }
@keyframes prev-a { from { opacity: 0; transform: translateX(-44px); } to { opacity: 1; transform: none; } }
@keyframes prev-b { from { opacity: 0; transform: translateX(-44px); } to { opacity: 1; transform: none; } }
@keyframes pop-a { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes pop-b { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes rev { to { transform: rotate(-360deg); } }
@keyframes wave { to { transform: translateX(-40px); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cookin { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ring { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes confetti { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)); } }
@keyframes check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, -16px); } to { opacity: 1; transform: translate(-50%, 0); } }

.rise { animation: rise .6s calc(var(--i, 0) * 45ms) var(--ease) both; }
.enter .e { animation: rise .6s calc(var(--i, 0) * 70ms + 150ms) var(--ease) both; }

::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ---------- Illustration des plats ---------- */
.dish { position: relative; width: 66px; height: 66px; flex: none; }
.dish .plate { position: absolute; inset: 0; border-radius: 50%; background: #FFFFFF; box-shadow: 0 6px 14px rgb(14 124 123 / .18), inset 0 -3px 6px rgb(13 43 44 / .06); }
.dish .bowl { position: absolute; inset: 10%; border-radius: 50%; overflow: hidden; }
.dish .bowl i { position: absolute; box-sizing: border-box; display: block; }
.dish.md { width: 176px; height: 176px; }
.dish.md .plate { box-shadow: 0 18px 36px rgb(14 124 123 / .22), inset 0 -5px 12px rgb(13 43 44 / .07); }
.dish.xl { width: 232px; height: 232px; }
.dish.xl .plate { box-shadow: 0 24px 44px rgb(10 94 93 / .28), inset 0 -6px 14px rgb(13 43 44 / .07); }
.dish.spin .bowl { animation: spin 90s linear infinite; }
.steam { position: absolute; pointer-events: none; }
.steam path { fill: none; stroke: rgb(255 255 255 / .95); stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; animation: steam 3.4s ease-out infinite; }
.steam path:nth-child(2) { animation-delay: 1.1s; }
.steam path:nth-child(3) { animation-delay: 2.2s; }

/* ---------- Commandes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; }
.btn.primary { background: var(--lagoon); border-color: var(--lagoon); color: #FFFFFF; box-shadow: 0 10px 22px rgb(14 124 123 / .28); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn.vanilla { background: var(--vanilla); border-color: var(--vanilla); color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.danger { color: var(--l-ink); }
.round { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgb(13 43 44 / .12); flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; margin-inline: calc(var(--gut-l) * -1) calc(var(--gut-r) * -1); padding-inline: var(--gut-l) var(--gut-r); scroll-padding-inline: var(--gut-l); }
.chips::-webkit-scrollbar { display: none; }
.chips.wrapy { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 600; white-space: nowrap; transition: background .25s var(--ease), color .25s, border-color .25s, transform .15s var(--ease); }
.chip[aria-pressed="true"] { background: var(--lagoon); border-color: var(--lagoon); color: #FFFFFF; }
.chip small { font-size: .78rem; opacity: .8; font-variant-numeric: tabular-nums; }
.chip.always { border-style: dashed; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field > span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.input, .select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 1rem; }
.select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.input:focus, .select:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 4px rgb(14 124 123 / .14); }
.toggle { appearance: none; width: 50px; height: 30px; flex: none; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .25s var(--ease); margin: 0; }
.toggle::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgb(13 43 44 / .25); transition: transform .3s var(--spring); }
.toggle:checked { background: var(--lagoon); }
.toggle:checked::after { transform: translateX(20px); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; font-weight: 500; }
.switch + .switch { border-top: 1px solid var(--sunk); }

/* ---------- Étiquettes ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: .75; }
.o-in { color: var(--o-in); } .o-km { color: var(--o-km); } .o-mg { color: var(--o-mg); } .o-fam { color: var(--o-fam); } .o-mes { color: var(--o-mes); }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; font-weight: 600; }
.meta > span { display: inline-flex; align-items: center; gap: 4px; }
.spice { display: inline-flex; color: var(--l-ink); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; flex: none; }
.badge.ok { background: var(--lagoon-soft); color: var(--lagoon-d); }
.badge.warn { background: var(--vanilla-soft); color: var(--vanilla-ink); }
.badge.kids { background: var(--kids-soft); color: var(--kids); }
.badge.neutral { background: var(--sunk); color: var(--muted); }
.halal { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 5px; border: 1px solid currentColor; color: var(--lagoon); font-size: .62rem; font-weight: 800; letter-spacing: .06em; vertical-align: 2px; }
.mpill { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mpill.p { background: var(--p-soft); color: var(--p-ink); }
.mpill.g { background: var(--g-soft); color: var(--g-ink); }
.mpill.l { background: var(--l-soft); color: var(--l-ink); }

/* ---------- En-têtes ---------- */
.hello { display: flex; align-items: center; gap: 12px; padding-top: 24px; }
.hello > div { flex: 1; min-width: 0; }
.hello .date { font-size: .82rem; font-weight: 600; color: var(--muted); }
.hello h1 { font-size: 1.95rem; line-height: 1.05; font-weight: 750; margin-top: 2px; }
.hello .lead { margin-top: 6px; color: var(--muted); font-size: .95rem; max-width: 56ch; }
.avatar { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #FFFFFF; background: var(--lagoon); color: #FFFFFF; font: 700 1.05rem var(--f-display); box-shadow: 0 6px 16px rgb(14 124 123 / .3); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.avatar.kid { background: var(--kids); }
.avatar.eq { background: var(--o-mg); }

/* ---------- Navigation ---------- */
.tabbar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100% - var(--gut-l) - var(--gut-r)));
  height: 66px; padding: 0 8px; border-radius: 26px; background: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  box-shadow: var(--shadow-l);
  transition: transform .4s var(--ease), opacity .3s;
}
.tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 12px; border: 0; border-radius: 18px; background: transparent; color: #B9D3CF; font-size: .9rem; font-weight: 600; white-space: nowrap; transition: background .3s var(--ease), color .3s, flex-grow .35s var(--ease); }
.tab[aria-current="page"] { flex-grow: 1.4; background: var(--vanilla); color: var(--ink); font-weight: 700; }
body.detail-open .tabbar, body.cook-open .tabbar { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
main { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Recettes ---------- */
.rv { display: grid; gap: 0; }
.rv.has-detail .list-col { display: none; }
.rv:not(.has-detail) .detail-col { display: none; }
.list-col { min-width: 0; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.searchrow { display: flex; gap: 10px; margin-top: 18px; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-s); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .98rem; font-weight: 500; color: var(--ink); }
.search:focus-within { box-shadow: 0 0 0 3px rgb(14 124 123 / .18); }
.fbtn { position: relative; width: 50px; height: 50px; border-radius: 18px; border: 0; background: var(--ink); color: var(--vanilla); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fbtn .dotn { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--ink); }
.fpanel { margin-top: 12px; padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-s); display: grid; gap: 14px; animation: rise .35s var(--ease) both; }
.fpanel h3 { font-size: .78rem; font-family: var(--f-body); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.origins { margin-top: 14px; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 24px; }
.sec-title h2 { font-size: 1.25rem; font-weight: 700; }
.sec-title .aside { font-size: .82rem; font-weight: 600; color: var(--muted); text-align: right; }
.feat { position: relative; display: block; margin-top: 34px; padding: 22px 20px 18px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-m); text-align: left; transition: transform .3s var(--ease), box-shadow .3s; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(13 43 44 / .06), 0 20px 44px rgb(14 124 123 / .18); }
.feat .dish { position: absolute; right: -14px; top: -34px; animation: float 6s ease-in-out infinite; }
.feat .txt { max-width: calc(100% - 170px); min-width: 150px; display: grid; gap: 6px; }
.feat h3 { font-size: 1.55rem; line-height: 1.05; font-weight: 750; }
.feat .macros { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kcal-big { font-family: var(--f-display); font-size: 1.4rem; font-weight: 750; font-variant-numeric: tabular-nums; margin-right: 4px; }
.kcal-big small { font-family: var(--f-body); font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: 3px; }
.fitline { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.fitline b { color: var(--ink); font-variant-numeric: tabular-nums; }
.fitline .ck { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--lagoon); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.fitline .ck.warn { background: var(--vanilla); color: var(--ink); }
.fitline .ck.kids { background: var(--kids); }
.enter-feat .ck { animation: pop .5s .8s var(--spring) both; }
.cats { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-top: 26px; margin-inline: calc(var(--gut-l) * -1) calc(var(--gut-r) * -1); padding-inline: var(--gut-l) var(--gut-r); }
.cats::-webkit-scrollbar { display: none; }
.cat { position: relative; flex: none; height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font-family: var(--f-display); font-size: 1rem; font-weight: 650; white-space: nowrap; transition: color .25s; }
.cat::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--lagoon); transform: scaleX(0); transition: transform .4s var(--ease); }
.cat[aria-pressed="true"] { color: var(--ink); }
.cat[aria-pressed="true"]::after { transform: scaleX(1); }
.listbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.listbar select { border: 0; background: transparent; font-weight: 700; color: var(--ink); padding: 6px 2px; }
.rows { display: grid; gap: 10px; margin-top: 12px; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-s); text-align: left; min-width: 0; transition: transform .25s var(--ease), box-shadow .25s; }
.row:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(13 43 44 / .06), 0 12px 26px rgb(14 124 123 / .12); }
.row[aria-current="true"] { box-shadow: 0 0 0 2px var(--lagoon), var(--shadow-s); }
.row .tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row .nm { font-family: var(--f-display); font-size: 1.06rem; font-weight: 700; line-height: 1.15; }
.row .mc { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row .miss { font-size: .82rem; color: var(--vanilla-ink); }
.empty { padding: 36px 20px; border-radius: 24px; border: 1.5px dashed var(--line); color: var(--muted); text-align: center; display: grid; gap: 10px; justify-items: center; }
.note-hidden { margin-top: 12px; font-size: .82rem; color: var(--muted); }

/* ---------- Fiche recette ---------- */
.detail { position: relative; min-width: 0; }
.hero { position: relative; height: 330px; overflow: hidden; background: var(--lagoon-soft); }
.hero .halo { position: absolute; left: 50%; top: 168px; border-radius: 50%; }
.hero .h1 { width: 520px; height: 520px; margin: -260px 0 0 -260px; background: var(--halo-1); }
.hero .h2 { width: 340px; height: 340px; margin: -170px 0 0 -170px; background: var(--halo-2); animation: breathe 7s 1s ease-in-out infinite; }
.enter .hero .h1 { animation: halo .9s var(--ease) both; }
.enter .hero .h2 { animation: halo .9s .08s var(--ease) both, breathe 7s 1s ease-in-out infinite; }
.hero .dish { position: absolute; left: 50%; top: 52px; margin-left: -116px; }
.enter .hero .dish { animation: drop 1s .1s var(--ease) both; }
.hero-btns { position: absolute; z-index: 2; top: 18px; left: var(--gut-l); right: var(--gut-r); display: flex; justify-content: space-between; }
.fav svg { stroke: var(--l-ink); transition: transform .35s var(--spring), fill .2s; }
.fav[aria-pressed="true"] svg { fill: var(--coral); transform: scale(1.15); }
.sheet { position: relative; margin-top: -34px; padding: 26px var(--gut-r) 24px var(--gut-l); border-radius: 34px 34px 0 0; background: var(--surface); box-shadow: 0 -10px 30px rgb(13 43 44 / .08); display: grid; gap: 22px; min-height: 60vh; }
.enter .sheet { animation: sheetup .8s .05s var(--ease) both; }
.sheet::before { content: ""; position: absolute; left: 50%; top: 10px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line); }
.d-head { display: grid; gap: 8px; }
.d-head h1 { font-size: clamp(1.85rem, 1.5rem + 1.6vw, 2.4rem); line-height: 1.02; font-weight: 750; }
.d-head .desc { color: var(--muted); font-size: 1rem; max-width: 60ch; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--vanilla-soft); color: var(--ink); font-size: .92rem; }
.note .ico { color: var(--vanilla-ink); margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 10px 6px; border-radius: 18px; text-align: center; min-width: 0; }
.stat b { display: block; font-family: var(--f-display); font-size: 1.35rem; font-weight: 750; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat span { font-size: .72rem; font-weight: 700; }
.stat.k { background: var(--ink); color: #FFFFFF; } .stat.k span { color: #B9D3CF; }
.stat.p { background: var(--p-soft); color: var(--p-ink); }
.stat.g { background: var(--g-soft); color: var(--g-ink); }
.stat.l { background: var(--l-soft); color: var(--l-ink); }
.s-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; }
.s-h h2 { font-size: 1.12rem; font-weight: 700; }
.s-h .aside { font-size: .8rem; font-weight: 600; color: var(--muted); text-align: right; }
.card { padding: 16px; border-radius: 22px; background: var(--bg); display: grid; gap: 12px; min-width: 0; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .85rem; }
.bar > span:first-child { font-weight: 600; }
.bar .tr { position: relative; height: 10px; border-radius: 5px; background: #E1EBE8; overflow: hidden; }
.bar .tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; transform-origin: 0 50%; }
.enter .bar .tr i { animation: grow 1s calc(var(--i, 0) * 100ms + 500ms) var(--ease) both; }
.bar .v { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar .v b { color: var(--ink); }
.comp { padding: 12px 14px; border-radius: 16px; background: var(--vanilla-soft); display: grid; gap: 8px; font-size: .92rem; }
.comp .alts { color: var(--muted); font-size: .85rem; }
.hint { font-size: .85rem; color: var(--muted); }
.who { display: flex; gap: 8px; flex-wrap: wrap; }
.parts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.stepper output { min-width: 56px; text-align: center; font-family: var(--f-display); font-size: 1.15rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.methods { display: flex; gap: 8px; flex-wrap: wrap; }
.method { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .92rem; transition: background .25s, border-color .25s, box-shadow .25s; }
.method[aria-pressed="true"] { background: var(--lagoon-soft); border-color: var(--lagoon); box-shadow: inset 0 0 0 1px var(--lagoon); color: var(--lagoon-d); }
.method:disabled { opacity: .5; }
.method small { font-weight: 500; color: var(--muted); }
.ings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); column-gap: 24px; }
.ings li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sunk); min-width: 0; }
.ings .q { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ings .q small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--sunk); }
.steps li .n { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.steps li .n.tm { background: var(--lagoon-soft); color: var(--lagoon-d); }
.steps li .n.af { background: var(--p-soft); color: var(--p-ink); }
.steps li .n.pl { background: var(--l-soft); color: var(--l-ink); }
.steps li .n.mn { background: var(--sunk); color: var(--muted); }
.steps li .sl { margin-top: 3px; font-size: .8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.app-tm { color: var(--lagoon); } .app-af { color: var(--p-ink); } .app-pl { color: var(--l-ink); } .app-mn { color: var(--muted); }
.assiettes .row-a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.assiettes .row-a:last-child { border-bottom: 0; }
.assiettes .wn { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.assiettes .wg { font-family: var(--f-display); font-size: 1.3rem; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.assiettes .ws { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.warnbox { padding: 12px 14px; border-radius: 16px; background: var(--vanilla-soft); font-size: .9rem; }
.cta { position: sticky; z-index: 5; bottom: 0; margin: 0 calc(var(--gut-r) * -1) -24px calc(var(--gut-l) * -1); padding: 26px var(--gut-r) calc(18px + env(safe-area-inset-bottom, 0px)) var(--gut-l); background: linear-gradient(to top, var(--surface) 70%, rgb(255 255 255 / 0)); }
.cta-btn { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 10px 0 22px; border: 0; border-radius: 22px; background: var(--lagoon); color: #FFFFFF; text-align: left; box-shadow: 0 12px 26px rgb(14 124 123 / .35); }
.cta-btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, rgb(255 255 255 / 0), rgb(255 255 255 / .22), rgb(255 255 255 / 0)); animation: shine 3.6s 1.6s ease-in-out infinite; }
.cta-btn .t { display: grid; line-height: 1.2; min-width: 0; }
.cta-btn .t b { font-family: var(--f-display); font-size: 1.12rem; font-weight: 700; }
.cta-btn .t span { font-size: .78rem; font-weight: 600; color: #CDE8E4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-btn .go { width: 46px; height: 46px; flex: none; border-radius: 16px; background: var(--vanilla); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.placeholder { display: none; }

/* ---------- Cuisson ---------- */
.cook { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding-top: env(safe-area-inset-top, 0px); }
.cook.intro { animation: cookin .5s var(--ease) both; }
.cook-top { padding: 16px var(--gut-r) 0 var(--gut-l); }
.cook-top .bar1 { display: flex; align-items: center; gap: 12px; }
.cook-top .t { flex: 1; min-width: 0; }
.cook-top .t b { display: block; font-family: var(--f-display); font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook-top .t span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.cook-top .cnt { font-family: var(--f-display); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.cook-top .cnt b { color: var(--ink); }
.segs { display: flex; gap: 4px; margin-top: 14px; }
.segs span { flex: 1 1 0; height: 6px; border-radius: 3px; background: var(--line); transition: background .45s var(--ease), flex-grow .45s var(--ease); }
.segs span.done { background: var(--lagoon); }
.segs span.cur { background: var(--vanilla); flex-grow: 3; }
.cook-body { display: grid; min-height: 0; }
.cook-list { display: none; }
.cook-main { overflow: auto; padding: 24px var(--gut-r) 24px var(--gut-l); }
.cook-in { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; }
.apppill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.apppill.tm { background: var(--lagoon-soft); color: var(--lagoon-d); }
.apppill.af { background: var(--p-soft); color: var(--p-ink); }
.apppill.pl { background: var(--l-soft); color: var(--l-ink); }
.apppill.mn { background: var(--surface); color: var(--muted); }
.stepno { font-size: .82rem; font-weight: 600; color: var(--muted); }
.kidsbox { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 22px; background: var(--vanilla); color: var(--ink); font-size: .98rem; line-height: 1.35; }
.kidsbox .k { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ink); color: var(--vanilla); display: inline-flex; align-items: center; justify-content: center; animation: wobble 1.6s .6s ease-in-out 2; }
.step-text { font-family: var(--f-display); font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.15rem); line-height: 1.18; font-weight: 600; letter-spacing: -.01em; max-width: 30ch; }
.ingchips { display: flex; flex-wrap: wrap; gap: 8px; }
.ingchips span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-s); font-size: 1rem; }
.ingchips b { font-variant-numeric: tabular-nums; }
.dial { position: relative; overflow: hidden; border-radius: 26px; background: var(--dial); color: var(--dial-ink); padding: 18px 8px 16px; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); box-shadow: 0 16px 34px rgb(13 43 44 / .25); }
.dial .wv { position: absolute; left: 0; bottom: -8px; width: 1240px; height: 40px; opacity: .14; animation: wave 3s linear infinite; pointer-events: none; }
.dial .c { position: relative; padding: 0 12px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.dial .c + .c { border-left: 1px solid rgb(255 255 255 / .12); }
.dial .lb { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dial-mute); white-space: nowrap; }
.dial .vl { font-family: var(--f-display); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dial .vl.sm { font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); line-height: 1.15; }
.dial .vl small { font-size: .5em; color: var(--dial-mute); margin-left: 2px; }
.dial .vl.y { color: var(--vanilla); }
.dial .rv { position: relative; grid-column: 1 / -1; margin: 14px 12px 0; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .12); display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; color: var(--vanilla); }
.dial .rv svg { animation: rev 2.4s linear infinite; }
.tbtn { justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 12px; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-s); }
.tbtn .tc { width: 32px; height: 32px; border-radius: 50%; background: var(--lagoon); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.tipbox { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-s); font-size: .95rem; }
.tipbox .ico { color: var(--g-ink); }
.cook h2.big { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.5rem); line-height: 1.05; font-weight: 750; }
.mep { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 24px; }
.mep label { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; cursor: pointer; }
.mep input { appearance: none; width: 26px; height: 26px; flex: none; margin: 0; border-radius: 9px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: background .2s, border-color .2s; cursor: pointer; }
.mep input:checked { background: var(--lagoon); border-color: var(--lagoon); }
.mep input:checked::after { content: ""; width: 7px; height: 12px; border: solid #FFFFFF; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); animation: pop .3s var(--spring) both; }
.mep .q { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.mep input:checked ~ .n { color: var(--muted); text-decoration: line-through; }
.mep .n { min-width: 0; }
.cook-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 10px; padding: 14px var(--gut-r) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gut-l); background: var(--surface); border-radius: 28px 28px 0 0; box-shadow: 0 -8px 24px rgb(13 43 44 / .06); }
.cook-foot .btn { min-height: 58px; border-radius: 20px; font-size: 1rem; }
.burst { position: relative; height: 0; }
.burst i { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; border-radius: 3px; animation: confetti 1.4s var(--ease) both; }

/* ---------- Minuteurs ---------- */
.timers { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100% - var(--gut-l) - var(--gut-r))); display: grid; gap: 8px; pointer-events: none; }
body.cook-open .timers { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
body.detail-open:not(.cook-open) .timers { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.tpill { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 22px; background: var(--dial); color: #FFFFFF; box-shadow: var(--shadow-l); animation: cookin .45s var(--ease) both; }
.tpill svg.rg { flex: none; transform: rotate(-90deg); }
.tpill .rg circle.f { transition: stroke-dashoffset .5s linear; }
.tpill .tx { flex: 1; min-width: 0; }
.tpill .tl { font-size: .75rem; font-weight: 600; color: var(--dial-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpill .tv { font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tpill button { width: 42px; height: 42px; flex: none; border-radius: 14px; border: 0; background: rgb(255 255 255 / .1); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
.tpill.done { background: var(--vanilla); color: var(--ink); animation: ring 1s ease-in-out infinite; }
.tpill.done .tl { color: var(--vanilla-ink); }
.tpill.done button { background: rgb(13 43 44 / .1); color: var(--ink); }

/* ---------- Frigo ---------- */
.fv, .hv { display: grid; gap: 22px; padding-left: var(--gut-l); padding-right: var(--gut-r); max-width: 980px; margin: 0 auto; }
.panel { padding: 16px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-s); display: grid; gap: 12px; min-width: 0; }
.groups { display: grid; }
.groups details { border-top: 1px solid var(--sunk); }
.groups summary { display: flex; align-items: center; gap: 10px; min-height: 50px; list-style: none; cursor: pointer; font-family: var(--f-display); font-weight: 650; font-size: 1rem; }
.groups summary::-webkit-details-marker { display: none; }
.groups summary .cnt { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--lagoon); color: #FFFFFF; font: 700 .75rem var(--f-body); display: inline-flex; align-items: center; justify-content: center; animation: pop .35s var(--spring) both; }
.groups summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); margin-right: 4px; }
.groups details[open] summary::after { transform: rotate(-135deg); }
.groups .chips { padding-bottom: 14px; }
.ia { position: relative; overflow: hidden; padding: 20px; border-radius: 28px; background: var(--ink); color: #FFFFFF; display: grid; gap: 14px; box-shadow: var(--shadow-l); }
.ia::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--lagoon); opacity: .45; animation: breathe 6s ease-in-out infinite; }
.ia > * { position: relative; }
.ia-h { display: flex; align-items: center; gap: 12px; }
.ia-h .ic { width: 46px; height: 46px; border-radius: 16px; background: var(--vanilla); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ia h3 { font-size: 1.35rem; font-weight: 750; line-height: 1.1; }
.ia p, .ia .hint { color: #B9D3CF; }
.ia .field > span { color: #B9D3CF; }
.ia .select { background-color: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .16); color: #FFFFFF; background-image: linear-gradient(45deg, transparent 50%, #B9D3CF 50%), linear-gradient(135deg, #B9D3CF 50%, transparent 50%); }
.ia .select option { color: var(--ink); }
.ia .chip { background: transparent; border-color: rgb(255 255 255 / .22); color: #FFFFFF; }
.ia .chip[aria-pressed="true"] { background: var(--vanilla); border-color: var(--vanilla); color: var(--ink); }
.ia .switch { color: #FFFFFF; }
.ia .toggle { background: rgb(255 255 255 / .2); }
.ia .toggle:checked { background: var(--vanilla); }
.ia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.ia-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .95rem; }
.ia-status.err { color: #FFC7BD; }
.loader { width: 44px; height: 30px; flex: none; }
.loader path { fill: none; stroke: var(--vanilla); stroke-width: 3.5; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; animation: steam 1.6s ease-out infinite; }
.loader path:nth-child(2) { animation-delay: .5s; }
.loader path:nth-child(3) { animation-delay: 1s; }
.ia-res { padding: 14px; border-radius: 20px; background: rgb(255 255 255 / .08); display: grid; gap: 12px; animation: rise .5s var(--ease) both; }
.ia-res .top { display: flex; gap: 14px; align-items: center; }
.ia-res b.n { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; line-height: 1.15; }
.ia-res .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ia-res .btn { border-color: rgb(255 255 255 / .2); background: transparent; color: #FFFFFF; }
.ia-res .btn.vanilla { background: var(--vanilla); border-color: var(--vanilla); color: var(--ink); }

/* ---------- Foyer ---------- */
.profiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); align-items: start; }
.prof { padding: 18px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-s); display: grid; gap: 14px; min-width: 0; }
.prof-h { display: flex; align-items: center; gap: 12px; }
.prof-h .input { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.seg { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--sunk); }
.seg button { height: 40px; white-space: nowrap; font-size: .84rem !important; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 700; font-size: .88rem; transition: background .25s var(--ease), color .25s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(13 43 44 / .14); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.permeal { padding: 10px 14px; border-radius: 14px; background: var(--lagoon-soft); color: var(--lagoon-d); font-size: .9rem; font-variant-numeric: tabular-nums; }
.range { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.range input { width: 100%; accent-color: var(--lagoon); }
.range output { font-family: var(--f-display); font-weight: 750; font-variant-numeric: tabular-nums; }
.appl { display: flex; align-items: center; gap: 12px; }
.appl .ai { width: 40px; height: 40px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.appl .ai.tm { background: var(--lagoon-soft); color: var(--lagoon-d); }
.appl .ai.af { background: var(--p-soft); color: var(--p-ink); }
.appl .ai.pl { background: var(--l-soft); color: var(--l-ink); }

/* ---------- Feuille de profils ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgb(13 43 44 / .4); animation: fade .25s both; }
.bsheet { position: fixed; z-index: 71; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100%); padding: 12px var(--gut-r) calc(20px + env(safe-area-inset-bottom, 0px)) var(--gut-l); border-radius: 30px 30px 0 0; background: var(--surface); box-shadow: 0 -10px 40px rgb(13 43 44 / .2); display: grid; gap: 14px; animation: sheetin .45s var(--ease) both; }
@keyframes sheetin { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
.bsheet .hd { justify-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.bsheet h2 { font-size: 1.3rem; font-weight: 750; }
.plist { display: grid; gap: 8px; }
.pitem { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 20px; border: 0; background: var(--bg); text-align: left; }
.pitem[aria-pressed="true"] { background: var(--lagoon-soft); box-shadow: inset 0 0 0 2px var(--lagoon); }
.pitem .tx { flex: 1; min-width: 0; display: grid; }
.pitem .tx b { font-family: var(--f-display); font-size: 1.05rem; }
.pitem .tx span { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pitem .ok { width: 28px; height: 28px; border-radius: 50%; background: var(--lagoon); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; animation: pop .35s var(--spring) both; }

.toast { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); top: calc(14px + env(safe-area-inset-top, 0px)); max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 16px; background: var(--ink); color: #FFFFFF; font-weight: 600; box-shadow: var(--shadow-l); animation: toastin .35s var(--ease) both; }

/* ---------- Tablette ---------- */
@media (min-width: 900px) {
  .rv, .rv.has-detail { grid-template-columns: minmax(360px, 420px) minmax(0, 1fr); gap: 28px; align-items: start; padding-right: var(--gut-r); }
  .rv.has-detail .list-col, .rv:not(.has-detail) .detail-col { display: block; }
  .list-col { padding-right: 0; }
  .detail-col { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); margin-top: 16px; height: calc(100vh - 32px - env(safe-area-inset-top, 0px)); overflow: auto; border-radius: 34px; background: var(--surface); box-shadow: var(--shadow-m); scrollbar-width: thin; }
  .detail-col .hero { border-radius: 34px 34px 0 0; }
  .detail-col .back-btn { visibility: hidden; }
  .detail-col .sheet { --gut-l: 28px; --gut-r: 28px; }
  .detail-col .cta { margin-bottom: -24px; }
  .placeholder { display: grid; place-items: center; align-content: center; gap: 14px; height: 100%; padding: 40px; text-align: center; color: var(--muted); }
  .placeholder .dish { animation: float 6s ease-in-out infinite; }
  body.detail-open .tabbar { transform: translateX(-50%); opacity: 1; pointer-events: auto; }
  .tabbar { left: calc(var(--gut-l) + 200px); width: 380px; }
  .timers { left: calc(var(--gut-l) + 200px); width: 380px; }
  body.detail-open:not(.cook-open) .timers { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .cook-body { grid-template-columns: 300px minmax(0, 1fr); }
  .cook-list { display: block; overflow: auto; padding: 18px 12px 18px var(--gut-l); border-right: 1px solid var(--line); }
  .cook-list button { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px; border: 0; border-radius: 14px; background: none; color: var(--muted); text-align: left; font-size: .88rem; }
  .cook-list button .n { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--sunk); font-weight: 700; font-size: .8rem; }
  .cook-list button[aria-current="step"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
  .cook-list button[aria-current="step"] .n { background: var(--vanilla); color: var(--ink); }
  .cook-list button.past .n { background: var(--lagoon); color: #FFFFFF; }
  .cook-list .tx { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cook-foot { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Planificateur (temps et appareils) ---------- */
.planner { margin-top: 14px; padding: 12px 0 12px 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-s); display: grid; gap: 6px; }
.pl-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 4px; }
.pl-l { display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chips.in { margin: 0; padding: 2px 14px 2px 0; scroll-padding-inline: 0; }
.planner .chip { height: 36px; padding: 0 13px; }
.chip.app[aria-pressed="false"] { color: var(--muted); background: var(--bg); border-color: transparent; text-decoration: line-through; text-decoration-color: rgb(79 104 102 / .5); }
.chip.app[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip.app[aria-pressed="true"] .ico { color: var(--vanilla); }

/* ---------- Mode voix ---------- */
.vbtn { position: relative; width: 46px; height: 46px; flex: none; border-radius: 16px; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); display: inline-flex; align-items: center; justify-content: center; transition: background .25s, color .25s, transform .15s var(--ease); }
.vbtn[aria-pressed="true"] { background: var(--lagoon); color: #FFFFFF; }
.vbtn .eqz { display: none; position: absolute; right: 6px; bottom: 7px; gap: 2px; align-items: flex-end; height: 10px; }
.vbtn.listening .eqz { display: inline-flex; }
.vbtn .eqz i { width: 2px; height: 4px; border-radius: 1px; background: var(--vanilla); animation: eqz .9s ease-in-out infinite; }
.vbtn .eqz i:nth-child(2) { animation-delay: .15s; }
.vbtn .eqz i:nth-child(3) { animation-delay: .3s; }
@keyframes eqz { 0%, 100% { height: 3px; } 50% { height: 10px; } }
.vstat { margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 26px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.vstat .live { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--coral); animation: live 1.6s infinite; }
.vstat .spk { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--lagoon); }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgb(238 99 82 / .5); } 70% { box-shadow: 0 0 0 9px rgb(238 99 82 / 0); } 100% { box-shadow: 0 0 0 0 rgb(238 99 82 / 0); } }
.vstat .heard { padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #FFFFFF; animation: pop .35s var(--spring) both; }
.steprow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.readbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--surface); color: var(--lagoon-d); font-weight: 700; font-size: .82rem; box-shadow: var(--shadow-s); }
.voicecard { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; background: var(--ink); color: #FFFFFF; }
.voicecard .vi { width: 46px; height: 46px; flex: none; border-radius: 16px; background: var(--vanilla); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.voicecard b { font-family: var(--f-display); font-size: 1.05rem; }
.voicecard p { color: #B9D3CF; font-size: .88rem; line-height: 1.4; }
.voicecard .btn { margin-left: auto; flex: none; }
.cook-main { touch-action: pan-y; }
.cmds { display: flex; flex-wrap: wrap; gap: 6px; }
.cmds span { padding: 4px 10px; border-radius: 999px; background: var(--sunk); font-size: .8rem; font-weight: 700; color: var(--lagoon-d); }
.tpill.done circle.f { stroke: var(--ink); }
.tpill.done circle.t { stroke: rgb(13 43 44 / .15); }
@media (max-width: 420px) { .voicecard { flex-wrap: wrap; } .voicecard .btn { margin-left: 60px; } }

/* Plat du soir : vignette plus petite sur téléphone */
@media (max-width: 480px) {
  .feat { margin-top: 30px; }
  .feat .dish.md { width: 148px; height: 148px; right: -10px; top: -30px; }
  .feat .dish.md .steam { left: 30px !important; top: 22px !important; }
  .feat .txt { max-width: calc(100% - 132px); min-width: 0; }
  .feat h3 { font-size: 1.4rem; }
}
