/* Page carte — s’appuie sur variables de styles.css */

.page-menu {
  color: var(--black);
}

/* Header comme l’accueil : transparent en haut de page, bandeau noir au scroll */
.page-menu .site-header--menu.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Nav en noir sur fond clair (hero carte), blanche sur bandeau noir */
.page-menu .site-header--menu:not(.is-scrolled) .nav-main {
  color: var(--black);
}

.page-menu .site-header--menu:not(.is-scrolled) .nav-main a {
  color: inherit;
  text-shadow: none;
}

.page-menu .site-header--menu.is-scrolled .nav-main {
  color: #fff;
}

.page-menu .site-header--menu.is-scrolled .nav-main a {
  text-shadow: none;
}

/* Logo : logo2 par défaut, logo.png une fois le bandeau noir (haut de page : taille réduite de 50 % vs l’ancien défaut) */
.page-menu .logo-wrap__menu-scrolled {
  display: none;
}

.page-menu .site-header--menu:not(.is-scrolled) .logo-wrap__menu-top {
  display: block;
}

.page-menu .site-header--menu:not(.is-scrolled) .logo-wrap__menu-scrolled {
  display: none;
}

.page-menu .site-header--menu.is-scrolled .logo-wrap__menu-top {
  display: none;
}

.page-menu .site-header--menu.is-scrolled .logo-wrap__menu-scrolled {
  display: block;
}

.page-menu .site-header--menu:not(.is-scrolled) .logo-wrap__menu-top {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.12));
  max-height: calc(58px * 1.2);
}

.page-menu .site-header--menu.is-scrolled .logo-wrap__menu-scrolled {
  max-height: 52px;
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

/* Bouton Réserver visible dès le chargement : couleur charte (terracotta) sur fond clair */
.page-menu .site-header--menu:not(.is-scrolled) .btn-header-reserve {
  color: #faf8f4;
  background: var(--terracotta);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 14px rgba(166, 89, 71, 0.35);
}

.page-menu .site-header--menu:not(.is-scrolled) .btn-header-reserve:hover {
  background: var(--terracotta-dark);
  color: #faf8f4;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(135, 69, 56, 0.4);
}

.page-menu .site-header--menu:not(.is-scrolled) .btn-header-reserve:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Après scroll : même bouton blanc que l’accueil sur bandeau noir */
.page-menu .site-header--menu.is-scrolled .btn-header-reserve {
  color: var(--black);
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.page-menu .site-header--menu.is-scrolled .btn-header-reserve:hover {
  background: #faf8f4;
  color: var(--terracotta-dark);
  border-color: rgba(166, 89, 71, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.menu-main {
  padding-top: var(--site-header-h-expanded);
  min-height: 100vh;
  background: var(--beige-200);
  position: relative;
  overflow: hidden;
  /* Même typo que les titres de section et les carrés (Cormorant), pas le corps du site (DM Sans) */
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Décor feuillage discret (rappel carte papier) */
.menu-main::before,
.menu-main::after {
  content: "";
  position: fixed;
  width: 180px;
  height: 220px;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 40%, #2a4a38 0%, transparent 65%);
  border-radius: 60% 40% 70% 30% / 50% 55% 45% 50%;
}

.menu-main::before {
  top: 100px;
  left: -40px;
  transform: rotate(-25deg);
}

.menu-main::after {
  bottom: 80px;
  right: -50px;
  transform: rotate(15deg);
}

.menu-hero {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  /* Même fond que .menu-main : continuité avec la barre (transparente) et le bloc carte */
  background: transparent;
  border-bottom: none;
}

.menu-hero__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.menu-hero__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 500;
  font-style: italic;
  color: var(--black);
  line-height: 1.05;
}

.menu-board {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

/* Grille catégories (avant le détail de la carte) */
.menu-pick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 0.75rem;
  max-width: 36rem;
  margin: 0 auto 1.25rem;
}

.menu-pick__tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  /* Cercle explicite : évite les « oreilles » noires et le flash carré (transform + radius) */
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  /* Même teinte que la page : pas de noir visible si le masque dérape d’un pixel */
  background: var(--beige-200);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.menu-pick__tile:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.menu-pick__tile:focus-visible {
  box-shadow: 0 0 0 3px var(--terracotta), 0 8px 28px rgba(0, 0, 0, 0.12);
}

.menu-pick__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.88;
  transition: opacity 0.2s ease;
  /* Calque stable : pas de translateZ + transform parent qui cassent le masque circulaire au survol */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.menu-pick__tile:hover img {
  opacity: 1;
}

.menu-pick__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.85rem 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 600;
  font-style: italic;
  color: #fff;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
}

.menu-pick__tile--active {
  box-shadow: 0 0 0 3px var(--terracotta), 0 14px 36px rgba(0, 0, 0, 0.18);
}

.menu-pick__tile--active:focus-visible {
  box-shadow: 0 0 0 3px var(--terracotta), 0 14px 36px rgba(0, 0, 0, 0.18);
}

.menu-content {
  padding-top: 0.5rem;
}

.menu-section--desserts {
  margin-top: 0.5rem;
}

@media (min-width: 560px) {
  .menu-pick {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: none;
  }
}

.menu-section {
  margin-bottom: 2.75rem;
}

.menu-section__title {
  margin: 0 0 1.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 500;
  font-style: italic;
  color: var(--terracotta-dark);
  line-height: 1.2;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(166, 89, 71, 0.35);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  margin-bottom: 1.15rem;
}

.menu-item:last-child {
  margin-bottom: 0;
}

.menu-item__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  width: 100%;
}

.menu-item__name {
  font-weight: 600;
  font-size: clamp(1.02rem, 2.2vw, 1.12rem);
  font-style: italic;
  color: var(--black);
  max-width: 100%;
}

.menu-item__hint {
  font-weight: 500;
  font-size: 0.88em;
  color: rgba(10, 10, 10, 0.55);
}

.menu-item__dots {
  flex: 1;
  min-width: 2rem;
  border-bottom: 1px dotted rgba(10, 10, 10, 0.22);
  margin-bottom: 0.2rem;
  height: 0;
}

.menu-item__price {
  font-weight: 600;
  font-size: clamp(calc(0.98rem * 1.17), calc(2vw * 1.17), calc(1.08rem * 1.17));
  font-style: italic;
  color: var(--terracotta-dark);
  white-space: nowrap;
}

.menu-item__price--dual {
  white-space: normal;
  text-align: right;
  max-width: 100%;
  line-height: 1.35;
}

.menu-item__price-note {
  font-weight: 500;
  font-size: 0.75rem;
  color: rgba(10, 10, 10, 0.45);
  text-transform: lowercase;
}

.menu-item__desc,
.menu-item__meta {
  margin: 0.35rem 0 0;
  padding-left: 0;
  font-size: clamp(0.9rem, 1.9vw, 0.98rem);
  line-height: 1.5;
  color: rgba(10, 10, 10, 0.62);
}

.menu-item__meta {
  font-style: normal;
}

.menu-item__meta em {
  font-style: italic;
}

.menu-item--note {
  margin: -0.25rem 0 0.75rem;
}

.menu-item__fineprint {
  margin: 0;
  font-size: clamp(0.88rem, 1.8vw, 0.95rem);
  font-style: italic;
  color: rgba(10, 10, 10, 0.5);
}

.menu-item__poke-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  color: var(--terracotta-dark);
  margin: 0 0 0.65rem;
}

.menu-item--poke {
  margin-top: 0.5rem;
}

.menu-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 0.5rem;
  border-left: 3px solid rgba(166, 89, 71, 0.25);
}

.menu-sublist .menu-item {
  margin-bottom: 0.65rem;
}

.menu-item--sides {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(10, 10, 10, 0.15);
}

.menu-item__sides-title {
  margin: 0 0 0.5rem;
  font-size: clamp(0.8rem, 1.6vw, 0.88rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.menu-sides {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.35rem 1rem;
  font-size: clamp(0.9rem, 1.9vw, 0.98rem);
}

.menu-sides li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

.menu-sides span:last-child {
  font-weight: 600;
  color: var(--terracotta-dark);
}

/* Plats + brochettes empilés : même largeur utile que les entrées et que la rangée des 4 carrés */
.menu-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  width: 100%;
}

.menu-footer-note {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--beige-300);
  font-size: clamp(0.88rem, 1.9vw, 0.95rem);
  line-height: 1.55;
  text-align: center;
  color: rgba(10, 10, 10, 0.55);
}

.menu-footer-note a {
  color: var(--terracotta-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.menu-footer-note a:hover {
  color: var(--terracotta);
  opacity: 1;
}

@media (max-width: 768px) {
  .page-menu .site-header--menu:not(.is-scrolled) .logo-wrap__menu-top {
    max-height: calc(50px * 1.2);
  }

  .page-menu .site-header--menu.is-scrolled .logo-wrap__menu-scrolled {
    max-height: 44px;
  }
}

@media (max-width: 720px) {
  .menu-item__dots {
    display: none;
  }

  .menu-item__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .menu-item__price {
    align-self: flex-start;
    margin-top: 0.15rem;
  }

  .menu-item__price--dual {
    text-align: left;
  }
}
