/* carousel top */
#carouselExampleIndicators .carousel-item a {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background-color: #D3D828;
    color: black;
    font-weight: 900;
    border: none;
    font-size: 13px;
    border-radius: 28px;
    z-index: 2;
    text-decoration: none;
}

#carouselExampleIndicators .carousel-item img {
    height: 200px;
    object-fit: cover;
    z-index: 0;
}

.carousel-indicators {
    z-index: 9999;
    margin-bottom: 0 !important;
}

/* #carouselExampleIndicators .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
} */

#carouselExampleIndicators {
    height: auto;
}

#carouselExampleIndicators .carousel-inner {
    height: 100%;
}

#carouselExampleIndicators .carousel-item img {
    z-index: 0;
    height: 195px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* About */
.container-about {
    display: grid;
    grid-template-areas: "images-about text-about";
    grid-template-columns: 1fr 4fr;
    gap: 6px;
    margin-top: 10px;
    position: relative;
    padding: 5px;
}

.images-about {
    grid-area: images-about;
}

.text-about {
    grid-area: text-about;
}

.container-about h1 {
    font-size: 16px !important;
    margin: 0;
    font-weight: 800;
}

.container-about p {
    font-size: 10px;
    line-height: 1.5;
}

.container-about .about-team {
    padding: 10px 20px;
    background-color: #D3D828;
    color: black;
    font-weight: 900;
    border: none;
    font-size: 9px;
    border-radius: 28px;
    box-shadow: rgb(0 0 0 / 39%) 0px 3px 8px;
    text-decoration: none;
}

/* Expertises */
.expertises {
    padding: 5px;
    text-align: center;
    margin-top: 20px;
    position: relative;
}

.expertises h1 {
    text-transform: uppercase;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 5px solid;
    border-image: linear-gradient(to right, var(--couleur-tertiaire), var(--couleur-secondaire));
    border-image-slice: 1;
    top: 20px;
    position: relative;
    font-size: 18px;
    font-weight: 800;
}

.expertises-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    margin-top: 20px;
}

.expertise-item {
    position: relative;
}

.expertise-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 300px;
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    max-height: 300px;
    background-color: rgb(0 0 0 / 50%);
    z-index: 1;
}

.expertise-item h2,
.expertise-item p,
.expertise-item a,
.expertise-item .icon i {
    position: absolute;
    z-index: 2;
    color: white;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
}

.expertise-item h2 {
    top: 50px;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 900;
}

.expertise-item p {
    top: 85px;
    font-size: 13px;
    width: 95%;
}

.expertise-item a {
    bottom: 8px;
    text-decoration: none;
    font-weight: bolder;
    font-size: 12px;
}

.expertise-item .icon i {
    top: 6px;
    font-size: 17px;
}

.expertise-item .icon {
    width: 37px;
    height: 37px;
    background-color: rgb(211 216 40);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.expertise-item .icon i {
    font-size: 20px;
    color: black;
}

/* Animation expertises */
.expertise-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.expertise-item:hover {
    transform: scale(1.05);
}

.expertise-item img {
    transition: transform 0.3s ease;
}

/* Avis Carousel */
.avis {
    padding: 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#carouselAvis {
    height: 500px;
}

#carouselAvis .carousel-inner,
#carouselAvis .carousel-item {
    height: 100%;
}

.carousel-avis__logo {
    width: 100px !important;
    height: auto !important;
    margin: 1.5rem 1rem;
}

.avis-wrapper {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 65%;
    left: 50%;
    transform-origin: center;
    height: 100%;
    width: 100%;
    z-index: 999;
    padding-inline: 1rem;
}

#carouselAvis img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#carouselAvis .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 81%);
    z-index: 1;
}

.avis-etoiles {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    gap: 6px;
}

.avis-etoiles img {
    width: 16px !important;
    height: 16px !important;
}

.avis-texte {
    z-index: 2;
    font-size: 10px;
    color: white;
    font-weight: 800;
    line-height: 1.2;
    width: 100%;
}

.carousel-avis__logo {
    width: 120px !important;
}

/* partenaires */
.partenaires {
    padding: 0;
    text-align: center;
    margin-top: 70px;
    position: relative;
}

.partenaires h1 {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 19px;
}

.partenaires p {
    font-weight: 700;
    font-size: 14px;
}

.img-partenaire {
    top: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.img-partenaire a {
    background-color: transparent !important;
}

.img-partenaire img {
    width: 100px !important;
    filter: drop-shadow(5px 4px 3px #00000030);
}

/* .partenaires a {
    padding: 10px 20px;
    background-color: #D3D828;
    color: black;
    font-weight: 900;
    border: none;
    font-size: 12px;
    border-radius: 28px;
    top: 30px;
    text-decoration: none;
    position: relative;
} */


/* Media Queries */
@media (min-width: 576px) {

    #carouselExampleIndicators .carousel-item img {
        z-index: 0;
        height: 315px;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }


    /* About */
    .container-about h1 {
        font-size: 20px;
    }

    .container-about p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* expertises */
    .expertise-item p {
        font-size: 18px;
        top: 135px;
    }

    .expertise-item a {
        font-size: 20px;
    }

    .expertise-item h2 {
        font-size: 19px;
        top: 70px;
    }

    .expertise-item .icon {
        width: 50px;
        height: 50px;
    }

    /* partenaire */
    .img-partenaire img {
        width: 190px !important;
    }
}

@media (min-width: 768px) {
    #carouselExampleIndicators .carousel-item img {
        z-index: 0;
        height: 395px;
        width: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (min-width: 992px) {

    /* carousel */
    #carouselExampleIndicators .carousel-item a {
        position: absolute;
        top: 74%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 10px 20px;
        background-color: #D3D828;
        color: black;
        font-weight: 900;
        border: none;
        font-size: 16px;
        border-radius: 28px;
        z-index: 2;
        text-decoration: none;
    }

    #carouselExampleIndicators {
        height: 615px;
    }

    #carouselExampleIndicators .carousel-item::before {
        height: 554px;

    }

    #carouselExampleIndicators .carousel-item button {
        top: 0;
        font-size: 18px;
        position: sticky;
    }

    #carouselExampleIndicators .carousel-item img {
        height: 555px;
    }

    .carousel-item img {
        height: 700px;
        object-fit: cover;
    }

    /* .carousel-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(0 0 0 / 77%);
        pointer-events: none;
    } */
    .carousel-item {
        position: relative;
    }

    .contact-button {
        position: absolute;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        padding: 10px 20px;
        background-color: #D3D828;
        color: black;
        font-weight: 900;
        border: none;
        font-size: 19px;
        border-radius: 28px;
    }

    .contact-button:hover {
        background-color: #0056b3;
    }

    /* .carousel-control-prev,
    .carousel-control-next {
        display: none!important;
    } */

    /* About */
    .container-about {
        display: grid;
        grid-template-columns: 2fr 3fr;
        margin-top: 85px;
    }

    .images-about {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .container-about .about-team {
        font-size: 20px;
        border-radius: 28px;
    }

    .container-about img {
        width: 333px !important;
        height: 400px !important;
    }

    .container-about h1 {
        font-size: 38px !important;
        font-weight: 900;
    }

    .container-about p {
        font-size: 22px;
        line-height: 1.5;
    }

    /* Expertises */
    .expertises-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 30px;
        margin: 80px auto 0 auto;
        width: 80%;
    }

    .expertise-item {
        position: relative;
        box-shadow: 0 4px 10px rgb(0 0 0 / 55%);
    }

    .expertise-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 100%;
        height: 100%;
        background-color: rgb(0 0 0 / 50%);
        z-index: 1;
    }

    .expertise-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .expertises h1 {
        font-size: 42px;
        font-weight: 900;
    }

    .expertise-item h2 {
        top: 100px;
        font-size: 2.2rem;
        font-weight: 800;
    }

    .expertise-item p {
        top: 180px;
        font-size: 17px;
        width: 100%;
    }

    .expertise-item a {
        bottom: 21px;
        font-size: 21px;
    }

    .expertise-item .icon {
        width: 60px;
        height: 60px;
        top: 12px;
    }

    .expertise-item .icon i {
        font-size: 30px;
        color: black;
    }

    /* Avis */
    #carouselAvis img {
        width: 100%;
        object-fit: cover;
    }

    #carouselAvis .carousel-item::before {
        height: 100%;
    }

    .avis .carousel-item img {
        height: 480px;
        object-fit: cover;
        width: 100%;
    }

    .avis-etoiles img {
        width: 24px !important;
        height: 24px !important;
    }

    .avis-texte {
        font-size: 28px;
        color: white;
        font-weight: 800;
        line-height: 1.9;
    }

    .avis-texte .avis-carousel {
        height: auto;
    }

    .avis-texte {
        font-size: 14px;
        line-height: 1.5;
        top: 35%;
    }

    /* Partenaire */
    .img-partenaire img {
        width: 315px !important;
        height: auto !important;
    }

    /* .partenaires a {
        font-size: 20px;
    } */
}

.partner-card img {
    height: 150px;
}

.swiper-carousel {
    padding-bottom: 32px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.swiper-slide {
    width: 220px !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.swiper-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.swiper-carousel .slide-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 88px 16px 24px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75));
    border-radius: 0 0 8px 8px;
    color: white;
}

.swiper-pagination {
    position: static !important;
}

.swiper-pagination-bullet-active {
    background: white !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    display: none !important;
}

.swiper-carousel-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px !important;
    height: auto !important;
    object-fit: contain;
    pointer-events: none;
}

.carousel-container {
    width: 100%;
    max-width: 1200px;
    height: 450px;
    position: relative;
    perspective: 1000px;
    margin-top: 80px;
}

.carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-x: hidden;
}

.card {
    position: absolute;
    width: 800px;
    height: 360px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 50%);
    z-index: 1;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.center {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
}

.card.center img {
    filter: none;
}

.card.left-2 {
    z-index: 1;
    transform: translateX(-400px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.card.left-2 img {
    filter: grayscale(100%);
}

.card.left-1 {
    z-index: 5;
    transform: translateX(-200px) scale(0.9) translateZ(-100px);
    opacity: 0.9;
}

.card.left-1 img {
    filter: grayscale(100%);
}

.card.right-1 {
    z-index: 5;
    transform: translateX(200px) scale(0.9) translateZ(-100px);
    opacity: 0.9;
}

.card.right-1 img {
    filter: grayscale(100%);
}

.card.right-2 {
    z-index: 1;
    transform: translateX(400px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.card.right-2 img {
    filter: grayscale(100%);
}

.card.hidden {
    opacity: 0;
    pointer-events: none;
}

.member-info {
    text-align: center;
    margin-top: 40px;
    transition: all 0.5s ease-out;
}

.member-name {
    color: rgb(8, 42, 123);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.member-name::before,
.member-name::after {
    content: "";
    position: absolute;
    top: 100%;
    width: 100px;
    height: 2px;
    background: rgb(8, 42, 123);
}

.member-name::before {
    left: -120px;
}

.member-name::after {
    right: -120px;
}

.member-role {
    color: #848696;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 0;
    margin-top: -15px;
    position: relative;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--couleur-secondaire);
    opacity: 0.2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--couleur-secondaire);
    opacity: 1;
    transform: scale(1.2);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--couleur-secondaire);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
    outline: none;
    padding-bottom: 4px;
}

.nav-arrow:hover {
    background: var(--couleur-secondaire);
    opacity: 0.8;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
    left: 20px;
    padding-right: 3px;
}

.nav-arrow.right {
    right: 20px;
    padding-left: 3px;
}

@media (max-width: 768px) {
    .about-title {
        font-size: 4.5rem;
    }

    .card {
        width: 200px;
        height: 400px;
    }

    .card.left-2 {
        transform: translateX(-250px) scale(0.8) translateZ(-300px);
    }

    .card.left-1 {
        transform: translateX(-120px) scale(0.9) translateZ(-100px);
    }

    .card.right-1 {
        transform: translateX(120px) scale(0.9) translateZ(-100px);
    }

    .card.right-2 {
        transform: translateX(250px) scale(0.8) translateZ(-300px);
    }

    .member-name {
        font-size: 2rem;
    }

    .member-role {
        font-size: 1.2rem;
    }

    .member-name::before,
    .member-name::after {
        width: 50px;
    }

    .member-name::before {
        left: -70px;
    }

    .member-name::after {
        right: -70px;
    }

    .partner-card img {
        height: 50px;
    }
}


@media (min-width: 1200px) {
    #carouselExampleIndicators .carousel-item a {
        position: absolute;
        top: 78%;
        font-size: 20px;

    }

    #carouselExampleIndicators .carousel-item img {
        height: 690px;
    }

    #carouselExampleIndicators .carousel-item::before {
        height: 690px;
    }
}

@media (min-width: 1400px) {}

@media (min-width: 1700px) {
    .text-about {
        width: 80%;
    }
}