/* ==========================================================================
   MIRA FOOD — feuille de style unique (vitrine, client, restaurant, livreur, admin)
   ========================================================================== */
:root {
  --orange: #f39200;
  --orange-vif: #ff7a00;
  --orange-doux: #fff3e6;
  --rouge: #e53935;
  --rouge-vif: #ff3b30;
  --rose: #fdecef;
  --vert: #1fa463;
  --vert-fonce: #13854d;
  --vert-doux: #e8f7ef;
  --bleu: #1565c0;
  --bleu-doux: #e8f0fb;
  --violet: #6a1b9a;
  --violet-doux: #f3e8fa;
  --jaune: #ffb400;
  --nuit: #0e1320;
  --nuit-2: #161c2c;
  --sidebar: #1b1f27;
  --texte: #1a1d23;
  --gris: #6b7280;
  --gris-clair: #9aa1ad;
  --ligne: #e7e9ee;
  --fond: #f6f7f9;
  --blanc: #fff;
  --ombre: 0 6px 24px rgba(16, 24, 40, .08);
  --ombre-forte: 0 18px 50px rgba(16, 24, 40, .18);
  --rayon: 14px;
  --principal: var(--vert);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texte); background: var(--fond); font-size: 15px; line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.lucide { width: 18px; height: 18px; stroke-width: 2; vertical-align: middle; }
.muted { color: var(--gris); }
.petit { font-size: 12px; }
.gras { font-weight: 700; }
.centre { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; }
.entre { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.colonne { display: flex; flex-direction: column; gap: 12px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cache { display: none !important; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: .9; font-weight: 800; letter-spacing: -.5px; direction: ltr; unicode-bidi: isolate; font-family: "Poppins", system-ui, sans-serif; }
.logo .l-mira { font-size: 1em; display: inline-flex; align-items: flex-end; }
.logo .l-mira svg { height: .78em; width: .32em; margin: 0 .02em .06em; }
.logo .l-food { font-size: .42em; color: var(--orange); letter-spacing: .12em; margin-top: .08em; display: inline-flex; align-items: center; gap: .1em; }
.logo-clair .l-mira { color: #fff; }
.logo-sombre .l-mira { color: #1d1d1f; }

/* ---------- Boutons, champs, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--principal); color: #fff;
  transition: transform .08s ease, filter .15s ease; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn-plein { width: 100%; }
.btn-vert { background: var(--vert); }
.btn-rouge { background: var(--rouge); }
.btn-orange { background: var(--orange-vif); }
.btn-bleu { background: var(--bleu); }
.btn-violet { background: var(--violet); }
.btn-sombre { background: var(--nuit); }
.btn-clair { background: #fff; color: var(--texte); border: 1px solid var(--ligne); }
.btn-lien { background: none; color: var(--principal); padding: 6px 8px; }
.btn-petit { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-pilule { border-radius: 999px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.champ label { font-size: 13px; font-weight: 600; }
.champ input, .champ select, .champ textarea, .saisie {
  width: 100%; padding: 11px 13px; border: 1px solid var(--ligne); border-radius: 10px; background: #fff; outline: none;
}
.champ input:focus, .champ select:focus, .champ textarea:focus, .saisie:focus { border-color: var(--principal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--principal) 18%, transparent); }
.champ input[type=checkbox] { width: auto; }
.champ .aide { font-size: 12px; color: var(--gris); }
.erreur { color: var(--rouge); font-size: 12px; }
.case { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--fond); color: var(--gris); }
.b-vert { background: var(--vert-doux); color: var(--vert-fonce); }
.b-rouge { background: #fdeaea; color: #c62828; }
.b-orange { background: var(--orange-doux); color: #c46a00; }
.b-bleu { background: var(--bleu-doux); color: var(--bleu); }
.b-violet { background: var(--violet-doux); color: var(--violet); }
.b-gris { background: #eef0f3; color: #4b5563; }
.carte { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px; }
.messages { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 460px); }
.message { padding: 12px 16px; border-radius: 12px; background: var(--nuit); color: #fff; box-shadow: var(--ombre-forte); font-size: 14px; animation: glisse .3s ease; }
.message.success { background: var(--vert-fonce); }
.message.error { background: #c62828; }
.message.warning { background: #b45f00; }
@keyframes glisse { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.vide { text-align: center; padding: 34px 16px; color: var(--gris); }
.vide .lucide { width: 38px; height: 38px; color: var(--gris-clair); margin-bottom: 8px; }

/* ==========================================================================
   VITRINE (reprise de l'affiche)
   ========================================================================== */
.vitrine { background: #eef1f5; }
.v-page { max-width: 1320px; margin: 0 auto; padding: 14px; display: grid; gap: 12px;
  grid-template-columns: .95fr 1.27fr .82fr; grid-template-areas:
  "hero solution solution"
  "client resto livreur"
  "pourquoi securite pont"; }
.v-bloc { border-radius: 18px; overflow: hidden; position: relative; }
.v-hero { grid-area: hero; background: radial-gradient(120% 140% at 80% 30%, #2a1b12 0%, #120d0b 55%, #0b0a0a 100%); color: #fff; padding: 26px 26px 22px; min-height: 250px; }
.v-hero .logo { font-size: 64px; align-items: flex-start; }
.v-hero .accroche { margin-top: 14px; font-size: 18px; max-width: 240px; color: #f2f2f2; position: relative; z-index: 2; }
.v-hero .burger { position: absolute; right: 0; top: 0; height: 100%; width: 52%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
.v-puces { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; position: relative; z-index: 2; }
.v-puce { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.v-puce i { width: 30px; height: 30px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 8px; display: grid; place-items: center; }
.v-puce .lucide { width: 16px; height: 16px; }
.v-puce:nth-child(1) .lucide { color: var(--orange-vif); }
.v-puce:nth-child(2) .lucide { color: var(--rouge-vif); fill: var(--rouge-vif); }
.v-puce:nth-child(3) .lucide { color: var(--orange-vif); }
.v-solution { grid-area: solution; background: linear-gradient(180deg, #fff, #f6f8fb); padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.v-solution h1 { font-size: 34px; font-weight: 700; letter-spacing: -.5px; }
.v-solution .sous { color: #5b6270; font-size: 17px; margin-top: 8px; }
.v-solution .sous b { color: var(--orange); margin: 0 4px; }
.v-stats { display: flex; gap: 10px; }
.v-stat { background: #f2f4f7; border-radius: 14px; padding: 16px 14px; width: 150px; text-align: center; font-size: 12.5px; color: #3d4350; }
.v-stat .grand { font-size: 30px; font-weight: 800; color: var(--orange-vif); line-height: 1; }
.v-stat .lucide { width: 32px; height: 32px; margin: 0 auto 8px; display: block; }
.v-col { padding: 22px 20px 20px; }
.v-col-titre { display: flex; gap: 12px; align-items: center; }
.v-app-icone { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.v-app-icone .lucide { width: 28px; height: 28px; }
.v-col-titre h2 { font-size: clamp(17px, 1.45vw, 21px); font-weight: 700; }
.v-col-titre p { font-size: 13px; }
.v-col-titre p { font-size: 13.5px; color: #555c69; }
.v-liste { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; position: relative; z-index: 2; }
.v-liste li { display: flex; gap: 10px; align-items: center; }
.v-liste .ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.v-liste .ic .lucide { width: 14px; height: 14px; }
.v-client { grid-area: client; background: linear-gradient(180deg, #fde9ec 0%, #fff4f2 60%, #fff 100%); }
.v-client .v-app-icone { background: linear-gradient(135deg, #ff6a3d, #e5322d); }
.v-client .ic { background: #ffe1e1; color: var(--rouge); }
.v-client .scene { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 6px; margin-top: 10px; min-height: 360px; position: relative; }
.v-client .cliente { width: 140px; border-radius: 0 0 0 60px; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.v-stores { position: absolute; left: 86px; top: 10px; display: flex; flex-direction: column; gap: 7px; z-index: 3; }
.store { display: flex; align-items: center; gap: 6px; background: #111; color: #fff; border-radius: 8px; padding: 5px 9px 5px 7px; font-size: 8px; line-height: 1.1; width: max-content; }
.store b { display: block; font-size: 11px; font-weight: 600; white-space: nowrap; }
.store .lucide { width: 16px; height: 16px; flex: none; }
.v-client .telephone { width: 172px; }
.v-resto { grid-area: resto; background: #fff; padding: 0; }
.v-resto-haut { background: linear-gradient(180deg, #f2fbf6, #fff); padding: 22px 22px 6px; position: relative; }
.v-resto .v-app-icone { background: linear-gradient(135deg, #36c27b, #149454); }
.v-resto-haut .v-col-titre { position: relative; z-index: 2; max-width: calc(100% - 150px); }
.v-resto .chef { position: absolute; right: 0; top: 0; width: 170px; height: 115px; object-fit: cover; z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.v-resto .ic { background: var(--vert-doux); color: var(--vert); }
.v-resto-corps { display: grid; grid-template-columns: minmax(190px, .95fr) 1.25fr; gap: 12px; padding: 0 16px 0 22px; align-items: start; }
.v-resto-corps .v-liste { font-size: 12.5px; gap: 9px; }
.v-resto-corps .ordi { margin-top: 26px; }
.v-zero { margin: 14px 0 0; background: linear-gradient(135deg, #1fa463, #13854d); color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.v-zero .grand { font-size: 30px; font-weight: 800; line-height: 1; }
.v-zero p { font-size: 10.5px; }
.v-zero b { font-size: 11.5px; line-height: 1.2; display: block; }
.v-livreur { grid-area: livreur; background: linear-gradient(180deg, #fff1e3 0%, #fff8f1 70%, #fff); }
.v-livreur .v-app-icone { background: linear-gradient(135deg, #ffa340, #f07800); }
.v-livreur .ic { background: #ffe9d2; color: var(--orange-vif); }
.v-livreur .scene { display: grid; grid-template-columns: 150px 1fr; gap: 8px; margin-top: 8px; align-items: start; }
.v-livreur .livreur-photo { width: 150px; border-radius: 12px; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent); }
.v-sombre { background: linear-gradient(160deg, #0f1626, #0a0f1c); color: #fff; padding: 22px 24px; }
.v-pourquoi { grid-area: pourquoi; }
.v-securite { grid-area: securite; }
.v-pont { grid-area: pont; background: #0a0f1c; min-height: 150px; }
.v-pont { position: relative; overflow: hidden; }
.v-pont img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.v-pont::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,10,22,.85), rgba(5,10,22,.35) 45%, transparent 70%); z-index: 1; }
.v-pont .pont-texte { position: absolute; inset-inline-start: 28px; top: 50%; transform: translateY(-50%); z-index: 2; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.v-pont .pont-texte .logo { font-size: 34px; margin-bottom: 6px; }
.v-pont .pont-texte b { font-size: 20px; }
.v-pont .pont-texte span { font-size: 14px; opacity: .9; }
[dir="rtl"] .v-pont img { transform: scaleX(-1); }
[dir="rtl"] .v-pont::before { background: linear-gradient(270deg, rgba(5,10,22,.85), rgba(5,10,22,.35) 45%, transparent 70%); }
.v-sombre h3 { font-size: 19px; font-weight: 700; margin-bottom: 16px; }
.v-raisons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; font-size: 12.5px; }
.v-raisons div, .v-garanties div { display: flex; align-items: center; gap: 9px; }
.v-raisons i, .v-garanties i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.v-garanties { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; font-size: 11.5px; text-align: center; }
.v-garanties div { flex-direction: column; }
.v-garanties i { width: 40px; height: 40px; border-radius: 50%; }
.v-nav { max-width: 1320px; margin: 0 auto; padding: 12px 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.v-nav .logo { font-size: 30px; }
.v-nav nav { display: flex; gap: 8px; flex-wrap: wrap; }
.v-pied { max-width: 1320px; margin: 0 auto; padding: 18px 14px 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--gris); font-size: 13px; }

/* Formules SaaS (affiche + pages) */
.formules-tete { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 10px; }
.formules-tete h3 { font-size: 17px; font-weight: 700; }
.bascule { display: inline-flex; background: #f0f2f5; border-radius: 999px; padding: 3px; font-size: 12px; }
.bascule button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.bascule button.on { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.bascule button.on.annuel, .bascule .remise { background: var(--vert); color: #fff; }
.bascule .remise { border-radius: 999px; padding: 1px 6px; margin-left: 4px; font-size: 10.5px; }
.formules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.formule { border-radius: 14px; overflow: hidden; border: 1px solid var(--ligne); background: #fff; display: flex; flex-direction: column; position: relative; }
.formule-tete { padding: 12px 14px; }
.formule-tete h4 { font-size: 20px; font-weight: 700; }
.formule-tete .prix { font-size: 16.5px; font-weight: 800; margin-top: 2px; white-space: nowrap; }
.formule-tete .prix small { font-size: 11px; font-weight: 500; }
.formule-tete .annuel-txt { font-size: 11.5px; opacity: .85; }
.formule ul { list-style: none; margin: 0; padding: 10px 14px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; flex: 1; }
.formule li { display: flex; gap: 7px; align-items: center; }
.formule li .lucide { width: 15px; height: 15px; flex: none; }
.formule .btn { margin: 0 12px 12px; }
.f-basic .formule-tete { background: #f2fbf6; }
.f-basic h4, .f-basic .prix { color: var(--vert-fonce); }
.f-basic li .lucide { color: var(--vert); }
.f-pro .formule-tete { background: linear-gradient(135deg, #1e7be0, #1253a8); color: #fff; }
.f-pro li .lucide { color: var(--bleu); }
.f-business .formule-tete { background: linear-gradient(135deg, #8e3cc4, #5b1588); color: #fff; }
.f-business li .lucide { color: var(--violet); }
.populaire { position: absolute; right: 0; top: 0; background: var(--jaune); color: #4a3200; font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-bottom-left-radius: 10px; }
.formule.courante { outline: 3px solid var(--orange); }

/* ---------- Maquettes (téléphone et ordinateur) ---------- */
.telephone { width: 190px; background: #111; border-radius: 28px; padding: 7px; box-shadow: var(--ombre-forte); flex: none; }
.telephone .ecran { background: #fff; border-radius: 22px; overflow: hidden; height: 380px; font-size: 8.5px; position: relative; }
.telephone .barre { display: flex; justify-content: space-between; padding: 6px 12px 2px; font-weight: 600; font-size: 8px; }
.ordi { background: #20242c; border-radius: 12px 12px 4px 4px; padding: 6px; box-shadow: var(--ombre-forte); margin-top: 18px; }
.ordi .ecran { background: #fff; border-radius: 6px; display: grid; grid-template-columns: 74px 1fr; height: 300px; overflow: hidden; font-size: 8px; }
.ordi .menu { background: var(--sidebar); color: #cfd3da; padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; }
.ordi .menu span { display: flex; gap: 4px; align-items: center; padding: 3px 4px; border-radius: 4px; }
.ordi .menu span.on { background: rgba(255,255,255,.08); color: #fff; }
.ordi .menu .lucide { width: 9px; height: 9px; }
.ordi .contenu { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.mini-carte { border: 1px solid var(--ligne); border-radius: 6px; padding: 6px 7px; }
.mini-barres { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.mini-barres span { flex: 1; background: var(--vert); border-radius: 2px 2px 0 0; }

/* ==========================================================================
   APPLICATION CLIENT (mobile d'abord)
   ========================================================================== */
.app { --principal: var(--rouge); background: #fff; min-height: 100vh; }
.app-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff; position: relative; padding-bottom: 76px; box-shadow: 0 0 40px rgba(0,0,0,.05); }
.app-entete { padding: 14px 16px 6px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; z-index: 20; }
.app-entete .logo { font-size: 26px; }
.app-entete .actions { display: flex; gap: 6px; align-items: center; }
.icone-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--fond); position: relative; border: 0; cursor: pointer; }
.pastille { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--rouge); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.app-zone { padding: 0 16px; }
.lieu { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; margin: 4px 0 10px; }
.lieu .lucide { color: var(--rouge); width: 17px; height: 17px; }
.recherche { display: flex; align-items: center; gap: 8px; background: var(--fond); border-radius: 12px; padding: 0 12px; }
.recherche input { border: 0; background: none; padding: 12px 0; width: 100%; outline: none; }
.recherche .lucide { color: var(--gris); }
.pilules { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.pilules::-webkit-scrollbar { display: none; }
.pilule { padding: 7px 15px; border-radius: 999px; background: var(--fond); font-size: 13px; font-weight: 500; white-space: nowrap; border: 0; cursor: pointer; }
.pilule.on { background: var(--principal); color: #fff; }
.banniere { margin-top: 12px; border-radius: 16px; background: linear-gradient(110deg, #1b1210 0%, #2b1a12 45%, #3a2416 100%); color: #fff; display: grid; grid-template-columns: 1fr 44%; overflow: hidden; min-height: 150px; }
.banniere .txt { padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.banniere h2 { font-size: 22px; font-weight: 800; line-height: 1.1; }
.banniere .btn { background: var(--orange-vif); align-self: flex-start; padding: 8px 14px; font-size: 13px; margin-top: 6px; }
.banniere img { width: 100%; height: 100%; object-fit: cover; }
.section-titre { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 10px; }
.section-titre h3 { font-size: 16.5px; font-weight: 700; }
.section-titre a { font-size: 13px; color: var(--rouge); font-weight: 500; }
.defile { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.defile::-webkit-scrollbar { display: none; }
.resto-carte { min-width: 200px; width: 200px; }
.resto-carte .visuel, .visuel { position: relative; height: 112px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #ffe0cc, #ffc2a6); display: grid; place-items: center; font-size: 46px; }
.visuel img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.visuel .badge-promo { position: absolute; left: 8px; top: 8px; background: var(--rouge); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 7px; }
.visuel .ferme { position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.resto-carte h4, .resto-ligne h4 { font-size: 14.5px; font-weight: 600; margin-top: 7px; }
.meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--gris); flex-wrap: wrap; }
.meta .etoile { color: #f5a300; font-weight: 600; }
.resto-ligne { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); }
.resto-ligne .visuel { height: 84px; font-size: 34px; }
.resto-ligne h4 { margin-top: 2px; }
.categories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.categorie { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; min-width: 62px; }
.categorie span { width: 58px; height: 58px; border-radius: 50%; background: #fff4ee; display: grid; place-items: center; font-size: 28px; box-shadow: inset 0 0 0 1px #ffe2d3; }
.categorie.on span { box-shadow: inset 0 0 0 2px var(--rouge); }
.offre { min-width: 260px; border-radius: 16px; padding: 14px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.offre:nth-child(3n+1) { background: linear-gradient(120deg, #e53935, #ff7043); }
.offre:nth-child(3n+2) { background: linear-gradient(120deg, #f57c00, #ffb300); }
.offre:nth-child(3n) { background: linear-gradient(120deg, #1fa463, #66bb6a); }
.offre .grand { font-size: 26px; font-weight: 800; }
.offre .emoji { font-size: 40px; }
.nav-bas { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid var(--ligne); display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); z-index: 30; }
.nav-bas a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--gris); position: relative; }
.nav-bas a.actif { color: var(--principal); font-weight: 600; }
.nav-bas .lucide { width: 22px; height: 22px; }
.nav-bas .pastille { right: 22%; top: -4px; }
/* page restaurant */
.couverture { height: 190px; position: relative; background: linear-gradient(135deg, #ffd3bd, #ff9e7a); display: grid; place-items: center; font-size: 70px; }
.couverture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.couverture .icone-btn { position: absolute; top: 14px; background: rgba(255,255,255,.92); }
.couverture .retour { left: 14px; }
.couverture .fav { right: 14px; }
.resto-entete { background: #fff; border-radius: 20px 20px 0 0; margin-top: -20px; position: relative; padding: 18px 16px 6px; }
.resto-entete h1 { font-size: 22px; font-weight: 700; }
.infos-resto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.infos-resto div { background: var(--fond); border-radius: 12px; padding: 8px; text-align: center; font-size: 11.5px; color: var(--gris); }
.infos-resto b { display: block; color: var(--texte); font-size: 13.5px; }
.onglets-menu { position: sticky; top: 0; background: #fff; z-index: 10; padding: 8px 0; }
.plat { display: grid; grid-template-columns: 1fr 96px; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
.plat h4 { font-size: 14.5px; font-weight: 600; }
.plat p { font-size: 12.5px; color: var(--gris); margin: 3px 0 6px; }
.plat .prix { font-weight: 700; }
.plat .visuel { height: 88px; font-size: 38px; border-radius: 12px; }
.plat .ajout { position: absolute; right: 6px; bottom: 6px; z-index: 2; }
.plat.indispo { opacity: .45; }
.compteur { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15); padding: 3px; font-size: 14px; line-height: 1; }
.compteur button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--rouge); color: #fff; display: grid; place-items: center; cursor: pointer; font-weight: 700; font-size: 17px; line-height: 1; padding: 0; }
.compteur.vide { gap: 0; }
.compteur.vide button[data-delta="-1"], .compteur.vide span { display: none; }
.compteur span { min-width: 14px; text-align: center; font-weight: 700; font-size: 13px; }
.barre-panier { position: fixed; left: 50%; transform: translateX(-50%); bottom: 74px; width: calc(100% - 24px); max-width: 456px; background: var(--rouge); color: #fff; border-radius: 14px; padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; box-shadow: var(--ombre-forte); z-index: 25; }
.recap { background: var(--fond); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.recap .total { font-size: 17px; font-weight: 800; border-top: 1px dashed #cfd3da; padding-top: 10px; }
.choix { display: grid; gap: 8px; }
.choix.trois { grid-template-columns: repeat(3, 1fr); }
.choix.deux { grid-template-columns: repeat(2, 1fr); }
.choix label { border: 1.5px solid var(--ligne); border-radius: 12px; padding: 10px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.choix input { display: none; }
.choix input:checked + label, .choix label:has(input:checked) { border-color: var(--principal); background: color-mix(in srgb, var(--principal) 8%, #fff); color: var(--principal); }
.suivi-etapes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.suivi-etapes li { display: flex; gap: 12px; position: relative; padding-bottom: 18px; font-size: 14px; color: var(--gris-clair); }
.suivi-etapes li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--ligne); }
.suivi-etapes li:last-child::before { display: none; }
.suivi-etapes .point { width: 24px; height: 24px; border-radius: 50%; background: var(--ligne); flex: none; display: grid; place-items: center; color: #fff; z-index: 1; }
.suivi-etapes .point .lucide { width: 13px; height: 13px; }
.suivi-etapes li.fait { color: var(--texte); }
.suivi-etapes li.fait .point { background: var(--vert); }
.suivi-etapes li.fait::before { background: var(--vert); }
.suivi-etapes li.actuel { font-weight: 700; }
.suivi-etapes li.actuel .point { background: var(--rouge); box-shadow: 0 0 0 5px #fde2e2; }
.code-livraison { font-size: 30px; letter-spacing: 8px; font-weight: 800; color: var(--rouge); }
.carte-geo { height: 230px; border-radius: 14px; overflow: hidden; background: #e8eef3; z-index: 1; }
.commande-ligne { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.etoiles-choix { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.etoiles-choix input { display: none; }
.etoiles-choix label { font-size: 30px; color: #d5d8de; cursor: pointer; }
.etoiles-choix input:checked ~ label, .etoiles-choix label:hover, .etoiles-choix label:hover ~ label { color: #f5a300; }
.profil-tete { display: flex; gap: 14px; align-items: center; padding: 8px 0 16px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #ff7a59, #e53935); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; }
.menu-liste a, .menu-liste button { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--ligne); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; text-align: left; font-size: 14.5px; }
.menu-liste .lucide:last-child { margin-left: auto; color: var(--gris-clair); }
.hors-ligne { display: none; background: #333; color: #fff; text-align: center; font-size: 12.5px; padding: 6px; }
body.offline .hors-ligne { display: block; }

/* ==========================================================================
   ESPACE RESTAURANT et MIRA ADMIN (tableau de bord à menu latéral sombre)
   ========================================================================== */
.dash { --principal: var(--vert); display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.dash.admin { --principal: var(--orange-vif); }
.dash-menu { background: var(--sidebar); color: #c9ced6; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.dash-menu .logo { font-size: 32px; margin: 0 auto 18px; }
.dash-menu a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-size: 14px; position: relative; }
.dash-menu a:hover { background: rgba(255,255,255,.05); color: #fff; }
.dash-menu a.actif { background: rgba(255,255,255,.09); color: #fff; font-weight: 600; }
.dash-menu a.actif::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--principal); }
.dash-menu .compte { background: var(--rouge); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: auto; }
.dash-menu .verrou { margin-left: auto; width: 14px; height: 14px; opacity: .5; }
.dash-menu .sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6f7684; padding: 14px 12px 4px; }
.dash-menu .bas { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.dash-corps { min-width: 0; }
.dash-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 28px; background: #fff; border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 15; }
.dash-haut h1 { font-size: 21px; font-weight: 700; }
.dash-haut p { font-size: 13px; color: var(--gris); }
.dash-haut .droite { display: flex; gap: 10px; align-items: center; }
.dash-contenu { padding: 24px 28px 40px; display: flex; flex-direction: column; gap: 18px; }
.burger-menu { display: none; }
.kpi { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px 18px; }
.kpi .libelle { font-size: 13px; color: var(--gris); display: flex; align-items: center; gap: 6px; }
.kpi .valeur { font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; }
.kpi .evol { font-size: 12.5px; font-weight: 600; color: var(--vert); }
.kpi .evol.baisse { color: var(--rouge); }
.kpi .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; float: right; }
.graph-barres { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding-top: 10px; }
.graph-barres .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; font-size: 12px; color: var(--gris); }
.graph-barres .barre { width: 100%; max-width: 40px; background: linear-gradient(180deg, #2ec27e, var(--vert)); border-radius: 6px 6px 0 0; position: relative; }
.graph-barres .barre:hover::after { content: attr(data-val); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--nuit); color: #fff; padding: 3px 7px; border-radius: 6px; font-size: 11px; white-space: nowrap; margin-bottom: 4px; }
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--ligne); }
.tableau td { padding: 12px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau-boite { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); overflow-x: auto; }
.carte-titre { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.carte-titre h2 { font-size: 16px; font-weight: 700; }
.vignette { width: 40px; height: 40px; border-radius: 10px; background: #fff1e8; display: grid; place-items: center; font-size: 20px; overflow: hidden; flex: none; }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.cmd-recente { display: grid; grid-template-columns: 54px 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ligne); font-size: 13.5px; }
.cmd-recente:last-child { border-bottom: 0; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; }
.kanban-col { background: #eef0f4; border-radius: 14px; padding: 10px; min-height: 200px; }
.kanban-col h3 { font-size: 13.5px; font-weight: 700; padding: 4px 6px 10px; display: flex; justify-content: space-between; }
.ticket { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.06); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.ticket.nouveau { animation: pulse 1.6s ease 3; border: 2px solid var(--orange-vif); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255,122,0,.2); } }
.ticket .lignes { color: var(--gris); }
.livreur-arrive { background: var(--orange-doux); color: #7a3d00; border-radius: 10px; padding: 9px 10px; }
.livreur-arrive .code-retrait { font-size: 17px; letter-spacing: 3px; color: var(--orange-vif); }
.qr-boite { display: grid; place-items: center; background: #fff; border-radius: 16px; padding: 16px; }
.qr-boite svg, .qr-boite img { width: 220px; height: 220px; }
.assistant-bulle { padding: 12px 14px; border-radius: 14px; max-width: 80%; font-size: 14px; }
.assistant-bulle.moi { background: var(--vert); color: #fff; align-self: flex-end; }
.assistant-bulle.ia { background: #f1f3f6; align-self: flex-start; white-space: pre-line; }
.alerte-bandeau { background: var(--orange-doux); color: #8a4b00; padding: 12px 16px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.alerte-bandeau.rouge { background: #fdeaea; color: #a31d1d; }
.formulaire-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.formulaire-ligne .champ { margin: 0; }

/* ==========================================================================
   APPLICATION LIVREUR
   ========================================================================== */
.rider { --principal: var(--orange-vif); background: #fff; }
.rider .app-shell { background: #f7f8fa; }
.statut-dispo { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; }
.statut-dispo.on { background: var(--vert); color: #fff; }
.statut-dispo.off { background: #e5e7eb; color: #4b5563; }
.statut-dispo .rond { width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.rider .carte-geo { height: 300px; border-radius: 0; }
.mission { background: #fff; border-radius: 18px; box-shadow: var(--ombre-forte); padding: 16px; margin: -40px 12px 0; position: relative; z-index: 5; }
.mission .montant { font-size: 28px; font-weight: 800; }
.mission .trajet { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; font-size: 13.5px; }
.mission .trajet div { display: flex; gap: 8px; align-items: flex-start; }
.mini-barres-v { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.mini-barres-v span { width: 7px; background: var(--vert); border-radius: 2px; }
.revenus-carte { background: #fff; border-radius: 16px; padding: 16px; margin: 12px; box-shadow: var(--ombre); }
.revenus-carte .valeur { font-size: 26px; font-weight: 800; }

/* ==========================================================================
   Pages d'authentification
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-visuel { background: radial-gradient(120% 120% at 70% 20%, #2a1b12, #0b0a0a); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-visuel .logo { font-size: 56px; align-items: flex-start; }
.auth-visuel img { position: absolute; right: -40px; bottom: 40px; width: 70%; opacity: .95; border-radius: 20px; }
.auth-visuel p { position: relative; z-index: 2; font-size: 20px; max-width: 320px; }
.auth-form { display: grid; place-items: center; padding: 30px 20px; }
.auth-form form, .auth-form .boite { width: min(100%, 420px); }
.auth-form h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.auth-form .sous { color: var(--gris); margin-bottom: 22px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .v-page { grid-template-columns: 1fr 1fr; grid-template-areas: "hero hero" "solution solution" "resto resto" "client livreur" "pourquoi securite" "pont pont"; }
  .grille-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash-menu { position: fixed; left: 0; top: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; }
  .dash-menu.ouvert { transform: none; box-shadow: var(--ombre-forte); }
  .burger-menu { display: grid; }
  .dash-haut { padding: 12px 16px; }
  .dash-contenu { padding: 16px; }
  .grille-3, .grille-2 { grid-template-columns: 1fr !important; }
  .dash-haut { flex-wrap: wrap; }
  .dash-haut .droite { flex-wrap: wrap; }
  .auth { grid-template-columns: 1fr; }
  .auth-visuel { display: none; }
  .kanban { grid-template-columns: repeat(4, 260px); }
}
@media (max-width: 720px) {
  .v-page { grid-template-columns: 1fr; grid-template-areas: "hero" "solution" "client" "resto" "livreur" "pourquoi" "securite" "pont"; padding: 10px; }
  .v-solution { flex-direction: column; align-items: flex-start; }
  .v-solution h1 { font-size: 26px; }
  .v-stats { width: 100%; }
  .v-stat { width: auto; flex: 1; }
  .v-hero .logo { font-size: 48px; }
  .v-resto-corps { grid-template-columns: 1fr; }
  .formules { grid-template-columns: 1fr; }
  .v-garanties { grid-template-columns: repeat(3, 1fr); }
  .v-raisons { grid-template-columns: repeat(2, 1fr); }
  .grille-4 { grid-template-columns: 1fr 1fr; }
  .v-nav nav .btn-clair:not(.v-compte) { display: none; }
  .v-nav nav .v-compte { padding: 8px 10px; }
  .v-nav nav .v-compte span { display: none; }
}

/* ==========================================================================
   Langues : sélecteur FR / ع / EN et affichage de droite à gauche (arabe)
   ========================================================================== */
html[lang="ar"] body, html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] select, html[lang="ar"] textarea {
  font-family: "Noto Kufi Arabic", "Poppins", system-ui, sans-serif;
}
html[lang="ar"] body { line-height: 1.6; }
.langues { display: inline-flex; gap: 2px; background: var(--fond); border-radius: 999px; padding: 3px; }
.langues button { border: 0; background: none; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--gris); line-height: 1.3; }
.langues button.on { background: #fff; color: var(--texte); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.langues.sombre { background: rgba(255,255,255,.08); }
.langues.sombre button { color: #aeb4be; }
.langues.sombre button.on { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.code-livraison, .code-retrait, .ltr { direction: ltr; unicode-bidi: isolate; }

[dir="rtl"] .dash-menu a.actif::before { left: auto; right: -12px; border-radius: 4px 0 0 4px; }
[dir="rtl"] .v-hero .burger { right: auto; left: 0; -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 35%); mask-image: linear-gradient(270deg, transparent 0, #000 35%); }
[dir="rtl"] .v-resto .chef { right: auto; left: 0; -webkit-mask-image: linear-gradient(270deg, transparent, #000 30%); mask-image: linear-gradient(270deg, transparent, #000 30%); }
[dir="rtl"] .v-stores { left: auto; right: 86px; }
[dir="rtl"] .pastille { right: auto; left: -4px; }
[dir="rtl"] .nav-bas .pastille { right: auto; left: 22%; }
[dir="rtl"] .couverture .retour { left: auto; right: 14px; }
[dir="rtl"] .couverture .fav { right: auto; left: 14px; }
[dir="rtl"] .plat .ajout { right: auto; left: 6px; }
[dir="rtl"] .visuel .badge-promo { left: auto; right: 8px; }
[dir="rtl"] .populaire { right: auto; left: 0; border-radius: 0 0 10px 0; }
[dir="rtl"] .suivi-etapes li::before { left: auto; right: 11px; }
[dir="rtl"] .kpi .ic { float: left; }
[dir="rtl"] .tableau th { text-align: right; }
[dir="rtl"] .lucide-arrow-left, [dir="rtl"] .lucide-chevron-right, [dir="rtl"] .lucide-send { transform: scaleX(-1); }
@media (max-width: 860px) {
  [dir="rtl"] .dash-menu { left: auto; right: 0; transform: translateX(100%); }
  [dir="rtl"] .dash-menu.ouvert { transform: none; }
}
.auth-form { position: relative; }

/* Pages légales */
.legal { max-width: 860px; margin: 18px auto 60px; padding: 28px 30px; line-height: 1.7; }
.legal h1 { font-size: 28px; margin-bottom: 4px; }
.legal h2 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: #2f3540; font-size: 15px; }
.legal ul { padding-inline-start: 22px; margin: 6px 0; }
.legal .maj { color: var(--gris); font-size: 13px; margin-bottom: 18px; }
@media (max-width: 720px) { .legal { margin: 10px; padding: 20px 16px; } }

/* Tableau de bord restaurant : bannière, cartes colorées, plat vedette, vitrine */
.resto-hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 200px; padding: 26px 28px; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap;
  background: radial-gradient(120% 140% at 75% 30%, #2a1b12, #0b0a0a); box-shadow: var(--ombre-forte); }
.resto-hero > * { position: relative; z-index: 1; }
.resto-hero .rh-photo { position: absolute; z-index: 0; inset-inline-end: 0; top: 0; height: 100%; width: 58%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
[dir="rtl"] .resto-hero .rh-photo { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 45%); mask-image: linear-gradient(270deg, transparent 0, #000 45%); }
.resto-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 55%); z-index: 0; pointer-events: none; }
.resto-hero .rh-texte { display: flex; gap: 16px; align-items: center; }
.resto-hero .rh-logo { width: 68px; height: 68px; border-radius: 18px; background: var(--principal, var(--vert)); display: grid; place-items: center; font-size: 30px; font-weight: 800; overflow: hidden; flex: none; border: 3px solid rgba(255,255,255,.85); }
.resto-hero .rh-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.resto-hero h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.resto-hero p { color: #e8e2dc; font-size: 14px; margin-top: 2px; }
.rh-puces { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rh-puces span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.rh-puces span svg { width: 14px; height: 14px; }
.rh-puces span.on { background: rgba(31,164,99,.9); }
.rh-puces span.off { background: rgba(229,57,53,.9); }
.rh-puces span:has(svg.lucide-star) svg { color: #ffc531; fill: #ffc531; }
.resto-hero .rh-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.resto-hero .rh-clair { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.resto-hero .rh-clair:hover { background: rgba(255,255,255,.26); }

.kpi { position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
a.kpi:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.kpi::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--k); }
.kpi .ic { background: var(--k-doux); color: var(--k); }
.kpi .valeur { color: var(--texte, #111); }
.k-vert { --k: var(--vert); --k-doux: var(--vert-doux); background: linear-gradient(160deg, #fff 55%, #eefaf3); }
.k-bleu { --k: var(--bleu); --k-doux: var(--bleu-doux); background: linear-gradient(160deg, #fff 55%, #eef4ff); }
.k-rouge { --k: var(--rouge); --k-doux: #fdeaea; background: linear-gradient(160deg, #fff 55%, #fff1f1); }
.k-orange { --k: var(--orange-vif); --k-doux: var(--orange-doux); background: linear-gradient(160deg, #fff 55%, #fff6ec); }
.k-alerte .ic { animation: k-sonne 1.6s ease-in-out infinite; }
@keyframes k-sonne { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-12deg); } 85% { transform: rotate(12deg); } }

.plat-vedette { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.plat-vedette .pv-photo { position: relative; height: 150px; background: radial-gradient(120% 120% at 70% 20%, #3a2416, #120c09); display: grid; place-items: center; }
.plat-vedette .pv-photo img { width: 100%; height: 100%; object-fit: cover; }
.plat-vedette .pv-emoji { font-size: 64px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.plat-vedette .pv-badge { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(255,122,0,.95); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.plat-vedette .pv-badge svg { width: 14px; height: 14px; }
.plat-vedette .pv-corps { padding: 16px 18px 18px; }
.plat-vedette .pv-corps > b { font-size: 18px; }

.vitrine-plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.vp { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.vp-photo { position: relative; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: linear-gradient(145deg, #fff3e6, #ffe1c2); display: grid; place-items: center; margin-bottom: 6px; transition: transform .2s; }
.vp:hover .vp-photo { transform: scale(1.03); }
.vp-photo img { width: 100%; height: 100%; object-fit: cover; }
.vp-photo > span:first-child { font-size: 42px; }
.vp-pop { position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--rouge); color: #fff; display: grid; place-items: center; }
.vp-pop svg { width: 14px; height: 14px; }
.vp-prix { color: var(--vert); font-weight: 700; }
@media (max-width: 720px) {
  .resto-hero { padding: 20px 18px; min-height: 0; }
  .resto-hero h2 { font-size: 21px; }
  .resto-hero .rh-logo { width: 54px; height: 54px; font-size: 24px; }
  .resto-hero .rh-photo { width: 100%; opacity: .4; -webkit-mask-image: none; mask-image: none; }
}

/* Écran cuisine (KDS) */
.kds { min-height: 100vh; color: #fff; padding: 16px 18px 24px; background: radial-gradient(90% 60% at 85% 0, rgba(255,122,0,.14), transparent 60%), radial-gradient(70% 50% at 0 100%, rgba(31,164,99,.10), transparent 60%), #0d0f13; }
.kds-haut { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.kds-haut .logo { font-size: 26px; }
.kds-titre { display: flex; flex-direction: column; line-height: 1.15; padding-inline-start: 12px; border-inline-start: 1px solid rgba(255,255,255,.15); }
.kds-titre b { font-size: 18px; }
.kds-titre span { font-size: 13px; color: #9aa3b2; }
.kds-icone { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.1); cursor: pointer; }
.kds-icone:hover { background: rgba(255,255,255,.14); }
.kds-heure { font-size: 34px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; direction: ltr; }
.kds-compteurs { display: flex; gap: 8px; flex-wrap: wrap; }
.kds-compteurs span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.kds-compteurs span b { font-size: 18px; }
.kds-compteurs svg { width: 17px; height: 17px; color: var(--kc); }
.kc-bleu { --kc: #4d9bff; } .kc-orange { --kc: #ff8a1f; } .kc-vert { --kc: #2fd182; } .kc-gris { --kc: #c9ced6; }

.kds-colonnes { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.kds-col { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 18px; padding: 12px; min-height: calc(100vh - 120px); border-top: 4px solid var(--kc); }
.kds-col h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; padding: 4px 4px 12px; }
.kds-col-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--kc) 20%, transparent); color: var(--kc); }
.kds-col-ic svg { width: 19px; height: 19px; }
.kds-nb { margin-inline-start: auto; min-width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--kc); color: #0d0f13; font-weight: 800; font-size: 16px; padding: 0 8px; }
.kds-tickets { display: flex; flex-direction: column; gap: 12px; }

.kds-ticket { background: linear-gradient(180deg, #232934, #1c212a); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(255,255,255,.08); border-inline-start: 5px solid var(--kc); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.kt-haut { display: flex; justify-content: space-between; align-items: center; }
.kt-num { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.kt-minuteur { display: inline-flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 5px 11px; border-radius: 10px; background: rgba(47,209,130,.15); color: #5fe3a1; }
.kt-minuteur svg { width: 18px; height: 18px; }
.kds-ticket.attention .kt-minuteur { background: rgba(255,138,31,.18); color: #ffad5c; }
.kds-ticket.retard .kt-minuteur { background: #e53935; color: #fff; animation: kt-clignote 1.2s ease-in-out infinite; }
.kds-ticket.retard { border-color: rgba(229,57,53,.6); }
@keyframes kt-clignote { 50% { opacity: .55; } }
.kt-mode { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #b9c1cd; }
.kt-mode svg { width: 17px; height: 17px; color: var(--kc); }
.kt-lignes { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 8px; }
.kt-lignes li { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; line-height: 1.2; }
.kt-qte { min-width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #0d0f13; font-size: 20px; font-weight: 800; flex: none; }
.kt-emoji { font-size: 22px; }
.kt-note { display: flex; gap: 8px; align-items: flex-start; background: #fff3b0; color: #4a3b00; border-radius: 10px; padding: 9px 11px; font-size: 15px; font-weight: 600; }
.kt-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.kt-livreur { display: flex; gap: 8px; align-items: center; background: rgba(255,138,31,.2); color: #ffc58a; border-radius: 10px; padding: 9px 11px; font-weight: 600; font-size: 15px; }
.kt-livreur svg { width: 18px; height: 18px; }
.kt-bouton { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; padding: 14px; font-size: 17px; font-weight: 800; cursor: pointer; color: #fff; font-family: inherit; background: var(--kb, var(--orange-vif)); transition: transform .1s, filter .15s; }
.kt-bouton:hover { filter: brightness(1.08); }
.kt-bouton:active { transform: scale(.98); }
.kc-bleu .kt-bouton { --kb: linear-gradient(135deg, #ff9a2e, #ff6a00); }
.kc-orange .kt-bouton { --kb: linear-gradient(135deg, #2fd182, #13854d); }
.kc-vert .kt-bouton { --kb: linear-gradient(135deg, #4d9bff, #1565c0); }
.kds-ticket.nouveau { animation: kt-arrive 1s ease 4; }
@keyframes kt-arrive { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--kc) 45%, transparent), 0 10px 24px rgba(0,0,0,.35); } }
.kds-vide { text-align: center; padding: 50px 10px; color: #5d6676; }
.kds-vide svg { width: 44px; height: 44px; margin-bottom: 8px; opacity: .6; }
@media (max-width: 960px) {
  .kds-colonnes { grid-template-columns: repeat(3, 300px); overflow-x: auto; padding-bottom: 6px; }
  .kds-col { min-height: 0; }
  .kds-heure { font-size: 26px; }
}

/* Carte : étiquettes en épingle */
.epingle { position: absolute; transform: translate(-50%, calc(-100% - 8px)); background: var(--c); color: #fff; border-radius: 999px; padding: 4px 10px; font: 600 11.5px Poppins, system-ui, sans-serif; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.epingle::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: var(--c); }

/* Application livreur */
.rider .app-shell { background: #f6f7f9; }
.rd-hero { margin: 4px 12px 12px; padding: 16px; border-radius: 22px; color: #fff; background: radial-gradient(120% 120% at 100% 0, #ffb347 0, transparent 55%), linear-gradient(135deg, #ff8a1f, #f06300); box-shadow: 0 14px 30px rgba(240,99,0,.3); display: flex; flex-direction: column; gap: 12px; }
.rd-bonjour { font-size: 19px; font-weight: 800; }
.rd-matricule { display: inline-block; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.22); padding: 2px 9px; border-radius: 999px; margin-top: 3px; }
.rd-note { display: inline-flex; align-items: center; gap: 5px; background: #fff; color: #7a3d00; font-weight: 800; padding: 6px 11px; border-radius: 999px; font-size: 14px; }
.rd-note svg { width: 15px; height: 15px; color: #ffb300; fill: #ffb300; }
.rd-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rd-chiffres a { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.rd-chiffres span { font-size: 12px; opacity: .9; }
.rd-chiffres b { font-size: 21px; font-weight: 800; }
.rd-dispo { width: 100%; display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.18); border: 0; border-radius: 16px; padding: 10px 12px; color: #fff; cursor: pointer; text-align: start; font-family: inherit; }
.rd-dispo b { display: block; font-size: 15px; }
.rd-dispo small { font-size: 12px; opacity: .85; }
.rd-interrupteur { width: 50px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.35); position: relative; flex: none; transition: background .2s; }
.rd-interrupteur span { position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: inset-inline-start .2s; }
.rd-dispo.on .rd-interrupteur { background: #1fa463; }
.rd-dispo.on .rd-interrupteur span { inset-inline-start: 25px; }
.rd-attente-verif { display: flex; gap: 8px; align-items: center; background: rgba(0,0,0,.2); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; }
.rd-carte { margin: 0 12px; border-radius: 20px; overflow: hidden; box-shadow: var(--ombre); }
.rider .carte-geo { height: 250px; border-radius: 0; }

.mission { margin: -36px 12px 0; border-radius: 22px; padding: 16px; }
.mission.proposee { border: 2px solid var(--orange-vif); animation: rd-appel 1.4s ease-in-out infinite; }
@keyframes rd-appel { 50% { box-shadow: 0 0 0 7px rgba(255,122,0,.18), var(--ombre-forte); } }
.rd-nouvelle { display: inline-flex; align-items: center; gap: 7px; color: var(--orange-vif); font-size: 16px; }
.rd-nouvelle svg { animation: k-sonne 1.6s ease-in-out infinite; }
.rd-chrono { font-size: 12.5px; font-weight: 700; color: #7a3d00; background: var(--orange-doux); padding: 4px 10px; border-radius: 999px; }
.rd-barre-temps { height: 6px; background: #f1f2f4; border-radius: 3px; margin: 10px 0 2px; overflow: hidden; }
.rd-barre-temps span { display: block; height: 100%; background: linear-gradient(90deg, #ff7a00, #ffb347); border-radius: 3px; transition: width 1s linear; }
.rd-etapes { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.rd-etapes::before { content: ""; position: absolute; top: 16px; left: 12%; right: 12%; height: 3px; background: #e5e7eb; }
.rd-etapes li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--gris); position: relative; text-align: center; }
.rd-etapes li span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #eef0f3; color: #9aa1ac; border: 3px solid #fff; }
.rd-etapes li span svg { width: 16px; height: 16px; }
.rd-etapes li.fait span { background: var(--vert); color: #fff; }
.rd-etapes li.fait { color: var(--vert-fonce); font-weight: 600; }
.rd-etapes li.actuel span { background: var(--orange-vif); color: #fff; box-shadow: 0 0 0 4px rgba(255,122,0,.2); }
.rd-etapes li.actuel { color: var(--orange-vif); font-weight: 700; }
.rd-consigne { font-size: 17px; color: var(--texte); }
.rd-gain { margin: 10px 0 4px; }
.mission .montant { font-size: 32px; font-weight: 800; letter-spacing: -.5px; color: var(--vert-fonce); }
.rd-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rd-puces span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; background: #f3f4f6; padding: 5px 10px; border-radius: 999px; color: #374151; }
.rd-puces svg { width: 14px; height: 14px; }
.rd-puces .especes { background: #fff3e6; color: #8a4b00; }
.rd-puces .paye { background: var(--vert-doux); color: var(--vert-fonce); }
.rd-trajet { position: relative; margin: 14px 0; display: flex; flex-direction: column; gap: 14px; }
.rd-trajet::before { content: ""; position: absolute; top: 34px; bottom: 34px; inset-inline-start: 17px; border-inline-start: 2px dashed #d1d5db; }
.rd-etape-lieu { display: flex; align-items: center; gap: 12px; position: relative; }
.rd-point { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.rd-point svg { width: 18px; height: 18px; }
.resto .rd-point { background: var(--vert); }
.client .rd-point { background: var(--rouge); }
.rd-lieu { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-lieu b { font-size: 15px; }
.rd-lieu span { font-size: 12.5px; color: var(--gris); }
.rd-appel { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--vert-doux); color: var(--vert-fonce); flex: none; }
.rd-appel svg { width: 18px; height: 18px; }
.rd-choix { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.rd-accepter, .rd-refuser, .rd-gros { padding: 15px; font-size: 16px; }
.rd-refuser { color: var(--rouge); }
.rd-code { text-align: center; background: linear-gradient(135deg, #fff3e6, #ffe3c4); border: 2px dashed #ffb366; border-radius: 18px; padding: 14px; margin-bottom: 8px; color: #7a3d00; }
.rd-code .code-livraison { font-size: 44px; color: var(--orange-vif); margin: 4px 0; }
.rd-saisie-code { font-size: 26px; letter-spacing: 10px; text-align: center; direction: ltr; font-weight: 800; }
.rd-incident { margin-top: 12px; border-top: 1px solid var(--ligne); padding-top: 10px; }
.rd-incident summary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gris); cursor: pointer; }
.rd-incident summary svg { width: 15px; height: 15px; }
.rd-radar-carte { text-align: center; }
.rd-radar { position: relative; width: 84px; height: 84px; margin: 4px auto 10px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-doux); color: var(--orange-vif); }
.rd-radar > svg { width: 34px; height: 34px; position: relative; z-index: 1; }
.rd-radar > span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange-vif); animation: rd-onde 2.4s ease-out infinite; }
.rd-radar > span + span { animation-delay: 1.2s; }
.rd-radar.pause { background: #f1f2f4; color: var(--gris); }
@keyframes rd-onde { from { transform: scale(.7); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.revenus-carte { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; background: linear-gradient(135deg, #161c2c, #0e1320); color: #fff; border-radius: 20px; }
.revenus-carte .valeur { font-size: 28px; }
.revenus-carte .petit { color: #aab2c0; }
.rd-etiquette { font-size: 13px; color: #c9ced6; }
.revenus-carte .mini-barres-v span { width: 9px; background: linear-gradient(180deg, #ffb347, #ff7a00); border-radius: 3px 3px 0 0; }

.rd-titre { font-size: 22px; font-weight: 800; margin: 6px 0 12px; }
.rd-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.rd-tuiles.trois { grid-template-columns: repeat(3, 1fr); }
.rd-tuile { background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--t); min-width: 0; }
.rd-tuile svg { width: 20px; height: 20px; color: var(--t); margin-bottom: 4px; }
.rd-tuile b { font-size: 17px; font-weight: 800; }
.rd-tuile span { font-size: 12px; color: var(--gris); }
.rd-tuile.vert { --t: var(--vert); } .rd-tuile.orange { --t: var(--orange-vif); } .rd-tuile.rouge { --t: var(--rouge); } .rd-tuile.bleu { --t: var(--bleu); }
.rd-course, .rd-mouvement { display: flex; align-items: center; gap: 12px; padding: 12px; }
.rd-course { background: #fff; border-radius: 16px; box-shadow: var(--ombre); margin-bottom: 10px; }
.rd-mouvement { padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.rd-mouvement:last-child { border-bottom: 0; }
.rd-course-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.rd-course-ic svg { width: 19px; height: 19px; }
.rd-course-ic.vert { background: var(--vert-doux); color: var(--vert-fonce); }
.rd-course-ic.orange { background: var(--orange-doux); color: var(--orange-vif); }
.rd-course-ic.rouge { background: #fdeaea; color: var(--rouge); }
.rd-course-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; }
.rd-course-texte b { font-size: 14.5px; }
.rd-course-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rd-wallet { position: relative; overflow: hidden; color: #fff; border-radius: 22px; padding: 18px; background: radial-gradient(90% 120% at 100% 0, rgba(255,255,255,.25), transparent 55%), linear-gradient(135deg, #ff8a1f, #e05500); box-shadow: 0 14px 30px rgba(240,99,0,.3); display: flex; flex-direction: column; gap: 6px; }
.rd-wallet-solde { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.rd-wallet-matricule { font-size: 11px; letter-spacing: 2px; opacity: .8; margin-top: 4px; }
.rd-objectif { display: flex; gap: 14px; align-items: center; }
.rd-anneau { --p: 0; width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--vert) calc(min(var(--p), 100) * 1%), #e9ecef 0); }
.rd-anneau b { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: flex; align-items: baseline; justify-content: center; padding-top: 17px; direction: ltr; font-size: 19px; font-weight: 800; }
.rd-anneau small { font-size: 11px; color: var(--gris); }
.rd-profil { text-align: center; padding: 22px 12px 18px; margin: 0 -16px; background: radial-gradient(100% 120% at 50% 0, #ffb347, #ff7a00 55%, #f06300); color: #fff; border-radius: 0 0 28px 28px; }
.rd-profil .avatar { width: 84px; height: 84px; font-size: 34px; margin: 0 auto 8px; background: #fff; color: var(--orange-vif); border: 4px solid rgba(255,255,255,.5); }
.rd-profil h2 { font-size: 21px; font-weight: 800; }
.rd-badges { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.rd-badges span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.22); padding: 4px 10px; border-radius: 999px; }
.rd-badges span svg { width: 14px; height: 14px; }
.rd-badges .ok { background: #1fa463; }
.rd-badges .att { background: rgba(0,0,0,.25); }
