/* ------------------------------------------------------------
   Brasserie des Tanneurs — refonte Solia
   palette: bordeaux/crème/bois  ·  type: Cormorant+Inter+Caveat
   ------------------------------------------------------------ */

:root {
  --cream: #f6efe4;
  --cream-shade: #efe5d2;
  --cream-deep: #e8dcc6;
  --ink: #1a1410;
  --muted: #5a4f44;     /* WCAG AA confortable sur cream / cream-shade */
  --wine: #7a1f1f;
  --wine-deep: #5a1414;
  --honey: #8b5d36;     /* eyebrows et accents — assombri vs ancien #a37044 */

  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;

  --max: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 17.5px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

/* skip-link a11y : invisible jusqu'à focus clavier */
.skip-link {
  position: absolute;
  left: 14px; top: 14px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-200%);
  transition: transform .2s ease;
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--cream); }

/* photo treatment uniforme — chaleur éditoriale */
img { filter: saturate(0.96) brightness(1.02) contrast(1.02); }

/* ------------------------------------------------------------ topbar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(246, 239, 228, 0);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.topbar.scrolled {
  background: rgba(246, 239, 228, 0.97);
  box-shadow: 0 1px 0 var(--cream-deep);
  padding: 10px 0;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--cream);
  transition: color .35s ease;
}
.topbar.scrolled .topbar-inner { color: var(--ink); }
.brand { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav {
  display: flex; gap: 28px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.nav a {
  position: relative;
  padding: 4px 0;
  transition: opacity .2s ease;
}
.nav a:hover { opacity: 0.7; }
.cta-mini {
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.topbar.scrolled .cta-mini { border-color: var(--wine); color: var(--wine); }
.cta-mini:hover { background: currentColor; color: var(--cream); }
.topbar.scrolled .cta-mini:hover { background: var(--wine); color: var(--cream); }

/* burger : visible uniquement sur mobile */
.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 10px 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: currentColor;
}
.burger span {
  display: block;
  width: 28px; height: 1.5px;
  background: currentColor;
  margin: 6px auto;
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease, background .28s ease;
}
.menu-open .burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-open .burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-open .burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 0;
    background: var(--cream);
    color: var(--ink);
    padding: 90px var(--gutter) 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-family: var(--serif);
    font-size: 32px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 40;
  }
  .nav a {
    padding: 16px 0;
    border-top: 1px solid var(--cream-deep);
    width: 100%;
  }
  .nav a:last-of-type { border-bottom: 1px solid var(--cream-deep); }
  .menu-open .nav { transform: translateX(0); }
  .menu-open { overflow: hidden; }
  .burger { display: block; z-index: 60; position: relative; }
  /* sur le burger : couleur ink quand menu ouvert (sur fond crème) */
  .menu-open .burger { color: var(--ink); }
  /* le CTA-mini est masqué sur mobile (déjà accessible via le menu) */
  .cta-mini { display: none; }
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 50%;
  filter: saturate(0.96) brightness(0.92) contrast(1.06);
  will-change: transform;
}
/* gradient linéaire gauche→droite pour zone de respiration sur la moitié gauche,
   + ombre basse douce pour ancrer le contenu */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26,20,16,0.82) 0%, rgba(26,20,16,0.62) 28%, rgba(26,20,16,0.18) 62%, rgba(26,20,16,0) 100%),
    linear-gradient(180deg, rgba(26,20,16,0.45) 0%, rgba(26,20,16,0) 18%, rgba(26,20,16,0) 80%, rgba(26,20,16,0.35) 100%);
}
.hero-content {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gutter) 80px;
  width: 100%;
  text-align: left;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-left: 32px;
  position: relative;
  margin-bottom: 28px;
  opacity: 0.85;
}
.hero-eyebrow::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 22px; height: 1px;
  background: currentColor;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  margin: 0 0 24px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
}
.hero-sub {
  font-size: clamp(16px, 1.1vw, 19px);
  font-weight: 300;
  max-width: 36ch;
  margin: 0 0 36px;
  line-height: 1.5;
  opacity: 0.94;
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
}
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* ------------------------------------------------------------ CTA */
.cta {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 14px 26px;
  background: var(--wine);
  color: var(--cream);
  border-radius: 999px;
  border: 1px solid var(--wine);
  transition: background .25s ease, transform .25s ease;
}
.cta:hover { background: var(--wine-deep); transform: translateY(-1px); }
.cta-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 239, 228, 0.6);
}
.cta-ghost:hover { background: rgba(246, 239, 228, 0.12); border-color: var(--cream); }
.cta-large {
  font-size: 17px;
  padding: 18px 34px;
}

.link-underline {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: opacity .2s ease;
}
.link-underline:hover { opacity: 0.7; }

/* ------------------------------------------------------------ chapters */
.chapter {
  padding: clamp(80px, 12vh, 140px) 0;
}
.chapter-shade {
  background: var(--cream-shade);
}
.chapter-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.chapter-num {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}
.num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  font-weight: 400;
  color: var(--wine);
  font-feature-settings: "lnum" 1;
}
.num-label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 4px;
}
.chapter-body {
  max-width: 64ch;
}
/* filet bordeaux en tête de chaque chapitre (promesse DESIGN.md) */
.chapter-body::before {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: var(--wine);
  margin-bottom: 32px;
}
.chapter-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}
.chapter-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--wine);
}
.lead {
  font-size: 1.15em;
  line-height: 1.55;
  margin: 0 0 22px;
}
.chapter-body p { margin: 0 0 18px; }
.chapter-body p:last-child { margin-bottom: 0; }

.signature {
  font-family: var(--hand);
  font-size: 26px;
  color: var(--wine);
  margin-top: 36px !important;
  line-height: 1;
}

.hand {
  font-family: var(--hand);
  font-size: 1.18em;
  color: var(--wine);
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: -0.04em;
}
/* chiffres mis en valeur dans les titres : Cormorant italique bordeaux,
   pas de Caveat (qui devenait gimmick "blog 2014" sur "1 929 avis") */
.figure {
  font-style: italic;
  color: var(--wine);
  font-weight: 500;
  font-variant-numeric: oldstyle-nums;
}

@media (max-width: 820px) {
  .chapter-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .chapter-num {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 18px;
  }
  .num { font-size: 46px; }
  .num-label { padding-left: 0; }
}

/* ------------------------------------------------------------ dishes */
.dishes {
  max-width: var(--max);
  margin: 80px auto 0;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 10vh, 120px);
}
.dish {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.dish-reverse { grid-template-columns: 1fr 1.05fr; }
.dish-reverse .dish-photo { order: 2; }
.dish-reverse .dish-text { order: 1; }

.dish-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5/4;
  background: var(--cream-deep);
}
.dish-photo img {
  position: absolute;
  inset: -8% 0;
  width: 100%; height: 116%;
  object-fit: cover;
  /* parallax léger via CSS variable mise à jour au scroll par main.js */
  --py: 0px;
  transform: translate3d(0, var(--py), 0);
  will-change: transform;
}

.dish-text { max-width: 46ch; }
.dish-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 14px;
}
.dish-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.dish-text p {
  margin: 0 0 18px;
  color: var(--ink);
}
.dish-price {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--wine);
  border-top: 1px solid var(--wine);
  padding-top: 8px;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .dish, .dish-reverse {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .dish-reverse .dish-photo { order: 1; }
  .dish-reverse .dish-text { order: 2; }
  .dish-photo { aspect-ratio: 4/3; }
}

.cuisine-foot {
  max-width: var(--max);
  margin: 80px auto 0;
  padding: 0 var(--gutter);
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 19px;
}

/* mini-dishes : 3 plats secondaires en grille resserrée */
.dishes-mini {
  max-width: var(--max);
  margin: clamp(60px, 8vh, 90px) auto 0;
  padding: 0 var(--gutter);
}
.dishes-mini-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 36px;
}
.dishes-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.mini-dish {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mini-dish-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-deep);
}
.mini-dish-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.mini-dish-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.1;
  margin: 4px 0 0;
}
.mini-dish .dish-price {
  margin-top: auto;
}
@media (max-width: 760px) {
  .dishes-mini-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ------------------------------------------------------------ ambience */
.ambience {
  max-width: var(--max);
  margin: 80px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(14px, 1.4vw, 22px);
  aspect-ratio: 16 / 11;
}
.ambience-photo {
  margin: 0;
  overflow: hidden;
  background: var(--cream-deep);
  min-height: 0;
}
.ambience-photo img {
  width: 100%; height: 116%;
  margin-top: -8%;
  object-fit: cover;
  display: block;
  --py: 0px;
  transform: translate3d(0, var(--py), 0);
  will-change: transform;
}
.ambience-large {
  grid-row: 1 / span 2;
}

@media (max-width: 720px) {
  .ambience {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
  }
  .ambience-large { grid-row: auto; aspect-ratio: 4/3; }
  .ambience-photo:not(.ambience-large) { aspect-ratio: 5/4; }
}

/* ------------------------------------------------------------ reviews */
.reviews {
  max-width: var(--max);
  margin: 80px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  /* grille 4 col pour mettre en valeur la variabilité (court=1, moyen=1, long=2) */
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 48px);
  align-items: start;
}
.review-short { grid-column: span 1; }
.review { grid-column: span 1; }
.review-long { grid-column: span 2; }

@media (max-width: 820px) {
  .reviews { grid-template-columns: 1fr; }
  .review-short, .review, .review-long { grid-column: auto; }
}
.review {
  margin: 0;
  padding: 32px 28px 26px;
  background: var(--cream);
  border-top: 2px solid var(--wine);
  font-family: var(--serif);
}
.review p {
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 22px;
  font-weight: 400;
}
.review-short p { font-size: 22px; }
.review-long p { font-size: 18px; line-height: 1.55; }

.reviews-cta {
  max-width: var(--max);
  margin: clamp(40px, 5vh, 64px) auto 0;
  padding: 0 var(--gutter);
  text-align: center;
}
.reviews-cta-secondary {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin: 22px 0 0;
}
.reviews-cta-secondary a {
  color: var(--ink);
  margin: 0 4px;
}
.review cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.review cite span {
  color: var(--wine);
  font-weight: 500;
}

/* ------------------------------------------------------------ contact */
/* venir-grid : carte à gauche, contact à droite */
.venir-grid {
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}
.venir-map {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--cream-deep);
  aspect-ratio: 4/5;
  min-height: 0;
}
.venir-map iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.78) contrast(0.96);
}
.venir-map figcaption {
  position: absolute;
  bottom: 12px; right: 14px;
  background: rgba(246, 239, 228, 0.92);
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.contact-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 36px);
}
.contact-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 12px;
}
.contact-card p {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 8px;
}
.contact-card .phone {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
}
.contact-card .muted {
  color: var(--muted);
  font-size: 14px;
}
.contact-stack .cta-large {
  align-self: flex-start;
  margin-top: 8px;
}

@media (max-width: 820px) {
  .venir-grid {
    grid-template-columns: 1fr;
  }
  .venir-map { aspect-ratio: 4/3; }
}

/* ------------------------------------------------------------ footer */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 50px 0 40px;
  margin-top: 100px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}
.footer-brand {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  opacity: 0.92;
}
.footer-credit {
  margin: 0;
  color: rgba(246, 239, 228, 0.65);
}
.footer-credit a {
  color: var(--cream);
  border-bottom: 1px solid rgba(246, 239, 228, 0.4);
  padding-bottom: 1px;
  transition: border-color .2s ease;
}
.footer-credit a:hover { border-color: var(--cream); }

/* ------------------------------------------------------------ reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(0.22, 1, 0.36, 1), transform .9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  .hero-bg { transition: none; }
}
