/* ===== Polices auto-hebergees (au lieu de Google Fonts, pour ne pas exposer l'IP des visiteurs a Google) ===== */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/work-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/work-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Vinobah — variables ===== */
:root {
  --bordeaux-900: #3d0d18;
  --bordeaux-700: #6b1423;
  --bordeaux-600: #7f1b2c;
  --bordeaux-500: #96263a;
  --gold-600: #a9781f;
  --gold-500: #c9973a;
  --gold-400: #d9b25c;
  --gold-200: #f0dfa6;
  --cream-100: #fbf6ee;
  --cream-200: #f4e9d8;
  --ink: #2a1810;
  --ink-soft: #5a463d;
  --white: #ffffff;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Work Sans', Arial, sans-serif;

  --container-w: 1180px;
  --radius: 10px;
  --shadow-card: 0 10px 30px -12px rgba(61, 13, 24, 0.35);
  --shadow-card-hover: 0 24px 40px -14px rgba(61, 13, 24, 0.5);
  --transition: 240ms cubic-bezier(.2, .7, .3, 1);
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-100);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--bordeaux-700);
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: .6em;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--bordeaux-900);
  box-shadow: 0 10px 24px -10px rgba(169, 120, 31, .6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(169, 120, 31, .7); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--bordeaux-600);
  color: var(--bordeaux-700);
}
.btn-outline-dark:hover { background: var(--bordeaux-700); color: var(--white); transform: translateY(-3px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(251, 246, 238, .96);
  border-bottom: 1px solid rgba(107, 20, 35, .08);
}
/* Pas de backdrop-filter ici : sur les elements avec filter/backdrop-filter,
   les descendants position:fixed se positionnent par rapport a CET element
   (son "containing block") au lieu du viewport entier. Le panneau du menu
   mobile (position:fixed, inset:72px 0 0 0) se retrouvait ecrase a 4px de
   haut au lieu de couvrir l'ecran, car resolu contre les ~77px du header. */
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; grid-column: 1; justify-self: start; }
.brand img { height: 52px; width: auto; }
.main-nav { grid-column: 2; justify-self: center; }
.nav-cta, .nav-toggle { grid-column: 3; justify-self: end; }
.main-nav ul { display: flex; gap: 30px; align-items: center; }
.main-nav a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--gold-500);
  transition: right var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--bordeaux-700); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.mobile-cta { display: none; }
.nav-cta .btn { padding: 10px 22px; font-size: .85rem; }

.nav-toggle { display: none; position: relative; z-index: 10000; background: none; border: none; padding: 10px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--bordeaux-700);
  margin: 5px 0; transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    grid-column: unset;
    justify-self: unset;
    z-index: 9998;
    top: 72px; right: 0; bottom: 0; left: 0;
    width: auto; height: auto;
    margin: 0;
    background: var(--cream-100);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; padding: 32px 24px; gap: 6px; align-items: flex-start; }
  .main-nav a { display: block; padding: 14px 0; font-size: 1.1rem; width: 100%; border-bottom: 1px solid rgba(107,20,35,.08); }
  .nav-cta { display: none; }
  .mobile-cta { display: flex; gap: 12px; padding: 20px 24px 32px; }
  /* Specificite plus forte que ".main-nav a" (display:block; width:100%),
     sinon ces boutons perdent leur forme de pilule et leur texte centre. */
  .mobile-cta a.btn { display: inline-flex; justify-content: center; flex: 1; width: auto; padding: 14px 20px; border-bottom: none; }
  .nav-toggle { display: block; }
}

/* ===== Hero (profondeur / parallax léger, CSS pur) ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallax discret, sans JS */
  transform: scale(1.05);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61,13,24,.72) 0%, rgba(61,13,24,.55) 45%, rgba(61,13,24,.85) 100%);
}
@media (max-width: 860px) {
  /* fixed + transform peu fiables sur mobile : provoquaient un bug d'empilement
     ou le panneau de menu se retrouvait visuellement derriere cette image */
  .hero-bg { background-attachment: scroll; transform: none; }
}

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-grid .tilt-card { order: -1; }
}

.page-split { display: grid; grid-template-columns: 1fr .8fr; gap: 48px; align-items: start; }
.page-split.page-split-wide { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 860px) {
  .page-split, .page-split.page-split-wide { grid-template-columns: 1fr; gap: 32px; }
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 640px;
}
.hero h1 { color: var(--white); }

.hero-content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}
.since-label {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-200);
  margin-bottom: 12px;
}
.since-year {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(4.5rem, 14vw, 10rem);
  line-height: 1;
  color: var(--white);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* ===== Cartes (menu, atouts) avec effet 3D au survol ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}
.tilt-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0) translateY(0);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}
.tilt-card:hover {
  transform: perspective(900px) rotateX(4deg) translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}
.tilt-card .media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.tilt-card .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms ease;
}
.tilt-card:hover .media img { transform: scale(1.08) translateZ(20px); }
.tilt-card .body { padding: 22px 24px 26px; }
.tilt-card .dish-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.tilt-card .dish-row h3 { margin-bottom: .2em; }
.tilt-card .price {
  font-family: var(--font-heading); font-weight: 600; color: var(--gold-600); font-size: 1.25rem; white-space: nowrap;
}
.tilt-card .desc { color: var(--ink-soft); font-size: .92rem; margin-bottom: 0; }
.tilt-card .spice { color: var(--bordeaux-500); font-size: .8rem; letter-spacing: .04em; }

.tilt-card.signature {
  border: 1px solid var(--gold-400);
  position: relative;
}
.tilt-card.signature::before {
  content: 'Signature de saison';
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--bordeaux-700); color: var(--gold-200);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: 0 8px 16px -8px rgba(0,0,0,.5);
}

/* ===== Sections génériques ===== */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-bordeaux { background: var(--bordeaux-700); color: var(--white); }
.bg-bordeaux h2 { color: var(--white); }
.bg-cream-200 { background: var(--cream-200); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; text-align: center; }
.stat-grid .num { font-family: var(--font-heading); font-size: 2.6rem; color: var(--gold-400); font-weight: 600; }
.stat-grid .label { font-size: .88rem; color: rgba(255,255,255,.8); }

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.review-card {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-card);
  transform: perspective(900px) rotateX(0);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: perspective(900px) rotateX(3deg) translateY(-6px); box-shadow: var(--shadow-card-hover); }
.review-card .stars { color: var(--gold-500); letter-spacing: .1em; margin-bottom: 10px; }
.review-card .source { font-size: .8rem; color: var(--ink-soft); margin-top: 12px; }

/* ===== Formulaires ===== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px;
  max-width: 640px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--bordeaux-700); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: .96rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(107,20,35,.2);
  background: var(--cream-100);
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,151,58,.25);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .hint { font-size: .78rem; color: var(--ink-soft); margin-top: 6px; }
.field .hint.warning { color: var(--bordeaux-700); font-weight: 600; }

.consent-field { margin-bottom: 20px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--ink-soft); line-height: 1.5; cursor: pointer; }
.consent-label input[type="checkbox"] { width: auto; margin-top: 3px; flex-shrink: 0; }
.consent-label a { color: var(--bordeaux-700); }

.form-status { font-size: .9rem; padding: 12px 16px; border-radius: 8px; margin-top: 16px; display: none; }
.form-status.visible { display: block; }
.form-status.ok { background: #e8f4ea; color: #235c31; }
.form-status.error { background: #fbe9e9; color: #8c2b2b; }

/* ===== Commander : sélecteur de plats & panier ===== */
.picker-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.picker-row .field { margin-bottom: 0; }
.picker-row select { min-width: 260px; }
.picker-row input[type="number"] { width: 80px; }
.radio-group { display: flex; gap: 24px; flex-wrap: wrap; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); cursor: pointer; }
.cart-box { background: var(--cream-100); border-radius: 8px; padding: 6px 20px; margin: 24px 0; }
.cart-empty { color: var(--ink-soft); font-size: .9rem; padding: 16px 0; }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; color: var(--bordeaux-700);
  padding: 16px 0 6px; margin-top: 4px; border-top: 2px solid var(--gold-400);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bordeaux-900);
  color: rgba(255,255,255,.82);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; justify-content: center; height: 100%; }
.footer-brand img { height: 230px; width: auto; }
.site-footer h4 { color: var(--gold-300, var(--gold-400)); font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: .9rem; }
.site-footer a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: rgba(255,255,255,.55);
}

/* ===== Utilitaires ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Page Menu : listes de plats ===== */
.menu-quicknav {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 20px 0 0;
}
.menu-quicknav a {
  font-size: .82rem; font-weight: 600; padding: 8px 16px;
  border: 1px solid rgba(107,20,35,.2); border-radius: 999px; color: var(--bordeaux-700);
  transition: background var(--transition), color var(--transition);
}
.menu-quicknav a:hover { background: var(--bordeaux-700); color: var(--white); }

.spice-legend { text-align: center; font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }

.menu-category { padding: 56px 0; border-bottom: 1px solid rgba(107,20,35,.08); scroll-margin-top: 90px; }
.menu-category:last-of-type { border-bottom: none; }
.menu-category .cat-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.menu-category .cat-head span { font-size: .85rem; color: var(--ink-soft); }

.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
@media (max-width: 780px) { .menu-cols { grid-template-columns: 1fr; } }

.menu-item {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 14px 0; border-bottom: 1px dashed rgba(107,20,35,.15);
}
.menu-item .txt { flex: 1; }
.menu-item .name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.menu-item .name .spice { font-family: var(--font-body); color: var(--bordeaux-500); font-size: .8rem; margin-left: 6px; }
.menu-item .desc { font-size: .86rem; color: var(--ink-soft); margin-top: 2px; }
.menu-item .price { font-family: var(--font-heading); font-weight: 600; color: var(--gold-600); font-size: 1.1rem; white-space: nowrap; }

.menu-subheading { padding: 16px 0 6px; font-family: var(--font-heading); color: var(--bordeaux-600); font-size: 1.05rem; }
.menu-subheading:first-child { padding-top: 0; }

.formule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.formule-card {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-card);
  transform: perspective(900px) rotateX(0);
  transition: transform var(--transition), box-shadow var(--transition);
}
.formule-card:hover { transform: perspective(900px) rotateX(3deg) translateY(-6px); box-shadow: var(--shadow-card-hover); }
.formule-card .prix { font-family: var(--font-heading); font-size: 2rem; color: var(--gold-600); font-weight: 600; }
.formule-card ul { margin-top: 14px; }
.formule-card li { padding: 6px 0; border-bottom: 1px dashed rgba(107,20,35,.12); font-size: .9rem; }
.formule-card li:last-child { border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  .tilt-card, .review-card, .reveal, .btn { transition: none; }
}
