/* ==========================================================================
   market/place.css — page lieu /r/:slug, présentation façon Uber Eats.
   Mobile-first : tout est pensé pour 390px d'abord, le desktop (>900px)
   passe en 3 colonnes (catégories | catalogue | panier).
   ========================================================================== */
.ue { background: #fff; color: #111; max-width: 1280px; margin: 0 auto; }
/* iOS Safari peint le texte des <button> en bleu quand aucune couleur n'est
   fixée : on verrouille le noir partout (titres d'accordéon, steppers, etc.). */
.ue button { font: inherit; color: #111; }
.ue-loading { display: flex; gap: 8px; justify-content: center; padding: 80px 0; }
.ue-loading i { width: 10px; height: 10px; border-radius: 50%; background: #ddd; animation: ueblink 1s infinite; }
.ue-loading i:nth-child(2) { animation-delay: .2s; }
.ue-loading i:nth-child(3) { animation-delay: .4s; }
@keyframes ueblink { 50% { background: #111; } }

/* ---------- barre supérieure ---------- */
.ue-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0f0f0;
}
.ue-back { font-size:24px; line-height: 1; color: #111; text-decoration: none; padding: 4px 8px; margin-left: -8px; }
.ue-name { flex: 1; font-weight: 700; font-size:15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .2s; }
.ue-topbar.scrolled .ue-name { opacity: 1; }
.ue-search-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f4f4f4; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #111; }
.ue-search-btn svg { width: 20px; height: 20px; }

/* ---------- en-tête : slots chat + commande groupée (v1.8.408) ----------
   Le bouton chat (widget partagé) se monte dans .tcw-slot ; l'icône commande
   groupée (module partagé group-order.js) dans .grp-hdr-slot, colorée par la
   couleur principale du site web de la boutique (--ue-primary, posée par
   place.js depuis websites.color_primary ; repli #111). */
.ue-topbar .tcw-slot { display: inline-flex; align-items: center; flex: none; }
.ue-topbar .grp-hdr-slot { display: inline-flex; align-items: center; flex: none; }
.ue-topbar .grp-hdr-btn, header.nav .grp-hdr-btn { color: var(--ue-primary, #111); }
/* nav (desktop) : slots chat + groupe, masqués en mobile où la topbar
   boutique prend le relais. */
header.nav .tcw-slot { display: none; }
header.nav .grp-hdr-slot { display: none; }
@media (min-width: 901px) {
  header.nav .tcw-slot { display: inline-flex; align-items: center; }
  header.nav .grp-hdr-slot { display: inline-flex; align-items: center; }
}

/* ---------- hero ---------- */
.ue-hero { position: relative; }
.ue-cover { width: 100%; height: 210px; object-fit: cover; display: block; background: #eee; }
.ue-hero-body { padding: 16px 16px 4px; }
.ue-hero-body h1 { font-size:30px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -.5px; }
.ue-addr { color: #545454; font-size:12px; line-height: 1.45; }
.ue-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-size:12px; }
.ue-contact a { color: #111; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ue-contact a.tel { font-weight: 600; }
.ue-socials { display: inline-flex; gap: 10px; }
.ue-socials a { width: 30px; height: 30px; border-radius: 50%; background: #f4f4f4; display: inline-flex; align-items: center; justify-content: center; color: #111; }
.ue-socials svg { width: 16px; height: 16px; }
.ue-links { display: flex; gap: 22px; margin: 12px 0 4px; }
.ue-link { color: #111; font-weight: 600; font-size:13px; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- retrait / livraison ---------- */
.ue-fulfill { padding: 12px 16px 4px; }
/* 3 cartes de mode : toute la largeur, tailles identiques, coins arrondis uniformes. */
.ue-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ue-seg button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 76px; min-width: 0; padding: 10px 4px;
  border: 1.5px solid #e5e5e5; border-radius: 14px; background: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.25; text-align: center; color: #161616;
  cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
/* Sélectionné : contour/couleur uniquement, JAMAIS de changement de taille. */
.ue-seg button[aria-pressed="true"] { border-color: #161616; background: #161616; color: #fff; }
.ue-seg-ic { display: inline-flex; width: 22px; height: 22px; flex: none; }
.ue-seg-ic svg { width: 100%; height: 100%; }
.ue-seg-lb { display: block; }
.ue-seg button:disabled { cursor: not-allowed; }
@media (max-width: 360px) {
  .ue-seg button { font-size: 10px; min-height: 70px; }
  .ue-seg-ic { width: 20px; height: 20px; }
}
/* Zone livraison inline : titre + 2 options + jours/créneaux, sous les cartes. */
.ue-deliv-zone { margin-top: 12px; }
.ue-deliv-title { font-size: 13px; font-weight: 700; color: #161616; margin: 0 0 8px; }
.ue-deliv-pick { margin-top: 10px; }
.ue-pickup-addr { margin: 10px 0 0; font-size:12px; color: #111; background: #f7f7f7; border-radius: 10px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; }
.ue-pickup-addr svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ---------- vedettes : rail horizontal ---------- */
.ue-sec { padding: 18px 16px 0; }
.ue-sec > h2 { font-size:20px; margin: 0 0 12px; letter-spacing: -.3px; }
.ue-feat { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.ue-feat::-webkit-scrollbar { display: none; }
.ue-feat-card { flex: 0 0 150px; }
.ue-feat-img { position: relative; width: 150px; height: 110px; border-radius: 10px; background: #f4f4f4; }
.ue-feat-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.ue-badge { position: absolute; top: 6px; left: 6px; background: #111; color: #fff; font-size:10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.ue-feat-card h3 { font-size:11px; margin: 8px 0 2px; font-weight: 600; line-height: 1.3; }
.ue-price { font-size:11px; color: #111; }
.ue-price s { color: #8a8a8a; margin-left: 6px; font-size:10px; }

/* ---------- bouton + rond ---------- */
.ue-add {
  position: absolute; right: -6px; bottom: -6px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.22);
  font-size:20px; line-height: 1; color: #111; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ue-add:active { transform: scale(.92); }

/* ---------- nav catégories : texte souligné, STICKY ---------- */
.ue-catnav {
  position: sticky; top: 61px; z-index: 30;
  display: flex; gap: 4px; overflow-x: auto;
  background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0f0f0;
  padding: 0 12px; scrollbar-width: none;
}
.ue-catnav::-webkit-scrollbar { display: none; }
.ue-catnav button {
  border: 0; background: none; padding: 12px 10px; font-size:13px; color: #545454;
  border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer;
}
.ue-catnav button[aria-current="true"] { color: #111; font-weight: 700; border-bottom-color: #111; }

/* ---------- articles : UNE SEULE colonne, lignes horizontales ---------- */
.ue-items { display: flex; flex-direction: column; }
.ue-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid #f2f2f2;
  cursor: pointer; width: 100%; text-align: left; background: none;
  border-left: 0; border-right: 0; border-top: 0;
}
.ue-item-txt { flex: 1; min-width: 0; }
.ue-item-txt h3 { font-size:14px; margin: 0 0 4px; font-weight: 600; line-height: 1.3; }
.ue-item-price { font-size:12px; font-weight: 600; margin-bottom: 4px; }
.ue-item-price s { color: #8a8a8a; font-weight: 400; margin-left: 6px; }
.ue-item-desc { font-size:11px; color: #6b6b6b; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ue-tag { display: inline-block; font-size:10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-top: 6px; }
.ue-tag.popular { background: #111; color: #fff; }
.ue-item-img { position: relative; flex: none; width: 110px; height: 96px; border-radius: 10px; background: #f4f4f4; display: flex; align-items: center; justify-content: center; color: #bbb; }
.ue-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.ue-item-img svg { width: 28px; height: 28px; }

/* ---------- recherche ---------- */
.ue-searchwrap { padding: 12px 16px 0; display: none; }
.ue-searchwrap.open { display: block; }
.ue-searchwrap input { width: 100%; box-sizing: border-box; border: 1px solid #e2e2e2; border-radius: 10px; padding: 12px 14px; font-size:13px; }

/* ---------- colonnes desktop ---------- */
.ue-cols { display: block; }
.ue-side { display: none; }
.ue-cart { display: none; }

/* ---------- barre panier mobile ---------- */
.ue-cartbar[hidden]{display:none}
.ue-cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; justify-content: space-between; align-items: center;
  background: #111; color: #fff; border: 0; border-radius: 14px;
  padding: 16px 18px; font-size:13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}

/* ---------- tiroir panier mobile ---------- */
.ue-veil { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 48; }
.ue-drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 49;
  background: #fff; color: #111; border-radius: 18px 18px 0 0;
  max-height: 88vh; overflow-y: auto; padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}
.ue-grip { width: 40px; height: 4px; border-radius: 2px; background: #ddd; margin: 6px auto 12px; }
.ue-cart-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f2f2; font-size:12px; }
.ue-cart-row .q { color: #6b6b6b; min-width: 34px; }
.ue-cart-thumb { width: 52px; height: 52px; border-radius: 12px; background: #f4f4f4; overflow: hidden; flex: none; }
.ue-cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ue-cart-row .n { flex: 1; min-width: 0; }
.ue-cart-row .n b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ue-cart-row .n small { display: block; color: #6b6b6b; font-size:10px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ue-cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.ue-cart-row .p { font-weight: 700; white-space: nowrap; }
.ue-cart-row .rm { border: 0; background: none; color: #999; font-size:18px; cursor: pointer; padding: 4px; flex: none; }
.ue-cart-empty { color: #6b6b6b; padding: 18px 0; text-align: center; font-size:12px; }
.ue-hidden { display: none !important; }
/* Note par article */
.ue-citem-note { margin-top: 4px; }
.ue-citem-note-link {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-size: 11px; color: #007aff;
  text-decoration: underline; text-underline-offset: 2px;
  min-height: 32px; touch-action: manipulation;
}
.ue-citem-note-input {
  width: 100%; box-sizing: border-box;
  font-size: 16px; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid #e5e5e5; background: #fff;
  color: #111; margin-top: 4px; min-height: 44px;
}
.ue-citem-note-input:focus { outline: none; border-color: #007aff; }
.ue-citem-note-saved {
  font-size: 11px; color: #6b6b6b;
  font-style: italic; padding: 4px 0;
}
.ue-cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size:14px; padding: 14px 0; }
.ue-stepper { display: inline-flex; align-items: center; border: 1.5px solid #111; border-radius: 999px; overflow: hidden; background: #fff; }
.ue-stepper button { width: 30px; height: 30px; border: 0; background: none; font-size:16px; line-height: 1; cursor: pointer; color: #111; }
.ue-stepper b { min-width: 26px; text-align: center; font-size:12px; }
.ue-checkout-btn {
  width: 100%; border: 0; border-radius: 12px; background: #111; color: #fff !important;
  padding: 15px; font-size:14px; font-weight: 700; cursor: pointer; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.ue-checkout-btn:disabled { opacity: .5; }
.ue-cta-logo { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; background: #fff; flex: none; }
/* Logos cartes bancaires dans le CTA : contain pour ne pas rogner */
.ue-cta-logo.card { object-fit: contain; padding: 3px; width: 24px; height: 20px; border-radius: 4px; }

/* ---------- fiche produit : bottom sheet ---------- */
.ue-sheet-veil { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; }
.ue-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  background: #fff; color: #111; border-radius: 18px 18px 0 0;
  max-height: 92vh; display: flex; flex-direction: column;
  overflow: hidden;
}
.ue-sheet-head { position: relative; flex: none; }
.ue-sheet-head img { width: 100%; height: 190px; object-fit: cover; display: block; }
.ue-sheet-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); font-size:18px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ue-sheet-body { overflow-y: auto; padding: 16px 16px 8px; }
.ue-sheet-body h2 { font-size:20px; margin: 0 0 4px; }
.ue-sheet-price { font-size:14px; font-weight: 700; margin: 6px 0; }
.ue-sheet-price s { color: #8a8a8a; font-weight: 400; margin-left: 8px; }
.ue-sheet-desc { font-size:12px; color: #545454; line-height: 1.5; margin: 0 0 8px; }
.ue-opt-group { border-top: 1px solid #f0f0f0; padding: 14px 0; }
.ue-opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.ue-opt-head h3 { font-size:14px; margin: 0; }
.ue-opt-count { font-size:11px; color: #6b6b6b; }
.ue-opt-req { font-size:10px; color: #b3261e; font-weight: 600; }
.ue-opt-sub { font-size:11px; color: #6b6b6b; margin: 0 0 8px; }
.ue-opt { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.ue-opt input { width: 20px; height: 20px; accent-color: #111; flex: none; }
.ue-opt .on { flex: 1; font-size:13px; }
.ue-opt .op { font-size:12px; color: #545454; white-space: nowrap; }
.ue-opt-miss { color: #b3261e; font-size:11px; margin: 4px 0 0; }
.ue-sheet-foot { flex: none; border-top: 1px solid #f0f0f0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; background: #fff; }
.ue-sheet-foot .ue-stepper button { width: 40px; height: 40px; }
.ue-sheet-add { flex: 1; }

/* ---------- popup "Utiliser ma position" ---------- */
.ue-loc-veil { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ue-loc-card { background: #fff; color: #111; border-radius: 16px; padding: 24px 20px; max-width: 340px; width: 100%; text-align: center; }
.ue-loc-card .ue-loc-ic { width: 52px; height: 52px; border-radius: 50%; background: #f0f0f0; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ue-loc-card .ue-loc-ic svg { width: 26px; height: 26px; }
.ue-loc-card h2 { font-size:17px; margin: 0 0 8px; }
.ue-loc-card p { font-size:12px; color: #545454; margin: 0 0 18px; line-height: 1.5; }
.ue-loc-card .ue-checkout-btn { margin-top: 8px; }
.ue-loc-skip { background: none; border: 0; color: #545454; font-size:12px; margin-top: 10px; cursor: pointer; text-decoration: underline; }

/* ---------- checkout flottant (pas de modale) ---------- */
.ue-co { background: #fff; color: #111; overflow-x: hidden; overflow-x: clip; touch-action: pan-y; }
/* Header checkout : TOUJOURS visible (hors du conteneur de scroll).
   Structure : .ue-co (flex column) > .ue-co-head (fixe) + .ue-co-scroll (flex:1) + .ue-co-foot */
.ue-co { display: flex; flex-direction: column; min-height: 0; }
.ue-co-head { flex-shrink: 0; position: relative; z-index: 10; }
.ue-co-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
/* iOS: la feuille checkout est hors .ue → forcer le noir (Safari met les boutons sans bordure en bleu) */
.ue-drawer, .ue-drawer button:not(.ue-checkout-btn), .ue-co button:not(.ue-checkout-btn), .ue-co input, .ue-co select, .ue-co textarea { color: #111; }
.ue-sheet, .ue-sheet button:not(.ue-checkout-btn), .ue-loc-card, .ue-loc-card button:not(.ue-checkout-btn) { color: #111; }
.ue-acc-head, .ue-acc-title, .ue-co-back, .ue-co-head h2 { color: #111; }
.ue-co-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; background: #fff; z-index: 5; }
.ue-co-head h2 { font-size:17px; margin: 0; flex: 1; }
.ue-co-back { border: 0; background: #f4f4f4; width: 36px; height: 36px; border-radius: 50%; font-size:18px; cursor: pointer; }
.ue-acc { border-bottom: 1px solid #f0f0f0; }
.ue-acc-head { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 15px 16px; cursor: pointer; text-align: left; }
.ue-acc-title { font-size:14px; font-weight: 700; flex: 1; }
.ue-acc-sum { font-size:11px; color: #6b6b6b; }
.ue-acc-chev { color: #999; font-size:18px; transition: transform .2s; }
.ue-acc-head[aria-expanded="true"] .ue-acc-chev { transform: rotate(90deg); }
.ue-acc-body { display: none; padding: 0 16px 16px; }
.ue-acc.open .ue-acc-body { display: block; }
.ue-fld { margin-bottom: 12px; }
.ue-fld label { display: block; font-size:11px; font-weight: 600; margin-bottom: 6px; }
.ue-input { width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 10px; padding: 12px 14px; font-size:13px; font-family: inherit; }
.ue-input:focus { outline: none; border-color: #111; }
.ue-input.ue-invalid { border-color: #b3261e; }
.ue-hint { font-size:10px; color: #8a8a8a; margin: 4px 0 0; }
.ue-err { color: #b3261e; font-size:11px; margin: 6px 0 0; }
.ue-pay-opt { display: none; }
/* tuiles de paiement : logo bien affiché, sélection unique (radio natif) */
.ue-pay-list { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; }
.ue-pay-tile { box-sizing: border-box; flex: none; width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 6px 8px; border: 1px solid #e2e2e2; border-radius: 18px; cursor: pointer; background: #fff; text-align: center; margin-bottom: 0; }
.ue-pay-tile.sel { border: 2px solid #111; padding: 11px 5px 7px; background: #fff; }
.ue-pay-tile input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ue-pay-logos { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; min-height: 0; }
/* Multi-logos (cartes bancaires) : petits, espacés, bien centrés dans la tuile */
.ue-pay-logos.multi { gap: 8px; }
.ue-pay-logos.multi img.ue-pay-logo { height: 20px; max-width: 34px; border-radius: 4px; }
img.ue-pay-logo { height: 46px; width: auto; max-width: 70px; object-fit: contain; border-radius: 10px; background: #fff; display: block; }
span.ue-pay-logo { display: inline-flex; align-items: center; }
span.ue-pay-logo svg { height: 46px; width: auto; display: block; }
.ue-pay-name { font-size:10px; font-weight: 600; color: #111; line-height: 1.2; }
.ue-pay-radio { display: none; }
.ue-zone-list { max-height: 190px; overflow-y: auto; border: 1px solid #eee; border-radius: 10px; margin-top: 8px; }
.ue-zone-opt { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #f4f4f4; padding: 11px 12px; font-size:12px; cursor: pointer; }
.ue-zone-opt:last-child { border-bottom: 0; }
.ue-zone-opt[aria-selected="true"] { background: #f0f0f0; font-weight: 700; }
.ue-zone-opt .zp { float: right; color: #111; font-weight: 700; }
.ue-trow { display: flex; justify-content: space-between; font-size:12px; padding: 4px 0; }
.ue-trow.total { font-size:15px; font-weight: 700; border-top: 1px solid #eee; margin-top: 8px; padding-top: 10px; }
.ue-trow .neg { color: #111; }
.ue-co-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #f0f0f0; background: #fff; position: sticky; bottom: 0; }
.ue-map { height: 210px; border-radius: 10px; overflow: hidden; background: #eee; margin-top: 8px; z-index: 0; }
.ue-map-searchrow { display: flex; gap: 8px; margin-top: 8px; }
.ue-map-searchrow .ue-input { flex: 1; }
.ue-geobtn { flex: none; border: 1px solid #ddd; background: #fff; border-radius: 10px; padding: 0 12px; font-size:11px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ue-map-results { border: 1px solid #eee; border-radius: 10px; margin-top: 6px; max-height: 150px; overflow-y: auto; }
.ue-map-results button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #f4f4f4; padding: 10px 12px; font-size:11px; cursor: pointer; }
.ue-switch { display: flex; align-items: center; gap: 10px; font-size:13px; font-weight: 600; cursor: pointer; }
.ue-switch input { width: 20px; height: 20px; accent-color: #111; }
.ue-check { display: flex; align-items: center; gap: 10px; font-size:12px; cursor: pointer; margin-top: 10px; }
.ue-check input { width: 18px; height: 18px; accent-color: #111; }
.ue-success { text-align: center; padding: 48px 24px; }
.ue-success .ue-ok { width: 72px; height: 72px; border-radius: 50%; background: #111; color: #fff; font-size:34px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ue-success h3 { font-size:20px; margin: 0 0 8px; }
.ue-success p { color: #545454; font-size:12px; line-height: 1.5; }
.ue-ref { font-size:16px; font-weight: 700; color: #111; margin-top: 12px; }

/* ---------- page non trouvée ---------- */
.ue-nf { text-align: center; padding: 80px 24px; }
.ue-nf h1 { font-size:22px; }
.ue-nf p { color: #545454; }
.ue-nf a { color: #111; font-weight: 600; }

/* ================= DESKTOP (>900px) ================= */
@media (min-width: 901px) {
  .ue-topbar { display: none; }
  .ue-catnav { display: none; }
  .ue-cover { height: 300px; border-radius: 0; }
  .ue-hero-body, .ue-fulfill { padding-left: 24px; padding-right: 24px; }
  .ue-cols { display: grid; grid-template-columns: 200px minmax(0, 1fr) 400px; gap: 24px; padding: 8px 24px 40px; align-items: start; }
  .ue-side { display: block; position: sticky; top: calc(var(--nav-h, 72px) + 16px); max-height: calc(100vh - var(--nav-h, 72px) - 32px); overflow-y: auto; }
  .ue-side h2 { font-size:15px; margin: 0 0 4px; position: sticky; top: 0; background: #fff; z-index: 5; padding: 8px 0; }
  .ue-hours { font-size:11px; color: #6b6b6b; margin-bottom: 12px; }
  .ue-side nav { display: flex; flex-direction: column; }
  .ue-side nav button { border: 0; background: none; text-align: left; padding: 9px 10px; font-size:12px; color: #545454; border-radius: 8px; cursor: pointer; }
  .ue-side nav button:hover { background: #f6f6f6; }
  .ue-side nav button[aria-current="true"] { color: #111; font-weight: 700; background: #f0f0f0; }
  .ue-main { min-width: 0; }
  .ue-sec { padding-left: 0; padding-right: 0; }
  .ue-searchwrap { display: block; position: sticky; top: var(--nav-h, 72px); z-index: 20; background: rgba(255,255,255,.97); padding: 12px 0; }
  .ue-searchwrap input { max-width: 420px; }
  .ue-feat { margin: 0; padding-left: 0; padding-right: 0; }
  /* panier flottant : colle comme le panneau catégories */
  .ue-cart { display: block; position: sticky; top: calc(var(--nav-h, 72px) + 16px); max-height: calc(100vh - var(--nav-h, 72px) - 32px); overflow-y: auto; overflow-x: hidden; touch-action: pan-y; border: 1px solid #eee; border-radius: 14px; padding: 16px; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
  .ue-cart > h2 { position: sticky; top: -16px; background: #fff; z-index: 5; padding: 12px 0 8px; margin: -12px 0 4px; }
  .ue-cart h2 { font-size:15px; margin: 0 0 8px; }
  .ue-cartbar { display: none; }
  /* fiche produit : panneau latéral droit */
  .ue-sheet-veil { display: block; }
  .ue-sheet { left: auto; right: 0; top: 0; bottom: 0; width: 420px; border-radius: 0; max-height: none; }
  /* checkout : remplit le panneau panier flottant */
  .ue-co { font-size:12px; }
  /* checkout desktop : bouton isolé, épinglé en bas du panneau */
  .ue-cart:has(.ue-co) { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
  .ue-cart:has(.ue-co) .ue-co { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  /* Même mise en page sans :has() (vues web anciennes) : la
   * classe est posée par checkout.js quand il s'affiche. */
  .ue-cart.ue-cart-co { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
  .ue-cart.ue-cart-co .ue-co { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .ue-co-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 16px 0; }
  .ue-co-foot { flex-shrink: 0; position: static; }
}

/* ==========================================================================
   Carte réelle de la boutique : pin noir + bouton itinéraire (driving
   directions), comme sur le site web.
   ========================================================================== */
.ue-storemap { padding: 0 16px; margin: 14px 0 6px; }
.ue-storemap-map { height: 220px; border-radius: 14px; overflow: hidden; background: #f4f4f4; z-index: 0; }
.ue-storemap-dir { display: block; text-align: center; margin-top: 10px; background: #111; color: #fff; font-weight: 700; font-size:13px; padding: 13px; border-radius: 12px; text-decoration: none; }
.ue-storemap-dir:active { background: #333; }
.leaflet-container .ue-pin { background: none; border: 0; }
.ue-pin span { display: block; width: 26px; height: 26px; background: #111; border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.35); }

/* ==========================================================================
   Champ téléphone : la page /r/ est light-only (meta color-scheme="light").
   On verrouille le rendu clair pour contrer les variables dark-mode du
   thème landing qui fuient via .pf-* (champ noir / noms de pays invisibles).
   ========================================================================== */
.ue .pf-num { background: #fff; color: #111; }
.ue .pf-num::placeholder { color: #999; opacity: 1; }
.ue .pf-search { background: #fff; color: #111; }
.ue .pf-search::placeholder { color: #999; opacity: 1; }
.ue .pf-cc { background: #fafafa; color: #333; }
.ue .pf-drop { background: #fff; }
.ue .pf-item { background: #fff; color: #111; }
.ue .pf-item .pf-item-name { color: #111; }
.ue .pf-item.sel { background: #f0f0f0; }
.ue .pf-item-dial { color: #888; }
.ue .pf-empty { color: #999; }

/* ---------- bannière magasin fermé ---------- */
.ue-closed-banner{display:flex;gap:12px;align-items:flex-start;background:#fef6e8;border:1px solid #f0dfb8;
  border-radius:14px;padding:14px 16px;margin:12px 16px}
.ue-closed-icon{flex:none;width:36px;height:36px;border-radius:50%;background:#f5c518;display:flex;
  align-items:center;justify-content:center;color:#111}
.ue-closed-icon svg{width:20px;height:20px}
.ue-closed-text{display:flex;flex-direction:column;gap:2px;font-size:13px;color:#5c4a1a}
.ue-closed-text strong{font-size:14px;color:#111}
.ue-closed-next{font-weight:700;color:#111;margin-top:4px}
/* ---------- bouton info ---------- */
.ue-info-btn{background:none;border:0;color:#111;cursor:pointer;padding:8px;display:flex;align-items:center}
.ue-info-btn svg{width:22px;height:22px}
/* Panneau Infos : rendu par le composant partagé public/shared/boutique-info.css
   (v1.8.427) — les anciennes classes locales du panneau sont supprimées.
   Restent ici uniquement le bouton et la ligne d'infos du hero. */
/* ---------- ligne d'infos (hero, bien visible) ---------- */
.ue-info-row{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:10px 16px 0;padding:12px 14px;
  background:#f7f7f7;border:1px solid #eee;border-radius:12px;cursor:pointer;text-align:left;
  font-size:14px;color:#111}
.ue-info-dot{flex:none;width:10px;height:10px;border-radius:50%}
.ue-info-dot.open{background:#22a522}
.ue-info-dot.closed{background:#d33}
.ue-info-lbl{flex:0 1 auto;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ue-info-more{flex:none;font-weight:700;color:#111}
.ue-info-row:active{background:#efefef}

/* ---------- FOMO : fermeture imminente ---------- */
.ue-info-row.fomo{background:#fff7ed;border-color:#fdba74}
.ue-info-row.fomo .ue-info-lbl{color:#c2410c;font-weight:800}
.ue-info-row.fomo .ue-info-dot{background:#ea580c;animation:ue-fomo-pulse 1.2s ease-in-out infinite}
@keyframes ue-fomo-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.35);opacity:.65}}
/* (bandeau fomo du panneau : remplacé par .bip-notice du composant partagé) */
/* ---------- overlay recherche plein écran ---------- */
.ue-search-ov{position:fixed;inset:0;z-index:200;background:#fff;display:flex;flex-direction:column;
  animation:ue-ov-fade .18s ease-out}
.ue-search-ov[hidden]{display:none}
@keyframes ue-ov-in{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
/* Entrée des feuilles en simple fondu : une translation
 * d'entrée peut rester bloquée hors écran sur une vue web
 * lente et ne laisser que le voile (constat d'Elhadji,
 * 2026-11-09 : commande groupée, horaires, checkout). */
@keyframes ue-ov-fade{from{opacity:0}to{opacity:1}}
.ue-search-top{display:flex;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;
  border-bottom:1px solid #f0f0f0;background:#fff}
.ue-search-back{flex:none;width:40px;height:40px;border:0;background:#f5f5f5;border-radius:50%;
  font-size:22px;line-height:1;cursor:pointer;color:#111}
.ue-search-top input{flex:1;height:44px;border:1px solid #e5e5e5;border-radius:12px;padding:0 14px;
  font-size:16px;background:#f7f7f7;color:#111;-webkit-appearance:none}
.ue-search-top input:focus{outline:none;border-color:#111;background:#fff}
.ue-search-x{flex:none;width:40px;height:40px;border:0;background:transparent;font-size:18px;
  cursor:pointer;color:#111}
.ue-search-results{flex:1;overflow-y:auto;padding:8px 16px calc(24px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling:touch}
.ue-sr-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f5f5f5;
  cursor:pointer}
.ue-sr-img{flex:none;width:56px;height:56px;border-radius:12px;overflow:hidden;background:#f5f5f5;
  display:flex;align-items:center;justify-content:center;color:#bbb}
.ue-sr-img img{width:100%;height:100%;object-fit:cover}
.ue-sr-txt{flex:1;min-width:0}
.ue-sr-txt h3{margin:0 0 4px;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ue-sr-row .ue-add{flex:none;position:static;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.ue-sr-empty{text-align:center;color:#999;padding:40px 0;font-size:15px}
/* Sur mobile, le champ inline devient redondant avec l'overlay : on le garde discret */
@media (max-width:900px){
  .ue-searchwrap{display:none}
}
/* ---------- checkout : hauteur stable + navigation Suivant/Entrée ---------- */
/* Hauteur minimale pour éviter les sauts quand on change de mode */
.ue-co-scroll{min-height:320px}
@media (min-width:901px){
  .ue-co-scroll{min-height:420px}
}
/* Bouton Suivant en bas de section */
.ue-next-btn{display:block;width:100%;margin:12px 0 4px;padding:12px;border:1px solid #e5e5e5;
  border-radius:12px;background:#f7f7f7;font-size:14px;font-weight:700;color:#111;cursor:pointer}
.ue-next-btn:active{background:#eee}
/* Hint "Entrée pour continuer" */
.ue-enter-hint{margin:10px 0 0;font-size:12px;color:#999;text-align:center}
/* Transition douce sur l'ouverture des accordéons */
.ue-acc-body{transition:opacity .18s ease}
/* ---------- fermé : checkout grisé + order for later ---------- */
.ue-checkout-btn.is-disabled{opacity:.45;cursor:not-allowed}
.ue-saved-note{text-align:center;color:var(--muted);font-size:.85rem;margin:.6rem 0}
.ue-later-btn{display:block;width:100%;margin-top:.4rem;padding:.9rem;border-radius:14px;
  border:1.5px solid var(--ink);background:transparent;color:var(--ink);
  font-weight:700;font-size:.95rem;cursor:pointer}
/* ---------- order for later : slots ---------- */
.ue-slots{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin:1rem 0;max-height:40vh;overflow-y:auto}
.ue-slot{padding:.8rem;border:1.5px solid #e5e5e5;border-radius:12px;background:#fff;
  font-weight:600;font-size:.85rem;cursor:pointer;color:#111;-webkit-text-fill-color:#111}
.ue-slot.sel{border-color:#111 !important;background:#111 !important;color:#fff !important;-webkit-text-fill-color:#fff !important}
.ue-muted{color:var(--muted);font-size:.9rem}
/* ---------- order for later : modal espacé + gros bouton noir ---------- */
.ue-later-sheet{padding-top:2.5rem !important;background:#fff;color:#111;
  margin-left:16px !important;margin-right:16px !important;max-width:calc(100vw - 32px) !important;
  border:1px solid rgba(0,0,0,.12) !important;border-radius:20px !important;overflow:hidden}
.ue-later-sheet h3{margin:0 0 .5rem;text-align:center}
.ue-later-sheet .ue-muted{text-align:center}
.ue-schedule-big{display:block;width:100%;margin:1.2rem 0 .6rem;padding:1.1rem;border:0;border-radius:16px;
  background:#111 !important;color:#fff !important;-webkit-text-fill-color:#fff !important;font-weight:800;font-size:1.05rem;cursor:pointer}
.ue-schedule-big:active{transform:scale(.98)}
.ue-later-cancel{display:block;width:100%;padding:.9rem;border:0;background:none;
  color:var(--muted);font-weight:600;font-size:.95rem;cursor:pointer}
/* ---------- badge logo circulaire (style Brasil Burger) ---------- */
.ue-hero{position:relative}
.ue-logo-badge{position:absolute;right:18px;top:14px;width:76px;height:76px;border-radius:50%;
  background:rgba(255,255,255,.92);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:3px solid #fff;box-shadow:0 4px 18px rgba(0,0,0,.18);overflow:hidden;z-index:5;
  opacity:0;transform:scale(.7) translateY(10px);
  animation:ueBadgeIn .7s cubic-bezier(.2,.9,.3,1.2) .3s forwards}
.ue-logo-badge img{width:100%;height:100%;object-fit:cover;display:block}
@keyframes ueBadgeIn{to{opacity:1;transform:scale(1) translateY(0)}}
@media(min-width:901px){.ue-logo-badge{width:92px;height:92px;top:18px;right:28px}}


/* ---------- logo inline (quand pas de bannière) ---------- */
.ue-logo-inline{width:52px;height:52px;border-radius:50%;object-fit:cover;float:right;
  margin:0 0 8px 12px;background:#fff;border:2px solid #f0f0f0;box-shadow:0 2px 10px rgba(0,0,0,.1)}
/* ---------- sur place : QR table ---------- */
.ue-dinein-qr{display:flex;align-items:center;gap:.7rem;margin-top:.7rem;flex-wrap:wrap}
.ue-dinein-qr[hidden]{display:none}
.ue-qr-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.7rem 1rem;border:1.5px dashed #111;
  border-radius:12px;background:#fff;font-weight:700;font-size:.9rem;cursor:pointer;color:#111}
.ue-qr-btn svg{width:20px;height:20px}
.ue-table-lbl{font-weight:800;font-size:.95rem;background:#111;color:#fff;padding:.5rem .9rem;border-radius:999px}
.ue-qr-wrap{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.6);display:flex;
  align-items:center;justify-content:center;padding:1rem}
.ue-qr-card{background:#fff;border-radius:20px;padding:1.5rem;width:100%;max-width:380px;text-align:center}
.ue-qr-card h3{margin:0 0 1rem;font-size:1.1rem}
.ue-qr-reader{border-radius:12px;overflow:hidden;background:#000;min-height:220px}
.ue-qr-reader video{width:100%;display:block}

/* ---------- Schedule (date + heure pickup/delivery) ---------- */
.ue-schedule { padding: 4px 0; }
.ue-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.ue-day { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 10px 8px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; cursor: pointer; }
.ue-day:disabled { opacity: 0.35; cursor: not-allowed; background: #f5f5f5; }
.ue-day[aria-pressed="true"] { border-color: #161616; background: #161616; color: #fff; }
.ue-day-name { font-size: 11px; font-weight: 600; text-transform: uppercase; }
.ue-day-num { font-size: 20px; font-weight: 800; margin-top: 2px; }
.ue-slots { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.ue-slot { padding: 8px 14px; border: 1px solid #e5e5e5; border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; }
.ue-slot:disabled { opacity: 0.35; cursor: not-allowed; background: #f5f5f5; text-decoration: line-through; }
.ue-slot[aria-pressed="true"] { border-color: #161616; background: #161616; color: #fff; }

/* ---------- Extras planification (hero) : pickup / ASAP-Plus tard / table ---------- */
#ueFulfillExtras { margin-top: .7rem; }
.ue-fx-row { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .8rem 1rem;
  border: 1px solid #e5e5e5; border-radius: 14px; background: #fff; cursor: pointer; text-align: left; }
.ue-fx-row.ue-fx-static { cursor: default; }
.ue-fx-ic { display: inline-flex; width: 22px; height: 22px; flex: none; }
.ue-fx-ic svg { width: 100%; height: 100%; stroke: #161616; }
.ue-fx-tx { flex: 1; font-size: .9rem; line-height: 1.35; }
.ue-fx-tx b { font-weight: 700; }
.ue-fx-val { font-weight: 700; color: #161616; }
.ue-fx-hint { color: #6e6e73; font-size: .82rem; }
.ue-fx-chev { font-size: 1.3rem; color: #6e6e73; font-weight: 300; }
.ue-fx-link { background: none; border: none; color: #161616; font-weight: 700; font-size: .85rem;
  text-decoration: underline; cursor: pointer; padding: .3rem .2rem; }
.ue-fx-deliv { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ue-fx-opt { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  padding: .8rem .9rem; border: 1.5px solid #e5e5e5; border-radius: 14px; background: #fff;
  cursor: pointer; text-align: left; }
.ue-fx-opt b { font-size: .9rem; font-weight: 700; }
.ue-fx-opt span { font-size: .78rem; color: #6e6e73; line-height: 1.3; }
.ue-fx-opt.sel { border-color: #161616; background: #f5f5f5; }
.ue-fx-opt.sel span { color: #161616; font-weight: 600; }

/* ---------- Modales pickup / livraison plus tard ---------- */
/* Contour translucide noirâtre derrière la fenêtre */
.ue-sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; }
/* Fenêtre pleine hauteur avec marges gauche / haut / droite, bouton figé en bas */
.ue-pickup-sheet {
  left: 16px; right: 16px; top: 24px; bottom: 0;
  max-height: none; height: calc(100vh - 24px); height: calc(100dvh - 24px);
  border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  padding: 20px 20px 0;
}
.ue-pickup-sheet h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.ue-pickup-sheet .ue-muted { margin: 0 0 .9rem; }
.ue-pick-head { flex: none; }
.ue-pick-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
.ue-pick-foot {
  flex: none; padding: 12px 0 calc(20px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #f0f0f0;
  margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.ue-pickup-sheet .ue-days { margin-bottom: .6rem; }
.ue-pickup-sheet .ue-day.sel { border-color: #161616; background: #161616; color: #fff; }
.ue-pickup-sheet .ue-slot.sel { border-color: #161616; background: #161616; color: #fff; }
.ue-schedule-big { width: 100%; padding: .9rem; border: none; border-radius: 14px;
  background: #161616; color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; }
.ue-later-cancel { width: 100%; padding: .7rem; margin-top: .4rem; border: none; background: none;
  color: #6e6e73; font-size: .9rem; cursor: pointer; }

/* ---------- Checkout : toggle ASAP + table ---------- */
.ue-sched-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .8rem; }
.ue-co-table { margin-top: .7rem; }

/* ============================================================
   DARK MODE PREMIUM — fond noirâtre translucide, champs et
   boutons en verre dépoli, texte toujours lisible.
   ============================================================ */
/* ==========================================================================
   DARK MODE — standard industrie (Apple HIG + Material Design)
   - Fond : #1C1C1E (jamais de noir pur → réduit la fatigue oculaire)
   - Texte : hiérarchie par opacité (primaire #FFF, secondaire 60%, tertiaire 30%)
   - Élévation : surfaces plus claires (pas d'ombres)
   - Glassmorphism : blur(24px) saturate(180%) sur les fenêtres
   ========================================================================== */
html[data-theme="dark"] .ue { background: #111111; color: #FFFFFF; }
html[data-theme="dark"] body { background: #111111; }

/* Fenêtres / sheets / drawers : verre dépoli */
html[data-theme="dark"] .ue-sheet,
html[data-theme="dark"] .ue-pickup-sheet,
html[data-theme="dark"] .ue-later-sheet,
html[data-theme="dark"] .ue-co,
html[data-theme="dark"] .ue-co-head,
html[data-theme="dark"] .ue-cart,
html[data-theme="dark"] .ue-cart > h2,
html[data-theme="dark"] .ue-side h2,
html[data-theme="dark"] .ue-co-foot,
html[data-theme="dark"] .ue-sheet-foot,
html[data-theme="dark"] .ue-loc-card,
html[data-theme="dark"] .ue-qr-card,
html[data-theme="dark"] .ue-search-ov,
html[data-theme="dark"] .ue-search-top,
html[data-theme="dark"] .ue-pick-foot {
  background: #1C1C1E;
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  color: #FFFFFF; border: 1px solid rgba(255,255,255,.08);
}

/* Champs : translucides, texte blanc */
html[data-theme="dark"] .ue-input,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #2C2C2E;
  border: 1px solid rgba(255,255,255,.1);
  color: #FFFFFF; -webkit-text-fill-color: #FFFFFF;
}
html[data-theme="dark"] .ue-input::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(235,235,245,.4); -webkit-text-fill-color: rgba(235,235,245,.4);
}
html[data-theme="dark"] .ue-input:focus,
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.12);
  outline: none;
}

/* Boutons et tuiles : translucides */
html[data-theme="dark"] .ue-day,
html[data-theme="dark"] .ue-slot,
html[data-theme="dark"] .ue-fx-row,
html[data-theme="dark"] .ue-fx-opt,
html[data-theme="dark"] .ue-pay-tile,
html[data-theme="dark"] .ue-qr-btn,
html[data-theme="dark"] .ue-geobtn,
html[data-theme="dark"] .ue-stepper,
html[data-theme="dark"] .ue-next-btn {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: #FFFFFF; -webkit-text-fill-color: #FFFFFF;
}

/* Hiérarchie du texte par opacité (style Apple) */
html[data-theme="dark"] .ue-fx-opt span,
html[data-theme="dark"] .ue-fx-hint,
html[data-theme="dark"] .ue-fx-chev,
html[data-theme="dark"] .ue-muted,
html[data-theme="dark"] .ue-later-cancel,
html[data-theme="dark"] .ue-acc-sum,
html[data-theme="dark"] .ue-acc-chev,
html[data-theme="dark"] .ue-hint,
html[data-theme="dark"] .ue-item-desc,
html[data-theme="dark"] .ue-opt-sub,
html[data-theme="dark"] .ue-opt-count,
html[data-theme="dark"] .ue-sheet-desc,
html[data-theme="dark"] .ue-addr,
html[data-theme="dark"] .ue-loc-card p,
html[data-theme="dark"] .ue-cart-empty,
html[data-theme="dark"] .ue-cart-row .q,
html[data-theme="dark"] .ue-cart-row .n small,
html[data-theme="dark"] .ue-seg button {
  color: rgba(235,235,245,.6) !important; -webkit-text-fill-color: rgba(235,235,245,.6) !important;
}
/* Texte principal : blanc pur */
html[data-theme="dark"] .ue-acc-head,
html[data-theme="dark"] .ue-acc-body,
html[data-theme="dark"] .ue-card h3,
html[data-theme="dark"] .ue-card .t,
html[data-theme="dark"] .ue-item-name,
html[data-theme="dark"] .ue-cart-row .n,
html[data-theme="dark"] .ue-price,
html[data-theme="dark"] .ue-item-price,
html[data-theme="dark"] .ue-acc-title,
html[data-theme="dark"] .ue-co-head h2,
html[data-theme="dark"] .ue-opt .op,
html[data-theme="dark"] .ue-fx-tx b,
html[data-theme="dark"] .ue-fx-val,
html[data-theme="dark"] .ue-fx-link {
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important;
}
html[data-theme="dark"] .ue-fx-ic svg { stroke: #FFFFFF; }
/* Prix barrés : opacité réduite */
html[data-theme="dark"] .ue-price s,
html[data-theme="dark"] .ue-item-price s,
html[data-theme="dark"] .ue-sheet-price s {
  color: rgba(235,235,245,.4) !important; -webkit-text-fill-color: rgba(235,235,245,.4) !important;
}

/* États sélectionnés : contraste maximal */
.ue-day[aria-pressed="true"],
.ue-day.sel,
.ue-slot[aria-pressed="true"],
.ue-slot.sel,
.ue-pickup-sheet .ue-day.sel,
.ue-pickup-sheet .ue-slot.sel {
  background: #161616 !important; border-color: #161616 !important;
  color: #fff !important; -webkit-text-fill-color: #fff !important;
}
.ue-day[aria-pressed="true"] .ue-day-name,
.ue-day[aria-pressed="true"] .ue-day-num,
.ue-day.sel .ue-day-name,
.ue-day.sel .ue-day-num { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html[data-theme="dark"] .ue-day[aria-pressed="true"],
html[data-theme="dark"] .ue-day.sel,
html[data-theme="dark"] .ue-slot[aria-pressed="true"],
html[data-theme="dark"] .ue-slot.sel,
html[data-theme="dark"] .ue-pickup-sheet .ue-day.sel,
html[data-theme="dark"] .ue-pickup-sheet .ue-slot.sel {
  background: #FFFFFF !important; border-color: #FFFFFF !important;
  color: #1C1C1E !important; -webkit-text-fill-color: #1C1C1E !important;
}
html[data-theme="dark"] .ue-day[aria-pressed="true"] .ue-day-name,
html[data-theme="dark"] .ue-day[aria-pressed="true"] .ue-day-num,
html[data-theme="dark"] .ue-day.sel .ue-day-name,
html[data-theme="dark"] .ue-day.sel .ue-day-num {
  color: #1C1C1E !important; -webkit-text-fill-color: #1C1C1E !important;
}
/* Boutons d'options (ASAP / Plus tard) sélectionnés */
.ue-fx-opt.sel { border-color: #161616; background: #f5f5f5; }
.ue-fx-opt.sel b { color: #161616; -webkit-text-fill-color: #161616; }
.ue-fx-opt.sel span { color: #161616; font-weight: 600; -webkit-text-fill-color: #161616; }
html[data-theme="dark"] .ue-fx-opt {
  background: #000000; border: 1.5px solid rgba(255,255,255,.85);
}
html[data-theme="dark"] .ue-fx-opt.sel {
  border-color: #FFFFFF; background: #FFFFFF;
}
html[data-theme="dark"] .ue-fx-opt.sel b,
html[data-theme="dark"] .ue-fx-opt.sel span {
  color: #000000; -webkit-text-fill-color: #000000;
}
/* Segmented control */
html[data-theme="dark"] .ue-seg { background: none; }
html[data-theme="dark"] .ue-seg button[aria-pressed="true"] {
  background: #FFFFFF; color: #000000; -webkit-text-fill-color: #000000;
  border-color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
/* Dark : non sélectionné = fond noir, texte blanc, contour blanc bien visible. */
html[data-theme="dark"] .ue-seg button {
  background: #000000; color: #FFFFFF; -webkit-text-fill-color: #FFFFFF;
  border: 1.5px solid rgba(255,255,255,.85);
}
html[data-theme="dark"] .ue-deliv-title { color: #FFFFFF; -webkit-text-fill-color: #FFFFFF; }
/* Bouton principal : blanc en dark */
html[data-theme="dark"] .ue-schedule-big,
html[data-theme="dark"] .ue-checkout-btn,
html[data-theme="dark"] .ue-cta {
  background: #FFFFFF !important; color: #000000 !important;
  -webkit-text-fill-color: #000000 !important; font-weight: 800;
}
/* Cartes et badges */
html[data-theme="dark"] .ue-card { background: #1C1C1E; border: 1px solid rgba(255,255,255,.08); }
html[data-theme="dark"] .ue-stepper button { color: #FFFFFF; }
html[data-theme="dark"] .ue-table-lbl { background: #FFFFFF; color: #1C1C1E; }
html[data-theme="dark"] .ue-badge { background: #FFFFFF; color: #1C1C1E; }
html[data-theme="dark"] .ue-tag.popular { background: #FFFFFF; color: #1C1C1E; }
html[data-theme="dark"] .ue-day:disabled,
html[data-theme="dark"] .ue-slot:disabled { background: rgba(255,255,255,.04); }
html[data-theme="dark"] .pf-drop { background: rgba(28,28,30,.95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
html[data-theme="dark"] .pf-item { color: #FFFFFF; }
html[data-theme="dark"] .pf-item:hover { background: rgba(255,255,255,.08); }

/* ---------- Mise en avant du panier après choix d'heure (hero) ---------- */
@keyframes uePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.ue-cartbar.ue-pulse { animation: uePulse .45s ease-in-out 2; }

/* ==========================================================================
   RÈGLE DARK MODE (Elhadji) — simple, sans exception :
   1. Bouton noir/texte blanc → bouton blanc/texte noir
   2. Texte noir ou gris → texte blanc
   3. Champs : contour blanc translucide
   ========================================================================== */
html[data-theme="dark"] .ue .ue-schedule-big,
html[data-theme="dark"] .ue .ue-checkout-btn,
html[data-theme="dark"] .ue .ue-cta,
html[data-theme="dark"] .ue .ue-day.sel,
html[data-theme="dark"] .ue .ue-day[aria-pressed="true"],
html[data-theme="dark"] .ue .ue-slot.sel,
html[data-theme="dark"] .ue .ue-slot[aria-pressed="true"],
html[data-theme="dark"] .ue .ue-seg button[aria-pressed="true"],
html[data-theme="dark"] .ue .ue-table-lbl,
html[data-theme="dark"] .ue .ue-badge {
  background: #FFFFFF !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  border-color: #FFFFFF !important;
}
html[data-theme="dark"] .ue .ue-day.sel .ue-day-name,
html[data-theme="dark"] .ue .ue-day.sel .ue-day-num,
html[data-theme="dark"] .ue .ue-day[aria-pressed="true"] .ue-day-name,
html[data-theme="dark"] .ue .ue-day[aria-pressed="true"] .ue-day-num {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}
/* Tout le reste du texte : blanc */
html[data-theme="dark"] .ue,
html[data-theme="dark"] .ue h1, html[data-theme="dark"] .ue h2,
html[data-theme="dark"] .ue h3, html[data-theme="dark"] .ue h4,
html[data-theme="dark"] .ue p, html[data-theme="dark"] .ue span,
html[data-theme="dark"] .ue div, html[data-theme="dark"] .ue label,
html[data-theme="dark"] .ue a, html[data-theme="dark"] .ue li,
html[data-theme="dark"] .ue b, html[data-theme="dark"] .ue strong,
html[data-theme="dark"] .ue small, html[data-theme="dark"] .ue i {
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
}
/* Le texte à l'intérieur des boutons blancs reste noir */
html[data-theme="dark"] .ue .ue-schedule-big *,
html[data-theme="dark"] .ue .ue-checkout-btn *,
html[data-theme="dark"] .ue .ue-cta *,
html[data-theme="dark"] .ue .ue-day.sel *,
html[data-theme="dark"] .ue .ue-day[aria-pressed="true"] *,
html[data-theme="dark"] .ue .ue-slot.sel *,
html[data-theme="dark"] .ue .ue-slot[aria-pressed="true"] *,
html[data-theme="dark"] .ue .ue-seg button[aria-pressed="true"] * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
}
/* Champs : contour blanc translucide */
html[data-theme="dark"] .ue input,
html[data-theme="dark"] .ue select,
html[data-theme="dark"] .ue textarea,
html[data-theme="dark"] .ue .ue-input {
  border: 1px solid rgba(255,255,255,.35) !important;
  background: rgba(255,255,255,.06) !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
html[data-theme="dark"] .ue input::placeholder,
html[data-theme="dark"] .ue textarea::placeholder {
  color: rgba(255,255,255,.5) !important;
  -webkit-text-fill-color: rgba(255,255,255,.5) !important;
}

/* ==========================================================================
   CAHIER DES CHARGES 2026-10-03 — dark mode / checkout / mobile
   ========================================================================== */

/* ---------- 1. Barre statut / Infos / Pickup at / Directions ---------- */
html[data-theme="dark"] .ue-info-btn { color: #fff; }
html[data-theme="dark"] .ue-info-row { background: #1C1C1E; border-color: rgba(255,255,255,.12); color: #fff; }
html[data-theme="dark"] .ue-info-lbl { color: #fff; -webkit-text-fill-color: #fff; }
html[data-theme="dark"] .ue-info-more { color: #fff; -webkit-text-fill-color: #fff; }
/* FOMO garde ses couleurs sémantiques (orange) */
html[data-theme="dark"] .ue-info-row.fomo { background: #2a1a0e; border-color: #c2410c; }
html[data-theme="dark"] .ue-info-row.fomo .ue-info-lbl { color: #fdba74; -webkit-text-fill-color: #fdba74; }
html[data-theme="dark"] .ue-pickup-addr { background: #1C1C1E; border-color: rgba(255,255,255,.1); color: #fff; }
html[data-theme="dark"] .ue-pickup-addr b { color: #fff; -webkit-text-fill-color: #fff; }
html[data-theme="dark"] .ue-pickup-addr svg { stroke: #fff; }
/* Directions : fond blanc, texte noir, icône noire — TOUJOURS */
html[data-theme="dark"] .ue-storemap-dir { background: #fff !important; color: #000 !important; -webkit-text-fill-color: #000 !important; }
html[data-theme="dark"] .ue-storemap-dir svg { stroke: #000; color: #000; }
html[data-theme="dark"] .ue-storemap-map { background: #1C1C1E; }

html[data-theme="dark"] .ue-closed-banner { background: #1C1C1E; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .ue-closed-text { color: rgba(255,255,255,.7); }
html[data-theme="dark"] .ue-closed-text strong, html[data-theme="dark"] .ue-closed-next { color: #fff; }

/* ---------- 2. Fond sombre cohérent (pas de bandes blanches) ---------- */
html[data-theme="dark"] .ue-topbar { background: rgba(17,17,17,.96); border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .ue-search-btn { background: rgba(255,255,255,.08); color: #fff; }
html[data-theme="dark"] .ue-catnav { background: rgba(17,17,17,.97); border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .ue-catnav button { color: rgba(255,255,255,.6); }
html[data-theme="dark"] .ue-catnav button[aria-current="true"] { color: #fff; border-bottom-color: #fff; }
html[data-theme="dark"] .ue-sec { background: transparent; }
html[data-theme="dark"] .ue-feat-card h3 { color: #fff; }
html[data-theme="dark"] .ue-searchwrap { background: transparent; }
html[data-theme="dark"] .ue-searchwrap input { background: #1C1C1E; border-color: rgba(255,255,255,.15); color: #fff; }
html[data-theme="dark"] .ue-side h2 { background: #111; }
html[data-theme="dark"] .ue-side nav button { color: rgba(255,255,255,.6); }
html[data-theme="dark"] .ue-side nav button:hover { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .ue-side nav button[aria-current="true"] { color: #fff; background: rgba(255,255,255,.1); }
html[data-theme="dark"] .ue-hours { color: rgba(255,255,255,.6); }
html[data-theme="dark"] .ue-item { border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .ue-item-img { background: #1C1C1E; color: rgba(255,255,255,.3); }
html[data-theme="dark"] .ue-feat-img { background: #1C1C1E; }
/* checkout : fond cohérent */
html[data-theme="dark"] .ue-co { background: #111; }
html[data-theme="dark"] .ue-acc { border-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .ue-co-foot { background: #111; border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .ue-trow.total { border-color: rgba(255,255,255,.15); }
html[data-theme="dark"] .ue-map { background: #1C1C1E; }
html[data-theme="dark"] .ue-map-results { background: #111; border-color: rgba(255,255,255,.15); }
html[data-theme="dark"] .ue-map-results button { border-color: rgba(255,255,255,.08); color: #fff; }
html[data-theme="dark"] .ue-zone-list { border-color: rgba(255,255,255,.15); }
html[data-theme="dark"] .ue-zone-opt { border-color: rgba(255,255,255,.08); color: #fff; }
html[data-theme="dark"] .ue-zone-opt .zp { color: #fff; }
html[data-theme="dark"] .ue-success p { color: rgba(255,255,255,.6); }
/* overlay recherche */
html[data-theme="dark"] .ue-search-ov, html[data-theme="dark"] .ue-search-top { background: #111; }
html[data-theme="dark"] .ue-search-top { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .ue-search-back { background: rgba(255,255,255,.08); color: #fff; }
html[data-theme="dark"] .ue-search-top input { background: #1C1C1E; border-color: rgba(255,255,255,.15); color: #fff; }
html[data-theme="dark"] .ue-search-x { color: #fff; }
html[data-theme="dark"] .ue-sr-row { border-color: rgba(255,255,255,.06); }
html[data-theme="dark"] .ue-sr-img { background: #1C1C1E; color: rgba(255,255,255,.3); }

/* ---------- 3. Boutons +/− et quantité (dark) : fond noir, blanc, contour blanc ---------- */
html[data-theme="dark"] .ue-stepper { background: #000 !important; border: 1.5px solid #fff !important; }
html[data-theme="dark"] .ue-stepper button { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html[data-theme="dark"] .ue-stepper b { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html[data-theme="dark"] .ue-add { background: #000 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; border: 1.5px solid #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,.5); }

/* ---------- 4. Panier (dark) ---------- */
/* Bouton d'ouverture : fond blanc, tout en noir */
html[data-theme="dark"] .ue-cartbar { background: #fff !important; color: #000 !important; -webkit-text-fill-color: #000 !important; }
html[data-theme="dark"] .ue-cartbar * { color: #000 !important; -webkit-text-fill-color: #000 !important; }
/* Fenêtre ouverte : fond noir, tout en blanc */
html[data-theme="dark"] .ue-drawer { background: #111 !important; color: #fff; border-top: 1px solid rgba(255,255,255,.12); }
html[data-theme="dark"] .ue-grip { background: rgba(255,255,255,.25); }
html[data-theme="dark"] .ue-cart-row { border-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .ue-cart-thumb { background: #1C1C1E; }
html[data-theme="dark"] .ue-cart-row .rm { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html[data-theme="dark"] .ue-cart-total { color: #fff; }
/* Bouton Order/Commander : fond blanc, tout en noir (déjà géré, on verrouille les enfants) */
html[data-theme="dark"] .ue-checkout-btn .ue-cta-logo { background: #fff; }

/* ---------- 5. États sélectionnés (dark) : blanc/noir, tout change ensemble ---------- */
/* Tuiles de paiement */
html[data-theme="dark"] .ue-pay-tile { background: #000; border: 1.5px solid #fff; }
html[data-theme="dark"] .ue-pay-tile .ue-pay-name { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html[data-theme="dark"] .ue-pay-tile img.ue-pay-logo { background: #fff; }
html[data-theme="dark"] .ue-pay-tile.sel { background: #fff !important; border-color: #fff !important; }
html[data-theme="dark"] .ue-pay-tile.sel .ue-pay-name { color: #000 !important; -webkit-text-fill-color: #000 !important; }
/* Options ASAP / Plus tard */
html[data-theme="dark"] .ue-fx-opt { background: #000 !important; border: 1.5px solid #fff !important; }
html[data-theme="dark"] .ue-fx-opt b { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html[data-theme="dark"] .ue-fx-opt span { color: rgba(255,255,255,.7) !important; -webkit-text-fill-color: rgba(255,255,255,.7) !important; }
html[data-theme="dark"] .ue-fx-opt.sel { background: #fff !important; border-color: #fff !important; }
html[data-theme="dark"] .ue-fx-opt.sel b { color: #000 !important; -webkit-text-fill-color: #000 !important; }
html[data-theme="dark"] .ue-fx-opt.sel span { color: #333 !important; -webkit-text-fill-color: #333 !important; font-weight: 600; }
/* Lignes de mode (hero) */
html[data-theme="dark"] .ue-fx-row { background: #000 !important; border: 1px solid rgba(255,255,255,.2) !important; }
html[data-theme="dark"] .ue-fx-tx { color: #fff; }
html[data-theme="dark"] .ue-qr-btn { background: #000 !important; border: 1.5px dashed #fff !important; color: #fff !important; }
html[data-theme="dark"] .ue-qr-btn svg { stroke: #fff; }
/* Zones de livraison */
html[data-theme="dark"] .ue-zone-opt[aria-selected="true"] { background: #fff !important; color: #000 !important; -webkit-text-fill-color: #000 !important; }
html[data-theme="dark"] .ue-zone-opt[aria-selected="true"] .zp { color: #000 !important; -webkit-text-fill-color: #000 !important; }
/* Bouton Suivant */
html[data-theme="dark"] .ue-next-btn { background: #000; border-color: #fff; color: #fff; -webkit-text-fill-color: #fff; }
html[data-theme="dark"] .ue-next-btn:active { background: #1C1C1E; }
/* Bouton géolocalisation */
html[data-theme="dark"] .ue-geobtn { background: #000; border-color: rgba(255,255,255,.3); color: #fff; }
/* Éléments désactivés : identifiables */
html[data-theme="dark"] .ue-day:disabled, html[data-theme="dark"] .ue-slot:disabled { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.1) !important; color: rgba(255,255,255,.3) !important; -webkit-text-fill-color: rgba(255,255,255,.3) !important; }

/* ---------- 8. Champs iOS : 16px minimum (anti-zoom auto), pas de débordement ---------- */
.ue input, .ue select, .ue textarea, .pf-num, .pf-search, .pf-cc {
  font-size: 16px !important;
  max-width: 100%;
}
.ue .ue-fld, .pf-wrap { max-width: 100%; overflow: hidden; }
.ue .pf-wrap { box-sizing: border-box; }
html, body { overflow-x: clip; }
.ue-co { overflow-x: hidden; }

/* ---------- Animation "fly to cart" premium ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fly-clone {
    position: fixed; left: 0; top: 0; z-index: 9999;
    border-radius: 18px; overflow: hidden; pointer-events: none;
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
    will-change: transform, opacity;
  }
  .fly-clone img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .fly-clone-dot { border-radius: 50%; background: #111; }
  .fly-trail {
    position: fixed; left: 0; top: 0; z-index: 9998;
    width: 18px; height: 18px; border-radius: 50%;
    background: #111;
    pointer-events: none; will-change: transform, opacity;
  }
  .fly-land { animation: fly-land .42s cubic-bezier(.22,1,.36,1); }
}
@keyframes fly-land {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); }
  70% { transform: scale(0.97); }
  100% { transform: scale(1); }
}
html[data-theme="dark"] .fly-clone-dot,
html[data-theme="dark"] .fly-trail { background: #fff; }

/* ============ Sessions de table (commandes de groupe) ============ */
.ue-sess-modal { max-height: 92vh; display: flex; flex-direction: column; }
.ue-sess-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ue-sess-h { font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.ue-sess-h:first-child { margin-top: 0; }
.ue-sess-order { border: 1px solid var(--border, #e5e5e5); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.ue-sess-oh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ue-sess-time { font-size: 12px; color: var(--muted, #666); }
.ue-sess-st { font-size: 12px; font-weight: 600; }
.ue-sess-li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 2px 0; }
.ue-sess-ot { text-align: right; font-weight: 700; margin-top: 6px; font-size: 14px; }
.ue-sess-pn { font-size: 13px; font-weight: 700; margin: 10px 0 6px; }
.ue-sess-p:first-child .ue-sess-pn { margin-top: 0; }
.ue-sess-bill { border: 1px solid var(--border, #e5e5e5); border-radius: 10px; padding: 10px 12px; }
.ue-sess-brow { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.ue-sess-rem { font-size: 16px; font-weight: 700; border-top: 1px solid var(--border, #e5e5e5); margin-top: 6px; padding-top: 8px; }
.ue-sess-warn { background: #fff8e1; border: 1px solid #f0d97a; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 12px; }
html[data-theme="dark"] .ue-sess-warn { background: #3a2f10; border-color: #6b5a22; }

/* ---- iOS anti-zoom (règle Elhadji 2026-10-07) ----
   Champs de la fiche/checkout déclarés à 13px (.ue-input, recherche
   .ue-searchwrap) : sur pointeur tactile ils passent à 16px, sinon
   Safari iOS zoome au toucher et la vue se décale. Bureau inchangé.
   Garde bloquante : « ios-form-overflow ». */
@media (pointer: coarse) {
  .ue-searchwrap input, .ue-input { font-size: 16px; }
}

/* Barre d'application (boutique ouverte DEPUIS l'appli tibida,
 * from=app) : retour à gauche, X à droite, dans les cercles du
 * dessin des pages de l'appli ; la navigation du site disparaît,
 * le contenu de la boutique ne change pas. */
#mk-appbar { position: sticky; top: 0; z-index: 300; display: flex; align-items: center; gap: 10px; background: #fff; border-bottom: 1px solid #f0f0f0; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
#mk-appbar[hidden] { display: none; }
#mk-appbar button { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e7e2d6; background: #fff; display: flex; align-items: center; justify-content: center; color: #161616; cursor: pointer; }
#mk-appbar b { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; color: #161616; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.from-app .nav { display: none; }
/* Même masquage dès <html> (classe posée avant le premier
   dessin par le script d'en-tête de place.html) : l'en-tête
   du site n'apparaît jamais dans l'application, et la barre
   d'application est visible d'emblée. */
html.from-app .nav { display: none; }
html.from-app #mk-appbar { display: flex; }
/* Zéro bleu, loi système : le lien d'attribution Leaflet ne
 * doit jamais rendre le bleu de la bibliothèque. */
.leaflet-control-attribution { color: #8a8578; }
.leaflet-control-attribution a { color: inherit; }
