/* ==========================================================================
   Chez Marie France — Cluny
   Charte : vert #536F46 · doré #C9A872 · Fraunces / Nunito Sans
   Mobile first — breakpoints : 480px / 768px / 1024px
   ========================================================================== */

/* ---------- Variables (source de vérité unique) ---------- */
:root {
  --color-bg:          #FAF7F1;
  --color-surface:     #FFFFFF;
  --color-green:       #536F46;
  --color-green-dark:  #3E5434;
  --color-gold:        #C9A872;
  --color-gold-light:  #E3D3B4;
  --color-text:        #2C2A24;
  --color-muted:       #7D7A6E;
  --color-border:      #E8E1D3;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 6px 24px rgba(44, 42, 36, 0.08);
  --shadow-lift: 0 12px 32px rgba(44, 42, 36, 0.14);
  --header-height: 72px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-green); }

a:hover { color: var(--color-green-dark); }

:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-green);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--color-green);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--color-green-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-green);
  border-color: rgba(255, 255, 255, 0.92);
}

.btn-ghost:hover {
  background: #FFFFFF;
  color: var(--color-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* Doré : réservé aux fonds verts (contraste) */
.btn-gold {
  background: var(--color-gold);
  color: var(--color-green-dark);
}

.btn-gold:hover {
  background: var(--color-gold-light);
  color: var(--color-green-dark);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--color-surface);
  box-shadow: 0 2px 16px rgba(44, 42, 36, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand img { width: 44px; height: auto; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-gold);
  text-shadow: 0 1px 8px rgba(44, 42, 36, 0.45);
  white-space: nowrap;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.is-scrolled .brand-name { color: var(--color-gold); text-shadow: none; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
}

.main-nav ul a {
  display: block;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(44, 42, 36, 0.45);
  transition: color 0.2s ease, background-color 0.2s ease, text-shadow 0.3s ease;
}

.main-nav ul a:hover { color: var(--color-gold-light); }

.is-scrolled .main-nav ul a { color: var(--color-text); text-shadow: none; }

.is-scrolled .main-nav ul a:hover {
  color: var(--color-green);
  background: var(--color-bg);
}

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

.nav-phone {
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(44, 42, 36, 0.45);
  text-decoration: none;
  white-space: nowrap;
}

.is-scrolled .nav-phone { color: var(--color-green); text-shadow: none; }

.btn-nav { padding: 0.6em 1.3em; font-size: 0.95rem; white-space: nowrap; }

/* Hamburger */
.hamburger {
  display: none;
  position: relative;
  z-index: 95; /* au-dessus du tiroir de navigation mobile (z-index 90) */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--color-green);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay léger : le lieu est lumineux */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 42, 36, 0.38) 0%,
    rgba(44, 42, 36, 0.18) 45%,
    rgba(44, 42, 36, 0.42) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 110px 24px 90px;
  max-width: 860px;
}

.hero-logo {
  width: 90px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 2px 10px rgba(44, 42, 36, 0.4));
}

.hero h1 {
  color: #FFFFFF;
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(44, 42, 36, 0.55);
  margin-bottom: 0.4em;
}

.hero-sub {
  color: #FFF9EE;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  text-shadow: 0 1px 10px rgba(44, 42, 36, 0.6);
  margin: 0 0 1.8em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  position: relative;
}

.scroll-mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #FFFFFF;
  animation: scroll-wheel 1.8s ease-in-out infinite;
}

/* ---------- Sections ---------- */
.section { padding: 60px 0; }

.section-alt { background: var(--color-surface); }

.section-green {
  background: var(--color-green);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin: 0 0 10px;
}

.section h2 { text-align: center; }

.gold-divider {
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-gold);
  margin: 18px auto 26px;
  position: relative;
}

.gold-divider::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px;
  height: 9px;
  background: var(--color-gold);
  border-radius: 2px;
}

.divider-left { margin-left: 0; }

.section-intro {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
  color: var(--color-text);
}

.section-cta {
  text-align: center;
  margin: 42px 0 0;
  font-size: 1.1rem;
}

/* ---------- Cartes (épicerie & pause) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-media img { transform: scale(1.05); }

.card-body { padding: 20px 22px 24px; }

.card-body h3 { margin-bottom: 0.35em; }

.card-body p { margin: 0; color: var(--color-muted); font-size: 0.98rem; }

/* ---------- Arts de la table ---------- */
.table-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.table-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.table-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.table-item:hover img { transform: scale(1.04); }

.table-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(44, 42, 36, 0.72), transparent);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ---------- Pause gourmande ---------- */
.pause-note {
  margin-top: 42px;
  padding: 26px 28px;
  background: var(--color-gold-light);
  border-radius: var(--radius);
  text-align: center;
}

.pause-tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-green-dark);
  margin: 0 0 6px;
}

.pause-hours { margin: 0; color: var(--color-text); }

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--color-border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

/* ---------- À propos ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.about-text .section-kicker,
.about-text h2 { text-align: left; }

.about-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

/* ---------- Avis ---------- */
.section-green .section-kicker { color: var(--color-gold-light); }
.section-green h2 { color: #FFFFFF; }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.review {
  margin: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(227, 211, 180, 0.35);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  color: #F4EFE5;
}

.review p { margin: 0 0 12px; }

.review footer { font-size: 0.9rem; color: var(--color-gold-light); }

.stars { display: flex; gap: 3px; margin-bottom: 14px; }

.stars svg { width: 20px; height: 20px; fill: var(--color-gold); }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 10px;
}

.contact-block { margin-bottom: 30px; }

.contact-block h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-green);
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
  padding-bottom: 4px;
}

.contact-block .btn { margin-top: 8px; }

.hours { margin: 0; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--color-border);
}

.hours dt { font-weight: 700; }

.hours dd { margin: 0; text-align: right; }

.hours-note {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-top: 10px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
}

.socials svg {
  width: 26px;
  height: 26px;
  fill: var(--color-green);
  flex: none;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 320px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-green-dark);
  color: #EDE7DA;
  padding: 54px 0 36px;
  margin-top: 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}

.footer-brand img { margin: 0 auto 10px; }

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-gold);
  margin: 0;
}

.footer-tagline {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--color-gold-light);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

.footer-nav a {
  color: #EDE7DA;
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover { color: var(--color-gold-light); }

.footer-legal { font-size: 0.88rem; color: #C8C2B2; }

.footer-legal p { margin: 4px 0; }

.footer-legal a { color: #EDE7DA; }

.footer-seo { color: #A9A392; font-size: 0.8rem; margin-top: 12px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44, 42, 36, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox button:hover { background: rgba(255, 255, 255, 0.28); }

.lightbox-close { top: 18px; right: 18px; font-size: 1.8rem; }

.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }

.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* sm : 480px+ */
@media (min-width: 480px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* md : 768px+ */
@media (min-width: 768px) {
  .section { padding: 80px 0; }

  .table-grid { grid-template-columns: repeat(2, 1fr); }

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

  .reviews-grid { grid-template-columns: repeat(3, 1fr); }

  .contact-layout { grid-template-columns: 1fr 1fr; }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    text-align: left;
    align-items: center;
  }

  .footer-brand img { margin: 0 0 10px; }

  .footer-nav { justify-content: center; }

  .footer-legal { text-align: right; }
}

/* lg : 1024px+ */
@media (min-width: 1024px) {
  .section { padding: 100px 0; }

  .brand { flex: none; }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .main-nav ul { gap: 0; }

  .main-nav ul a { padding: 8px; }

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

  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }

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

  .about-layout { grid-template-columns: 3fr 2fr; gap: 60px; }
}

/* Navigation : bascule mobile / desktop */
@media (max-width: 1023px) {
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: var(--color-surface);
    box-shadow: -8px 0 30px rgba(44, 42, 36, 0.18);
    padding: 90px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
    z-index: 90;
  }

  .main-nav.is-open { transform: translateX(0); }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .main-nav ul a,
  .is-scrolled .main-nav ul a {
    color: var(--color-text);
    text-shadow: none;
    padding: 12px 10px;
    font-size: 1.1rem;
  }

  .main-nav ul a:hover { color: var(--color-green); background: var(--color-bg); }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 22px;
    gap: 12px;
    text-align: center;
  }

  .nav-phone,
  .is-scrolled .nav-phone {
    color: var(--color-green);
    text-shadow: none;
    font-size: 1.15rem;
  }
}

@media (max-width: 479px) {
  .brand-name { font-size: 1.05rem; }
}

/* Hero mobile : sans logo, image décalée vers la droite */
@media (max-width: 767px) {
  .hero-logo { display: none; }

  .hero-bg img { object-position: calc(50% + 100px) center; }
}
