.restaurant-page {
  overflow: clip;
}

.restaurant-page .section {
  position: relative;
}

.restaurant-hero {
  background: linear-gradient(145deg, var(--color-ivoire) 0%, #fffaf0 100%);
}

.restaurant-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.restaurant-hero__content,
.restaurant-hero__media,
.restaurant-materials__item,
.restaurant-story__dinner,
.restaurant-story__poker,
.restaurant-table__notes,
.restaurant-table__figure,
.restaurant-poker__principle,
.restaurant-gallery__item,
.restaurant-groups__card,
.restaurant-summary__item,
.restaurant-next__content {
  min-width: 0;
  width: 100%;
}

.restaurant-hero__media {
  order: 1;
  aspect-ratio: 4 / 3;
}

.restaurant-hero__content {
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.restaurant-hero__content > * {
  min-width: 0;
  margin: 0;
}

.restaurant-hero__content h1 {
  max-width: 17ch;
}

.restaurant-hero__lead {
  max-width: 55ch;
  font-size: var(--text-md);
}

.restaurant-hero__markers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  width: 100%;
}

.restaurant-hero__marker {
  min-width: 0;
}

.restaurant-hero__marker h2 {
  margin-bottom: var(--space-2);
  color: var(--color-bleu-royal-fonce);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.restaurant-hero__marker p {
  max-width: 34ch;
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.restaurant-hero__actions {
  width: 100%;
}

.restaurant-materials__intro {
  max-width: 64ch;
  margin-inline: auto;
  margin-bottom: var(--space-7);
  text-align: center;
}

.restaurant-materials__intro > :last-child,
.restaurant-story__heading > :last-child,
.restaurant-poker__intro > :last-child,
.restaurant-gallery__intro > :last-child,
.restaurant-summary__intro > :last-child {
  margin-bottom: 0;
}

.restaurant-materials__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.restaurant-materials__item {
  padding: var(--space-5);
  border-top: 1px solid var(--color-border-warm);
}

.restaurant-materials__item--blue-detail {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-beige-doux);
}

.restaurant-materials__item--blue-detail::before {
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: var(--space-4);
  background: var(--color-bleu-royal);
  content: "";
}

.restaurant-materials__number,
.restaurant-summary__number {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-champagne);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1;
}

.restaurant-materials__item h3 {
  max-width: 24ch;
}

.restaurant-materials__item p {
  max-width: 50ch;
  margin-bottom: 0;
}

.restaurant-materials__rule {
  width: min(100%, 44rem);
  height: 1px;
  margin: var(--space-7) auto 0;
  background: var(--color-champagne);
}

.restaurant-story__heading {
  max-width: 60ch;
  margin-bottom: var(--space-7);
}

.restaurant-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.restaurant-story__dinner,
.restaurant-story__poker {
  padding: var(--space-5);
}

.restaurant-story__dinner {
  background: var(--color-beige-doux);
}

.restaurant-story__poker {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-blanc-perle);
}

.restaurant-story__dinner h3,
.restaurant-story__poker h3 {
  max-width: 22ch;
}

.restaurant-story__dinner > p,
.restaurant-story__poker > p:not(.eyebrow) {
  max-width: 54ch;
}

.restaurant-story__dinner > :last-child,
.restaurant-story__poker > :last-child {
  margin-bottom: 0;
}

.restaurant-story__closing {
  max-width: 60ch;
  margin: var(--space-7) auto 0;
  border-top: 1px solid var(--color-champagne);
  border-bottom: 1px solid var(--color-champagne);
  padding-block: var(--space-5);
  text-align: center;
}

.restaurant-story__closing p {
  margin: 0;
}

.restaurant-table__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

.restaurant-table__notes {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-5);
}

.restaurant-table__notes > * {
  min-width: 0;
  margin: 0;
}

.restaurant-table__notes h2 {
  max-width: 18ch;
}

.restaurant-table__note {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: var(--space-3);
  min-width: 0;
}

.restaurant-table__note-number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--color-champagne);
  border-radius: 50%;
  color: var(--color-bleu-royal-fonce);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
}

.restaurant-table__note h3 {
  margin-bottom: var(--space-2);
  font-size: var(--text-xl);
}

.restaurant-table__note p {
  max-width: 40ch;
  margin-bottom: var(--space-3);
}

.restaurant-table__note div > :last-child {
  margin-bottom: 0;
}

.restaurant-text-link {
  font-weight: 700;
}

.restaurant-table__figure {
  aspect-ratio: 4 / 3;
}

.restaurant-table__figure img {
  aspect-ratio: 4 / 3;
}

.restaurant-table__figure figcaption {
  padding: 0 var(--space-3) var(--space-3);
}

.restaurant-poker__intro {
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: var(--space-7);
  text-align: center;
}

.restaurant-poker__principles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.restaurant-poker__principle {
  padding: var(--space-5);
  border: 1px solid var(--color-border-warm);
  border-radius: var(--radius-md);
  background: #fffaf0;
}

.restaurant-poker__principle--surface {
  border-color: var(--color-border);
  background: var(--color-blanc-perle);
}

.restaurant-poker__pearl {
  position: relative;
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-4);
  border: 1px solid var(--color-bleu-royal);
  border-radius: 50%;
}

.restaurant-poker__pearl::after {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--color-champagne);
  content: "";
}

.restaurant-poker__principle h3 {
  max-width: 24ch;
}

.restaurant-poker__principle p {
  max-width: 48ch;
  margin-bottom: 0;
}

.restaurant-poker__responsible {
  max-width: 56ch;
  margin: var(--space-6) auto 0;
  border: 1px solid color-mix(in srgb, var(--color-bordeaux-sourd) 22%, white);
  border-radius: var(--radius-md);
  background: var(--color-fond-responsable);
  padding: var(--space-5);
}

.restaurant-poker__responsible h3 {
  color: var(--color-bordeaux-sourd);
}

.restaurant-poker__responsible p {
  margin-bottom: var(--space-3);
}

.restaurant-poker__responsible > :last-child {
  margin-bottom: 0;
}

.restaurant-gallery__intro,
.restaurant-summary__intro {
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-7);
  text-align: center;
}

.restaurant-gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

.restaurant-gallery__item {
  margin: 0;
}

.restaurant-gallery__trigger {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--color-border-warm);
  border-radius: var(--radius-md);
  background: var(--color-beige-doux);
  padding: 0;
}

.restaurant-gallery__trigger img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.restaurant-gallery__item figcaption {
  max-width: 34ch;
  margin-top: var(--space-4);
}

.restaurant-gallery__item figcaption strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-encre);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  line-height: var(--leading-subheading);
}

.restaurant-gallery__index {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-or-feuille);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.restaurant-gallery__item .badge {
  margin-bottom: var(--space-2);
}

.restaurant-groups__heading {
  max-width: 42ch;
  margin-bottom: var(--space-7);
}

.restaurant-groups__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.restaurant-groups__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-ivoire);
  padding: var(--space-5);
}

.restaurant-groups__card > * {
  min-width: 0;
  margin: 0;
}

.restaurant-groups__card h3 {
  max-width: 23ch;
}

.restaurant-groups__card p:not(.restaurant-groups__label) {
  max-width: 52ch;
}

.restaurant-groups__card--soft {
  background: var(--color-beige-doux);
}

.restaurant-groups__card--white {
  background: var(--color-blanc-perle);
}

.restaurant-groups__label {
  color: var(--color-bleu-royal-fonce);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1;
}

.restaurant-groups__note {
  max-width: 58ch;
  margin-top: var(--space-5);
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.restaurant-summary__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}

.restaurant-summary__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-blanc-perle);
  padding: var(--space-5);
}

.restaurant-summary__item h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.restaurant-summary__item p {
  max-width: 32ch;
  margin-bottom: 0;
}

.restaurant-summary__title-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.restaurant-summary__title-row > * {
  min-width: 0;
}

.restaurant-next__panel {
  width: min(100%, 66rem);
  margin-inline: auto;
  border: 1px solid var(--color-border-warm);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-ivoire), #fff7e5);
  padding: var(--space-5);
}

.restaurant-next__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.restaurant-next__content > * {
  min-width: 0;
  margin: 0;
}

.restaurant-next__content h2,
.restaurant-next__content > p:not(.restaurant-next__responsible) {
  max-width: 58ch;
}

.restaurant-next__actions {
  width: 100%;
}

.restaurant-next__responsible {
  max-width: 64ch;
  color: var(--color-bordeaux-sourd);
  font-size: var(--text-sm);
}

.restaurant-lightbox {
  width: min(100% - 2.5rem, 68rem);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-blanc-perle);
  box-shadow: var(--shadow-soft);
  padding: 0;
}

.restaurant-lightbox::backdrop {
  background: rgb(24 34 53 / 70%);
}

.restaurant-lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-4);
}

.restaurant-lightbox__content > * {
  min-width: 0;
  margin: 0;
}

.restaurant-lightbox__close {
  align-self: flex-end;
  min-width: 6rem;
  border: 1px solid var(--color-bleu-royal);
  border-radius: var(--radius-md);
  background: var(--color-blanc-perle);
  color: var(--color-bleu-royal-fonce);
  padding: var(--space-2) var(--space-3);
  font-weight: 700;
}

.restaurant-lightbox__image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.restaurant-lightbox__caption {
  color: var(--color-text-muted);
}

@media (min-width: 30rem) {
  .restaurant-hero__markers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .restaurant-hero__marker + .restaurant-hero__marker {
    border-left: 1px solid var(--color-champagne);
    padding-left: var(--space-4);
  }

  .restaurant-next__panel {
    padding: var(--space-6);
  }
}

@media (min-width: 42.5rem) {
  .restaurant-groups__grid,
  .restaurant-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .restaurant-hero__grid {
    gap: var(--space-6);
  }

  .restaurant-materials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .restaurant-materials__item:nth-child(3) {
    width: calc(50% - (var(--space-5) / 2));
  }

  .restaurant-table__notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .restaurant-table__notes > .eyebrow,
  .restaurant-table__notes > h2 {
    grid-column: 1 / -1;
  }

  .restaurant-table__note {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .restaurant-table__note-number {
    grid-column: 1;
  }

  .restaurant-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .restaurant-gallery__item:nth-child(3) {
    width: calc(50% - (var(--space-6) / 2));
  }
}

@media (min-width: 51.25rem) {
  .restaurant-poker__principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 55rem) {
  .restaurant-story__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: calc(var(--space-6) + var(--space-3));
  }
}

@media (min-width: 56.25rem) {
  .restaurant-table__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 57.5rem) {
  .restaurant-hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
  }

  .restaurant-hero__content {
    order: 1;
  }

  .restaurant-hero__media {
    order: 2;
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 56.25rem) {
  .restaurant-table__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }

  .restaurant-table__notes {
    display: flex;
    flex-direction: column;
  }

  .restaurant-table__note {
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }
}

@media (min-width: 56.25rem) and (max-width: 63.99rem) {
  .restaurant-materials__item:nth-child(3),
  .restaurant-gallery__item:nth-child(3) {
    width: 100%;
  }
}

@media (min-width: 60rem) {
  .restaurant-summary__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 62.5rem) {
  .restaurant-groups__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .restaurant-materials__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .restaurant-materials__item:nth-child(3),
  .restaurant-gallery__item:nth-child(3) {
    width: 100%;
  }

  .restaurant-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .restaurant-next__content {
    align-items: center;
    text-align: center;
  }

  .restaurant-next__actions {
    justify-content: center;
  }
}

@media (max-width: 26.24rem) {
  .restaurant-hero__markers {
    grid-template-columns: minmax(0, 1fr);
  }

  .restaurant-hero__marker + .restaurant-hero__marker {
    border-left: 0;
    border-top: 1px solid var(--color-champagne);
    padding-top: var(--space-4);
    padding-left: 0;
  }

  .restaurant-table__note {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (hover: hover) and (pointer: fine) {
  .restaurant-gallery__trigger:hover img {
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .restaurant-gallery__trigger img {
    transition: none;
  }
}
