/* La Baraka — Saint-Fargeau-Ponthierry */

:root {
  --ink: #1d1a16;
  --cream: #f6f1e6;
  --cream-2: #efe7d6;
  --terracotta: #a63b28;
  --terracotta-dark: #7f2c1e;
  --gold: #b3872f;
  --navy: #1b2436;
  --line: rgba(29, 26, 22, 0.12);
  --shadow: 0 20px 50px rgba(20, 16, 10, 0.16);
  --radius: 2px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.section-head p {
  margin-top: 16px;
  color: #57524a;
  font-size: 1.05rem;
}

section { padding: 110px 0; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.scrolled {
  background: rgba(246, 241, 230, 0.98);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.35s ease;
}

.site-header.scrolled .brand { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.35s ease;
}

.nav-links a:not(.btn):hover { opacity: 1; }

.site-header.scrolled .nav-links a:not(.btn) { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
  transition: color 0.35s ease;
}

.site-header.scrolled .nav-toggle { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover { background: var(--terracotta-dark); }

.btn-ghost {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

.btn-ghost:hover { border-color: #fff; }

.site-header.scrolled .btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
}

.btn-dark:hover { background: #000; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

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

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,12,9,0.45) 0%, rgba(15,12,9,0.25) 35%, rgba(15,12,9,0.86) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 96px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.98;
  color: #fff;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 520px;
  color: rgba(255,255,255,0.88);
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ---------- Intro / About ---------- */

.about {
  background: var(--cream);
  padding: 56px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: stretch;
}

.about-text {
  max-width: 480px;
  align-self: center;
}

.about-media {
  max-width: 300px;
  margin-left: auto;
  margin-top: -56px;
  margin-bottom: -56px;
}

.about-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--ink);
}

.about-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.18;
}

.about-text p {
  margin-top: 14px;
  color: #57524a;
  font-size: 1rem;
}

/* ---------- Menu ---------- */

.menu-section {
  background: var(--ink);
  color: var(--cream);
}

.menu-section .section-head p { color: rgba(246,241,230,0.66); }
.menu-section .section-head h2 { color: var(--cream); }

.menu-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(246,241,230,0.14);
  padding-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.menu-tabs::-webkit-scrollbar { display: none; }

.menu-tab {
  background: transparent;
  border: 1px solid rgba(246,241,230,0.22);
  color: rgba(246,241,230,0.75);
  padding: 10px 18px;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.menu-tab:hover { border-color: rgba(246,241,230,0.5); color: #fff; }

.menu-tab.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

.menu-panel { display: none; }
.menu-panel.active { display: block; animation: fade .5s var(--ease); }

@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.menu-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}

.menu-group { break-inside: avoid; margin-bottom: 48px; }

.menu-group-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(246,241,230,0.16);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(246,241,230,0.06);
}

.menu-item:last-child { border-bottom: none; }

.menu-item-name {
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  font-weight: 500;
  color: #fff;
}

.menu-item-name .signature {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(166,59,40,0.16);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}

.menu-item-desc {
  margin-top: 4px;
  font-size: 0.88rem;
  font-style: italic;
  color: rgba(246,241,230,0.55);
  max-width: 380px;
}

.menu-item-price {
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.menu-note {
  margin-top: 8px;
  font-size: 0.92rem;
  color: rgba(246,241,230,0.6);
}

.menu-foot {
  margin-top: 56px;
  text-align: center;
  color: rgba(246,241,230,0.55);
  font-size: 0.94rem;
  line-height: 1.8;
}

.menu-foot a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Dishes ---------- */

.dishes {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.dishes-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dishes-media picture,
.dishes-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.dishes-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,12,9,0.78) 0%, rgba(15,12,9,0.6) 40%, rgba(15,12,9,0.88) 100%);
}

.dishes-inner {
  position: relative;
  z-index: 1;
}

.dishes .section-head h2 { color: #fff; }

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 760px;
}

.dish-card {
  margin: 0;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
}

.dish-card:hover { transform: translateY(-4px); }

.dish-card picture,
.dish-card img {
  width: 100%;
  height: auto;
  display: block;
}

.dish-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 18px 20px;
  color: var(--ink);
}

.dish-card figcaption span:first-child {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 500;
}

.dish-card .price {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ---------- Reviews ---------- */

.reviews {
  background: var(--navy);
  color: var(--cream);
}

.reviews-head {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 56px;
}

.reviews-score {
  font-family: 'Fraunces', serif;
  font-size: clamp(3.2rem, 7vw, 4.6rem);
  color: var(--gold);
  line-height: 1;
}

.reviews-stars {
  color: var(--gold);
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin-top: 10px;
}

.reviews-head p {
  margin-top: 10px;
  color: rgba(246,241,230,0.65);
  font-size: 0.95rem;
}

.reviews-cta {
  margin-top: 28px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  padding: 30px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  translate: 0 0;
  transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.review-card:hover {
  translate: 0 -4px;
  box-shadow: 0 28px 60px rgba(20, 16, 10, 0.2);
}

.review-card .stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-card p {
  margin: 16px 0 20px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #3d3a34;
}

.review-card cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--terracotta);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------- Location ---------- */

.location { background: var(--cream); }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.location-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

.info-card {
  background: var(--navy);
  color: var(--cream);
  padding: 48px 44px;
  border-radius: var(--radius);
}

.info-row {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(246,241,230,0.14);
}

.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }

.info-row .ico {
  width: 20px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 3px;
}

.info-row h4 {
  color: #fff;
  font-size: 1rem;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
}

.info-row p, .info-row a.plain {
  margin: 4px 0 0;
  color: rgba(246,241,230,0.72);
  font-size: 0.95rem;
}

.info-row a.plain:hover { color: #fff; }

.hours-table { margin-top: 4px; }
.hours-table div {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: rgba(246,241,230,0.72);
  padding: 2px 0;
  max-width: 260px;
}

.info-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.info-social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.info-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(246,241,230,0.22);
  border-radius: 50%;
  color: var(--cream);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.info-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(246,241,230,0.55);
  padding: 48px 0;
  font-size: 0.88rem;
}

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

.footer-row .brand { color: var(--cream); font-size: 1.1rem; }

.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--cream); }

.footer-social { display: flex; gap: 16px; }
.footer-social a { display: flex; color: inherit; }
.footer-social a:hover { color: var(--cream); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  section { padding: 76px 0; }

  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a:not(.btn) { color: var(--cream); font-size: 1.1rem; opacity: 1; }

  .nav-toggle { display: block; z-index: 101; }

  .location-grid { grid-template-columns: 1fr; gap: 40px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-text { max-width: none; }
  .about-media { max-width: 240px; margin: 0 auto; }

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

  .dishes-grid { grid-template-columns: 1fr; gap: 20px; }

  .reviews-grid { grid-template-columns: 1fr; gap: 18px; }

  .info-card { padding: 34px 26px; }
}

@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
