/* ============================================================
   Le Coup de Ju — bistrot de quartier
   Palette : ardoise #1c1c1c · craie #f4f1e8 · brique #9b2d23
   Typo : Caveat (craie/manuscrite) + Hanken Grotesk (texte)
   ============================================================ */

:root {
  --slate: #1c1c1c;
  --slate-2: #262422;
  --chalk: #f4f1e8;
  --chalk-dim: #d9d4c5;
  --brick: #9b2d23;          /* piloté par Tweaks */
  --wood: #7a5a3a;
  --beige: #e8e0cd;
  --beige-2: #efe9da;
  --ink: #211e1b;
  --muted: #6f675b;
  --line: #d8cfba;
  --radius: 14px;            /* piloté par Tweaks */
  --title-font: "Caveat", cursive;   /* piloté par Tweaks */
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--beige-2);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

.chalk {
  font-family: var(--title-font);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brick);
}
.eyebrow.on-dark { color: #e8b4ad; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--slate) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--chalk);
}
.brand .mark {
  font-family: var(--title-font);
  font-size: 30px; font-weight: 700; line-height: 1;
  color: var(--chalk);
}
.brand .mark b { color: #e8b4ad; }
.brand .sub {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--chalk-dim); font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--chalk-dim); font-size: 15px; font-weight: 600;
  letter-spacing: 0.02em; transition: color .2s;
}
.nav-links a:hover { color: var(--chalk); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-brick { background: var(--brick); color: #fff; }
.btn-brick:hover { background: color-mix(in srgb, var(--brick) 88%, #000); }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--chalk); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-outline { border-color: var(--brick); color: var(--brick); background: transparent; }
.btn-outline:hover { background: var(--brick); color: #fff; }
.nav-toggle { display: none; }

/* ---------------- Hero ---------------- */
.hero { position: relative; background: var(--slate); color: var(--chalk); overflow: hidden; }

/* Variant A: split (default) */
.hero[data-variant="split"] .hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  min-height: 600px;
}
.hero[data-variant="split"] .hero-copy { padding: 86px 0 86px; display: flex; flex-direction: column; justify-content: center; }
.hero[data-variant="split"] .hero-media { position: relative; }
.hero[data-variant="split"] .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero[data-variant="split"] .hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--slate) 0%, transparent 22%);
}

/* Variant B: full-bleed image with overlay */
.hero[data-variant="overlay"] .hero-inner {
  position: relative; min-height: 660px;
  display: flex; align-items: flex-end;
}
.hero[data-variant="overlay"] .hero-bg {
  position: absolute; inset: 0;
}
.hero[data-variant="overlay"] .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero[data-variant="overlay"] .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.35) 0%, rgba(20,18,16,0.55) 45%, rgba(20,18,16,0.9) 100%);
}
.hero[data-variant="overlay"] .hero-copy { position: relative; padding: 0 0 80px; max-width: 720px; }
.hero[data-variant="overlay"] .hero-media { display: none; }

/* Variant C: chalkboard centered */
.hero[data-variant="chalkboard"] .hero-inner {
  position: relative; min-height: 640px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 90px 0;
}
.hero[data-variant="chalkboard"] .hero-bg { position: absolute; inset: 0; }
.hero[data-variant="chalkboard"] .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.16; filter: grayscale(0.3); }
.hero[data-variant="chalkboard"] .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(15,13,11,0.7) 100%);
  box-shadow: inset 0 0 120px rgba(0,0,0,0.6);
}
.hero[data-variant="chalkboard"] .hero-copy { position: relative; max-width: 820px; align-items: center; }
.hero[data-variant="chalkboard"] .hero-copy .hero-actions { justify-content: center; }
.hero[data-variant="chalkboard"] .hero-media { display: none; }
.hero[data-variant="chalkboard"] .frame {
  position: absolute; inset: 26px; border: 2px solid rgba(244,241,232,0.22);
  border-radius: 6px; pointer-events: none;
}

.hero-copy { display: flex; flex-direction: column; }
.hero h1 {
  font-family: var(--title-font);
  font-weight: 700;
  font-size: clamp(54px, 8.5vw, 104px);
  line-height: 0.92;
  margin: 16px 0 0;
  letter-spacing: 0.01em;
}
.hero h1 .accent { color: #e8b4ad; display: block; }
.hero .lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--chalk-dim);
  max-width: 50ch; margin: 30px 0 0; line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px 30px; margin-top: 40px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-meta .item .k { font-family: var(--title-font); font-size: 26px; color: var(--chalk); line-height: 1; }
.hero-meta .item .v { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--chalk-dim); margin-top: 6px; }

/* ---------------- Section scaffolding ---------------- */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--title-font); font-weight: 700;
  font-size: clamp(38px, 5.5vw, 60px); line-height: 1; margin: 12px 0 0;
}
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------------- À propos ---------------- */
.about { background: var(--beige-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-photos figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.about-photos figure img { width: 100%; height: 100%; object-fit: cover; }
.about-photos .tall { grid-row: span 2; }
.about-copy p { color: #443f37; }
.about-copy p + p { margin-top: 16px; }
.sign {
  font-family: var(--title-font); font-size: 38px; color: var(--brick);
  margin-top: 18px; line-height: 1;
}
.sign-sub { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------------- Carte (ardoise) ---------------- */
.menu { background: var(--slate); color: var(--chalk); position: relative; }
.menu::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 4px 4px; opacity: 0.5; pointer-events: none;
}
.menu .section-head h2 { color: var(--chalk); }
.menu .section-head p { color: var(--chalk-dim); }
.menu-board { position: relative; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 64px; }
.menu-group h3 {
  font-family: var(--title-font); font-size: 40px; font-weight: 700;
  color: #e8b4ad; margin: 0 0 6px; letter-spacing: 0.01em;
}
.menu-group { margin-bottom: 44px; }
.menu-group .grp-note { font-size: 14px; color: var(--chalk-dim); margin: 0 0 18px; font-style: italic; }
.dish {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 8px; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.14);
}
.dish:last-child { border-bottom: 0; }
.dish .d-name { font-weight: 700; font-size: 18px; color: var(--chalk); }
.dish .d-desc { font-size: 14.5px; color: var(--chalk-dim); margin-top: 3px; line-height: 1.45; }
.dish .d-price { font-family: var(--title-font); font-size: 28px; color: var(--chalk); white-space: nowrap; }
.menu-foot {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: space-between;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.14);
}
.menu-foot .note { font-size: 14px; color: var(--chalk-dim); }

/* Formula band */
.formula { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 50px; }
.formula .card {
  flex: 1 1 220px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  padding: 24px 26px;
}
.formula .card .name { font-family: var(--title-font); font-size: 30px; color: #e8b4ad; line-height: 1; }
.formula .card .price { font-size: 15px; color: var(--chalk-dim); margin-top: 10px; }
.formula .card .price b { color: var(--chalk); font-size: 22px; font-weight: 700; }
.formula .card .desc { font-size: 14px; color: var(--chalk-dim); margin-top: 12px; }

/* ---------------- Galerie ---------------- */
.gallery { background: var(--beige); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 14px;
}
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid .w2 { grid-column: span 2; }
.gallery-grid .h2 { grid-row: span 2; }
.gallery-grid figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 26px 16px 12px; color: #fff; font-family: var(--title-font);
  font-size: 24px; line-height: 1;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: none; }

/* ---------------- Avis ---------------- */
.reviews { background: var(--beige-2); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative;
}
.review .stars { color: #d39a16; letter-spacing: 2px; font-size: 16px; }
.review p { font-size: 17px; color: #3a352d; margin: 14px 0 18px; }
.review .who { font-weight: 700; }
.review .src { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------------- Infos / horaires / contact ---------------- */
.visit { background: var(--slate); color: var(--chalk); }
.visit .section-head h2 { color: var(--chalk); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.14);
  font-size: 16px;
}
.hours-list li .day { color: var(--chalk-dim); }
.hours-list li .time { color: var(--chalk); font-weight: 600; }
.hours-list li.closed .time { color: #e8917f; }
.contact-block { margin-top: 30px; display: grid; gap: 14px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row .ic {
  width: 38px; height: 38px; flex: none; border-radius: 10px;
  background: rgba(255,255,255,0.08); display: grid; place-items: center;
  color: #e8b4ad;
}
.contact-row .lbl { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--chalk-dim); }
.contact-row .val { font-size: 17px; font-weight: 600; color: var(--chalk); }
.contact-row a.val:hover { color: #e8b4ad; }
.map-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.14);
  background: var(--slate-2);
}
.map-card .map-photo { height: 260px; position: relative; }
.map-card .map-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.map-card .map-foot { padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.map-card .addr { font-size: 15px; color: var(--chalk-dim); }
.map-card .addr b { display: block; color: var(--chalk); font-size: 17px; margin-bottom: 2px; }

/* ---------------- CTA reservation ---------------- */
.book { background: var(--brick); color: #fff; }
.book .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.book h2 { font-family: var(--title-font); font-size: clamp(40px, 6vw, 68px); margin: 0; line-height: 0.95; }
.book p { margin: 10px 0 0; color: rgba(255,255,255,0.85); font-size: 18px; max-width: 46ch; }
.book .btn-light { background: #fff; color: var(--brick); }
.book .btn-light:hover { background: var(--chalk); }
.book .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------- Footer ---------------- */
.site-footer { background: #141210; color: var(--chalk-dim); padding: 56px 0 110px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid .mark { font-family: var(--title-font); font-size: 32px; color: var(--chalk); }
.footer-grid .mark b { color: #e8b4ad; }
.footer-grid p { font-size: 15px; line-height: 1.6; margin: 12px 0 0; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--chalk); margin: 0 0 14px; }
.footer-col a, .footer-col li { display: block; font-size: 15px; color: var(--chalk-dim); padding: 4px 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a:hover { color: var(--chalk); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }

/* ---------------- Mobile sticky bar ---------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--slate) 95%, transparent);
  backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-bar .btn { flex: 1; justify-content: center; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav .btn-brick { display: none; }
  .hero[data-variant="split"] .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero[data-variant="split"] .hero-media { height: 320px; }
  .hero[data-variant="split"] .hero-media img { position: relative; }
  .hero[data-variant="split"] .hero-media::after { background: linear-gradient(180deg, transparent 60%, var(--slate)); }
  .hero[data-variant="split"] .hero-copy { padding: 64px 0 56px; }
  .about-grid, .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .menu-cols { grid-template-columns: 1fr; gap: 0 0; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .mobile-bar { display: flex; }
  .site-footer { padding-bottom: 110px; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .about-photos { grid-template-columns: 1fr 1fr; }
  .gallery-grid .w2 { grid-column: span 2; }
}
