/* ============================================================
   Le Comptoir des Délices — système de design
   Palette ancrée dans l'identité réelle de la marque :
   noir/or (gâteau couronne), ivoire (logo), touches baies & sauge
   (fruits chocolatés, sandwich avocat) — le duo Sucré / Salé.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --ivory: #F6EEE0;
  --ivory-deep: #EFE4D0;
  --charcoal: #211D1A;
  --charcoal-soft: #322C27;
  --brass: #A9824F;
  --brass-light: #C9A876;
  --berry: #8B3A4E;
  --sage: #5C6E4F;
  --line: #E0D4BC;
  --white: #FFFDF9;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;

  --container: 1180px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-optical-sizing: auto; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow.on-dark { color: var(--brass-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.8em;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}
.btn-primary:hover { background: var(--brass); border-color: var(--brass); color: var(--charcoal); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); }

.btn-outline.on-dark {
  color: var(--ivory);
  border-color: var(--ivory-deep);
}
.btn-outline.on-dark:hover { background: var(--ivory); color: var(--charcoal); }

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.8em 1.2em;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 238, 224, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--charcoal);
}
.nav-brand img { width: 42px; height: 42px; border-radius: 50%; }
.nav-links {
  display: flex;
  gap: 2.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--brass); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.5rem;
    gap: 1.1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--charcoal);
    cursor: pointer;
  }
}

/* ---------- Hero diptych (signature element) ---------- */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-panel {
  position: absolute;
  inset: 0;
}
.hero-panel.sale {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-soft) 100%);
  clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%);
}
.hero-panel.sucre {
  background: linear-gradient(160deg, var(--ivory) 0%, var(--ivory-deep) 100%);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%);
}
.hero-seam {
  position: absolute;
  inset: 0;
  clip-path: polygon(57.6% 0, 58.4% 0, 42.4% 100%, 41.6% 100%);
  background: var(--brass);
  opacity: 0.85;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 46% 62% at 50% 48%, rgba(20,17,15,0.72) 0%, rgba(20,17,15,0.38) 48%, rgba(20,17,15,0) 75%);
}
.hero-side-label {
  position: absolute;
  top: 3rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-side-label.left { left: 2.5rem; color: var(--brass-light); }
.hero-side-label.right { right: 2.5rem; color: var(--brass); text-align: right; }

.hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.hero-content img.logo {
  width: 108px; height: 108px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(246,238,224,0.9), 0 12px 34px rgba(0,0,0,0.35);
  margin-bottom: 1.6rem;
}
.hero-content h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  color: var(--ivory);
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-content .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--brass-light);
  margin-bottom: 1.8rem;
}
.hero-content .hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: var(--ivory);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  text-shadow: 0 1px 12px rgba(20,17,15,0.9);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content { animation: hero-rise 0.9s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .hero { height: auto; min-height: 100vh; }
  .hero-side-label { top: 1.5rem; font-size: 0.68rem; }
}

/* ---------- Sections ---------- */
section { padding: var(--space-xl) 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}
.section-head h2 { margin-top: 0.4rem; }

@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .section-head { margin-bottom: 2.2rem; }
}

/* Two-pillar section */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.pillar {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
}
.pillar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.pillar:hover img { transform: scale(1.06); }
.pillar::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,17,15,0.88) 0%, rgba(20,17,15,0.15) 55%, rgba(20,17,15,0.05) 100%);
}
.pillar-body {
  position: relative;
  z-index: 2;
  padding: 2.2rem;
}
.pillar-body .eyebrow { color: var(--brass-light); }
.pillar-body h3 { color: var(--ivory); font-size: 1.7rem; margin-bottom: 0.4rem; }
.pillar-body p { color: rgba(246,238,224,0.85); font-size: 0.95rem; margin-bottom: 1.1rem; }

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
}

/* Gallery filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 2.6rem;
}
.filter-tab {
  padding: 0.55em 1.3em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal-soft);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-tab:hover { border-color: var(--brass); color: var(--charcoal); }
.filter-tab.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }
.gallery-item.is-hidden { display: none; }

/* Video card */
.gallery-item.video-item { cursor: pointer; }
.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(33,29,26,0.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.gallery-item.video-item:hover .play-badge { background: var(--brass); }
.play-badge svg { width: 18px; height: 18px; fill: var(--ivory); margin-left: 3px; }
.gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-tag {
  position: absolute;
  top: 0.7rem; left: 0.7rem;
  background: rgba(33,29,26,0.65);
  color: var(--ivory);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25em 0.6em;
  border-radius: 3px;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/5;
  background: var(--ivory-deep);
  cursor: pointer;
  border: none;
  padding: 0;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(20,17,15,0.85), transparent);
  color: var(--ivory);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
}
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; transform: translateY(0); }

.gallery-grid.full { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .gallery-grid.full { grid-template-columns: repeat(2, 1fr); }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(17,14,12,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 90vw; border-radius: 3px; }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: var(--ivory);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-cap {
  position: absolute;
  bottom: 2rem;
  color: var(--ivory-deep);
  font-size: 0.9rem;
  text-align: center;
}

/* Info band (hours/address teaser on home) */
.info-band {
  background: var(--charcoal);
  color: var(--ivory);
  padding: var(--space-lg) 0;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.info-grid h4 { color: var(--brass-light); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; margin-bottom: 0.7rem; }
.info-grid p { color: rgba(246,238,224,0.88); margin: 0; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; gap: 2.2rem; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ivory-deep);
  border-top: 1px solid var(--line);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: var(--space-md);
}
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer-brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.footer-col h5 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.9rem; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.95rem; }
.footer-col a:hover { color: var(--brass); }
.social-row { display: flex; gap: 0.9rem; margin-top: 0.9rem; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.social-row a:hover { background: var(--brass); }
.social-row svg { width: 17px; height: 17px; fill: var(--charcoal); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 6.5rem 0 4rem;
  text-align: center;
}
.page-header .eyebrow { color: var(--brass-light); }
.page-header h1 { color: var(--ivory); font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-header p { color: rgba(246,238,224,0.8); max-width: 560px; margin: 0.6rem auto 0; }

/* ---------- About page ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-split img { border-radius: 4px; }
.about-split.reverse .about-img { order: 2; }
@media (max-width: 760px) {
  .about-split, .about-split.reverse { grid-template-columns: 1fr; }
  .about-split.reverse .about-img { order: 0; }
}
.value-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.value-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.value-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); margin-top: 0.5em; flex-shrink: 0; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2.2rem;
}
.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row svg { width: 22px; height: 22px; fill: var(--brass); flex-shrink: 0; margin-top: 2px; }
.contact-row h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal-soft); margin: 0 0 0.3rem; font-weight: 600; }
.contact-row a, .contact-row p { margin: 0; font-size: 1rem; }
.contact-row a:hover { color: var(--brass); }
.map-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
