.vos-besoins-header {
    background-image: url('../images/vos-besoins-2.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    align-items: center;
    height: 250px;
    display: flex;

    &::before {
        content: '';
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: linear-gradient(90deg, rgba(16, 89, 116, 0.3) 0%, rgba(232, 247, 252, 0.25) 51%, rgba(255, 255, 255, 0.25) 100%);
    }

    & h1 {
        color: var(--white);
        font-size: 5rem;
        font-family: 'DidotBold';
        text-shadow: 1px 1px 7px #10597424;
        position: relative;
        z-index: 1;
        padding: 0 80px;
    }
}

.vos-besoins-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 80px 0;

    & h2 {
        font-size: 2.5rem;
        font-family: 'Didot';
        color: var(--black);
    }

    & hr {
        width: 60%;
        border: 0.5px solid var(--orange);
    }
}

.visage-container,
.osteo-container {
    width: 80%;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.container-boxes {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.besoins-item {
    width: 22%;
    background-color: var(--white);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: rgba(62, 147, 252, 0.067) 0px 0px 20px;
    transition: all 0.3s;
    &:hover{
        box-shadow: rgba(62, 147, 252, 0.187) 0px 0px 30px;
        transition: all 0.3s;

    }

    & img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 20px 20px 0 0;
    }

    & h3 {
        font-family: 'ProximaNovaSemiBold';
        font-size: 1.2rem;
        color: var(--black);
        padding: 10px 10px 5px 10px;
    }

    & p {
        font-family: 'ProximaNovaRegular';
        font-size: 1rem;
        color: var(--black);
        padding: 5px 10px 10px 10px;
    }

    & button {
        margin: 5px 10px 10px 10px;
    }
}

.osteo-container {
    display: flex;
    gap: 30px;
    padding-bottom: 20px;

    & .container-boxes {
        display: flex;
        gap: 30px;
        justify-content: center;
        flex-wrap: wrap;
        padding-bottom: 20px;
    }

    & .besoins-item {
        width: 60%;
        display: flex;
        flex-direction: row;
        background-color: var(--white);
        border-radius: 20px;
        box-shadow: rgba(62, 147, 252, 0.067) 0px 0px 20px;
        transition: box-shadow 0.3s;
        &:hover{
        box-shadow: rgba(62, 147, 252, 0.187) 0px 0px 30px;
        transition: box-shadow 0.3s;

    }

        & img {
            width: 50%;
            object-fit: cover;
            border-radius: 20px 0 0 20px;
            aspect-ratio: 3/2;
            height: 100%;
        }

        & h3 {
            font-family: 'ProximaNovaSemiBold';
            font-size: 1.2rem;
            color: var(--black);
            padding: 20px 20px 5px 20px;
        }

        & p {
            font-family: 'ProximaNovaRegular';
            font-size: 1rem;
            color: var(--black);
            padding: 5px 20px 20px 20px;
        }

        & button {
            margin: 5px 20px 20px 20px;
        }

        .besoins-item-textes {
            width: 50%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
    }
}


@media screen and (max-width:1280px) {

    .container-boxes {
        gap: 15px;
    }

    .besoins-item {
        width: 23%;

        & h3 {
            font-size: 1rem;
        }

        & p {
            font-size: 0.9rem;
        }
    }

    .osteo-container {
        & .besoins-item {
            width: 80%;

            & h3 {
                font-size: 1rem;
            }

            & p {
                font-size: 0.9rem;
            }
        }
    }

}

@media screen and (max-width:1024px) {
    .vos-besoins-header {
        height: 200px;
        & h1{
            font-size:4rem;
        }
    }

    .visage-container {
        gap: 20px;
    }

    .container-boxes {
        padding-bottom: 10px;
    }

    .vos-besoins-container {
        padding: 30px 0;

        & h2 {
            line-height: 1;
        }
    }

    .besoins-item {
        width: 48%;

        & img {
            height: 150px;
        }
    }

    .osteo-container {
        & .besoins-item {
            width: 100%;
        }
    }
}

@media screen and (max-width:768px) {
    .vos-besoins-header {
        background-attachment:scroll;
        height: 150px;

        & h1 {
            font-size: 3.5rem;
            padding: 0 50px;
        }
    }

    .visage-container {
        gap: 20px;
    }

    .container-boxes {
        padding-bottom: 10px;
    }

    .vos-besoins-container {
        padding: 30px 0;

        & h2 {
            line-height: 1;
            font-size: 2.5rem;
        }
    }

    .besoins-item {
        width: 48%;
        border-radius:15px;

        & img {
            height: 120px;
            border-radius:15px 15px 0 0;
        }

        & p {
            font-size: 0.8rem;
        }

        & button {
            padding: 7px 20px;
        }
    }

    .osteo-container {
        & .besoins-item {
            border-radius:15px;
            & p {
                font-size: 0.8rem;
            }
            & img{
                border-radius:15px 0 0 15px;
            }
        }
    }
}

@media screen and (max-width:480px) {
    .vos-besoins-header {
        height: 120px;
        & h1 {
            font-size: 2.5rem;
            padding:0 30px;
        }
        &::before{
            background: linear-gradient(90deg,rgba(16, 89, 116, 0.38) 0%, rgba(203, 219, 224, 0.5) 77%, rgba(188, 188, 188, 0.37) 100%);
        }
    }

    .visage-container {
        gap: 15px;
    }

    .container-boxes {
        padding-bottom: 5px;
    }

    .vos-besoins-container {
        & h2 {
            font-size: 2rem;
        }
    }

    .besoins-item {
        width: 100%;

        & img {
            height: 100px;
        }
    }

    .osteo-container {
        gap: 15px;
        padding-bottom: 5px;
        margin: 10px 0;

        & .besoins-item {
            flex-direction: column;

            & img {
                width: 100%;
                border-radius: 15px 15px 0 0;
            }

            .besoins-item-textes {
                width: 100%;
            }
        }
    }
}