/* =========================================================
   MENU QR v3 — Design system « écrans » (style Zomato)
   ========================================================= */
@font-face { font-family: 'Lexend'; src: url('../vendor/lexend/lexend-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --brand: #FF6B35; --brand-d: #E8501A; --brand-l: #FFF1EB; --brand-ll: #FFF8F4;
  --green: #24963F; --green-l: #E9F6EC; --green-r: #1BA672;
  --blue: #256FEF; --blue-l: #EAF1FE; --red: #E23744; --red-l: #FDECEE;
  --yellow: #F2A20C; --yellow-l: #FFF6E3; --purple: #7B5CF5; --purple-l: #F1EDFF;
  --bg: #F4F6FA; --card: #FFFFFF; --text: #1C1C28; --text2: #3D4152; --sub: #6B7080; --muted: #9AA0AE;
  --line: #E8EAEF; --line2: #F0F1F5; --input: #F3F4F7; --press: #F7F8FA;
  --shadow: 0 2px 14px rgba(28, 28, 40, .07); --shadow-lg: 0 10px 34px rgba(28, 28, 40, .14);
  --r: 20px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
[data-theme="dark"] {
  --brand-l: rgba(255,107,53,.16); --brand-ll: rgba(255,107,53,.08); --green-l: rgba(36,150,63,.18); --blue-l: rgba(37,111,239,.18);
  --red-l: rgba(226,55,68,.18); --yellow-l: rgba(242,162,12,.16); --purple-l: rgba(123,92,245,.2);
  --bg: #0E1117; --card: #171B24; --text: #F1F3F7; --text2: #D5D9E2; --sub: #9AA2B4; --muted: #6C7487;
  --line: #262B37; --line2: #1E232D; --input: #1F2430; --press: #1C212B;
  --shadow: 0 2px 14px rgba(0,0,0,.35); --shadow-lg: 0 10px 34px rgba(0,0,0,.5); color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; background: var(--bg); }
body { font-family: 'Lexend', -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.4; color: var(--text); background: var(--bg);
  height: 100%; overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
input, textarea, select, button { font: inherit; color: inherit; }
input, textarea { -webkit-user-select: text; user-select: text; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.muted { color: var(--sub); } .small { font-size: 12px; } .b { font-weight: 700; } .center { text-align: center; }
.c-brand { color: var(--brand); } .c-green { color: var(--green); } .c-blue { color: var(--blue); } .c-red { color: var(--red); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Écrans ---------- */
#app { position: fixed; inset: 0; overflow: hidden; }
.scr { position: absolute; inset: 0; background: var(--bg); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.scr.white { background: var(--card); }
.scr.enter { transform: translateX(100%); }
.scr.enter-fade { opacity: 0; transform: translateY(10px); }
.scr.leave { transform: translateX(100%); }
.scr.under { transform: translateX(-22%); opacity: .6; pointer-events: none; }
.scr.hide { display: none; }
.scr-pad { padding-bottom: calc(110px + var(--safe-b)); }
.wrap { max-width: 1180px; margin: 0 auto; }

/* Barre d'en-tête d'écran */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 6px; min-height: calc(60px + var(--safe-t)); padding: var(--safe-t) 10px 0;
  background: var(--card); }
.bar.trans { background: transparent; position: absolute; left: 0; right: 0; }
.bar.shadow { box-shadow: 0 1px 0 var(--line); }
.bar h1 { flex: 1; font-size: 19px; font-weight: 700; letter-spacing: -.2px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar h1 small { display: block; font-size: 12px; font-weight: 400; color: var(--sub); }
.ib { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--text); flex: 0 0 42px; position: relative; }
.ib:active { background: var(--press); }
.ib.round { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.ib.glass { background: rgba(255,255,255,.92); box-shadow: var(--shadow); color: #1C1C28; }
.ib .dot { position: absolute; top: 8px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* ---------- Typographie / sections ---------- */
.h-sec { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sub); padding: 22px 16px 12px; }
.h-big { font-size: 20px; font-weight: 700; letter-spacing: -.2px; padding: 4px 16px 12px; }
.sec { background: var(--card); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.mx { margin-left: 16px; margin-right: 16px; } .mt { margin-top: 12px; } .mt2 { margin-top: 20px; } .p16 { padding: 16px; } .px16 { padding-left: 16px; padding-right: 16px; }
.sep { height: 1px; background: var(--line2); margin: 0 16px; }
.dash { border: 0; border-top: 1.5px dashed var(--line); margin: 12px 0; }

/* ---------- Recherche ---------- */
.search-row { display: flex; gap: 10px; align-items: center; padding: 6px 16px 10px; }
.search { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.04); min-width: 0; }
.search i { color: var(--brand); font-size: 19px; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15.5px; min-width: 0; }
.search input::placeholder { color: var(--sub); }
.search .anim-ph { color: var(--sub); font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.circle-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); font-size: 20px; flex: 0 0 52px; box-shadow: 0 0 0 1px rgba(255,107,53,.18); }

/* ---------- En-tête d'accueil ---------- */
.home-head { padding: calc(10px + var(--safe-t)) 16px 4px; display: flex; align-items: center; gap: 10px; }
.loc-btn { flex: 1; min-width: 0; text-align: left; display: block; }
.loc-btn b { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; }
.loc-btn b i.fa-location-dot { color: var(--brand); }
.loc-btn b span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-btn small { display: block; color: var(--sub); font-size: 13px; margin-left: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-btn { width: 44px; height: 44px; border-radius: 50%; background: #D7E6FF; color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: 0 0 44px; }
.pill-badge { height: 40px; padding: 0 14px; border-radius: 20px; background: linear-gradient(135deg, #FFE8DE, #FFD6C4); color: var(--brand-d); font-weight: 800; font-size: 11px; line-height: 1.05; display: flex; align-items: center; gap: 6px; text-align: left; }
.pill-badge i { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; }

/* Bannière carrousel */
.banners { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 16px 6px; scrollbar-width: none; }
.banners::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: center; height: 168px; border-radius: 22px; position: relative; overflow: hidden; color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.banner h3 { font-size: 23px; font-weight: 800; line-height: 1.1; letter-spacing: -.4px; max-width: 64%; }
.banner p { font-size: 13px; opacity: .9; margin: 6px 0 12px; max-width: 62%; }
.banner .bn-btn { align-self: flex-start; background: #111; color: #fff; border-radius: 16px; padding: 7px 14px; font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.banner img { position: absolute; right: -6px; bottom: -8px; width: 150px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
.banner img.b2 { right: 96px; bottom: 74px; width: 70px; transform: rotate(-12deg); }
.dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 2px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: all .2s; }
.dots i.on { width: 18px; background: var(--text2); }

/* ---------- Cercles de catégories ---------- */
.cats { display: flex; overflow-x: auto; gap: 4px; padding: 10px 10px 0; scrollbar-width: none; border-bottom: 1px solid var(--line); background: var(--card); }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; width: 86px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 10px; position: relative; font-size: 13.5px; font-weight: 500; color: var(--text2); }
.cat .ci { width: 70px; height: 70px; display: grid; place-items: center; }
.cat .ci img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.14)); transition: transform .2s; }
.cat .ci.photo img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; filter: none; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.cat span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 84px; }
.cat.on { color: var(--text); font-weight: 700; }
.cat.on::after { content: ''; position: absolute; bottom: 0; left: 14px; right: 14px; height: 4px; border-radius: 4px 4px 0 0; background: var(--brand); }
.cat.on .ci img { transform: scale(1.08); }

/* Grille « Cuisines et plats » */
.grid-cuis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 6px; padding: 6px 4px 20px; }
.gc { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text2); text-align: center; padding: 8px 2px; border-radius: 16px; }
.gc img { width: 74px; height: 74px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.15)); }
.gc.on { background: var(--brand-ll); box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--text); font-weight: 600; }
.gc span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Puces de filtre ---------- */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 42px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--text2); white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.03); }
.chip.on { border-color: var(--brand); color: var(--brand-d); background: var(--brand-ll); font-weight: 600; }
.chip .n { background: var(--input); border-radius: 8px; padding: 1px 7px; font-size: 11.5px; font-weight: 700; }
.chip.on .n { background: var(--brand); color: #fff; }
.chip.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 12px; }
.sticky-top { position: sticky; top: 0; z-index: 15; background: var(--bg); }

/* Tuiles « Explorer » */
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; }
.tile { flex: 0 0 auto; width: 132px; height: 150px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; text-align: center; font-size: 15px; font-weight: 500; line-height: 1.2; }
.tile img { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); }
.tile .ti { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; }
.tile:active, .rcard:active, .dish-card:active { transform: scale(.985); }

/* ---------- Carte restaurant (grande) ---------- */
.rlist { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 0 16px; }
.rcard { background: var(--card); border-radius: 26px; box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; transition: transform .15s; display: block; }
.rcard .ph { position: relative; aspect-ratio: 16 / 9.4; background: var(--input); overflow: hidden; }
.rcard .ph .slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rcard .ph .slides::-webkit-scrollbar { display: none; }
.rcard .ph .slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.rcard .lbl { position: absolute; top: 14px; left: 14px; background: rgba(28,28,40,.82); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 9px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.rcard .bk { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; color: #fff; font-size: 24px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.rcard .bk.on { color: var(--brand); }
.rcard .strip { position: absolute; left: 0; bottom: 0; background: linear-gradient(90deg, var(--blue) 70%, rgba(37,111,239,0)); color: #fff; font-weight: 700; font-size: 13.5px; padding: 6px 40px 6px 14px; text-transform: uppercase; letter-spacing: .02em; }
.rcard .strip.green { background: linear-gradient(90deg, var(--green) 70%, rgba(36,150,63,0)); }
.rcard .strip.dark { background: linear-gradient(90deg, #3D4152 70%, rgba(61,65,82,0)); }
.rcard .pdots { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 5px; }
.rcard .pdots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #fff; opacity: .85; }
.rcard .pdots i.on { background: #fff; }
.rcard .info { padding: 14px 18px 16px; }
.rcard .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rcard h3 { font-size: 21px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .meta { display: flex; align-items: center; gap: 8px; color: var(--sub); font-size: 15px; margin-top: 6px; flex-wrap: wrap; }
.rcard .meta .vl { width: 1px; height: 14px; background: var(--line); }
.rcard .offer { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; color: var(--text2); font-weight: 500; }
.rcard .offer i { color: var(--blue); }
.cover-gen { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #FFE3D6, #FFC6AE 55%, #FF9F7A); }
.cover-gen img { width: 46%; filter: drop-shadow(0 18px 20px rgba(0,0,0,.25)); }

.rating { display: inline-flex; align-items: center; gap: 3px; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; padding: 4px 8px; border-radius: 9px; flex: 0 0 auto; }
.rating i { font-size: 11px; }
.rating.new { background: var(--input); color: var(--sub); font-size: 12px; font-weight: 600; }
.rating.lg { flex-direction: column; padding: 6px 10px; border-radius: 12px; font-size: 18px; gap: 0; }

/* Petite carte (horizontale) */
.rmini { flex: 0 0 auto; width: 200px; }
.rmini .ph { width: 200px; height: 170px; border-radius: 18px; overflow: hidden; position: relative; background: var(--input); box-shadow: 0 0 0 1px var(--line); }
.rmini .ph img { width: 100%; height: 100%; object-fit: cover; }
.rmini .ph .lbl { position: absolute; top: 8px; left: 8px; background: var(--purple); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 7px; }
.rmini .ph .rating { position: absolute; bottom: 8px; left: 8px; font-size: 13px; padding: 2px 7px; }
.rmini b { display: block; font-size: 16.5px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmini small { font-size: 14px; color: var(--sub); display: flex; align-items: center; gap: 5px; margin-top: 2px; }

/* ---------- Fiche restaurant ---------- */
.rhead { padding: 4px 16px 16px; background: var(--card); }
.rhead h2 { font-size: 27px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.rhead .rrow { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.rhead .rate-box { text-align: center; flex: 0 0 auto; }
.rhead .rate-box small { display: block; font-size: 11px; color: var(--sub); margin-top: 4px; border-bottom: 1px dashed var(--muted); }
.rline { display: flex; align-items: center; gap: 8px; color: var(--text2); font-size: 15px; margin-top: 8px; }
.rline i { width: 20px; color: var(--sub); text-align: center; }
.rline .down { color: var(--sub); font-size: 12px; margin-left: 4px; }
.rbanner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line2); font-size: 15px; font-weight: 500; }
.rbanner img { width: 34px; height: 34px; }
.rbanner .more { margin-left: auto; color: var(--sub); font-size: 14px; }
.rcover { position: relative; height: 210px; background: var(--input); overflow: hidden; }
.rcover img.c { width: 100%; height: 100%; object-fit: cover; }
.rcover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 40%, rgba(0,0,0,.15)); }
.rlogo { width: 68px; height: 68px; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); margin-top: -40px; position: relative; z-index: 2; border: 3px solid var(--card); display: grid; place-items: center; font-weight: 800; color: var(--brand); font-size: 22px; }
.rlogo img { width: 100%; height: 100%; object-fit: cover; }
.mode-banner { margin: 12px 16px 0; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.mode-banner i.big { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex: 0 0 40px; }
.mode-banner.ok { background: var(--green-l); color: #13652A; } .mode-banner.ok i.big { background: var(--green); color: #fff; }
.mode-banner.scan { background: var(--brand-ll); color: var(--brand-d); box-shadow: inset 0 0 0 1px rgba(255,107,53,.25); } .mode-banner.scan i.big { background: var(--brand); color: #fff; }
.mode-banner.off { background: var(--yellow-l); color: #8A5A00; } .mode-banner.off i.big { background: var(--yellow); color: #fff; }
[data-theme="dark"] .mode-banner.ok { color: #7DDB95; } [data-theme="dark"] .mode-banner.off { color: #FFD27A; }
.mode-banner button { margin-left: auto; }

.menu-sec { background: var(--card); margin-top: 10px; }
.menu-sec h3 { display: flex; align-items: center; justify-content: space-between; font-size: 20px; font-weight: 700; padding: 20px 16px 4px; scroll-margin-top: 70px; }
.menu-sec h3 small { font-size: 13px; color: var(--sub); font-weight: 500; }
.dish { display: flex; gap: 14px; padding: 18px 16px 24px; position: relative; }
.dish + .dish::before { content: ''; position: absolute; top: 0; left: 16px; right: 16px; border-top: 1.5px dashed var(--line); }
.dish .dl { flex: 1; min-width: 0; }
.dish .tag-ic { display: inline-flex; width: 20px; height: 20px; border: 1.6px solid var(--green); border-radius: 5px; align-items: center; justify-content: center; margin-bottom: 6px; }
.dish .tag-ic i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.dish .tag-ic.hot { border-color: #C45A2C; } .dish .tag-ic.hot i { background: none; width: 0; height: 0; border-radius: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid #C45A2C; }
.dish .tag-ic.star { border-color: var(--yellow); } .dish .tag-ic.star i { background: var(--yellow); border-radius: 2px; transform: rotate(45deg); width: 8px; height: 8px; }
.dish h4 { font-size: 17.5px; font-weight: 600; line-height: 1.25; }
.pop { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--sub); margin-top: 6px; }
.pop .pb { width: 64px; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pop .pb i { display: block; height: 100%; background: var(--green-r); border-radius: 4px; }
.dish .price { font-size: 16.5px; font-weight: 600; margin-top: 8px; }
.dish .price s { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 14px; }
.dish .desc { color: var(--sub); font-size: 14.5px; margin-top: 8px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dish .acts { display: flex; gap: 12px; margin-top: 12px; }
.dish .acts button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text2); font-size: 16px; }
.dish .acts button.on { color: var(--brand); border-color: var(--brand); background: var(--brand-ll); }
.dish .dr { flex: 0 0 150px; width: 150px; position: relative; padding-bottom: 22px; }
.dish .dimg { width: 150px; height: 150px; border-radius: 20px; overflow: hidden; background: var(--input); }
.dish .dimg img { width: 100%; height: 100%; object-fit: cover; }
.dish .dimg.ico { display: grid; place-items: center; background: linear-gradient(145deg, #FFF4EC, #FFE2D3); }
[data-theme="dark"] .dish .dimg.ico { background: linear-gradient(145deg, #2A2320, #3A2A22); }
.dish .dimg.ico img { width: 64%; height: 64%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.2)); }
.add { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 122px; height: 46px; border-radius: 12px; background: var(--card); color: var(--brand); border: 1.5px solid var(--brand);
  box-shadow: 0 6px 16px rgba(255,107,53,.18); font-weight: 800; font-size: 19px; letter-spacing: .02em; display: flex; align-items: center; justify-content: center; }
.add sup { position: absolute; top: 3px; right: 7px; font-size: 14px; font-weight: 500; }
.add.qty { justify-content: space-between; background: var(--brand); color: #fff; padding: 0 4px; }
.add.qty button { width: 38px; height: 44px; color: #fff; font-size: 15px; }
.add.qty span { font-size: 17px; font-weight: 700; }
.add.off { color: var(--muted); border-color: var(--line); box-shadow: none; font-size: 14px; }
.dish.no-img .dr { flex-basis: 122px; width: 122px; padding-bottom: 0; align-self: center; }
.dish.no-img .add { position: relative; left: auto; transform: none; }

/* Bouton flottant « Menu » */
.fab-menu { position: fixed; right: 16px; bottom: calc(96px + var(--safe-b)); z-index: 30; height: 54px; padding: 0 20px; border-radius: 16px; background: #1C1C28; color: #fff; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; box-shadow: var(--shadow-lg); }
.fab-menu.low { bottom: calc(24px + var(--safe-b)); }
[data-theme="dark"] .fab-menu { background: #F1F3F7; color: #111; }

/* Barre panier */
.cartbar { position: fixed; left: 16px; right: 16px; bottom: calc(14px + var(--safe-b)); z-index: 31; height: 70px; border-radius: 20px; background: var(--brand); color: #fff;
  display: flex; align-items: center; gap: 12px; padding: 0 16px 0 10px; box-shadow: 0 12px 30px rgba(255,107,53,.4); transform: translateY(150%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cartbar.show { transform: none; }
.cartbar .th { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center; flex: 0 0 48px; }
.cartbar .th img { width: 100%; height: 100%; object-fit: cover; }
.cartbar .th img.ico { width: 70%; height: 70%; object-fit: contain; }
.cartbar .t { flex: 1; font-size: 17px; font-weight: 600; line-height: 1.2; }
.cartbar .t small { display: block; font-size: 13px; font-weight: 400; opacity: .9; }
.cartbar .go { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

/* Mini-barre panier (accueil) */
.cart-mini { position: fixed; left: 16px; right: 16px; bottom: calc(96px + var(--safe-b)); z-index: 29; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; }
.cart-mini .lg { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: 0 0 52px; background: var(--brand-l); display: grid; place-items: center; }
.cart-mini .lg img { width: 100%; height: 100%; object-fit: cover; }
.cart-mini b { display: block; font-size: 16px; } .cart-mini small { color: var(--text2); font-size: 14px; font-weight: 600; }
.cart-mini .vc { margin-left: auto; background: var(--brand); color: #fff; border-radius: 16px; padding: 8px 16px; text-align: center; font-weight: 700; font-size: 16px; line-height: 1.15; }
.cart-mini .vc small { color: #fff; font-weight: 500; font-size: 13px; display: block; }
.cart-mini .x { width: 34px; height: 34px; border-radius: 50%; background: var(--input); color: var(--sub); font-size: 13px; flex: 0 0 34px; display: grid; place-items: center; }

/* ---------- Navigation basse (pilule flottante) ---------- */
.nav { position: fixed; left: 16px; right: 16px; bottom: calc(12px + var(--safe-b)); z-index: 40; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.nav .pill { flex: 1; pointer-events: auto; display: flex; background: var(--card); border-radius: 32px; height: 74px; padding: 6px; box-shadow: 0 8px 30px rgba(28,28,40,.16), 0 0 0 1px var(--line); }
.nav .it { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 28px; color: var(--sub); font-size: 13px; font-weight: 500; position: relative; }
.nav .it i { font-size: 20px; }
.nav .it.on { background: var(--brand-ll); color: var(--brand-d); box-shadow: inset 0 0 0 1px rgba(255,107,53,.12); }
.nav .it .dot { position: absolute; top: 6px; right: calc(50% - 22px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--card); }
.nav .orb { pointer-events: auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 26px;
  background: radial-gradient(circle at 30% 30%, #FFA27E, var(--brand) 45%, #D9441A); box-shadow: 0 10px 26px rgba(255,107,53,.45), inset 0 0 0 4px rgba(255,255,255,.25); }

/* ---------- Fenêtres glissantes (bottom sheet) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(10,10,18,.62); opacity: 0; transition: opacity .25s; }
.sheet { position: relative; width: 100%; max-width: 640px; max-height: 88vh; background: var(--card); border-radius: 26px 26px 0 0; transform: translateY(100%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding-bottom: var(--safe-b); }
.sheet-wrap.open .sheet-bg { opacity: 1; } .sheet-wrap.open .sheet { transform: none; }
.sheet .sx { position: absolute; top: -66px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; background: #2B2C38; color: #fff; font-size: 22px; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.sheet .sh { padding: 22px 20px 10px; }
.sheet .sh h2 { font-size: 21px; font-weight: 700; letter-spacing: -.2px; }
.sheet .sh p { color: var(--sub); font-size: 14px; margin-top: 4px; }
.sheet .sb { overflow-y: auto; padding: 4px 20px 20px; -webkit-overflow-scrolling: touch; }
.sheet .sf { padding: 12px 20px 16px; border-top: 1px solid var(--line2); display: flex; gap: 10px; }
.sheet.full { height: 92vh; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet .cover-img { margin: -4px -20px 14px; height: 260px; overflow: hidden; border-radius: 26px 26px 0 0; background: var(--input); }
.sheet .cover-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet .cover-img.ico { display: grid; place-items: center; background: linear-gradient(145deg, #FFF4EC, #FFDCC9); }
.sheet .cover-img.ico img { width: 46%; height: auto; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0,0,0,.2)); }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; max-height: 84vh; } .sheet .cover-img { border-radius: 26px 26px 0 0; } }

/* Liste d'options dans une feuille (menu des catégories) */
.opt-list .ol { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 17px; font-weight: 500; color: var(--text2); }
.opt-list .ol b { font-weight: 600; }
.opt-list .ol.on { color: var(--brand); font-weight: 700; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 22px; border-radius: 16px; background: var(--brand); color: #fff; font-weight: 600; font-size: 17px; white-space: nowrap; position: relative; transition: transform .1s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn.block { display: flex; width: 100%; }
.btn.sm { height: 42px; font-size: 14.5px; border-radius: 13px; padding: 0 16px; }
.btn.xs { height: 34px; font-size: 13px; border-radius: 10px; padding: 0 12px; gap: 6px; }
.btn.out { background: var(--card); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.soft { background: var(--brand-l); color: var(--brand-d); }
.btn.light { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.grey { background: var(--input); color: var(--text); }
.btn.dark { background: #1C1C28; color: #fff; } [data-theme="dark"] .btn.dark { background: #F1F3F7; color: #111; }
.btn.green { background: var(--green); } .btn.blue { background: var(--blue); } .btn.red { background: var(--red); } .btn.red-soft { background: var(--red-l); color: var(--red); }
.btn.wa { background: #25D366; }
.btn[disabled], .btn.dis { opacity: .45; pointer-events: none; }
.btn.load { color: transparent !important; pointer-events: none; }
.btn.load::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.out.load::after, .btn.soft.load::after, .btn.light.load::after, .btn.grey.load::after { border-color: rgba(255,107,53,.3); border-top-color: var(--brand); }
.btn .sub { font-size: 12.5px; font-weight: 400; opacity: .9; }
.btn-col { display: flex; flex-direction: column; gap: 10px; }
.btn-row { display: flex; gap: 10px; } .btn-row > * { flex: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.view-all { display: flex; justify-content: center; margin: 16px 0 4px; }
.view-all a, .view-all button { height: 44px; padding: 0 22px; border-radius: 14px; border: 1.5px solid var(--brand); color: var(--brand-d); font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; background: var(--card); }
.bottom-cta { position: sticky; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + var(--safe-b)); background: var(--card); box-shadow: 0 -4px 20px rgba(0,0,0,.06); }

/* ---------- Formulaires ---------- */
.form { padding: 4px 16px 16px; }
.fld { margin-bottom: 14px; }
.fld > label, .lbl { display: block; font-size: 13.5px; font-weight: 600; color: var(--text2); margin-bottom: 7px; }
.fld .opt { color: var(--muted); font-weight: 400; }
.inp, .fld input:not([type=checkbox]):not([type=radio]):not([type=file]), .fld select, .fld textarea {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 15px; border: 1px solid var(--line); background: var(--card); font-size: 16px; outline: none; color: var(--text); -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.fld textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: none; line-height: 1.45; }
.fld select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239AA0AE' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.inp:focus, .fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,107,53,.14); }
.fld .err, .fld.bad input, .fld.bad textarea, .fld.bad select { border-color: var(--red) !important; }
.fld .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.fld .msg { font-size: 12.5px; color: var(--red); margin-top: 6px; font-weight: 500; }
.phone { display: flex; gap: 8px; }
.phone select { flex: 0 0 118px !important; width: 118px !important; font-weight: 600; padding-right: 30px !important; background-position: right 12px center !important; }
.phone input { flex: 1; min-width: 0; }
.pwd { position: relative; } .pwd input { padding-right: 52px !important; }
.pwd button { position: absolute; right: 6px; top: 7px; width: 40px; height: 40px; color: var(--muted); font-size: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err-box { background: var(--red-l); color: var(--red); padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 500; margin-bottom: 14px; display: flex; gap: 10px; }
.prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 15px; background: var(--card); overflow: hidden; }
.prefix span { padding: 0 2px 0 14px; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.prefix input { border: 0 !important; box-shadow: none !important; padding-left: 4px !important; }
.seg { display: flex; background: var(--input); border-radius: 16px; padding: 4px; gap: 4px; }
.seg button { flex: 1; height: 44px; border-radius: 13px; font-weight: 600; font-size: 14.5px; color: var(--sub); display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { height: 46px; padding: 0 16px; border-radius: 23px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; background: var(--card); }
.radio.on { border-color: var(--brand); background: var(--brand-ll); color: var(--brand-d); font-weight: 600; }
.switch { position: relative; width: 52px; height: 30px; flex: 0 0 52px; display: inline-block; }
.switch input { opacity: 0; position: absolute; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: #C9CDD6; transition: background .2s; cursor: pointer; }
[data-theme="dark"] .switch span { background: #3A4152; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(22px); }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-pick .pp { width: 96px; height: 96px; border-radius: 22px; overflow: hidden; background: var(--input); display: grid; place-items: center; color: var(--muted); font-size: 28px; flex: 0 0 96px; position: relative; }
.photo-pick .pp img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .pp img.ico { width: 70%; height: 70%; object-fit: contain; }
.photo-pick input[type=file] { display: none; }

/* ---------- Listes (style profil) ---------- */
.group { background: var(--card); border-radius: 22px; margin: 14px 16px 0; overflow: hidden; box-shadow: 0 0 0 1px var(--line2); }
.group .gt { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; padding: 18px 20px 6px; position: relative; }
.group .gt::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 6px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.li { display: flex; align-items: center; gap: 14px; padding: 15px 20px; position: relative; width: 100%; text-align: left; min-height: 60px; }
.li + .li::before { content: ''; position: absolute; top: 0; left: 58px; right: 20px; border-top: 1px solid var(--line2); }
.li.noic + .li.noic::before { left: 20px; }
.li:active { background: var(--press); }
.li > i:first-child, .li .lic { width: 26px; font-size: 19px; color: var(--sub); text-align: center; flex: 0 0 26px; }
.li .lb { flex: 1; min-width: 0; }
.li .lb b { display: block; font-size: 16.5px; font-weight: 500; color: var(--text); }
.li .lb small { display: block; font-size: 13px; color: var(--sub); margin-top: 2px; }
.li .lv { color: var(--sub); font-size: 14.5px; }
.li .chev { color: var(--muted); font-size: 14px; }
.li.danger b, .li.danger > i:first-child { color: var(--red); }
.li .new { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.li .ava { width: 46px; height: 46px; border-radius: 14px; overflow: hidden; flex: 0 0 46px; background: var(--brand-l); display: grid; place-items: center; color: var(--brand); font-weight: 700; }
.li .ava img { width: 100%; height: 100%; object-fit: cover; }
.li .ava img.ico { width: 72%; height: 72%; object-fit: contain; }

/* Carte de profil */
.prof { margin: 8px 16px 0; background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line2); }
.prof .pt { display: flex; align-items: center; gap: 18px; padding: 22px; }
.prof .pa { width: 82px; height: 82px; border-radius: 50%; background: #D7E6FF; color: var(--blue); display: grid; place-items: center; font-size: 34px; font-weight: 600; flex: 0 0 82px; overflow: hidden; }
.prof .pa img { width: 100%; height: 100%; object-fit: cover; }
.prof h2 { font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.prof .pt p { color: var(--text2); font-size: 14.5px; margin: 2px 0 6px; }
.prof .gold { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: #1C1C24; color: #F6C77A; font-weight: 700; font-size: 18px; }
.prof .gold .gi { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #6B5323, #2A2216); display: grid; place-items: center; color: #F6C77A; box-shadow: 0 0 0 2px #3A3020; }
.prof .gold i.chev { margin-left: auto; color: #F6C77A; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 16px 0; }
.duo a, .duo button { background: var(--card); border-radius: 20px; padding: 16px; display: flex; align-items: center; gap: 12px; text-align: left; box-shadow: 0 0 0 1px var(--line2); }
.duo .di { width: 42px; height: 42px; border-radius: 50%; background: var(--input); display: grid; place-items: center; color: var(--sub); flex: 0 0 42px; }
.duo b { font-size: 15px; font-weight: 500; display: block; } .duo small { font-size: 14px; color: var(--green); font-weight: 600; }

/* ---------- Statistiques / tuiles ---------- */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.kpi { background: var(--card); border-radius: 20px; padding: 16px; box-shadow: 0 0 0 1px var(--line2); min-width: 0; }
.kpi .ki { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; margin-bottom: 12px; }
.kpi b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { color: var(--sub); font-size: 13px; }
.kpi .trend { font-size: 12px; font-weight: 600; margin-left: 4px; }
.bg-brand { background: var(--brand-l); color: var(--brand); } .bg-green { background: var(--green-l); color: var(--green); } .bg-blue { background: var(--blue-l); color: var(--blue); }
.bg-yellow { background: var(--yellow-l); color: var(--yellow); } .bg-purple { background: var(--purple-l); color: var(--purple); } .bg-red { background: var(--red-l); color: var(--red); } .bg-grey { background: var(--input); color: var(--sub); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding: 10px 16px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.chart .col i { width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #FFA27E, var(--brand)); min-height: 4px; }
.chart .col i.z { background: var(--line); }
.chart .col small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.hbar { padding: 10px 0; }
.hbar .ht { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; margin-bottom: 7px; }
.bar-x { height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; } .bar-x i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }

/* ---------- Commandes ---------- */
.ocard { background: var(--card); border-radius: 22px; margin: 0 16px 12px; padding: 16px; box-shadow: 0 0 0 1px var(--line2), var(--shadow); display: block; }
.ocard .oh { display: flex; align-items: center; gap: 12px; }
.ocard .oi { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 19px; flex: 0 0 48px; }
.ocard .ot { flex: 1; min-width: 0; }
.ocard .ot b { display: block; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard .ot small { color: var(--sub); font-size: 13px; }
.ocard .op { text-align: right; font-weight: 700; font-size: 16px; }
.ocard .op small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.ocard .items { color: var(--text2); font-size: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ocard .of { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ocard.new { animation: pulse-b 1.6s ease-in-out 3; }
@keyframes pulse-b { 50% { box-shadow: 0 0 0 3px var(--brand), var(--shadow); } }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tag-grey { background: var(--input); color: var(--text2); }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: 15px; }
.kv + .kv { border-top: 1px solid var(--line2); }
.kv span { color: var(--sub); } .kv b { font-weight: 500; text-align: right; }
.kv.tot b { font-size: 19px; font-weight: 700; } .kv.tot span { color: var(--text); font-weight: 600; }
.line-it { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.line-it + .line-it { border-top: 1px solid var(--line2); }
.line-it .q { min-width: 34px; height: 28px; border-radius: 9px; background: var(--brand-l); color: var(--brand-d); font-weight: 700; font-size: 13.5px; display: grid; place-items: center; }
.line-it .n { flex: 1; font-size: 15.5px; font-weight: 500; }
.line-it .n small { display: block; color: var(--sub); font-size: 13px; font-weight: 400; }
.line-it .p { font-weight: 600; white-space: nowrap; }

/* Suivi */
.track-hero { text-align: center; padding: 26px 20px 20px; }
.track-hero .ti { width: 96px; height: 96px; border-radius: 32px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 40px; }
.track-hero h2 { font-size: 25px; font-weight: 800; letter-spacing: -.4px; }
.track-hero p { color: var(--sub); margin-top: 6px; font-size: 15px; }
.code-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 9px 16px; border-radius: 14px; background: var(--input); font-weight: 700; font-size: 17px; letter-spacing: 3px; }
.steps { display: flex; padding: 4px 8px 20px; }
.step { flex: 1; text-align: center; font-size: 11.5px; font-weight: 500; color: var(--muted); position: relative; }
.step i { width: 34px; height: 34px; border-radius: 50%; background: var(--input); display: grid; place-items: center; margin: 0 auto 7px; font-size: 13px; position: relative; z-index: 1; }
.step::before { content: ''; position: absolute; top: 16px; left: -50%; right: 50%; height: 3px; background: var(--input); }
.step:first-child::before { display: none; }
.step.done { color: var(--text2); } .step.done i { background: var(--green); color: #fff; } .step.done::before { background: var(--green); }
.step.cur { color: var(--text); font-weight: 600; } .step.cur i { background: var(--brand); color: #fff; box-shadow: 0 0 0 6px var(--brand-l); } .step.cur::before { background: var(--green); }
.pulse { animation: pulse 1.6s ease-in-out infinite; } @keyframes pulse { 50% { transform: scale(1.06); } }
.stars { display: flex; gap: 8px; justify-content: center; }
.stars button { font-size: 34px; color: var(--line); } .stars button.on { color: #FFB800; }
.stars-sm { color: #FFB800; font-size: 12px; letter-spacing: 1px; }

/* ---------- Carte géographique ---------- */
.map { height: 220px; border-radius: 20px; overflow: hidden; background: var(--input); position: relative; z-index: 1; }
.map.tall { height: 100%; border-radius: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; z-index: 500; transform: translate(-50%, -100%); color: var(--brand); font-size: 44px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.3)); pointer-events: none; }
.map-tip { position: absolute; left: 50%; top: calc(50% - 110px); transform: translateX(-50%); z-index: 500; background: #1C1C28; color: #fff; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 12px; white-space: nowrap; pointer-events: none; }
.map-tip::after { content: ''; position: absolute; bottom: -7px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #1C1C28; }
.mk { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.3); border: 3px solid #fff; }
.mk i { transform: rotate(45deg); color: #fff; font-size: 15px; }
.mk.me { background: var(--blue); }
.leaflet-container { font-family: 'Lexend', sans-serif; background: #EEF0F4; }
.dist-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.dist-card .dc { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; }

/* ---------- Scanner ---------- */
.scanner { position: absolute; inset: 0; background: #000; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.scanner .frame i { display: block; width: min(70vw, 300px); aspect-ratio: 1; border-radius: 30px; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); position: relative; }
.scanner .frame i::before { content: ''; position: absolute; inset: -3px; border-radius: 32px; border: 4px solid transparent; border-color: #fff transparent; }
.scanner .frame i::after { content: ''; position: absolute; left: 10%; right: 10%; height: 3px; top: 12%; border-radius: 2px; background: var(--brand); box-shadow: 0 0 16px var(--brand); animation: scanl 2.2s ease-in-out infinite; }
@keyframes scanl { 50% { top: 86%; } }
.scanner .top { position: absolute; top: 0; left: 0; right: 0; padding: calc(10px + var(--safe-t)) 10px; display: flex; align-items: center; gap: 8px; color: #fff; z-index: 2; }
.scanner .top h1 { flex: 1; font-size: 18px; font-weight: 600; }
.scanner .top .ib { color: #fff; background: rgba(255,255,255,.14); }
.scanner .bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px calc(24px + var(--safe-b)); z-index: 2; text-align: center; color: #fff; }
.scanner .bottom p { font-size: 15px; margin-bottom: 18px; opacity: .92; }
.scanner .bottom .btn-row .btn { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); }
.scan-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; color: #fff; background: linear-gradient(180deg, #1C1C28, #0E0E16); }

/* ---------- États ---------- */
.empty { text-align: center; padding: 48px 28px; }
.empty img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 16px; filter: drop-shadow(0 12px 16px rgba(0,0,0,.15)); }
.empty .ei { width: 92px; height: 92px; border-radius: 30px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 36px; background: var(--brand-l); color: var(--brand); }
.empty h3 { font-size: 19px; font-weight: 700; } .empty p { color: var(--sub); font-size: 14.5px; margin: 6px 0 18px; line-height: 1.5; }
.skel { background: linear-gradient(90deg, var(--line2) 25%, var(--input) 50%, var(--line2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 16px; }
@keyframes sk { to { background-position: -200% 0; } }
.loader { display: flex; justify-content: center; padding: 40px; }
.loader i { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--brand-l); border-top-color: var(--brand); animation: spin .8s linear infinite; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(110px + var(--safe-b)); z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); width: max-content;
  background: #1C1C28; color: #fff; padding: 13px 18px; border-radius: 16px; font-size: 14.5px; font-weight: 500; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); transition: all .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast i { color: #4ADE80; } .toast.err i { color: #F87171; } .toast.info i { color: #FDBA74; }
.toast a { color: #FDBA74; font-weight: 700; margin-left: 6px; }
[data-theme="dark"] .toast { background: #F1F3F7; color: #111; }

/* Écran plein (connexion, autorisation) */
.splash { min-height: 100%; display: flex; flex-direction: column; }
.splash .art { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(30px + var(--safe-t)) 28px 10px; }
.splash .art h1 { font-size: 27px; font-weight: 800; letter-spacing: -.5px; margin-top: 18px; line-height: 1.2; }
.splash .art p { color: var(--sub); font-size: 15.5px; margin-top: 10px; line-height: 1.5; max-width: 340px; }
.splash .acts { padding: 16px 20px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
.ring-art { width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--brand-l) 55%, transparent 56%), radial-gradient(circle, var(--brand-ll) 70%, transparent 71%); display: grid; place-items: center; position: relative; }
.ring-art img { width: 120px; filter: drop-shadow(0 16px 18px rgba(0,0,0,.2)); }
.ring-art .fl { position: absolute; width: 56px; height: auto; }
.auth-hero { background: linear-gradient(160deg, #FF8A5B, var(--brand) 55%, #E8501A); color: #fff; padding: calc(56px + var(--safe-t)) 24px 34px; position: relative; overflow: hidden; }
.auth-hero h1 { font-size: 29px; font-weight: 800; letter-spacing: -.6px; line-height: 1.15; position: relative; z-index: 1; max-width: 72%; }
.auth-hero p { opacity: .92; margin-top: 8px; font-size: 15px; position: relative; z-index: 1; max-width: 68%; }
.auth-hero img.f { position: absolute; width: 110px; right: -10px; bottom: -14px; opacity: .95; filter: drop-shadow(0 10px 14px rgba(0,0,0,.25)); }
.auth-hero img.f2 { position: absolute; width: 56px; right: 18px; top: calc(18px + var(--safe-t)); transform: rotate(-14deg); opacity: .9; }
.auth-hero .back { position: absolute; top: calc(8px + var(--safe-t)); left: 8px; color: #fff; }

/* Contenu texte */
.prose { padding: 4px 20px 20px; font-size: 15px; line-height: 1.7; color: var(--text2); -webkit-user-select: text; user-select: text; }
.prose h3 { font-size: 16.5px; color: var(--text); margin: 18px 0 6px; } .prose p, .prose ul { margin-bottom: 10px; } .prose ul { padding-left: 20px; }
details.faq { border-top: 1px solid var(--line2); } details.faq:first-child { border-top: 0; }
details.faq summary { list-style: none; padding: 16px 20px; font-weight: 500; font-size: 15.5px; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: var(--muted); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(180deg); }
details.faq p { padding: 0 20px 16px; color: var(--sub); line-height: 1.6; }

/* Icônes de la bibliothèque (choix d'image de catégorie) */
.ico-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ico-grid button { aspect-ratio: 1; border-radius: 18px; background: var(--input); display: grid; place-items: center; padding: 12px; }
.ico-grid button img { width: 100%; height: 100%; object-fit: contain; }
.ico-grid button.on { background: var(--brand-ll); box-shadow: inset 0 0 0 2px var(--brand); }

/* QR */
.qr-big { width: 230px; height: 230px; margin: 0 auto; padding: 14px; background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); }
.qr-big svg, .qr-sm svg { width: 100%; height: 100%; display: block; }
.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.qr-cell { background: var(--card); border-radius: 18px; padding: 10px; text-align: center; box-shadow: 0 0 0 1px var(--line2); }
.qr-sm { aspect-ratio: 1; background: #fff; border-radius: 12px; padding: 6px; }
.qr-cell b { display: block; font-size: 13.5px; margin: 8px 0; }

/* Ticket */
.ticket { background: #fff; color: #111; width: 300px; max-width: 100%; margin: 16px auto; padding: 18px 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.45; border-radius: 6px; box-shadow: var(--shadow); }
.ticket h2 { text-align: center; font-size: 16px; } .ticket .c { text-align: center; } .ticket hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
.ticket .r { display: flex; justify-content: space-between; gap: 8px; } .ticket .big { font-size: 15px; font-weight: 800; }
@media print {
  body { overflow: visible; height: auto; background: #fff; }
  #app, .scr { position: static !important; overflow: visible !important; transform: none !important; }
  .scr:not(.top-scr), .bar, .nav, .no-print, .toast, .sheet-wrap { display: none !important; }
  .ticket { box-shadow: none; margin: 0; width: 100%; }
}

/* ---------- Bureau / tablette ---------- */
@media (min-width: 760px) {
  .rlist { grid-template-columns: repeat(2, 1fr); }
  .grid-cuis { grid-template-columns: repeat(6, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .banner { flex-basis: calc(50% - 6px); }
  .nav { left: 50%; right: auto; transform: translateX(-50%); width: 560px; }
  .cartbar, .cart-mini { left: 50%; right: auto; width: 560px; transform: translateX(-50%); }
  .cartbar:not(.show) { transform: translate(-50%, 150%); }
  .content-max { max-width: 760px; margin: 0 auto; }
  .qr-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1100px) {
  .rlist { grid-template-columns: repeat(3, 1fr); }
  .banner { flex-basis: calc(33.333% - 8px); }
}
/* Espaces pro et admin : barre latérale sur grand écran */
@media (min-width: 980px) {
  .side-layout .nav { left: 0; top: 0; bottom: 0; right: auto; width: 240px; transform: none; flex-direction: column; align-items: stretch; padding: 24px 14px; gap: 14px; background: var(--card); box-shadow: 1px 0 0 var(--line); }
  .side-layout .nav .pill { flex-direction: column; height: auto; box-shadow: none; border-radius: 0; padding: 0; gap: 4px; flex: 0; }
  .side-layout .nav .it { flex: 0 0 50px; flex-direction: row; justify-content: flex-start; gap: 14px; height: 50px; padding: 0 16px; font-size: 15px; border-radius: 14px; }
  .side-layout .nav .it .dot { position: static; margin-left: auto; }
  .side-layout .nav .orb { width: 100%; height: 50px; border-radius: 14px; font-size: 15px; gap: 10px; display: flex; justify-content: center; }
  .side-layout .nav .orb::after { content: attr(data-label); font-weight: 600; }
  .side-layout .nav .brand-side { display: flex; }
  .side-layout #app { left: 240px; }
  .side-layout .content-max { max-width: 900px; }
  .side-layout .toast { bottom: 30px; }
}
.brand-side { display: none; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; padding: 0 8px 14px; pointer-events: auto; }
.brand-side img { width: 38px; height: 38px; border-radius: 12px; }

/* =========================================================
   v3.1 — INTERFACE COMPACTE + ICÔNES PROFESSIONNELLES
   ========================================================= */
body { font-size: 13.5px; }
.bar { min-height: calc(52px + var(--safe-t)); padding-left: 6px; padding-right: 6px; }
.bar h1 { font-size: 17px; }
.bar h1 small { font-size: 11.5px; }
.ib { width: 38px; height: 38px; flex-basis: 38px; font-size: 16px; }
.h-sec { font-size: 11px; letter-spacing: .12em; padding: 16px 14px 8px; }
.scr-pad { padding-bottom: calc(92px + var(--safe-b)); }
.mx { margin-left: 12px; margin-right: 12px; }
.p16 { padding: 14px; }

/* En-tête d'accueil + recherche */
.home-head { padding: calc(8px + var(--safe-t)) 14px 2px; gap: 8px; }
.loc-btn b { font-size: 15.5px; gap: 5px; }
.loc-btn small { font-size: 12px; margin-left: 19px; }
.avatar-btn { width: 38px; height: 38px; flex-basis: 38px; font-size: 15px; }
.pill-badge { height: 34px; padding: 0 10px; font-size: 10px; border-radius: 17px; }
.pill-badge i { width: 22px; height: 22px; font-size: 10px; }
.search-row { padding: 6px 14px 8px; gap: 8px; }
.search { height: 44px; border-radius: 14px; padding: 0 12px; gap: 8px; box-shadow: none; }
.search i { font-size: 16px; }
.search input, .search .anim-ph { font-size: 14px; }
.circle-btn { width: 44px; height: 44px; flex-basis: 44px; font-size: 17px; }

/* Catégories : icônes dans des cercles */
.cats { padding: 6px 8px 0; gap: 2px; }
.cat { width: 68px; gap: 5px; padding-bottom: 8px; font-size: 11.5px; }
.cat .ci { width: 50px; height: 50px; border-radius: 50%; background: var(--input); color: var(--text2); font-size: 19px; display: grid; place-items: center; transition: all .2s; }
.cat .ci img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; filter: none; }
.cat .ci.photo { background: none; }
.cat.on .ci { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(255,107,53,.35); }
.cat.on .ci img { transform: none; }
.cat span { max-width: 66px; }
.cat.on::after { left: 12px; right: 12px; height: 3px; }
.grid-cuis { gap: 12px 4px; padding: 4px 0 14px; }
.gc { font-size: 12px; gap: 6px; padding: 6px 2px; }
.gc .gi { width: 52px; height: 52px; border-radius: 50%; background: var(--input); display: grid; place-items: center; font-size: 20px; color: var(--text2); }
.gc.on .gi { background: var(--brand); color: #fff; }

/* Puces */
.chips { padding: 8px 14px; gap: 8px; }
.chip { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; gap: 6px; box-shadow: none; }
.chip.sm { height: 30px; padding: 0 10px; font-size: 12px; }

/* Vignettes sans photo : icône professionnelle */
.ph-gen { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #FF8A5B, #E8501A); color: rgba(255,255,255,.95); font-size: 30px; }
.ph-i { font-size: 22px; color: var(--brand); }
.dimg.ico, .cover-img.ico, .ava, .th, .pp, .sugg-ph { background: linear-gradient(145deg, var(--brand-ll), var(--brand-l)) !important; display: grid; place-items: center; }
.dimg.ico i { font-size: 30px; color: var(--brand); }
.cover-img.ico { height: 170px !important; }
.cover-img.ico i { font-size: 56px; color: var(--brand); }
.ava.round { border-radius: 50% !important; }
.ava img, .th img, .pp img { width: 100%; height: 100%; object-fit: cover; }

/* Restaurant : ligne compacte */
.rlist { gap: 10px; padding: 0 12px; }
.rrow { display: flex; gap: 12px; align-items: stretch; background: var(--card); border-radius: 16px; padding: 10px; box-shadow: 0 0 0 1px var(--line2), 0 1px 4px rgba(28,28,40,.04); position: relative; }
.rrow:active { background: var(--press); }
.rth { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 12px; overflow: hidden; background: var(--input); position: relative; }
.rth img { width: 100%; height: 100%; object-fit: cover; }
.rth .ph-gen { font-size: 26px; }
.rth .closed { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(28,28,40,.78); color: #fff; font-size: 10.5px; text-align: center; padding: 2px 0; font-weight: 600; }
.rinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-right: 26px; }
.rinfo .rt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rinfo .rt b { font-size: 15px; font-weight: 700; }
.rinfo .vb { color: var(--blue); font-size: 12px; }
.rinfo .rc { font-size: 12.5px; color: var(--sub); }
.rinfo .rm { font-size: 12.5px; color: var(--text2); display: flex; align-items: center; gap: 5px; }
.rinfo .rtags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.mtag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--input); color: var(--text2); font-size: 10.5px; font-weight: 600; }
.mtag.blue { background: var(--blue-l); color: var(--blue); }
.rbk { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.rbk.on { color: var(--brand); }
.rinfo .rt .rating { position: absolute; right: 10px; bottom: 10px; }
.rating { font-size: 12px; padding: 2px 6px; border-radius: 7px; gap: 2px; }
.rating i { font-size: 9px; }
.rating.new { font-size: 10.5px; }
.rating.lg { font-size: 15px; padding: 4px 8px; border-radius: 10px; }
.rmini { width: 150px; }
.rmini .ph { width: 150px; height: 104px; border-radius: 14px; }
.rmini .ph .ph-gen { font-size: 26px; }
.rmini b { font-size: 14px; margin-top: 6px; }
.rmini small { font-size: 12px; }

/* Fiche restaurant */
.rcover { height: 150px; }
.rlogo { width: 58px; height: 58px; border-radius: 16px; margin-top: -32px; }
.rhead { padding: 4px 14px 12px; }
.rhead h2 { font-size: 21px; }
.rline { font-size: 13.5px; margin-top: 6px; gap: 6px; }
.rbanner { padding: 10px 14px; font-size: 13.5px; gap: 10px; }
.rb-i { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; font-size: 13px; }
.mode-banner { margin: 10px 12px 0; padding: 10px 12px; font-size: 13px; border-radius: 14px; gap: 10px; }
.mode-banner i.big { width: 34px; height: 34px; flex-basis: 34px; font-size: 15px; border-radius: 10px; }
.menu-sec { margin-top: 8px; }
.menu-sec h3 { font-size: 16.5px; padding: 14px 14px 2px; }
.dish { padding: 14px 14px 16px; gap: 12px; }
.dish h4 { font-size: 15px; }
.dish .tag-ic { width: 16px; height: 16px; margin-bottom: 4px; }
.dish .tag-ic i { width: 8px; height: 8px; }
.pop { font-size: 12px; margin-top: 4px; }
.pop .pb { width: 48px; height: 5px; }
.dish .price { font-size: 14.5px; margin-top: 5px; }
.dish .desc { font-size: 12.5px; margin-top: 5px; -webkit-line-clamp: 2; }
.dish .acts { margin-top: 8px; gap: 8px; }
.dish .acts button { width: 32px; height: 32px; font-size: 13px; }
.dish .dr { flex: 0 0 104px; width: 104px; padding-bottom: 16px; }
.dish .dimg { width: 104px; height: 104px; border-radius: 14px; }
.add { width: 86px; height: 34px; border-radius: 9px; font-size: 14px; box-shadow: 0 4px 10px rgba(255,107,53,.16); }
.add sup { font-size: 11px; top: 1px; right: 5px; }
.add.qty button { width: 28px; height: 32px; font-size: 12px; }
.add.qty span { font-size: 14px; }
.fab-menu { height: 44px; padding: 0 16px; font-size: 14px; border-radius: 13px; bottom: calc(82px + var(--safe-b)); }
.fab-menu.low { bottom: calc(18px + var(--safe-b)); }
.cartbar { height: 56px; border-radius: 16px; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); padding: 0 14px 0 8px; gap: 10px; }
.cartbar .th { width: 40px; height: 40px; flex-basis: 40px; }
.cartbar .th .ph-i { font-size: 17px; }
.cartbar .t { font-size: 14.5px; } .cartbar .t small { font-size: 12px; } .cartbar .go { font-size: 14.5px; }
.cart-mini { left: 12px; right: 12px; bottom: calc(80px + var(--safe-b)); border-radius: 18px; padding: 8px 8px 8px 10px; gap: 10px; }
.cart-mini .lg { width: 40px; height: 40px; flex-basis: 40px; }
.cart-mini b { font-size: 14px; } .cart-mini small { font-size: 12.5px; }
.cart-mini .vc { font-size: 13.5px; padding: 6px 12px; border-radius: 12px; } .cart-mini .vc small { font-size: 11.5px; }
.sugg-ph { position: relative; width: 112px; height: 92px; border-radius: 12px; overflow: hidden; }
.sugg-add { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); font-size: 13px; }

/* Navigation basse compacte */
.nav { left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); gap: 8px; }
.nav .pill { height: 60px; border-radius: 26px; padding: 5px; }
.nav .it { font-size: 11px; gap: 2px; border-radius: 22px; }
.nav .it i { font-size: 17px; }
.nav .it .dot { top: 3px; min-width: 16px; height: 16px; font-size: 9.5px; }
.nav .orb { width: 60px; height: 60px; font-size: 21px; }

/* Fenêtres glissantes */
.sheet .sx { width: 44px; height: 44px; top: -56px; font-size: 18px; }
.sheet .sh { padding: 18px 16px 8px; } .sheet .sh h2 { font-size: 18px; } .sheet .sh p { font-size: 13px; }
.sheet .sb { padding: 4px 16px 16px; } .sheet .sf { padding: 10px 16px 14px; }
.opt-list .ol { font-size: 15px; padding: 12px 0; }

/* Boutons, champs */
.btn { height: 48px; font-size: 15px; border-radius: 13px; padding: 0 18px; }
.btn.sm { height: 38px; font-size: 13.5px; border-radius: 11px; padding: 0 14px; }
.btn.xs { height: 30px; font-size: 12px; }
.inp, .fld input:not([type=checkbox]):not([type=radio]):not([type=file]), .fld select { height: 46px; font-size: 15px; border-radius: 12px; }
.fld textarea { min-height: 80px; font-size: 15px; border-radius: 12px; }
.fld { margin-bottom: 12px; } .fld > label, .lbl { font-size: 12.5px; margin-bottom: 5px; }
.phone select { flex-basis: 104px !important; width: 104px !important; }
.seg button { height: 38px; font-size: 13.5px; }
.radio { height: 38px; padding: 0 13px; font-size: 13.5px; border-radius: 19px; }
.switch { width: 46px; height: 26px; flex-basis: 46px; }
.switch span::after { width: 20px; height: 20px; }
.switch input:checked + span::after { transform: translateX(20px); }

/* Listes profil / compte */
.prof { margin: 6px 12px 0; border-radius: 20px; }
.prof .pt { padding: 16px; gap: 14px; }
.prof .pa { width: 60px; height: 60px; flex-basis: 60px; font-size: 24px; }
.prof h2 { font-size: 19px; } .prof .pt p { font-size: 13px; }
.prof .gold { padding: 14px 16px; font-size: 15px; gap: 12px; }
.prof .gold .gi { width: 34px; height: 34px; font-size: 14px; }
.duo { margin: 10px 12px 0; gap: 10px; }
.duo a, .duo button { padding: 12px; border-radius: 16px; gap: 10px; }
.duo .di { width: 34px; height: 34px; flex-basis: 34px; font-size: 14px; }
.duo b { font-size: 13.5px; } .duo small { font-size: 12.5px; }
.group { margin: 10px 12px 0; border-radius: 18px; }
.group .gt { font-size: 15px; padding: 14px 16px 4px; }
.group .gt::before { top: 13px; bottom: 4px; width: 3px; }
.li { padding: 11px 16px; min-height: 50px; gap: 12px; }
.li + .li::before { left: 50px; right: 16px; }
.li > i:first-child, .li .lic { width: 22px; flex-basis: 22px; font-size: 16px; }
.li .lb b { font-size: 14.5px; } .li .lb small { font-size: 12px; }
.li .lv { font-size: 13px; } .li .chev { font-size: 12px; }
.li .ava { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; overflow: hidden; }

/* Commandes, KPI, suivi */
.kpis { gap: 10px; padding: 0 12px; }
.kpi { padding: 12px; border-radius: 16px; }
.kpi .ki { width: 32px; height: 32px; font-size: 14px; margin-bottom: 8px; border-radius: 10px; }
.kpi b { font-size: 18px; } .kpi small { font-size: 12px; }
.ocard { margin: 0 12px 10px; padding: 12px; border-radius: 16px; }
.ocard .oi { width: 40px; height: 40px; flex-basis: 40px; font-size: 16px; border-radius: 12px; }
.ocard .ot b { font-size: 14.5px; } .ocard .ot small { font-size: 12px; }
.ocard .op { font-size: 14.5px; } .ocard .items { font-size: 13px; margin-top: 8px; padding-top: 8px; } .ocard .of { margin-top: 10px; }
.tag { height: 22px; font-size: 11.5px; padding: 0 8px; border-radius: 7px; }
.kv { padding: 10px 0; font-size: 14px; } .kv.tot b { font-size: 17px; }
.line-it { padding: 10px 0; gap: 10px; } .line-it .n { font-size: 14px; } .line-it .q { min-width: 30px; height: 24px; font-size: 12.5px; }
.track-hero { padding: 18px 16px 14px; } .track-hero .ti { width: 68px; height: 68px; border-radius: 22px; font-size: 28px; margin-bottom: 10px; }
.track-hero h2 { font-size: 20px; } .track-hero p { font-size: 13.5px; }
.code-pill { font-size: 15px; padding: 7px 14px; margin-top: 10px; }
.steps { padding: 2px 6px 14px; } .step { font-size: 10.5px; } .step i { width: 28px; height: 28px; font-size: 11px; } .step::before { top: 13px; }
.chart { height: 120px; }
.map { height: 180px; border-radius: 16px; }
.empty { padding: 32px 24px; } .empty .ei { width: 68px; height: 68px; border-radius: 22px; font-size: 26px; } .empty h3 { font-size: 16.5px; } .empty p { font-size: 13.5px; }

/* Raccourcis en grille (espace pro) */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 10px 2px; }
.quick button, .quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border-radius: 14px; font-size: 11.5px; font-weight: 500; color: var(--text2); text-align: center; }
.quick button:active { background: var(--press); }
.quick .qi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 17px; }

/* Bibliothèque d'icônes (catégories) */
.ico-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ico-grid button { aspect-ratio: auto; height: 74px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; color: var(--text2); }
.ico-grid button i { font-size: 20px; color: var(--brand); }
.ico-grid button small { font-size: 10.5px; line-height: 1.1; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.photo-pick .pp { width: 76px; height: 76px; flex-basis: 76px; border-radius: 18px; }

/* Écran de bienvenue et connexion (icônes) */
.splash .art h1 { font-size: 22px; margin-top: 14px; } .splash .art p { font-size: 14px; }
.ring-art { width: 168px; height: 168px; }
.ring-art .ra-main { width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 34px; box-shadow: 0 12px 28px rgba(255,107,53,.4); }
.ring-art .ra-f { position: absolute; width: 38px; height: 38px; border-radius: 12px; background: var(--card); color: var(--brand); display: grid; place-items: center; font-size: 15px; box-shadow: var(--shadow); }
.splash .acts { padding: 12px 16px calc(18px + var(--safe-b)); gap: 8px; }
.auth-hero { padding: calc(50px + var(--safe-t)) 20px 24px; overflow: hidden; }
.auth-hero h1 { font-size: 24px; } .auth-hero p { font-size: 13.5px; }
.auth-hero .wm { position: absolute; right: -14px; bottom: -22px; font-size: 120px; color: rgba(255,255,255,.14); transform: rotate(-12deg); }
.form { padding: 4px 14px 14px; }

/* Grand écran : lignes de restaurant en grille */
@media (min-width: 760px) { .rlist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rlist { grid-template-columns: repeat(3, 1fr); } }
