/* ==========================================================================
   AZUR — Home : page d'accueil
   ========================================================================== */


/* ── Section 1 : Hero ──────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate; /* contexte d'empilement pour que z-index: -1 sur la vidéo reste dans le hero */
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--deep); /* fallback si hero_image vide */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* Overlay sombre sur l'image — assure la lisibilité du titre */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--deep);
  opacity: 0.45;
  pointer-events: none;
}

/* Vidéo de fond — z-index: -1 pour rester sous l'overlay ::before (z-index: 0) */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Grain SVG — léger overlay texture */
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.hero__grain svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Contenu centré au-dessus du grain */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Titre principal */
.hero__title {
  font-family: var(--font-cormorant);
  font-weight: 300;
  font-size: clamp(48px, 15vw, 160px);
  line-height: 1;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0.4em;
  white-space: nowrap;
  text-indent: 0.4em;
  animation: hero-fade-up 0.9s ease-out 0.3s both;
}

/* Indicateur de scroll */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: hero-fade-in 0.8s ease-out 1.2s both;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background-color: var(--gold);
  transform-origin: top center;
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%   { opacity: 0.15; transform: scaleY(0.5); }
  60%  { opacity: 0.9;  transform: scaleY(1); }
  100% { opacity: 0.15; transform: scaleY(0.5); }
}


/* ── Sections produits — styles communs ────────────────────────────────────── */

.section-featured,
.section-six,
.section-collections,
.section-latest {
  padding: 6rem 0;
}

.section-featured    { background-color: var(--ivory); }
.section-six         { background-color: var(--cream); }
.section-collections { background-color: var(--deep);  }
.section-latest      { background-color: var(--cream); }

/* Section header, grilles produits, cartes → azur-layout.css */


/* ── Section 4 : Azur en six — masonry 2×3 ──────────────────────────────── */

/* Surcharge les valeurs par défaut de .products-grid (azur-layout.css) */
.products-grid--six {
  column-gap: 1.5rem;
  overflow: hidden; /* filet de sécurité si une image déborde */
}

.section-six .product-card {
  margin-bottom: 1.5rem;
}

/* Mobile : 2 colonnes au lieu de 3 */
@media (max-width: 767px) {
  .products-grid--six {
    column-count: 2;
  }
}


/* ── Section 5 : Collections ───────────────────────────────────────────────── */

/* Titre en blanc sur fond sombre */
.section-collections .section__title { color: var(--white); }

/* Grille horizontale — 4-5 cartes visibles selon la largeur */
.collections-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding: 2rem 3rem;
  justify-content: center;
  /* Scrollbar masquée */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.collections-grid::-webkit-scrollbar {
  display: none;
}

/* ── Carte catégorie — format portrait ── */

.collection-card {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  min-width: 280px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  scroll-snap-align: start;
  /* Bordure dorée semi-transparente — rgba de var(--gold) #B8956A */
  border: 1px solid rgba(184, 149, 106, 0.3);
  transition: transform 0.3s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
}

/* Le lien couvre toute la carte */
.collection-card__link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
}

/* Image en fond — remplit la carte entièrement */
.collection-card__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.collection-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gradient haut — couvre le label "COLLECTION" sans assombrir toute la carte */
.collection-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 40%);
  pointer-events: none;
}

/* Gradient overlay — fondu sombre en bas pour lisibilité du texte */
.collection-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--deep) 0%, transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

/* Texte overlay — par-dessus le gradient */
.collection-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  pointer-events: none;
}

/* Label "COLLECTION" — haut gauche */
.collection-card__label {
  font-family: var(--font-dm-sans);
  font-weight: 500;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  display: block;
}

/* Bloc infos — bas de la carte */
.collection-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Nom de la catégorie */
.collection-card__name {
  font-family: var(--font-cormorant);
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* Nombre d'œuvres */
.collection-card__count {
  font-family: var(--font-dm-sans);
  font-weight: 500;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--warm-grey);
}


/* ==========================================================================
   RESPONSIVE — Home
   ========================================================================== */

/* ── Tablette ≤ 1024px ── */

@media (max-width: 1024px) {
  .products-grid--4 { column-count: 2; }
}

/* ── Mobile ≤ 768px ── */

@media (max-width: 768px) {

  /* Grilles produits — 1 colonne */
  .products-grid--2,
  .products-grid--3,
  .products-grid--4 {
    column-count: 1;
  }

  /* Sections — padding réduit */
  .section-featured,
  .section-six,
  .section-collections,
  .section-latest {
    padding: 4rem 0;
  }

  .section__inner {
    padding: 0 1.5rem;
  }

  .section__header {
    margin-bottom: 2rem;
  }

  /* Section Collections — cartes plus larges sur mobile */
  .collections-grid {
    padding: 1rem 1.5rem 1.5rem;
    justify-content: flex-start;
  }

  .collection-card {
    width: 72vw;
    min-width: 72vw;
  }
}
