.bloc-title-entreprise .wp-block-heading {
    position: relative;
    font-weight: 900;
    font-size: clamp(20px, 4vw, 40px);
    line-height: 1;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bloc-title-entreprise p {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 500;
}

.expertise-section {
    overflow: hidden;
}

.expertise-section > .wp-block-group__inner-container {
    position: relative;
    z-index: 1;
    background-color: #E4E4E4;
    padding: clamp(50px, 5vw, 80px) 15px;
}

.expertise-section .bloc-title-entreprise .wp-block-heading {
    color: #1d3c6a;
}

.expertise-title::before {
    content: '';
    position: absolute;
    left: 104.4%;
    top: 50%;
    transform: translate(0, -50%);
    width: 100%;
    background-color: #00B2C0;
    height: 2px;
}

.expertise-title::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    left: 103%;
    top: 50%;
    transform: translate(0, -50%);
    border: 2px solid #00B2C0;
}

.expertise-section .svg-bas-page {
    display: block !important;
    position: absolute;
    z-index: -1;
    left: 0;
    top: 79%;
}

.bloc-title-entreprise {
    max-width: 52%;
    margin: 0 auto;
}

.bloc-title-entreprise * {
    text-align: right;
}

.expertise-grid {
    gap: 31px;
    margin-top: clamp(30px, 5vw, 80px);
}

.expertise-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0px 0px 8px 0px #00000040;
    ;
    border: none;
}

.card-title {
    font-family: 'intro';
    color: #00B2C0;
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 40px;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-list li {
    position: relative;
    padding-left: 15px;
    font-weight: 600;
    font-size: 18px;
}

.card-list li + li {
    margin-top: 5px;
}

.card-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.expertise-section .wp-block-buttons {
    margin-top: clamp(30px, 5vw, 80px);
}

.wp-block-button.button-expertise a.wp-element-button {
    font-family: 'intro';
    font-weight: bold;
    background-color: #00B2C0;
    color: white;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 16px;
}

/* MOBILE ACCORDEONS */
@media (max-width: 768px) {
    .expertise-grid { 
        display: flex; 
        flex-direction: column; 
        gap: 15px;
    }

    .expertise-section .bloc-title-entreprise {
        max-width: 100%;
    }

    .expertise-section .svg-bas-page {
        display: none !important;
    }

    .bloc-title-entreprise .wp-block-heading,
    .bloc-title-entreprise p {
    max-width: 100%;
    text-align: left;
    }

    .expertise-title::after,
    .expertise-title::before {
        content: none;
    }

    
    .expertise-card { 
        padding: 0; 
        margin-bottom: 15px;
        cursor: pointer;
        overflow: hidden;
        border-radius: 8px;
    }
    
    .card-title { 
        margin: 0; 
        padding: 30px 40px;
        position: relative;
        text-align: left;
    }

    .card-title::after {
        content: ""; position: absolute; right: 40px; top: 50%;
        width: 16px; height: 16px; border-right: 1px solid #1d3c6a;
        border-bottom: 1px solid #1d3c6a; transform: translateY(-85%) rotate(45deg);
        transition: 0.3s;
    }

    .card-list { 
        max-height: 0; 
        overflow: hidden; 
        transition: all 0.3s ease-out;
    }

    .expertise-card.is-open .card-list { 
        max-height: 500px; 
        padding: 0 20px 20px 20px !important;
    }

    .expertise-card.is-open .card-title::after { 
        transform: translateY(-25%) rotate(-135deg); 
    }
}

.vehicules-section > .wp-block-group__inner-container {
    background-color: #002854;
    padding: clamp(50px, 5vw, 80px) 15px;
}

.vehicules-section .plyr {
    margin-top: 0;
}

.vehicules-section .wp-block-heading::before {
    content: '';
    position: absolute;
    right: 106%;
    top: 50%;
    transform: translate(0, -50%);
    width: 100%;
    background-color: #00B2C0;
    height: 2px;
}

.vehicules-section .wp-block-heading::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
   left: -53px;
    top: 50%;
    transform: translate(0, -50%);
    border: 2px solid #00B2C0;
}

.vehicules-section .bloc-title-entreprise {
    max-width: 60%;
}

.vehicules-section .bloc-title-entreprise * {
    color: #ffffff;
    text-align: left;
}

.vehicules-section .plyr__video-embed {
    position: relative;
    margin-top: 80px;
    border-radius: 40px;
    overflow: hidden;
}

.vehicules-section #player {
    padding: 0 50px;
}

.vehicules-section .plyr__control.plyr__control--overlaid {
    background-color: transparent;
}

.vehicules-section .plyr__control.plyr__control--overlaid svg {
    height: 120px;
    width: 120px;
}

@media screen and (max-width:768px) {
    .vehicules-section .bloc-title-entreprise {
        max-width: 100%;
    }

    .vehicules-section > .wp-block-group__inner-container {
        padding-bottom: 30px;
    }

    .vehicules-section #player {
        padding: 0;
    }

    .vehicules-section .plyr__video-embed {
        margin-top: 30px;
        border-radius: 10px;
    }

    .vehicules-section .plyr__control.plyr__control--overlaid svg {
        height: 60px;
        width: 60px;
    }
}

/* TEAM SECTION */

.bms-team-section {
    padding: 80px 0;
    background: #fff;
}

.bms-team-section .team-swiper {
    margin-top: 80px;
}

.bms-team-section .bloc-title-entreprise {
    max-width: 1200px;
    padding: 0 15px;
}

.bms-team-section .bloc-title-entreprise * {
    text-align: left;
}

.team-container { 
    max-width: 1200px; margin: 0 auto; position: relative; 
}

.bms-team-section .bloc-title-entreprise .wp-block-heading {
    width: fit-content;
}

.bms-team-section .bloc-title-entreprise .wp-block-heading::before {
    content: '';
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translate(0, -50%);
    width: 600%;
    background-color: #00B2C0;
    height: 2px;
}

.bms-team-section .bloc-title-entreprise .wp-block-heading::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    right: -47px;
    top: 50%;
    transform: translate(0, -50%);
    border: 2px solid #00B2C0;
}

.member-card { text-align: center; }

.bms-team-section .swiper-slide {
    margin-top: 0 !important;
}

.bms-team-section .swiper-slide .swiper-button-prev {
    left: 0;
    color: #000;
}

.bms-team-section .swiper-slide .swiper-button-next {
    right: 0;
    color: #000;
}

.member-image {
    width: 155px;
    height: 155px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.member-image img {
     width: 100%; height: 100%; object-fit: cover; 
}

.member-info h3 { 
    font-family: 'intro';
    color: #002854; 
    font-size: 20px; 
    font-weight: 900; 
    text-transform: uppercase;
    margin-bottom: 10px; 
    line-height: 1;
}

.member-info :where(.is-layout-constrained) > * {
    margin-top: 0;
}

.member-info .role { 
    color: #00B2C0; 
    font-size: 18px;
    font-weight: 600;
 }

.member-info .email { 
    text-decoration: underline; 
    font-size: 18px;
}

@media (max-width: 900px) {
    .member-card {
        position: relative;
        height: 450px;
        border-radius: 8px;
        overflow: hidden;
    }

    .bms-team-section .swiper-slide .swiper-button-prev,
    .bms-team-section .swiper-slide .swiper-button-next {
        color: #fff;
    }

    .bms-team-section .team-swiper {
        margin-top: 30px;
        margin-left: 15px;
    }

    .member-image {
        width: 100%; height: 100%;
        border-radius: 0;
        position: absolute; top: 0; left: 0;
    }

    .member-info {
        position: absolute;
        bottom: 0; left: 0; width: 100%;
        padding: 40px 20px 20px;
        background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
        text-align: left;
        color: #fff;
    }

    .member-info h3, .member-info .email { color: #fff !important; }
    .member-info .email { font-size: 16px; }
    .member-info h3 { font-size: 20px; }

    /* Flèches custom sur mobile */
    .swiper-button-prev::after, .swiper-button-next::after {
        font-size: 20px; color: #fff;
    }
}

@media (max-width: 768px) {

    .bms-team-section {
        padding-top: 50px;
        padding-bottom: 15px;
    }

    .bms-team-section .bloc-title-entreprise .wp-block-heading::before,
    .bms-team-section .bloc-title-entreprise .wp-block-heading::after {
        content: none;
    }

    .member-card {
        height: 360px;
    }
}

/* SECTION SERVCES */

.services-section {
    position: relative;
    padding: clamp(50px, 5vw, 80px) 15px;
}

.services-section .bloc-title-entreprise {
    max-width: 58%;
}

.services-section .bloc-title-entreprise .wp-block-heading::before {
    content: '';
    position: absolute;
    left: 104.4%;
    top: 50%;
    transform: translate(0, -50%);
    width: 100%;
    background-color: #00B2C0;
    height: 2px;
}

.services-section .bloc-title-entreprise .wp-block-heading::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    left: 103%;
    top: 50%;
    transform: translate(0, -50%);
    border: 2px solid #00B2C0;
}

.services-section .wp-block-columns {
    margin-top: clamp(30px, 5vw, 80px);
    gap: 31px;
}

.services-section .wp-block-columns .wp-block-group {
    position: relative;
    height: 540px;
    border-radius: 10px;
    overflow: hidden;
}

.services-section .wp-block-columns .wp-block-group img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-section .wp-block-columns .wp-block-group:before {
    content: '';
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 40, 84, 0) 65.28%, #002854 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.services-section .wp-block-columns .wp-block-group p {
   font-family: 'intro';
   font-weight: 900;
   font-size: 20px;
   text-align: right;
   line-height: 1;
   text-transform: uppercase;
   color: #fff;
   position: absolute;
   z-index: 2;
   bottom: 30px;
   right: 30px;
}

.services-section .svg-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
}

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

    .services-section {
        background-color: #E4E4E4;
        padding-bottom: 15px;
    }

    .services-section .bloc-title-entreprise {
        max-width: 100%;
    }

    .services-section .bloc-title-entreprise .wp-block-heading::before,
    .services-section .bloc-title-entreprise .wp-block-heading::after {
        content: none;
    }

    .services-section .wp-block-columns .wp-block-group {
        height: 200px;
        border-radius: 8px;
    }

    .services-section .wp-block-columns .wp-block-group p {
        right: unset;
        bottom: 15px;
        left: 15px;
        text-align: left;
    }

    .services-section .wp-block-columns {
        gap: 15px;
    }

    .services-section .wp-block-columns .wp-block-group:before {
        content: '';
        height: 100%;
        width: 100%;
        background: linear-gradient(180deg, rgba(0, 61, 120, 0.05) 64.91%, #002854 87.72%);
        background-blend-mode: multiply;
    }

    .services-section .svg-bg {
        display: none;
    }
}


/* BLOC MARQUES */

.bloc-marques {
    padding: 50px;
}

.bloc-marques .wp-block-group__inner-container {
    width: 100%;
    height: 100%;
}

.marque-card {
    position: relative;
    width: 100%;
    height: 535px;
    border-radius: 40px;
    overflow: hidden;
}

.marque-card + .marque-card {
    margin-top: 30px;
}

.marque-card:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(93.92deg, #002854 15.55%, rgba(0, 40, 84, 0) 67.5%);
    z-index: 1;
}

.marque-card img {
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
}

.marque-card .bloc-txt {
    position: absolute;
    left: 40px;
    bottom: 115px;
    z-index: 2;
}

.marque-card .wp-block-buttons {
    position: absolute;
    bottom: 40px;
    z-index: 2;
}

.marque-card .bloc-txt .p-heading {
    font-family: 'intro';
    font-weight: 900;
    color: #fff;
    font-size: 20px;
    text-transform: uppercase;
}

.marque-card .wp-element-button {
    padding: 15px 44px 15px 40px;
    background-color: #00B2C0;
    border-radius: 0;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    color: #fff;
    font-size: 20px;
    font-family: 'intro';
    font-weight: 900;
    cursor: pointer;
}

.marque-card .bloc-txt p:not(.p-heading) {
    color: #E4E4E4;
    font-size: 20px;
    margin-top: 10px;
}

@media screen and (max-width:768px) {
    .bloc-marques {
        padding: 15px 5px 30px 5px;
    }

    .marque-card {
        height: 226px;
        border-radius: 20px;
    }

    .marque-card .bloc-txt {
        left: 20px;
        bottom: 100px;
    }

    .marque-card .bloc-txt p:not(.p-heading) {
        margin-top: 0;
    }

    .marque-card .wp-element-button {
       padding: 10px 30px 10px 20px;
    }

    .marque-card + .marque-card {
        margin-top: 15px;
    }
}

/* BLOC CAROUSEL LOGOS */ 

.carousel-logos {
    background-color: #E4E4E4;
    padding: 80px 15px;
}

.carousel-logos .wp-block-group__inner-container {
    max-width: 1300px;
    margin: 0 auto;
}

.carousel-logos .wp-block-heading {
    position: relative;
    font-weight: 900;
    font-size: clamp(20px, 4vw, 40px);
    line-height: 1;
    text-transform: uppercase;
    width: fit-content;
}

 .carousel-logos .swiper-slide {
   
    margin: unset;
    display: flex;
    justify-content: center;
    align-items: center;
} 

.carousel-logos .swiper-grid>.swiper-wrapper {
    align-items: center;
}

.carousel-logos .wp-block-heading::before {
    content: '';
    position: absolute;
    left: 110%;
    top: 50%;
    transform: translate(0, -50%);
    width: 300%;
    background-color: #00B2C0;
    height: 2px;
}

.carousel-logos .wp-block-heading::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    left: 108%;
    top: 50%;
    transform: translate(0, -50%);
    border: 2px solid #00B2C0;
}

.carousel-logos .container-logos {
    margin-top: 50px;
}

.carousel-logos .swiper-button-next,
.carousel-logos .swiper-button-prev {
    color: #002854;
}

.carousel-logos .swiper-wrapper {
    padding-bottom: 50px;
    margin: unset;
}

.carousel-logos .swiper-button-next {
    right: 0;
    top: 40%;
}

.carousel-logos .swiper-button-prev {
    left: 0;
    top: 40%;
}

.carousel-logos .container-logos img {
    max-height: 115px;
    width: auto !important;
    object-fit: contain !important;
}


@media screen and (max-width:768px) {
    .carousel-logos .wp-block-heading::after,
    .carousel-logos .wp-block-heading::before {
        content: none;
    }

    .carousel-logos .swiper-button-next,
    .carousel-logos .swiper-button-prev {
    display: none
    }
    
    .carousel-logos {
        padding: 30px;
    }

    .carousel-logos .container-logos img {
        max-height: 100px;
    }
    

    .carousel-logos .container-logos {
        margin-top: 30px;
    }
}