/* Parcours de commande (panier, /commander, /suivi).
   Feuille autonome, volontairement hors Tailwind : le CSS du clone est un build figé qui
   ne contient que les classes utilisees par la maquette d'origine, toute nouvelle classe
   utilitaire y serait silencieusement ignoree. Palette = variables CSS du clone. */

.bs-add {
  margin-top: .5rem;
  width: 100%;
  border: 0;
  border-radius: .5rem;
  padding: .5rem .75rem;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease;
}
.bs-add:hover { background: rgba(0, 0, 0, .45); }
.bs-add:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.bs-soldout {
  margin-top: .5rem;
  width: 100%;
  border-radius: .5rem;
  padding: .5rem .75rem;
  background: rgba(0, 0, 0, .18);
  color: rgba(255, 255, 255, .75);
  font-size: .75rem;
  font-weight: 600;
  text-align: center;
}

.bs-toast {
  position: fixed;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  border-radius: 999px;
  padding: .55rem 1.25rem;
  background: var(--color-banner-bg);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .4);
  white-space: nowrap;
}

.bs-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  border-radius: 999px;
  padding: .75rem 1.25rem;
  background: var(--color-banner-bg);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
  transition: transform .15s ease;
}
.bs-fab:hover { transform: translateY(-2px); }
.bs-fab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  padding: 0 .4rem;
  background: rgba(0, 0, 0, .3);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.bs-page { max-width: 42rem; margin: 0 auto; padding: 0 1rem 4rem; color: var(--color-header-text); }
.bs-page--narrow { max-width: 36rem; }
.bs-head { text-align: center; margin: 2.5rem 0; }
@media (min-width: 1024px) { .bs-head { margin: 5rem 0 3rem; } }
.bs-title { margin: 0; font-size: 1.5rem; line-height: 1.15; font-weight: 700; color: var(--color-banner-bg); }
@media (min-width: 768px) { .bs-title { font-size: 3rem; } }
.bs-sub { margin: .35rem 0 0; }

.bs-empty {
  border-radius: .75rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, .06);
  text-align: center;
}
.bs-link { color: var(--color-banner-bg); text-decoration: underline; }

.bs-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.bs-line {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-radius: .75rem;
  padding: .75rem;
  background: var(--color-card);
  color: var(--color-card-text);
}
.bs-line__name { flex: 1; font-size: .9rem; font-weight: 600; }
.bs-line__qty {
  width: 4rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: .5rem;
  padding: .3rem .4rem;
  background: rgba(255, 255, 255, .15);
  color: inherit;
  font: inherit;
  font-size: .9rem;
}
.bs-line__price { width: 5rem; text-align: right; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bs-total { display: flex; justify-content: space-between; padding: .5rem .75rem 0; font-size: 1rem; font-weight: 700; }

.bs-field { margin-top: 2rem; }
.bs-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-banner-bg); }
.bs-grid { margin-top: 1.5rem; display: grid; gap: .75rem; }
@media (min-width: 640px) {
  .bs-grid { grid-template-columns: 1fr 1fr; }
  .bs-span-2 { grid-column: span 2 / span 2; }
}
.bs-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin-top: .5rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: .5rem;
  padding: .6rem .75rem;
  background: rgba(0, 0, 0, .35);
  color: var(--color-header-text);
  font: inherit;
  font-size: 1rem; /* >= 16px : evite le zoom automatique iOS sur focus */
}
.bs-grid .bs-input { margin-top: 0; }
.bs-input::placeholder { color: rgba(255, 255, 255, .45); }
.bs-input:focus { outline: none; border-color: var(--color-banner-bg); }
.bs-input option { color: #111; }
.bs-hint { margin: .35rem 0 0; font-size: .8rem; color: var(--color-banner-bg); }

.bs-error {
  margin-top: 1rem;
  border-radius: .5rem;
  padding: .6rem .75rem;
  background: rgba(255, 169, 77, .18);
  color: var(--color-banner-bg);
  font-size: .9rem;
  font-weight: 600;
}

.bs-submit {
  margin-top: 1.5rem;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: .75rem;
  background: var(--color-banner-bg);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s ease;
}
.bs-submit:hover { opacity: .9; }
.bs-submit:disabled { opacity: .4; cursor: not-allowed; }

.bs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.bs-step {
  border-radius: .75rem;
  padding: 1rem .5rem;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .5);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}
.bs-step--done { background: var(--color-banner-bg); color: #fff; }
.bs-muted { margin-top: 1.5rem; text-align: center; font-size: .875rem; color: rgba(255, 255, 255, .7); }

@media (prefers-reduced-motion: reduce) {
  .bs-add, .bs-fab, .bs-submit, .bs-step { transition: none; }
  .bs-fab:hover { transform: none; }
}

/* Pages légales */
.bs-legal { font-size: .95rem; line-height: 1.7; }
.bs-legal h2 { margin: 1.75rem 0 .4rem; font-size: 1.05rem; font-weight: 700; color: var(--color-banner-bg); }
.bs-legal p { margin: 0 0 .75rem; color: rgba(255, 255, 255, .88); }
.bs-legal strong { color: #fff; }
.bs-legal a { color: var(--color-banner-bg); text-decoration: underline; }
.bs-legal__draft {
  margin-top: 2.5rem;
  border-radius: .75rem;
  padding: .75rem 1rem;
  background: rgba(255, 169, 77, .12);
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
}

/* Liens légaux du pied de page */
.bs-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin-top: .25rem;
  font-size: .8rem;
}
.bs-footer-legal a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.bs-footer-legal a:hover { color: var(--color-footer-text-hover); }

/* ---- Critic pass 17/09: touch targets, focus, overlap, placeholder ratio ---- */
.bs-add, .bs-soldout { min-height: 44px; }
.bs-input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* The floating cart button must never sit on top of the last card or the footer links. */
body:has(.bs-fab:not([hidden])) main { padding-bottom: 5.5rem; }
/* aspect-[4/3] is missing from the clone's frozen CSS build, so the placeholder collapsed
   to a 20px strip and cards without a photo were shorter than their neighbours. */
.bs-photo-placeholder { aspect-ratio: 1376 / 768; }
.bs-footer-legal a { display: inline-block; padding-block: .6rem; }

.bs-stepper { display: inline-flex; align-items: center; gap: .25rem; }
.bs-stepper button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .1);
  color: inherit;
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}
.bs-stepper button:disabled { opacity: .4; cursor: default; }
.bs-stepper__value { min-width: 2rem; text-align: center; font-variant-numeric: tabular-nums; }
.bs-line__remove {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .7);
  text-decoration: underline;
  font: inherit;
  font-size: .8rem;
  min-height: 44px;
  cursor: pointer;
}
.bs-notice {
  margin: 1rem 0;
  border-radius: .5rem;
  padding: .75rem 1rem;
  background: rgba(255, 169, 77, .15);
  border: 1px solid var(--color-banner-bg);
}
.bs-ready {
  margin: 1rem 0;
  border-radius: .75rem;
  padding: 1rem;
  background: #1E7A3D;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
}
.bs-code-big { font-size: 2rem; font-weight: 800; letter-spacing: .08em; }
.bs-grid .bs-field { margin-top: 0; }
.bs-grid .bs-field .bs-input { margin-top: .35rem; }
.bs-add-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.bs-add-pair .bs-add { margin-top: .5rem; }

/* Several photos on one menu card: same frame as a single photo, swipe or arrows. */
.bs-gallery { position: relative; aspect-ratio: 1376 / 768; overflow: hidden; border-radius: .5rem .5rem 0 0; }
.bs-gallery__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bs-gallery__track::-webkit-scrollbar { display: none; }
.bs-gallery__img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.bs-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.bs-gallery__nav--prev { left: .5rem; }
.bs-gallery__nav--next { right: .5rem; }
.bs-gallery__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bs-gallery__dots { position: absolute; bottom: .5rem; left: 0; right: 0; display: flex; justify-content: center; gap: .35rem; }
.bs-gallery__dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .55); }
.bs-gallery__dot.is-active { background: #fff; }

/* ---- Menu: dishes without a photo, as a list ---- */
.bs-menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
@media (min-width: 768px) { .bs-menu-list { grid-template-columns: 1fr 1fr; column-gap: 1rem; } }
.bs-menu-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: var(--color-card); color: var(--color-card-text); border-radius: .75rem; padding: .6rem .75rem .6rem 1rem;
}
.bs-menu-row__text { display: flex; flex-direction: column; min-width: 0; }
.bs-menu-row__name { font-weight: 700; font-size: 1.05rem; }
.bs-menu-row__price { font-size: .85rem; font-weight: 600; opacity: .95; }
.bs-add--row { width: auto; margin-top: 0; padding-inline: 1.1rem; flex-shrink: 0; }
.bs-menu-row .bs-soldout { width: auto; margin-top: 0; padding-inline: .8rem; font-size: .75rem; flex-shrink: 0; }

/* ---- Tacos: one card, pick your tacos ---- */
.bs-choice { overflow: hidden; display: grid; max-width: 64rem; margin-inline: auto; width: 100%; }
@media (min-width: 900px) { .bs-choice { grid-template-columns: 1fr 1fr; } }
.bs-choice__photo { display: block; width: 100%; object-fit: cover; aspect-ratio: 1376 / 768; }
.bs-choice__body { padding: 1.25rem; color: var(--color-card-text); }
.bs-choice__label { margin: .75rem 0 .5rem; font-weight: 700; }
.bs-choice__options { display: grid; gap: .35rem; }
@media (min-width: 900px) { .bs-choice__options { max-height: 22rem; overflow-y: auto; padding-right: .25rem; } }
.bs-choice__option {
  display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .35rem .75rem;
  border-radius: .6rem; background: rgba(0, 0, 0, .14); cursor: pointer;
}
.bs-choice__option:has(input:checked) { background: rgba(0, 0, 0, .38); outline: 2px solid #fff; }
.bs-choice__option.is-disabled { opacity: .55; cursor: not-allowed; }
.bs-choice__option input { accent-color: #111; width: 18px; height: 18px; }
.bs-choice__name { flex: 1; font-weight: 600; }
.bs-choice__price { font-weight: 700; white-space: nowrap; }
.bs-choice__upsell {
  display: flex; align-items: center; gap: .75rem; margin-top: .9rem; padding: .5rem;
  border-radius: .75rem; background: rgba(0, 0, 0, .22);
}
.bs-choice__upsell img { width: 96px; aspect-ratio: 1376 / 768; object-fit: cover; border-radius: .5rem; }
.bs-choice__upsell div { display: flex; flex-direction: column; font-size: .85rem; }

/* ---- Customisation panel ---- */
.bs-sheet-open { overflow: hidden; }
.bs-sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .bs-sheet { align-items: center; } }
.bs-sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.bs-sheet__panel {
  position: relative; width: 100%; max-width: 30rem; max-height: 92vh; overflow-y: auto;
  background: #141414; color: #fff; border-radius: 1rem 1rem 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
}
@media (min-width: 640px) { .bs-sheet__panel { border-radius: 1rem; } }
.bs-sheet__head { display: flex; align-items: center; gap: .75rem; }
.bs-sheet__photo { width: 84px; aspect-ratio: 1376 / 768; object-fit: cover; border-radius: .5rem; }
.bs-sheet__titles { flex: 1; min-width: 0; }
.bs-sheet__title { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--color-banner-bg); }
.bs-sheet__base { margin: .15rem 0 0; font-size: .9rem; opacity: .8; }
.bs-sheet__close { width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.6rem; cursor: pointer; }
.bs-sheet__group { border: 0; margin: 1rem 0 0; padding: 0; }
.bs-sheet__legend { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-banner-bg); margin-bottom: .4rem; }
.bs-tile {
  display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .5rem .75rem; margin-top: .4rem;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: .75rem; cursor: pointer;
}
.bs-tile:has(input:checked) { border-color: var(--color-banner-bg); background: rgba(255, 169, 77, .14); }
.bs-tile input { accent-color: #FFA94D; width: 18px; height: 18px; }
.bs-tile__photo { width: 72px; aspect-ratio: 1376 / 768; object-fit: cover; border-radius: .4rem; }
.bs-tile__text { flex: 1; display: flex; flex-direction: column; }
.bs-tile__sub { font-size: .8rem; opacity: .8; }
.bs-tile__price { font-weight: 700; white-space: nowrap; }
.bs-tile--upsell strong { color: var(--color-banner-bg); }
.bs-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.bs-chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: none; color: #fff; font: inherit; cursor: pointer;
}
.bs-chip:has(input:checked) { border-color: var(--color-banner-bg); background: rgba(255, 169, 77, .18); }
.bs-chip input { accent-color: #FFA94D; }
.bs-chip--none { border-style: dashed; }
.bs-sheet__foot { display: flex; align-items: center; gap: .75rem; margin-top: 1.1rem; }
.bs-sheet__cta { flex: 1; margin-top: 0; }

/* ---- Every menu page: one choice card per category / section ---- */
.bs-choice-stack { display: grid; gap: 1.5rem; }
.bs-choice__media { position: relative; background: rgba(0, 0, 0, .1); }
.bs-choice__media .bs-gallery { border-radius: 0; height: 100%; }
/* The photo keeps its own 16:9 frame (never stretched to the list's height, so never cropped). */
.bs-choice__media { align-self: start; }
.bs-choice__photo, .bs-choice__media .bs-gallery { height: auto; aspect-ratio: 1376 / 768; }
.bs-add:disabled { opacity: .7; cursor: default; }
.bs-choice--no-photo { grid-template-columns: 1fr !important; max-width: 40rem; }
.bs-choice__price { display: flex; flex-direction: column; align-items: flex-end; font-size: .9rem; }


/* ---- Home: social networks block (buttons instead of the old QR image) ---- */
.bs-socials {
  aspect-ratio: 1376 / 768; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem); color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 169, 77, .35), transparent 60%),
    linear-gradient(135deg, #1a1a1a 0%, #0b0b0b 100%);
  border: 1px solid rgba(255, 169, 77, .25);
}
@media (max-width: 639px) { .bs-socials { aspect-ratio: auto; } }
.bs-socials__kicker { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-banner-bg); }
.bs-socials__title { margin: .15rem 0 0; font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.05; }
.bs-socials__sub { margin: .35rem 0 0; font-size: clamp(.8rem, 1.2vw, .95rem); opacity: .8; }
.bs-socials__buttons { display: grid; gap: .6rem; margin-top: clamp(.8rem, 2vw, 1.4rem); }
.bs-social {
  display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: .45rem .6rem .45rem .5rem;
  border-radius: 999px; color: #fff; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.bs-social:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .45); }
.bs-social:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.bs-social__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: rgba(0, 0, 0, .25); }
.bs-social__text { flex: 1; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.bs-social__text strong { font-size: 1rem; }
.bs-social__text span { font-size: .78rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-social__cta { flex: 0 0 auto; padding: .45rem .9rem; border-radius: 999px; background: #fff; color: #111; font-size: .8rem; font-weight: 700; }
.bs-social--tiktok { background: #000; border: 1px solid rgba(255, 255, 255, .2); }
.bs-social--instagram { background: linear-gradient(45deg, #F58529 0%, #DD2A7B 50%, #8134AF 80%, #515BD4 100%); }
.bs-social--facebook { background: #1877F2; }
@media (prefers-reduced-motion: reduce) { .bs-social { transition: none; } .bs-social:hover { transform: none; } }
