/* ═══════════════════════════════════════════════════════════════
   MENU — Section carte / onglets
   ═══════════════════════════════════════════════════════════════ */

.menu {
  background-color: var(--cream);
  padding: var(--spacing-2xl) 0;
}

.menu__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ── En-tête de section ─────────────────────────────────────── */
.menu__header {
  margin-bottom: var(--spacing-xl);
}

.menu__section-label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  display: block;
  margin-bottom: 0.5rem;
}

.menu__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 0.95;
  margin: 0;
}

/* ── Onglets ─────────────────────────────────────────────────── */
.menu__tabs-wrapper {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

/* Masque de fondu à droite pour indiquer le scroll */
.menu__tabs-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to right, transparent, var(--cream));
  pointer-events: none;
}

.menu__tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 2px solid rgba(232, 0, 28, 0.15);
}

.menu__tabs::-webkit-scrollbar {
  display: none;
}

.menu__tab {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-bottom: -2px;
  flex-shrink: 0;
}

.menu__tab:hover {
  color: var(--text-dark);
}

.menu__tab.is-active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ── Panneaux ────────────────────────────────────────────────── */
.menu__panel {
  display: none;
}

.menu__panel.is-active {
  display: block;
  animation: panelFadeIn 0.3s ease;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .menu__panel.is-active {
    animation: none;
  }
}

/* ── Grille d'items ──────────────────────────────────────────── */
.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

/* ── Carte item ──────────────────────────────────────────────── */
.menu__item {
  background-color: var(--white);
  border: 1.5px solid rgba(232, 0, 28, 0.10);
  border-radius: 16px;
  padding: var(--spacing-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu__item:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(232, 0, 28, 0.10);
}

.menu__item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: 0.4rem;
}

.menu__item-name {
  font-family: var(--font-label);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  flex: 1;
}

.menu__item-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu__item-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Note de bas de section ─────────────────────────────────── */
.menu__note {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid rgba(232, 0, 28, 0.10);
  padding-top: var(--spacing-md);
}

/* ── Variantes d'items ───────────────────────────────────────── */
.menu__item--full {
  grid-column: 1 / -1;
  max-width: 560px;
}

.menu__item--wide {
  max-width: 520px;
}

.menu__category-note {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
  text-transform: none;
  letter-spacing: normal;
}

/* ── Label de catégorie (section Tisha Beav) ── */
.menu__category-label {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  border-bottom: 2px solid rgba(232, 0, 28, 0.15);
  padding-bottom: 0.5rem;
  margin: 2rem 0 1rem;
  display: block;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tisha-toggle-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  .menu__grid {
    grid-template-columns: 1fr;
  }

  .menu__tab {
    font-size: 0.65rem;
    padding: 0.6rem 0.8rem;
  }

  .menu__header {
    margin-bottom: var(--spacing-md);
  }
}

/* ── Bouton Tisha Beav ── */
.tisha-toggle-btn {
  background: #1B4FD8;
  color: #ffffff;
  border: none;
  padding: 10px 28px;
  font-size: 0.9rem;
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 6px;
  display: block;
  width: fit-content;
  margin: 0 auto 20px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.tisha-toggle-btn:hover {
  background: #1640B0;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(27, 79, 216, 0.4);
}

.tisha-toggle-btn:active {
  transform: translateY(0);
}

/* ── Bandeau Tisha Beav (legacy) ── */
.tisha-banner {
  background: #1B4FD8 !important;
  color: #ffffff !important;
  text-align: center;
  padding: 14px 20px;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  margin-bottom: 16px;
  border-radius: 8px;
  display: block;
  width: 100%;
}

.tisha-banner:hover {
  background: #1640B0;
}

/* ── Onglet spécial Tisha Beav ── */
.menu__tab--special {
  background: #1B4FD8;
  color: #ffffff !important;
  border-color: #1B4FD8;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.menu__tab--special:hover,
.menu__tab--special[aria-selected="true"] {
  background: #1640B0;
  border-color: #1640B0;
  color: #ffffff !important;
}

.tisha-header {
  background: #1B4FD8;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 600;
}

.tisha-section-title {
  color: #1B4FD8;
  text-align: center;
  margin-bottom: 16px;
}

/* ── Section Tisha Beav ─────────────────────────────────────── */
.tisha__header {
  background: linear-gradient(135deg, #1B4FD8 0%, #1640B0 100%);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin-bottom: var(--spacing-xl);
}

.tisha__label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
}

.tisha__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: #ffffff;
  font-weight: 700;
  line-height: 0.95;
  margin: 0 0 0.75rem;
}

.tisha__subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* Overrides chromatiques pour la section Tisha Beav */
#tisha-section .menu__tabs {
  border-bottom-color: rgba(27, 79, 216, 0.2);
}

#tisha-section .menu__tab.is-active {
  color: #1B4FD8;
  border-bottom-color: #1B4FD8;
}

#tisha-section .menu__tab:hover {
  color: #1640B0;
}

#tisha-section .menu__item:hover {
  border-color: #1B4FD8;
  box-shadow: 0 4px 20px rgba(27, 79, 216, 0.12);
}

#tisha-section .menu__item-price {
  color: #1B4FD8;
}

@media (max-width: 600px) {
  .tisha__header {
    padding: 1.5rem;
    border-radius: 8px;
  }

  .tisha__subtitle {
    font-size: 0.78rem;
  }
}
