/* Villefranche Primeurs — direction "Sous l'Auvent"
   Motif signature : les bandes de l'auvent vert/crème de la boutique,
   déclinées en séparateurs, halos de badges et texture de fond. */

:root {
  --green-deep: #1f5d46;
  --green-mid: #2e7355;
  --green-pale: #e7efe6;
  --cream: #f7f1e1;
  --cream-soft: #fbf8ef;
  --terracotta: #c1432b;
  --terracotta-dark: #a3341f;
  --gold: #d98c4a;
  --ink: #2a2620;
  --ink-soft: #55504a;
  --line: rgba(31, 93, 70, 0.16);
  --shadow: 0 18px 40px -20px rgba(31, 93, 70, 0.35);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --header-h: 84px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Work Sans", Arial, sans-serif;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream-soft);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.4em;
  line-height: 1.12;
  color: var(--green-deep);
}

p { line-height: 1.6; color: var(--ink-soft); margin: 0 0 1em; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* --- reveal-on-scroll (gated by .js so content is visible without JS) --- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* --- awning stripe motif --- */
.stripe-divider {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--green-deep) 0 34px,
    var(--cream) 34px 68px
  );
}

.stripe-band {
  background: repeating-linear-gradient(
    90deg,
    var(--green-deep) 0 28px,
    var(--green-mid) 28px 56px
  );
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--green-deep); color: var(--green-deep); }
.btn-outline:hover { background: var(--green-deep); color: #fff; transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--green-deep); }
.btn-light:hover { background: #fff; transform: translateY(-2px); }

/* --- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 225, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--green-deep);
  line-height: 1.05;
}
.brand-name small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--green-deep); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.burger span { width: 24px; height: 2.5px; background: var(--green-deep); border-radius: 2px; }

@media (max-width: 980px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--cream); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 6px; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .burger { display: flex; }
  .header-actions .btn-primary span.btn-label { display: none; }
}

/* --- hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-copy { color: var(--cream); position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.1rem); max-width: 15ch; }
.hero-sub { color: var(--cream); opacity: 0.88; font-size: 1.08rem; max-width: 46ch; }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(247, 241, 225, 0.12);
  border: 1px solid rgba(247, 241, 225, 0.35);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 18px 0 28px;
  transition: background 0.2s ease;
}
.rating-badge:hover { background: rgba(247, 241, 225, 0.22); }
.rating-badge .stars { display: flex; gap: 2px; }
.rating-badge svg { width: 15px; height: 15px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.reassurance-row { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 8px; border-top: 1px solid rgba(247, 241, 225, 0.25); }
.reassurance-row div { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--cream); opacity: 0.92; }
.reassurance-row svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.hero-media { position: relative; z-index: 2; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); aspect-ratio: 4/5; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 34px, var(--cream) 34px 68px);
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
}

/* --- section headings --- */
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { max-width: 52ch; margin: 0 auto; }

section { padding: 84px 0; }
.section-alt { background: var(--green-pale); }

/* --- prestations cards --- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: 0 12px 30px -18px rgba(42, 38, 32, 0.25);
  border: 1px solid var(--line);
}
.card.is-featured { border: 2px solid var(--terracotta); }
.card-badge {
  position: absolute;
  top: -14px;
  left: 26px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: 999px;
}
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon svg { width: 28px; height: 28px; color: var(--green-deep); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.94rem; }

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

/* --- clientele band --- */
.clientele-band { background: var(--green-deep); padding: 44px 0; }
.clientele-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; list-style: none; padding: 0; margin: 0; }
.clientele-list li { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; font-size: 0.95rem; }
.clientele-list svg { width: 20px; height: 20px; color: var(--gold); }

/* --- reviews --- */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.review-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 28px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px -20px rgba(42, 38, 32, 0.2);
}
.review-stars { display: flex; gap: 3px; margin-bottom: 12px; }
.review-stars svg { width: 16px; height: 16px; color: var(--gold); }
.review-text { color: var(--ink); font-size: 0.98rem; margin-bottom: 16px; }
.review-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--ink-soft); }
.review-author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.google-g { width: 16px; height: 16px; }

.reviews-cta { text-align: center; margin-top: 34px; }
.reviews-cta a { font-weight: 700; color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }

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

/* --- pourquoi nous --- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item { text-align: center; padding: 8px; }
.why-item .card-icon { margin: 0 auto 16px; }
.why-item h3 { font-size: 1.02rem; }
.why-item p { font-size: 0.88rem; }

@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- gallery teaser --- */
.gallery-teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 34px; }
.gallery-teaser-grid figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/5; position: relative; }
.gallery-teaser-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-teaser-grid a:hover img { transform: scale(1.05); }

@media (max-width: 860px) {
  .gallery-teaser-grid { grid-template-columns: repeat(2, 1fr); }
}

.center-cta { text-align: center; }

/* --- boutique / contact --- */
.boutique-section { background: var(--ink); color: var(--cream); }
.boutique-section h2 { color: #fff; }
.boutique-section .section-head p { color: rgba(247,241,225,0.75); }
.boutique-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.info-block { display: flex; gap: 14px; margin-bottom: 22px; }
.info-block svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.info-block strong { display: block; color: #fff; margin-bottom: 2px; }
.info-block a { color: var(--cream); text-decoration: none; }
.info-block a:hover { text-decoration: underline; }
.info-block .muted { color: rgba(247,241,225,0.7); font-size: 0.92rem; }

.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.hours-table td { padding: 7px 0; border-bottom: 1px solid rgba(247,241,225,0.12); font-size: 0.92rem; color: rgba(247,241,225,0.85); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: #fff; }

.map-illustration {
  background: rgba(247,241,225,0.06);
  border: 1px solid rgba(247,241,225,0.18);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.boutique-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

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

/* --- footer --- */
.site-footer { background: #16362a; color: rgba(247,241,225,0.8); padding: 46px 0 26px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; }
.footer-nav a { text-decoration: none; color: rgba(247,241,225,0.8); font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(247,241,225,0.12); padding-top: 20px; font-size: 0.82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* --- floating whatsapp --- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,0.45);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }

/* --- gallery page --- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-chip {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-chip .count { color: var(--ink-soft); font-weight: 500; }
.filter-chip.is-active, .filter-chip:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.filter-chip.is-active .count, .filter-chip:hover .count { color: rgba(255,255,255,0.75); }

.masonry { column-count: 3; column-gap: 18px; }
.masonry figure { break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; }
.masonry img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}
.masonry [hidden] { display: none; }

@media (max-width: 980px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

dialog.lightbox {
  margin: auto;
  border: none;
  border-radius: var(--radius-md);
  padding: 0;
  max-width: min(90vw, 1000px);
  max-height: 88vh;
  background: #0d0d0c;
}
dialog.lightbox::backdrop { background: rgba(20, 18, 14, 0.82); }
.lightbox-inner { position: relative; display: flex; flex-direction: column; }
.lightbox-inner img { max-height: 78vh; width: auto; margin: 0 auto; object-fit: contain; }
.lightbox-caption { color: #fff; padding: 14px 18px; font-size: 0.92rem; background: #0d0d0c; }
.lightbox-close {
  position: absolute; top: 10px; right: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; border: none;
  font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; border: none;
  font-size: 1.4rem; cursor: pointer;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.gallery-hero { background: var(--green-deep); padding: 56px 0 40px; text-align: center; }
.gallery-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.gallery-hero p { color: rgba(247,241,225,0.85); max-width: 50ch; margin: 0 auto; }
