.hdp.home {
    padding-bottom: 170px;
    background-color: var(--white) !important;

    @media (min-width: 992px) {
        padding-bottom: 100px !important;
    }

    .container {
        position: relative;

        @media (min-width: 1600px) {
            max-width: var(--container-xxxl);
        }

        .hdp__content {
            display: flex;
            flex-direction: column;
            background: linear-gradient(90deg, rgba(15, 57, 143, 1) 0%, rgba(81, 141, 228, 1) 100%);
            position: relative;
            padding: 35px;
            border-radius: var(--border-radius);
            min-height: 500px;
            gap: 40px;

            @media (min-width: 992px) {
                flex-direction: row;
            }

            @media (min-width: 1200px) {
                padding: 45px 80px;
            }

            >* {
                z-index: 1;
            }

            &:after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: url('../../img/dots.svg');
                z-index: 0;
            }

            .hdp__content_left {
                display: flex;
                flex-direction: column;
                gap: 30px;
                flex: 1;
                justify-content: center;

                h1 {
                    color: var(--white) !important;
                    margin: 0;
                }

                >* {
                    color: var(--white) !important;
                }

                .hdp__intro {
                    @media (min-width: 992px) {
                        max-width: 450px;
                    }

                    @media (min-width: 1200px) {
                        max-width: 600px;
                    }

                    >p {
                        font-family: var(--secondary-font);
                        font-size: 16px;
                        margin: 0;
                    }
                }

                .hdp__dropdown {
                    display: flex;
                    gap: 10px;
                    flex-direction: column;

                    @media (min-width: 992px) {
                        flex-direction: row;
                    }

                    span {
                        display: flex;
                        gap: 10px;
                        align-items: center;
                        font-family: var(--secondary-font);
                        font-weight: var(--medium);
                        font-size: var(--p-size);
                    }

                    #hdp_dropdown_home {
                        font-family: var(--secondary-font);
                        transition: var(--transition);
                        position: relative;

                        @media (min-width: 992px) {
                            min-width: 320px;
                        }

                        &:after {
                            content: '';
                            z-index: 1;
                            height: 240px;
                            width: 100%;
                            position: absolute;
                            top: 0;
                            left: 0;
                        }

                        &:hover,
                        &:focus,
                        &.is-open {
                            span {
                                &.dropdown_placeholder {
                                    background-color: var(--dark-blue) !important;
                                    color: var(--white) !important;
                                    outline: 0px;

                                    &:after {
                                        transform: rotate(180deg);
                                    }
                                }

                                &:not(.dropdown_placeholder) {
                                    opacity: 1;

                                    @media (max-width: 991px) {
                                        height: fit-content !important;
                                        padding: 0 !important; /* padding sur <a> */
                                        position: relative;
                                        margin-top: 10px;
                                    }

                                    @media (min-width: 992px) {
                                        transform: translateY(20px);
                                    }
                                }
                            }
                        }

                        span {
                            z-index: 2;

                            &.dropdown_placeholder {
                                background: var(--orange);
                                border: 0px;
                                box-shadow: none !important;
                                padding: 8px 20px 10px 13px;
                                border-radius: var(--border-radius);
                                color: var(--white);
                                font-style: italic;
                                font-weight: var(--bold);
                                cursor: pointer;
                                white-space: nowrap;
                                display: flex;
                                align-items: center;
                                justify-content: space-between;
                                position: relative;
                                pointer-events: auto;
                                /* min-width pour que la pastille remplisse le container parent
                                   et que le click soit reçu sur toute la zone orange visible */
                                width: 100%;
                                box-sizing: border-box;

                                &:after {
                                    content: '';
                                    background-image: url('../../img/chevron.svg');
                                    background-size: contain;
                                    background-repeat: no-repeat;
                                    margin-left: auto;
                                    display: inline-block;
                                    width: 12px;
                                    height: 12px;
                                    flex-shrink: 0;
                                    pointer-events: none;
                                    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(252deg) brightness(101%) contrast(103%);
                                    transition: var(--transition);
                                }

                                @media (min-width: 992px) {
                                    font-size: 18px;
                                }
                            }

                            &:not(.dropdown_placeholder) {
                                background: var(--white);
                                transition: var(--transition);
                                border-radius: var(--border-radius);
                                cursor: pointer;
                                width: 100%;
                                box-sizing: border-box;
                                padding: 0; /* padding transféré au <a> pour clic 100% */
                                left: 0;
                                color: var(--dark);
                                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
                                opacity: 0;

                                @media (max-width: 991px) {
                                    height: 0px;
                                    padding: 0;
                                }

                                @media (min-width: 992px) {
                                    transform: translateY(20px);
                                    position: absolute;

                                    &:nth-child(2) {
                                        top: 25px;
                                    }

                                    &:nth-child(3) {
                                        top: 70px;
                                    }

                                    &:nth-child(4) {
                                        top: 115px;
                                    }

                                    &:nth-child(5) {
                                        top: 160px;
                                    }

                                    &:nth-child(6) {
                                        top: 205px;
                                    }
                                }

                                a {
                                    color: var(--dark-blue);
                                    font-family: var(--secondary-font);
                                    font-size: 16px;
                                    white-space: nowrap;
                                    display: block;
                                    width: 100%;
                                    box-sizing: border-box;
                                    /* Padding directement sur le <a> : la zone cliquable
                                       couvre exactement la zone visible de l'option. */
                                    padding: 8px 20px 10px 13px;
                                    margin: 0;
                                    text-decoration: none;
                                }

                                &:hover {
                                    background: var(--orange) !important;

                                    a {
                                        color: var(--white) !important;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .hdp__medias {
                flex: 1;

                @media (max-width: 991px) {
                    display: flex;
                    justify-content: center;
                }

                .media_floating {
                    display: flex;
                    gap: 15px;
                    justify-content: space-between;

                    @media (min-width: 992px) {
                        justify-content: unset;
                        position: absolute;
                        bottom: 0;
                        right: 20px;
                    }

                    @media (min-width: 1400px) {
                        right: 80px;
                    }

                    .hdp__media-item {
                        overflow: hidden;
                        border-radius: var(--border-radius);
                        max-height: 350px;
                        width: 100%;

                        @media (min-width: 992px) {
                            max-height: unset;
                            border-radius: var(--border-radius) var(--border-radius) 0 0;
                            height: 650px;
                        }

                        @media (min-width: 992px) and (max-width: 1199px) {
                            width: 130px;
                        }

                        @media (min-width: 1200px) {
                            width: 160px;
                        }

                        @media (min-width: 1400px) {
                            width: 180px;
                            height: 590px;
                        }

                        img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                        }
                    }
                }
            }

        }

        .hdp__articles-slider {
            width: 250px;
            position: absolute;
            right: 50%;
            transform: translate(50%);
            bottom: -15%;
            z-index: 10;
            background: var(--white);
            box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.12);
            padding: 5px;
            border-radius: var(--border-radius);

            @media (min-width: 992px) {
                right: 32%;
                bottom: -30%;
                width: 400px;
            }

            @media (min-width: 1200px) {
                right: 40%;
                bottom: -20%;
            }

            #slider_articles_home {
                .splide__track {
                    height: fit-content !important;
                    position: relative;
                }

                .splide__list {
                    .hdp__article-slide {
                        height: 160px;

                        @media (min-width: 992px) {
                            width: 400px !important;
                        }

                        &:hover {
                            span {
                                &:after {
                                    width: 100% !important;
                                    transition: width 0.3s ease;
                                }
                            }
                        }

                        a {
                            display: flex;
                            height: 100%;
                            align-items: center;

                            .infos_article {
                                display: flex;
                                flex-direction: column;
                                padding: 5px 5px 5px 15px;
                                gap: 20px;
                                transition: var(--transition);

                                @media (min-width: 992px) {
                                    padding: 20px;
                                }

                                h4 {
                                    color: var(--dark-blue);
                                    font-weight: var(--semibold);
                                    transition: var(--transition);
                                    font-family: var(--secondary-font);
                                    margin: 0;
                                }

                                span {
                                    color: var(--orange) !important;
                                    position: relative;
                                    width: fit-content;

                                    &:after {
                                        content: '';
                                        height: 1px;
                                        width: 0;
                                        background: var(--orange);
                                        transition: width 0.3s ease;
                                        position: absolute;
                                        bottom: -5px;
                                        left: 0;
                                    }
                                }
                            }

                            img {
                                width: 100px !important;
                                height: 100% !important;
                                object-fit: cover;
                                border-radius: var(--border-radius);

                                @media (min-width: 992px) {
                                    width: 150px !important;
                                }
                            }
                        }
                    }
                }

                .splide__arrows {
                    display: flex;
                    position: absolute;
                    flex-direction: row-reverse;
                    bottom: -20%;
                    right: 50%;

                    @media (min-width: 992px) {
                        bottom: 20px;
                        right: -65px;
                    }

                    .splide__arrow {
                        background-color: transparent !important;
                        transition: var(--transition);

                        >svg {
                            display: none;
                        }

                        &:before {
                            content: '';
                            display: inline-block;
                            width: 20px;
                            height: 10px;
                            background-image: url('../../img/arrow_orange.svg');
                            background-size: contain;
                            background-repeat: no-repeat;
                            transition: var(--transition);
                        }

                        &.splide__arrow--prev {
                            left: -40px;

                            &:before {
                                transform: scale(-1);
                            }
                        }

                        &.splide__arrow--next {
                            right: -40px;
                        }
                    }
                }
            }
        }
    }
}