/* ========================================================================
   FORMAT.CSS — Page Formats
   ========================================================================
   
   Purpose: Styles pour la page des formats avec section héro centrée
            et carrousel d'images des formats disponibles
   
   ========================================================================== */

/* ===================== FORMAT HERO SECTION ===================== */

.format-hero {
  background: #171614;
  color: #fff;
  padding: clamp(80px, 15vw, 160px) clamp(16px, 3vw, 48px);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.format-hero__inner {
  max-width: 900px;
  margin: 0 auto;
}

.format-hero__kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-gold);

  margin-bottom: 16px;
}

.format-hero__title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 200;
  line-height: 1.1;
  margin: 0 0 24px 0;
  color: #fff;
}

.format-hero__title span {
  color: var(--color-accent-gold);
}

.format-hero__subtitle {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.6;
  margin: 0 0 40px 0;
  color: var(--color-grey-border);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.format-hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== FORMAT CAROUSEL ===================== */

.format-carousel {
  width: 100%;
  background: var(--color-dark-alt);
  padding: clamp(40px, 5vw, 60px) clamp(16px, 3vw, 48px);
  overflow: hidden;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: carousel-scroll 25s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.carousel__img {
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #f0f0f0;
  flex-shrink: 0;
  backface-visibility: hidden;
  will-change: transform;
}

.carousel__img--sm {
  height: 40vw;
  min-height: 280px;
  max-height: 420px;
  width: 40vw;
  min-width: 280px;
  max-width: 420px;
}

.carousel__img--md {
  height: 48vw;
  min-height: 340px;
  max-height: 520px;
  width: 48vw;
  min-width: 340px;
  max-width: 520px;
}

.carousel__img--lg {
  height: 56vw;
  min-height: 400px;
  max-height: 640px;
  width: 56vw;
  min-width: 400px;
  max-width: 640px;
}

@keyframes carousel-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.3333%, 0, 0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .format-hero {
    min-height: auto;
    padding: clamp(60px, 10vw, 120px) clamp(16px, 3vw, 48px);
  }

  .format-hero__title {
    font-size: clamp(32px, 5vw, 48px);
  }

  .carousel__img--sm {
    height: 60vw;
    min-height: 200px;
    max-height: 320px;
    width: 60vw;
    min-width: 200px;
    max-width: 320px;
  }

  .carousel__img--md {
    height: 70vw;
    min-height: 280px;
    max-height: 420px;
    width: 70vw;
    min-width: 280px;
    max-width: 420px;
  }

  .carousel__img--lg {
    height: 80vw;
    min-height: 320px;
    max-height: 520px;
    width: 80vw;
    min-width: 320px;
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  .format-hero {
    padding: clamp(40px, 6vw, 80px) 16px;
  }

  .format-hero__title {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 16px;
  }

  .format-hero__subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    margin-bottom: 24px;
  }

  .format-carousel {
    padding: clamp(40px, 6vw, 60px) 12px;
  }

  .carousel-track {
    gap: 16px;
  }

  .carousel__img--sm {
    height: 80vw;
    min-height: 140px;
    max-height: 240px;
    width: 80vw;
    min-width: 140px;
    max-width: 240px;
  }

  .carousel__img--md {
    height: 100vw;
    min-height: 180px;
    max-height: 320px;
    width: 100vw;
    min-width: 180px;
    max-width: 320px;
  }

  .carousel__img--lg {
    height: 110vw;
    min-height: 200px;
    max-height: 380px;
    width: 110vw;
    min-width: 200px;
    max-width: 380px;
  }
}

/* ===================== FORMAT TYPES SECTION ===================== */

.format-types {
  background: var(--color-light);
  color: var(--color-dark-grey);
  padding: clamp(80px, 12vw, 140px) clamp(16px, 3vw, 48px);
}

.format-types__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.format-types__header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.format-types__kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-gold);

  margin-bottom: 16px;
}

.format-types__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 200;
  line-height: 1.1;
  margin: 0;
  color: var(--color-dark-grey);
}

.format-types__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.format-types__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
}

.format-types__image {
  width: 200px;
  height: 280px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.format-types__item:nth-child(3) .format-types__image {
  width: 320px;
  height: 300px;
}

.format-types__title-variant {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: var(--color-dark-grey);
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
}

.format-types__item:hover .format-types__image {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .format-types {
    padding: clamp(60px, 8vw, 100px) clamp(16px, 3vw, 48px);
  }

  .format-types__title {
    font-size: clamp(28px, 4vw, 40px);
  }

  .format-types__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 3vw, 32px);
  }
}

@media (max-width: 600px) {
  .format-types {
    padding: clamp(40px, 6vw, 60px) 16px;
  }

  .format-types__header {
    margin-bottom: clamp(32px, 5vw, 48px);
  }

  .format-types__title {
    font-size: clamp(24px, 3.5vw, 32px);
  }

  .format-types__grid {
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vw, 24px);
  }
}

/* ===================== FORMAT IMAGES SECTION ===================== */

.format-images-section {
  background: var(--color-light);
  padding: clamp(80px, 12vw, 140px) clamp(16px, 3vw, 48px);
}

.format-images-section__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.format-images-section__header {
  margin-bottom: clamp(60px, 8vw, 100px);
  text-align: center;
}

.format-images-section__kicker {
  font-size: clamp(12px, 1.5vw, 14px);
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent-gold);
  margin-bottom: clamp(12px, 1.5vw, 16px);
}

.format-images-section__title {
  font-size: clamp(42px, 5.5vw, 64px);
  font-weight: 200;
  line-height: 1.2;
  color: var(--color-dark-alt);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.format-images-section__title span {
  color: var(--color-accent-gold);
}

.format-images-section__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: #666;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.format-images-section__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(40px, 6vw, 80px);
  justify-content: center;
  align-items: start;
}

.format-images-section__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Ligne 1: 2 images (items 1-2) */
.format-images-section__item:nth-child(1),
.format-images-section__item:nth-child(2) {
  grid-column: span 6;
}

/* Ligne 2: 2 images (items 3-4) */
.format-images-section__item:nth-child(3),
.format-images-section__item:nth-child(4) {
  grid-column: span 6;
}

/* Ligne 3: 3 images (items 5-7) */
.format-images-section__item:nth-child(5),
.format-images-section__item:nth-child(6),
.format-images-section__item:nth-child(7) {
  grid-column: span 4;
}

/* Lignes 4-5: 4 images (items 8+) */
.format-images-section__item:nth-child(n + 8) {
  grid-column: span 3;
}

.format-images-section__item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  touch-action: none;
  margin-bottom: 16px;
}

.format-images-section__label {
  font-size: 16px;
  color: var(--color-dark-alt);
  font-weight: 500;
  margin: 0;
}

.format-images-section__item-title {
  font-size: 14px;
  color: var(--color-dark-alt);
  font-weight: 600;
  margin: 12px 0 8px 0;
}

.format-images-section__sublabel {
  font-size: 11px;
  color: var(--color-dark-alt);
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .format-images-section__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Responsive: 2 images par ligne pour items 1-4 */
  .format-images-section__item:nth-child(1),
  .format-images-section__item:nth-child(2),
  .format-images-section__item:nth-child(3),
  .format-images-section__item:nth-child(4) {
    grid-column: span 3;
  }

  /* 2 images par ligne pour items 5-7 */
  .format-images-section__item:nth-child(5),
  .format-images-section__item:nth-child(6),
  .format-images-section__item:nth-child(7) {
    grid-column: span 3;
  }

  /* 2 images par ligne pour items 8+ */
  .format-images-section__item:nth-child(n + 8) {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .format-hero__actions .btn {
    font-size: 13px !important;
    height: 40px !important;
    padding: 0 12px !important;
  }

  .format-images-section {
    padding: clamp(60px, 8vw, 100px) 16px;
  }

  .format-images-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 4vw, 40px);
  }

  /* Toutes les images sur 1 colonne = span 1 */
  .format-images-section__item:nth-child(1),
  .format-images-section__item:nth-child(2),
  .format-images-section__item:nth-child(3),
  .format-images-section__item:nth-child(4),
  .format-images-section__item:nth-child(5),
  .format-images-section__item:nth-child(6),
  .format-images-section__item:nth-child(7),
  .format-images-section__item:nth-child(n + 8) {
    grid-column: span 1;
  }

  .format-images-section__item {
    max-width: 100%;
  }

  .format-images-section__item img {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .format-images-section__grid {
    grid-template-columns: 1fr;
  }

  .format-images-section__item img {
    height: 220px;
  }
}

/* ===================== FORMAT PACKAGING SECTION ===================== */

.format-packaging {
  background: var(--color-dark);
  color: #fff;
  padding: clamp(80px, 12vw, 140px) 0;
}

.format-packaging__inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 0 clamp(20px, 4vw, 60px);
}

.format-packaging__header {
  margin-bottom: clamp(40px, 6vw, 80px);
  text-align: left !important;
  width: 100%;
  margin-left: calc(-50vw + 50% + clamp(12px, 3vw, 48px));
  margin-right: calc(-50vw + 50%);
}

.format-packaging__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 200;
  line-height: 1.2;
  margin: 0;
  color: #fff;
  text-align: left !important;
}

.format-packaging__title span {
  color: var(--color-accent-gold);
}

.format-packaging__divider {
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    transparent 3%,
    var(--c-cta, var(--color-accent-gold)) 3%,
    var(--c-cta, var(--color-accent-gold)) 38%,
    #d0d0d0 38%,
    #d0d0d0 97%,
    transparent 97%,
    transparent 100%
  );
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: clamp(60px, 8vw, 100px);
  width: 100vw;
}

.format-packaging__grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(60px, 8vw, 150px);
  row-gap: clamp(80px, 10vw, 120px);
}

.format-packaging__item {
  position: relative;
  text-align: center;
  flex: 0 0 auto;
  width: 160px;
}

.format-packaging__grid-image {
  width: 100%;
  height: 280px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}

.format-packaging__item:nth-child(1) .format-packaging__grid-image,
.format-packaging__item:nth-child(2) .format-packaging__grid-image,
.format-packaging__item:nth-child(3) .format-packaging__grid-image,
.format-packaging__item:nth-child(4) .format-packaging__grid-image,
.format-packaging__item:nth-child(5) .format-packaging__grid-image,
.format-packaging__item:nth-child(6) .format-packaging__grid-image {
  transform: scale(1.8);
}

.format-packaging__label {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--color-grey-light);
  margin: 72px 0 0 0;
  text-transform: capitalize;
  position: static;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  background: none;
  padding: 0;
  border-radius: 0;
  z-index: auto;
}

.format-packaging__grid--bouteilles {
  display: flex;
  justify-content: center;
  gap: clamp(80px, 10vw, 140px);
  row-gap: clamp(60px, 8vw, 80px);
  margin-top: 80px;
  flex-wrap: wrap;
}

.format-packaging__grid--bouteilles .format-packaging__item {
  flex: 0 0 auto;
  width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.format-packaging__grid--bouteilles .format-packaging__grid-image {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 32px auto;
  display: block;
}

/* Responsive packaging */
@media (max-width: 1200px) {
  .format-packaging__grid {
    gap: clamp(40px, 6vw, 80px);
    row-gap: clamp(60px, 8vw, 100px);
  }

  .format-packaging__item {
    width: 140px;
  }

  .format-packaging__grid--bouteilles {
    gap: clamp(60px, 8vw, 100px);
  }

  .format-packaging__grid--bouteilles .format-packaging__item {
    width: 140px;
  }

  .format-packaging__grid--bouteilles .format-packaging__grid-image {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 900px) {
  .format-packaging__header {
    text-align: left !important;
  }

  .format-packaging__grid {
    gap: clamp(40px, 6vw, 60px);
    row-gap: clamp(60px, 8vw, 80px);
  }

  .format-packaging__item {
    width: 130px;
  }

  .format-packaging__grid-image {
    height: 240px;
  }

  .format-packaging__label {
    font-size: clamp(14px, 1.6vw, 16px);
    margin-top: 60px;
  }

  .format-packaging__grid--bouteilles {
    gap: clamp(50px, 7vw, 80px);
  }

  .format-packaging__grid--bouteilles .format-packaging__item {
    width: 130px;
  }

  .format-packaging__grid--bouteilles .format-packaging__grid-image {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 600px) {
  .format-packaging {
    padding: clamp(60px, 10vw, 100px) 0;
  }

  .format-packaging__inner {
    padding: 0 16px;
  }

  .format-packaging__header {
    margin-bottom: clamp(32px, 5vw, 60px);
    text-align: left !important;
  }

  .format-packaging__title {
    font-size: clamp(28px, 5vw, 36px);
    text-align: left !important;
  }

  .format-packaging__grid {
    flex-direction: column;
    align-items: center;
    gap: clamp(50px, 7vw, 70px);
    row-gap: clamp(50px, 7vw, 70px);
  }

  .format-packaging__item {
    width: 110px;
  }

  .format-packaging__grid-image {
    height: 200px;
  }

  .format-packaging__label {
    font-size: 14px;
    margin-top: 50px;
  }

  .format-packaging__grid--bouteilles {
    flex-direction: column;
    align-items: center;
    gap: clamp(70px, 9vw, 90px);
    margin-top: 60px;
  }

  .format-packaging__grid--bouteilles .format-packaging__item {
    width: 110px;
  }

  .format-packaging__grid--bouteilles .format-packaging__grid-image {
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
  }
}

@media (max-width: 400px) {
  .format-packaging__grid {
    flex-direction: column;
    align-items: center;
    gap: clamp(40px, 6vw, 60px);
  }

  .format-packaging__item {
    width: 100px;
  }

  .format-packaging__grid-image {
    height: 180px;
  }

  .format-packaging__label {
    font-size: 13px;
    margin-top: 45px;
  }

  .format-packaging__grid--bouteilles {
    flex-direction: column;
    align-items: center;
    gap: clamp(40px, 6vw, 60px);
  }

  .format-packaging__grid--bouteilles .format-packaging__item {
    width: 100px;
  }

  .format-packaging__grid--bouteilles .format-packaging__grid-image {
    width: 80px;
    height: 80px;
  }
}

/* ===================== GALLERY MARQUEE ===================== */

.gallery-marquee {
  overflow: hidden;
  padding: 4rem 0;
  background: #171614;
  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: 220px;
  }

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

  .marquee-content {
    gap: 1rem;
  }

  .marquee-track {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    width: 240px;
    height: 180px;
  }

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