:root {
  /* Palette Haute Couture */
  --color-white: #FFFFFF;
  --color-cream: #FAF9F6;
  --color-sand: #F2EFE9;
  --color-charcoal: #1A1A1A;
  --color-gray-subtle: #8C8C8C;

  /* Typographie Géométrique & Moderne */
  --font-luxury: 'Century Gothic', 'Futura', 'Montserrat', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* BASE */
body.page-collections {
  margin: 0;
  padding: 0;
  background-color: var(--color-white);
  color: var(--color-charcoal);
  font-family: var(--font-luxury);
  -webkit-font-smoothing: antialiased;
}

.collection-section {
  margin-bottom: 5rem;
}

/* BANNIÈRE HERO */
.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: var(--color-cream);
}

/* Affichage Responsive PC / Mobile */
.media-desktop {
  display: block;
  width: 100%;
  height: 100%;
}

.media-mobile {
  display: none;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .media-desktop { display: none; }
  .media-mobile { display: block; }
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* OVERLAY TEXTE */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding: 1rem;
}

.hero-title {
  font-family: var(--font-luxury);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
}

.hero-subtitle {
  font-family: var(--font-luxury);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* BOUTON DIOR STYLE */
.btn-collec {
  display: inline-block;
  font-family: var(--font-luxury);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-collec:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
}

/* GRILLE ET PRODUITS */
.products-container {
  max-width: 1280px;
  margin: 3rem auto 0 auto;
  padding: 0 1.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  /*background-color: var(--color-cream);
  padding: 1.25rem;*/
  transition: var(--transition-smooth);
  padding: 0 !important; /* Enlève le cadre crème autour */
  background-color: transparent;
}

.product-card:hover {
  background-color: var(--color-sand);
}

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-gray-subtle);
  text-transform: uppercase;
}

.product-image-wrapper {
  width: 100%;
  margin: 0 !important;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /*margin: 1.5rem 0 1rem 0;*/
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-smooth);
}

/*.product-card:hover .product-image {
  transform: scale(1.05);
}*/

.product-title {
  font-family: var(--font-luxury);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 10px !important;
  color: var(--color-charcoal);
  text-transform: uppercase;
}

/* CONTENEUR GLOBAL DU CARROUSEL */
.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 1.5rem 0 1rem 0;
  overflow: hidden; /* Empêche tout débordement */
}

/* DEFILEMENT HORIZONTAL (CÔTE À CÔTE) */
.product-carousel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row; /* Force le rangement horizontal */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
/* IMAGES */
.product-image {
  flex: 0 0 100%; /* Force 100% de largeur par image */
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* TAG (ex: SATIN) */
.product-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10; /* Toujours au-dessus de tout */
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-gray-subtle);
  text-transform: uppercase;
  pointer-events: none;
}

/* FLÈCHES (MASQUÉES PAR DÉFAUT SUR MOBILE) */
.carousel-btn {
  display: none; /* Masqué sur écran tactile */
}

/* FLÈCHES (UNIQUEMENT SUR PC/SOURIS) */
@media (min-width: 1024px) and (hover: hover) {
  .carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 8;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-charcoal);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease;
  }

  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }

  .carousel-container:hover .carousel-btn {
    opacity: 1;
  }
}