/********** Template CSS **********/
:root {
    --primary: #0f04a5;
    --primary-blue: #0f04a5;
    --secondary: #9B9B9B;
    --light: #F5F5F5;
    --dark: #161616;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn.btn-primary:hover {
    color: #FFFFFF;
    background-color: #218838;
    border-color: #218838;
}

/* Force override for Bootstrap's default green */
.btn-success, .text-success {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.navbar .btn.text-primary {
    color: var(--primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    outline: none;
    position: relative;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Underline indicator for navbar links */
.navbar .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        color: var(--primary);
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .btn:hover {
    color: #FFFFFF !important;
    background: var(--primary) !important;
}

/* Map hover overlay */
.map-wrapper {
    position: relative;
}

.map-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    background: rgba(0, 0, 0, 0);
    transition: opacity .3s ease, background .3s ease;
    z-index: 2;
}

.map-hover .label {
    background: rgb(255, 255, 255);
    padding: 22px 40px;
    border-radius: 10px;
    font-weight: 900;
    letter-spacing: .3px;
}

.map-wrapper:hover .map-hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.15);
}

/*** Header ***/
.header-carousel .carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(22, 22, 22, .7);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    /* Le background-position: center bottom; fait que la partie supérieure de l'image est visible lors du défilement */
    background: linear-gradient(rgba(22, 22, 22, .75), rgba(22, 22, 22, .75)), url(../img/clientel.jpg) center/cover no-repeat;
    background-size: cover;
}
.page-header1 {
    /* Le background-position: center bottom; fait que la partie supérieure de l'image est visible lors du défilement */
    background: linear-gradient(rgba(22, 22, 22, .75), rgba(22, 22, 22, .75)), url(../img/log11.jpeg) center 70%/120% no-repeat;
    background-size: cover;
    width: 100%;
}
.page-header2 {
    /* Le background-position: center bottom; fait que la partie supérieure de l'image est visible lors du défilement */
    background: linear-gradient(rgba(22, 22, 22, .75), rgba(22, 22, 22, .75)), url(../img/services.jpg) center/cover no-repeat;
    background-size: cover;
}
.page-header3 {
    /* Le background-position: center bottom; fait que la partie supérieure de l'image est visible lors du défilement */
    background: linear-gradient(rgba(22, 22, 22, .75), rgba(22, 22, 22, .75)), url(../img/carousel-3.jpg) center/cover no-repeat;
    background-size: cover;
}
.page-header4 {
    /* Le background-position: center bottom; fait que la partie supérieure de l'image est visible lors du défilement */
    background: linear-gradient(rgba(22, 22, 22, .75), rgba(22, 22, 22, .75)), url(../img/acc-elec.jpg) center/cover no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before { 
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.service-item {
    border-color: rgba(0, 0, 0, .03) !important;
    background: #ffffff;
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary) !important;
}

/* Titres des services en vert foncé */
.service-item h4 {
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Descriptions en noir pour une meilleure lisibilité */
.service-item p {
    color: #333333 !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-item .btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 38px;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
    background: var(--primary) !important;
}

.service-item .btn-square {
    background: var(--primary) !important;
    transition: all 0.3s ease;
}

.service-item:hover .btn-square {
    background: var(--primary) !important;
    transform: scale(1.1);
}

.service-item .btn-square i {
    color: #FFFFFF !important;
}

/* Effet de bordure gauche colorée */
.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary) 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.service-item:hover::before {
    transform: scaleY(1);
}

/* Amélioration du titre de section "Nos Services" */
.container-xxl .text-center h1.display-5 {
    color: #1b5e20;
    font-weight: 800;
    position: relative;
    margin-bottom: 3rem;
}

/* Espacement et organisation améliorés */
.service-row {
    margin-top: 2rem;
}

.service-item {
    margin-bottom: 2rem;
}

/* Responsive pour les services */
@media (max-width: 768px) {
    .service-item h4 {
        font-size: 1.1rem;
    }
    
    .service-item p {
        font-size: 0.9rem;
    }
    
    .service-item {
        margin-bottom: 1.5rem;
    }
}

/*** Styles pour les pages de services individuelles ***/
/* Titres principaux des pages services */
.container-xxl .text-center h1,
.service-detail h1 {
    color: var(--primary) !important;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Conteneurs de contenu des services */
.bg-white.p-4.rounded.border.shadow-sm {
    border: 2px solid #f0f0f0 !important;
    border-radius: 15px !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bg-white.p-4.rounded.border.shadow-sm:hover {
    border-color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Textes de description dans les pages services */
.bg-white.p-4.rounded.border.shadow-sm p {
    color: #333333 !important;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* Sous-titres dans les pages services */
.bg-white.p-4.rounded.border.shadow-sm h5 {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* Listes à puces dans les services */
.bg-white.p-4.rounded.border.shadow-sm ul.list-unstyled li {
    color: #333333 !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

/* Icônes dans les listes */
.bg-white.p-4.rounded.border.shadow-sm ul.list-unstyled li i {
    color: var(--primary) !important;
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

/* Alertes et encadrés */
.alert-light {
    background-color: #f8f9fa !important;
    border: 2px solid #e9ecef !important;
    border-left: 4px solid var(--primary) !important;
    color: #333333 !important;
    font-weight: 500;
}

.alert-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 500;
    border-radius: 10px !important;
}

/* Lead paragraphs */
.lead.text-primary {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 1.3rem;
}

/* Carrousel automatique moderne pour les services */
.service-carousel-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 30px;
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary));
    border-radius: 20px 20px 0 0;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    transform: translateX(100%);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

/* Indicateurs de progression */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Boutons de navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.service-carousel-container:hover .carousel-nav {
    opacity: 1;
    visibility: visible;
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

.carousel-nav i {
    font-size: 18px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.carousel-nav:hover i {
    color: white;
}

/* Overlay avec informations */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.carousel-slide:hover .carousel-overlay {
    transform: translateY(0);
}

.carousel-overlay h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Barre de progression automatique */
.carousel-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0;
    transition: width 0.1s linear;
    z-index: 15;
}

/* Ancienne galerie - masquée */
.gallery-container,
.gallery-grid,
.gallery-item {
    display: none !important;
}

/* Titres des galeries */
h4.text-center.text-primary {
    color: #1b5e20 !important;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h4.text-center.text-primary::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #10148a);
    border-radius: 2px;
}

/* Portfolio items dans les galeries */
.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 17, 153, 0.9), rgba(26, 43, 112, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h5 {
    color: white !important;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive pour les pages services */
@media (max-width: 768px) {
    .service-carousel-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .carousel-wrapper {
        height: 250px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav i {
        font-size: 16px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    .bg-white.p-4.rounded.border.shadow-sm {
        padding: 1.5rem !important;
    }
    
    .lead.text-primary {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        height: 200px;
    }
    
    .service-carousel-container {
        padding: 15px;
        margin: 15px auto;
    }
}

.testimonial-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 15px;
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    position: relative;
}

.testimonial-text i {
    color: #0d6efd;
    opacity: 0.3;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

/* Testimonial appearance adjustments */
.testimonial-text {
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 1.25rem 1.25rem;
}

.testimonial-text p {
    color: #000000 !important;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.7;
}

/* Testimonial section heading and divider */
.section-testimonial .section-divider {
    width: 80px;
    height: 4px;
    border-radius: 3px;
    margin-bottom: 0.5rem !important;
}

.section-testimonial h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 1rem;
}
/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.portfolio-inner img {
    transition: .5s;
}

.portfolio-inner:hover img {
    transform: scale(1.1);
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.portfolio-inner:hover .portfolio-text {
    bottom: 0;
    opacity: 1;
}

/* Modern Gallery Styles */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-rows: 250px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-img {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(40, 167, 69, 0.9), rgba(33, 136, 56, 0.9));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-btn:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}

.gallery-btn i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        grid-auto-rows: 200px;
    }
    
    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
    }
    
    .gallery-item.large {
        grid-row: span 1;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .gallery-content h5 {
        font-size: 1.2rem;
    }
    
    .gallery-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .gallery-item.tall {
        grid-row: span 1;
    }
}

/* Legacy Portfolio Styles (for backward compatibility) */
.portfolio-item .portfolio-img {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    background: #f0f0f0;
}

.portfolio-item .portfolio-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    top: 0;
    left: 0;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-item .portfolio-btn {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 22, 22, .7);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
}

.team-item .team-social .btn {
    opacity: 0;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    border-radius: 60px;
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

/* Classe spéciale pour préserver le bleu du nom d'entreprise */
.company-name-blue {
    color: var(--primary-blue) !important;
}

/*** Realisations Portfolio Styles ***/
.realisation-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.realisation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.realisation-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.realisation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.realisation-card:hover .realisation-image img {
    transform: scale(1.05);
}

.realisation-category {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.realisation-content {
    padding: 20px;
}

.realisation-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.realisation-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.realisation-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
}

.detail-item i {
    margin-right: 5px;
    width: 16px;
}

.realisation-actions {
    text-align: center;
}

.filter-btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 2px;
}

.filter-btn:hover,
.filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.realisation-item {
    display: block;
    transition: all 0.3s ease;
}

.realisation-item.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .realisation-details {
        flex-direction: column;
        gap: 8px;
    }

    .realisation-content {
        padding: 15px;
    }

    .realisation-title {
        font-size: 1rem;
    }
}



/* Responsive for Realisations */
@media (max-width: 768px) {
    .realisation-item img {
        height: 200px;
    }
    
    .realisation-content h5 {
        font-size: 1.2rem;
    }
    
    .realisation-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .realisation-item img {
        height: 180px;
    }
}
