/* Pages restaurant (L'Atelier, Signature) — mêmes codes visuels que la page d'accueil */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-italic.woff') format('woff');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('/fonts/inter.woff2') format('woff2');
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #FAF8F5;
  --warm-white: #F5F1EC;
  --sand: #E8E0D5;
  --taupe: #C4B5A4;
  --stone: #9A8C7C;
  --earth: #6B5E50;
  --deep: #3A332B;
  --accent: #8B7355;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --cats-h: 52px;
  --gutter: clamp(16px, 5vw, 4rem);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + var(--cats-h) + 8px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--cream);
  color: var(--deep);
  font-family: var(--sans);
  overflow-x: hidden;
}

::selection { background: var(--taupe); color: var(--cream); }

.label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ─── En-tête du restaurant ─── */
.r-hero {
  padding: calc(var(--hdr-h) + clamp(3rem, 8vw, 5.5rem)) var(--gutter) clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.r-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 1.1rem;
}
.r-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--accent);
  margin-top: 0.9rem;
}

.r-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  max-width: 900px;
}
.r-fact {
  padding: 0.25rem clamp(1.25rem, 3vw, 2.25rem);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--earth);
}
.r-fact + .r-fact { border-left: 1px solid var(--sand); }
.r-fact small { display: block; font-size: 0.76rem; color: var(--stone); }
.r-fact a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .r-fact a:hover { color: var(--accent); }
}

.r-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}
.btn {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--earth);
  color: var(--earth);
  background: transparent;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--earth); color: var(--cream); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--earth); color: var(--cream); }
  .btn-primary:hover { background: var(--deep); border-color: var(--deep); }
}

/* ─── Barre des catégories (collante) ─── */
.cats {
  position: sticky;
  top: var(--hdr-h);
  z-index: 50;
  height: var(--cats-h);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(250, 248, 245, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}
.cats::-webkit-scrollbar { display: none; }
/* centrage « sûr » : si les puces débordent, on garde le début visible */
.cats a:first-child { margin-left: auto; }
.cats a:last-child { margin-right: auto; }
.cats a {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: var(--stone);
  padding: 0.5rem 0.85rem;
  border-radius: 2rem;
  transition: color 150ms ease, background-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.cats a[aria-current] { background: var(--deep); color: var(--cream); }
@media (hover: hover) and (pointer: fine) {
  .cats a:not([aria-current]):hover { color: var(--accent); }
}

/* ─── La carte ─── */
.carte {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.m-section { padding-top: clamp(2.75rem, 6vw, 4.5rem); }
.m-head { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.m-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}
.m-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  margin-top: 0.4rem;
}

.m-items {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 860px) { .m-items { grid-template-columns: 1fr 1fr; } }

.m-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--sand);
}
.m-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.m-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--deep);
  line-height: 1.25;
}
.m-row::after {
  content: '';
  order: 1;
  flex: 1;
  min-width: 1rem;
  border-bottom: 1px dotted var(--taupe);
  transform: translateY(-0.3em);
}
.m-row-plain::after { display: none; }
.m-price {
  order: 2;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.m-desc {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--stone);
  max-width: 34em;
}

/* Plat du jour : bloc centré */
.m-single { text-align: center; max-width: 520px; margin: 0 auto; }
.m-single .m-price { font-size: 1.1rem; }
.m-single .m-desc { margin: 0.5rem auto 0; }

/* Formules dégustation */
.m-formulas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--sand);
  border: 1px solid var(--sand);
}
@media (min-width: 700px) { .m-formulas { grid-template-columns: 1fr 1fr; } }
.m-formulas.m-formulas-single { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
.m-formula { background: var(--cream); padding: clamp(1.5rem, 3vw, 2.25rem); }
.m-formula h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1rem;
}
.m-formula .m-items { grid-template-columns: 1fr; }
.m-formula .m-item:last-child { border-bottom: 0; }
.m-formula .m-name { font-family: var(--sans); font-size: 0.86rem; font-weight: 300; }

/* Boissons : lignes compactes */
.m-groups {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(2.5rem, 6vw, 5rem);
  row-gap: 2rem;
}
@media (min-width: 860px) { .m-groups { grid-template-columns: 1fr 1fr; } }
.m-group h3 {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--sand);
}
.m-group .m-items { grid-template-columns: 1fr; }
.m-drinks .m-items { grid-template-columns: 1fr; }
@media (min-width: 860px) { .m-drinks > .m-items { grid-template-columns: 1fr 1fr; } }
.m-drinks .m-item { padding: 0.6rem 0; }
.m-drinks .m-name { font-family: var(--sans); font-size: 0.86rem; font-weight: 300; }
.m-sub {
  list-style: none;
  padding: 1rem 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent);
}

.m-foot {
  margin-top: clamp(3rem, 6vw, 4rem);
  text-align: center;
}
.m-foot p {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--stone);
  margin-bottom: 1.5rem;
}

/* ─── Accès ─── */
.r-visit {
  border-top: 1px solid var(--sand);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
}
.r-visit-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) { .r-visit-inner { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.r-visit h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 300;
  margin: 0.9rem 0 1.25rem;
}
.r-visit p { font-size: 0.88rem; font-weight: 300; line-height: 1.8; color: var(--earth); }
.r-visit p small { color: var(--stone); font-size: 0.8rem; }
.r-visit a { color: inherit; }
.r-visit iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 36vw, 380px);
  border: 1px solid var(--sand);
  filter: grayscale(0.5) sepia(0.12);
}

.r-other {
  border-top: 1px solid var(--sand);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  text-align: center;
}
.r-other a {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--deep);
  text-decoration: none;
  transition: color 150ms ease;
}
.r-other p { font-size: 0.8rem; font-weight: 300; color: var(--stone); margin-top: 0.3rem; }
@media (hover: hover) and (pointer: fine) {
  .r-other a:hover { color: var(--accent); }
}

/* ─── Pied de page ─── */
footer {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--sand);
}
.footer-logo { width: 100px; height: auto; opacity: 0.6; margin-bottom: 2rem; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--accent); }
}
.footer-copy { font-size: 0.7rem; font-weight: 300; color: var(--taupe); letter-spacing: 0.1em; }

/* ─── Barre d'action mobile ─── */
.r-bar { display: none; }

@media (max-width: 720px) {
  .r-facts { flex-direction: column; align-items: center; gap: 0.9rem; }
  .r-fact { padding: 0; }
  .r-fact + .r-fact { border-left: 0; }
  .r-actions { display: none; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .r-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--cream);
    border-top: 1px solid var(--sand);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .r-bar a {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--earth);
    -webkit-tap-highlight-color: transparent;
  }
  .r-bar a:first-child { background: var(--earth); color: var(--cream); }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

/* ─── Page Traiteur ─── */
.r-fact strong { font-weight: 500; color: var(--deep); letter-spacing: 0.04em; }
.r-events {
  border-top: 1px solid var(--sand);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.r-events h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 300;
  margin: 0.9rem 0 1.25rem;
}
.r-events p:not(.label) { font-size: 0.9rem; font-weight: 300; line-height: 1.8; color: var(--stone); margin-bottom: 0.75rem; }
.r-visit-two { grid-template-columns: 1fr; align-items: start; margin-top: 2rem; }
@media (min-width: 860px) { .r-visit-two { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.r-visit-card h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; margin-bottom: 0.6rem; }
.r-visit-card p { margin-bottom: 0.5rem; }
.r-visit-card iframe { margin-top: 1rem; height: clamp(220px, 28vw, 300px); }
@media (max-width: 720px) {
  .r-actions.r-actions-always { display: flex; flex-wrap: wrap; }
}
