/* La couverture : une carte de papier glissée sur la photographie du service. */
.carte-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  min-height: clamp(440px, 39vw, 640px);
  background: #dce4d2;
}
.cover-table {
  position: absolute;
  inset: 0 0 0 39%;
  z-index: -1;
}
.cover-table img {
  display: block;
  width: 100%;
  height: 100%;
}
.cover-table img {
  object-fit: cover;
  object-position: 50% 41%;
}
.cover-dish {
  position: absolute;
  bottom: 20px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 8px 15px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 580;
}
.cover-dish span {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 14px;
}
.cover-paper {
  position: relative;
  background: var(--paper);
  margin: 30px 0;
  padding: clamp(25px, 3vw, 48px) clamp(28px, 4vw, 70px) clamp(27px, 3vw, 48px) var(--gutter);
  box-shadow: 6px 9px 26px #1f2b2315;
}
.cover-paper .jasmine-vine {
  width: min(3.8vw, 55px);
}
.service-time {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 550;
}
.service-time span {
  margin-left: auto;
  white-space: nowrap;
}
.cover-paper h1 {
  margin: clamp(19px, 2.3vw, 38px) 0 15px;
  font: 475 clamp(68px, 7.3vw, 119px) / 0.92 var(--display);
  letter-spacing: -0.072em;
}
.cover-paper em,
.carte-section-head em,
.carte-reserve em {
  color: #516a50;
}
.cover-intro {
  max-width: 35ch;
  color: var(--muted);
  line-height: 1.48;
}
.cover-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 20px;
}
.cover-links .text-link {
  min-height: 44px;
}
.category-nav {
  background: #243f31;
  border-color: #243f31;
  color: #fff9ea;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar {
  display: none;
}
.category-nav a {
  padding-block: 14px 12px;
  font-size: 15px;
}
.category-nav a:is([aria-current], :hover) {
  color: #edf3da;
  border-color: #c0cea9;
}
.category-nav a:focus-visible {
  outline-color: #fff8e7;
  outline-offset: -3px;
}

.menu-inner {
  --section-space: clamp(38px, 5.4vw, 86px);
  max-width: none;
}
.menu-inner > .menu-section,
.menu-courses,
.carte-reserve {
  padding-inline: max(var(--gutter), calc((100vw - 1410px) / 2));
}
.menu-section {
  padding-block: var(--section-space);
}
.carte-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 26px;
  align-items: end;
  margin-bottom: clamp(22px, 2.7vw, 42px);
}
.menu-section h2 {
  font-weight: 465;
  line-height: 1.04;
  letter-spacing: -0.058em;
}
.carte-section-head p {
  max-width: 38ch;
  justify-self: end;
  color: var(--muted);
  line-height: 1.45;
}
.broche-spread,
.plats-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4.6vw, 76px);
  align-items: start;
}
.service-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.service-photo a {
  display: block;
  cursor: zoom-in;
}
.service-photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}
.broche-offer .dish-list,
.plats-spread .dish-list,
.menu-courses .dish-list {
  display: block;
  margin: 0;
}
.menu-inner .dish-list li {
  scroll-margin-top: 75px;
  padding-block: 15px;
}
.menu-inner .dish-heading h3 {
  font-weight: 530;
  line-height: 1.16;
  font-size: clamp(20px, 1.7vw, 28px);
  letter-spacing: -0.032em;
}
.menu-inner .dish-heading span {
  color: #344c36;
  font-size: 16px;
}
.menu-inner .dish-list p {
  margin-top: 4px;
}
.dish-heading .dish-pick {
  display: inline-block;
  position: relative;
  text-decoration: none;
}
/* Zone de clic de 44 px autour du nom de la broche. */
.dish-heading .dish-pick::after {
  content: "";
  position: absolute;
  inset: -11px 0;
}
.dish-pick svg {
  color: #536a55;
  margin-inline-start: .22em;
  vertical-align: .12em;
}
.dish-pick:hover, .dish-pick:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.accompagnement {
  padding: 16px 19px;
  background: #e8eddf;
  color: #344e3b;
  font-size: 16px;
  line-height: 1.45;
}
.accompagnement strong {
  display: block;
  margin-bottom: 3px;
}
.kitchen-pair {
  --photo-height: clamp(200px, 24vw, 400px);
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr);
  align-items: stretch;
  margin-top: var(--section-space);
}
.kitchen-pair > figure {
  display: grid;
  grid-template-rows: var(--photo-height) 1fr;
}
.kitchen-pair .film-frame,
.kitchen-pair figure > img {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.kitchen-pair figcaption {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

#plats {
  background: #e9eddf;
}
.plats-spread {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.plats-spread .photo-dishes:has(> :only-child) {
  display: block;
  padding: 0;
  margin: 0;
  overflow: visible;
}
.plats-spread .photo-dishes .menu-photo:only-child {
  display: block;
  background: var(--paper);
}
.plats-spread .crop {
  aspect-ratio: 1.12;
}
.plats-spread .menu-photo .dish-heading {
  margin: 0;
  padding: 18px 20px 5px;
}
.plats-spread .menu-photo p {
  margin: 0;
  padding: 0 20px 22px;
}
.menu-courses {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 6vw, 100px);
}
.menu-courses .menu-section {
  border-bottom: 0;
}
.menu-courses h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 3.6vw, 54px);
}
.menu-inner > .formula {
  margin: 0;
  padding-block: 0;
  padding-inline: 0;
  grid-template-columns: 1fr 1fr;
  color: var(--paper);
  background: #304835;
  border: none;
}
.formula-copy {
  padding: clamp(32px, 5vw, 80px) var(--gutter);
}
.formula .kicker {
  color: #d2dfc2;
}
.formula h2 {
  font-size: clamp(38px, 4.6vw, 71px);
  margin: 14px 0 22px;
}
.formula dl div {
  border-color: #aec0a766;
  align-items: baseline;
}
.formula dd {
  font-size: 20px;
}
.formula > img {
  max-height: none;
  min-height: 100%;
}
#boissons {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 85px);
}
.drink-story .drinks-intro {
  display: block;
}
.drink-story img {
  aspect-ratio: 1.5;
  margin: 20px 0;
}
.drink-story .category-note {
  margin: 0;
  max-width: 44ch;
}
.drink-prices .drink-family {
  padding: 0;
}
.drink-prices .drink-family:first-child {
  border-top: 1px solid var(--line);
}
.drink-prices summary {
  padding-block: 13px;
  font-weight: 500;
}
.drink-prices details[open] {
  padding-bottom: 15px;
}
.carte-reserve {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(25px, 4vw, 58px);
  background: #e9eddf;
}
.carte-reserve p {
  font: 470 clamp(30px, 4vw, 62px) / 1.05 var(--display);
  letter-spacing: -0.052em;
}
@media (max-width: 760px) {
  .carte-cover {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
  }
  .cover-table {
    position: relative;
    inset: auto;
    height: clamp(250px, 67vw, 450px);
  }
  .cover-table img {
    object-position: 50% 40%;
  }
  .cover-dish {
    top: 12px;
    bottom: auto;
    right: 14px;
    font-size: 14px;
  }
  .cover-paper {
    margin: -33px 18px 0 0;
    padding: 20px clamp(34px, 10vw, 50px) 22px;
  }
  .cover-paper .jasmine-vine {
    width: clamp(29px, 8vw, 41px);
  }
  .service-time {
    font-size: .875rem;
    padding-bottom: 8px;
  }
  .cover-paper h1 {
    font-size: clamp(44px, 10vw, 72px);
    line-height: 1;
    margin: 12px 0;
  }
  .cover-paper h1 br {
    display: none;
  }
  .cover-intro {
    font-size: 16px;
  }
  .cover-links {
    margin-top: 11px;
  }
  .category-nav {
    justify-content: start;
    gap: 21px;
    padding-inline: 18px;
  }
  .carte-section-head {
    display: block;
  }
  .carte-section-head p {
    margin-top: 9px;
  }
  .broche-spread,
  .plats-spread,
  #boissons {
    grid-template-columns: minmax(0, 1fr);
    gap: 21px;
  }
  .menu-inner .dish-list li {
    padding-block: 12px;
  }
  .kitchen-pair {
    --photo-height: clamp(132px, 41vw, 245px);
    gap: 12px;
  }
  .menu-courses {
    display: block;
  }
  .menu-courses .menu-section + .menu-section {
    padding-top: 0;
  }
  .menu-inner > .formula {
    grid-template-columns: 1fr;
  }
  .formula > img {
    height: clamp(155px, 42vw, 270px);
    min-height: 0;
  }
  .drink-story img {
    aspect-ratio: 2.1;
  }
  .carte-reserve {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
}
.broche-offer [id] {
  scroll-margin-top: 78px;
}
.photo-dialog .large-photo {
  display: block;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  background: transparent;
}

@media (max-width: 760px) {
  .category-nav a, .cover-dish, .menu-inner .dish-list p, .cover-intro { font-size: 1rem; }
}

/* Onglets sur téléphone : les libellés s'estompent aux deux bords pour montrer que la barre défile.
   Les deux fondus restent collés aux bords et prennent la place des marges intérieures. */
@media (max-width: 760px) {
  .category-nav {
    padding-inline: 0;
    gap: 0;
  }
  .category-nav a + a {
    margin-inline-start: 21px;
  }
  .category-nav::before,
  .category-nav::after {
    content: "";
    position: sticky;
    z-index: 1;
    flex: none;
    align-self: stretch;
    pointer-events: none;
  }
  .category-nav::before {
    left: 0;
    width: 18px;
    background: linear-gradient(to right, #243f31, #243f3100);
  }
  .category-nav::after {
    right: 0;
    width: 44px;
    background: linear-gradient(to left, #243f31 20%, #243f3100);
  }
}
