/* =================================================================
   QUI SOMMES-NOUS — Page 523 (ex-neve)
   Styles spécifiques à la page, basés sur old/neve.css nettoyé.
   ================================================================= */

/* --- Section 2 : Image avec gradient vert --- */
.page-id-523 #section-2 .img-relative {
    background: linear-gradient(180deg, #fff 0%, #73B321 0%, #73B321 75%, #fff 75%);
}

#section-2 .img-relative img {
    position: relative;
    top: -5em;
    left: -2.5em;
}

#section-2 > div > div:nth-child(2) {
    padding-left: 2em;
}

/* --- Section 3 --- */
.page-id-523 #section-3 .col-1 > .vc_column-inner {
    padding-left: 2em;
    padding-right: 2em;
}

.page-id-523 #section-3 .img-relative {
    margin-bottom: 0 !important;
}

#section-3 .img-relative img {
    position: relative;
    left: 2.5em;
    z-index: 99;
    display: none;
}

/* --- Section 4 --- */
.page-id-523 #section-4 .img-relative {
    background: linear-gradient(180deg, #fff 0%, #73B321 0%, #73B321 85%, #fff 85%);
}

#section-4 > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) {
    padding-left: 20px;
}

.page-id-523 #section-4 .border-title {
    text-align: left;
    padding-top: 1%;
    padding-left: 15px;
}

#section-4 .img-relative img {
    position: relative;
    top: -2em;
    left: -2em;
}

#section-4 > div:nth-child(1) > div:nth-child(2) {
    padding-left: 30px;
}

/* --- Section 5 --- */
.page-id-523 #section-5 .img-relative {
    background: linear-gradient(180deg, #fff 0%, #73B321 0%, #73B321 85%, #fff 85%);
}

#section-5 .img-relative img {
    position: relative;
    top: -2em;
    right: 2em;
}

/* --- Titres & border-title --- */
.page-id-523 #section-4 .border-title,
.page-id-523 #section-5 .border-title {
    text-align: left;
}

/* --- Lignes horizontales (hr) --- */
.page-id-523 hr {
    background: #73B321;
    height: 5px;
    left: -20px;
    position: relative;
    width: calc(100% + 20px);
    border: none;
}

.page-id-523 #section-5 hr,
.page-id-523 #section-4 hr {
    background: #ADCB62;
}

/* --- Boutons "En savoir plus" WPBakery (orange → vert) --- */
.page-id-523 .ubtn {
    background: #73B321 !important;
}

.page-id-523 .ubtn:hover {
    background: #ADCB62 !important;
}

/* --- E3 : texte noir dans les encadrés verts (#border-rangee) --- */
.page-id-11507 #border-rangee .wpb_column .wpb_text_column p {
    color: #525024 !important;
}

/* --- Section LGMCO (E2) — couleurs LGMCO : orange #D9521A, navy #1E3D50 --- */
.page-id-11507 #section-lgmco .img-relative {
    margin-bottom: 0 !important;
    background: #F5F5F5;
    background: linear-gradient(180deg, #F5F5F5 10%, #D9521A 10%, #D9521A 90%, #F5F5F5 90%);
}
.page-id-11507 #section-lgmco .img-relative img {
    display: block;
    position: relative;
    top: -2em;
    right: -2em;
}
.page-id-11507 #section-lgmco .col-1 > .vc_column-inner {
    padding-left: 2em;
    padding-right: 2em;
}
.page-id-11507 #section-lgmco hr {
    background: #D9521A !important;
}
.page-id-11507 #section-lgmco .border-title h2 {
    color: #1E3D50 !important;
}
.page-id-11507 #section-lgmco a.btn-service {
    background: #D9521A !important;
}
.page-id-11507 #section-lgmco a.btn-service:hover {
    background: #1E3D50 !important;
}
.page-id-11507 #section-lgmco h2:before {
    background-image: url(/wp-content/uploads/2021/06/before-e1624290635975.png);
}

/* --- Section-3 copié depuis Verespace (image + gradient + texte) --- */
.page-id-11507 #section-3 .img-relative {
    margin-bottom: 0 !important;
    background: #F5F5F5;
    background: linear-gradient(180deg, #F5F5F5 10%, #73B321 10%, #73B321 90%, #F5F5F5 90%);
}

.page-id-11507 #section-3 .img-relative img {
    display: block;
    position: relative;
    top: -2em;
    left: -2em;
}

.page-id-11507 #section-3 .col-1 > .vc_column-inner {
    padding-left: 2em;
    padding-right: 2em;
}

@media screen and (max-width: 800px) {
    .page-id-11507 #section-lgmco .img-relative img {
        position: inherit !important;
        top: 0; right: 0;
    }
    .page-id-11507 #section-lgmco .wpb_single_image { text-align: center; }
    .page-id-11507 #section-3 .img-relative img {
        position: inherit !important;
        top: 0;
        left: -10px;
    }
    .page-id-11507 #section-3 .wpb_single_image {
        text-align: center;
    }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media screen and (max-width: 800px) {
    #section-2 .img-relative img,
    #section-3 .img-relative img,
    #section-4 .img-relative img {
        position: inherit !important;
        top: 0;
        left: -10px;
    }

    #section-3 .wpb_single_image {
        text-align: center;
    }

    #section-3 .img-relative img {
        position: relative;
        left: 0;
        z-index: 99;
        display: block;
    }

    #section-4 .border-title {
        text-align: center;
        padding-top: 5%;
    }

    #section-5 .border-title {
        text-align: center;
        padding: 0;
    }

    section#section-4 {
        margin-top: 0 !important;
        padding-top: 35px !important;
    }

    #section-5 .img-relative img {
        position: relative;
        top: 0;
        right: 0;
    }

    #section-4 > div:nth-child(1) > div:nth-child(2) {
        padding-left: 15px;
    }

    .page-id-523 #section-4 .border-title,
    .page-id-523 #section-5 .border-title {
        text-align: left;
        padding: 0 15px;
    }
}

@media screen and (max-width: 475px) {
    h2 {
        font-size: 28px !important;
    }
}
