:root {
  --color-red: #C1272D;
  --color-red-dark: #8F1D22;
  --color-cream: #FBF6EF;
  --color-cream-dark: #F1E7D8;
  --color-ink: #2A1E17;
  --color-ink-soft: #5B4A3F;
  --color-gold: #D9A441;
  --color-white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Segoe UI', Arial, sans-serif;

  --container-width: 1180px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 10px 30px -12px rgba(42, 30, 23, 0.25);
  --shadow-card-hover: 0 18px 40px -14px rgba(42, 30, 23, 0.35);
  --header-height: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.15; }
p { line-height: 1.7; margin: 0 0 1em; color: var(--color-ink-soft); }
ul { list-style: none; margin: 0; padding: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 999px; font-family: var(--font-body);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer; border: 2px solid transparent;
}
.btn-cta { background: var(--color-gold); color: var(--color-ink); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(217, 164, 65, 0.6); }
.btn-outline { border-color: var(--color-red); color: var(--color-red); background: transparent; }
.btn-outline:hover { background: var(--color-red); color: var(--color-white); transform: translateY(-2px); }

/* Header / Nav */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0; transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.nav--scrolled {
  padding: 12px 0; background: rgba(251, 246, 239, 0.92); backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -12px rgba(42, 30, 23, 0.25);
}
.nav-inner {
  max-width: var(--container-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 52px; width: auto; transition: height 0.3s ease; }
.nav--scrolled .brand-logo { height: 40px; }
.brand-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--color-ink); letter-spacing: 0.03em; transition: color 0.3s ease;
}
.nav--scrolled .brand-text { color: var(--color-red); }
.primary-nav { display: flex; gap: 8px; align-items: center; }
.primary-nav a {
  padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 0.95rem;
  color: var(--color-ink); transition: background 0.25s ease, color 0.25s ease;
}
.primary-nav a:hover, .primary-nav a.is-active { background: var(--color-red); color: var(--color-white) !important; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--color-ink); transition: background 0.3s ease; }

/* Sur les pages avec un hero sombre (ex. l'accueil), le header flotte en blanc
   par-dessus tant qu'on n'a pas scrollé ; ailleurs (ex. la page Menu, fond clair
   dès le haut), le header garde son texte sombre par défaut pour rester lisible. */
body.has-hero .site-header:not(.nav--scrolled) .brand-text,
body.has-hero .site-header:not(.nav--scrolled) .primary-nav a {
  color: var(--color-white);
}
body.has-hero .site-header:not(.nav--scrolled) .nav-toggle span {
  background: var(--color-white);
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: linear-gradient(160deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  text-align: center; padding: 140px 24px 80px;
}
.hero-bg { position: absolute; inset: -10%; z-index: 0; }
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.hero-bg svg {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: 620px; max-width: 70vw; height: auto; color: rgba(255,255,255,0.08);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  color: var(--color-gold); text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 18px; display: block;
}
.hero-title { color: var(--color-white); font-size: clamp(2.8rem, 7vw, 5.2rem); margin-bottom: 20px; }
.hero-subtitle { color: rgba(255,255,255,0.88); font-size: 1.2rem; max-width: 480px; margin: 0 auto 36px; }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5); border-radius: 999px;
}
.hero-scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--color-gold); border-radius: 999px; animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.3; transform: translateY(10px); } }

/* Sections */
section { padding: 96px 0; }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; font-weight: 600;
  color: var(--color-red); margin-bottom: 10px; display: block;
}
.section-header { max-width: 640px; margin: 0 auto 52px; text-align: center; padding: 0 24px; }

/* About */
.about { background: var(--color-white); }
.about-inner {
  max-width: var(--container-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
.about-frame {
  aspect-ratio: 1; max-width: 360px; margin: 0 auto; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-cream-dark), var(--color-cream));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(193, 39, 45, 0.12);
}
.about-frame svg { width: 55%; height: 55%; color: var(--color-red); }
.about-text { text-align: center; }

/* Featured / Menu grid */
.featured { max-width: var(--container-width); margin: 0 auto; padding: 96px 24px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.featured-cta { text-align: center; margin-top: 48px; }

.menu-card {
  background: var(--color-white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.menu-card__media { aspect-ratio: 4 / 3; background: var(--color-cream-dark); overflow: hidden; }
.menu-card__img { width: 100%; height: 100%; object-fit: cover; }
.menu-card__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--color-cream-dark), var(--color-cream));
}
.menu-card__placeholder img { width: 42%; opacity: 0.55; }
.menu-card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.menu-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.menu-card__name { font-size: 1.15rem; margin: 0; }
.menu-card__price { font-family: var(--font-display); font-weight: 700; color: var(--color-red); white-space: nowrap; }
.menu-card__desc { font-size: 0.92rem; margin: 0; }

/* Menu page */
.menu-hero { text-align: center; padding: 160px 24px 60px; background: var(--color-cream); }
.menu-hero-sub { max-width: 520px; margin: 0 auto; }
.category-nav {
  position: sticky; top: var(--header-height); z-index: 50; background: var(--color-cream);
  border-bottom: 1px solid rgba(42, 30, 23, 0.08);
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 24px; margin-bottom: 40px;
}
.category-nav a {
  flex: 0 0 auto; padding: 9px 20px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  background: var(--color-white); border: 1px solid rgba(42, 30, 23, 0.1); white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.category-nav a:hover { background: var(--color-red); color: var(--color-white); border-color: var(--color-red); }
.menu-category { max-width: var(--container-width); margin: 0 auto; padding: 60px 24px; scroll-margin-top: calc(var(--header-height) + 70px); }
.menu-category__header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
.menu-category__icon { width: 44px; height: 44px; color: var(--color-red); flex-shrink: 0; margin-top: 4px; }
.menu-category__icon svg { width: 100%; height: 100%; }
.menu-category__header h2 { margin: 0; }
.menu-category__note { margin: 6px 0 0; font-size: 0.88rem; font-style: italic; max-width: 60ch; }
.menu-disclaimer { text-align: center; font-size: 0.82rem; color: var(--color-ink-soft); max-width: var(--container-width); margin: 0 auto; padding: 0 24px 40px; }

/* Footer */
.site-footer { background: var(--color-ink); color: rgba(255, 255, 255, 0.82); padding: 80px 0 0; }
.footer-inner {
  max-width: var(--container-width); margin: 0 auto; padding: 0 24px 60px;
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-white); font-weight: 700; }
.footer-tagline { margin-top: 10px; color: rgba(255, 255, 255, 0.6); }
.footer-col h3 {
  color: var(--color-gold); font-family: var(--font-body); font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 16px;
}
.footer-col p, .footer-col a { color: rgba(255, 255, 255, 0.78); }
.footer-col a:hover { color: var(--color-gold); }
.footer-hours { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.footer-hours li { display: flex; justify-content: space-between; font-size: 0.92rem; gap: 12px; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #E05A5A; }
.footer-status.is-open .status-dot { background: #6FCF97; }
.footer-status.is-open { color: #6FCF97; }
.footer-status.is-closed { color: #E88A8A; }
.footer-social { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 24px; text-align: center;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.5);
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); height: 100vh;
    background: var(--color-cream); flex-direction: column; align-items: stretch;
    padding: 110px 28px 40px; gap: 6px; transform: translateX(100%);
    transition: transform 0.35s ease; box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a { color: var(--color-ink) !important; font-size: 1.05rem; padding: 14px 18px; }
}

/* Responsive */
@media (min-width: 700px) {
  .about-inner { grid-template-columns: 0.9fr 1.1fr; text-align: left; }
  .about-text { text-align: left; }
}
@media (max-width: 599px) {
  section { padding: 64px 0; }
  .hero { padding: 120px 20px 64px; }
  .menu-hero { padding: 130px 20px 48px; }
  .footer-inner { padding-bottom: 40px; }
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
