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

#resources {
    position: relative;

  .bloc1 {
        position: relative;
        height: 120vh;
        z-index: 1;
        isolation: isolate;

        @media screen and (max-width: 1000px) {
            height: 125vh;
        }

        .hero-bg {
            position: absolute;
            inset: 0;
            background-image: var(--resources-hero);
            background-repeat: no-repeat;
            background-size: cover;
            background-position: right;
            background-attachment: fixed;

            @media screen and (max-width: 1000px) {
                background-image: none;
                background-position: right;
                background-attachment: scroll;
            }
        }

        .bloc1-hero-media {
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            z-index: 0;
            display: none;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;

            @media screen and (max-width: 1000px) {
                display: block;
                height: calc(var(--bloc1-hero-vh, 1vh) * 100);
            }

            img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: right center;
                transform: none;
            }
        }

        .contenu {
            position: sticky;
            top: 0;
            z-index: 2;
            padding-top: calc(70vh - 100px);
            padding-bottom: 20vh;

            .hero-copy {
                max-width: 720px;
                margin-right: 0;

                @media screen and (max-width: 1024px) {
                    max-width: 420px;
                }
            }

            h1 {
                color: #fff;
                margin-bottom: 0;

                sup {
                    font-size: 25px;
                    margin-left: 4px;
                }
            }

            h2 {
                color: white;
                margin-top: 23px;
                letter-spacing: 0;
                font-size: clamp(34px, 3.7vw, 64px);
                line-height: 0.98;
                font-weight: 300;

                @media screen and (max-width: 1024px) {
                    font-size: clamp(28px, 8vw, 46px);
                    line-height: 1.02;
                }
            }
        }
    }
    .bloc2 {
        position: relative;
        z-index: 2;
        background: #fff;
        margin-top: -20vh;
        padding: 110px 0 120px;

        @media screen and (max-width: 500px) {
            margin-top: -22vh;
        }
    }

    .resources-layout {
        display: grid;
        grid-template-columns: minmax(0, 460px) minmax(360px, 1fr);
        gap: 48px;
        align-items: start;
    }

    .resources-list {
        max-width: 560px;
    }

    .resource-logo {
        display: block;
        max-width: 100%;
        object-fit: contain;
        object-position: left center;
        margin: 0 0 24px;
    }

    .resource-logo-ecoazur {
        width: 250px;
    
    }

    .resource-logo-confort {
        width: 300px;
        padding-top: 20px;
       
    }

    .resource-logo-amutech {
        width: 250px;
        padding-top: 20px;
    
    }

    .resource-logo-text {
        padding-top: 10px;
        display: block;
        width: 350px;
        max-width: 100%;
        margin: 0 0 24px;
        color: var(--gris);
        font-size: 36px;
        line-height: 0.98;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .resources-visual {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 10px;

        img {
            width: 75%;
            height: 75%;
            display: block;
        }
    }

    .resource-title {
        color: var(--bleu);
        font-size: 30px;
        line-height: 1.05;
        letter-spacing: -0.8px;
        font-weight: 700;
        margin: 0 0 18px;

        sup {
            font-size: 0.45em;
            top: -0.8em;
            position: relative;
        }
    }

    .resource-buttons {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin: 0 0 44px;
        align-items: flex-start;
    }

    .resource-button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 8px 18px;
        background: var(--bleu);
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        line-height: 1.2;
        transition: background-color 0.2s ease-in-out;
        width: 360px;
        min-height: 40px;
        box-sizing: border-box;

        &:hover {
            background: #2d84b8;
        }
    }

    .resource-icon {
        font-size: 20px;
        line-height: 1;
        flex: 0 0 auto;
    }

    @media screen and (max-width: 1024px) {
        .bloc2 {
            padding: 90px 0;
        }

        .resources-layout {
            grid-template-columns: 1fr;
            gap: 48px;
        }
    }

    @media screen and (max-width: 640px) {
        .bloc2 {
            padding: 70px 0;
        }

        .resources-layout {
            gap: 32px;
        }

        .resource-title {
            font-size: 26px;
        }

        .resource-logo-ecoazur {
            width: 300px;
            max-width: 100%;
            height: 58px;
            margin-bottom: 18px;
        }

        .resource-logo-confort {
            width: 300px;
            max-width: 100%;
            height: 58px;
            margin-bottom: 18px;
        }

        .resource-logo-amutech {
            width: 300px;
            max-width: 100%;
            height: 58px;
            margin-bottom: 18px;
        }

        .resource-logo-text {
            width: 300px;
            max-width: 100%;
            margin-bottom: 18px;
            font-size: 36px;
        }

        .resource-button {
            width: 100%;
            min-height: 40px;
            padding: 8px 16px;
            font-size: 16px;
        }

        .resource-buttons {
            margin: 0 0 34px;
        }

        .resources-visual {
            justify-content: flex-start;

            img {
                width: 200px;
            }
        }
    }





}
