/* COMPLIMAT · couleurs relevées sur les maquettes client (12/11/2026) */
:root {
  --hdr1: #0150ac;   /* haut gauche de l'en-tête */
  --hdr2: #013a88;   /* bas droite de l'en-tête */
  --btn: #0058cc;    /* boutons principaux */
  --btn2: #013c9a;   /* fin du dégradé bouton */
  --act: #0067d6;    /* catégorie active */
  --vif: #2e7fd9;    /* bleu vif cahier des charges (pastilles) */
  --chip: #eef5ff;   /* fond catégories inactives */
  --pill: #eaf4fe;   /* fond quantité / prix */
  --tot: #d3e7ff;    /* bloc Total TTC */
  --ink: #0a1440;    /* titres */
  --price: #13277a;  /* prix */
  --text: #1e2530;   /* texte courant (cahier des charges) */
  --muted: #5b6478;
  --line: #dadfe5;
  --bg: #ffffff;
  --bg2: #f4f8fe;
  --ok: #2e9e5b;     /* validation (cahier des charges) */
  --warn: #e8892b;   /* alerte / rupture (cahier des charges) */
  --r: 18px;
  --shadow: 0 6px 18px rgba(1, 58, 136, .10);
  --nav-h: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #dfe8f5; color: var(--text);
  font: 600 16px/1.35 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; }
.ico { width: 24px; height: 24px; flex: none; }
h1, h2, h3, .poppins { font-family: 'Poppins', 'Nunito', sans-serif; color: var(--ink); margin: 0; }

/* cadre téléphone sur grand écran */
#app { position: relative; max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); box-shadow: 0 0 40px rgba(1, 58, 136, .15); }
@media (min-width: 900px) { #app { max-width: 920px; } }

/* ---------- Splash ---------- */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: linear-gradient(135deg, var(--hdr1), var(--hdr2)); transition: opacity .35s; }
#splash img { width: min(68vw, 300px); }
#splash p { color: #cfe4ff; text-align: center; margin: 14px 0 0; font-size: 15px; }
#splash.off { opacity: 0; pointer-events: none; }

/* ---------- En-tête bleu à vague ---------- */
.hdr { position: sticky; top: 0; z-index: 20; color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px 22px; background: radial-gradient(120% 140% at 0% 0%, #0158b8 0%, var(--hdr1) 40%, var(--hdr2) 100%); }
.hdr::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
.hdr .logo { height: 56px; display: block; }
.hdr .hb { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; position: relative; color: #fff; }
.hdr .hb .ico { width: 30px; height: 30px; }
.badge { position: absolute; top: 2px; right: 0; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #fff; color: var(--ink); font: 700 13px/22px 'Poppins', sans-serif; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.badge.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.45); } }
.demo-pill { position: absolute; left: 50%; transform: translateX(-50%); bottom: 6px; z-index: 2; font-size: 11px; letter-spacing: .04em; background: rgba(255, 255, 255, .16); color: #e6f1ff; padding: 1px 8px; border-radius: 99px; }

/* ---------- Accueil ---------- */
.hero { position: relative; margin-top: -2px; padding: 8px 18px 0; }
.hero-bg { position: relative; border-radius: 0 0 26px 26px; padding: 6px 4px 52px; overflow: hidden; }
.hero h1 { font-size: 34px; line-height: 1.05; font-weight: 800; }
.hero p { margin: 6px 0 0; font-size: 17px; color: var(--ink); max-width: 72%; font-weight: 700; line-height: 1.25; }
.hero .toque { position: absolute; right: 0; top: -6px; width: 104px; height: 104px; color: var(--act); opacity: .9; }
.search { position: relative; margin: -40px 14px 0; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 0 12px; height: 56px; box-shadow: var(--shadow), 0 0 0 1px #e3ebf6; }
.search input { flex: 1; border: 0; outline: 0; font-size: 16px; color: var(--text); background: none; min-width: 0; }
.search .ico { color: var(--ink); }
.search .scan { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }

.cats { display: flex; gap: 10px; overflow-x: auto; padding: 16px 14px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 104px; min-height: 100px; border-radius: 16px; background: var(--chip); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; text-align: center; font-size: 13.5px; line-height: 1.15; font-weight: 700; scroll-snap-align: start; border: 1.5px solid #dbe8fa; }
.cat .ico { width: 34px; height: 34px; stroke-width: 1.6; color: var(--act); }
.cat.on { background: var(--act); color: #fff; border-color: var(--act); box-shadow: 0 6px 14px rgba(0, 103, 214, .35); }
.cat.on .ico { color: #fff; }

.sec-t { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px 8px; }
.sec-t h2 { font-size: 23px; font-weight: 700; }
.sec-t small { color: var(--muted); font-size: 13px; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 14px 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.pc { position: relative; background: #fff; border: 1.5px solid #e1e8f2; border-radius: var(--r); padding: 8px 8px 10px; display: flex; flex-direction: column; text-align: left; box-shadow: 0 2px 8px rgba(1, 58, 136, .05); transition: transform .12s; }
.pc:active { transform: scale(.97); }
.pc .ph { aspect-ratio: 1 / .86; display: grid; place-items: center; overflow: hidden; border-radius: 12px; }
.pc .ph img, .pc .ph svg { width: 100%; height: 100%; object-fit: contain; }
.pc .nm { font-weight: 800; color: var(--ink); font-size: 16px; line-height: 1.2; margin: 6px 4px 8px; min-height: 2.4em; }
.pc .nm small { display: block; font-weight: 700; font-size: 14px; }
.pc .pr { display: flex; align-items: center; justify-content: space-between; background: var(--bg2); border-radius: 12px; padding: 4px 4px 4px 10px; margin-top: auto; }
.pc .pr b { font: 700 19px/1 'Poppins', sans-serif; color: var(--price); }
.pc .pr b span { font-size: 13px; }
.pc .add { width: 52px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, var(--btn), var(--btn2)); color: #fff; }
.pc .catico { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 9px; background: var(--chip); color: var(--act); display: grid; place-items: center; }
.pc .catico .ico { width: 19px; height: 19px; }
.pc .inc { position: absolute; top: 8px; right: 8px; background: var(--vif); color: #fff; font: 700 16px/1 'Poppins', sans-serif; padding: 7px 10px; border-radius: 99px; box-shadow: 0 3px 8px rgba(46, 127, 217, .45); }
.pc .ex { position: absolute; top: 44px; left: 10px; font-size: 10.5px; font-weight: 800; color: #8a5a00; background: #fff4d6; border-radius: 6px; padding: 1px 6px; letter-spacing: .02em; }
.pc .pin { position: absolute; top: 10px; left: 44px; width: 30px; height: 30px; border-radius: 9px; background: #fff4d6; color: #b26b00; display: grid; place-items: center; }
.pc .pin .ico { width: 17px; height: 17px; }
.pc.off { filter: grayscale(1); opacity: .55; pointer-events: none; }
.pc.off .soon { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); background: var(--warn); color: #fff; font-weight: 800; padding: 6px 10px; border-radius: 10px; font-size: 14px; white-space: nowrap; filter: none; }
.pc.flash { animation: flash 1.2s; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--vif); } }
.empty { padding: 30px 20px; text-align: center; color: var(--muted); }

/* ---------- Barre panier + navigation basse ---------- */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 560px; margin: 0 auto; }
@media (min-width: 900px) { .bottom { max-width: 920px; } }
.cartbar { margin: 0 10px 8px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(1, 40, 100, .25), 0 0 0 1px #dbe6f5; }
.cartbar .ci { position: relative; color: var(--ink); }
.cartbar .ci .ico { width: 30px; height: 30px; }
.cartbar .ci .badge { top: -8px; right: -10px; background: var(--vif); color: #fff; }
.cartbar .tt { flex: 1; line-height: 1.1; }
.cartbar .tt b { font: 700 19px 'Poppins', sans-serif; color: var(--price); display: block; }
.cartbar .tt small { color: var(--muted); font-size: 13px; }
.cartbar .go { height: 54px; padding: 0 16px; border-radius: 14px; color: #fff; font-weight: 800; font-size: 16px; background: linear-gradient(180deg, var(--btn), var(--btn2)); display: flex; align-items: center; gap: 6px; }
.nav { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid #e3e9f2; padding-bottom: var(--safe-b); box-shadow: 0 -4px 16px rgba(1, 58, 136, .06); border-radius: 22px 22px 0 0; }
.nav a { height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; }
.nav a .ico { width: 30px; height: 30px; stroke-width: 1.8; }
.nav a.on { color: #0247e8; font-weight: 800; }
.nav a.on .ico { fill: #0247e8; stroke: #0247e8; }
.nav a.on .ico.noflll { fill: none; }
.spacer { height: calc(var(--nav-h) + var(--safe-b) + 90px); }

/* ---------- Pages ---------- */
.page { padding: 0 16px 16px; }
.pt { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 0 14px; }
.pt .ico { width: 40px; height: 40px; color: var(--ink); stroke-width: 1.8; }
.pt h1 { font-size: 30px; font-weight: 700; }
.card { background: #fff; border: 1.5px solid #e1e8f2; border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.muted { color: var(--muted); font-weight: 600; }
.small { font-size: 14px; }
.btn { width: 100%; min-height: 62px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; font: 700 20px 'Poppins', sans-serif; background: linear-gradient(180deg, var(--btn), var(--btn2)); box-shadow: 0 8px 18px rgba(0, 88, 204, .3); padding: 0 18px; }
.btn .ico { width: 30px; height: 30px; }
.btn[disabled] { opacity: .45; box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 2px solid #d6e2f2; box-shadow: none; font-size: 18px; }
.btn.green { background: linear-gradient(180deg, #36b06a, #23804a); box-shadow: 0 8px 18px rgba(46, 158, 91, .3); }
.btn + .btn { margin-top: 10px; }
.note { font-size: 13.5px; color: var(--muted); text-align: center; margin: 10px 4px; font-weight: 600; }
.demo-note { font-size: 13px; color: #8a5a00; background: #fff8e6; border: 1px solid #ffe2a8; border-radius: 12px; padding: 8px 12px; margin: 10px 0; font-weight: 700; }

/* lignes panier (maquette « Mon panier ») */
.li { display: grid; grid-template-columns: 84px 1fr auto; grid-template-areas: 'ph nm nm' 'ph pr qt'; gap: 4px 10px; align-items: center; background: #fff; border: 1.5px solid #e1e8f2; border-radius: var(--r); padding: 10px; margin-bottom: 10px; }
.li .ph { grid-area: ph; width: 84px; height: 84px; display: grid; place-items: center; }
.li .ph img, .li .ph svg { width: 100%; height: 100%; object-fit: contain; }
.li .nm { grid-area: nm; font-weight: 800; color: var(--ink); font-size: 17px; line-height: 1.2; }
.li .pr { grid-area: pr; font: 700 18px 'Poppins', sans-serif; color: var(--ink); }
.li .qt { grid-area: qt; display: flex; align-items: center; gap: 6px; }
.stepper { display: flex; align-items: center; background: var(--pill); border: 1.5px solid #cfe0f5; border-radius: 14px; }
.stepper button { width: 48px; height: 48px; font: 600 26px/1 'Poppins', sans-serif; color: var(--ink); }
.stepper span { min-width: 34px; text-align: center; font: 700 22px 'Poppins', sans-serif; color: var(--ink); }
.trash { width: 48px; height: 48px; display: grid; place-items: center; color: #082a6b; }
.tots { border: 1.5px solid #dbe6f5; border-radius: var(--r); overflow: hidden; margin: 14px 0; }
.tots .r { display: flex; justify-content: space-between; padding: 8px 16px; font-size: 18px; color: var(--text); font-weight: 600; }
.tots .r:first-child { padding-top: 14px; }
.tots .T { background: var(--tot); padding: 14px 16px; margin-top: 6px; }
.tots .T span { font: 700 25px 'Poppins', sans-serif; color: #001b7b; }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.mode button { min-height: 72px; border-radius: 18px; border: 2px solid #dbe6f5; display: flex; align-items: center; gap: 10px; padding: 0 12px; font-weight: 800; font-size: 18px; color: var(--ink); background: #fff; text-align: left; }
.mode button .ico { width: 36px; height: 36px; stroke-width: 1.6; }
.mode button .rd { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; flex: none; }
.mode button.on { background: linear-gradient(180deg, #0066dc, var(--btn2)); color: #fff; border-color: transparent; }
.mode button.on .rd { background: #fff; border-color: #fff; color: var(--btn); }
.mode button.on .rd .ico { width: 18px; height: 18px; stroke-width: 3; }
.warnbox { background: #fff3e6; border: 1.5px solid #ffd2a3; color: #8a4a00; border-radius: 14px; padding: 10px 14px; font-weight: 700; margin: 10px 0; }
.okbox { background: #e9f7ef; border: 1.5px solid #b6e3c7; color: #1d6b3d; border-radius: 14px; padding: 10px 14px; font-weight: 700; margin: 10px 0; }

/* formulaires */
.f { display: block; margin-bottom: 12px; }
.f span { display: block; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.f input, .f textarea, .f select { width: 100%; min-height: 54px; border: 2px solid #d6e2f2; border-radius: 14px; padding: 10px 14px; font-size: 17px; color: var(--text); background: #fff; outline: 0; }
.f input:focus, .f textarea:focus { border-color: var(--act); }
.chk { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; margin: 14px 0; }
.chk input { width: 28px; height: 28px; flex: none; accent-color: var(--btn); }

/* créneaux */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.days button { flex: none; width: 84px; min-height: 76px; border-radius: 14px; border: 2px solid #d6e2f2; background: #fff; font-weight: 800; color: var(--ink); line-height: 1.2; }
.days button.on { background: var(--act); border-color: var(--act); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.slots button { min-height: 58px; border-radius: 14px; border: 2px solid #d6e2f2; background: #fff; font: 700 17px 'Poppins', sans-serif; color: var(--ink); }
.slots button.on { background: var(--act); border-color: var(--act); color: #fff; }
.slots button[disabled] { background: #f1f3f6; color: #9aa3ae; text-decoration: line-through; }

/* paiement */
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--chip); border-radius: 16px; padding: 5px; gap: 5px; margin-bottom: 14px; }
.tabs button { min-height: 64px; border-radius: 12px; font-weight: 800; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; line-height: 1.1; }
.tabs button.on { background: #fff; box-shadow: var(--shadow); color: var(--btn); }
.banks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.banks button { min-height: 58px; border-radius: 14px; border: 2px solid #d6e2f2; background: #fff; font-weight: 800; color: var(--ink); }
.banks button.on { border-color: var(--act); background: var(--chip); }
.iban .r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1f6; }
.iban .r:last-child { border: 0; }
.iban .r b { color: var(--ink); }
.iban .cp { min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--chip); color: var(--btn); font-weight: 800; display: flex; align-items: center; gap: 6px; }
.iban .cp .ico { width: 18px; height: 18px; }
.paylogos { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.paylogos span { border: 1.5px solid #d6e2f2; border-radius: 8px; padding: 4px 10px; font-weight: 800; font-size: 14px; color: var(--ink); }

/* confirmation */
.conf { text-align: center; padding: 10px 0 4px; }
.conf .big { width: 92px; height: 92px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; box-shadow: 0 10px 24px rgba(46, 158, 91, .35); animation: pop .5s; }
.conf .big .ico { width: 56px; height: 56px; stroke-width: 3; }
@keyframes pop { 0% { transform: scale(.3); } 70% { transform: scale(1.1); } }
.conf h1 { font-size: 24px; }
.qr { display: grid; place-items: center; margin: 10px 0; }
.qr svg, .qr img { width: 190px; height: 190px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.kv b { color: var(--ink); text-align: right; }

/* commandes */
.oc { background: #fff; border: 1.5px solid #e1e8f2; border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.oc .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.oc .h b { font: 700 16px 'Poppins', sans-serif; color: var(--ink); }
.st { font-size: 14px; font-weight: 800; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.st.payee { background: #e7f0ff; color: #0b4fb3; }
.st.attente { background: #fff1e0; color: #a35400; }
.st.prep { background: #efe9ff; color: #5b3cc4; }
.st.expediee { background: #e3f4ff; color: #0a6aa8; }
.st.livree, .st.retiree { background: #e6f6ec; color: #1d6b3d; }
.st.prete { background: #e6f6ec; color: #1d6b3d; }
.oc .thumbs { display: flex; gap: 6px; margin: 10px 0; }
.oc .thumbs div { width: 54px; height: 54px; border-radius: 10px; background: var(--bg2); display: grid; place-items: center; overflow: hidden; }
.oc .thumbs img, .oc .thumbs svg { width: 100%; height: 100%; object-fit: contain; }
.oc .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.oc .acts button { min-height: 52px; border-radius: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; }
.oc .acts .re { background: linear-gradient(180deg, var(--btn), var(--btn2)); color: #fff; }
.oc .acts .sec { background: var(--chip); color: var(--btn); }

/* compte / menu */
.row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 4px; border-bottom: 1px solid #edf1f6; width: 100%; text-align: left; font-weight: 700; color: var(--ink); }
.row:last-child { border: 0; }
.row .ico { color: var(--act); }
.row .ar { margin-left: auto; color: #9aa3ae; }
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(5, 20, 50, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer .in { position: absolute; top: 0; bottom: 0; left: 0; width: min(84vw, 340px); background: #fff; padding: 0 0 20px; transform: translateX(-100%); transition: transform .25s; overflow-y: auto; }
.drawer.open .in { transform: none; }
.drawer .top { background: linear-gradient(135deg, var(--hdr1), var(--hdr2)); padding: calc(env(safe-area-inset-top, 0px) + 22px) 18px 18px; color: #cfe4ff; font-size: 14px; }
.drawer .top img { height: 56px; display: block; margin-bottom: 8px; }
.drawer nav { padding: 6px 16px; }
.mammouth { margin: 12px 16px; border: 2px dashed #c9d7ea; border-radius: 14px; padding: 12px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Écran quantité (par-dessus le catalogue) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; background: #fff; overflow-y: auto; transform: translateY(100%); transition: transform .22s ease-out; max-width: 560px; margin: 0 auto; }
@media (min-width: 900px) { .sheet { max-width: 920px; } }
.sheet.open { transform: none; }
.sheet .hdr { position: sticky; }
.q-ph { position: relative; display: grid; place-items: center; height: min(38vh, 330px); padding: 0 20px; }
.q-ph img, .q-ph svg { height: 100%; max-width: 100%; object-fit: contain; }
.q-x { position: absolute; top: 0; right: 14px; width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(1, 58, 136, .2); display: grid; place-items: center; color: var(--ink); }
.q-x .ico { width: 30px; height: 30px; stroke-width: 2.5; }
.q-nm { text-align: center; font: 700 26px/1.15 'Poppins', sans-serif; color: var(--ink); margin: 8px 16px 2px; }
.q-cond { text-align: center; color: var(--muted); font-size: 16px; margin-bottom: 10px; }
.q-pr { display: flex; justify-content: center; align-items: baseline; gap: 14px; background: var(--pill); border-radius: 16px; margin: 0 22px; padding: 12px; }
.q-pr b { font: 700 32px 'Poppins', sans-serif; color: #0b3fae; }
.q-pr span { font-size: 19px; color: var(--text); font-weight: 700; }
.q-t { text-align: center; font: 600 22px 'Poppins', sans-serif; color: var(--ink); margin: 16px 0 10px; }
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.q-grid button { min-height: 80px; min-width: 72px; border-radius: 18px; color: #fff; font: 700 40px/1 'Poppins', sans-serif; background: linear-gradient(180deg, #0a6ad8, #0a4aa8); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15), 0 4px 10px rgba(1, 58, 136, .2); }
.q-grid button:active { transform: scale(.95); }
.q-grid button.cur { background: #fff; color: var(--btn); box-shadow: inset 0 0 0 4px var(--vif); }
.q-more { margin: 12px 16px 0; min-height: 60px; width: calc(100% - 32px); border-radius: 16px; background: var(--chip); color: var(--btn); font-weight: 800; font-size: 18px; }
.q-rm { margin: 10px 16px 0; min-height: 56px; width: calc(100% - 32px); border-radius: 16px; background: #fff3e6; color: #a35400; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.q-cur { text-align: center; margin: 12px 16px 0; font-weight: 800; color: var(--vif); font-size: 17px; }
.q-fds { display: flex; justify-content: center; margin: 12px 0 30px; }
.q-fds button { display: flex; gap: 8px; align-items: center; color: var(--btn); font-weight: 800; min-height: 48px; padding: 0 14px; }

/* pavé numérique géant */
.pad { position: fixed; inset: 0; z-index: 70; background: rgba(5, 20, 50, .5); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pad.open { opacity: 1; pointer-events: auto; }
.pad .in { width: 100%; max-width: 560px; background: #fff; border-radius: 24px 24px 0 0; padding: 16px 16px calc(16px + var(--safe-b)); }
.pad .scr { text-align: center; font: 700 52px/1 'Poppins', sans-serif; color: var(--ink); background: var(--pill); border-radius: 16px; padding: 14px; margin-bottom: 12px; min-height: 80px; }
.pad .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pad .keys button { min-height: 72px; border-radius: 16px; font: 700 34px 'Poppins', sans-serif; background: var(--chip); color: var(--ink); }
.pad .keys .okk { background: linear-gradient(180deg, var(--btn), var(--btn2)); color: #fff; font-size: 22px; }

/* animation vers le panier */
.fly { position: fixed; z-index: 90; width: 70px; height: 70px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); pointer-events: none; transition: transform .55s cubic-bezier(.5, -.3, .7, 1), opacity .55s; display: grid; place-items: center; overflow: hidden; }
.fly img, .fly svg { width: 100%; height: 100%; object-fit: contain; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 100px); transform: translate(-50%, 20px); z-index: 95; background: #0a1440; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; opacity: 0; transition: .25s; max-width: 90vw; text-align: center; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ventes additionnelles */
.up-t { font: 700 24px/1.2 'Poppins', sans-serif; color: var(--ink); text-align: center; margin: 4px 10px 14px; }

/* installer */
.install { margin: 10px 14px 0; display: flex; align-items: center; gap: 12px; background: var(--chip); border-radius: 16px; padding: 10px 12px; }
.install img { width: 44px; height: 44px; border-radius: 10px; }
.install div { flex: 1; font-weight: 800; color: var(--ink); line-height: 1.2; }
.install div small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }
.install button.i { min-height: 46px; padding: 0 14px; border-radius: 12px; background: var(--btn); color: #fff; font-weight: 800; }
.install button.x { width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); }

/* facture imprimable */
.inv { background: #fff; color: #111; font: 500 13px/1.4 'Nunito', Arial, sans-serif; padding: 18px; }
.inv h2 { font-size: 20px; }
.inv table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.inv th, .inv td { border-bottom: 1px solid #ddd; padding: 6px 4px; text-align: left; }
.inv td.n, .inv th.n { text-align: right; }
.inv .head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inv .lg { background: linear-gradient(135deg, var(--hdr1), var(--hdr2)); border-radius: 10px; padding: 8px 12px; display: inline-block; }
.inv .lg img { height: 44px; display: block; }
@media print {
  body { background: #fff; }
  #app { box-shadow: none; max-width: none; }
  .hdr, .bottom, .noprint, .demo-pill { display: none !important; }
  .inv { padding: 0; }
}
.hero-bg { background: linear-gradient(100deg, #ffffff 0%, #eef5ff 42%, #9cc3f0 72%, #2f74c8 100%); margin: 0 -18px; padding: 10px 22px 56px; }
.hero .toque { color: #fff; right: 14px; top: 2px; opacity: 1; }
.demo-pill { left: auto; right: 14px; transform: none; bottom: 4px; }
.hero h1 { font-size: 31px; }
.hero p { font-size: 16px; max-width: 70%; }
.hero-bg { padding-bottom: 50px; }
.install { padding: 8px 10px; }
.install img { width: 36px; height: 36px; }
.install div small { display: none; }
.q-ph { height: auto; padding: 4px 20px 0; }
.q-ph > img, .q-ph > svg { height: min(34vh, 290px); width: auto; max-width: 100%; }
.sheet .demo-pill, .hdr .demo-pill { bottom: 26px; }
/* correctifs mobile 375 px */
html, body { overflow-x: clip; }
.mode button { min-width: 0; gap: 8px; padding: 0 10px; font-size: 17px; }
.mode button .ico { width: 30px; height: 30px; }
.mode button .rd { width: 24px; height: 24px; }
.li { grid-template-columns: 78px 1fr; grid-template-areas: 'ph nm' 'ph pr' 'ph qt'; gap: 2px 12px; }
.li .ph { width: 78px; height: 96px; }
.li .qt { justify-content: space-between; margin-top: 4px; }
.pc .pr b { font-size: 18px; white-space: nowrap; }
@media (max-width: 380px) { .pc .pr b { font-size: 16.5px; } .pc .add { width: 46px; } }
.btn { font-size: 18px; }
.conf h1 { font-size: 21px; }
.conf h1 .nw { white-space: nowrap; }
.tabs button { font-size: 15px; }
.nav a.on .ico { fill: none; stroke-width: 2.4; }
.nav a.on:first-child .ico, .nav a.on:last-child .ico { fill: #0247e8; }
.cartbar .tt b { font-size: 18px; white-space: nowrap; }
.cartbar .tt small { white-space: nowrap; }
.cartbar .go { padding: 0 14px; font-size: 16px; white-space: nowrap; }
