* {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS",
        sans-serif;
}

/* --- Slideshow Styles --- */

.slideshow-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    opacity: 0; /* Hidden by default */
    display: none;
    transition: opacity 1s ease-in-out; /* Fade transition */
    z-index: 1; /* Base stack level */
}

.slideshow-image.active {
    opacity: 1; /* Visible */
    display: block;
    z-index: 2; /* On top when active */
}

.partner {
    padding: 3rem 0 100px 0; /* Vertical padding */
    background-color: #f8f9fa; /* Optional background */
    position: relative; /* Good practice for positioning contexts */
}

.partner h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem; /* Adjust size as needed */
    font-weight: 600;
}

.partner span {
    display: block;
    width: 100%; /* Increased spacing below title */
    color: #333;
    text-align: center;
    margin-bottom: 5%;
    font-size: 1rem;
    font-weight: 300;
    padding: 0 25%;
}

.partner-scroll-container {
    overflow: hidden; /* THIS IS KEY: Hides the content outside the container */
    width: 100%;
    /* Optional: Add fading edges for a smoother look */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

.partner .grid {
    display: flex; /* Lays out items in a row */
    flex-wrap: nowrap; /* Prevents wrapping to the next line */
    width: fit-content; /* Makes the grid wide enough to hold all items (including duplicates) */
    /* Apply the animation */
    animation: scroll-horizontal 40s linear infinite; /* Adjust time for speed */
    will-change: transform; /* Hint for browser optimization */
}

/* Define the scrolling animation */
@keyframes scroll-horizontal {
    0% {
        transform: translateX(0%);
    }
    100% {
        /* Moves the grid left by the width of the *original* set of items */
        /* Since the content is duplicated, moving it 50% left brings the duplicates */
        /* seamlessly into view just as the originals disappear. */
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.partner-scroll-container:hover .grid {
    animation-play-state: paused;
}

.partner .grid-item {
    flex-shrink: 0; /* Prevents items from shrinking */
    width: 150px; /* Adjust width per logo */
    height: 100px; /* Adjust height per logo */
    margin: 0 30px; /* Horizontal spacing between logos */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    /* background-color: #eee; */ /* Remove or use for debugging */
}

.partner .grid-item img {
    display: block;
    max-height: 85px; /* Max height for logos */
    max-width: 140px; /* Max width for logos */
    width: auto;
    height: auto;
    border-radius: 10px;
    object-fit: contain; /* Scales image while preserving aspect ratio */
    filter: grayscale(100%); /* Start as grayscale */
    opacity: 0.7; /* Slightly faded */
    transition: filter 0.3s ease, opacity 0.8s ease, display 0.3s ease;
}

/* Optional: Enhance logo on hover */
.partner .grid-item:hover img {
    filter: grayscale(0%); /* Show color */
    opacity: 1; /* Full opacity */
}

.header-title-wrap {
    -webkit-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    -moz-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    -ms-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0)
        rotateZ(0) skew(0, 0);
    opacity: 1;
}

.header-right-wrap {
    -webkit-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    -moz-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    -ms-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0)
        rotateZ(0) skew(0, 0);
    opacity: 1;
}

.about-header {
    -webkit-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    -moz-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    -ms-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0)
        rotateZ(0) skew(0, 0);
    opacity: 1;
}

.option {
    -webkit-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    -moz-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    -ms-transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0)
        rotateY(0) rotateZ(0) skew(0, 0);
    transform: translate3d(0, 44px, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0)
        rotateZ(0) skew(0, 0);
    opacity: 1;
}

.flex-row {
    display: flex;
    justify-content: space-between;
}

.option {
    background-position: 50%;
    background-size: cover;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    height: 480px;
    width: 23%;
    display: flex;
}

.text-white {
    color: white;
}

.link {
    color: rgb(0, 119, 255);
}

.link:hover {
    color: rgb(0, 119, 255);
    text-decoration: underline;
}

.news {
    padding: 6% 4%;
}

.header-title-option {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 3%;
}

.option-hd {
    padding: 1.2% 4%;
    background-color: rgb(0, 98, 190);
    text-align: center;
    color: white;
    border-radius: 50px;
}

/*Policy*/
.policy p,
.policy ul {
    line-height: 1.6;
}

/* Styling for the card container */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    justify-items: center; /* Center the grid items horizontally */
}

/* Styling for each card */
.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
}

/* Hover effect for the cards */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #0060dd;
    color: #fff;
    cursor: pointer;

    .card-header {
        background-color: #0060dd !important;
    }

    .card-header i {
        color: #fff;
    }

    .card-header h3 {
        color: #fff;
    }

    .card-body p {
        color: #fff;
    }
}

/* Styling for the card header */
.card-header {
    padding: 20px;
    display: block;
    align-items: center;
    gap: 15px;
    background-color: white !important;
}

/* Styling for the card icon */
.card-header i {
    font-size: 40px;
    margin-bottom: 20px;
    color: #0060dd;
}

/* Styling for the card header text */
.card-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

/* Styling for the card body */
.card-body {
    padding: 0 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Styling for the card paragraph */
.card-body p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.choose {
    padding: 2% 6% 5% 6%;
    background-color: rgba(230, 230, 230, 0.288);
    position: relative;
}

.count-box i {
    font-size: 48px;
    color: orange;
    float: left;
    line-height: 0;
    display: block;
}

.count-box span {
    font-size: 28px;
    line-height: 24px;
    display: block;
    font-weight: 700;
    color: #646c55;
    margin-left: 60px;
}

.count-box p {
    padding: 5px 0 0 0;
    margin: 0 0 0 60px;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #646c55;
}

.section-about-header{
    margin-bottom: 5rem;
}

/*Services pages*/
.services-one{
    padding: 6rem 6rem;
}

.services-one h1{
    width: 60%;
    font-weight: 900;
}

.services-one p{
    font-size: 16px;
    line-height: 1.5;
}

.services-one .services-list{
    margin-top: 6rem;
}

.services-one .services-list .carte-services{
    box-shadow: 0 0 10px #ccc;
    border-radius: 5px;
    padding: 1.5rem 1.5rem;
    margin-bottom: 2rem;
    height: 200px;
    cursor: pointer;
}

.services-one .services-list .carte-services h5{
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 1rem;
}

.services-one .services-list .carte-services p{
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    text-align: justify;
}

.services-two{
    padding: 6rem 6rem;
    background-color: #f8f9fa;
}

.services-two h1{
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 2rem;
}

.services-two p{
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.services-two .services-list{
    margin-top: 4rem;
}

.services-two .services-list .carte-services{
    box-shadow: 0 0 10px #ccc;
    border-radius: 10px;
    padding: 2rem 2rem;
    margin-bottom: 2rem;
}


/** Projects Pages **/
.projects{
    padding: 4rem 6rem;
    background-color: #f8f9fa;
}

.projects h1{
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 2rem;
}

.projects p{
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.projects .projects-list{
    margin-top: 4rem;
}

.projects .projects-list .carte-projects{
    box-shadow: 0 0 10px #ccc;
    border-radius: 10px;
    padding: 2rem 2rem;
    margin-bottom: 2rem;
    height: 250px;
    cursor: pointer;
}

.projects .projects-list .carte-projects h5{
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 1rem;
}

.projects .projects-list .carte-projects p{
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    text-align: justify;
}

/***Agences Pages***/
.agences{
    padding: 8rem 6rem;
    background-color: #fff;
}

.agences h1{
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 4rem;
    margin-top: 4rem;
    text-align: center;
}

.agences p{
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.agences .carte-agences{
    box-shadow: 0 0 10px #ccc;
    border-radius: 10px;
    padding: 2rem 2rem;
    margin-bottom: 2rem;
    cursor: pointer;
}

.agences .carte-agences h3{
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 1rem;
}

.agences .img-agences{
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    border-radius: 10px;
}
