/* ============================================
   HL PRODUITS PHARES BLOCK
   ============================================ */

.hl-produits {
    background: var(--wp--preset--color--white);
    padding: 80px 0;
}


/* ============================================
   HEADER
   ============================================ */

.hl-produits-inner {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.hl-produits-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.hl-produits-surtitle {
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    color: var(--wp--preset--color--sand);
    margin: 0;
}

.hl-produits-title {
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--3xl);
    font-weight: 400;
    line-height: 115%;
    letter-spacing: -0.125rem;
    color: var(--wp--preset--color--dark);
    margin: 0;
}

.hl-produits-title span {
    font-family: var(--wp--preset--font-family--secondary);
    font-style: italic;
    font-weight: 400;
    color: var(--wp--preset--color--sand);
}

.hl-produits-text {
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 400;
    line-height: 1.625;
    color: var(--wp--preset--color--grey-2);
    margin: 0;
}


/* ============================================
   GRID
   ============================================ */

.hl-produits-grid {
    row-gap: 24px;
}


/* ============================================
   CARD
   ============================================ */

.hl-produits-card {
    display: block;
    position: relative;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background: var(--wp--preset--color--dark);
}

.hl-produits-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
    will-change: transform;
}

.hl-produits-card:hover .hl-produits-card-img {
    transform: scale(1.04);
}

.hl-produits-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.64) 100%);
    z-index: 1;
}

.hl-produits-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.hl-produits-card-surtitle {
    display: block;
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--md);
    font-weight: 400;
    line-height: 1.33;
    color: var(--wp--preset--color--white);
}

.hl-produits-card-title {
    display: block;
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--2xl);
    font-weight: 400;
    line-height: 1;
    color: var(--wp--preset--color--white);
}

.hl-produits-card-desc {
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.35s ease;
}


/* ============================================
   ICONE PLUS -> FLECHE
   ============================================ */

.hl-produits-card-icon {
    position: relative;
    width: 32px;
    height: 24px;
    flex-shrink: 0;
}

.hl-produits-card-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 1.5px;
    background: var(--wp--preset--color--white);
    transform: translateY(-50%);
    transition: width 0.4s ease;
}

.hl-produits-card-icon::after {
    content: '';
    position: absolute;
    left: 6.25px;
    top: 5px;
    width: 1.5px;
    height: 14px;
    background: var(--wp--preset--color--white);
    transition: left 0.4s ease, top 0.4s ease, height 0.4s ease, transform 0.4s ease;
}

.hl-produits-card-icon span {
    display: block;
    position: absolute;
    left: 6.25px;
    top: 12px;
    width: 1.5px;
    height: 0;
    background: var(--wp--preset--color--white);
    opacity: 0;
    transition: left 0.4s ease, top 0.4s ease, height 0.4s ease, transform 0.4s ease, opacity 0.3s ease;
}

.hl-produits-card:hover .hl-produits-card-content {
    transform: translateY(-10px);
}

.hl-produits-card:hover .hl-produits-card-desc {
    max-height: 80px;
    opacity: 1;
}

.hl-produits-card:hover .hl-produits-card-icon::before {
    width: 27px;
}

.hl-produits-card:hover .hl-produits-card-icon::after {
    left: 23px;
    top: 4px;
    height: 9px;
    transform: rotate(-45deg);
}

.hl-produits-card:hover .hl-produits-card-icon span {
    left: 23px;
    top: 11px;
    height: 9px;
    opacity: 1;
    transform: rotate(45deg);
}


/* ============================================
   CARD 3-COL
   ============================================ */

.hl-produits-card-3 {
    height: 300px;
    border-radius: 14px;
}

.hl-produits-card-3 .hl-produits-card-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.40) 50%, rgba(0, 0, 0, 0) 100%);
}

.hl-produits-card-3:hover {
    box-shadow: 0 0 0 4px var(--wp--preset--color--sand);
}


/* ============================================
   CTA FOOTER
   ============================================ */

.hl-produits-footer {
    display: flex;
    justify-content: center;
}

.hl-produits-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border: 1.5px solid var(--wp--preset--color--dark);
    border-radius: 64px;
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 500;
    line-height: 1.5;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.hl-produits-cta:hover {
    background: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hl-produits-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    .hl-produits {
        padding: 56px 0;
    }

    .hl-produits-inner {
        gap: 48px;
    }
}

@media (max-width: 767px) {
    .hl-produits {
        padding: 48px 0;
    }

    .hl-produits-inner {
        gap: 36px;
    }

    .hl-produits-title {
        font-size: 1.75rem;
        letter-spacing: -0.0625rem;
    }

    .hl-produits-card {
        height: 260px;
    }
}

@media (max-width: 575px) {
    .hl-produits {
        padding: 40px 0;
    }

    .hl-produits-inner {
        gap: 28px;
    }

    .hl-produits-title {
        font-size: 1.5rem;
    }

    .hl-produits-grid > * {
        flex: 0 0 100%;
        width: 100%;
    }

    .hl-produits-card {
        height: 240px;
    }
}