/* Charte Franquette — jaune du logo #F9B138 & blanc. Partagée par la borne, le Click & Collect et l'admin. */
@import url('https://fonts.googleapis.com/css2?family=Gabarito:wght@600;800;900&family=Figtree:wght@400;500;600;700&display=swap');
/* Charte Franquette — jaune & blanc.
   Layout : accueil plein jaune → choix de la catégorie en grandes tuiles → produits → parcours guidé une question à la fois. */
:root{
  --sun:#F9B138;        /* jaune Franquette, relevé sur le logo */
  --sun-deep:#E39A16;   /* jaune appuyé : survol */
  --sun-soft:#FEF1D9;   /* jaune très clair : fonds d'encarts */
  --white:#FFFFFF;
  --mist:#F7F5EF;       /* blanc cassé chaud pour séparer les zones */
  --ink:#141414;        /* noir du logo */
  --logo-dot:var(--sun); --logo-ink:var(--ink);
  --ink-2:#6A6255;
  --line:#ECE6D6;
  --ok:#1F8A4C;
  --display:"Gabarito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body:"Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg:28px; --r-md:18px; --r-sm:12px;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{height:100%}
body{background:var(--white);color:var(--ink);font-family:var(--body);font-size:17px;-webkit-tap-highlight-color:transparent;user-select:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0}
button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.num{font-variant-numeric:tabular-nums}
.app{height:100%;display:flex;flex-direction:column}
.screen{flex:1;min-height:0;display:flex;flex-direction:column}
h1,h2,h3{font-family:var(--display);font-weight:900;letter-spacing:-.02em;margin:0;text-wrap:balance}

/* ---------- Logo ---------- */
.lg{display:block;height:auto;max-width:100%}
.sy{display:block;width:100%;height:auto}

/* ---------- Accueil ---------- */
.welcome{background:var(--sun);justify-content:space-between;padding:clamp(28px,6vh,64px) 20px;gap:24px;position:relative;overflow:hidden}
.w-top{position:relative;z-index:1;text-align:center}
.w-top .lg{width:min(440px,72vw);margin:0 auto;--logo-dot:var(--white)}
.w-top p{margin:14px 0 0;font-size:clamp(18px,2.6vw,24px);font-weight:600}
.w-q{position:relative;z-index:1;text-align:center;display:flex;flex-direction:column;gap:20px;align-items:center}
.w-q h2{font-size:clamp(26px,4vw,38px)}
.mode-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;max-width:620px}
.mode{background:var(--white);border-radius:var(--r-lg);padding:28px 12px 24px;display:flex;flex-direction:column;align-items:center;gap:12px;font-family:var(--display);font-weight:800;font-size:clamp(20px,3vw,26px);box-shadow:0 10px 0 rgba(31,27,22,.12);transition:transform .12s, box-shadow .12s}
.mode:active{transform:translateY(6px);box-shadow:0 4px 0 rgba(31,27,22,.12)}
.mode svg{width:72px;height:72px}
.w-foot{position:relative;z-index:1;text-align:center;font-weight:600;font-size:15px}

/* ---------- Barre haute ---------- */
.top{display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--white);border-bottom:4px solid var(--sun)}
.top .lg{width:110px}
.top .sp{flex:1}
.pill{background:var(--sun-soft);border-radius:999px;padding:8px 14px;font-weight:700;font-size:14px}
.back{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:15px;background:var(--sun);border-radius:999px;padding:8px 14px}
.cancel{font-weight:700;font-size:14px;text-decoration:underline;text-underline-offset:3px}

/* ---------- Choix de catégorie ---------- */
.home{overflow-y:auto;padding:24px 16px 28px;display:flex;flex-direction:column;gap:20px}
.home h1{font-size:clamp(30px,4.6vw,44px)}
.cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.ctile{background:var(--mist);border-radius:var(--r-lg);padding:18px 18px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;min-height:170px;transition:transform .12s, background .12s}
.ctile:active{transform:scale(.97)}
.ctile:hover{background:var(--sun-soft)}
.ctile .ic{width:64px;height:64px;border-radius:50%;background:var(--sun);display:grid;place-items:center}
.ctile .ic svg{width:38px;height:38px}
.ctile b{font-family:var(--display);font-weight:800;font-size:23px;margin-top:auto}
.ctile small{color:var(--ink-2);font-size:14px;font-weight:600}
.ctile.hero{background:var(--ink);color:var(--white);grid-column:span 2}
.ctile.hero small{color:#d9d2c3}
.ctile.hero:hover{background:#2c2620}
@media (max-width:520px){.ctile.hero{grid-column:span 1}}
.promo{display:flex;align-items:center;gap:14px;background:var(--sun-soft);border-radius:var(--r-md);padding:14px 16px;font-weight:600;font-size:15px}
.promo b{font-family:var(--display);font-size:20px;white-space:nowrap}

/* ---------- Produits ---------- */
.catbar{display:flex;gap:8px;overflow-x:auto;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--white);scrollbar-width:none}
.chip{white-space:nowrap;padding:10px 16px;border-radius:999px;font-weight:700;font-size:15px;background:var(--mist)}
.chip[aria-current="true"]{background:var(--ink);color:var(--white)}
.list{overflow-y:auto;padding:20px 16px 28px;flex:1;min-height:0}
.list h1{font-size:clamp(28px,4vw,38px);margin-bottom:6px}
.note{margin:0 0 16px;font-size:15px;color:var(--ink-2);font-weight:600}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px;margin-top:14px}
.prod{background:var(--white);border:2px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;text-align:left;transition:transform .12s,border-color .12s}
.prod:active{transform:scale(.97)}
.prod:hover{border-color:var(--sun-deep)}
.visual{aspect-ratio:5/4;max-width:100%;background:var(--sun-soft);display:grid;place-items:center;position:relative}
.visual svg{width:46%;height:auto}
.visual .tag{position:absolute;top:12px;left:12px;background:var(--ink);color:var(--white);font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px}
.prod .txt{padding:14px 16px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.prod .name{font-family:var(--display);font-weight:800;font-size:20px;line-height:1.1}
.prod .desc{font-size:14px;color:var(--ink-2);line-height:1.35}
.prod .foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:8px}
.price{font-family:var(--display);font-weight:800;font-size:22px}
.price small{font-family:var(--body);font-weight:600;font-size:13px;color:var(--ink-2);margin-right:4px}
.plus{width:40px;height:40px;border-radius:50%;background:var(--sun);display:grid;place-items:center;font-weight:900;font-size:24px;line-height:1}

/* ---------- Barre panier ---------- */
.cartbar{display:flex;align-items:center;justify-content:center;gap:28px;flex-wrap:wrap;padding:14px 16px calc(14px + env(safe-area-inset-bottom,0px));background:var(--ink);color:var(--white)}
.cartbar .info{min-width:0;text-align:right}
.cartbar .info b{font-family:var(--display);font-size:26px}
.cartbar .info div{font-size:14px;color:#d9d2c3}
.cta{background:var(--sun);color:var(--ink);font-family:var(--display);font-weight:800;font-size:19px;border-radius:var(--r-md);padding:17px 24px;transition:transform .1s}
.cta:active{transform:scale(.97)}
.cta[disabled]{opacity:.35;cursor:default}
.cta.block{width:100%}
.cta.dark{background:var(--ink);color:var(--white)}
.ghost{font-weight:700;font-size:16px;padding:12px;border-radius:var(--r-sm)}

/* ---------- Fenêtres ---------- */
.veil{position:fixed;inset:0;background:rgba(31,27,22,.55);display:flex;align-items:flex-end;justify-content:center;z-index:10;padding:16px}
@media (min-width:720px){.veil{align-items:center}}
.sheet{background:var(--white);border-radius:var(--r-lg);width:100%;max-width:640px;max-height:92%;overflow-y:auto;display:flex;flex-direction:column;animation:up .22s ease-out}
@keyframes up{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.sheet{animation:none}.mode,.prod,.ctile,.cta{transition:none}}
.sh-head{background:var(--sun);padding:20px 20px 18px;display:flex;flex-direction:column;gap:10px;position:sticky;top:0;z-index:1}
.sh-head .r{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sh-head h3{font-size:26px}
.x{width:40px;height:40px;border-radius:50%;background:var(--white);font-size:22px;font-weight:700;display:grid;place-items:center;flex:none}
.steps{display:flex;gap:6px}
.steps i{height:6px;flex:1;border-radius:3px;background:rgba(31,27,22,.18)}
.steps i.on{background:var(--ink)}
.sh-body{padding:20px;display:flex;flex-direction:column;gap:16px}
.q{font-family:var(--display);font-weight:800;font-size:24px}
.qsub{margin:-10px 0 0;color:var(--ink-2);font-size:15px}
.choices{display:flex;flex-direction:column;gap:10px}
.choice{display:flex;align-items:center;gap:14px;background:var(--mist);border:2px solid transparent;border-radius:var(--r-md);padding:16px;text-align:left}
.choice:hover{border-color:var(--sun-deep)}
.choice[aria-pressed="true"]{border-color:var(--ink);background:var(--sun-soft)}
.choice .grow{flex:1;min-width:0}
.choice .grow b{display:block;font-size:18px}
.choice .grow small{color:var(--ink-2);font-size:14px}
.choice .pr{font-family:var(--display);font-weight:800;font-size:20px;white-space:nowrap}
.choice.star{background:var(--sun-soft);border-color:var(--sun-deep)}
.badge{display:inline-block;background:var(--ink);color:var(--white);font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;margin-left:8px;vertical-align:3px;letter-spacing:.02em}
.icons{display:flex;gap:4px;flex:none;width:98px}
.icons span{width:30px;height:30px;border-radius:50%;background:var(--white);display:grid;place-items:center}
.icons span svg{width:18px;height:18px}
.tick{width:28px;height:28px;border-radius:8px;border:2px solid var(--ink-2);display:grid;place-items:center;flex:none;font-weight:900}
[aria-pressed="true"] .tick{background:var(--ink);border-color:var(--ink);color:var(--white)}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.tile{background:var(--mist);border:2px solid transparent;border-radius:var(--r-md);padding:14px;text-align:left;display:flex;flex-direction:column;gap:4px;min-height:84px}
.tile:hover{border-color:var(--sun-deep)}
.tile[aria-pressed="true"]{border-color:var(--ink);background:var(--sun-soft)}
.tile b{font-size:16px;line-height:1.2}
.tile small{color:var(--ink-2);font-size:13px}
.sh-foot{padding:0 20px 20px;display:flex;flex-direction:column;gap:6px}
.recap{background:var(--mist);border-radius:var(--r-md);padding:16px;display:flex;flex-direction:column;gap:6px}
.recap div{display:flex;justify-content:space-between;gap:10px}
.qty{display:flex;align-items:center;justify-content:center;gap:18px}
.qty button{width:52px;height:52px;border-radius:50%;background:var(--mist);font-size:26px;font-weight:800}
.qty b{font-family:var(--display);font-size:28px;min-width:30px;text-align:center}

/* Panier */
.line{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}
.line .grow{flex:1;min-width:0}
.line .grow b{font-size:17px}
.line small{display:block;color:var(--ink-2);font-size:14px}
.mini{display:flex;align-items:center;gap:8px}
.mini button{width:36px;height:36px;border-radius:50%;background:var(--mist);font-weight:800;font-size:18px}
.upgrade{margin-top:8px;background:var(--sun);border-radius:999px;padding:8px 14px;font-weight:700;font-size:14px}
.total{display:flex;justify-content:space-between;font-family:var(--display);font-weight:900;font-size:28px}
.label{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--ink-2)}
.extras{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.extra{background:var(--sun-soft);border-radius:var(--r-md);padding:12px 14px;text-align:left;display:flex;flex-direction:column;gap:2px}
.extra b{font-size:15px}
.extra span{font-family:var(--display);font-weight:800}

/* ---------- Ruptures & mode gérant ---------- */
.tile.off,.extra.off{display:none}
.pin{display:flex;flex-direction:column;align-items:center;gap:16px}
.pin-dots{display:flex;gap:12px}
.pin-dots i{width:16px;height:16px;border-radius:50%;border:2px solid var(--ink)}
.pin-dots i.on{background:var(--ink)}
.pad{display:grid;grid-template-columns:repeat(3,72px);gap:10px}
.pad button{height:64px;border-radius:var(--r-md);background:var(--mist);font-family:var(--display);font-weight:800;font-size:26px}
.err{color:#B3261E;font-weight:700;min-height:1.4em}
.adm-cat{display:flex;flex-direction:column;gap:6px}
.adm-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--r-sm);background:var(--mist)}
.adm-row .grow{flex:1;min-width:0;font-weight:600}
.sw{width:58px;height:34px;border-radius:999px;background:#C9C2B3;position:relative;flex:none;transition:background .15s}
.sw::after{content:"";position:absolute;top:4px;left:4px;width:26px;height:26px;border-radius:50%;background:var(--white);transition:transform .15s}
.sw[aria-checked="true"]{background:var(--ok)}
.sw[aria-checked="true"]::after{transform:translateX(24px)}
.adm-name{flex:1;min-width:0;text-align:left;display:flex;flex-direction:column;gap:2px}
.adm-name b{font-weight:700}
.adm-name small{color:var(--ink-2);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.adm-name em{font-style:normal;font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-weight:700;font-size:14px}
.field input,.field textarea{font:inherit;font-size:17px;color:var(--ink);background:var(--white);border:2px solid var(--line);border-radius:var(--r-sm);padding:12px 14px;user-select:text;-webkit-user-select:text;width:100%}
.field textarea{min-height:110px;resize:vertical}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--sun-deep)}
.field .hint{font-size:13px;color:var(--ink-2)}
.adm-state{font-size:13px;font-weight:700;width:74px;text-align:right}

/* ---------- Confirmation ---------- */
.done{background:var(--sun);align-items:center;justify-content:center;padding:28px 16px;gap:22px;overflow-y:auto;text-align:center}
.done .card{background:var(--white);border-radius:var(--r-lg);padding:30px 24px;max-width:540px;width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.bignum{font-family:var(--display);font-weight:900;font-size:clamp(100px,22vw,160px);line-height:1;letter-spacing:-.04em}
.done p{margin:0;font-size:19px;max-width:40ch;color:var(--ink-2)}
.done p b{color:var(--ink)}
.ticket{background:#fff;color:#111;font-family:"Courier New",ui-monospace,monospace;font-size:14px;width:300px;max-width:100%;padding:18px 16px;text-align:left;border-radius:4px;box-shadow:0 10px 30px rgba(0,0,0,.15)}
.ticket hr{border:0;border-top:1px dashed #555;margin:8px 0}
.ticket .c{text-align:center}
.ticket .big{font-size:26px;font-weight:700}
.tline{display:flex;gap:6px}
.tline .q{width:28px;flex:none;font-weight:700}
.tline small{display:block}

@media (max-width:600px){
  .grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
  .top .pill{display:none}
}

/* Questions oui / non (couverts, sachet) */
.yn{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--mist);border-radius:var(--r-md);padding:12px 14px}
.yn-q{font-weight:700;font-size:17px}
.yn-b{display:flex;gap:8px}
.yn .chip{min-width:72px;background:var(--white);border:2px solid var(--line)}
.yn .chip[aria-current="true"]{background:var(--ink);color:var(--white);border-color:var(--ink)}

/* ================= CLICK & COLLECT (mobile) ================= */
.cc{min-height:100%;display:flex;flex-direction:column}
.cc-hero{background:var(--sun);padding:20px 16px 26px;display:flex;flex-direction:column;gap:14px}
.cc-hero .lg{width:150px;--logo-dot:var(--white)}
.cc-hero h1{font-size:clamp(28px,7vw,40px)}
.cc-hero p{margin:0;font-weight:600}
.cc-info{display:flex;flex-wrap:wrap;gap:8px}
.cc-info span{background:var(--white);border-radius:999px;padding:7px 12px;font-size:14px;font-weight:700}
.cc-closed{background:var(--ink);color:var(--white);border-radius:var(--r-md);padding:14px 16px;font-weight:600}
.cc-sticky{position:sticky;top:env(safe-area-inset-top,0px);z-index:5}
.cc-main{padding:18px 16px 120px;display:flex;flex-direction:column;gap:26px;max-width:880px;margin:0 auto;width:100%}
.cc-sec h2{font-size:26px;margin-bottom:12px}
.cc-sec .grid{margin-top:0}
.cc .cartbar{position:fixed;left:0;right:0;bottom:0;z-index:6}
.form{display:flex;flex-direction:column;gap:14px}
.days{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.day{flex:none;background:var(--mist);border:2px solid transparent;border-radius:var(--r-md);padding:10px 14px;text-align:center;font-weight:700;min-width:84px}
.day small{display:block;font-weight:600;color:var(--ink-2);font-size:13px}
.day[aria-pressed="true"]{border-color:var(--ink);background:var(--sun-soft)}
.slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
.slot{background:var(--mist);border:2px solid transparent;border-radius:var(--r-sm);padding:12px 6px;font-weight:700;font-variant-numeric:tabular-nums}
.slot[aria-pressed="true"]{border-color:var(--ink);background:var(--sun-soft)}
.slot[disabled]{opacity:.35;cursor:default}

/* Champs */
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-weight:700;font-size:14px}
.field input,.field textarea{font:inherit;font-size:17px;color:var(--ink);background:var(--white);border:2px solid var(--line);border-radius:var(--r-sm);padding:12px 14px;user-select:text;-webkit-user-select:text;width:100%}
.field textarea{min-height:110px;resize:vertical}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--sun-deep)}
.field .hint{font-size:13px;color:var(--ink-2)}
.errmsg{color:#B3261E;font-weight:700;font-size:15px}
.demo-flag{position:fixed;left:50%;transform:translateX(-50%);top:calc(6px + env(safe-area-inset-top,0px));z-index:50;background:var(--ink);color:var(--white);font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;opacity:.85;pointer-events:none;letter-spacing:.03em}

/* ================= ADMIN ================= */
.adm{min-height:100%;display:flex;flex-direction:column;background:var(--mist)}
.adm-top{display:flex;align-items:center;gap:14px;padding:10px 16px;background:var(--white);border-bottom:4px solid var(--sun);flex-wrap:wrap}
.adm-top .lg{width:104px}
.tabs{display:flex;gap:6px;background:var(--mist);padding:4px;border-radius:999px}
.tab{padding:8px 16px;border-radius:999px;font-weight:700;font-size:15px}
.tab[aria-current="true"]{background:var(--ink);color:var(--white)}
.adm-main{padding:16px;display:flex;flex-direction:column;gap:16px;flex:1;min-height:0}
.kpis{display:flex;gap:10px;flex-wrap:wrap}
.kpi{background:var(--white);border-radius:var(--r-md);padding:12px 16px;min-width:130px}
.kpi b{display:block;font-family:var(--display);font-size:26px;font-weight:900}
.kpi span{font-size:13px;font-weight:600;color:var(--ink-2)}
.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.filters .chip{background:var(--white)}
.filters .chip[aria-current="true"]{background:var(--ink);color:var(--white)}
.promo{flex-wrap:wrap}
.board{display:grid;grid-template-columns:repeat(4,minmax(240px,1fr));gap:12px;overflow-x:auto;align-items:start}
.col{display:flex;flex-direction:column;gap:10px;min-width:0}
.col h3{font-size:17px;display:flex;align-items:center;gap:8px;padding:4px 2px}
.col h3 i{font-style:normal;background:var(--white);border-radius:999px;padding:2px 9px;font-size:13px;font-family:var(--body)}
.ocard{background:var(--white);border-radius:var(--r-md);padding:14px;display:flex;flex-direction:column;gap:8px;border-left:6px solid var(--line)}
.ocard.src-borne{border-left-color:var(--sun)}
.ocard.src-click{border-left-color:var(--ink)}
.ocard .h{display:flex;align-items:center;gap:10px}
.ocard .no{font-family:var(--display);font-weight:900;font-size:28px;line-height:1}
.srcb{font-size:12px;font-weight:800;padding:3px 9px;border-radius:999px;background:var(--sun-soft)}
.src-click .srcb{background:var(--ink);color:var(--white)}
.ocard .meta{font-size:14px;color:var(--ink-2);font-weight:600}
.ocard .meta b{color:var(--ink)}
.ocard ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:15px}
.ocard ul small{display:block;color:var(--ink-2);font-size:13px;padding-left:22px}
.ocard .tot{display:flex;justify-content:space-between;font-family:var(--display);font-weight:800;font-size:18px;border-top:1px dashed var(--line);padding-top:8px}
.ocard .acts{display:flex;gap:8px;flex-wrap:wrap}
.btn{background:var(--sun);border-radius:var(--r-sm);padding:10px 14px;font-weight:800;font-size:15px}
.btn.dark{background:var(--ink);color:var(--white)}
.btn.light{background:var(--mist)}
.empty{background:var(--white);border:2px dashed var(--line);border-radius:var(--r-md);padding:18px;color:var(--ink-2);font-size:14px;text-align:center}
.login{max-width:380px;margin:8vh auto;background:var(--white);border-radius:var(--r-lg);padding:28px 22px;display:flex;flex-direction:column;gap:16px}
.login .lg{width:150px}
.adm-cat-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.adm-prod{background:var(--white);border-radius:var(--r-md);padding:16px;display:flex;flex-direction:column;gap:8px;max-width:760px}
@media (max-width:1000px){.board{grid-template-columns:repeat(4,minmax(250px,80vw))}}
