/* ==========================================================================
   GLAMWEL LABORATOIRES - Styles specifiques a la page d'accueil
   Extrait a l'identique de sourceHtml/index.html
   ========================================================================== */

/* ==========================================================================
   HERO SLIDER (page_home_slide)
   Les slides sont empiles et se fondent l'un dans l'autre. Avec un seul slide
   actif, le rendu est celui de la maquette.
   ========================================================================== */

/* Le fond du hero ne vient plus d'une image livree : chaque slide porte le
   sien (media ou poster). On garde un fond sombre le temps du chargement. */
.hero { background: var(--black); }

.hero-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 900ms var(--ease), visibility 900ms var(--ease);
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Repli video : la balise disparait, le poster reste visible en dessous. */
.hero-slide.is-static .hero-video { display: none; }

.hero-slide.is-static {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Pastilles de navigation, affichees seulement s'il y a plusieurs slides. */
.hero-dots {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 20px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: transparent;
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}

.hero-dot:hover { border-color: var(--gold-light); }

.hero-dot.is-active {
  border-color: var(--gold-light);
  background: var(--gold-light);
}

@media (min-width: 760px) {
  .hero-dots { bottom: 28px; }
}

/* ==========================================================================
   UNIVERS (page_home_bloc / categorie_produit)
   ========================================================================== */

/* Tant qu'une categorie n'a pas de visuel, la carte garde un fond sombre :
   le texte blanc de la maquette reste lisible. */
.universe-card.is-imageless { background: var(--charcoal); }

/* ==========================================================================
   SELECTION - cartes de categorie (second bloc "univers")
   Reprend la grille produits de la maquette.
   ========================================================================== */

.category-card-media { display: block; }

.product-image.is-imageless { background: var(--beige); }

.product-name a { transition: color 250ms ease; }
.product-name a:hover { color: var(--gold); }

.category-card-description {
  margin-top: 8px;
  color: #786f65;
  font-size: 12px;
  line-height: 1.7;
}

.category-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.category-card-link:hover .arrow { width: 27px; }

/* PRODUITS */
.product-price {
  display: block;
  margin-top: 8px;
  color: #726b63;
  font-size: 9px;
}

.add-to-cart {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
