/* ============================================================
   Collections Teaser
   ============================================================ */

.collections-teaser {
    font-family: var(--primary-font);
    padding: var(--gap-xl) var(--gap-l);
}

/* ── En-tête ── */
.collections-teaser__heading {
    margin-bottom: var(--gap-l);
}

.collections-teaser .section-heading__eyebrow,
.collections-teaser .section-heading__title {
    text-align: left;
}

.collections-teaser__title {
    margin-bottom: 0;
}

/* ── Grille ── */
.collections-teaser__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 6px;
}

/* Première carte vedette : 2 col × 2 rangées */
.collections-teaser__cards > .collections-teaser__card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* ── Carte ── */
.collections-teaser__card {
    display: block;
    position: relative;
    height: 100%;
    background-color: var(--primary-color);
    overflow: hidden;
    text-decoration: none;
}

/* Image de fond sur un élément dédié pour le scale indépendant */
.collections-teaser__card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
    will-change: transform;
}

.collections-teaser__card:hover .collections-teaser__card-bg {
    transform: scale(1.06);
}

/* Dégradé bas → haut pour lisibilité du titre */
.collections-teaser__card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.collections-teaser__card:hover::before {
    opacity: 0.8;
}

.collections-teaser__card-title {
    position: absolute;
    z-index: 2;
    bottom: 20px;
    left: 20px;
    right: 20px;
    font-family:    var(--primary-font);
    font-size:      1rem;
    font-weight:    600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color:          #ffffff;
    line-height:    1.3;
    transition:     transform 0.4s ease;
}

.collections-teaser__card:hover .collections-teaser__card-title {
    transform: translateY(-4px);
}

/* ── Align wide / full ── */
.alignwide.collections-teaser,
.alignfull.collections-teaser {
    padding-left:  max(var(--gap-l), 5vw);
    padding-right: max(var(--gap-l), 5vw);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .collections-teaser__cards {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }

    .collections-teaser__cards > .collections-teaser__card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .collections-teaser {
        padding: var(--gap-l) var(--gap-m);
    }

    .collections-teaser__cards {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 4px;
    }
}
