/* Montet Traiteur — one page */

:root {
  --color-bg: #faf8f4;
  --color-bg-dark: #1a1814;
  --color-text: #2c2820;
  --color-muted: #5c564a;
  --color-accent: #8b6914;
  --color-accent-light: #c9a227;
  --color-white: #fff;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 4.25rem;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(26, 24, 20, 0.12);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

main > section {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.container.narrow {
  width: min(720px, 92vw);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 40, 32, 0.08);
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--color-accent);
  font-weight: 700;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.nav-cta {
  padding: 0.5rem 1.1rem;
  background: var(--color-bg-dark);
  color: var(--color-white) !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--color-accent);
  color: var(--color-white) !important;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.25rem 4vw 1.5rem;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(44, 40, 32, 0.08);
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Hero + parallax */
.parallax-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 4vw 4rem;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  /* Marge large pour que le translateY du parallaxe ne découvre pas les bords */
  inset: -18%;
  z-index: 0;
  will-change: transform;
}

.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.parallax-band {
  position: relative;
  height: min(42vh, 380px);
  overflow: hidden;
}

.parallax-bg--mid {
  inset: -22%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(26, 24, 20, 0.55) 0%,
    rgba(26, 24, 20, 0.35) 45%,
    rgba(26, 24, 20, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 42rem;
  color: var(--color-white);
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 1rem;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: 1.15rem;
  font-weight: 300;
  opacity: 0.95;
  margin: 0 0 2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--color-accent-light);
  color: var(--color-bg-dark);
  border-color: var(--color-accent-light);
}

.btn-primary:hover {
  background: #ddb82e;
  border-color: #ddb82e;
  text-decoration: none;
  color: var(--color-bg-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: var(--color-white);
}

.btn-block {
  width: 100%;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  animation: bounce 2.2s ease-in-out infinite;
}

.scroll-hint:hover {
  color: var(--color-white);
  text-decoration: none;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint {
    animation: none;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-bg-dark);
}

.section-title.centered {
  text-align: center;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin: 0 0 1.5rem;
}

.section-lead.centered {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.section-intro p {
  margin: 0 0 1rem;
}

.section-intro p:last-child {
  margin-bottom: 0;
}

/* Image crop utilities */
.img-crop {
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e4dc;
}

.img-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.service-card:hover .img-crop img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .service-card:hover .img-crop img {
    transform: none;
  }
}

.img-crop--card {
  aspect-ratio: 4 / 3;
}

.img-crop--carousel {
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.img-crop--mosaic {
  aspect-ratio: 1;
  min-height: 160px;
}

/* Services grid */
.services-grid {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--color-white);
  padding: 0 0 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(26, 24, 20, 0.06);
  overflow: hidden;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 1.25rem 1.25rem 0.5rem;
  color: var(--color-bg-dark);
}

.service-card p {
  margin: 0 1.25rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarifs plateaux */
.section-tarifs {
  background: linear-gradient(180deg, var(--color-bg) 0%, #f2ede4 50%, var(--color-bg) 100%);
}

.tarifs-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.tarif-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 4px 24px rgba(26, 24, 20, 0.07);
  border: 1px solid rgba(44, 40, 32, 0.06);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.tarif-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-bg-dark);
  line-height: 1.25;
}

.tarif-card__meta {
  margin: 0 0 auto;
  font-size: 0.88rem;
  color: var(--color-muted);
  flex-grow: 1;
}

.tarif-card__price {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-accent);
}

.tarif-card__amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-bg-dark);
}

.tarifs-choices {
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(26, 24, 20, 0.06);
  border: 1px solid rgba(44, 40, 32, 0.06);
}

.tarifs-choices__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-bg-dark);
  text-align: center;
}

.tarifs-choices__note {
  text-align: center;
  font-size: 0.92rem;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.tarifs-choices__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.tarifs-choices__list li {
  position: relative;
  padding-left: 1.1rem;
}

.tarifs-choices__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent-light);
}

.tarifs-footnote {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 2rem 0 0;
  font-style: italic;
}

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

@media (max-width: 520px) {
  .tarifs-grid {
    grid-template-columns: 1fr;
  }

  .tarifs-choices__list {
    grid-template-columns: 1fr;
  }
}

/* Carousel */
.carousel {
  position: relative;
  margin: 2.5rem 0 3rem;
  padding: 0 3rem;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  transition: transform 0.55s var(--transition);
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-slide figure {
  margin: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg-dark);
  color: var(--color-white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  transition: opacity var(--transition), background var(--transition);
}

.carousel-btn:hover {
  opacity: 1;
  background: var(--color-accent);
}

.carousel-btn--prev {
  left: 0;
}

.carousel-btn--next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #c4bdb0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot[aria-selected="true"] {
  background: var(--color-accent);
  transform: scale(1.15);
}

@media (max-width: 600px) {
  .carousel {
    padding: 0 2.5rem;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
  }
}

/* Mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

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

/* Contact */
.section-contact {
  background: linear-gradient(180deg, #f0ebe3 0%, var(--color-bg) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info address {
  font-style: normal;
  margin-top: 1.5rem;
  line-height: 1.8;
}

.contact-info a {
  font-weight: 500;
}

.contact-form {
  background: var(--color-white);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--color-bg-dark);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #c9c2b4;
  border-radius: var(--radius);
  background: var(--color-bg);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.15);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: #a63d2d;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 4vw;
  text-align: center;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--color-accent-light);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 0.5rem;
}

.footer-inner p {
  margin: 0.35rem 0;
}

.footer-copy {
  margin-top: 1.25rem !important;
  font-size: 0.85rem;
  opacity: 0.65;
}
