/*
Theme Name: Distracted Onepage
Theme URI: https://distracted-antonelli.217-154-146-189.plesk.page
Author: Codex
Description: Template restaurant premium avec carte administrable, reservation telephone et galerie.
Version: 1.5.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: distracted-onepage
*/

:root {
  --ink: #1f2421;
  --ink-soft: #49524b;
  --paper: #f7f3ec;
  --paper-strong: #fffaf2;
  --line: rgba(31, 36, 33, 0.14);
  --terracotta: #a45538;
  --terracotta-dark: #7f3c28;
  --olive: #536b48;
  --blue: #607d8c;
  --gold: #d4a24c;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 36, 33, 0.12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(247, 243, 236, 0.98)),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(31, 36, 33, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 36, 33, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(31, 36, 33, 0.08);
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--container));
  min-height: 78px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper-strong);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 36, 33, 0.16);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  color: var(--ink-soft);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  outline: none;
}

.nav-cta,
.button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-cta,
.button-primary,
.submit-button {
  color: var(--paper-strong);
  background: var(--terracotta-dark);
  box-shadow: 0 12px 28px rgba(127, 60, 40, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.nav-cta:hover,
.button:hover,
.submit-button:hover,
.nav-cta:focus-visible,
.button:focus-visible,
.submit-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 16px 34px rgba(31, 36, 33, 0.18);
}

.section {
  padding: 92px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.42);
  border-block: 1px solid rgba(31, 36, 33, 0.08);
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 54px 0 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  color: var(--terracotta-dark);
  background: rgba(164, 85, 56, 0.1);
  border: 1px solid rgba(164, 85, 56, 0.2);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-top: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  font-weight: 700;
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.proof-item {
  padding: 18px;
  min-height: 112px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proof-item strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.proof-item span {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.photo-stack {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: 320px 250px;
  gap: 16px;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #d6cabc;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.photo-tile.large {
  grid-row: span 2;
}

.photo-tile.offset {
  margin-top: 42px;
}

.floating-note {
  position: absolute;
  right: 28px;
  bottom: 18px;
  width: min(340px, 84%);
  padding: 22px;
  color: var(--paper-strong);
  background: rgba(31, 36, 33, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(31, 36, 33, 0.28);
}

.floating-note strong {
  display: block;
  font-size: 1.05rem;
}

.floating-note span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 250, 242, 0.72);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(260px, 0.42fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.55rem;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.service-grid,
.sector-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.sector-card,
.portfolio-card,
.testimonial-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 36, 33, 0.07);
}

.service-card {
  min-height: 250px;
  padding: 24px;
}

.service-card .number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 32px;
  color: var(--paper-strong);
  background: var(--olive);
  border-radius: 8px;
  font-weight: 850;
}

.service-card h3,
.sector-card h3,
.portfolio-card h3 {
  font-size: 1.25rem;
}

.service-card p,
.sector-card p,
.portfolio-card p,
.testimonial-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.sector-card {
  overflow: hidden;
}

.sector-card img {
  width: 100%;
  height: 215px;
  object-fit: cover;
}

.sector-card div,
.portfolio-card div {
  padding: 22px;
}

.menu-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.55fr);
  gap: 32px;
  align-items: center;
  padding: 36px;
  color: var(--paper-strong);
  background:
    linear-gradient(135deg, rgba(31, 36, 33, 0.98), rgba(83, 107, 72, 0.92)),
    var(--ink);
  border-radius: 8px;
}

.menu-band h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
}

.menu-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-list span {
  color: rgba(255, 250, 242, 0.7);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: 230px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 420ms ease, transform 420ms ease;
}

body.has-motion .gallery-item {
  transform: translateY(18px);
  opacity: 0;
}

body.has-motion .gallery-item.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(164, 85, 56, 0.46);
  outline-offset: 3px;
}

.portfolio-card {
  overflow: hidden;
}

.portfolio-card .tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  color: var(--terracotta-dark);
  background: rgba(164, 85, 56, 0.1);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.testimonial-card {
  padding: 26px;
}

.testimonial-card strong {
  display: block;
  margin-top: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(380px, 0.65fr);
  gap: 44px;
  align-items: start;
}

.contact-panel {
  padding: 30px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-details {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-details div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-details strong {
  display: block;
  margin-bottom: 5px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(31, 36, 33, 0.18);
  border-radius: 8px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--terracotta);
  outline: 3px solid rgba(164, 85, 56, 0.16);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.notice {
  margin: 0 0 18px;
  padding: 13px 15px;
  border-radius: 8px;
  font-weight: 750;
}

.notice.success {
  color: #20422f;
  background: rgba(83, 107, 72, 0.15);
  border: 1px solid rgba(83, 107, 72, 0.22);
}

.notice.error {
  color: #6e2f22;
  background: rgba(164, 85, 56, 0.12);
  border: 1px solid rgba(164, 85, 56, 0.24);
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 250, 242, 0.78);
  background: var(--ink);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-grid strong {
  color: var(--paper-strong);
}

.dialog {
  width: min(920px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.dialog::backdrop {
  background: rgba(31, 36, 33, 0.72);
}

.dialog img {
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  border-radius: 8px;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  min-height: 44px;
  color: var(--paper-strong);
  background: rgba(31, 36, 33, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .section-heading,
  .menu-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .service-grid,
  .sector-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-wrap,
  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a,
  .nav-cta {
    width: 100%;
  }

  .brand-text small {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  h1 {
    font-size: 2.7rem;
  }

  .section-heading h2,
  .menu-band h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-proof,
  .service-grid,
  .sector-grid,
  .portfolio-grid,
  .testimonials,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .photo-stack,
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .photo-tile.large,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .photo-tile.offset {
    margin-top: 0;
  }

  .floating-note {
    position: static;
    width: auto;
    margin-top: 16px;
  }

  .menu-band,
  .contact-panel {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.3rem;
  }

  .hero-actions .button {
    width: 100%;
  }
}

/* Restaurant template */
body {
  background:
    linear-gradient(180deg, rgba(252, 247, 238, 0.96), rgba(244, 236, 223, 0.98)),
    #f4ecdf;
}

.brand-mark {
  background: #301c18;
}

.restaurant-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 78px);
  align-items: end;
  overflow: hidden;
  color: var(--paper-strong);
  background: #241614;
}

.restaurant-hero-media {
  position: absolute;
  inset: 0;
}

.restaurant-hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(25, 14, 12, 0.9), rgba(25, 14, 12, 0.52), rgba(25, 14, 12, 0.72)),
    linear-gradient(0deg, rgba(25, 14, 12, 0.95), rgba(25, 14, 12, 0.08) 44%);
}

.restaurant-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restaurant-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.42fr);
  align-items: end;
  gap: 44px;
  padding: 96px 0 74px;
}

.restaurant-hero h1 {
  max-width: 850px;
  color: var(--paper-strong);
  text-wrap: balance;
}

.restaurant-hero .lead {
  color: rgba(255, 250, 242, 0.82);
}

.restaurant-hero .button-secondary {
  color: var(--paper-strong);
  background: rgba(255, 250, 242, 0.12);
  border-color: rgba(255, 250, 242, 0.32);
}

.restaurant-hero .eyebrow,
.menu-showcase .eyebrow {
  color: #f1c170;
  background: rgba(212, 162, 76, 0.16);
  border-color: rgba(212, 162, 76, 0.36);
}

.reservation-card {
  padding: 26px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.reservation-card > span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--terracotta-dark);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.reservation-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.reservation-card p {
  color: var(--ink-soft);
}

.reservation-card dl {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.reservation-card dt {
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}

.reservation-card dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.restaurant-intro {
  padding-bottom: 44px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.5fr);
  gap: 34px;
  align-items: end;
}

.intro-grid h2,
.menu-showcase h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1.05;
}

.intro-grid p,
.menu-showcase p {
  margin: 0;
  color: var(--ink-soft);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.feature-row article {
  min-height: 146px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 36, 33, 0.07);
}

.feature-row strong {
  display: block;
  font-size: 1.08rem;
}

.feature-row span {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.menu-orchestrator {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: 16px 20px;
  align-items: end;
  margin: 0 0 24px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(31, 36, 33, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 36, 33, 0.08);
}

.menu-search {
  display: grid;
  gap: 8px;
}

.menu-search span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.menu-search input {
  min-height: 48px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(31, 36, 33, 0.18);
  border-radius: 8px;
}

.menu-search input:focus {
  border-color: var(--terracotta);
  outline: 3px solid rgba(164, 85, 56, 0.16);
}

.menu-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-filter {
  min-height: 44px;
  padding: 9px 13px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.menu-filter.is-active,
.menu-filter:focus-visible {
  color: var(--paper-strong);
  background: var(--terracotta-dark);
  outline: none;
}

.menu-count {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 750;
}

.menu-book-shell {
  margin-top: 20px;
}

.menu-book {
  position: relative;
}

.book-stage {
  display: grid;
  gap: 18px;
}

.book-page {
  position: relative;
  min-height: 640px;
  padding: 34px;
  overflow: hidden;
  color: #2b211d;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.78), rgba(255, 246, 230, 0.56) 46%, rgba(231, 211, 179, 0.52)),
    #fff7e8;
  border: 1px solid rgba(66, 43, 32, 0.2);
  border-left: 8px solid rgba(48, 28, 24, 0.82);
  border-radius: 8px;
  box-shadow:
    0 28px 80px rgba(39, 25, 20, 0.14),
    inset 18px 0 26px rgba(48, 28, 24, 0.08),
    inset -1px 0 0 rgba(255, 255, 255, 0.62);
}

.book-page::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(48, 28, 24, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 24%, rgba(164, 85, 56, 0.1), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(83, 107, 72, 0.11), transparent 30%);
  background-size: 100% 32px, 100% 100%, 100% 100%;
}

.book-page > * {
  position: relative;
  z-index: 1;
}

body.has-book .book-stage {
  position: relative;
  min-height: 700px;
  perspective: 1800px;
  transform-style: preserve-3d;
}

body.has-book .book-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: rotateY(9deg) translateX(22px) translateZ(-10px);
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: opacity 260ms ease, transform 500ms cubic-bezier(0.22, 0.9, 0.22, 1);
}

body.has-book .book-page.is-active {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  transform: rotateY(0deg) translateX(0) translateZ(4px);
}

body.has-book .book-page.is-before {
  z-index: 1;
  transform: rotateY(-102deg) translateX(-18px) translateZ(-18px);
}

body.has-book .book-page.is-after {
  z-index: 0;
}

body.has-book .book-page.book-page-turning.turn-page-forward {
  z-index: 7;
  opacity: 1;
  animation: pageTurnForward 740ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

body.has-book .book-page.book-page-turning.turn-page-back {
  z-index: 7;
  opacity: 1;
  animation: pageTurnBack 740ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

@keyframes pageTurnForward {
  0% {
    transform: rotateY(0deg) translateX(0) translateZ(10px);
    box-shadow:
      0 26px 70px rgba(39, 25, 20, 0.16),
      inset 18px 0 26px rgba(48, 28, 24, 0.08);
  }

  45% {
    transform: rotateY(-54deg) translateX(-8px) translateZ(38px);
    box-shadow:
      34px 32px 70px rgba(39, 25, 20, 0.24),
      inset 28px 0 38px rgba(48, 28, 24, 0.18);
  }

  100% {
    transform: rotateY(-104deg) translateX(-22px) translateZ(-8px);
    box-shadow:
      8px 20px 48px rgba(39, 25, 20, 0.12),
      inset 32px 0 44px rgba(48, 28, 24, 0.24);
  }
}

@keyframes pageTurnBack {
  0% {
    transform: rotateY(-104deg) translateX(-22px) translateZ(-8px);
    box-shadow:
      8px 20px 48px rgba(39, 25, 20, 0.12),
      inset 32px 0 44px rgba(48, 28, 24, 0.24);
  }

  55% {
    transform: rotateY(-42deg) translateX(-6px) translateZ(38px);
    box-shadow:
      34px 32px 70px rgba(39, 25, 20, 0.24),
      inset 26px 0 38px rgba(48, 28, 24, 0.16);
  }

  100% {
    transform: rotateY(0deg) translateX(0) translateZ(10px);
    box-shadow:
      0 26px 70px rgba(39, 25, 20, 0.16),
      inset 18px 0 26px rgba(48, 28, 24, 0.08);
  }
}

.book-cover,
.book-back-cover {
  display: grid;
  place-items: center;
  color: #fff7e8;
  background:
    linear-gradient(135deg, rgba(48, 28, 24, 0.94), rgba(93, 51, 38, 0.92)),
    #301c18;
  border-color: rgba(212, 162, 76, 0.38);
  border-left-color: rgba(212, 162, 76, 0.72);
}

.book-cover::before,
.book-back-cover::before {
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 250, 242, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, rgba(212, 162, 76, 0.22), transparent 34%);
}

.book-cover-inner {
  width: min(100%, 620px);
  text-align: center;
}

.book-kicker,
.book-page-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  color: #f1c170;
  background: rgba(212, 162, 76, 0.12);
  border: 1px solid rgba(212, 162, 76, 0.26);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.book-cover h3,
.book-back-cover h3 {
  margin-top: 18px;
  color: #fff7e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 0.98;
}

.book-cover p,
.book-back-cover p {
  max-width: 560px;
  margin: 24px auto 0;
  color: rgba(255, 250, 242, 0.78);
  font-size: 1.05rem;
}

.book-cover .button,
.book-back-cover .button {
  margin-top: 28px;
}

.book-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(48, 28, 24, 0.16);
}

.book-page-head h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.book-page-head p,
.book-page-note {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.book-page-note {
  max-width: 760px;
  margin: 18px 0 22px;
}

.book-dish-list {
  flex: 1;
  align-content: start;
  overflow: auto;
  padding: 2px 4px 4px 0;
}

.book-dish {
  min-height: 152px;
  background: rgba(255, 253, 248, 0.68);
  box-shadow: none;
}

.book-reservation-list {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin: 24px auto 0;
  text-align: left;
}

.book-reservation-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.16);
}

.book-reservation-list dt {
  color: #f1c170;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.book-reservation-list dd {
  margin: 4px 0 0;
  color: rgba(255, 250, 242, 0.86);
  font-weight: 800;
}

.book-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

body.has-book .book-controls {
  display: flex;
}

.book-page:focus-visible {
  outline: 3px solid rgba(164, 85, 56, 0.3);
  outline-offset: 4px;
}

.book-prev,
.book-next {
  min-width: 132px;
  min-height: 44px;
  padding: 10px 15px;
  color: var(--paper-strong);
  background: #301c18;
  border: 1px solid rgba(48, 28, 24, 0.2);
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.book-prev::before {
  content: "< ";
}

.book-next::after {
  content: " >";
}

.book-prev:disabled,
.book-next:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.book-prev:focus-visible,
.book-next:focus-visible {
  outline: 3px solid rgba(164, 85, 56, 0.28);
  outline-offset: 3px;
}

.book-page-indicator {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
}

.menu-tab {
  min-height: 44px;
  padding: 10px 15px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.menu-tab.is-active,
.menu-tab:focus-visible {
  color: var(--paper-strong);
  background: #301c18;
  outline: none;
}

.menu-panel[hidden] {
  display: none;
}

.menu-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.menu-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 176px;
  padding: 24px;
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid rgba(31, 36, 33, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(31, 36, 33, 0.08);
  transition: opacity 420ms ease, transform 420ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.has-motion .menu-card {
  transform: translateY(18px);
  opacity: 0;
}

.menu-card.featured {
  border-color: rgba(164, 85, 56, 0.36);
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(244, 229, 211, 0.92));
}

body.has-motion .menu-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.menu-card:hover {
  border-color: rgba(164, 85, 56, 0.34);
  box-shadow: 0 22px 54px rgba(31, 36, 33, 0.12);
}

.menu-card[hidden] {
  display: none;
}

.menu-card h3,
.menu-card h4 {
  font-size: 1.2rem;
}

.menu-card p {
  margin: 11px 0 0;
  color: var(--ink-soft);
}

.menu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.menu-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: #553025;
  background: rgba(164, 85, 56, 0.1);
  border: 1px solid rgba(164, 85, 56, 0.16);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.menu-card-action {
  display: grid;
  gap: 14px;
  justify-items: end;
  flex: 0 0 auto;
}

.menu-card-action strong {
  color: var(--terracotta-dark);
  font-size: 1.08rem;
}

.dish-open {
  min-height: 40px;
  padding: 8px 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(31, 36, 33, 0.18);
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.dish-open:hover,
.dish-open:focus-visible {
  color: var(--paper-strong);
  background: #301c18;
  outline: none;
}

.menu-empty {
  margin: 18px 0 0;
  padding: 18px;
  color: var(--terracotta-dark);
  background: rgba(164, 85, 56, 0.1);
  border: 1px solid rgba(164, 85, 56, 0.22);
  border-radius: 8px;
  font-weight: 850;
}

.dish-dialog {
  width: min(680px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  background: var(--paper-strong);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.dish-dialog::backdrop {
  background: rgba(31, 20, 17, 0.72);
  backdrop-filter: blur(8px);
}

.dish-dialog-content {
  padding: 34px;
}

.dish-dialog h3 {
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.dish-dialog dl {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.dish-dialog dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.dish-dialog dt {
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dish-dialog dd {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.menu-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(340px, 0.54fr);
  gap: 44px;
  align-items: center;
}

.menu-showcase .button {
  margin-top: 26px;
}

.showcase-stack {
  position: relative;
}

.showcase-stack img {
  width: 100%;
  min-height: 470px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chef-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 20px;
  color: var(--paper-strong);
  background: rgba(36, 22, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.chef-note strong,
.chef-note span {
  display: block;
}

.chef-note span {
  margin-top: 6px;
  color: rgba(255, 250, 242, 0.72);
}

.restaurant-gallery {
  grid-template-columns: 1fr 0.9fr 1.1fr;
}

.contact-panel h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.contact-details a {
  color: var(--terracotta-dark);
  font-weight: 850;
}

@media (max-width: 980px) {
  .restaurant-hero-content,
  .intro-grid,
  .menu-showcase {
    grid-template-columns: 1fr;
  }

  .restaurant-hero-content {
    padding-top: 76px;
  }

  .feature-row,
  .menu-card-grid {
    grid-template-columns: 1fr;
  }

  body.has-book .book-stage {
    min-height: 760px;
  }
}

@media (max-width: 760px) {
  .restaurant-hero {
    min-height: auto;
  }

  .restaurant-hero-content {
    padding: 62px 0 54px;
  }

  .restaurant-hero h1,
  .intro-grid h2,
  .menu-showcase h2 {
    font-size: 2.3rem;
  }

  .reservation-card strong {
    font-size: 1.55rem;
  }

  .menu-tab {
    flex: 1 1 auto;
  }

  .menu-card {
    display: grid;
  }

  .menu-orchestrator {
    grid-template-columns: 1fr;
  }

  body.has-book .book-stage {
    display: block;
    min-height: auto;
    perspective: none;
  }

  body.has-book .book-page {
    position: relative;
    display: none;
    min-height: auto;
    padding: 24px;
    overflow: visible;
    transform: none;
  }

  body.has-book .book-page.is-active {
    display: block;
    opacity: 1;
    transform: none;
  }

  body.has-book .book-page.is-before,
  body.has-book .book-page.is-after {
    transform: none;
  }

  .book-page-head {
    display: grid;
    align-items: start;
  }

  .book-cover h3,
  .book-back-cover h3 {
    font-size: 2.5rem;
  }

  .book-controls {
    flex-wrap: wrap;
  }

  .book-page-indicator {
    order: -1;
    width: 100%;
  }

  .book-prev,
  .book-next {
    flex: 1 1 120px;
    min-width: 0;
  }

  .menu-filter {
    flex: 1 1 auto;
  }

  .menu-card-action {
    justify-items: start;
  }

  .dish-dialog dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .showcase-stack img {
    min-height: 340px;
  }

  .chef-note {
    position: static;
    margin-top: 12px;
  }
}

/* Book visual refinement */
.menu-book {
  --book-height: clamp(560px, 66svh, 680px);
  --book-spine: #3a211c;
  --book-page-shadow: 0 18px 46px rgba(39, 25, 20, 0.16);
}

.menu-book-shell {
  margin-top: 16px;
}

.book-stage,
body.has-book .book-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.42fr) minmax(0, 1fr);
  gap: 0;
  height: var(--book-height);
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(58, 33, 28, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(48, 28, 24, 0.24), transparent 12%, transparent 88%, rgba(48, 28, 24, 0.18)),
    linear-gradient(135deg, rgba(255, 250, 242, 0.8), rgba(232, 213, 181, 0.7));
  box-shadow: 0 26px 70px rgba(39, 25, 20, 0.16);
  perspective: 1800px;
  transform-style: preserve-3d;
}

.book-stage::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: calc(10px + (100% - 20px) * 0.296);
  z-index: 3;
  width: 18px;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(34, 19, 16, 0.34), rgba(255, 250, 242, 0.3), rgba(34, 19, 16, 0.2));
  filter: blur(0.2px);
}

.book-static-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 24px 24px 22px;
  color: rgba(255, 250, 242, 0.86);
  background:
    linear-gradient(145deg, rgba(48, 28, 24, 0.96), rgba(87, 47, 36, 0.94)),
    #301c18;
  border-radius: 7px 0 0 7px;
  box-shadow: inset -28px 0 38px rgba(0, 0, 0, 0.16);
}

.book-static-page h3 {
  margin-top: 18px;
  color: #fff7e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  line-height: 1;
}

.book-static-page p {
  margin: 12px 0 0;
  color: rgba(255, 250, 242, 0.7);
  font-size: 0.94rem;
}

.book-index {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.book-mini-jump {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  gap: 10px;
  padding: 8px 9px;
  color: rgba(255, 250, 242, 0.82);
  background: rgba(255, 250, 242, 0.07);
  border: 1px solid rgba(255, 250, 242, 0.14);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.book-mini-jump span {
  color: #f1c170;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.book-mini-jump.is-active,
.book-mini-jump:focus-visible {
  color: #301c18;
  background: #f1c170;
  outline: none;
}

.book-mini-jump.is-active span,
.book-mini-jump:focus-visible span {
  color: #301c18;
}

.book-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 12px;
  color: #301c18;
  background: #f1c170;
  border-radius: 8px;
  font-weight: 900;
}

.book-page-stack {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: 100%;
  perspective: inherit;
  transform-style: preserve-3d;
}

.book-page-stack::before {
  position: absolute;
  inset: 0 0 0 -8px;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(48, 28, 24, 0.18), transparent 14%);
}

.book-page,
body.has-book .book-page {
  height: 100%;
  min-height: 0;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  box-shadow: var(--book-page-shadow), inset 20px 0 26px rgba(48, 28, 24, 0.055);
  scrollbar-width: thin;
  scrollbar-color: rgba(164, 85, 56, 0.42) transparent;
}

body.has-book .book-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: rotateY(7deg) translateX(14px) translateZ(-8px) scale(0.985);
  transform-origin: left center;
}

body.has-book .book-page.is-active {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  transform: rotateY(0deg) translateX(0) translateZ(6px) scale(1);
}

body.has-book .book-page.is-before {
  z-index: 1;
  transform: rotateY(-96deg) translateX(-12px) translateZ(-18px) scale(0.98);
}

body.has-book .book-page.is-after {
  z-index: 0;
  transform: rotateY(8deg) translateX(14px) translateZ(-12px) scale(0.985);
}

body.has-book .book-page.book-page-turning.turn-page-forward,
body.has-book .book-page.book-page-turning.turn-page-back {
  opacity: 0;
  animation: none;
  pointer-events: none;
}

.menu-book.page-turn-animating .book-prev,
.menu-book.page-turn-animating .book-next,
.menu-book.page-turn-animating .book-jump {
  pointer-events: none;
}

.book-curl-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  overflow: visible;
  perspective: inherit;
  transform-style: preserve-3d;
}

.book-curl-overlay::before,
.book-curl-overlay::after {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  content: "";
}

.book-curl-overlay::before {
  background:
    radial-gradient(ellipse at 62% 46%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(90deg, transparent 8%, rgba(48, 28, 24, 0.12) 42%, rgba(255, 255, 255, 0.18) 58%, rgba(48, 28, 24, 0.18) 86%);
  mix-blend-mode: soft-light;
  animation: pageCurlLight 920ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.book-curl-overlay::after {
  background:
    radial-gradient(ellipse at 72% 52%, transparent 0 40%, rgba(39, 25, 20, 0.18) 64%, transparent 76%);
  opacity: 0.74;
  animation: pageCurlCastShadow 920ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.book-curl-sheet {
  position: absolute;
  inset: 0;
  z-index: 16;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.2), rgba(255, 250, 239, 0.92) 34%, rgba(229, 210, 177, 0.72) 68%, rgba(255, 255, 255, 0.22)),
    radial-gradient(ellipse at 72% 52%, rgba(255, 255, 255, 0.58), transparent 42%),
    #fff7e8;
  border-radius: 0 18px 18px 0;
  box-shadow:
    -18px 22px 38px rgba(39, 25, 20, 0.18),
    inset 26px 0 34px rgba(48, 28, 24, 0.08),
    inset -20px 0 34px rgba(255, 255, 255, 0.32);
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform, opacity, clip-path;
}

.book-curl-overlay.is-curling.curl-forward .book-curl-sheet {
  animation: pageCurlSheetForward 920ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.book-curl-overlay.is-curling.curl-back .book-curl-sheet {
  animation: pageCurlSheetBack 920ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.book-curl-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(0) rotateY(0deg) translateZ(8px);
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  filter: drop-shadow(0 8px 14px rgba(39, 25, 20, 0.08));
  will-change: transform, opacity, filter;
}

.book-curl-segment::before,
.book-curl-segment::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  content: "";
}

.book-curl-segment::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 26%, rgba(48, 28, 24, 0.08) 70%, rgba(48, 28, 24, 0.18)),
    radial-gradient(ellipse at 82% 50%, rgba(255, 255, 255, 0.32), transparent 48%);
  mix-blend-mode: soft-light;
  opacity: 0.26;
}

.book-curl-segment::after {
  background:
    linear-gradient(90deg, rgba(48, 28, 24, 0.18), transparent 34%, rgba(255, 255, 255, 0.16) 70%, rgba(48, 28, 24, 0.32));
  opacity: 0.24;
}

.book-curl-page-copy {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  height: 100%;
  padding: 24px;
  overflow: hidden;
  color: #2b211d;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.78), rgba(255, 246, 230, 0.56) 46%, rgba(231, 211, 179, 0.52)),
    #fff7e8;
  border-radius: 0 7px 7px 0;
  box-shadow: inset 20px 0 26px rgba(48, 28, 24, 0.055);
  pointer-events: none;
}

.book-curl-page-copy.book-cover,
.book-curl-page-copy.book-back-cover {
  color: #fff7e8;
  background:
    linear-gradient(135deg, rgba(48, 28, 24, 0.94), rgba(93, 51, 38, 0.92)),
    #301c18;
}

.book-curl-overlay.is-curling.curl-forward .book-curl-segment {
  animation: pageCurlForward 920ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
  animation-delay: var(--curl-delay);
}

.book-curl-overlay.is-curling.curl-back .book-curl-segment {
  animation: pageCurlBack 920ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
  animation-delay: var(--curl-delay);
}

@keyframes pageCurlForward {
  0% {
    opacity: 0.62;
    transform: translateX(0) rotateY(0deg) translateZ(10px) skewY(0deg);
    filter: drop-shadow(0 8px 14px rgba(39, 25, 20, 0.08));
  }

  34% {
    opacity: 0.42;
    transform: translateX(var(--curl-mid-x)) rotateY(var(--curl-mid-rotate)) translateZ(var(--curl-mid-z)) skewY(var(--curl-mid-skew));
    filter: drop-shadow(8px 18px 20px rgba(39, 25, 20, 0.12));
  }

  66% {
    opacity: 0.3;
    transform: translateX(var(--curl-late-x)) rotateY(-86deg) translateZ(var(--curl-late-z)) skewY(var(--curl-late-skew));
    filter: drop-shadow(8px 16px 18px rgba(39, 25, 20, 0.1));
  }

  100% {
    opacity: 0;
    transform: translateX(var(--curl-end-x)) rotateY(var(--curl-end-rotate)) translateZ(-18px) skewY(0deg);
    filter: drop-shadow(0 8px 14px rgba(39, 25, 20, 0.08));
  }
}

@keyframes pageCurlBack {
  0% {
    opacity: 0.62;
    transform: translateX(0) rotateY(0deg) translateZ(10px) skewY(0deg);
    filter: drop-shadow(0 8px 14px rgba(39, 25, 20, 0.08));
  }

  34% {
    opacity: 0.42;
    transform: translateX(var(--curl-mid-x)) rotateY(var(--curl-mid-rotate)) translateZ(var(--curl-mid-z)) skewY(var(--curl-mid-skew));
    filter: drop-shadow(-8px 18px 20px rgba(39, 25, 20, 0.12));
  }

  66% {
    opacity: 0.3;
    transform: translateX(var(--curl-late-x)) rotateY(86deg) translateZ(var(--curl-late-z)) skewY(var(--curl-late-skew));
    filter: drop-shadow(-8px 16px 18px rgba(39, 25, 20, 0.1));
  }

  100% {
    opacity: 0;
    transform: translateX(var(--curl-end-x)) rotateY(var(--curl-end-rotate)) translateZ(-18px) skewY(0deg);
    filter: drop-shadow(0 8px 14px rgba(39, 25, 20, 0.08));
  }
}

@keyframes pageCurlLight {
  0% {
    opacity: 0;
    transform: translateX(18%) scaleX(0.68);
  }

  36% {
    opacity: 0.78;
    transform: translateX(0) scaleX(1);
  }

  100% {
    opacity: 0;
    transform: translateX(-18%) scaleX(0.82);
  }
}

@keyframes pageCurlCastShadow {
  0% {
    opacity: 0;
    transform: translateX(16%) scaleX(0.72);
  }

  42% {
    opacity: 0.7;
    transform: translateX(0) scaleX(1);
  }

  100% {
    opacity: 0;
    transform: translateX(-20%) scaleX(0.88);
  }
}

@keyframes pageCurlSheetForward {
  0% {
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateX(0) rotateY(0deg) translateZ(14px) skewY(0deg);
  }

  30% {
    opacity: 0.84;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    transform: translateX(-10px) rotateY(-48deg) translateZ(74px) skewY(-2.5deg);
  }

  62% {
    opacity: 0.7;
    clip-path: polygon(0 0, 92% 0, 76% 100%, 0 100%);
    transform: translateX(-18px) rotateY(-82deg) translateZ(42px) skewY(-1.4deg);
  }

  100% {
    opacity: 0;
    clip-path: polygon(0 0, 72% 0, 54% 100%, 0 100%);
    transform: translateX(-28px) rotateY(-108deg) translateZ(-12px) skewY(0deg);
  }
}

@keyframes pageCurlSheetBack {
  0% {
    opacity: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: translateX(0) rotateY(0deg) translateZ(14px) skewY(0deg);
  }

  30% {
    opacity: 0.84;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    transform: translateX(10px) rotateY(48deg) translateZ(74px) skewY(2.5deg);
  }

  62% {
    opacity: 0.7;
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 8% 100%);
    transform: translateX(18px) rotateY(82deg) translateZ(42px) skewY(1.4deg);
  }

  100% {
    opacity: 0;
    clip-path: polygon(42% 0, 100% 0, 100% 100%, 28% 100%);
    transform: translateX(28px) rotateY(108deg) translateZ(-12px) skewY(0deg);
  }
}

.book-cover,
.book-back-cover {
  justify-content: center;
}

.book-cover h3,
.book-back-cover h3 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.book-cover p,
.book-back-cover p {
  margin-top: 18px;
}

.book-page-head {
  align-items: start;
  padding-bottom: 12px;
}

.book-page-head h3 {
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
}

.book-page-head p {
  font-size: 0.96rem;
}

.book-page-note {
  display: -webkit-box;
  margin: 12px 0 14px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.book-dish-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  overflow: visible;
  padding: 0 2px 4px;
}

.menu-card.book-dish {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  gap: 10px;
  padding: 13px;
  box-shadow: 0 8px 22px rgba(39, 25, 20, 0.07);
}

body.has-motion .menu-card.book-dish {
  transform: none;
  opacity: 1;
}

.book-dish .tag {
  margin-bottom: 8px;
}

.book-dish h4 {
  font-size: 1.02rem;
  line-height: 1.12;
}

.book-dish p {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.book-dish .menu-meta {
  gap: 6px;
  max-height: 26px;
  margin-top: 10px;
  overflow: hidden;
}

.book-dish .menu-meta span {
  max-width: 100%;
  min-height: 24px;
  padding: 3px 7px;
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-dish .menu-card-action {
  gap: 10px;
}

.book-dish .menu-card-action strong {
  font-size: 0.98rem;
}

.book-dish .dish-open {
  min-height: 38px;
  padding: 7px 10px;
}

.book-controls {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .menu-book {
    --book-height: min(580px, 58svh);
  }

  .book-chapters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .book-chapters::-webkit-scrollbar {
    display: none;
  }

  .book-chapters .menu-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .book-stage,
  body.has-book .book-stage {
    grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1fr);
    padding: 8px;
  }

  .book-stage::before {
    left: calc(8px + (100% - 16px) * 0.277);
  }

  .book-static-page {
    padding: 20px 18px;
  }

  .book-index {
    gap: 6px;
  }

  .book-mini-jump {
    min-height: 36px;
    font-size: 0.82rem;
  }

  .book-page,
  body.has-book .book-page {
    padding: 22px;
  }

  .book-curl-page-copy {
    padding: 22px;
  }

  .book-page-note {
    margin: 8px 0 10px;
    font-size: 0.86rem;
    -webkit-line-clamp: 1;
  }

  .book-dish-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .book-page,
  body.has-book .book-page {
    padding-bottom: 74px;
  }

  .book-controls {
    position: relative;
    z-index: 8;
    margin: -56px 12px 0;
    padding: 0;
  }

  .book-page-indicator {
    padding: 0 10px;
    color: rgba(48, 28, 24, 0.74);
  }
}

@media (max-width: 760px) {
  #carte .section-heading {
    margin-bottom: 16px;
  }

  #carte .section-heading p {
    display: none;
  }

  #carte .section-heading h2 {
    font-size: 1.9rem;
  }

  .menu-orchestrator {
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
  }

  .menu-search {
    gap: 6px;
  }

  .menu-search span {
    font-size: 0.84rem;
  }

  .menu-search input {
    min-height: 42px;
    padding: 10px 12px;
  }

  .menu-filters,
  .book-chapters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .menu-filters::-webkit-scrollbar,
  .book-chapters::-webkit-scrollbar {
    display: none;
  }

  .menu-filter,
  .menu-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .menu-count {
    margin: 0;
    font-size: 0.84rem;
  }

  .book-chapters {
    margin-bottom: 12px;
  }

  .menu-book {
    --book-height: min(440px, 52svh);
  }

  .book-stage,
  body.has-book .book-stage {
    display: block;
    height: var(--book-height);
    min-height: 0;
    padding: 8px;
    perspective: 1100px;
    transform-style: preserve-3d;
  }

  .book-stage::before {
    left: 8px;
    width: 8px;
  }

  .book-static-page {
    display: none;
  }

  .book-page-stack {
    height: 100%;
  }

  .book-page,
  body.has-book .book-page {
    position: absolute;
    inset: 0;
    display: flex;
    height: 100%;
    min-height: 0;
    padding: 18px 18px 74px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 7px;
    opacity: 0;
    pointer-events: none;
    transform: rotateY(9deg) translateX(12px) translateZ(-8px) scale(0.985);
  }

  .book-curl-page-copy {
    padding: 18px 18px 74px;
  }

  body.has-book .book-page.is-active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: rotateY(0deg) translateX(0) translateZ(4px) scale(1);
  }

  body.has-book .book-page.is-before {
    transform: rotateY(-82deg) translateX(-10px) translateZ(-12px) scale(0.985);
  }

  body.has-book .book-page.is-after {
    transform: rotateY(9deg) translateX(12px) translateZ(-8px) scale(0.985);
  }

  .book-cover h3,
  .book-back-cover h3 {
    font-size: clamp(2rem, 12vw, 2.75rem);
  }

  .book-cover p,
  .book-back-cover p {
    font-size: 0.96rem;
  }

  .book-controls {
    margin: -56px 8px 0;
  }

  .book-page-head {
    gap: 10px;
    padding-bottom: 10px;
  }

  .book-page-head h3 {
    font-size: 1.65rem;
  }

  .book-page-note {
    margin: 10px 0 12px;
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
  }

  .book-dish-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .menu-card.book-dish {
    padding: 13px;
  }

  .book-dish p {
    font-size: 0.86rem;
    -webkit-line-clamp: 1;
  }

  .book-dish .menu-meta {
    max-height: 24px;
    margin-top: 8px;
  }

  .book-dish .dish-open {
    min-height: 34px;
    padding: 6px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .menu-card,
  .book-page,
  .book-page-turning,
  .gallery-item {
    animation: none;
    transform: none;
    opacity: 1;
  }

  body.has-book .book-page,
  body.has-book .book-page.is-before,
  body.has-book .book-page.is-after,
  body.has-book .book-page.is-active {
    transform: none;
  }
}
