/* =========================================
   YourMariage — NOS COLLECTIONS
   ========================================= */

.themes {
    background: #f8f5ef;
    color: #151515;
    padding: 78px 0 92px;
}

.themes__shell {
    width: min(1440px, calc(100% - 72px));
    margin-inline: auto;
}

.themes__header {
    display: grid;
    grid-template-columns: minmax(360px, 1.08fr) minmax(340px, .82fr) auto;
    align-items: end;
    gap: 40px;
    margin-bottom: 28px;
}

.themes__heading h2 {
    margin: 0;
    font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
    font-size: clamp(46px, 4vw, 62px);
    line-height: .94;
    font-weight: 500;
    letter-spacing: -.035em;
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.themes__heading h2 span {
    color: #c9af84;
    font-weight: 400;
}

.themes__intro {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
    color: #3e3e39;
    text-align: center;
    font-weight: 500;
}

.themes__all {
    align-self: end;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
    color: #24241f;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(36, 36, 31, .48);
    padding-bottom: 3px;
    transition: color .22s ease, border-color .22s ease;
}

.themes__all span:last-child {
    font-size: 18px;
    transition: transform .22s ease;
}

.themes__all:hover {
    color: #9d7336;
    border-color: #9d7336;
}

.themes__all:hover span:last-child {
    transform: translateX(3px);
}

.themes__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.theme-card {
    position: relative;
    min-height: 430px;
    aspect-ratio: .77;
    overflow: hidden;
    display: block;
    border-radius: 7px;
    background: #1a1a18;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    box-shadow: 0 1px 0 rgba(255,255,255,.28), 0 10px 30px rgba(29, 24, 18, .05);
    transition: transform .28s ease, box-shadow .28s ease;
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(29, 24, 18, .13);
}

.theme-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    transition: transform .7s cubic-bezier(.2,.75,.25,1);
}

.theme-card:hover .theme-card__image {
    transform: scale(1.045);
}

.theme-card__veil {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(10,10,9,.02) 18%, rgba(10,10,9,.10) 44%, rgba(8,8,7,.78) 76%, rgba(8,8,7,.96) 100%),
        linear-gradient(90deg, rgba(0,0,0,.08), transparent 60%);
}

.theme-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 11px 7px;
    border-radius: 999px;
    background: rgba(250,247,240,.94);
    color: #24241f;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.theme-card__content {
    position: absolute;
    left: 20px;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
}

.theme-card__title {
    font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
    font-size: clamp(37px, 2.5vw, 46px);
    line-height: .9;
    font-weight: 500;
    letter-spacing: -.035em;
}

.theme-card__tagline {
    margin-top: 10px;
    font-size: 10.5px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.88);
}

.theme-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 23px;
}

.theme-card__description {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255,255,255,.88);
}

.theme-card__arrow {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 19px;
    line-height: 1;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.theme-card:hover .theme-card__arrow {
    background: #f3ddbd;
    border-color: #f3ddbd;
    color: #9d7336;
    transform: translateX(2px);
}

.theme-card:focus-visible {
    outline: 2px solid #b9924c;
    outline-offset: 4px;
}

/* Tablette */
@media (max-width: 1100px) {
    .themes {
        padding-block: 68px 80px;
    }

    .themes__header {
        grid-template-columns: 1fr 1fr;
    }

    .themes__all {
        justify-self: start;
        grid-column: 2;
    }

    .themes__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .theme-card {
        min-height: 510px;
        aspect-ratio: .86;
    }
}

/* Mobile */
@media (max-width: 650px) {
    .themes {
        padding: 54px 0 64px;
    }

    .themes__shell {
        width: min(100% - 36px, 1440px);
    }

    .themes__header {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 26px;
    }

    .themes__heading h2 {
        font-size: clamp(44px, 13vw, 58px);
        gap: 12px;
    }

    .themes__intro {
        text-align: left;
    }

    .themes__intro {
        font-size: 14px;
    }

    .themes__all {
        grid-column: auto;
        justify-self: start;
        margin: 0;
    }

    .themes__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .theme-card {
        min-height: 500px;
        aspect-ratio: .78;
    }

    .theme-card__content {
        left: 19px;
        right: 17px;
        bottom: 18px;
    }

    .theme-card__title {
        font-size: 43px;
    }
}
