/* ===== Le Relais du Pain — Design System ===== */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/playfair-display.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/cormorant-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cormorant-italic-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/jost-regular.woff2') format('woff2');
}

:root {
  --burgundy-dark: #4a1420;
  --burgundy: #6d1b2a;
  --burgundy-light: #8c2c3b;
  --gold: #c8a45c;
  --gold-light: #e3c98a;
  --cream: #faf5ea;
  --cream-dark: #f0e6d2;
  --ink: #2b1c14;
  --ink-soft: #55483d;
  --white: #ffffff;

  --font-display: 'Playfair Display', serif;
  --font-accent: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --shadow-soft: 0 20px 50px -20px rgba(43, 28, 20, 0.35);
  --shadow-card: 0 10px 30px -12px rgba(43, 28, 20, 0.25);
}

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

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

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

h1, h2, h3 { font-family: var(--font-display); color: var(--burgundy-dark); margin: 0 0 .5em; line-height: 1.15; }

a { color: inherit; text-decoration: none; }

.section { padding: 6.5rem 1.5rem; }
.section-inner { max-width: 1160px; margin: 0 auto; }

.eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  letter-spacing: .06em;
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: .5rem;
}
.eyebrow.center, .center { text-align: center; }

.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 640px; line-height: 1.7; }
.lead.center { margin-left: auto; margin-right: auto; }

/* ===== Top utility bar ===== */
.topbar {
  background: var(--burgundy-dark);
  color: var(--cream-dark);
  font-size: .82rem;
  letter-spacing: .02em;
}
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: .5rem 1.5rem;
  display: flex;
  gap: .6rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.topbar a { color: var(--gold-light); }
.topbar-sep { opacity: .5; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 234, 0.98);
  border-bottom: 1px solid rgba(109, 27, 42, 0.12);
}
.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--burgundy-dark);
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-mark { color: var(--gold); font-size: 1.3rem; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: .92rem;
  letter-spacing: .03em;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--burgundy);
  color: var(--white) !important;
  padding: .55rem 1.2rem;
  border-radius: 2px;
  transition: background .25s ease;
}
.nav-cta:hover { background: var(--burgundy-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--burgundy-dark); display: block; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(74,20,32,.88) 0%, rgba(74,20,32,.55) 55%, rgba(74,20,32,.75) 100%),
    url('../images/hero.jpg') center/cover no-repeat,
    linear-gradient(160deg, #4a1420 0%, #6d1b2a 60%, #3a0f19 100%);
  color: var(--cream);
}
.hero-content { position: relative; z-index: 2; padding: 2rem 1.5rem; max-width: 780px; }
.hero-kicker {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: .8rem;
  letter-spacing: .03em;
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: .3em;
  letter-spacing: .01em;
}
.hero-tagline {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  color: var(--cream-dark);
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: .95rem 2.1rem;
  font-size: .92rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all .25s ease;
}
.btn-primary { background: var(--gold); color: var(--burgundy-dark); font-weight: 600; }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { border-color: rgba(250,245,234,.6); color: var(--cream); }
.btn-outline:hover { background: rgba(250,245,234,.12); }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(250,245,234,.6); border-radius: 20px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--gold-light); border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 8px; }
}

/* ===== Marquee ribbon ===== */
.marquee {
  background: var(--gold);
  color: var(--burgundy-dark);
  overflow: hidden;
  white-space: nowrap;
  padding: .8rem 0;
}
.marquee-track {
  display: inline-flex;
  gap: 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
}
.marquee-track span { flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Two column sections ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse .col-media { order: 2; }
.two-col.reverse .col-text { order: 1; }

.frame-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  background: var(--cream-dark);
}
.frame-photo img { width: 100%; height: 100%; object-fit: cover; }
.frame-photo::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(200,164,92,.5);
  outline: 1px solid rgba(200,164,92,.5);
  outline-offset: -12px;
  pointer-events: none;
}
.histoire { background: var(--white); }

/* ===== Produits ===== */
.produits { background: var(--cream); }
.product-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.product-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.product-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-dark); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-photo img { transform: scale(1.06); }
.product-photo-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--cream-dark), var(--gold-light));
}
.product-card h3 { font-size: 1.2rem; margin: 1.2rem 1.2rem .4rem; }
.product-card p { font-size: .92rem; color: var(--ink-soft); margin: 0 1.2rem 1.4rem; line-height: 1.6; }

/* ===== Avis ===== */
.avis { background: var(--burgundy-dark); color: var(--cream); }
.avis h2 { color: var(--cream); }
.avis .lead { color: var(--cream-dark); }
.google-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  flex-wrap: wrap;
  margin: .6rem 0 1.2rem;
}
.google-rating-stars {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  letter-spacing: .2rem;
  line-height: 1;
}
.stars-bg, .stars-fg {
  display: block;
  white-space: nowrap;
}
.stars-bg { color: rgba(250,245,234,.18); }
.stars-fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: var(--fill, 100%);
  color: var(--gold);
  text-shadow: 0 0 10px rgba(232,197,138,.6);
  animation: starTwinkle 3.2s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { text-shadow: 0 0 10px rgba(232,197,138,.5); }
  50% { text-shadow: 0 0 18px rgba(232,197,138,1); }
}
.google-rating-score {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: 2rem;
  color: var(--gold-light);
}
.google-rating-max { font-size: 1.15rem; font-style: normal; color: var(--cream-dark); font-weight: 400; margin-left: .1rem; }
.google-rating-cta {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--gold-light);
  border: 1px solid rgba(232,197,138,.55);
  padding: .55rem 1.2rem;
  border-radius: 999px;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.google-rating-cta:hover {
  background: var(--gold);
  color: var(--burgundy-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.testimonial-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.testimonial {
  position: relative;
  margin: 0;
  background: rgba(250,245,234,.06);
  border: 1px solid rgba(200,164,92,.25);
  border-radius: 4px;
  padding: 1.8rem;
  overflow: hidden;
  cursor: default;
  transition: transform .5s cubic-bezier(.22,.85,.3,1), box-shadow .5s ease, background .5s ease, border-color .5s ease;
}
.testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,197,138,0) 30%, rgba(232,197,138,.14) 50%, rgba(232,197,138,0) 70%);
  transform: translateX(-120%);
  transition: transform .9s ease;
  pointer-events: none;
}
.testimonial:hover::before { transform: translateX(120%); }
.testimonial:hover {
  transform: translateY(-10px) scale(1.035);
  background: rgba(250,245,234,.1);
  border-color: var(--gold);
  box-shadow: 0 30px 60px -22px rgba(0,0,0,.45), 0 0 0 1px rgba(232,197,138,.35), 0 0 40px -10px rgba(232,197,138,.35);
  z-index: 2;
}
.testimonial-grid:hover .testimonial:not(:hover) {
  opacity: .55;
  transform: scale(.97);
  filter: saturate(.7);
}
.testimonial-stars {
  margin: 0 0 .9rem;
  letter-spacing: .35rem;
  font-size: 1.2rem;
}
.testimonial-stars span {
  display: inline-block;
  color: var(--gold);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), color .45s ease, text-shadow .45s ease;
}
.testimonial:hover .testimonial-stars span {
  color: var(--gold-light);
  text-shadow: 0 0 14px rgba(232,197,138,.9), 0 0 2px rgba(255,255,255,.6);
  transform: translateY(-4px) scale(1.3);
}
.testimonial:hover .testimonial-stars span:nth-child(1) { transition-delay: 0s; }
.testimonial:hover .testimonial-stars span:nth-child(2) { transition-delay: .06s; }
.testimonial:hover .testimonial-stars span:nth-child(3) { transition-delay: .12s; }
.testimonial:hover .testimonial-stars span:nth-child(4) { transition-delay: .18s; }
.testimonial:hover .testimonial-stars span:nth-child(5) { transition-delay: .24s; }
.testimonial p {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 1rem;
  color: var(--cream);
  transition: color .45s ease;
}
.testimonial:hover p { color: var(--white); }
.testimonial footer {
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: letter-spacing .45s ease, color .45s ease;
}
.testimonial:hover footer {
  color: var(--gold-light);
  letter-spacing: .08em;
}

/* ===== Horaires ===== */
.horaires {
  position: relative;
  overflow: hidden;
  background: var(--burgundy-dark);
}
.horaires-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  filter: blur(4px) brightness(.85) saturate(1.05);
}
.horaires-bg-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.25);
  filter: blur(26px) brightness(.8) saturate(1.05);
  mask-image: linear-gradient(180deg, black 0%, black 12%, transparent 50%, transparent 88%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 12%, transparent 50%, transparent 88%, black 100%);
}
.horaires-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--burgundy-dark) 0%,
    rgba(20,13,12,.28) 22%,
    rgba(20,13,12,.28) 78%,
    var(--burgundy-dark) 100%);
}
.horaires-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.horaires .eyebrow { color: var(--gold-light); }
.horaires h2 { color: var(--cream); }
.horaires .ornament {
  color: var(--gold);
  font-size: 1.1rem;
  margin: .2rem 0 1.8rem;
  letter-spacing: .3rem;
}

.hours-status {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: rgba(250,245,234,.08);
  border: 1px solid rgba(232,197,138,.4);
  padding: .55rem 1.2rem;
  border-radius: 999px;
  margin-bottom: 2.4rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--cream-dark);
}
.hours-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6fbf83;
  box-shadow: 0 0 0 0 rgba(111,191,131,.55);
  animation: hoursPulse 2.2s ease-out infinite;
  flex-shrink: 0;
}
.hours-status.is-closed .hours-status-dot {
  background: #d98b89;
  animation: none;
}
@keyframes hoursPulse {
  0%   { box-shadow: 0 0 0 0 rgba(111,191,131,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(111,191,131,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,191,131,0); }
}

.hours-card {
  background: var(--cream);
  border: 1px solid rgba(232,197,138,.55);
  border-radius: 6px;
  padding: 2.4rem 2.6rem 1.6rem;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(232,197,138,.12);
}

.hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
.hours-list li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .85rem .2rem;
  border-bottom: 1px solid var(--cream-dark);
  transition: background .3s ease, padding-left .3s ease;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list li::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleY(0);
  transition: transform .3s ease;
}
.hours-list li:hover {
  background: rgba(200, 164, 92, .08);
  padding-left: .55rem;
}
.hours-list li:hover::before { transform: scaleY(1); }

.hours-day {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--burgundy);
  font-size: 1.08rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
}
.hours-dots {
  flex: 1;
  border-bottom: 1.5px dotted rgba(140,44,59,.3);
  transform: translateY(-5px);
}
.hours-time {
  color: var(--ink-soft);
  font-size: .98rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hours-list li.closed .hours-time { color: var(--burgundy-light); font-style: italic; }

.hours-list li.today { background: linear-gradient(90deg, rgba(200,164,92,.14), transparent 80%); }
.hours-list li.today .hours-day { color: var(--burgundy-dark); }
.hours-list li.today::before { transform: scaleY(1); }

.today-badge {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: .2rem .55rem;
  border-radius: 999px;
}

.horaires .note {
  margin-top: 1.8rem;
  font-size: .92rem;
  color: var(--cream-dark);
  font-style: italic;
}

/* ===== Contact ===== */
.contact { background: var(--cream); }
.contact-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.contact-card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  border-radius: 2px;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.contact-card p { color: var(--ink-soft); line-height: 1.6; margin: 0 0 1rem; }
.link-arrow { color: var(--burgundy); font-weight: 600; font-size: .9rem; }
.link-arrow:hover { color: var(--gold); }

.map-frame {
  margin-top: 3rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  line-height: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--burgundy-dark);
  color: var(--cream-dark);
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: flex;
  gap: .6rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--cream);
}
.footer-brand .brand-mark { color: var(--gold); }
.site-footer p { margin: .3rem 0; font-size: .9rem; opacity: .85; }
.footer-copy { font-size: .8rem; opacity: .6; margin-top: 1rem; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse .col-media { order: 1; }
  .two-col.reverse .col-text { order: 2; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(109,27,42,.12);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .4rem 0; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
  .topbar-inner { font-size: .74rem; }
  .section { padding: 4.5rem 1.2rem; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3rem; }
}
