/* ========================================================================
   BRASSERIE-SECTION.CSS — Section Brasserie / Carrousel
   ========================================================================
   
   Purpose: Styles la section Brasserie avec carrousel dynamique et
            boutons CTA.
   
   Structure:
   - .brasserie-section: Full-height conteneur principal
   - .brasserie__content: Texte et boutons
   - .brasserie__carousel: Carrousel horizontal d'images
   - .brasserie__slide: Slides individuels
   
   Variables CSS utilisées:
   - #fff (blanc): Fond section
   - var(--color-dark-grey) (noir): Texte
   
   ========================================================================== */

/* Section brasserie (titre, boutons, carrousel) */
.brasserie-section {
  width: 100%;
  min-height: 100vh;
  background: #fff;
  color: var(--color-dark-grey);
  padding: clamp(24px, 4vw, 48px) 0 0 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.brasserie-section__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
  padding: 0 clamp(16px, 3vw, 48px);
}
.brasserie-section__kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 10px;
  color: var(--color-accent-gold-alt);
}
.brasserie-section__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 200;
  line-height: 1.05;
  margin: 0 0 18px 0;
  color: var(--color-dark-grey);
}
.brasserie-section__title span {
  color: var(--color-accent-gold-alt);
}
.brasserie-section__desc {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 600px;
  color: #222;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.brasserie-section__actions {
  display: flex;
  gap: 18px;
  margin-bottom: 38px;
  justify-content: center;
}
.btn--tsa {
  background: transparent;
  border: 2px solid var(--color-accent-gold-alt);
  color: var(--color-dark-grey);
  font-weight: 600;
  transition:
    background 0.18s,
    color 0.18s;
}
.btn--tsa:hover {
  background: var(--color-accent-gold-alt);
  color: #fff;
}

/* Carrousel */
.brasserie-carousel {
  width: 100%;
  overflow: hidden;
  margin-top: 18px;
  position: relative;
  padding-bottom: 48px;
}
.brasserie-carousel__track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: brasserie-scroll 24s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}
.brasserie-carousel--js .brasserie-carousel__track {
  animation: none !important;
}
.brasserie-carousel__img {
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  background: #eee;
  transition:
    height 0.3s,
    width 0.3s;
  backface-visibility: hidden;
  will-change: transform;
}
.brasserie-carousel__img--sm {
  height: 36vw;
  min-height: 240px;
  max-height: 380px;
  width: 36vw;
  min-width: 240px;
  max-width: 380px;
}
.brasserie-carousel__img--md {
  height: 42vw;
  min-height: 320px;
  max-height: 520px;
  width: 42vw;
  min-width: 320px;
  max-width: 520px;
}
.brasserie-carousel__img--lg {
  height: 46vw;
  min-height: 360px;
  max-height: 580px;
  width: 46vw;
  min-width: 360px;
  max-width: 580px;
}
@keyframes brasserie-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.3333%, 0, 0);
  }
}

@media (max-width: 900px) {
  .brasserie-section__title {
    font-size: 2rem;
  }

  .brasserie-carousel__img--sm {
    height: 50vw;
    min-height: 180px;
    max-height: 300px;
    width: 50vw;
    min-width: 180px;
    max-width: 300px;
  }
  .brasserie-carousel__img--md {
    height: 62vw;
    min-height: 260px;
    max-height: 420px;
    width: 62vw;
    min-width: 260px;
    max-width: 420px;
  }
  .brasserie-carousel__img--lg {
    height: 66vw;
    min-height: 240px;
    max-height: 420px;
    width: 66vw;
    min-width: 240px;
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .brasserie-section__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    width: 100%;
  }

  .brasserie-section__actions .btn {
    width: calc(100% - 40px);
    max-width: 280px;
    padding: 12px 20px;
    font-size: 13px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .brasserie-section__inner {
    padding: 0 16px;
  }

  .brasserie-section__desc {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .brasserie-section__actions {
    padding: 0 20px;
    margin-bottom: 32px;
  }

  .brasserie-section__actions .btn {
    width: calc(100% - 40px);
    max-width: 280px;
    padding: 11px 18px;
    font-size: 13px;
    height: 42px;
  }

  .brasserie-carousel__img--sm {
    height: 120vw;
    min-height: 280px;
    max-height: 450px;
    width: 120vw;
    min-width: 280px;
    max-width: 450px;
  }
  .brasserie-carousel__img--md {
    height: 140vw;
    min-height: 320px;
    max-height: 520px;
    width: 140vw;
    min-width: 320px;
    max-width: 520px;
  }
  .brasserie-carousel__img--lg {
    height: 150vw;
    min-height: 340px;
    max-height: 560px;
    width: 150vw;
    min-width: 340px;
    max-width: 560px;
  }
  .brasserie-carousel__track {
    gap: 14px;
  }

  .brasserie-carousel {
    margin-top: 24px;
    padding-bottom: 32px;
  }
}

@media (max-width: 400px) {
  .brasserie-section__actions {
    padding: 0 16px;
  }

  .brasserie-section__actions .btn {
    width: calc(100% - 32px);
    max-width: 160px;
    font-size: 12px;
    height: 40px;
    padding: 10px 16px;
  }
}

.gallery-marquee {
  overflow: hidden;
  padding: 4rem 0;
  background: #fff;
  cursor: grab;
  user-select: none;
}

.gallery-marquee.is-dragging {
  cursor: grabbing;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: fit-content;
  will-change: transform;
}

.marquee-track.is-animating {
  animation: scroll 40s linear infinite;
}

.marquee-content {
  display: flex;
  gap: 1.5rem;
}

.gallery-item {
  flex-shrink: 0;
  width: 400px;
  height: 600px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .gallery-item {
    width: 280px;
    height: 420px;
  }

  .gallery-marquee {
    padding: 2rem 0;
  }
}
