/* =========================================================
   Brume — Specialty Coffee à Paris
   Warm minimal — beige, cream, warm brown, charcoal, gold
   ========================================================= */

:root {
  --beige: #F5F1ED;
  --cream: #FFFAF7;
  --charcoal: #2A2A2A;
  --brown: #A68B7A;
  --brown-deep: #8A6F5E;
  --gold: #C9A961;
  --line: rgba(42, 42, 42, 0.10);
  --shadow-soft: 0 20px 50px -24px rgba(42, 42, 42, 0.28);
  --shadow-card: 0 14px 40px -20px rgba(42, 42, 42, 0.22);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
  color: var(--charcoal);
}

h2 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brown-deep);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-lede {
  color: #5c5551;
  font-size: 1.08rem;
  max-width: 46ch;
}

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.visually-hidden, .form-msg:empty {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s ease, background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}
.btn-primary:hover { background: var(--brown-deep); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brown); color: var(--brown-deep); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
}
.site-header.scrolled {
  background: rgba(255, 250, 247, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--charcoal); }
.brand-mark { color: var(--gold); display: inline-flex; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  position: relative;
  transition: color .3s ease;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--brown-deep);
  transition: width .3s ease;
}
.nav a:not(.nav-cta):hover { color: var(--brown-deep); }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--line);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}
.nav-cta:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--charcoal);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(255, 250, 247, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.5rem;
}
.mobile-nav a {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 15%, rgba(201, 169, 97, 0.20), transparent 55%),
    radial-gradient(100% 100% at 15% 90%, rgba(166, 139, 122, 0.30), transparent 60%),
    linear-gradient(160deg, #F7F2EC 0%, #EFE6DC 45%, #E7DACF 100%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.hero-inner { position: relative; z-index: 2; padding-top: 76px; max-width: 900px; }
.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brown-deep);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: 1.02;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  color: #4c4540;
  max-width: 30ch;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--brown);
  border-radius: 999px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--brown-deep);
  border-radius: 4px;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { opacity: 0; transform: translateY(0);} 40% { opacity: 1;} 80% { opacity: 0; transform: translateY(12px);} }

/* ---------- Two-column layouts ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.two-col-text h2 { margin-bottom: 1.2rem; }
.two-col-text p { color: #4f4844; max-width: 52ch; }

.two-col-media { position: relative; }
.two-col-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.media-badge {
  position: absolute;
  bottom: -22px; right: -18px;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 50%;
  width: 118px; height: 118px;
  display: grid; place-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.media-badge-num {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: 0.05em;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.pill-list li {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brown-deep);
  background: var(--beige);
}

/* ---------- Menu ---------- */
.menu { background: var(--beige); }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.menu-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .4s ease, box-shadow .4s ease;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(42,42,42,0.32); }
.menu-card-media { overflow: hidden; aspect-ratio: 1 / 1; }
.menu-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.menu-card:hover .menu-card-media img { transform: scale(1.06); }
.menu-card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; }
.menu-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.menu-card-head h3 { margin: 0; }
.price {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--brown-deep);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.menu-card-body p { margin: 0; font-size: 0.95rem; color: #57504b; }

/* ---------- Location ---------- */
.lieu { background: var(--cream); }
.info-block {
  margin: 1.8rem 0 2.2rem;
  border-top: 1px solid var(--line);
}
.info-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.info-label {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-deep);
  padding-top: 3px;
}
.info-value { color: var(--charcoal); }
.map-media iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  filter: grayscale(0.25) sepia(0.12);
}

/* ---------- Gallery ---------- */
.galerie { background: var(--beige); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: clamp(0.9rem, 2vw, 1.5rem);
}
.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-item figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.gallery-item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42,42,42,0.55), transparent 55%);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 1;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item figcaption { z-index: 2; }
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--charcoal); color: var(--cream); }
.newsletter .eyebrow { color: var(--gold); }
.newsletter h2 { color: var(--cream); }
.newsletter-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.newsletter-text p { color: rgba(255,250,247,0.72); max-width: 44ch; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.newsletter-form input {
  flex: 1 1 220px;
  min-width: 0;
  background: rgba(255,250,247,0.06);
  border: 1px solid rgba(255,250,247,0.2);
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color .3s ease, background-color .3s ease;
}
.newsletter-form input::placeholder { color: rgba(255,250,247,0.45); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,250,247,0.1); }
.newsletter .btn-primary { background: var(--gold); color: var(--charcoal); }
.newsletter .btn-primary:hover { background: #d8bb75; }
.form-msg {
  flex-basis: 100%;
  font-size: 0.9rem;
  color: var(--gold);
  margin: 0.3rem 0 0;
}

/* ---------- Footer ---------- */
.site-footer { background: #23211f; color: rgba(255,250,247,0.8); padding-top: clamp(3.5rem, 7vw, 5rem); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,250,247,0.12);
}
.footer-brand .brand-name { color: var(--cream); display: inline-block; margin-bottom: 0.8rem; }
.footer-brand p { max-width: 40ch; color: rgba(255,250,247,0.6); }
.footer-col h4 {
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col p { margin-bottom: 0.6rem; color: rgba(255,250,247,0.7); }
.footer-col a { transition: color .3s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 1.6rem;
  font-size: 0.85rem;
  color: rgba(255,250,247,0.5);
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .two-col-reverse .two-col-text { order: 2; }
  .two-col-media img { aspect-ratio: 16 / 12; }
  .media-badge { width: 96px; height: 96px; right: 8px; bottom: -16px; }
  .map-media iframe { min-height: 320px; }
  .gallery-grid { grid-auto-rows: 190px; }
}

@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-wide { grid-column: span 2; }
  .gallery-tall { grid-row: span 1; }
  .info-row { grid-template-columns: 100px 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
}
