/* Boulangerie Chalier — direction "Épi Doré" */

:root{
  --navy: #16233d;
  --navy-deep: #0d1526;
  --gold: #c89a3c;
  --gold-light: #e4c777;
  --cream: #fbf6ea;
  --cream-card: #f8efd9;
  --burgundy: #7a2331;
  --burgundy-dark: #5c1a25;
  --ink: #241d14;
  --ink-soft: #5a5040;
  --line: rgba(36,29,20,0.12);
  --shadow: 0 20px 45px -25px rgba(22,35,61,0.35);
  --radius: 18px;
  --header-h: 84px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
section[id]{ scroll-margin-top: var(--header-h); }

body{
  margin: 0;
  font-family: 'Work Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,h4{
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--navy);
}
p{ margin: 0 0 1em; }
.container{ width: min(1160px, 92%); margin-inline: auto; }
.visually-hidden{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* gate reveal animations behind JS so the no-js site stays visible */
.js .reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible{ opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .js .reveal{ opacity: 1; transform: none; transition: none; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: .55em;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  padding: .85em 1.5em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn svg{ width: 1.15em; height: 1.15em; flex: none; }
.btn-primary{ background: var(--burgundy); color: #fff9ee; box-shadow: 0 12px 24px -12px rgba(122,35,49,.6); }
.btn-primary:hover{ background: var(--burgundy-dark); transform: translateY(-2px); }
.btn-ghost{ background: transparent; border-color: rgba(248,246,234,.55); color: inherit; }
.btn-ghost:hover{ background: rgba(248,246,234,.12); transform: translateY(-2px); }
.btn-outline{ background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover{ background: var(--navy); color: #fff9ee; transform: translateY(-2px); }
.btn-sm{ padding: .6em 1.1em; font-size: .85rem; }

/* ---------- header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251,246,234,.97);
  border-bottom: 1px solid var(--line);
}
.site-header .container{ display: flex; align-items: center; gap: 1.5rem; }
.brand{ display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.brand img{ width: 46px; height: 46px; flex: none; }
.brand-word{ font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem; color: var(--navy); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand-word small{ display: block; font-family: 'Work Sans', sans-serif; font-weight: 500; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

.main-nav{ display: flex; gap: 1.6rem; margin-inline: auto; }
.main-nav a{
  font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--ink);
  white-space: nowrap; position: relative; padding: .2em 0;
}
.main-nav a::after{
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px;
  background: var(--gold); transition: right .25s ease;
}
.main-nav a:hover::after{ right: 0; }

.header-actions{ display: flex; align-items: center; gap: .9rem; flex: none; }
.lang-switch{ display: flex; gap: .3rem; font-size: .82rem; font-weight: 600; }
.lang-switch a{ padding: .25em .5em; border-radius: 6px; text-decoration: none; color: var(--ink-soft); }
.lang-switch a[aria-current="true"]{ color: var(--navy); background: var(--cream-card); }

.burger{
  display: none; flex: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: none; cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after{
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy);
  transition: transform .25s ease, opacity .25s ease;
}
.burger span{ top: 50%; transform: translateY(-50%); }
.burger span::before{ top: -8px; }
.burger span::after{ top: 8px; }
.burger[aria-expanded="true"] span{ background: transparent; }
.burger[aria-expanded="true"] span::before{ top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after{ top: 0; transform: rotate(-45deg); }

@media (max-width: 900px){
  .main-nav{
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 2rem 8%; gap: 1.4rem; font-size: 1.05rem;
    transform: translateX(100%); transition: transform .3s ease;
  }
  .main-nav.is-open{ transform: translateX(0); }
  .burger{ display: block; }
  .header-actions .btn-primary span.btn-label-long{ display: none; }
}

@media (max-width: 640px){
  .site-header .container{ gap: .6rem; }
  .brand-word small{ display: none; }
  .header-actions .btn-primary{ display: none; }
}

/* ---------- hero ---------- */
.hero{
  position: relative; background: var(--navy); color: #fbf6ea;
  padding: 3.2rem 0 5rem; overflow: hidden;
}
.hero::before{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1100px 500px at 85% -10%, rgba(200,154,60,.28), transparent 60%);
  pointer-events: none;
}
.hero .container{
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 3rem; align-items: center;
}
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-light); border: 1px solid rgba(228,199,119,.4);
  padding: .45em 1em; border-radius: 999px; margin-bottom: 1.2em;
}
.hero h1{ color: #fff9ee; font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: .4em; }
.hero h1 em{ font-style: italic; color: var(--gold-light); }
.hero-lead{ color: rgba(251,246,234,.86); font-size: 1.08rem; max-width: 46ch; }
.rating-badge{
  display: inline-flex; align-items: center; gap: .6em;
  background: rgba(251,246,234,.08); border: 1px solid rgba(228,199,119,.35);
  padding: .6em 1.1em; border-radius: 999px; text-decoration: none; color: #fff9ee;
  margin: .6em 0 1.6em; font-weight: 600; font-size: .92rem;
}
.rating-badge .stars{ color: var(--gold-light); letter-spacing: .05em; }
.hero-ctas{ display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-visual{ position: relative; }
.hero-visual .frame{
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 6px solid rgba(251,246,234,.08);
  aspect-ratio: 4/5;
}
.hero-visual img{ width: 100%; height: 100%; object-fit: cover; }
.hero-visual .wheat-deco{ position: absolute; width: 90px; opacity: .8; }
.hero-visual .wheat-deco.a{ top: -28px; left: -30px; transform: rotate(-18deg); }
.hero-visual .wheat-deco.b{ bottom: -24px; right: -26px; transform: rotate(160deg) scaleX(-1); }

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 380px; margin-inline: auto; }
}

/* ---------- divider ---------- */
.wheat-divider{ display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 auto 2.6rem; }
.wheat-divider::before, .wheat-divider::after{ content:""; height: 1px; width: 64px; background: var(--line); }
.wheat-divider svg{ width: 26px; height: 26px; color: var(--gold); }

.section{ padding: 5.5rem 0; }
.section-head{ text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.section-eyebrow{ font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--burgundy); }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p{ color: var(--ink-soft); }
.section-alt{ background: var(--cream-card); }

/* ---------- specialties ---------- */
.specialty-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.specialty-card{
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.specialty-card.is-highlight{ background: var(--navy); color: #fbf6ea; border-color: var(--navy); }
.specialty-card.is-highlight h3{ color: #fff9ee; }
.specialty-card .badge{
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 700;
  padding: .3em .9em; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}
.specialty-card .icon{ width: 54px; height: 54px; margin: 0 auto 1em; color: var(--burgundy); }
.specialty-card.is-highlight .icon{ color: var(--gold-light); }
.specialty-card h3{ font-size: 1.15rem; margin-bottom: .35em; }
.specialty-card p{ font-size: .92rem; color: var(--ink-soft); margin: 0; }
.specialty-card.is-highlight p{ color: rgba(251,246,234,.8); }

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

/* ---------- why us ---------- */
.why-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.why-item{ text-align: center; }
.why-item .icon{ width: 44px; height: 44px; margin: 0 auto .8em; color: var(--gold); }
.why-item h3{ font-size: 1.02rem; margin-bottom: .3em; }
.why-item p{ font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 900px){ .why-grid{ grid-template-columns: repeat(2, 1fr); } }

/* ---------- reviews ---------- */
.review-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review-card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .7rem;
}
.review-stars{ color: var(--gold); letter-spacing: .05em; font-size: .95rem; }
.review-card p{ margin: 0; font-size: .93rem; color: var(--ink); flex: 1; }
.review-meta{ display: flex; align-items: center; justify-content: space-between; font-size: .82rem; color: var(--ink-soft); }
.review-meta .g-badge{
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .68rem;
}
.reviews-more{ text-align: center; margin-top: 2rem; }
@media (max-width: 900px){ .review-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .review-grid{ grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery-grid{ columns: 3 220px; column-gap: 1.1rem; }
.gallery-item{
  break-inside: avoid; margin-bottom: 1.1rem; position: relative; border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; border: none; padding: 0; display: block; width: 100%;
  background: none;
}
.gallery-item img{ width: 100%; height: auto; display: block; transition: transform .5s ease; }
.gallery-item:hover img{ transform: scale(1.04); }
.gallery-cap{
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4em .9em .7em;
  background: linear-gradient(to top, rgba(13,21,38,.86), transparent);
  color: #fff9ee; font-size: .82rem; font-weight: 500; text-align: left;
}
@media (max-width: 700px){ .gallery-grid{ columns: 2 160px; } }

dialog.lightbox{ border: none; border-radius: 16px; padding: 0; max-width: min(90vw, 900px); max-height: 86vh; background: var(--navy); margin: auto; }
dialog.lightbox::backdrop{ background: rgba(13,21,38,.82); }
.lightbox-inner{ position: relative; }
.lightbox-inner img{ max-height: 80vh; width: auto; max-width: 100%; margin: auto; display: block; }
.lightbox-cap{ color: #fbf6ea; font-size: .9rem; padding: .9em 1.2em; }
.lightbox-close{
  position: absolute; top: .6em; right: .6em; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(13,21,38,.55); color: #fff9ee; border: 1px solid rgba(251,246,234,.4);
  font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.lightbox-nav{
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(13,21,38,.55);
  border: 1px solid rgba(251,246,234,.4); color: #fff9ee; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 1.3rem; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.lightbox-close:hover, .lightbox-nav:hover{ background: rgba(13,21,38,.8); }
.lightbox-nav.prev{ left: .6em; } .lightbox-nav.next{ right: .6em; }

/* ---------- find us ---------- */
.find-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.map-rings{ width: 100%; max-width: 420px; margin-inline: auto; }
.find-info h3{ margin-top: 0; }
.hours-table{ width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .93rem; }
.hours-table td{ padding: .35em 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child{ text-align: right; color: var(--ink-soft); }
.find-address{ font-size: .98rem; margin-bottom: 1.4em; }
@media (max-width: 900px){ .find-grid{ grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact{ background: var(--navy-deep); color: #fbf6ea; }
.contact-grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.contact h2{ color: #fff9ee; }
.contact-lead{ color: rgba(251,246,234,.8); max-width: 42ch; }
.contact-list{ list-style: none; margin: 1.6em 0; padding: 0; display: flex; flex-direction: column; gap: 1em; }
.contact-list li{ display: flex; align-items: center; gap: .8em; font-size: .98rem; }
.contact-list a{ text-decoration: none; color: #fff9ee; font-weight: 600; }
.contact-list .icon{ width: 22px; height: 22px; flex: none; color: var(--gold-light); }
.contact-ctas{ display: flex; flex-wrap: wrap; gap: .9rem; }
.contact-card{
  background: rgba(251,246,234,.06); border: 1px solid rgba(228,199,119,.25);
  border-radius: var(--radius); padding: 1.8rem;
}
.contact-card .stars{ color: var(--gold-light); }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer{ background: var(--navy-deep); color: rgba(251,246,234,.75); padding: 2.6rem 0 1.6rem; border-top: 1px solid rgba(228,199,119,.15); }
.footer-top{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.footer-brand{ display: flex; align-items: center; gap: .7em; }
.footer-brand img{ width: 40px; height: 40px; }
.footer-brand span{ font-family: 'Fraunces', serif; color: #fff9ee; font-size: 1.05rem; }
.footer-nav{ display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a{ text-decoration: none; color: rgba(251,246,234,.75); font-size: .9rem; }
.footer-social a{ display: inline-flex; align-items: center; gap: .5em; text-decoration: none; color: rgba(251,246,234,.75); font-size: .9rem; }
.footer-social svg{ width: 20px; height: 20px; }
.footer-bottom{ border-top: 1px solid rgba(228,199,119,.15); padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: rgba(251,246,234,.5); }
.footer-bottom a{ color: rgba(251,246,234,.7); text-decoration: underline; }

/* ---------- whatsapp float ---------- */
.wa-float{
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4);
  text-decoration: none; transition: transform .2s ease;
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float svg{ width: 30px; height: 30px; color: #fff; }
