/* ===========================================================
   MENU / CARTE — fond terracotta unifié
   =========================================================== */

/* Logo crème forcé — fond terracotta sur toute la page */
.navbar__logo-img--light { display: block !important; }
.navbar__logo-img--dark  { display: none  !important; }

/* ---- Fond unifié terracotta ---- */
body {
  background:
    radial-gradient(ellipse 65% 55% at 22% 38%, rgba(255,200,140,0.13), transparent 58%),
    radial-gradient(ellipse 50% 60% at 78% 18%, rgba(245,166,35,0.11),  transparent 55%),
    radial-gradient(ellipse 55% 50% at 60% 72%, rgba(80, 18, 6, 0.20),  transparent 55%),
    radial-gradient(ellipse 45% 65% at 8%  65%, rgba(60, 12, 4, 0.16),  transparent 50%),
    radial-gradient(ellipse 48% 42% at 88% 82%, rgba(100,22, 8, 0.22),  transparent 50%),
    radial-gradient(ellipse 40% 35% at 48% 52%, rgba(255,180,100,0.07), transparent 45%),
    #C0614A;
  color: var(--beige);
}

/* ---- Aurora fixe — couvre toute la page ---- */
.page-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-aurora .aurora__blob {
  position: absolute;
  width: 70vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: float-blob 18s ease-in-out infinite alternate;
}

.page-aurora .aurora__blob--1 {
  top: -15%;
  left: -15%;
  background: radial-gradient(circle, var(--terracotta), transparent 65%);
}
.page-aurora .aurora__blob--2 {
  bottom: -20%;
  right: -15%;
  background: radial-gradient(circle, #f5a623, transparent 65%);
  animation-delay: -6s;
}
.page-aurora .aurora__blob--3 {
  top: 25%;
  right: 25%;
  background: radial-gradient(circle, var(--beige-warm), transparent 65%);
  animation-delay: -12s;
  opacity: 0.22;
}

/* ============================================================
   HERO
   ============================================================ */
.menu-hero {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--beige);
  padding-top: clamp(140px, 18vw, 200px);
  padding-bottom: clamp(40px, 5vw, 64px);
  overflow: visible;
  text-align: center;
}

.menu-hero .topo-pattern { color: var(--beige); opacity: 0.07; }

/* decorative seal (reused from devis) */
.menu-hero__seal {
  position: absolute;
  top: 50%;
  right: clamp(40px, 8vw, 140px);
  transform: translateY(-50%);
  width: clamp(140px, 14vw, 200px);
  color: var(--beige);
  opacity: 0.08;
  pointer-events: none;
}

.menu-hero__inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
}

.menu-hero h1 {
  font-style: italic;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.menu-hero p {
  color: var(--beige-warm);
  opacity: 0.85;
  font-size: 16px;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

/* ============================================================
   MENU SECTION
   ============================================================ */
.menu-section {
  background: transparent;
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 5vw, 64px) clamp(80px, 10vw, 120px);
}

.menu-section__inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
}

/* ---- Tab bar ---- */
.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
  position: sticky;
  top: 136px;
  z-index: 20;
  padding: 14px 0;
  /* subtle blur strip so tabs remain readable when scrolling */
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  background: rgba(192, 97, 74, 0.45);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.10);
  padding-inline: 20px;
}

.menu-tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(251,246,238,0.10);
  border: 1px solid rgba(251,246,238,0.22);
  color: var(--beige-warm);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.14);
}

.menu-tab:hover {
  background: rgba(251,246,238,0.18);
  transform: translateY(-1px);
}

.menu-tab.is-active {
  background: linear-gradient(135deg, var(--beige), var(--beige-warm));
  color: var(--terracotta-dark);
  border-color: rgba(251,246,238,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.70), 0 4px 16px rgba(44,24,16,0.25);
}

/* ---- Category section ---- */
.menu-cat {
  margin-bottom: 56px;
}

.menu-cat.is-hidden {
  display: none;
}

.menu-cat__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--beige);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(251,246,238,0.20);
  letter-spacing: 0.01em;
}

/* ---- Items grid ---- */
.menu-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px)  { .menu-items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .menu-items { grid-template-columns: 1fr; } }

/* 2-col variant — planches pleine largeur + 2 assiettes côte à côte */
.menu-items--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .menu-items--2col { grid-template-columns: 1fr; } }

/* ---- Single item card — vertical layout (image top, info+price bottom) ---- */
.menu-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251,246,238,0.13) 0%, rgba(251,246,238,0.04) 100%);
  border: 1px solid rgba(251,246,238,0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.18), 0 6px 18px rgba(0,0,0,0.16);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease), background 280ms var(--ease);
}

.menu-item:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(251,246,238,0.20) 0%, rgba(251,246,238,0.08) 100%);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.25), 0 16px 40px rgba(0,0,0,0.30), 0 0 0 1px rgba(245,166,35,0.20);
}

/* Wide items span 2 columns */
.menu-item--wide { grid-column: span 2; }
@media (max-width: 560px) { .menu-item--wide { grid-column: span 1; } }

/* Bambino spans full row */
.menu-item--bambino {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(245,166,35,0.14) 0%, rgba(251,246,238,0.06) 100%);
  border-color: rgba(245,166,35,0.25);
}

/* Dessert accent */
.menu-item--dessert {
  border-color: rgba(245,166,35,0.22);
}

/* ---- Image wrapper (clickable button) ---- */
.menu-item__img-wrap {
  display: block;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border: none;
  background: rgba(0,0,0,0.25);
  padding: 0;
  cursor: zoom-in;
  flex-shrink: 0;
  position: relative;
}

.menu-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out), filter 400ms var(--ease);
  filter: brightness(0.92) saturate(1.05);
}

.menu-item:hover .menu-item__img-wrap img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1.10);
}

/* Zoom icon overlay on hover */
.menu-item__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 350ms var(--ease);
  pointer-events: none;
}
.menu-item:hover .menu-item__img-wrap::after {
  background: rgba(0,0,0,0.12);
}

/* ---- Card body (info + price row) ---- */
.menu-item__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  flex: 1;
}

.menu-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.menu-item__info strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--beige);
  line-height: 1.35;
}

.menu-item__info span {
  font-size: 12px;
  color: var(--beige-warm);
  opacity: 0.80;
  line-height: 1.5;
}

.menu-item__tag {
  display: inline-block;
  font-size: 10px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(245,166,35,0.20);
  border: 1px solid rgba(245,166,35,0.35);
  color: #f5c06e !important;
  opacity: 1 !important;
}

.menu-item__price {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--beige);
  white-space: nowrap;
  opacity: 0.90;
  padding-top: 2px;
}

/* ---- Footer note ---- */
.menu-note {
  text-align: center;
  font-size: 13px;
  color: var(--beige-warm);
  opacity: 0.65;
  margin-top: 20px;
  line-height: 1.7;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.menu-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease);
}

.menu-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.menu-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 4, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.menu-lightbox__figure {
  position: relative;
  z-index: 1;
  max-width: min(700px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.93) translateY(16px);
  transition: transform 340ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-lightbox.is-open .menu-lightbox__figure {
  transform: scale(1) translateY(0);
}

.menu-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.60), 0 0 0 1px rgba(255,255,255,0.08);
}

.menu-lightbox__figure figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--beige);
  opacity: 0.90;
  text-align: center;
  letter-spacing: 0.02em;
}

.menu-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(251,246,238,0.15);
  border: 1px solid rgba(251,246,238,0.28);
  color: var(--beige);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-lightbox__close:hover {
  background: rgba(251,246,238,0.28);
  transform: scale(1.10) rotate(90deg);
}

.menu-lightbox__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
