/* ============================================================
   CAP GRILL — standalone menu page (menu.html)
   Editorial "carte du soir": full-bleed photography, chapter
   numerals, photo cards + classic dotted-leader rows.
   ============================================================ */

.menu-page main { padding-top: 0; }

/* ---------- full-bleed photo hero ---------- */
.mp-hero {
  position: relative;
  min-height: clamp(420px, 62vh, 640px);
  display: flex; align-items: flex-end;
  padding: 0 0 clamp(36px, 6vw, 64px);
  overflow: hidden;
}
.mp-hero-media {
  position: absolute; inset: 0;
  background: url("../assets/img/hero-mezza-wide.jpg") center 40% / cover no-repeat, var(--surface);
  transform: scale(1.06);
  animation: mp-hero-drift 14s var(--ease-out) forwards;
}
@keyframes mp-hero-drift { to { transform: scale(1); } }
.mp-hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 10, 11, 0.72) 0%, rgba(13, 10, 11, 0.25) 34%, rgba(13, 10, 11, 0.55) 68%, var(--bg) 100%),
    radial-gradient(90vw 60vh at 50% 118%, rgba(201, 151, 63, 0.14), transparent 60%);
}
.mp-hero-in { position: relative; text-align: center; }
.mp-hero-in .eyebrow { justify-content: center; }
.mp-hero-in .eyebrow::before { display: none; }
.mp-title {
  font-size: clamp(38px, 7.4vw, 84px);
  line-height: 1.06;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--cream);
  max-width: 18ch;
  margin: 16px auto 0;
  text-wrap: balance;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.55);
}
body.lang-ar .mp-title { letter-spacing: 0; text-transform: none; }
.mp-hero .menu-note {
  margin: 18px auto 16px;
  max-width: 52ch;
  color: var(--cream-dim);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.mp-hero .stars { display: block; color: var(--gold-bright); letter-spacing: 0.6em; }

/* hero entrance */
.mp-hero-in > * { opacity: 0; transform: translateY(18px); }
body.loaded .mp-hero-in > * {
  animation: mp-rise 0.9s var(--ease-out) forwards;
}
body.loaded .mp-hero-in > :nth-child(2) { animation-delay: 0.12s; }
body.loaded .mp-hero-in > :nth-child(3) { animation-delay: 0.26s; }
body.loaded .mp-hero-in > :nth-child(4) { animation-delay: 0.4s; }
@keyframes mp-rise { to { opacity: 1; transform: none; } }

/* ---------- sticky category nav (sits under the fixed header) ---------- */
.mp-nav {
  position: sticky; top: 62px; z-index: 30;
  background: rgba(13, 10, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-block: 1px solid rgba(201, 151, 63, 0.22);
}
.mp-nav-in {
  width: var(--container); margin-inline: auto;
  display: flex; gap: 4px;
  overflow-x: auto;
  padding: 9px 4px;
  scrollbar-width: none;
}
.mp-nav-in::-webkit-scrollbar { display: none; }
.mp-nav a {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--cream-dim);
  border-radius: 999px;
  transition: color 0.3s, background-color 0.3s;
}
body.lang-ar .mp-nav a { letter-spacing: 0; font-size: 15px; }
.mp-nav a:hover { color: var(--gold-bright); }
.mp-nav a.active {
  color: #241708;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold));
}

/* ---------- category sections ---------- */
.mp-cat { padding: clamp(44px, 7vw, 84px) 0 0; scroll-margin-top: 128px; }
.mp-cat:last-of-type { padding-bottom: clamp(44px, 7vw, 84px); }

.mp-cat-head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: clamp(22px, 3.5vw, 40px);
}
.mp-cat-num {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--gold);
  letter-spacing: 0.18em;
}
.mp-cat-num::after { content: "."; }
.mp-cat-title {
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: 0.03em;
  color: var(--cream);
  display: flex; align-items: center; gap: 24px;
  flex: 1;
}
.mp-cat-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(201, 151, 63, 0.45), transparent);
}
[dir="rtl"] .mp-cat-title::after {
  background: linear-gradient(-90deg, rgba(201, 151, 63, 0.45), transparent);
}

/* ---------- section photo banner ---------- */
.mp-banner {
  margin: 0 0 clamp(18px, 2.6vw, 28px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(201, 151, 63, 0.2);
  position: relative;
}
.mp-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 10, 11, 0.12), transparent 35%, rgba(13, 10, 11, 0.35));
  pointer-events: none;
}
.mp-banner img {
  width: 100%;
  aspect-ratio: 21 / 7;
  object-fit: cover;
  display: block;
}
@media (max-width: 720px) {
  .mp-banner img { aspect-ratio: 16 / 7; }
}

/* ---------- carte subheadings (vins, boissons) ---------- */
.mpr-sub {
  break-inside: avoid;
  column-span: all;
  padding: 22px 0 6px;
  list-style: none;
}
.mpr-sub span {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 16px;
}
.mpr-sub span::after {
  content: ""; width: 56px; height: 1px;
  background: linear-gradient(90deg, rgba(201, 151, 63, 0.5), transparent);
}
[dir="rtl"] .mpr-sub span::after {
  background: linear-gradient(-90deg, rgba(201, 151, 63, 0.5), transparent);
}
body.lang-ar .mpr-sub span { letter-spacing: 0; font-size: 17px; }

/* ---------- photo cards ---------- */
.mp-grid {
  list-style: none; margin: 0 0 clamp(10px, 2vw, 18px); padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.mpc {
  background: linear-gradient(170deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(201, 151, 63, 0.16);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s, box-shadow 0.5s;
}
.mpc:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 151, 63, 0.5);
  box-shadow: var(--shadow-soft);
}
.mpc-media {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}
.mpc-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(13, 10, 11, 0.42));
  pointer-events: none;
}
.mpc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.mpc:hover .mpc-media img { transform: scale(1.06); }
.mpc-body { padding: 16px 18px 18px; }
.mpc-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.mpc-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin: 0;
}
.mpc-price {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-bright);
  white-space: nowrap;
}
.mpc-desc {
  margin: 7px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--cream-dim);
}
.mpc-tags { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- classic carte rows ---------- */
.mp-rows {
  list-style: none;
  margin: 0; padding: 0;
  columns: 2; column-gap: clamp(30px, 5vw, 64px);
}
.mpr {
  break-inside: avoid;
  padding: 13px 0;
}
.mpr-line { display: flex; align-items: baseline; gap: 10px; }
.mpr-name {
  font-family: var(--font-display);
  font-size: 17.5px;
  color: var(--cream);
}
.mpr-tags { white-space: nowrap; }
.mpr-tags .badge { vertical-align: 2px; }
.mpr-dots {
  flex: 1;
  min-width: 28px;
  border-bottom: 1px dotted rgba(201, 151, 63, 0.4);
  transform: translateY(-4px);
}
.mpr-price {
  font-family: var(--font-display);
  font-size: 16.5px;
  color: var(--gold-bright);
  white-space: nowrap;
}
.mpr-desc {
  margin: 4px 0 0;
  font-size: 13.8px;
  color: var(--cream-dim);
  max-width: 46ch;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in {
  animation: mp-rise 0.8s var(--ease-out) forwards;
  animation-delay: calc(var(--stagger, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .mp-hero-in > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .mp-hero-media { animation: none; transform: none; }
}

/* ---------- CTA + floating call ---------- */
.mp-cta {
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid rgba(201, 151, 63, 0.18);
  margin-top: clamp(40px, 6vw, 70px);
}
.mp-cta .motif { color: var(--gold); margin-bottom: 18px; }
.mp-cta .motif svg { width: min(280px, 70vw); margin-inline: auto; display: block; }
.mp-cta .resa-note { margin-bottom: 26px; }
/* main.css hides bare .hero-ctas for the homepage entrance — restore it here */
.mp-cta .hero-ctas { opacity: 1; transform: none; margin-top: 0; }

.mp-call {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  align-items: center; gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #241708;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold));
  box-shadow: 0 14px 34px -10px rgba(201, 151, 63, 0.65);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.mp-call:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(201, 151, 63, 0.8); }
.mp-call svg { width: 17px; height: 17px; }
body.lang-ar .mp-call { letter-spacing: 0; font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .mp-rows { columns: 1; }
}
@media (max-width: 720px) {
  .mp-call { display: inline-flex; }

  /* horizontal cards on phones: photo left, text right — fast scanning */
  .mp-grid { grid-template-columns: 1fr; gap: 13px; }
  .mpc { display: grid; grid-template-columns: 128px 1fr; }
  .mpc-media { aspect-ratio: auto; height: 100%; min-height: 118px; }
  .mpc-media::after { background: linear-gradient(90deg, transparent 55%, rgba(13, 10, 11, 0.28)); }
  [dir="rtl"] .mpc-media::after { background: linear-gradient(-90deg, transparent 55%, rgba(13, 10, 11, 0.28)); }
  .mpc-body { padding: 12px 14px 13px; display: flex; flex-direction: column; justify-content: center; }
  .mpc-head { flex-direction: column; gap: 2px; }
  .mpc-name { font-size: 16.5px; }
  .mpc-price { font-size: 15.5px; }
  .mpc-desc { font-size: 13px; margin-top: 4px; }
  .mpc-tags { margin-top: 8px; }
  .mpc:hover { transform: none; }

  .mp-cat-head { gap: 12px; }
  .mp-nav { top: 56px; }
}

/* ============================================================
   Couche motion (js/motion-menu.js) — pastille de nav, barre de
   progression, retour en haut, vol vers le panier, lightbox.
   Tous ces éléments sont injectés par JS : sans GSAP ils
   n'existent pas, et la page reste exactement comme avant.
   ============================================================ */

/* pastille qui glisse sous la catégorie active (le scrollspy pose .active) */
html.gsap-on .mp-nav-in { position: relative; }
.mp-pill {
  position: absolute; top: 9px; bottom: 9px; left: 0; width: 0;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold));
  pointer-events: none; opacity: 0;
}
html.gsap-on .mp-nav a { position: relative; z-index: 1; }
html.gsap-on .mp-nav a.active { background: none; }

/* barre de progression de lecture */
.mp-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 65;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}
[dir="rtl"] .mp-progress { transform-origin: 100% 50%; background: linear-gradient(-90deg, var(--gold-deep), var(--gold-bright)); }

/* retour en haut (opposé au bouton commande, qui vit côté inline-end) */
.mp-top {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(201, 151, 63, 0.45);
  background: rgba(13, 10, 11, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--gold-bright);
  display: grid; place-items: center;
  cursor: pointer;
}
.mp-top svg { width: 20px; height: 20px; }
.mp-top:hover { color: #241708; background: var(--gold); border-color: var(--gold); }

/* clone qui vole vers le panier */
.mp-fly {
  position: fixed; top: 0; left: 0; z-index: 75;
  border-radius: 9px; object-fit: cover;
  pointer-events: none;
  box-shadow: var(--shadow-soft);
}
.mp-fly-dot { background: radial-gradient(circle at 35% 35%, var(--gold-bright), var(--gold-deep)); border-radius: 50%; }

/* lightbox photos plats */
.mp-lb {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(13, 10, 11, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mp-lb[hidden] { display: none; }
.mp-lb-img {
  position: fixed; top: 0; left: 0;
  border-radius: 10px; object-fit: cover;
  box-shadow: var(--shadow-soft);
  will-change: transform;
}
.mp-lb-cap {
  position: fixed; inset-inline: 0; bottom: max(4vh, 22px);
  margin-inline: auto; width: fit-content; max-width: 86vw;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(15px, 2.4vw, 19px);
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.mp-lb-btn {
  position: fixed; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(242, 232, 213, 0.3);
  background: rgba(13, 10, 11, 0.55);
  color: var(--cream); font-size: 26px; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.mp-lb-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.mp-lb-x { top: 16px; inset-inline-end: 16px; }
.mp-lb-p { left: 12px; top: 50%; margin-top: -23px; }
.mp-lb-n { right: 12px; top: 50%; margin-top: -23px; }
@media (max-width: 640px) {
  .mp-lb-p, .mp-lb-n { display: none; } /* au doigt : on swipe */
}
