﻿.courbe-index {
    display: block;
    z-index: -1;
    position: absolute;
    contain: layout style paint;
    max-width: 100%;
    height: 670px;
    top: 220px;
    left: -40px;
}

.expertise-content {
    min-height: 8rem;
}

.bloc1-hero-container {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 390 / 170.9;
}

.bloc1-title1 {
    font-size: 0.6rem;
}

.bloc1-title2 {
    font-size: 0.5rem;
}

.bloc1-div {
    right: 6%;
    width: 20%
}

.text {
    font-size: 0.3rem;
}

.bloc2-p {
    width: 100%;
}

.bloc3-title {
    font-size: 0.6rem;
}

.bloc3-text {
    font-size: 0.5rem;
    width: 100% !important;
}

.bloc3-img {
    width: 500px;
    height: auto;
}

.bloc4-title1 {
    font-size: 1rem;
}

.bloc4-title2 {
    font-size: 0.6rem;
}

.bloc4-img {
    width: 80px;
    height: auto;
}

.comment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 1055;
}

    .comment-overlay:target {
        opacity: 1;
        pointer-events: auto;
    }

.comment-box {
    background: #fff;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    margin: 10vh auto;
    padding: 2rem;
    border-radius: .75rem;
    position: relative;
}

.comment-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    text-decoration: none;
    color: #000;
}

.comment-preview {
    max-width: 600px;
}


.bloc7-p {
    width: 75% !important;
}

/* SM */
@media (min-width: 576px) {
    .courbe-index {
        display: block;
        z-index: -1;
        position: absolute;
        width: 100%;
        height: 980px;
        top: 30px;
        left: -40px;
    }

    .bloc1-title1 {
        font-size: 1rem;
    }

    .bloc1-title2 {
        font-size: 1rem;
    }

    .bloc1-div {
        right: 6%;
        width: 20%
    }

    .text {
        font-size: clamp(0.5rem, 1.1vw, 1rem);
    }

    .bloc3-title {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }

    .bloc3-text {
        font-size: 0.6rem;
        width: 100% !important;
    }

    .bloc4-title1 {
        font-size: clamp(1.5rem, 2vw, 2rem);
    }

    .bloc4-title2 {
        font-size: 0.8rem;
    }

    .bloc4-img {
        width: 100px;
        height: auto;
    }
}

/* MD */
@media (min-width: 768px) {
    .courbe-index {
        display: block;
        z-index: -1;
        position: absolute;
        width: 100%;
        height: 1000px;
        top: 100px;
        left: -40px;
    }

    .bloc1-p {
        font-size: 0.8rem;
        margin-top: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
}

/* LG */
@media (min-width: 992px) {
    .courbe-index {
        display: block;
        z-index: -1;
        position: absolute;
        width: 100%;
        height: 1650px;
        top: -40px;
        left: -10px;
    }

    .bloc1-hero-container {
        aspect-ratio: 1335 / 585;
    }

    .bloc1-title1 {
        font-size: 1.5rem;
    }

    .bloc1-title2 {
        font-size: 1.2rem;
    }

    .bloc1-div {
        right: 3%;
        width: 20%
    }

    .bloc1-p {
        font-size: 0.9rem;
        margin-top: 1.6rem !important;
        margin-bottom: 1rem !important;
    }

    .bloc2-p {
        width: 75%;
    }

    .bloc3-img {
        width: auto;
        height: 200px;
    }

    .bloc3-text {
        font-size: 1rem;
        width: 50% !important;
    }

    .bloc4-img {
        width: 150px;
        height: auto;
    }

    .bloc4-title2 {
        font-size: 1.3rem;
    }

    .bloc7-p {
        width: 70% !important;
    }
}

/* XL */
@media (min-width: 1200px) {
    .courbe-index {
        display: block;
        z-index: -1;
        position: absolute;
        width: 100%;
        height: 1750px;
        top: 0px;
        left: 0px;
    }

    .bloc1-title1 {
        font-size: 1.8rem;
    }

    .bloc1-title2 {
        font-size: 1.7rem;
    }

    .bloc1-div {
        right: 3%;
        width: 20%
    }

    .bloc1-p {
        font-size: 0.9rem;
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
}

/* XXL */
@media (min-width: 1400px) {
    .courbe-index {
        display: block;
        z-index: -1;
        position: absolute;
        width: 100%;
        height: 1750px;
        top: 100px;
        left: 0px;
    }

    .bloc1-title1 {
        font-size: 2rem;
    }

    .bloc1-title2 {
        font-size: 1.9rem;
    }

    .bloc1-div {
        right: 3%;
        width: 20%
    }

    .bloc1-p {
        font-size: 1.3rem;
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }
}