/* L'Atelier Gourmet — site statique
   Reconstruction propre du site WordPress existant
   Palette : fond sombre #272a35, accent doré #c9b78a, texte clair sur sombre / sombre sur clair */

:root {
  --bg-dark:    #272a35;
  --bg-dark-2:  #1f222b;
  --bg-light:   #ffffff;
  --bg-soft:    #fafaf7;
  --text:       #2b2b2b;
  --text-muted: #6f6f6f;
  --text-light: #e8e8e2;
  --gold:       #c9b78a;
  --gold-dark:  #b39e6e;
  --border:     #e5e2d8;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --radius:     6px;
  --maxw:       1140px;
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans:  "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--font-sans); font-weight: 300; margin: 0; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--bg-dark);
  padding: clamp(40px, 8vh, 120px) 20px clamp(60px, 10vh, 140px);
  text-align: center;
  overflow: hidden;
}
.hero__inner {
  max-width: 980px;
  margin: 0 auto;
}
.hero__banner {
  width: 100%;
  max-width: 920px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}
.hero__scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: .8;
  animation: bounce 2.4s ease-in-out infinite;
}
.hero__scroll:hover { opacity: 1; color: var(--gold); }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ============ ANCHORS NAV ============ */
.anchors {
  background: var(--bg-dark);
  padding: 50px 20px 70px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.anchors__home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 740px;
  margin: 0 auto 36px;
  color: var(--bg-light);
}
.anchors__line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.4);
}
.anchors__icon { color: var(--bg-light); }
.anchors__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.anchor-btn {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .02em;
  padding: 14px 26px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--bg-dark);
  border: 1px solid var(--gold);
  transition: background .2s, color .2s, transform .2s;
}
.anchor-btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--bg-light);
  transform: translateY(-1px);
}
.anchor-btn--accent {
  background: var(--bg-light);
  color: var(--bg-dark);
}
.anchor-btn--accent:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

/* ============ SECTIONS ============ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) 24px;
}
.section__head {
  text-align: center;
  margin-bottom: 40px;
}
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: .12em;
  color: var(--text);
  margin-bottom: 16px;
}
.section__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 400;
  color: var(--gold-dark);
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.4;
}
.section__body {
  max-width: 820px;
  margin: 0 auto 56px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}
.section__body p {
  margin: 0 0 18px;
}
.section__hero {
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.section__hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 620px;
}

/* ============ THUMB GRID ============ */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.thumb {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0eee5;
  aspect-ratio: 5 / 4;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.thumb:hover img { transform: scale(1.04); }

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

/* ============ DIVIDER ============ */
.divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 80%;
  margin: 0 auto;
}

/* ============ CAROUSEL ============ */
.carousel {
  position: relative;
  margin: 40px -20px 0;
  padding: 0 60px;
}
.carousel__track {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.carousel__track::-webkit-scrollbar { height: 8px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.carousel__track::-webkit-scrollbar-track { background: transparent; }

.carousel__slide {
  flex: 0 0 auto;
  width: clamp(260px, 32vw, 380px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f0eee5;
  aspect-ratio: 1 / 1;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--bg-dark);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: background .2s, color .2s;
}
.carousel__btn:hover { background: var(--gold); color: var(--bg-dark); }
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }

@media (max-width: 720px) {
  .carousel { padding: 0 12px; margin: 32px -8px 0; }
  .carousel__btn { width: 36px; height: 36px; }
  .carousel__btn--prev { left: 4px; }
  .carousel__btn--next { right: 4px; }
}

/* ============ CTA ============ */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 56px auto 0;
  max-width: 720px;
}
.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: 1px solid transparent;
}
.cta__btn--phone {
  background: var(--gold);
  color: var(--bg-dark);
}
.cta__btn--phone:hover {
  background: var(--gold-dark);
  color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.cta__btn--mail {
  background: var(--bg-dark);
  color: var(--bg-light);
}
.cta__btn--mail:hover {
  background: var(--bg-dark-2);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 60px 20px;
  margin-top: 60px;
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-footer__brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--gold);
  margin: 0 0 8px;
}
.site-footer__sub {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
  margin: 0 0 28px;
}
.site-footer__contact {
  font-size: 15px;
  margin: 0 0 14px;
}
.site-footer__contact a {
  color: var(--text-light);
}
.site-footer__contact a:hover { color: var(--gold); }
.site-footer__contact span { margin: 0 12px; color: var(--gold); }
.site-footer__back, .site-footer__legal {
  font-size: 13px;
  margin: 14px 0 0;
}
.site-footer__back a, .site-footer__legal a {
  color: var(--text-light);
  opacity: .7;
}
.site-footer__back a:hover, .site-footer__legal a:hover {
  color: var(--gold);
  opacity: 1;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
