/* =========================================================
   O'Kebab Time — thème vert pistache & marron
   ========================================================= */
@font-face { font-family: "Anton"; src: url("/fonts/anton.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("/fonts/permanent-marker.woff2") format("woff2"); font-display: swap; }

/* --pistache* = couleur du magasin : redéfinie dans <head> de index.ejs (config/magasins.json › couleur) */
:root {
  --pistache: #A3C855;
  --pistache-light: #D9E8B0;
  --pistache-dark: #6F9A2C;
  --marron: #3B2416;
  --marron-2: #5A3721;
  --marron-3: #8A5A36;
  --creme: #FBF7EE;
  --creme-2: #F2EADA;
  --texte: #2B1A0F;
  --muted: #7A6A5C;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(59, 36, 22, .10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --vert-ouvert: #6F9A2C;   /* « Ouvert » reste vert quelle que soit la couleur du magasin */
  --font-affiche: "Anton", "Arial Black", Impact, sans-serif;
  --font-pinceau: "Permanent Marker", "Segoe Print", cursive;
  --font-title: "Arial Black", "Segoe UI Black", "Helvetica Neue", Impact, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(130px + var(--encours-h, 0px)); }
body { font-family: var(--font); color: var(--texte); background: var(--creme); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: .92rem; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; cursor: pointer;
  font: 700 1rem var(--font); padding: .85rem 1.5rem; border-radius: 999px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-pistache { background: var(--pistache); color: var(--marron); box-shadow: 0 6px 18px rgba(163, 200, 85, .35);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--pistache) 35%, transparent); }
.btn-pistache:hover { background: #B3D66A; }
.btn-outline { border: 2px solid rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(59, 36, 22, .96); backdrop-filter: blur(8px); color: #fff; }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand img { height: 56px; width: auto; display: block; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; opacity: .85; }
.nav-links a:hover { opacity: 1; color: var(--pistache); }
/* Pastille du magasin courant, en haut à droite → ouvre le panneau « Trouver mon restaurant » */
.nav-magasin { display: flex; align-items: center; gap: .45rem; text-decoration: none; padding: .35rem .9rem .35rem .55rem; flex-shrink: 0;
  border: 1.5px solid rgba(163, 200, 85, .55); border-radius: 999px; line-height: 1.1; transition: background .15s; }
.nav-magasin:hover { background: rgba(163, 200, 85, .15); }
.nav-magasin-pin { width: 18px; height: 24px; flex: none; filter: drop-shadow(0 2px 4px rgba(255, 199, 44, .35)); }
.ico-pin { width: 24px; height: 32px; display: inline-block; }
.ico-pin-sm { width: 15px; height: 20px; vertical-align: -3px; }
.nav-magasin strong { display: block; font-size: .95rem; }
.nav-magasin small { display: block; font-size: .72rem; color: var(--pistache); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.st-ouvert { color: var(--vert-ouvert) !important; }
.st-ferme { color: #B4472B !important; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- Panneau « Trouver mon restaurant » (tiroir à droite, façon McDo / Domino's) ---------- */
.pick-voile { position: fixed; inset: 0; z-index: 90; background: rgba(36, 22, 13, .55); }
.pick { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%); background: var(--creme);
  color: var(--texte); display: flex; flex-direction: column; gap: .8rem; padding: 1.2rem 1.2rem 1rem; overflow-y: auto;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .25); transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.pick.open { transform: none; visibility: visible; }
.pick > * { flex-shrink: 0; }
body.pick-ouvert { overflow: hidden; }
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pick-head h2 { font-family: var(--font-title); font-size: 1.3rem; color: var(--marron); margin: 0; }
.pick-head h2 span { color: var(--pistache-dark); }
.pick-close { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--marron); padding: .3rem .5rem; border-radius: 8px; }
.pick-close:hover { background: var(--creme-2); }
.pick-geo { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; padding: .8rem; border-radius: 12px;
  border: 2px solid var(--pistache); background: #fff; color: var(--marron); font: inherit; font-weight: 700; cursor: pointer; }
.pick-geo:hover { background: var(--pistache-light); }
.pick-geo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pick-geo svg .plein { fill: #F5A300; stroke: none; }
.pick-pin { width: 22px; height: 29px; flex: none; align-self: flex-start; margin-top: .15rem; }
.pick-search { display: flex; border: 2px solid var(--creme-2); border-radius: 12px; background: #fff; overflow: hidden; }
.pick-search:focus-within { border-color: var(--pistache); }
.pick-search input { flex: 1; min-width: 0; border: 0; padding: .8rem .9rem; font: inherit; font-size: 1rem; outline: none; background: none; }
.pick-search button { border: 0; background: var(--pistache); padding: 0 1rem; font-size: 1.1rem; cursor: pointer; }
.pick-msg { margin: 0; min-height: 1.2em; font-size: .9rem; font-weight: 600; color: var(--marron-3); }
.pick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.pick-item { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; background: #fff; border-radius: 14px;
  border: 2px solid transparent; box-shadow: 0 2px 8px rgba(59, 36, 22, .06); }
.pick-item.proche { border-color: var(--pistache); }
.pick-item.proche .pick-info strong::after { content: "Le plus proche"; margin-left: .5rem; padding: .1rem .45rem; border-radius: 999px;
  background: var(--pistache); color: var(--marron); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; vertical-align: 2px; }
.pick-item.actuel { background: var(--pistache-light); }
.pick-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.pick-info strong { font-size: 1.05rem; color: var(--marron); }
.pick-adr { font-size: .85rem; color: var(--muted); }
.pick-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .82rem; font-weight: 600; }
.pick-meta .loc-statut::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; background: currentColor; }
.pick-meta .loc-statut.ouvert { color: var(--vert-ouvert); }
.pick-meta .loc-statut.ferme { color: #B4472B; }
.pick-dist { color: var(--marron-3); }
.pick-actuel { font-size: .8rem; font-weight: 700; color: var(--pistache-dark); white-space: nowrap; }
.pick-carte { margin-top: auto; padding-top: .6rem; text-align: center; font-weight: 700; color: var(--marron); }

/* ---------- Hero : bannière + bandeau infos ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero { position: relative; overflow: hidden; color: #fff; padding: 22px 0 0;
  background: radial-gradient(circle at 50% 0%, #5A3721 0%, var(--marron) 45%, #24160D 100%);
  background: radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--pistache) 32%, #5A3721) 0%, var(--marron) 48%, #24160D 100%); }
.hero > .container { position: relative; }
.hero-banner { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 25px 60px rgba(0,0,0,.45); aspect-ratio: 16 / 9; object-fit: cover; }
.hero-banner-commune { aspect-ratio: 2 / 1; }
/* Identité de la ville : nom en grand + devise, et filigrane géant en fond (couleur du magasin) */
.hero-filigrane { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 400 clamp(7rem, 22vw, 20rem)/1 var(--font-affiche); text-transform: uppercase; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 2px var(--pistache); opacity: .13; }
.hero-ville { position: relative; text-align: center; margin-bottom: 1.4rem; }
/* « ← Nos restaurants » : pastille de marque, un point par restaurant à sa couleur (le magasin actuel cerclé) */
.hero-retour { position: absolute; left: 0; top: 0; z-index: 1; display: inline-flex; gap: .65rem; align-items: center; padding: .3rem .95rem .3rem .3rem;
  border-radius: 999px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .2s, background .2s, transform .2s; }
.hero-retour:hover { border-color: var(--pistache); background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.hr-fleche { width: 34px; height: 34px; border-radius: 50%; background: var(--pistache); color: var(--marron); display: grid; place-items: center;
  font: 900 1.05rem/1 var(--font); transition: transform .2s; }
.hero-retour:hover .hr-fleche { transform: translateX(-3px); }
.hr-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.hr-txt small { font-size: .68rem; font-weight: 700; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: 1px; }
.hr-txt strong { font: 400 1.05rem var(--font-affiche); text-transform: uppercase; letter-spacing: .04em; }
.hr-points { display: flex; gap: 4px; padding-left: .15rem; transition: gap .2s; }
.hero-retour:hover .hr-points { gap: 7px; }
.hr-points i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .25); }
.hr-points i.ici { box-shadow: 0 0 0 2px var(--marron), 0 0 0 3.5px #fff; }
.hero-bienvenue { font: 1.25rem var(--font-pinceau); color: var(--pistache); transform: rotate(-2deg); }
.hero-nom { display: inline-flex; align-items: center; gap: .9rem; margin-top: .1rem; position: relative;
  font: 400 clamp(2.8rem, 7vw, 5rem)/1 var(--font-affiche); text-transform: uppercase; letter-spacing: .02em; }
.hero-nom img { width: clamp(26px, 3.4vw, 40px); height: auto; filter: drop-shadow(0 4px 10px rgba(255, 199, 44, .35)); }
.hero-nom::after { content: ""; position: absolute; left: 18%; right: 0; bottom: -.14em; height: .09em; border-radius: 99px;
  background: var(--pistache); transform: rotate(-1.2deg); }
.hero-devise { margin-top: .9rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: rgba(255, 255, 255, .7); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1.6rem 0; }
.strip { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(163, 200, 85, .25);
  border-radius: 18px 18px 0 0; overflow: hidden; transform: translateY(1px); }
.strip li { background: var(--creme); color: var(--texte); display: flex; gap: .7rem; align-items: center; padding: 1.1rem 1.2rem; font-size: .9rem; line-height: 1.35; }
.strip span { font-size: 1.6rem; }
.strip strong { display: block; font-size: .95rem; color: var(--marron); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-brown { background: var(--marron); color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.kicker { display: inline-block; color: var(--pistache-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; }
.kicker-light { color: var(--pistache); }
h2 { font: 900 clamp(2rem, 4.5vw, 2.8rem)/1.1 var(--font-title); letter-spacing: -1px; margin: .4rem 0 .8rem; }
.section-head p { color: var(--muted); }
.empty { text-align: center; color: var(--muted); }

/* ---------- Menu : onglets par catégorie ---------- */
/* Fond chaud + halos de la couleur du magasin (--pistache = couleur du magasin) */
.section-menu { background: #F6EEDF;   /* repli si color-mix() non géré */
  background:
  radial-gradient(ellipse 55% 40% at 0% 0%, color-mix(in srgb, var(--pistache) 30%, transparent), transparent 70%),
  radial-gradient(ellipse 50% 35% at 100% 100%, color-mix(in srgb, var(--pistache) 26%, transparent), transparent 70%),
  #F6EEDF; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 0 .8rem; margin-bottom: 1.5rem; position: sticky; top: calc(72px + var(--encours-h, 0px)); z-index: 10;
  background: rgba(246, 238, 223, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 18px; padding-left: .5rem; padding-right: .5rem; scrollbar-width: none; justify-content: center; flex-wrap: wrap; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; text-decoration: none; padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 2px solid var(--creme-2);
  font-weight: 700; font-size: .9rem; transition: all .15s; }
.chip:hover, .chip.active { background: var(--marron); border-color: var(--marron); color: var(--pistache); }
/* Onglets (main.js) : une catégorie à la fois ; ses plats en cartes, grille 4 → 3 → 2 → 1 colonnes */
.js .onglet:not(.actif) { display: none; }
.js .onglet.actif { animation: monte .25s ease-out; }
.onglet + .onglet { margin-top: 2rem; }   /* sans JS : toutes à la suite */
.onglet-head { display: flex; align-items: center; gap: 1.1rem; padding: .8rem; margin-bottom: 1rem; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--marron) 0%, var(--marron-2) 100%); box-shadow: var(--shadow); color: #fff; }
.onglet-head img { width: 160px; height: 120px; object-fit: cover; border-radius: 12px; flex: none; }
.onglet-head h3 { font: 900 1.6rem var(--font-title); letter-spacing: -.5px; display: flex; gap: .5rem; align-items: center; }
.onglet-head small { display: inline-block; margin-top: .35rem; color: var(--marron); background: var(--pistache); font-weight: 800; font-size: .8rem; padding: .2rem .7rem; border-radius: 999px; }
.onglet-head > div { padding: .3rem .4rem; }
.plats { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .7rem; }
.plat { position: relative; display: flex; flex-direction: column; gap: .2rem; background: #fff; border: 1px solid rgba(59, 36, 22, .06); border-radius: 14px;
  padding: .75rem .85rem .7rem; box-shadow: 0 2px 10px rgba(59, 36, 22, .05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.plat.a-img { padding-right: 70px; }
.plat img { position: absolute; top: .7rem; right: .7rem; width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
.plat-nom { font-weight: 800; font-size: .93rem; line-height: 1.25; color: var(--marron); }
.plat-desc { color: var(--muted); font-size: .78rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plat-bas { margin-top: auto; padding-top: .4rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.plat-prix { font-weight: 900; font-size: .98rem; color: var(--marron); }
.plat .add { width: 32px; height: 32px; font-size: 1.05rem; }
.star { color: #E0A93B; font-style: normal; }
.menu-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.menu-note strong { color: var(--marron); }

/* ---------- Commander : panier (public/js/commande.js) ---------- */
.order-head { text-align: center; max-width: 640px; margin: 0 auto 1rem; }
.order-head p { opacity: .85; }
.order { text-align: center; max-width: 760px; margin: 0 auto; }
.order-steps { list-style: none; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.order-steps li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1rem 1.3rem;
  display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.order-steps span { width: 32px; height: 32px; border-radius: 50%; background: var(--pistache); color: var(--marron); display: grid; place-items: center; font-weight: 900; }
.order-note { margin-top: 1.2rem; opacity: .75; font-size: .95rem; }
.order-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.apercu { text-align: center; background: rgba(163, 200, 85, .15); border: 1px dashed var(--pistache); color: var(--pistache);
  border-radius: 12px; padding: .6rem 1rem; max-width: 560px; margin: 0 auto 1rem; font-weight: 700; font-size: .9rem; }

/* Bandeau « commande en cours » (main.js) : collé sous la barre de navigation */
.encours { position: sticky; top: 72px; z-index: 49; display: grid; }
.encours[hidden] { display: none; }
.encours-ligne { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: .6rem 20px; text-decoration: none;
  background: var(--pistache); color: var(--marron); font-size: .95rem; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); }
.encours-ligne + .encours-ligne { border-top: 1px solid rgba(59, 36, 22, .15); }
.encours-ligne b { flex: none; background: var(--marron); color: #fff; padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; }
.encours-ligne.prete { animation: pulse 2.2s infinite; }

/* Logos des moyens de paiement (partials/paiements.ejs) */
.paiements { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: .7rem 0 .4rem; }
.paiements img { height: 36px; width: auto; border-radius: 5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.order-head .paiements { margin: .9rem 0 1.2rem; }
.info-block .paiements { justify-content: flex-start; margin: .4rem 0 0; }
.pan-paiement { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .85rem; color: var(--muted); font-weight: 700; margin-bottom: .4rem; }
.pan-paiement .paiements { margin: 0; justify-content: flex-start; gap: .3rem; }
.pan-paiement .paiements img { height: 28px; box-shadow: none; }

/* Menu : ligne cliquable + bouton ＋ */
.plat.commandable { cursor: pointer; }
.plat.commandable:hover { transform: translateY(-2px); border-color: var(--pistache); box-shadow: 0 10px 24px rgba(59, 36, 22, .12); }
.add { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--marron); color: #fff;
  font: 900 1.25rem/1 var(--font); cursor: pointer; display: grid; place-items: center; transition: transform .15s, background .15s; }
.plat.commandable:hover .add { background: var(--pistache); color: var(--marron); transform: scale(1.08); }

/* Panier dans la barre du haut (toujours visible) + pastille « N dans le panier » sur le ＋ des plats */
.nav-panier { position: relative; display: inline-flex; align-items: center; gap: .3rem; flex-shrink: 0; border: 0; cursor: pointer;
  padding: .45rem .75rem; border-radius: 999px; background: var(--pistache); color: var(--marron); font: 900 1rem/1 var(--font); }
.nav-panier[hidden] { display: none; }
.nav-panier.bump { animation: bump .35s ease-out; }
.add { position: relative; }
.add[data-qte]::after { content: attr(data-qte); position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 4px;
  border-radius: 999px; background: var(--pistache); color: var(--marron); border: 2px solid #fff; font: 900 .7rem/15px var(--font); text-align: center; }
.plat.dans-panier { border-color: var(--pistache); }

/* Barre du panier (collée en bas) + message */
.panier-bar { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));   /* iPhone : au-dessus de la zone de Safari */ transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: .8rem; width: min(520px, calc(100% - 32px)); padding: .65rem .7rem .65rem .8rem;
  border: 2px solid #fff; border-radius: 999px; background: var(--pistache); color: var(--marron); font: 800 1rem var(--font); cursor: pointer;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .12), 0 16px 36px rgba(0, 0, 0, .45); animation: monte .3s ease-out; }   /* couleur du magasin + liseré blanc : visible sur fond clair ET marron */
.panier-bar[hidden] { display: none; }
.panier-bar.bump { animation: bump .35s ease-out; }
.pb-n { min-width: 30px; height: 30px; padding: 0 .45rem; border-radius: 999px; background: var(--marron); color: #fff; display: grid; place-items: center; font-weight: 900; }
.panier-bar strong { margin-left: auto; background: var(--marron); color: #fff; padding: .35rem .85rem; border-radius: 999px; }
body.a-panier .call-fab { display: none; }
body.a-panier .footer { padding-bottom: 90px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); width: fit-content; margin: 0 auto; z-index: 80;
  background: var(--texte); color: #fff; font-weight: 700; font-size: .92rem; padding: .65rem 1.1rem; border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .3); animation: monte .2s ease-out; text-align: center; }
.toast[hidden] { display: none; }
@keyframes monte { from { opacity: 0; translate: 0 14px; } }
@keyframes bump { 40% { scale: 1.06; } }
@keyframes secoue { 25%, 75% { translate: -6px 0; } 50% { translate: 6px 0; } }

/* Fenêtres : fiche produit et panier (centrées sur ordinateur, tiroir du bas sur mobile) */
html.sheet-ouverte { overflow: hidden; }
.sheet { border: 0; padding: 0; background: transparent; color: var(--texte); width: 100%; max-width: min(560px, calc(100% - 32px)); max-height: 100%; margin: auto; overflow: visible; }
.sheet::backdrop { background: rgba(28, 17, 10, .62); backdrop-filter: blur(3px); }
.sheet[open] { animation: monte .25s cubic-bezier(.2, .8, .2, 1); }
.sheet-in { display: flex; flex-direction: column; max-height: min(88vh, 860px); background: var(--creme); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.sheet-head { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.3rem .9rem; background: #fff; border-bottom: 1px solid var(--creme-2); }
.sheet-head h3 { font: 900 1.4rem/1.2 var(--font-title); color: var(--marron); }
.sheet-head .muted { font-size: .88rem; margin-top: .15rem; }
.sheet-x { margin-left: auto; flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--creme-2); color: var(--marron); font-size: 1rem; cursor: pointer; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .3rem 1.3rem 1rem; }
.sheet-foot { display: flex; gap: .8rem; align-items: center; padding: .85rem 1.3rem calc(.85rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--creme-2); }
.sheet-foot[hidden] { display: none; }
.sheet-ok { flex: 1; justify-content: space-between; padding: .9rem 1.3rem; white-space: nowrap; }
@media (max-width: 460px) { .sheet-ok .large { display: none; } }
.sheet-ok:hover { transform: none; }
.sheet-ok.envoi { opacity: .6; cursor: wait; }

/* Options de la fiche */
.opt-grp { padding: .95rem 0; border-bottom: 1px dashed var(--creme-2); }
.opt-grp:last-child { border-bottom: 0; }
.opt-grp h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .55rem; font-size: 1rem; margin-bottom: .6rem; color: var(--marron); }
.opt-grp h4 small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.opt-grp.manque { animation: secoue .35s; }
.opt-grp.manque h4 { color: #B0412E; }
.badge-req { background: var(--marron); color: #fff; font-size: .66rem; font-weight: 800; padding: .12rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.manque .badge-req { background: #B0412E; }
.opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.opt, .opt-radio span { border: 2px solid var(--creme-2); background: #fff; color: var(--marron); font: 700 .92rem var(--font); padding: .55rem .95rem;
  border-radius: 999px; cursor: pointer; transition: background .12s, border-color .12s, opacity .12s; display: inline-block; }
.opt small { color: var(--muted); font-weight: 600; }
.opt:hover, .opt-radio:hover span { border-color: var(--pistache); }
.opt[aria-pressed="true"], .opt-radio input:checked + span { background: var(--pistache); border-color: var(--pistache); }
.opt[aria-pressed="true"] small { color: var(--marron); }
.opt.off { opacity: .4; }
.opt-garni::before { content: "✓ "; }
.opt-garni[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; background: var(--creme); }
.opt-garni[aria-pressed="false"]::before { content: "✕ "; text-decoration: none; display: inline-block; margin-right: .25em; }
.opt-sub { margin-top: .65rem; padding: .7rem .8rem .8rem; background: #fff; border: 2px solid var(--pistache-light); border-radius: 16px; animation: monte .2s ease-out; }
.opt-sub[hidden] { display: none; }
.opt-sub p { font-size: .82rem; font-weight: 800; color: var(--muted); margin-bottom: .45rem; }
.opt-radio input { position: absolute; opacity: 0; pointer-events: none; }
.opt-radio input:focus-visible + span { outline: 3px solid var(--pistache-dark); outline-offset: 2px; }
.qte { flex: none; display: flex; align-items: center; gap: .2rem; background: var(--creme-2); border-radius: 999px; padding: .25rem; }
.qte button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: var(--marron); font: 900 1.2rem/1 var(--font); cursor: pointer; }
.qte output { min-width: 2ch; text-align: center; font-weight: 900; }
.qte-sm button { width: 32px; height: 32px; font-size: 1rem; }

/* Panier */
.pan-lignes { list-style: none; padding-top: .9rem; }
.pan-ligne { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; background: #fff; border-radius: 16px; padding: .8rem .9rem .6rem; margin-bottom: .6rem; box-shadow: 0 2px 8px rgba(59, 36, 22, .06); }
.pan-nom { font-weight: 800; }
.pan-prix { font-weight: 900; text-align: right; }
.pan-det { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.pan-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.lien { border: 0; background: none; color: var(--pistache-dark); font: 700 .88rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: .35rem .2rem; }
.lien-suppr { margin-left: auto; color: #B0412E; }
.pan-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15rem; padding: .7rem .2rem .3rem; border-top: 2px solid var(--marron); }
.pan-total strong { font: 900 1.4rem var(--font-title); color: var(--marron); }
.pan-form[hidden], .pan-vide[hidden], .pan-ok[hidden] { display: none; }
.pan-form h4 { margin: 1rem 0 .55rem; color: var(--marron); }
.pan-form label, .pan-retrait legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .75rem; }
.pan-form .opt-radio { display: inline-block; margin: 0; font-size: inherit; }
.pan-form input:not([type="radio"]), .pan-form textarea { display: block; width: 100%; margin-top: .25rem; font: 1rem var(--font); padding: .7rem .9rem;
  border: 2px solid var(--creme-2); border-radius: 12px; background: #fff; color: var(--texte); }
.pan-form input:focus, .pan-form textarea:focus { outline: none; border-color: var(--pistache); }
.pan-retrait { border: 0; margin-bottom: .75rem; }
.pan-retrait legend { margin-bottom: .45rem; }
.pan-retrait input[type="time"] { max-width: 180px; margin-top: .6rem; }
.pan-retrait input[hidden] { display: none; }
.pan-tel { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: #fff; border: 2px dashed var(--pistache); text-align: center; }
.pan-tel p + p { margin-top: .35rem; }
.pan-tel-titre { font: 900 1.15rem var(--font-title); color: var(--marron); }
.pan-tel-num { display: inline-block; margin: .5rem 0 .2rem; font: 400 1.9rem var(--font-affiche); letter-spacing: .04em; color: var(--marron); text-decoration: none; }
.pan-tel-foot { flex: 1; text-align: center; font-weight: 700; color: var(--muted); }
.pan-err { color: #B0412E; font-weight: 700; }
.pan-err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.pan-vide { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.pan-vide p { margin-bottom: 1rem; font-size: 1.05rem; }
.pan-ok { text-align: center; padding: 1.5rem .5rem 1rem; }
.pan-ok > * + * { margin-top: .5rem; }
.pan-ok-ico { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--pistache); color: var(--marron); display: grid; place-items: center; font: 900 2rem/1 var(--font); }
.pan-ok-num { font: 400 3.4rem/1.1 var(--font-affiche); color: var(--marron); letter-spacing: 1px; }
.pan-ok .btn { margin-top: 1.2rem; }

/* ---------- Infos ---------- */
.infos-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: stretch; }
.info-block { margin-top: 1.5rem; }
.info-block h4 { font-size: 1.05rem; margin-bottom: .3rem; }
.link { color: var(--pistache-dark); font-weight: 700; text-decoration: none; }
.tel-big { font: 900 1.6rem var(--font-title); text-decoration: none; color: var(--marron); }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: .35rem .6rem; border-bottom: 1px solid var(--creme-2); }
.hours td:last-child { text-align: right; }
.hours tr.today td { background: var(--pistache-light); font-weight: 800; }
.hours tr.today td:first-child { border-radius: 8px 0 0 8px; }
.hours tr.today td:last-child { border-radius: 0 8px 8px 0; }
.socials { display: flex; gap: .6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.socials a { text-decoration: none; background: var(--marron); color: #fff; padding: .45rem 1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; border: 6px solid #fff; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: #1E120A; color: rgba(255,255,255,.8); padding: 60px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--pistache), #F2B705, var(--pistache)); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 110px; height: auto; margin-bottom: .6rem; }
.footer-brand p { max-width: 28ch; opacity: .75; }
.footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: .8rem; }
.footer-col p { margin-bottom: .35rem; }
.footer-ici { color: var(--pistache); }
.footer-ici::before { content: "● "; font-size: .7em; vertical-align: 2px; }
.footer-tous { color: var(--pistache) !important; font-weight: 700; }
.footer a { color: var(--pistache); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .muted { color: rgba(255,255,255,.5); }

/* Crédit JEDI-IT */
.credit { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; text-decoration: none !important; color: #fff !important;
  padding: 1.1rem 1.5rem; border-radius: 18px; position: relative; isolation: isolate;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(6px); transition: transform .25s, border-color .25s, box-shadow .25s; }
.credit::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .25s;
  background: linear-gradient(120deg, rgba(14,165,233,.35), rgba(14,165,233,0) 45%, rgba(37,99,235,.25)); }
.credit:hover { transform: translateY(-3px); border-color: rgba(14,165,233,.6); box-shadow: 0 18px 40px rgba(14,165,233,.18); }
.credit:hover::before { opacity: 1; }
.credit-label { font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.5); flex-basis: 100%; }
.credit img { width: 100px; height: auto; filter: drop-shadow(0 4px 14px rgba(14,165,233,.35)); }
.credit-txt { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.credit-txt strong { font: 900 1.6rem/1 var(--font-title); letter-spacing: 4px; color: #fff; }
.credit-txt strong b { color: #0EA5E9; }
.credit-txt small { color: rgba(255,255,255,.6); margin-top: .35rem; font-size: .88rem; }
.credit-go { background: linear-gradient(135deg, #0EA5E9, #2563EB); color: #fff; font-weight: 800; font-size: .9rem; padding: .6rem 1.1rem; border-radius: 999px; transition: background .2s; }
.credit:hover .credit-go { filter: brightness(1.12); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 20px 90px; margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.45) !important; }

/* ---------- Touches modernes ---------- */
.nav { transition: box-shadow .25s, background .25s; }
.nav.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.35); background: rgba(36, 22, 13, .92); }
.hero-banner { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(.97) translateY(10px); } }
.section-brown { background: radial-gradient(circle at 20% 0%, #5A3721 0%, var(--marron) 50%, #2B1A0F 100%); }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-banner, .float, .sheet[open], .panier-bar, .toast, .opt-sub { animation: none; }
}

/* ---------- Boutons flottants (mobile) ---------- */
.call-fab { position: fixed; bottom: 18px; z-index: 60; text-decoration: none; font-weight: 800; border-radius: 999px;
  padding: .9rem 1.3rem; box-shadow: 0 10px 25px rgba(0,0,0,.3); }
.call-fab { right: 18px; background: var(--pistache); color: var(--marron); display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .infos-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .chips { justify-content: flex-start; flex-wrap: nowrap; top: calc(72px + var(--encours-h, 0px)); }
}
@media (max-width: 720px) {
  .hero { padding-top: 14px; }
  .hero-retour { position: static; margin-bottom: .9rem; }
  .hero-retour:hover { transform: none; }
  .hero-bienvenue { font-size: 1.05rem; }
  .hero-filigrane { top: 70px; opacity: .1; }
  .hero-banner { border-radius: 14px; }
  .hero-cta .btn { width: 100%; }
  .strip { grid-template-columns: 1fr; border-radius: 14px 14px 0 0; }
  .strip li { padding: .8rem 1rem; }
  .onglet-head { gap: .8rem; padding: .6rem; }
  .onglet-head img { width: 96px; height: 72px; border-radius: 10px; }
  .onglet-head h3 { font-size: 1.25rem; }
  .plats { grid-template-columns: 1fr 1fr; gap: .6rem; }   /* mobile : 2 cartes par ligne, façon appli */
  .plat { padding: .7rem .7rem .6rem; border-radius: 12px; }
  .plat-nom { font-size: .88rem; }
  .plat-desc { font-size: .74rem; }
  .plat-prix { font-size: .92rem; }
  .plat .add { width: 30px; height: 30px; font-size: 1rem; }
  .plat.a-img { padding-right: .8rem; }
  .plat img { position: static; order: -1; width: 100%; height: 80px; margin-bottom: .3rem; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--marron); flex-direction: column; gap: 0; padding: .5rem 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .9rem 20px; }
  .nav-burger { display: block; margin-left: 0; }
  .nav-call { display: none; }
  .nav-inner { gap: .8rem; }
  .nav-magasin { margin-left: auto; padding: .3rem .7rem .3rem .45rem; }
  .call-fab { display: inline-flex; }
  .section { padding: 60px 0; }
  .credit { padding: 1rem; gap: .8rem; }
  .credit img { width: 70px; }
  .credit-go { width: 100%; text-align: center; }
  .sheet { max-width: 100%; margin: auto 0 0; }
  .sheet-in { max-height: 92vh; border-radius: 22px 22px 0 0; }
  .sheet-body, .sheet-head, .sheet-foot { padding-left: 1rem; padding-right: 1rem; }
  .order-cta .btn { width: 100%; }
  .order-steps { flex-direction: column; align-items: center; }
  .order-steps li { width: 100%; max-width: 360px; text-align: left; }
}

/* ---------- Restaurant « bientôt » (en_ligne: false) : fenêtre d'info, pied de page, page d'attente, aperçu privé ---------- */
.bientot-corps { text-align: center; padding-top: 1.2rem; padding-bottom: 1.4rem; }
.bientot-ico { font-size: 2.2rem; }
.bientot-titre { font: 900 1.25rem var(--font-title); color: var(--marron); margin: .3rem 0 .2rem; }
.bientot-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 1.1rem 0 .4rem; }
.bientot-actions:empty { display: none; }
.bientot-btn2, .bt-btn2 { border: 2px solid var(--marron); color: var(--marron); background: #fff; }
.bientot-autres { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--creme-2); }
.bientot-autres p { font-weight: 700; color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.bientot-lien { display: inline-block; margin: .2rem; padding: .55rem 1rem; border-radius: 999px; background: var(--marron); color: #fff; font-weight: 800; text-decoration: none; }
.bientot-lien:hover { background: var(--marron-2); }
.pick-meta .loc-statut.bientot, .acc .pick-meta .loc-statut.bientot { color: #C9A227; }
.pick-bientot { background: transparent; border: 2px solid currentColor; color: var(--muted); }
.footer-bientot { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; opacity: .75; }
.footer-bientot small { font-size: .72rem; border: 1px solid currentColor; border-radius: 999px; padding: 0 .4rem; margin-left: .25rem; }
.footer-bientot:hover { opacity: 1; }
.apercu-prive { position: sticky; top: 0; z-index: 60; text-align: center; background: #FFC72C; color: #1C140E; font-weight: 800; font-size: .85rem; padding: .4rem 1rem; }
.apercu-prive + .nav { top: 30px; }

.bt-page { min-height: 100vh; display: flex; flex-direction: column; color: #fff;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--pistache) 28%, #3A2512) 0%, #120C08 62%); }
.bt { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 40px 20px 30px; text-align: center; }
.bt-logo img { margin: 0 auto; filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .5)); }
.bt-kicker { margin-top: 1rem; font: 1.3rem var(--font-pinceau); color: var(--pistache); transform: rotate(-2deg); }
.bt-ville { display: inline-flex; align-items: center; gap: .8rem; font: 400 clamp(3rem, 12vw, 5.5rem)/1 var(--font-affiche); text-transform: uppercase; letter-spacing: .02em; }
.bt-devise { margin-top: .5rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 800; font-size: .85rem; opacity: .75; }
.bt-carte { margin: 2rem 0 1.6rem; padding: 1.8rem 1.4rem; border-radius: 24px; background: var(--creme); color: var(--texte); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.bt-badge { display: inline-block; background: var(--marron); color: #FFC72C; font-weight: 900; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; padding: .35rem .9rem; border-radius: 999px; }
.bt-carte h2 { font: 900 1.6rem/1.2 var(--font-title); color: var(--marron); margin: .9rem 0 .5rem; }
.bt-carte p { color: var(--muted); }
.bt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.3rem; }
.bt-autres-titre { font-weight: 700; opacity: .8; margin-bottom: .7rem; }
.bt-autres { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.bt-tous { display: inline-block; margin-top: 1.6rem; color: #fff; opacity: .75; font-weight: 700; text-decoration: none; }
.bt-tous:hover { opacity: 1; }
.bt-pied { text-align: center; padding: 1.2rem; font-size: .85rem; }
.bt-pied a { color: rgba(255, 255, 255, .6); text-decoration: none; }

/* ---------- Mentions légales & confidentialité (/mentions-legales) ---------- */
.legal-page { background: var(--creme); }
.legal { max-width: 820px; padding-top: 40px; padding-bottom: 40px; line-height: 1.7; }
.legal h1 { font: 900 clamp(1.7rem, 4vw, 2.4rem)/1.15 var(--font-title); color: var(--marron); margin: 1rem 0 1.5rem; }
.legal h2 { font-size: 1.15rem; color: var(--marron); margin: 1.8rem 0 .4rem; padding-bottom: .3rem; border-bottom: 2px solid var(--pistache); }
.legal p + p { margin-top: .6rem; }
.legal ul { margin: .5rem 0 .5rem 1.3rem; }
.legal a { color: var(--pistache-dark); font-weight: 700; }
.legal-retour { text-decoration: none; }
.legal-pied { text-align: center; padding: 1.5rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--creme-2); }
.legal-pied a { color: inherit; }
.pan-rgpd { font-size: .78rem; color: var(--muted); line-height: 1.45; margin: -.2rem 0 .6rem; }
.pan-rgpd a { color: var(--pistache-dark); font-weight: 700; }
