/* Mijote 3 — design */
@font-face{font-family:Outfit;font-weight:500;font-display:swap;src:url(fonts/outfit-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Outfit;font-weight:600;font-display:swap;src:url(fonts/outfit-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:Outfit;font-weight:700;font-display:swap;src:url(fonts/outfit-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Outfit;font-weight:800;font-display:swap;src:url(fonts/outfit-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(fonts/inter-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url(fonts/inter-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url(fonts/inter-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-weight:700;font-display:swap;src:url(fonts/inter-latin-700-normal.woff2) format("woff2")}
:root{
  --bg:#f7f4ef;--card:#ffffff;--surf:#f0ebe4;--surf2:#e7e0d6;--line:#e8e1d7;--ink:#1d1a16;--ink2:#5d564e;--ink3:#8f877d;
  --tom:#e4572e;--tom2:#c94520;--toms:#fde6dc;--leaf:#2f7d4f;--leafs:#dcefe3;--sun:#f2b632;--suns:#fdf0cf;--plum:#7a4fb5;--plums:#ece3f8;--sky:#2b78c5;--skys:#dfeaf8;
  --sh1:0 1px 2px rgba(40,30,20,.06),0 4px 14px rgba(40,30,20,.06);--sh2:0 10px 40px rgba(40,30,20,.16);
  --r:20px;--r2:14px;--hf:Outfit,Inter,system-ui,sans-serif;--bf:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color-scheme:light
}
@media (prefers-color-scheme:dark){:root{
  --bg:#141311;--card:#1f1d1a;--surf:#2a2723;--surf2:#35312c;--line:#322e29;--ink:#f3efe9;--ink2:#bdb5ab;--ink3:#8c847a;
  --toms:#3d2219;--leafs:#1c3326;--suns:#3a2f14;--plums:#2d2340;--skys:#1a2a3d;--sh1:0 1px 2px rgba(0,0,0,.3),0 4px 14px rgba(0,0,0,.25);--sh2:0 10px 40px rgba(0,0,0,.5);color-scheme:dark}}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 var(--bf);min-height:100vh;padding-bottom:calc(96px + env(safe-area-inset-bottom))}
body.onbm{padding-bottom:0}
h1,h2,h3{font-family:var(--hf);letter-spacing:-.01em;margin:0}
h1{font-size:30px;font-weight:800;line-height:1.1}
h2{font-size:20px;font-weight:700}
h3{font-size:16px;font-weight:700}
p{margin:0}
a{color:var(--tom)}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
input,select,textarea{font:inherit;color:inherit}
.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
svg{display:block}
.note{color:var(--ink2);font-size:13.5px}
.err{color:var(--tom2);font-size:14px;min-height:0}
.err:empty{display:none}
#app{max-width:1280px;margin:0 auto}
.scr{padding:calc(14px + env(safe-area-inset-top)) 18px 24px;animation:fade .25s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* en-tête */
.hd{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:6px 0 18px}
.hd>div:first-child{min-width:0}
.eyebrow{font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--ink3);margin-bottom:4px}
.hd-act{display:flex;gap:8px;flex:none}
.ib{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--card);box-shadow:var(--sh1);flex:none}
.ib.sm{width:36px;height:36px;border-radius:11px;box-shadow:none;background:var(--surf)}
.ib.av{background:var(--ink);color:var(--bg)}
.ib.tomb{background:var(--tom);color:#fff}

/* boutons */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;padding:0 20px;border-radius:16px;font-weight:600;font-size:15.5px;transition:transform .1s,background .15s}
.btn:active{transform:scale(.98)}
.btn.tom{background:var(--tom);color:#fff;box-shadow:0 6px 18px rgba(228,87,46,.28)}
.btn.tom:hover{background:var(--tom2)}
.btn.soft{background:var(--surf);color:var(--ink)}
.btn.soft:hover{background:var(--surf2)}
.btn.danger{color:var(--tom2);margin-top:14px}
.btn[disabled]{opacity:.4;pointer-events:none}
.lnk{color:var(--tom);font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:4px;min-height:36px}
.lnk .i{width:16px;height:16px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.row2.ctr{align-items:center;margin:0 0 6px}
.row2.ctr b{text-align:right}

/* puces */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.chips.scrollx{flex-wrap:nowrap;overflow-x:auto;margin:0 -18px 16px;padding:2px 18px;scrollbar-width:none}
.chips.scrollx::-webkit-scrollbar{display:none}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 15px;border-radius:999px;background:var(--card);border:1.5px solid var(--line);font-weight:500;font-size:14px;white-space:nowrap}
.chip .i{width:16px;height:16px}
.chip[aria-pressed=true],.chip.on{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.chip.neg[aria-pressed=true]{background:var(--tom);border-color:var(--tom);color:#fff}
.chip.add{border-style:dashed;border-color:var(--leaf);color:var(--leaf)}
.chip.ro{cursor:default;background:var(--surf);border-color:transparent}
.chip.sm{min-height:32px;padding:0 12px}
.chip.on .dot{box-shadow:0 0 0 2px var(--bg)}
.dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex:none}
.seg{display:inline-flex;background:var(--surf);border-radius:13px;padding:3px;gap:2px}
.seg button{min-height:36px;padding:0 14px;border-radius:10px;font-weight:600;font-size:14px;color:var(--ink2)}
.seg button[aria-pressed=true],.seg button[aria-selected=true]{background:var(--card);color:var(--ink);box-shadow:var(--sh1)}
.seg.full{display:flex;margin:6px 0 14px}.seg.full button{flex:1}

/* champs */
.inp{width:100%;min-height:50px;border-radius:14px;border:1.5px solid var(--line);background:var(--card);padding:0 14px;font-size:16px;outline:none}
.inp:focus{border-color:var(--ink)}
textarea.inp{min-height:140px;padding:12px 14px;line-height:1.5;resize:vertical}
.search{display:flex;align-items:center;gap:10px;background:var(--card);border-radius:16px;padding:0 14px;box-shadow:var(--sh1);margin:0 0 14px;border:1.5px solid transparent}
.search:focus-within{border-color:var(--ink)}
.search .i{color:var(--ink3)}
.search input{flex:1;min-width:0;border:0;background:none;outline:none;min-height:52px;font-size:16px}
.fld{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px;margin:12px 0}
.fld .seg{align-self:flex-start}
.form1{display:flex;flex-direction:column;gap:8px}
.form1 label{font-weight:600;font-size:14px;margin-top:6px}
.addbar{display:flex;gap:8px}.addbar .btn{width:auto}.addbar select.inp{width:auto}
.chk{display:flex;gap:10px;align-items:center;font-weight:500!important}
.sug{display:flex;flex-direction:column;gap:2px;margin:-6px 0 10px}
.sug:empty{display:none}
.sugi{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:12px;text-align:left}
.sugi:hover{background:var(--surf)}
.sugi .note{margin-left:auto}
.range{width:100%;accent-color:var(--tom);height:32px}

/* cartes */
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--sh1);padding:18px}
.empty{text-align:center;padding:28px 20px;display:flex;flex-direction:column;gap:10px;align-items:center}
.empty .btn{max-width:320px}
.cta{display:flex;align-items:center;gap:14px;margin:0 0 16px;background:var(--leafs);box-shadow:none}
.cta>div{flex:1}.cta .btn{width:auto;flex:none}
.cta.warn{background:var(--suns)}
.block{margin:0 0 22px}
.bh{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.meals{display:flex;flex-direction:column;gap:10px}
.th{width:76px;height:76px;border-radius:16px;overflow:hidden;flex:none;background:var(--surf)}
.th svg{width:100%;height:100%}
.th.big{width:100%;height:auto;aspect-ratio:16/10;border-radius:16px}
.th.big svg{height:100%;width:100%;object-fit:cover}
.meal{display:flex;align-items:center;gap:14px;background:var(--card);border-radius:var(--r);padding:10px;box-shadow:var(--sh1);cursor:pointer;text-align:left;width:100%;transition:transform .12s}
.meal:active{transform:scale(.99)}
.mt{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.mt b{font-family:var(--hf);font-size:16.5px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mm{display:flex;flex-wrap:wrap;gap:4px 12px;color:var(--ink2);font-size:13px}
.mm span{display:inline-flex;align-items:center;gap:4px}
.mm .i{width:14px;height:14px}
.lk{color:var(--leaf);font-weight:600}
.slot{align-self:flex-start;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:3px 8px;border-radius:7px}
.s-pdj{background:var(--suns);color:#9a6a00}.s-dej{background:var(--leafs);color:var(--leaf)}.s-din{background:var(--toms);color:var(--tom2)}.s-ev{background:var(--plums);color:var(--plum)}.s-ap{background:var(--skys);color:var(--sky)}
@media (prefers-color-scheme:dark){.s-pdj{color:var(--sun)}.s-dej{color:#7fd09d}.s-din{color:#ff9b7a}.s-ev{color:#c7a6f2}.s-ap{color:#8bbcef}}
.sw{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--surf);flex:none;color:var(--ink2)}
.meal.add{box-shadow:none;border:1.5px dashed var(--surf2);background:transparent;padding:12px}
.meal.add .plus{width:52px;height:52px;border-radius:14px;background:var(--surf);display:grid;place-items:center;color:var(--ink3)}
.meal.add b{color:var(--ink3);font-weight:500}
.evc{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:12px 14px;border-radius:var(--r);background:linear-gradient(120deg,var(--plums),var(--card));box-shadow:var(--sh1);margin:0 0 10px}
.evi{width:52px;height:52px;border-radius:16px;background:var(--plum);color:#fff;display:grid;place-items:center;flex:none}
.evi .i{width:24px;height:24px}
.evc>.i{color:var(--ink3)}

/* budget */
.bud .row{display:flex;justify-content:space-between;align-items:center;gap:10px}
b.big,.big{font-family:var(--hf);font-size:30px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.ring{--p:0;width:60px;height:60px;border-radius:50%;background:conic-gradient(var(--leaf) calc(var(--p)*1%),var(--surf) 0);display:grid;place-items:center;flex:none}
.ring span{width:46px;height:46px;border-radius:50%;background:var(--card);display:grid;place-items:center;font-size:12px;font-weight:700}
.track{height:8px;border-radius:99px;background:var(--surf);overflow:hidden;margin:12px 0 8px}
.track i{display:block;height:100%;background:var(--leaf);border-radius:99px;transition:width .3s}
.track i.over{background:var(--tom)}
.bm{font-size:14px;font-weight:600;color:var(--leaf)}.bm.over{color:var(--tom2)}
.cov{font-size:12.5px;color:var(--ink2);margin-top:10px;display:flex;gap:8px;align-items:flex-start}
.cdot{width:8px;height:8px;border-radius:50%;background:var(--leaf);margin-top:5px;flex:none}

/* accueil */
.home,.wkgrid,.shopgrid,.fridge{display:grid;gap:22px}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 22px}
.qa{background:var(--card);border-radius:var(--r);box-shadow:var(--sh1);padding:14px;text-align:left;display:flex;flex-direction:column;gap:2px}
.qa b{font-family:var(--hf);font-size:16px;margin-top:8px}.qa>span:last-child{font-size:12.5px;color:var(--ink2)}
.qi{width:42px;height:42px;border-radius:13px;display:grid;place-items:center}
.q1{background:var(--skys);color:var(--sky)}.q2{background:var(--plums);color:var(--plum)}.q3{background:var(--leafs);color:var(--leaf)}.q4{background:var(--toms);color:var(--tom)}
.idea{display:flex;flex-direction:column;gap:10px;background:var(--card);border-radius:var(--r);box-shadow:var(--sh1);padding:10px 10px 16px;text-align:left;width:100%}
.idea .mt{padding:0 6px}

/* planning */
.calbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 14px;flex-wrap:wrap}
.navw{display:flex;gap:6px;align-items:center}
.navw .chip{min-height:36px}
.strip{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:0 0 18px;position:sticky;top:0;z-index:5;background:var(--bg);padding:8px 0}
.sd{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0;border-radius:14px;text-decoration:none;color:var(--ink);background:var(--card);box-shadow:var(--sh1)}
.sd span{font-size:11.5px;color:var(--ink3);font-weight:600}
.sd b{font-family:var(--hf);font-size:18px}
.sd i{font-style:normal;color:var(--tom);font-size:12px;line-height:1;height:12px;letter-spacing:1px}
.sd em{font-style:normal;color:var(--plum)}
.sd.now{background:var(--ink);color:var(--bg)}.sd.now span{color:var(--bg);opacity:.7}
.days{display:flex;flex-direction:column;gap:20px}
.day{scroll-margin-top:90px}
.day .dh{display:flex;justify-content:space-between;align-items:center;margin:0 0 10px}
.day h2{font-size:19px}.day h2 span{color:var(--ink3);font-weight:500;font-size:15px;margin-left:4px}
.day .meal,.day .evc{margin:0 0 10px}
.day.past{opacity:.6}
.day.today h2::after{content:"Aujourd’hui";font-family:var(--bf);font-size:11px;font-weight:700;background:var(--tom);color:#fff;border-radius:6px;padding:2px 7px;margin-left:8px;vertical-align:3px}
.nothing{padding:10px 0}
.tips{margin-top:14px;background:var(--surf);box-shadow:none}
.month{padding:12px}
.mh,.mg{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.mh span{text-align:center;font-size:12px;font-weight:700;color:var(--ink3);padding:4px 0}
.mc{min-height:68px;border-radius:12px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;gap:4px;background:var(--surf);overflow:hidden}
.mc b{font-family:var(--hf);font-size:15px}
.mc.out{opacity:.35}
.mc.now{outline:2px solid var(--tom)}
.dots{display:flex;gap:3px}.dots i,.legend i{width:7px;height:7px;border-radius:50%;display:inline-block}
.dots i.s-pdj,.legend i.s-pdj{background:var(--sun)}.dots i.s-dej,.legend i.s-dej{background:var(--leaf)}.dots i.s-din,.legend i.s-din{background:var(--tom)}.legend i.s-ev{background:var(--plum)}
.evtag{font-size:10px;font-weight:700;background:var(--plum);color:#fff;border-radius:5px;padding:1px 4px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.legend{display:flex;flex-wrap:wrap;gap:14px;margin:12px 4px;font-size:13px;color:var(--ink2)}
.legend span{display:inline-flex;gap:6px;align-items:center}

/* recettes */
.count{margin:0 0 10px}
.rgrid{display:grid;grid-template-columns:1fr;gap:10px}
.rc{display:flex;gap:14px;align-items:center;background:var(--card);border-radius:var(--r);box-shadow:var(--sh1);padding:10px;text-align:left;position:relative;width:100%}
.rt{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.rt b{font-family:var(--hf);font-size:16px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fav{position:absolute;top:10px;right:10px;color:var(--tom)}.fav .i,.ib.fv.on .i{fill:var(--tom);stroke:var(--tom)}
.more{margin-top:16px}

/* frigo */
.fin .search{box-shadow:none;background:var(--surf);margin-top:8px}
.photo-btn{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:14px;border-radius:16px;border:1.5px dashed var(--surf2);cursor:pointer;margin:4px 0 8px}
.photo-btn input{display:none}
.photo-btn .i{grid-row:span 2;width:40px;height:40px;padding:9px;border-radius:12px;background:var(--skys);color:var(--sky)}
.photo-btn span{font-weight:600}.photo-btn small{color:var(--ink2);font-size:12.5px}
.photo-btn img{width:100%;border-radius:10px;margin-bottom:6px}
.chips.fl{margin:12px 0 4px}
.li{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:54px;border-bottom:1px solid var(--line)}
.li:last-child{border-bottom:0}
.li.tgl{border:0;padding-top:12px}
.tg{width:52px;height:32px;border-radius:99px;background:var(--surf2);position:relative;flex:none;transition:background .2s}
.tg i{position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.tg[aria-checked=true]{background:var(--leaf)}.tg[aria-checked=true] i{transform:translateX(20px)}
.fres{display:grid;gap:12px}
.fr{padding:12px}
.frh{display:flex;gap:14px;align-items:center;text-align:left;width:100%}
.uses,.miss{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;margin-top:10px}
.uses{color:var(--leaf)}.miss{color:var(--ink2)}
.uses .i,.miss .i{width:16px;height:16px;margin-top:2px}
.fr .row2{margin-bottom:0}.fr .btn{min-height:44px;font-size:14px}

/* courses */
.progress{display:flex;align-items:center;gap:12px;font-weight:600;font-size:14px;margin:0 0 12px}.progress .track{flex:1;margin:0}
.storeh{display:flex;align-items:center;gap:10px;padding:14px 16px;border-radius:16px;background:var(--ink);color:var(--bg);margin:18px 0 6px}
.storeh b{font-family:var(--hf);font-size:17px}.storeh span{margin-left:auto;font-size:13px;opacity:.8}
.aisle{margin:12px 0}
.aisle h3{display:flex;justify-content:space-between;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--ink3);margin:0 4px 8px}
.it{display:flex;align-items:center;gap:12px;background:var(--card);border-radius:16px;padding:10px 12px;margin:0 0 8px;box-shadow:var(--sh1);cursor:pointer}
.it input{width:22px;height:22px;accent-color:var(--leaf);flex:none;margin:0}
.it.done{opacity:.5}.it.done b{text-decoration:line-through}
.it.pl{box-shadow:none;background:var(--surf)}
.pimg{width:56px;height:56px;border-radius:12px;object-fit:contain;background:#fff;flex:none;border:1px solid var(--line)}
.pimg.ph{display:grid;place-items:center;font-family:var(--hf);font-weight:700;font-size:20px;color:rgba(0,0,0,.45);border:0}
.pimg.sm{width:40px;height:40px;border-radius:10px;font-size:15px}
.itx{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.itx b{font-weight:600}
.prodn{font-size:13px;color:var(--ink);opacity:.85;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.itx .note{font-size:12.5px}
.tagsrc{align-self:flex-start;font-size:11px;font-weight:600;padding:2px 7px;border-radius:6px;margin-top:2px}
.tagsrc.real{background:var(--leafs);color:var(--leaf)}.tagsrc.fr{background:var(--skys);color:var(--sky)}.tagsrc.est{background:var(--surf);color:var(--ink2)}.tagsrc.perso{background:var(--suns);color:#9a6a00}
.pr{font-weight:700;white-space:nowrap;text-align:right;display:flex;flex-direction:column;align-items:flex-end}
.prb{padding:8px 10px;border-radius:12px;background:var(--surf);min-height:40px;justify-content:center}
.pr small{font-weight:500;font-size:11px;color:var(--ink2)}
.del{width:36px;height:36px;border-radius:10px;font-size:20px;color:var(--ink3);flex:none}
.dates{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:0 0 14px;padding:14px}
.dates label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:13px;flex:1;min-width:130px}
.dates .btn{width:auto}
.cmp{margin-top:14px}.cmp .li{min-height:44px;font-size:14px}
.cmp .li.best{color:var(--leaf);font-weight:700}.cmp .li.best span{display:flex;gap:6px;align-items:center}
.save{margin-top:10px;background:var(--leafs);color:var(--leaf);font-weight:600;font-size:14px;border-radius:12px;padding:10px 12px}

/* profil */
.prefs{display:grid;gap:16px}
.sec h3{font-size:18px;margin:0 0 10px}
.sec>.note{margin:0 0 6px}
.blk{margin:16px 0 0}.blk>b{display:block;margin:0 0 4px}
.step{display:flex;align-items:center;gap:6px;background:var(--surf);border-radius:14px;padding:4px}
.step button{width:38px;height:38px;border-radius:11px;background:var(--card);font-size:20px;font-weight:600;box-shadow:var(--sh1)}
.step b{min-width:34px;text-align:center;font-family:var(--hf);font-size:17px}
.step.sm button{width:32px;height:32px;font-size:17px}.step.sm b{min-width:56px;font-size:14px}
.mgrid{display:grid;grid-template-columns:52px repeat(3,1fr);gap:6px;margin:10px 0 4px}
.gh{font-size:12.5px;font-weight:700;color:var(--ink2);min-height:32px}
.gd{font-size:13px;font-weight:600;text-align:left;min-height:40px}
.gc{min-height:40px;border-radius:11px;background:var(--surf);border:1.5px solid transparent;transition:background .15s}
.gc[aria-pressed=true].s-pdj{background:var(--sun)}.gc[aria-pressed=true].s-dej{background:var(--leaf)}.gc[aria-pressed=true].s-din{background:var(--tom)}
.gc[aria-pressed=true]{box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}

/* bienvenue */
.onb{min-height:100vh;min-height:100dvh;max-width:560px;margin:0 auto;padding:calc(18px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}
.onb .body{flex:1;display:flex;flex-direction:column;gap:12px}
.onb h1{font-size:30px}
.lead{color:var(--ink2);font-size:16px}
.onb .lead{margin-top:6px}
.bar{display:flex;align-items:center;gap:14px}.bar .track{flex:1;margin:0}
.welcome{justify-content:center;text-align:center;align-items:center}
.welcome .art{width:min(70vw,300px);aspect-ratio:1;border-radius:50%;overflow:hidden;box-shadow:var(--sh2);margin-bottom:12px}
.welcome .art svg{width:100%;height:100%}
.welcome .lead{max-width:34ch}
.welcome .btn{margin-top:18px;max-width:380px}
.brand{display:inline-flex;align-items:center;gap:10px;font-family:var(--hf);font-weight:800;font-size:22px;color:var(--tom)}
.navlogo{width:34px;height:34px;border-radius:11px;background:var(--tom) url(icon-192.png) center/cover;flex:none;display:inline-block}
.onb .big{display:flex;align-items:center;justify-content:center;gap:26px;margin:30px 0 4px}
.onb .big button{width:60px;height:60px;border-radius:20px;background:var(--card);box-shadow:var(--sh1);font-size:28px}
.onb .big b{font-family:var(--hf);font-size:64px;min-width:80px;text-align:center}
.hint{text-align:center;color:var(--ink2)}
.money{font-family:var(--hf);font-size:52px;font-weight:800;text-align:center;margin:20px 0 4px}
.opts{display:flex;flex-direction:column;gap:10px;margin:8px 0}
.opt{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;border-radius:16px;background:var(--card);box-shadow:var(--sh1);text-align:left;font-weight:600;border:2px solid transparent}
.opt small{display:block;font-weight:400;color:var(--ink2);font-size:13px;margin-top:2px}
.ck{width:24px;height:24px;border-radius:50%;border:2px solid var(--surf2);flex:none}
.opt[aria-pressed=true]{border-color:var(--ink)}.opt[aria-pressed=true] .ck{background:var(--ink);box-shadow:inset 0 0 0 4px var(--card)}
.cook{flex:1;display:grid;place-items:center;text-align:center}
.pot{width:110px;height:110px;margin:0 auto 18px;border-radius:50%;background:var(--toms);position:relative}
.pot::after{content:"";position:absolute;inset:26px;border-radius:50%;border:6px solid var(--tom);border-top-color:transparent;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.auth .authtop{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.authart{width:150px;aspect-ratio:1;border-radius:50%;overflow:hidden;box-shadow:var(--sh2)}
.authart svg{width:100%;height:100%}
.auth .seg{margin:10px auto}

/* feuilles */
.veil{position:fixed;inset:0;background:rgba(20,15,10,.45);opacity:0;pointer-events:none;transition:opacity .25s;z-index:40;backdrop-filter:blur(2px)}
.veil.on{opacity:1;pointer-events:auto}
.sheet{position:fixed;left:0;right:0;bottom:0;max-height:92vh;max-height:92dvh;overflow-y:auto;background:var(--bg);border-radius:26px 26px 0 0;z-index:50;transform:translateY(105%);transition:transform .32s cubic-bezier(.2,.8,.2,1);padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain}
.sheet.on{transform:none}
.sheet.full{max-height:100vh;max-height:100dvh;height:100dvh;border-radius:0}
.grab{width:42px;height:5px;border-radius:99px;background:var(--surf2);margin:10px auto 0}
.sh{padding:14px 20px 26px;display:flex;flex-direction:column;gap:10px}
.sh h2{font-size:24px}
.sh>.btn{margin-top:4px}
.sh h3{margin-top:10px}
.hero{position:relative;height:min(42vh,340px);overflow:hidden}
.hero svg{width:100%;height:100%;object-fit:cover}
.hero>svg{position:absolute;inset:-10% 0;height:120%}
.hero .ib{position:absolute;top:calc(14px + env(safe-area-inset-top));left:16px}
.hero .ib.fv{left:auto;right:16px}
.rbody{padding:20px 20px 120px;max-width:1100px;margin:0 auto}
.rbody h1{font-size:28px;margin:8px 0 14px}
.facts{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:0 0 20px}
@media (min-width:480px){.facts{grid-template-columns:repeat(4,1fr)}}
.facts div{background:var(--card);border-radius:14px;padding:10px;box-shadow:var(--sh1);display:flex;flex-direction:column;gap:2px}
.facts span{font-size:11.5px;color:var(--ink3);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.facts b{font-family:var(--hf);font-size:16px}
.rcols h3{display:flex;align-items:center;gap:8px;margin:22px 0 10px}
.rcols .bh h3{margin:0}
.rcols>div>.bh{margin-top:4px}
.ing{list-style:none;margin:0;padding:0;background:var(--card);border-radius:var(--r);box-shadow:var(--sh1)}
.ing li{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line)}
.ing li:last-child{border:0}
.ing li>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}
.ing li small{color:var(--ink2);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mise{margin:0;padding:0 0 0 20px;display:flex;flex-direction:column;gap:6px;color:var(--ink2)}
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.steps li{display:flex;gap:14px;align-items:flex-start;background:var(--card);border-radius:16px;padding:14px;box-shadow:var(--sh1);font-size:15.5px;line-height:1.5}
.stp{width:32px;height:32px;border-radius:50%;background:var(--ink);color:var(--bg);font-weight:700;font-family:var(--hf);flex:none}
.steps li.done{opacity:.5}.steps li.done .stp{background:var(--leaf)}
.tipbox{display:flex;gap:12px;background:var(--suns);border-radius:16px;padding:14px;margin-top:14px;font-size:14.5px}
.tipbox.keep{background:var(--skys)}
.tipbox p{margin-top:4px}
.rbar{position:fixed;left:0;right:0;bottom:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(transparent,var(--bg) 30%);z-index:2}
.rbar>div{max-width:640px;margin:0 auto}
.rbar .row2{margin:0}
.sheet.full .rbar{position:sticky}
.alt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:8px;border-radius:16px;margin:0 0 6px;background:var(--card);box-shadow:var(--sh1)}
.alt .th{width:58px;height:58px;border-radius:12px}
.alt.simple{padding:12px 14px}
.altm{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-align:left}
.menu{display:flex;flex-direction:column;gap:4px}
.course .eyebrow{margin:8px 4px 6px}
.li.tot b{font-family:var(--hf);font-size:20px}
.offer{display:flex;gap:12px;align-items:center;background:var(--card);border-radius:16px;padding:12px;box-shadow:var(--sh1);border:2px solid transparent}
.offer.best{border-color:var(--leaf)}
.ot{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;font-size:13.5px}
.ot b{font-size:15px}
.op{text-align:right;font-family:var(--hf);font-size:18px;display:flex;flex-direction:column}
.op small{font-family:var(--bf);font-size:11.5px;color:var(--ink2);font-weight:500}
.badge-ok{font-size:11px;background:var(--leaf);color:#fff;border-radius:6px;padding:2px 6px;vertical-align:2px}
.tags{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.tags figure{margin:0;background:var(--card);border-radius:14px;overflow:hidden;box-shadow:var(--sh1)}
.tags img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.tags figcaption{font-size:12px;padding:6px 8px;color:var(--ink2)}
.sharebox{background:var(--surf);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px;margin-top:8px}
.edhead{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:var(--bg)}
.edhead span{width:44px}
.edlist{display:flex;flex-direction:column;gap:6px}
.edrow{display:flex;align-items:center;gap:10px;background:var(--card);border-radius:14px;padding:6px 6px 6px 12px}
.edrow .nm{flex:1;display:flex;align-items:center;gap:8px;min-width:0}
.edq{display:flex;align-items:center;gap:6px}.edq .inp{width:80px;min-height:40px;text-align:right}

/* barre d’onglets */
.tabs{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(10px + env(safe-area-inset-bottom));width:min(560px,calc(100% - 20px));z-index:30;background:color-mix(in srgb,var(--card) 88%,transparent);backdrop-filter:blur(18px) saturate(1.6);-webkit-backdrop-filter:blur(18px) saturate(1.6);border-radius:24px;box-shadow:var(--sh2);padding:6px}
.tabs[hidden]{display:none!important}
.navbrand,.deskonly{display:none!important}
.tabs>div{display:grid;grid-template-columns:repeat(5,1fr)}
.tabs button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0;border-radius:18px;font-size:11px;font-weight:600;color:var(--ink3);position:relative}
.tabs button .i{width:23px;height:23px}
.tabs button[aria-selected=true]{color:var(--tom);background:var(--toms)}
.badge{position:absolute;top:3px;left:calc(50% + 6px);min-width:18px;height:18px;border-radius:9px;background:var(--tom);color:#fff;font-size:10.5px;font-weight:700;display:grid;place-items:center;padding:0 5px}
.toast{position:fixed;left:50%;bottom:calc(100px + env(safe-area-inset-bottom));transform:translate(-50%,20px);background:var(--ink);color:var(--bg);padding:12px 16px;border-radius:14px;display:flex;gap:16px;align-items:center;opacity:0;pointer-events:none;transition:.25s;z-index:60;font-weight:500;max-width:calc(100% - 32px);box-shadow:var(--sh2)}
.toast.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.toast button{color:var(--sun);font-weight:700}

/* tablette */
@media (min-width:720px){
  .scr{padding:28px 28px 40px}
  h1{font-size:36px}
  .home{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
  .wkgrid,.shopgrid{grid-template-columns:minmax(0,1fr) 320px;align-items:start}
  .fridge{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:start}
  .side{position:sticky;top:20px}
  .rgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fres{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
  .prefs{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .prefs>.btn{grid-column:1/-1;max-width:360px}
  .sheet:not(.full){left:50%;right:auto;width:600px;transform:translate(-50%,105%);bottom:20px;border-radius:26px;max-height:calc(100vh - 40px)}
  .sheet:not(.full).on{transform:translate(-50%,0)}
  .rcols{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:28px;align-items:start}
  .rbody{padding:28px 32px 120px}
  .rbody h1{font-size:36px}
  .facts{max-width:640px}
  .strip{position:static}
}
/* ordinateur : barre latérale */
@media (min-width:1024px){
  body{padding:0 0 0 248px}
  body.onbm{padding:0}
  #app{max-width:1180px}
  .tabs{left:0;top:0;bottom:0;transform:none;width:248px;border-radius:0;padding:24px 16px;display:flex;flex-direction:column;gap:24px;background:var(--card);box-shadow:none;border-right:1px solid var(--line);backdrop-filter:none}
  .navbrand{display:flex!important;align-items:center;gap:12px;font-family:var(--hf);font-weight:800;font-size:24px;color:var(--ink);text-decoration:none;padding:0 10px}
  .deskonly{display:flex!important}
  .tabs>div{display:flex;flex-direction:column;gap:4px}
  .tabs button{flex-direction:row;gap:14px;padding:12px 14px;font-size:15px;color:var(--ink2);border-radius:14px}
  .tabs button:hover{background:var(--surf)}
  .tabs button .i{width:22px;height:22px}
  .badge{position:static;margin-left:auto}
  .hd .ib.av{display:none}
  .rgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .rc{flex-direction:column;align-items:stretch;padding:10px 10px 14px}
  .rc .th{width:100%;height:auto;aspect-ratio:16/10}
  .rc .rt{padding:0 4px}
  .sheet.full{left:248px}
  .rbar{left:248px}
  .toast{left:calc(50% + 124px);bottom:28px}
  .quick{grid-template-columns:1fr 1fr}
  .scr{padding:36px 40px 48px}
}
@media (min-width:1360px){.rgrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (hover:hover){.meal:hover,.rc:hover,.qa:hover,.alt:hover,.idea:hover{box-shadow:var(--sh2)}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.intro{font-size:16px;line-height:1.55;color:var(--ink2);margin:-4px 0 18px;max-width:70ch}
/* mode cuisine */
.cookbtn{margin:0 0 6px}
.cookm{min-height:100dvh;display:flex;flex-direction:column;padding:calc(12px + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom));max-width:900px;margin:0 auto;gap:12px}
.ch{display:flex;align-items:center;gap:12px}.ch>div{flex:1;min-width:0}.ch b{font-family:var(--hf);font-size:17px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cookm .track{margin:0}
.cstep{flex:1;display:flex;flex-direction:column;justify-content:center;gap:22px;padding:10px 0}
.cnum{width:56px;height:56px;border-radius:50%;background:var(--tom);color:#fff;display:grid;place-items:center;font-family:var(--hf);font-weight:800;font-size:26px}
.cstep p{font-size:clamp(21px,5.2vw,32px);line-height:1.45;font-weight:500}
.cstep mark{background:var(--suns);color:inherit;border-radius:6px;padding:0 4px;font-weight:700}
.ctimer{align-self:flex-start;width:auto}
.cnav{display:grid;grid-template-columns:1fr 1.4fr;gap:10px}
.tbar{display:flex;flex-wrap:wrap;gap:8px}.tbar:empty{display:none}
.tmr{display:flex;align-items:center;gap:8px;background:var(--ink);color:var(--bg);border-radius:14px;padding:10px 14px;font-size:14px}
.tmr b{font-family:var(--hf);font-size:20px;font-variant-numeric:tabular-nums}.tmr.done{background:var(--leaf);animation:pulse 1s infinite}
@keyframes pulse{50%{opacity:.6}}
.ing.cooking li{padding:8px 14px}
/* foyers */
.fchip{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 12px 6px 10px;border-radius:999px;background:var(--surf);font-size:13.5px;font-weight:600;color:var(--ink2);max-width:100%}
.fchip span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fchip .i{width:16px;height:16px}.fchip i{font-style:normal;font-size:11px;opacity:.7}
.fchip.shared{background:var(--plums);color:var(--plum)}
.foy .fic{width:44px;height:44px;border-radius:14px;background:var(--surf);display:grid;place-items:center;flex:none}
.foy.on{outline:2px solid var(--leaf)}.foy.on .fic{background:var(--leafs);color:var(--leaf)}
.codebox{background:var(--plums);border-radius:18px;padding:16px;text-align:center}
.codebox b{display:block;font-family:var(--hf);font-size:40px;letter-spacing:.18em;margin:4px 0 10px;color:var(--plum)}
.codebox .row2{margin:0}
.inp.code{font-family:var(--hf);font-size:30px;letter-spacing:.3em;text-align:center;text-transform:uppercase;min-height:64px}
.lnk.code{font-family:var(--hf);letter-spacing:.12em;font-size:17px}
.welcome .btn.soft{margin-top:10px;max-width:380px}
.sh .li>span:first-child{display:inline-flex;align-items:center;gap:8px}
