/* ==========================================================================
   GLAMWEL LABORATOIRES - Page "collections" (page.collections)
   Banniere : partials.hero (page.css). Ici, la grille de cartes categorie.
   Mesures de la maquette ; polices et teintes du site.
   ========================================================================== */

/* Nom de categorie : dernier mot en italique. */
.collections-lien h3 em { font-style: italic; }

/* GRILLE */
.collections-liste {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px) 120px;
  background: var(--ivory);
}

.collections-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.collections-entete h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
}

.collections-entete span {
  color: #7a746a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* auto-fit : les cartes se partagent toute la largeur, sans colonne vide en
   bout de rangee. */
.collections-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px 24px;
}

/* Ancre : la carte s'arrete sous le header. Les cartes
   d'une rangee ont la meme hauteur (grille) ; le bloc texte s'etire pour que
   les filets du bas tombent sur une meme ligne, quelle que soit la longueur
   des descriptions. */
.collections-carte {
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

/* Cadre au format des visuels categorie (paysage 16:9) : l'image y tient
   en entier, sans recadrage. Une image d'un autre format garde ses
   proportions, centree. Meme cadre pour toutes : les titres restent alignes. */
.collections-visuel {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.collections-visuel:not(:has(img)) { background: #e6dfd1; }

.collections-visuel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 900ms var(--ease);
}

.collections-carte:hover .collections-visuel img { transform: scale(1.03); }

.collections-lien {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--black);
  transition: color 250ms ease;
}

.collections-lien:hover { color: #9a7a4c; }

.collections-lien > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.collections-lien h3 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.collections-lien p {
  color: #5a554d;
  font-size: 14px;
  line-height: 1.5;
}

.collections-fleche { font-size: 20px; }
