@import url(../style.css);

#hotte {
    position: relative;


    .bloc2 {
        position: relative;
        background-color: var(--bleu);
        margin-top: -20vh;
        padding: 50px 0;
        z-index: 2;

        @media screen and (max-width: 1000px) {
            margin-top:0;
            height:auto;
            display: flex;
            flex-wrap: wrap-reverse;
            justify-content: flex-end;
        }
        .container {
            position: relative;
            overflow: visible;
            @media screen and (max-width: 1000px) {
                margin-bottom:80px;
            }
            p {
                color: white;
                width: 60%;
                padding-top: 20%;
                @media screen and (max-width: 1000px) {
                    width:100%;
                    padding-top: 20px;
                }
            }

            
        }
        .img-bloc2-mobile{
            position: absolute;
            right:0;
            top: 2%;
            @media screen and (max-width: 1024px) {
                width:80%;
            }
             @media screen and (max-width: 1000px) {
                display: block;
                width:90%;
                position:relative;
             }
        }
    }


    .bloc4 {
        padding-bottom: 50px;

        .container {
            margin-top: 91px;
            margin-bottom: 91px;
            
            .hrTop {
                margin-bottom: 8px;
            }

            hr {
                width: 100%;
                border: 1px solid var(--gris);
                margin: 48px 0;
                @media screen and (max-width: 1024px) {
                    margin:80px 0;
                }
            }

            h2 {
                margin: 28px 0 87px 0;
                color: var(--gris);
                @media screen and (max-width: 1024px) {
                    margin: 28px 0 50px 0;
                }
            }

            .hotteContainer {
                margin-bottom: 50px;
                h2 {
                    margin-bottom: 10px;
                }

                .imgContainer {
                    padding-top: 30px;

                    .autoCropImage {
                        width: 55%;
                        margin: 0 auto;
                    }
                }

                .contenu {
                    padding-top: 75px;

                    @media screen and (max-width: 1000px) {
                        padding-top: 0;
                    }
                }

                .hotte {
                    display: flex;
                    gap: 125px;
                    @media screen and (max-width: 1024px) {
                        gap:50px;
                    }
                    @media screen and (max-width: 1000px) {
                        flex-wrap:wrap;
                    }
                    .imgContainer {
                        width: 40%;
                        text-align: center;
                        @media screen and (max-width: 1000px) {
                            width:100%;
                        }
                        img {
                            width: 100%;
                            height: auto;
                        }
                        .autoCropImage {
                            position: relative;
                            width: 100%;
                            overflow: hidden;
                        }
                        img.width{
                            width:80%;
                            @media screen and (max-width: 500px) {
                                width:100%;
                            }
                        }

                        .filtre {
                            width: 50%;
                            height: auto;
                        }
                    }

                    .contenu {
                        width: 50%;
                        @media screen and (max-width: 1000px) {
                            width:100%;
                        }

                        h3 {
                            margin-bottom: 28px;
                            color: var(--bleu);
                        }

                        p {
                            color: var(--gris);
                            width: 75%;
                            @media screen and (max-width: 1024px) {
                                width:100%;
                            }
                        }

                        a {
                            background-color: var(--bleu);
                            @media screen and (max-width: 500px) {
                                width:auto;
                              }
                            p {
                                color: white;
                            }
                        }
                    }
                }
                .filtreContainer {
                    margin-top: 74px;
                }
            }
        }
    }

    .product-carousel {
        position: relative;
        min-height: 280px;

        .product-carousel-slide {
            display: none;

            &.is-active {
                display: block;
            }
        }

        .product-carousel-dots {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 18px;
        }

        .product-carousel-dot {
            width: 10px;
            height: 10px;
            padding: 0;
            border: 1px solid #9a9a9a;
            border-radius: 50%;
            background: #b7b7b7;
            cursor: pointer;
            transition: transform 150ms ease, background-color 150ms ease;

            &.is-active {
                background: var(--bleu);
                border-color: var(--bleu);
                transform: scale(1.5);
            }
        }
    }

}

/* Explicit selectors keep inactive F2 carousel slides out of the document flow. */
#hotte .product-carousel .product-carousel-slide {
    display: none !important;
}

#hotte .product-carousel .product-carousel-slide.is-active {
    display: block !important;
}

#hotte .product-carousel .product-carousel-dots {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* This hero image is light, so only its title and subtitle use dark text. */
#hotte .section-intro--hottefiltration-dark-text .section-intro__content h1,
#hotte .section-intro--hottefiltration-dark-text .section-intro__content h2 {
    color: #111;
}
