.hdp_home {
    background: var(--dark);
    position: relative;

    &:after {
        content: '';
        background: var(--radial-gradient);
        width: 200%;
        height: 100%;
        position: absolute;
        bottom: 30%;
        z-index: 0;
        transform: translate(-50%, 50%);
        pointer-events: none;

        @media (min-width: 992px) {
            width: 100%;
        }
    }

    .hdp__title_home {
        margin: auto;
        max-width: 510px;

        @media (min-width: 992px) {
            max-width: 620px;
        }

        h1 {
            color: var(--white);

            strong {
                opacity: 0;
                color: var(--blue);
                font-family: var(--strong-font);
                font-weight: var(--semibold);
                font-style: italic;
            }
        }
    }

    .hdp__content_home {
        text-align: center;

        @media (min-width: 992px) {
            padding-bottom: 80px;
        }

        .hdp__avant_sans {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;

            .btn_avant_sans {
                position: relative;
                background: var(--white);
                width: fit-content;
                display: flex;
                margin: 45px auto;
                border-radius: 50px;
                align-items: center;
                gap: 8px;
                padding: 10px;
                cursor: pointer;
                transition: padding 0.3s ease;

                &:not(.pll_fr) {
                    .avec_maps {
                        left: 7px;
                    }

                    .sans_maps {
                        left: 4px;
                    }
                }

                .switch-slider {
                    position: absolute;
                    top: 8px;
                    left: 7px;
                    width: 48%;
                    background: var(--blue);
                    border-radius: 50px;
                    z-index: 0;
                    transition: all 0.3s ease;
                    height: 73%;
                }

                p {
                    position: relative;
                    z-index: 1;
                    padding: 6px 14px;
                    border-radius: 50px;
                    font-weight: var(--semibold);
                    white-space: nowrap;
                    margin: 0px;
                    font-size: 14px;
                    line-height: 16px;

                    &.btn_actif {
                        color: var(--white);
                        padding: 11px 15px;
                        border-radius: var(--border-radius);
                    }
                }

                &.sans_actif .switch-slider {
                    left: 49%;
                }
            }
        }

        img {
            &.img_switch {
                position: relative;
                opacity: 1;
                transition: var(--transition);
            }
        }

        .avantages_list {
            display: flex;
            padding: 30px 20px;
            border-radius: 15px;
            width: 100%;
            flex-wrap: wrap;
            gap: 20px;
            position: relative;
            margin: auto;
            justify-content: center;
            margin-top: 30px;

            @media (min-width: 992px) {
                background: var(--dark);
                transform: translate(60px, 0%);
                position: absolute;
                left: 0;
                flex-wrap: nowrap;
                justify-content: space-between;
                max-width: 840px;
                bottom: -110px;
                gap: 0px;
            }

            @media (min-width: 1200px) {
                transform: translate(80px, 0%);
            }

            .avantage {
                display: flex;
                flex-direction: column;
                justify-content: start;
                align-items: center;
                gap: 10px;

                @media (max-width: 992px) {
                    flex: 1;
                    min-width: 120px;
                }

                p {
                    color: var(--white);
                    font-size: 14px;
                    line-height: 24px;
                    font-weight: var(--regular);

                    @media (min-width: 992px) {
                        max-width: 160px;
                        font-size: 18px;
                        line-height: 28px;
                    }

                    strong {
                        font-weight: var(--bold);
                    }
                }

                img {
                    width: 35px;
                    height: 35px;
                    object-fit: contain;
                }
            }
        }
    }
}

.hdp_home .ecran_home {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Le “rail” qui se translate */
.hdp_home .ecran_track {
    display: flex;
    width: 200%;
    transition: transform .5s ease;
    /* durée/aisance du slide */
    will-change: transform;
}

/* Chaque image occupe 50% du rail */
.hdp_home .ecran_track .img_switch {
    width: 50%;
    flex: 0 0 50%;
    display: block;
    object-fit: cover;
}

/* États */
.hdp_home .ecran_home.is-avec .ecran_track {
    transform: translateX(0%);
}

/* 1ère image visible */
.hdp_home .ecran_home.is-sans .ecran_track {
    transform: translateX(-50%);
}

/* 2e image visible */

/* Optionnel : assure une jolie hauteur sur mobile si les images ont des ratios différents */
@media (max-width: 768px) {
    .hdp_home .ecran_home {
        aspect-ratio: 1259 / 761;
    }

    /* adapte si besoin */
}