/* .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
} */
/* .swiper-slide {
    position: relative;
    overflow: hidden;
}

.main-slider-shape-1,
.container {
    position: relative;
    z-index: 3;
} */
/* .image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
} */

.video-background {
    /* position: absolute; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* z-index: 1; */
}

.swiper-container {
    height: 560px !important;
}

.swiper-wrapper {
    height: 560px !important;
}

.is-new-menu>a>span {
    display: none !important;
}

.main-slider .container {
    /* background-image: linear-gradient(to right, #015fc9 0%, rgba(1, 95, 201, 0.5) 50%, rgba(1, 95, 201, 0) 100%); */
    /* background-image: linear-gradient(to right, #012a5c 0%, rgba(1, 42, 92, 0.7) 50%, rgba(1, 42, 92, 0) 100%); */
    /* background-image: linear-gradient(to right, #000e1f 0%, rgba(1, 42, 92, 0.7) 50%, rgba(1, 42, 92, 0) 100%); */
    background-image: linear-gradient(to right, #002b60 0%, rgba(1, 42, 92, 0.7) 50%, rgba(1, 42, 92, 0) 100%);
    background-size: cover;
    background-position: center;
}

.our-services {
    display: flex;
    justify-content: center;
}

.our-services h2 {
    color: white;
    font-size: 60px;
    font-weight: 700;
    text-align: center;
}

.counter-one {
    background-image: linear-gradient(to right, #000e1f 0%, rgba(1, 42, 92, 0.7) 50%, rgba(1, 42, 92, 1) 100%);
    margin-top: 50px;
}

.services-one .container {
    margin-bottom: 50px;
}

.services-one__top-left {
    margin-top: 20px;
}

.services-one__top h2 {
    font-size: 60px;
}

.container-partnership {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

@media (min-width: 1200px) {
    .container-partnership {
        max-width: 1200px !important;
    }

    .main-menu .main-menu__list>li>a,
    .stricky-header .main-menu__list>li>a {
        font-size: 14px !important;
    }

    .container {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}

/* --- PARTNER SECTION STYLES --- */

/* Updated Partner Logo Wrapper */
.partner-logo-wrapper {
    border: 1px solid #eef0f2 !important;
    background-color: #ffffff !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* Allow stacking of logo and name */
    align-items: center;
    justify-content: center;
    height: 240px;
    /* max-height: 240px; */
    /* Let it be flexible if needed, but height 240 gives uniform look */
    margin-top: 0px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.partner-logo-wrapper img {
    max-height: 100px;
    object-fit: contain;
    transition: all 0.4s ease;
}

/* Hover Effect: Scale Logo */
.partner-logo-wrapper:hover img {
    transform: translateY(-10px) scale(1.05);
}

/* Name on Hover */
.partner-name {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #002b60;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    left: 0;
    padding: 0 10px;
}

.partner-logo-wrapper:hover .partner-name {
    opacity: 1;
    transform: translateY(0);
}

/* Border Animation: Left to Right */
.partner-logo-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #002b60;
    /* Brand Color */
    transition: width 0.4s ease-out;
    z-index: 5;
}

.partner-logo-wrapper:hover::before {
    width: 100%;
}

/* Strategic Partner Styles */
.partner-logo-wrapper.strategic-partner {
    border: 1px solid #d0dbe5 !important;
    background-color: #fcfdfe !important;
}

.partner-logo-wrapper.strategic-partner::after {
    content: 'Partenaire Clé';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #002b60;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0.8;
}

/* --- FILTER STYLES --- */

/* Hide the 'Tout' filter button but keep it working */
.portfolio-filter li[data-filter=".filter-item"] {
    display: none !important;
}

/* General Filter Container */
.portfolio-filter {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap !important;
    /* Force single line on desktop */
    gap: 8px;
    /* Slightly increased gap for better breathing room but less visual clutter */
    margin-bottom: 25px !important;
    /* Reduced from 40px */
    margin-top: 0 !important;
    padding: 0 !important;
    width: 100%;
}

/* Filter Items Pills */
.portfolio-filter li {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px !important;
    /* Slightly smaller for better fit */
    font-weight: 600 !important;
    transition: all 0.3s ease;
    padding: 8px 18px !important;
    /* Tighter padding */
    border-radius: 30px !important;
    background-color: #f4f5f8 !important;
    color: #6b7886 !important;
    white-space: nowrap;
    /* Prevent text breaking */
    border: 1px solid transparent;
    line-height: normal;
    /* Fix alignment */
}

/* Active State */
/* Active State */
.portfolio-filter li.active,
.portfolio-filter li.active span,
.portfolio-filter li.active .filter-text {
    background-color: #002b60 !important;
    /* Akasi Blue */
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 43, 96, 0.2);
}

/* Hover State */
.portfolio-filter li:hover {
    color: #002b60 !important;
    background-color: #eef0f2 !important;
    border-color: #dbe0e5;
}

.portfolio-filter li.active:hover {
    color: #fff !important;
    background-color: #002b60 !important;
}

/* Count Style */
.portfolio-filter li .count {
    margin-left: 6px;
    font-size: 0.8em;
    opacity: 0.8;
}


/* --- RESPONSIVE FILTER DESIGN --- */

/* Tablet & Mobile: Stack/Wrap or Horizontal Scroll */
/* User requested "revoir la disposition" (review layout) */
@media (max-width: 991px) {
    .portfolio-filter {
        flex-wrap: wrap !important;
        /* Allow wrapping on smaller screens */
        gap: 8px;
    }

    .portfolio-filter li {
        font-size: 14px !important;
        padding: 8px 16px !important;
        flex-grow: 1;
        /* Make buttons expand to fill gaps nicely */
        max-width: fit-content;
    }
}

/* --- END FILTER STYLES --- */


.partner-logo-wrapper.filter-item {
    background-color: #ffffff !important;
}

/* Ensure background color persistence */
.partner-logo-wrapper.filter-item,
.partner-logo-wrapper.filter-item.digi,
.partner-logo-wrapper.filter-item.telecoms,
.partner-logo-wrapper.filter-item.btp,
.partner-logo-wrapper.filter-item.energ,
.partner-logo-wrapper.filter-item.learn,
.partner-logo-wrapper.filter-item.mark,
.partner-logo-wrapper.filter-item.audit,
.partner-logo-wrapper.filter-item.stra,
.partner-logo-wrapper.filter-item.busi {
    background-color: #ffffff !important;
}

.portfolio {
    position: relative;
    display: block;
    padding: 60px 0 90px !important;
}

/* Bouton de connexion admin */
.admin-login-btn {
    background: #006299 !important;
    color: #ffffff !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 98, 153, 0.2) !important;
}

.admin-login-btn:hover {
    background: #005080 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 98, 153, 0.3) !important;
}

.admin-login-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0, 98, 153, 0.2) !important;
}

.admin-login-btn i {
    font-size: 0.875rem !important;
}

/* Responsive pour le bouton de connexion */
@media (max-width: 1199px) {
    .admin-login-btn span {
        display: none;
    }

    .admin-login-btn {
        padding: 0.625rem !important;
        min-width: 40px !important;
    }
}

@media (min-width: 1262px) {

    .main-menu .main-menu__list>li>a,
    .stricky-header .main-menu__list>li>a {
        font-size: 15px !important;
    }

    .container {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }


    .main-menu__main-menu-box {
        padding-left: 12px;
    }

    .quote-btn {
        padding-left: 28px;
    }

}


/* Motto Section Styles */
.motto-card {
    background: #ffffff;
    padding: 30px;
    padding-bottom: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    /* Slightly rounded */
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.motto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.motto-title {
    color: #002b60;
    /* Akasi Dark Blue */
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.motto-text {
    font-size: 15px;
    color: #6B7886;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: left;
}

.motto-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 60px 60px;
    /* Size of the triangle */
    border-color: transparent transparent #003c71 transparent;
    /* Dark blue corner */
}



/* Fundamental Values Section (Elegant Cards) */
.value-card-elegant {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    z-index: 1;
}

.value-card-elegant:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #002b60;
    /* Akasi Blue */
    z-index: -1;
    transition: 0.4s ease;
}

.value-card-elegant:hover:before {
    height: 5px;
    /* Top border accent on hover */
}

.value-card-elegant:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.value-card-icon-box {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: rgba(0, 43, 96, 0.05);
    /* Light blue bg */
    color: #002b60;
    font-size: 32px;
    margin: 0 auto 25px auto;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card-elegant:hover .value-card-icon-box {
    background: #002b60;
    color: #ffffff;
    transform: scale(1.1);
}

.value-card-title {
    color: #1a2d40;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: capitalize;
    transition: color 0.3s ease;
}

.value-card-text {
    color: #6B7886;
    font-size: 15px;
    line-height: 1.7;
}

/* Custom 7-column grid for service poles */
@media (min-width: 1200px) {
    .row-cols-custom-7>* {
        flex: 0 0 auto;
        width: 14.2857142857% !important;
    }
}

/* Service Card Standard Style */
.service-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* TOP Border Animation from Left to Right on Hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    /* Slightly thicker for visibility */
    background-color: #ff3c3c;
    transition: width 0.4s ease-out;
    z-index: 2;
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card__icon {
    font-size: 45px;
    color: #ff3c3c;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__icon {
    transform: scale(1.1);
}

.service-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #0c2046;
    margin-bottom: 15px;
}

.service-card__text {
    font-size: 14px;
    color: #6B7886;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-card__link {
    font-size: 13px;
    font-weight: 700;
    color: #ff3c3c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
}

.service-card__link:hover {
    color: #0c2046;
}

/* Ensure section title is clean */
.services-one__bottom .section-title__title {
    margin-bottom: 40px;
    font-size: 40px;
    font-weight: 700;
    color: #0c2046;
}

/* Reduced spacing for service sections */
.services-premium-new {
    padding-bottom: 20px;
}

/* --- Projets Harmonization & Common Card Style --- */
.services-one__single {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0f4f8;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.services-one__single:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-one__img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8fafc;
}

.service-one__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.services-one__single:hover .service-one__img img {
    transform: scale(1.1);
}

.service-one__content {
    padding: 20px 20px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-one__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.service-one__title a {
    color: #1a202c;
    text-decoration: none;
    display: block;
}

.client-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    min-height: 45px; 
}

.client-logo {
    max-height: 35px;
    max-width: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(10%);
    transition: filter 0.3s ease;
}

.services-one__single:hover .client-logo {
    filter: grayscale(0%);
}

.client-name {
    color: #e53e3e;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-name {
    color: #006299;
    font-family: var(--insur-font);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    font-style: normal;
    min-height: 2.8em;
}

.service-one__text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

/* Pagination styles */
.project-pagination {
    margin-top: 20px;
}

.pagination .page-item {
    margin: 52px 8px;
}

.pagination .page-link {
    color: #006299;
    border: 1px solid #dde3ea;
}

.pagination .page-item.active .page-link {
    background-color: #006299;
    border-color: #006299;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #9aa7b6;
    pointer-events: none;
}