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

#resources {
    position: relative;

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

        @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;
            transition: transform 0.12s linear;
            will-change: transform;

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

        .contenu {
            position: sticky;
            top: 0;
            z-index: 1;
            padding-top: 70vh;

            @media screen and (max-width: 1024px) {
                padding-top: 50vh;
            }

            .hero-copy {
                max-width: 720px;
                margin-right: 0;
                transition: transform 0.12s linear;
                will-change: transform;

                @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 {
        background: #fff;
        padding: 110px 0 120px;
    }

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

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

    .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-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;
            }
        }
    }





}
