@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Jost:wght@400;500;600&family=Sacramento&display=swap");

/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  --terracotta: #a85c2e;
  --terracotta-deep: #7d3f1f;
  --clay-900: #241610;
  --clay-800: #332016;
  --cream: #f7ecdd;
  --cream-dim: #ece0cd;
  --gold: #c9a24b;
  --gold-soft: #d9bd7f;
  --ink: #2b1b12;

  --bg: var(--cream);
  --bg-alt: var(--cream-dim);
  --surface: #ffffff;
  --text: var(--ink);
  --text-muted: #6b5541;
  --border: rgba(43, 27, 18, 0.12);
  --accent: var(--terracotta);
  --accent-strong: var(--terracotta-deep);
  --shadow: 0 10px 30px rgba(43, 27, 18, 0.08);

  --font-display: "Cormorant Garamond", serif;
  --font-script: "Sacramento", cursive;
  --font-body: "Jost", sans-serif;
}

:root[data-theme="dark"] {
  --bg: var(--clay-900);
  --bg-alt: #1b100b;
  --surface: #2f1c14;
  --text: var(--cream);
  --text-muted: #cbb49c;
  --border: rgba(247, 236, 221, 0.12);
  --accent: var(--gold-soft);
  --accent-strong: var(--gold);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease;
}

a {
  color: inherit;
}

/* ==========================================================
   Topbar
   ========================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}

.topbar-brand .bolt {
  width: 20px;
  height: 20px;
  color: var(--accent);
}



.hero-logo-img {
  height: 150px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 1.1rem;
  display: block;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
.theme-toggle .sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 20% -10%, var(--terracotta) 0%, var(--terracotta-deep) 55%, #5c2c14 100%);
  color: var(--cream);
  padding: 4.5rem 1.5rem 6rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 2px,
      transparent 2px,
      transparent 14px
    );
  pointer-events: none;
}

.hero-emblem {
  width: 74px;
  height: 74px;
  margin: 0 auto 1.1rem;
  color: var(--gold-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin: 0;
}

.hero h1 span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  font-weight: 500;
  color: var(--gold-soft);
  margin-top: 0.4rem;
}

.hero-tagline {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--cream);
  margin: 0.8rem 0 0;
}

.hero-search {
  max-width: 480px;
  margin: 2.4rem auto -2.6rem;
  position: relative;
  z-index: 2;
}

.hero-search input {
  width: 100%;
  padding: 1rem 1.3rem 1rem 3.1rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  outline: none;
}

.hero-search input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hero-search svg {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

/* ==========================================================
   Filter bar
   ========================================================== */
.filter-wrap {
  position: sticky;
  top: 0px;
  z-index: 30;
  background: var(--bg);
  padding-top: 16px;
  border-bottom: 1px solid var(--border);
}

.filter-bar {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0 1.5rem 1rem;
  scrollbar-width: thin;
}

.filter-bar::-webkit-scrollbar {
  height: 5px;
}
.filter-bar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.chip {
  flex: 0 0 auto;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}
:root[data-theme="dark"] .chip.is-active {
  color: var(--clay-900);
}

.result-count {
  padding: 0.6rem 1.5rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.6rem;
}

/* ==========================================================
   Sections & cards
   ========================================================== */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.menu-section {
  padding-top: 2.6rem;
  scroll-margin-top: 130px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.section-icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent-strong);
}
.section-icon svg {
  width: 20px;
  height: 20px;
}

.section-head h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.1rem;
  margin: 0;
  color: var(--accent-strong);
  line-height: 1;
}

.section-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.meander {
  height: 10px;
  margin: 0.9rem 0 1.6rem;
  background-image: linear-gradient(90deg, var(--border) 1px, transparent 1px),
    linear-gradient(0deg, var(--border) 1px, transparent 1px);
  background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(90deg, black, black 92%, transparent);
  mask-image: linear-gradient(90deg, black, black 92%, transparent);
  opacity: 0.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.dish-card {
  display: flex;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease;
}

.dish-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.dish-card:hover {
  border-color: var(--accent);
}

.dish-thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  color: var(--accent-strong);
}
.dish-thumb svg {
  width: 24px;
  height: 24px;
}

.dish-thumb.has-photo {
  background: none;
  overflow: hidden;
}

.dish-thumb.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.dish-body {
  flex: 1;
  min-width: 0;
}

.dish-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.dish-top h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--text);
}

.dish-alt {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.dish-price {
  flex: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-strong);
  white-space: nowrap;
}

.dish-desc {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* ==========================================================
   Footer
   ========================================================== */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.footer-quote {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--accent-strong);
  max-width: 480px;
  margin: 0 auto 1.6rem;
  line-height: 1.4;
}

.footer-qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-qr img {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px;
}

.footer-qr span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-brand {
  margin-top: 2rem;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--text-muted);
}

#backToTop {
  position: fixed;
  bottom: 25px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #c9a227; /* couleur Zeus à adapter */
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  z-index: 999;
  transition: all .3s ease;
}

#backToTop:hover {
  transform: translateY(-5px);
  opacity: .9;
}

#backToTop.show {
  display: flex;
}


/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 1rem 5.5rem;
  }
  .hero-search {
    margin-top: 2rem;
  }
  .filter-wrap {
    top: 0px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}
