:root{--accent-soft:#FFE3DA;--accent-ink:#7A2410;--ink:#16181D;--muted:#5E6470;--soft:#9A9FA8;--bg:#F3F3EF;--card:#FFFFFF;--line:#EFEEE9;--tomato:#F0532F;--peach:#FF7A55;
--v-bg:#D7F0DF;--v-fg:#136B3F;--p-bg:#FFE7B8;--p-fg:#8A5300;--b-bg:#FFD9D0;--b-fg:#A3301A}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font-family:Figtree,system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}
body{overscroll-behavior-y:none}
button{font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;color:inherit}
button:focus-visible,a:focus-visible{outline:3px solid var(--tomato);outline-offset:2px}
.disp{font-family:'Bricolage Grotesque',Figtree,sans-serif}
#app{position:relative;max-width:480px;margin:0 auto;min-height:100%;min-height:100dvh}
.ecran{padding:calc(env(safe-area-inset-top) + 22px) 20px calc(env(safe-area-inset-bottom) + 120px);display:flex;flex-direction:column;gap:20px;animation:rise .42s cubic-bezier(.2,.8,.2,1) both}
.tap{transition:transform .14s ease,background-color .2s ease,box-shadow .2s ease,color .2s ease}
.tap:active{transform:scale(.96)}
.carte{background:var(--card);border-radius:24px}
.muted{color:var(--muted)}
h1,h2,h3,p{margin:0}
.entete{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.entete small{display:block;font-size:14px;color:var(--muted);font-weight:500}
.entete h1{font-size:30px;font-weight:700;letter-spacing:-.02em}
.avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;flex:none;border:0}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;padding:6px 12px;border-radius:999px;white-space:nowrap}
.bouton{display:flex;align-items:center;justify-content:center;gap:10px;min-height:58px;border:0;border-radius:20px;background:var(--tomato);color:var(--ink);box-shadow:0 10px 22px -12px rgba(240,83,47,.65);font-size:17px;font-weight:700;width:100%}
.bouton.clair{background:var(--card);color:var(--ink)}
.bouton.tomate{background:var(--tomato);color:var(--ink);box-shadow:0 10px 24px -10px rgba(240,83,47,.7)}
.bouton.petit{min-height:44px;font-size:15px;border-radius:14px;width:auto;padding:0 16px}
.assiette{position:relative;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}
.hero{position:relative;padding:22px 20px 20px;display:flex;flex-direction:column;align-items:center;gap:16px;border-radius:32px;background:var(--card);box-shadow:0 1px 2px rgba(22,24,29,.05),0 12px 32px -12px rgba(22,24,29,.12)}
.hero .haut{align-self:stretch;display:flex;justify-content:space-between;align-items:center}
.point{width:8px;height:8px;border-radius:50%;background:var(--tomato);animation:pulse 2s ease-in-out infinite}
.hero h2{font-size:25px;font-weight:700;line-height:1.15;letter-spacing:-.015em;text-align:center;text-wrap:balance}
.meta{display:flex;gap:16px;font-size:14px;color:var(--muted);font-weight:500;flex-wrap:wrap;justify-content:center}
.meta span{display:flex;align-items:center;gap:6px}
.bande{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.bande button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 0 10px;border:0;border-radius:20px;background:transparent;color:var(--muted);font-size:13px;font-weight:600}
.bande button[aria-selected=true]{background:var(--card);color:var(--ink)}
.coche-mini{position:absolute;right:-3px;bottom:-3px;width:20px;height:20px;border-radius:50%;background:var(--v-fg);border:2px solid #fff;display:flex;align-items:center;justify-content:center;animation:pop .36s cubic-bezier(.3,1.6,.5,1) both}
.ligne-carte{display:flex;align-items:center;gap:16px;padding:16px 18px;border:0;border-radius:24px;background:var(--card);text-align:left;width:100%}
.ligne-carte .txt{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.ligne-carte b{font-size:16px}
.ligne-carte span.s{font-size:14px;color:var(--muted)}
.mois-carte{display:flex;align-items:center;gap:16px;padding:18px;border:0;border-radius:24px;text-align:left;width:100%}
.points16{display:grid;grid-template-columns:repeat(4,14px);gap:6px;flex:none}
.points16 span{width:14px;height:14px;border-radius:50%}
.semaines{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
.semaines button{display:flex;flex-direction:column;align-items:center;gap:8px;min-height:62px;justify-content:center;border:0;border-radius:18px;background:var(--card);font-size:13px;font-weight:700}
.semaines button[aria-selected=true]{background:var(--accent-soft);color:var(--accent-ink);box-shadow:inset 0 0 0 2px var(--tomato)}
.semaines .dots{display:flex;gap:4px}
.semaines .dots span{width:9px;height:9px;border-radius:50%}
.puces{display:flex;gap:6px;flex-wrap:wrap}
.puce{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;padding:7px 12px;border-radius:999px}
.puce.ok{background:var(--v-bg);color:#0F5532}
.puce.ko{background:var(--p-bg);color:#6E3C00}
.jours{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.jour{width:100%;display:flex;align-items:center;gap:14px;padding:12px 14px 12px 12px;border:0;border-radius:22px;background:var(--card);text-align:left}
.jour .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.jour .j{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted)}
.jour .t{font-size:16px;font-weight:600;line-height:1.3}
.jour .m{font-size:13px;color:var(--muted)}
.off{opacity:.45}
.cta-bas{position:fixed;left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 40px));bottom:calc(env(safe-area-inset-bottom) + 98px);z-index:9}
.valide{display:flex;align-items:center;gap:12px;min-height:58px;padding:0 8px 0 18px;border-radius:20px;background:#D7F0DF;color:#0F5532;box-shadow:0 10px 22px -14px rgba(19,107,63,.5)}
.valide span{flex:1;font-size:15px;font-weight:600}
.lien-discret{border:0;background:transparent;color:var(--muted);font-size:14px;font-weight:600;text-decoration:underline;min-height:44px}
.anneau-wrap{position:relative;width:76px;height:76px;flex:none}
.anneau-wrap span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700}
.partage{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 14px;background:var(--card);border-radius:18px}
.partage .av{display:flex}
.partage .av span{width:28px;height:28px;border-radius:50%;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;border:2px solid #fff;margin-left:-8px}
.partage .av span:first-child{margin-left:0}
.partage p{flex:1;font-size:13px;color:var(--muted);line-height:1.3}
.chip{min-height:40px;padding:0 14px;border:0;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap;background:var(--bg)}
.chip[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-ink)}
.rayon h2{display:flex;justify-content:space-between;font-size:15px;font-weight:700;margin-bottom:8px}
.rayon h2 span{font-weight:500;color:var(--muted)}
.rayon .liste{background:var(--card);border-radius:20px;overflow:hidden}
.article{width:100%;display:flex;align-items:center;gap:14px;min-height:62px;padding:10px 16px;border:0;background:transparent;text-align:left}
.article+.article{border-top:1px solid var(--line)}
.case{width:28px;height:28px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 2px #C9C8C1;transition:background-color .2s ease}
.case.on{background:var(--v-fg);box-shadow:none}
.case.on svg{animation:pop .36s cubic-bezier(.3,1.6,.5,1) both}
.article .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.article .n{font-size:16px;font-weight:600}
.article .w{font-size:13px;color:var(--muted)}
.article .q{font-size:15px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.article.fait .n,.article.fait .q{color:var(--soft);text-decoration:line-through}
.par{width:22px;height:22px;flex:none;border-radius:50%;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.fini{padding:22px;border-radius:24px;background:#D7F0DF;color:#0F5532;text-align:center;display:flex;flex-direction:column;gap:4px;animation:pop .4s cubic-bezier(.3,1.6,.5,1) both}
.vide{padding:28px 22px;border-radius:28px;background:var(--card);text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.vide h2{font-size:22px;font-weight:700}
.vide p{color:var(--muted);line-height:1.45}

nav.barre{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom) + 14px);transform:translateX(-50%);width:min(448px,calc(100% - 28px));display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;padding:6px;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 1px 2px rgba(22,24,29,.06),0 16px 32px -14px rgba(22,24,29,.28);z-index:10;backdrop-filter:blur(10px)}
nav.barre button{white-space:nowrap;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:58px;justify-content:center;padding:0 6px;font-size:12px!important;border:0;border-radius:999px;font-size:15px;font-weight:700;background:transparent;color:var(--muted)}
nav.barre button[aria-current=page]{background:var(--accent-soft);color:var(--accent-ink)}

.voile{position:fixed;inset:0;background:rgba(22,24,29,.42);z-index:20;animation:fade .25s ease both}
.feuille{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(480px,100%);z-index:21;background:#fff;border-radius:28px 28px 0 0;padding:10px 20px calc(env(safe-area-inset-bottom) + 28px);display:flex;flex-direction:column;gap:14px;animation:sheet .38s cubic-bezier(.2,.9,.25,1) both;max-height:88dvh;overflow-y:auto}
@keyframes sheet{from{transform:translate(-50%,100%)}to{transform:translate(-50%,0)}}
.poignee{align-self:center;width:40px;height:5px;border-radius:999px;background:#D9D8D2}
.rond{width:44px;height:44px;flex:none;border:0;border-radius:50%;background:var(--bg);display:flex;align-items:center;justify-content:center}
.option{display:flex;align-items:center;gap:14px;padding:10px 14px 10px 10px;border:0;border-radius:20px;background:#fff;box-shadow:inset 0 0 0 1px #E6E5DF;text-align:left;width:100%}
.option[aria-checked=true]{background:#FFF6F3;box-shadow:inset 0 0 0 2px var(--tomato)}
.option .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.radio{width:24px;height:24px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 2px #C9C8C1}
.option[aria-checked=true] .radio{background:var(--tomato);box-shadow:none}

.fete{position:fixed;inset:0;z-index:30;background:#FFF4DF;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:32px 28px;animation:fade .25s ease both;text-align:center}
.fete .grille{display:grid;grid-template-columns:repeat(4,56px);gap:12px}
.fete .grille span{animation:pop .4s cubic-bezier(.3,1.6,.5,1) both}
.fete h2{font-size:34px;font-weight:800;letter-spacing:-.02em}
.fete p{font-size:16px;line-height:1.45;color:var(--muted);max-width:330px}

.toast{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom) + 96px);transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:8px;padding:12px 18px;border-radius:999px;background:#3A3F47;color:#fff;font-size:14px;font-weight:600;white-space:nowrap;box-shadow:0 10px 24px -8px rgba(22,24,29,.35);animation:toast .32s cubic-bezier(.2,.9,.25,1) both}
@keyframes toast{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}

/* Mode cuisine */
.cuisine{position:fixed;inset:0;z-index:15;display:flex;flex-direction:column;gap:16px;padding:calc(env(safe-area-inset-top) + 18px) 20px calc(env(safe-area-inset-bottom) + 24px);animation:rise .42s cubic-bezier(.2,.8,.2,1) both;max-width:480px;margin:0 auto}
.cuisine-fond{position:fixed;inset:0;z-index:14}
.cuisine .top{display:flex;align-items:center;gap:12px}
.cuisine .top .rond{background:#fff;box-shadow:0 4px 12px -6px rgba(22,24,29,.25)}
.cuisine .top .t{flex:1;min-width:0;display:flex;flex-direction:column}
.cuisine .top .t small{font-size:12px;font-weight:600;color:var(--muted)}
.cuisine .top .t b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.defile{flex:1;overflow-y:auto;display:flex;flex-direction:column;align-items:center;gap:16px;padding:6px 2px 8px}
.vapeur{position:absolute;top:0;left:50%;margin-left:-44px;display:flex;gap:16px}
.vapeur svg{opacity:0;animation:steam 2.6s ease-in-out infinite}
.vapeur svg:nth-child(2){animation-delay:.9s}.vapeur svg:nth-child(3){animation-delay:1.7s}
.flotte{animation:float 4.5s ease-in-out infinite;box-shadow:0 0 0 10px rgba(255,255,255,.75),0 24px 40px -20px rgba(22,24,29,.35)}
.cuisine h1{font-size:27px;font-weight:700;line-height:1.15;letter-spacing:-.015em;text-align:center;text-wrap:balance}
.blanc{font-size:14px;font-weight:600;padding:7px 13px;border-radius:999px;background:#fff}
.miseenplace{align-self:stretch;background:#fff;border-radius:28px;padding:16px 18px 8px;display:flex;flex-direction:column}
.miseenplace h2{display:flex;justify-content:space-between;font-size:16px;font-weight:700;margin-bottom:4px}
.ing{display:flex;align-items:center;gap:14px;min-height:52px;padding:4px 0;border:0;background:transparent;text-align:left;width:100%;font-size:16px}
.ing+.ing{border-top:1px solid #F0EFEA}
.ing.fait span.l{color:var(--soft);text-decoration:line-through}
.ing.stock span.l::after{content:attr(data-stock);margin-left:6px;font-size:12px;color:var(--soft)}
.progres{height:8px;border-radius:999px;background:rgba(22,24,29,.08);overflow:hidden;flex:none}
.progres div{height:100%;border-radius:999px;transition:width .6s cubic-bezier(.2,.8,.2,1)}
.piste-wrap{overflow:hidden;margin:0 -6px;flex:none}
.piste{display:flex;transition:transform .6s cubic-bezier(.22,.9,.25,1);touch-action:pan-y}
.diapo{box-sizing:border-box;padding:6px 6px 18px;transition:opacity .5s ease,transform .6s cubic-bezier(.22,.9,.25,1)}
.diapo .c{background:#fff;border-radius:30px;padding:22px 22px 26px;min-height:220px;display:flex;flex-direction:column;gap:16px;box-shadow:0 16px 34px -20px rgba(22,24,29,.3)}
.diapo .h{display:flex;align-items:center;gap:12px}
.diapo .num{width:46px;height:46px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:700}
.diapo .h span.l{flex:1;font-size:14px;font-weight:600;color:var(--muted)}
.diapo p{font-size:25px;font-weight:600;line-height:1.3;letter-spacing:-.01em;text-wrap:pretty}
.minuteur{position:relative;align-self:center;width:168px;height:168px;flex:none;animation:pop .4s cubic-bezier(.3,1.6,.5,1) both}
.minuteur .halo{position:absolute;inset:-12px;border-radius:50%;animation:breathe 2.2s ease-in-out infinite}
.minuteur button{position:absolute;inset:0;border:0;border-radius:50%;background:#fff;box-shadow:0 16px 32px -16px rgba(22,24,29,.3)}
.minuteur button.secoue{animation:wiggle .5s ease 4}
.minuteur svg{position:absolute;inset:0}
.minuteur circle.v{transition:stroke-dashoffset 1s linear,stroke .3s ease}
.minuteur .c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.minuteur .c b{font-size:40px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.minuteur .c span{font-size:13px;color:var(--muted);font-weight:600}
.commandes{display:flex;gap:10px}
.commandes button{min-height:62px;border:0;border-radius:22px;background:#fff;display:flex;align-items:center;justify-content:center;gap:8px;font-size:15px;font-weight:700}
.commandes .suiv{flex:1;background:var(--tomato);color:var(--ink);font-size:17px;box-shadow:0 10px 22px -12px rgba(240,83,47,.65)}
.etincelle{position:absolute;width:12px;height:12px;border-radius:50%;opacity:0;animation:sparkle 2.4s ease-in-out infinite}
.connexion{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px;text-align:center}
.connexion p{color:var(--muted);line-height:1.5;max-width:300px}

@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes pop{0%{opacity:0;transform:scale(.3)}100%{opacity:1;transform:scale(1)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes steam{0%{opacity:0;transform:translateY(14px) scaleX(.8)}35%{opacity:1}100%{opacity:0;transform:translateY(-18px) scaleX(1.25)}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes breathe{0%,100%{transform:scale(.96);opacity:.55}50%{transform:scale(1.06);opacity:1}}
@keyframes wiggle{0%,100%{transform:rotate(0)}25%{transform:rotate(-5deg)}75%{transform:rotate(5deg)}}
@keyframes sparkle{0%{opacity:0;transform:scale(0)}30%{opacity:1;transform:scale(1)}70%{opacity:.8;transform:scale(.8) translateY(-6px)}100%{opacity:0;transform:scale(0) translateY(-12px)}}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Monoprix */
.mpx-ic{width:48px;height:48px;border-radius:16px;background:var(--accent-soft);display:grid;place-items:center;flex:none}
.mpx-ic.gros{width:72px;height:72px;border-radius:24px;animation:float 2.4s ease-in-out infinite}
.mpx-charge{display:flex;flex-direction:column;align-items:center;gap:14px;padding:26px 0;color:var(--muted);font-weight:600}
.mpx-erreur{display:flex;gap:12px;padding:16px;border-radius:20px;background:#FFF1EC;color:#7A2410;line-height:1.4}
.mpx-erreur p{font-size:14px;margin-top:4px;color:#5E6470}
.mpx-total{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px;border-radius:20px;background:#D7F0DF;color:#0F5532}
.mpx-total b{font-size:24px}
.mpx-h{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-top:4px}
.mpx-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.mpx-liste li{display:flex;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid #F0EFEA}
.mpx-liste li:last-child{border-bottom:0}
.mpx-liste .n{min-width:34px;height:28px;border-radius:10px;background:var(--accent-soft);color:var(--accent-ink);font-weight:800;font-size:14px;display:grid;place-items:center}
.mpx-liste .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mpx-liste .txt b{font-size:15px;font-weight:600;line-height:1.3}
.mpx-liste .txt span{font-size:13px;color:var(--muted)}
.mpx-liste .p{font-size:14px;font-weight:700;white-space:nowrap}
.mpx-liste.discret{opacity:.6}
.mpx-prod{display:flex;flex-direction:column}
.mpx-prod button{display:flex;align-items:center;gap:10px;padding:12px 2px;border:0;border-bottom:1px solid #F0EFEA;background:transparent;text-align:left;width:100%}
.mpx-prod .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mpx-prod .txt b{font-size:15px}
.mpx-prod .txt span{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
a.bouton{text-decoration:none}
