/* ===== Boulangerie Les Halles — Reims ===== */

:root {
  --noir: #1A1512;
  --noir-2: #221B16;
  --anthracite: #2B2118;
  --creme: #F6EFE2;
  --creme-2: #EFE4D0;
  --or: #C79A3F;
  --or-clair: #E3C77E;
  --bordeaux: #7A2331;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', Arial, sans-serif;
  --header-h: 84px;
  --shadow: 0 18px 40px -20px rgba(26,21,18,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--anthracite);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 .5em; line-height: 1.12; }
p { line-height: 1.6; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: var(--header-h); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--or); color: var(--noir);
  padding: .8em 1.2em; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Reveal on scroll — gated so content stays visible without JS */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transition: none; opacity: 1; transform: none; }
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,21,18,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(199,154,63,.25);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-seal { flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display); color: var(--creme); font-size: 1.05rem;
  line-height: 1.15; letter-spacing: .02em; font-weight: 600;
}
.brand-word em { font-style: italic; color: var(--or-clair); }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  color: var(--creme); text-decoration: none; font-size: .93rem; font-weight: 500;
  white-space: nowrap; position: relative; padding: 4px 0;
}
.main-nav a:hover { color: var(--or-clair); }

.header-cta { margin-left: 8px; flex-shrink: 0; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 1px solid rgba(199,154,63,.5);
  border-radius: 8px; cursor: pointer; margin-left: auto;
}
.burger span { display: block; height: 2px; width: 20px; background: var(--or-clair); margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .7em 1.3em; border-radius: 999px; font-weight: 600; font-size: .92rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .95em 1.7em; font-size: 1rem; }
.btn-whatsapp { background: #25D366; color: #0b3b1e; }
.btn-whatsapp:hover { background: #2fe073; }
.btn-ghost { border-color: var(--or); color: var(--creme); }
.btn-ghost:hover { background: rgba(199,154,63,.15); }
.btn-ghost-light { border-color: var(--creme); color: var(--creme); }
.btn-ghost-light:hover { background: rgba(246,239,226,.1); }
.btn-outline-or { border-color: var(--or); color: var(--or-clair); }
.btn-outline-or:hover { background: rgba(199,154,63,.15); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; color: var(--creme); }
.hero-carousel { position: absolute; inset: 0; }
.hero-scene { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-scene.is-active { opacity: 1; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,21,18,.55) 0%, rgba(26,21,18,.35) 35%, rgba(26,21,18,.92) 100%);
}
.hero-content { position: relative; padding-bottom: 64px; padding-top: 140px; max-width: 720px; }
.chip {
  display: inline-block; background: rgba(199,154,63,.18); border: 1px solid rgba(199,154,63,.5);
  color: var(--or-clair); padding: .4em 1em; border-radius: 999px; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--creme); }
.hero h1 .dot { color: var(--or); }
.hero .lede { font-size: 1.12rem; max-width: 56ch; color: var(--creme-2); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.reviews-badge {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--creme);
  background: rgba(255,255,255,.06); border: 1px solid rgba(199,154,63,.35);
  padding: .6em 1.1em; border-radius: 999px; font-size: .92rem;
}
.reviews-badge .stars { color: var(--or); letter-spacing: 1px; }
.reviews-badge:hover { background: rgba(255,255,255,.12); }

.hero-dots { display: flex; gap: 10px; margin-top: 34px; }
.hero-dot {
  width: 34px; height: 4px; border-radius: 4px; border: none; background: rgba(246,239,226,.3);
  cursor: pointer; padding: 0;
}
.hero-dot.is-active { background: var(--or); }

/* divider */
.divider { line-height: 0; margin-top: -2px; }
.divider svg { width: 100%; height: 40px; display: block; fill: var(--creme); }
.divider-flip svg { fill: var(--noir); transform: scaleY(-1); }

/* ===== Sections ===== */
.section-creme { background: var(--creme); padding: 96px 0; }
.section-noir { background: var(--noir); color: var(--creme); padding: 96px 0; }
.kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 700;
  color: var(--bordeaux); margin-bottom: 10px;
}
.kicker-or { color: var(--or); }
.h-or { color: var(--creme); }
.section-creme h2, .section-noir h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 20ch; margin-bottom: 44px; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; background: #fff; border: 1px solid rgba(43,33,24,.08);
  border-radius: 18px; padding: 30px 26px; box-shadow: var(--shadow);
}
.card-badge {
  position: absolute; top: -12px; left: 22px; background: var(--bordeaux); color: var(--creme);
  font-size: .72rem; font-weight: 700; padding: .35em .9em; border-radius: 999px; letter-spacing: .03em;
}
.card-icon { width: 52px; height: 52px; color: var(--or); margin-bottom: 16px; }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { font-size: 1.2rem; margin-bottom: .4em; }
.card p { font-size: .93rem; color: #4b4136; margin: 0; }

/* Occasions */
.occasions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.occasion-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--or); font-style: italic; }
.occasion h3 { color: var(--creme); font-size: 1.05rem; margin: .3em 0 .3em; }
.occasion p { color: #cbbfa9; font-size: .9rem; margin: 0; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card {
  margin: 0; background: #fff; border: 1px solid rgba(43,33,24,.08); border-radius: 16px;
  padding: 26px; box-shadow: var(--shadow);
}
.review-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-top .stars { color: var(--or); letter-spacing: 2px; }
.review-card p { font-size: .96rem; font-style: italic; color: var(--anthracite); }
.review-card footer { margin-top: 14px; font-size: .85rem; color: #6b6053; font-style: normal; }
.review-card cite { font-weight: 700; font-style: normal; color: var(--anthracite); }
.link-more {
  display: inline-block; margin-top: 30px; text-decoration: none; font-weight: 600;
  color: var(--bordeaux); border-bottom: 1.5px solid var(--bordeaux); padding-bottom: 2px;
}
.section-noir .link-more { color: var(--or-clair); border-color: var(--or-clair); }

/* Maison */
.maison-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: center; }
.maison-text p { color: #d8cdb9; }
.maison-points { list-style: none; margin: 26px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.maison-points li { padding-left: 26px; position: relative; color: #e6ddcb; font-size: .95rem; }
.maison-points li::before { content: '✦'; position: absolute; left: 0; color: var(--or); }
.maison-points strong { color: var(--creme); }
.maison-medal { display: flex; justify-content: center; }
.maison-medal img { filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }

/* Galerie teaser */
.teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.teaser-item { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; }
.teaser-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.teaser-item:hover img { transform: scale(1.05); }

/* Infos */
.infos-grid { display: grid; grid-template-columns: .5fr 1fr; gap: 60px; align-items: center; }
.infos-map svg { width: 100%; max-width: 280px; }
.hours { display: flex; flex-direction: column; gap: 8px; margin: 24px 0; }
.hours > div { display: flex; justify-content: space-between; max-width: 320px; border-bottom: 1px dashed rgba(199,154,63,.3); padding-bottom: 6px; }
.hours dt { color: #cbbfa9; font-weight: 500; }
.hours dd { margin: 0; color: var(--creme); font-weight: 600; }
.infos-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Contact block */
.contact-block { background: linear-gradient(160deg, var(--noir), #100C09); color: var(--creme); padding: 100px 0; text-align: center; }
.contact-block h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-block p { max-width: 50ch; margin: 0 auto 10px; color: #d8cdb9; }
.contact-block .hero-actions { justify-content: center; }
.contact-block .kicker { color: var(--or); }

/* Footer */
.site-footer { background: var(--noir-2); color: #cbbfa9; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 30px; }
.brand-footer { margin-bottom: 14px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-contact a { text-decoration: none; color: #cbbfa9; font-size: .92rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--or-clair); }
.footer-bottom { text-align: center; font-size: .8rem; color: #7d7364; border-top: 1px solid rgba(199,154,63,.15); padding-top: 20px; margin: 0 24px; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #0b3b1e;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.06); }

/* ===== Galerie page ===== */
.gallery-hero { background: var(--noir); color: var(--creme); padding: 150px 0 60px; text-align: center; }
.gallery-hero .kicker { color: var(--or); }
.gallery-hero h1 { color: var(--creme); font-size: clamp(2rem, 4vw, 2.8rem); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 34px 0; }
.filter-chip {
  border: 1.5px solid rgba(122,35,49,.3); background: #fff; color: var(--anthracite);
  padding: .5em 1.2em; border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.filter-chip.is-active { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.filter-count { opacity: .65; font-weight: 500; }

.masonry { column-count: 4; column-gap: 16px; padding-bottom: 90px; }
.masonry-item {
  break-inside: avoid; margin-bottom: 16px; position: relative; border-radius: 14px; overflow: hidden;
  cursor: pointer; border: none; padding: 0; display: block; width: 100%;
}
.masonry-item img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  background: linear-gradient(0deg, rgba(20,15,12,.85), rgba(20,15,12,0));
  color: #fff; font-size: .82rem; text-align: left;
}

dialog.lightbox {
  margin: auto; border: none; border-radius: 16px; padding: 0; max-width: min(92vw, 1000px);
  max-height: 88vh; background: var(--noir);
}
dialog.lightbox::backdrop { background: rgba(10,8,6,.86); }
.lightbox-inner { position: relative; }
.lightbox-inner img { max-width: 100%; max-height: 80vh; width: auto; margin: 0 auto; display: block; }
.lightbox-caption { color: var(--creme); padding: 14px 20px; font-size: .92rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem;
}
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { top: 50%; left: 10px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 10px; transform: translateY(-50%); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .main-nav { gap: 16px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .occasions-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 3; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--noir); flex-direction: column; padding: 30px 24px; gap: 4px;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(199,154,63,.15); font-size: 1.05rem; }
  .burger { display: flex; }
  .header-cta { display: none; }
  .maison-grid, .infos-grid { grid-template-columns: 1fr; }
  .maison-medal { order: -1; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .masonry { column-count: 2; }
}

@media (max-width: 560px) {
  .cards-grid, .occasions-grid, .teaser-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { padding-top: 120px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .reviews-badge { max-width: calc(100% - 74px); }
}
