/*** Spinner Start ***/
#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;
}

/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

.btn {
    font-weight: 600;
    transition: .5s;
}

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

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

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
    margin-top: -50px;
    margin-left: 50px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

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

.btn-primary,
.btn-secondary,
.btn-light {
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    transition: all 0.4s ease;
}

/* Sweep Effect */
.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

/* Button Primary */
.btn-primary {
    background: var(--bs-gradient-primary);
    color: #fff !important;
}

.btn-primary::before {
    background: var(--bs-primary-dark);
}

/* Button Secondary */
.btn-secondary {
    background: #FF8C00;
    /* Deep Orange secondary for contrast */
    color: #fff !important;
}

.btn-secondary::before {
    background: #E67E22;
}

/* Button Light */
.btn-light {
    background: #f8f9fa;
    color: var(--bs-primary) !important;
}

.btn-light::before {
    background: #e9ecef;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/*** Icon Animation Start ***/
@keyframes icon-animat {
    0% {
        border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    }

    25% {
        border-radius: 69% 31% 19% 81% / 43% 37% 63% 57%;
    }

    50% {
        border-radius: 67% 33% 16% 84% / 57% 37% 63% 43%;
    }

    75% {
        border-radius: 77% 23% 61% 39% / 36% 61% 39% 64%;
    }

    100% {
        border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    }
}

/*** Icon Animation End ***/


:root {
    --bs-primary: #008DCA;
    --bs-primary-dark: #005691;
    --bs-secondary: #F7CA00;
    --bs-gradient-primary: linear-gradient(90deg, #008DCA 0%, #005691 100%);
    --bs-soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--bs-gradient-primary);
    border: none;
    color: #fff !important;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bs-primary-dark);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 134, 201, 0.3);
}

.nav-bar.sticky-top {
    position: fixed;
    width: 100%;
    top: 0;
    /* La barre est visible dès que la classe sticky-top est appliquée */
    left: 0;
    background: #fff;
    transition: .5s;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Ajout d'une ombre directement ici */
}



.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    letter-spacing: 1px;
    color: var(--bs-dark);
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: .3s;
}

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

.navbar-light .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 25px;
    left: 0;
    transition: 0.3s;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 100%;
}


.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-brand img {
    max-height: 50px;
}

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

.mega-menu-content {
    min-width: 850px;
    border-radius: 20px;
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    margin-top: 8px !important;
    background: var(--bs-light);
    transition: .5s;
    opacity: 1;
}



@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        margin-top: 8px !important;
        transition: .5s;
        opacity: 0;
    }
}

@media (max-width: 991px) {
    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 8px 15px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
    }

    .sticky-top .navbar-light .navbar-nav .nav-link {
        padding: 12px 0;
    }

    /* Mega menu responsive layout adjustments */
    .navbar .dropdown-menu {
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 10px !important;
        margin-top: 0 !important;
    }

    .mega-menu-content {
        min-width: 100% !important;
    }

    .dropdown-mega .row {
        flex-direction: column !important;
    }

    .dropdown-mega .col-md-4 {
        width: 100% !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        border-right: none !important;
        padding: 15px !important;
    }

    .dropdown-mega .col-md-8 {
        width: 100% !important;
        max-height: none !important;
        padding: 20px !important;
    }

    .dropdown-mega .nav-link {
        padding: 8px 12px !important;
        margin-bottom: 5px !important;
    }
}

/*** Navbar End ***/

/*** Carousel Header Start ***/
.carousel .carousel-item img {
    object-fit: cover;
}

.carousel .carousel-item,
.carousel .carousel-item img {
    height: 700px;
}

.carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
}

.carousel .carousel-indicators {
    left: 75%;
    top: 50%;
    margin-right: 25%;
    transform: translateY(-50%);
    flex-direction: column;
}

.carousel-indicators [data-bs-target] {
    display: flex;
    width: 15px;
    height: 15px;
    border: 6px solid var(--bs-white);
    border-radius: 15px;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: var(--bs-secondary);
    opacity: 1;
    transition: 0.5s;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--bs-primary);
}

@media (max-width: 992px) {
    .carousel-indicators [data-bs-target] {
        display: none;
    }
}

/*** Carousel Header End ***/

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(31, 46, 78, 1), rgba(var(--bs-dark-rgb), 0.8)), url(../img/fact-bg.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 60px 0 60px 0;
    transition: 0.5s;
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}

/*** Single Page Hero Header End ***/

/*** Features Start ***/
.feature {
    background: var(--bs-light);
}

.feature .feature-item {
    display: flex;
    border-radius: 10px;
}

.feature .feature-item .feature-icon span {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    ;
    animation-name: icon-animat;
    animation-duration: 5s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
}

/*** Features End ***/

/*** About Start ***/
.about .about-item .about-item-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    background: var(--bs-light);
    transition: 0.5s;
}

.about .about-item .about-item-inner .about-icon {
    width: 90px;
    height: 90px;
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    animation-name: icon-animat;
    animation-duration: 5s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
}

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

}

.about .about-img .img-1 {
    height: 85%;
    margin-right: 50px;
}

.about .about-img .img-2 {
    position: absolute;
    width: 100%;
    bottom: 0;
    right: 0;
    padding-left: 50px;
    border-radius: 10px;
}

.about .about-img::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 98%;
    top: 0;
    right: 0;
    border-radius: 10px;
    background: var(--bs-primary);
    z-index: -1;
}

.about .about-item .text-item {
    position: relative;
    padding-left: 25px;
}

.about .about-item .text-item::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: var(--bs-secondary);
}

/*** About End ***/


/*** Fact Counter Start ***/
.counter {
    background: linear-gradient(rgba(var(--bs-dark-rgb), 0.9), rgba(31, 46, 78, 0.9)), url(../img/fact-bg.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.counter .counter-item .counter-item-icon {
    width: 90px;
    height: 90px;
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    animation-name: icon-animat;
    animation-duration: 5s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
}

/*** Fact Counter End ***/

/*** Services Start ***/
.service .service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 0 45px rgba(0, 0, 0, .1);
    border-radius: 10px;
    background: var(--bs-white);
    transition: 0.5s;
}

.service .service-item:hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 60px;
    background: var(--bs-light);
}

.service .service-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    background: var(--bs-primary);
    border-radius: 10px;
    z-index: -1;
    transition: 0.5s;
    opacity: 0;
}

.service .service-item:hover::after {
    opacity: 1;
}

.service .service-item .service-icon {
    width: 90px;
    height: 90px;
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    background: var(--bs-primary);
    animation-name: icon-animat;
    animation-duration: 5s;
    animation-delay: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    transition: 0.5s;
}

/*** Service End ***/

/*** Cars Categories Start ***/
.categories .categories-item {
    position: relative;
    border: 1px solid var(--bs-secondary);
    border-radius: 10px;
    transition: 0.5s;
}

.categories .categories-item:hover {
    border: 1px solid var(--bs-primary);
}

.categories .categories-item .categories-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: 0.5s;
}

.categories .categories-item .categories-item-inner:hover {
    box-shadow: 0 0 50px rgba(234, 0, 30, .3);
}

.categories .categories-item-inner .categories-img {
    background: var(--bs-light);
}

.categories .categories-item-inner .categories-content {
    border-top: 4px solid var(--bs-white);
    text-align: center;
    background: var(--bs-light);
}

.categories .categories-item-inner .categories-review {
    display: flex;
    align-items: center;
    justify-content: center;
}

.categories-carousel .owl-stage-outer {
    margin-top: 65px;
    margin-right: -1px;
}

.categories-carousel .owl-nav .owl-prev,
.categories-carousel .owl-nav .owl-next {
    position: absolute;
    top: -65px;
    padding: 10px 35px;
    color: var(--bs-white);
    background: var(--bs-primary);
    border-radius: 50px;
    transition: 0.5s;
}

.categories-carousel .owl-nav .owl-prev {
    left: 0 !important;
}

.categories-carousel .owl-nav .owl-next {
    right: 0;
}

.categories-carousel .owl-nav .owl-prev:hover,
.categories-carousel .owl-nav .owl-next:hover {
    background: var(--bs-secondary);
    color: var(--bs-white);
}

/*** Cars Categories End ***/


/*** Process Start ***/
.steps {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url(../img/bg-1.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


.steps .steps-item {
    position: relative;
    background: var(--bs-secondary);
    border-radius: 10px;
}

.steps .steps-item h4,
.steps .steps-item p {
    color: var(--bs-white);
}

.steps .steps-item .setps-number {
    position: absolute;
    width: 64px;
    height: 64px;
    bottom: 0;
    right: 40px;
    font-weight: 900;
    border: 1px solid var(--bs-white);
    border-radius: 64px;
    transform: translateY(50%);
    color: var(--bs-white);
    background: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/*** Process End ***/


/*** Blog Start ***/
.blog .blog-item {
    border-radius: 10px;
    transition: 0.5s;
}

.blog .blog-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
}

.blog .blog-item .blog-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.blog .blog-item .blog-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.3);
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img::after {
    height: 100%;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog .blog-item .blog-content {
    position: relative;
    background: var(--bs-light);
}

.blog .blog-item .blog-content .blog-date {
    position: absolute;
    top: 0;
    left: 25px;
    transform: translateY(-50%);
    padding: 12px 25px;
    border-radius: 10px;
    color: var(--bs-white);
    background: var(--bs-primary);
}

.blog .blog-item .blog-content .blog-comment {
    display: flex;
    justify-content: space-between;
}

/*** Blog End ***/


/*** Banner Start ***/
.banner .banner-item {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: 0.5s;
    z-index: 1;
}

.banner .banner-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, .6);
    z-index: 2;
}

.banner .banner-item .banner-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    margin-left: 0;
    margin-bottom: 0;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    z-index: 5;
}

@media (min-width: 992px) {
    .banner .banner-item .banner-content h1 {
        font-size: 72px;
        margin-bottom: 20px;
    }

    .banner .banner-item .banner-content p {
        font-size: 40px;
        margin-bottom: 20px;
    }
}

/*** Banner End ***/

/*** Team Start ***/
.team .team-item {
    position: relative;
    text-align: center;
    border-radius: 10px;
    margin-top: 100px;
    background: var(--bs-light);
    transition: 0.5s;
    z-index: 1;
}

.team .team-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    background: var(--bs-secondary);
    z-index: 2;
    transition: 0.5s;
}

.team .team-item:hover::after {
    height: 0;
}

.team .team-item .team-content {
    position: relative;
    z-index: 5;
}

.team .team-item .team-content h4,
.team .team-item .team-content p {
    transition: 0.5s;
}

.team .team-item:hover .team-content h4 {
    color: var(--bs-dark);
}

.team .team-item:hover .team-content p {
    color: var(--bs-primary);
}

.team .team-item .team-img {
    width: 220px;
    height: 220px;
    margin: 30px auto 0 !important;
    overflow: hidden;
    border-radius: 50% !important;
    border: 5px solid rgba(0, 134, 201, 0.1);
}

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

.team-item {
    transition: 0.5s;
    background: #fff;
    border-radius: 15px;
}

.team-item:hover {
    box-shadow: var(--bs-soft-shadow);
}


.team .team-item .team-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .3);
    z-index: 4;
    transition: 0.5s;
}

.team .team-item:hover .team-img::after {
    height: 100%;
}

/*** Team End ***/

/*** Footer Start ***/
.footer {
    background: var(--bs-dark);
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item a:hover {
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary) !important;
}

/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
}

.copyright span,
.copyright a {
    color: white !important;
}

/*** copyright end ***/

/*** Mega Menu & Layout Enhancements ***/
@media (min-width: 992px) {
    .dropdown-mega {
        position: static;
    }

    .dropdown-mega .dropdown-menu {
        width: 100%;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15) !important;
        border-top: none !important;
    }
}

.hover-lift {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hover-lift:hover {
    background: #f8f9fa !important;
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.05);
}

.nav-pills .nav-link {
    margin-bottom: 5px;
    border-radius: 12px !important;
}

.nav-pills .nav-link.active {
    background-color: #fff !important;
    color: var(--bs-primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: none !important;
    position: relative;
}

.nav-pills .nav-link:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/*** Footer Animations & Styles ***/
.footer .footer-item a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer .footer-item a:hover {
    color: #fff !important;
    opacity: 1 !important;
    padding-left: 5px;
    transform: translateY(-2px);
}

.copyright {
    background: var(--bs-primary-dark) !important;
    margin-bottom: 0 !important;
}

.back-to-top {
    background: var(--bs-gradient-primary);
    color: #fff;
    border: 2px solid #fff;
    z-index: 999999 !important;
}

/*** Partner Cards (References) ***/
.partner-card {
    transition: all 0.4s ease;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--bs-primary);
}

.partner-card img {
    max-height: 100px;
    width: auto;
    transition: all 0.6s ease;
}

.partner-card:hover img {
    transform: scale(1.1);
}

/*** Utility Classes for Clean Refactoring ***/
.service-icon-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.about-logo-img {
    max-height: 250px;
}

.team-photo-square {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-top-logo {
    max-height: 50px;
}

.footer-social-icon {
    background: #fff !important;
    color: var(--bs-primary) !important;
}

/* Fix for white space after footer */
html,
body {
    height: auto !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

.footer {
    position: relative;
    z-index: 10;
    margin-bottom: 0 !important;
}

.copyright {
    position: relative;
    z-index: 10;
    margin-bottom: 0 !important;
}

/* ============================================
   AMÉLIORATIONS MOBILE & RESPONSIVE
   ============================================ */

/* --- Tablette (max-width: 991.98px) --- */
@media (max-width: 991.98px) {

    /* Carousel d'accueil moins haut */
    .carousel .carousel-item,
    .carousel .carousel-item img {
        height: 480px !important;
    }

    .carousel .carousel-item .display-3 {
        font-size: 2.2rem !important;
    }

    .carousel .carousel-item .fs-5 {
        font-size: 1rem !important;
    }

    /* Top nav : espacement réduit */
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 12px 0;
    }

    /* Sections : padding réduit */
    .container-fluid.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Footer : empilement des colonnes */
    .footer .row>[class*="col-"] {
        margin-bottom: 1.5rem;
    }

    /* Forms : pas de débordement */
    .form-floating>.form-control,
    .form-floating>.form-select {
        font-size: 16px;
        /* Évite le zoom auto iOS */
    }

    /* About : logo plus petit */
    .about-logo-img {
        max-height: 180px;
    }
}

/* --- Mobile (max-width: 767.98px) --- */
@media (max-width: 767.98px) {

    /* Carousel : hauteur augmentée sur mobile */
    .carousel .carousel-item,
    .carousel .carousel-item img {
        height: 600px !important;
    }

    .carousel .carousel-item .display-3 {
        font-size: 1.6rem !important;
        line-height: 1.2;
        margin-bottom: 0.75rem !important;
    }

    .carousel .carousel-item .fs-5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }

    .carousel-caption {
        align-items: center !important;
    }

    .carousel-caption .btn {
        padding: 0.5rem 1.5rem !important;
        font-size: 0.9rem;
    }

    /* Topbar mobile minimaliste affiché */
    .topbar {
        display: none !important;
    }

    .topbar-mobile {
        display: block !important;
    }

    /* Navbar : menu burger en couleur primaire via filter */
    .navbar-toggler {
        border: 2px solid var(--bs-primary) !important;
        padding: 6px 12px !important;
    }

    .navbar-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23008DCA' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(0, 141, 202, 0.25) !important;
    }

    .navbar-brand img {
        max-height: 45px !important;
    }

    /* Hero (page-header) : moins de padding */
    .bg-breadcrumb {
        padding: 40px 0 !important;
    }

    .bg-breadcrumb .display-4 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }

    /* Titres de section */
    .display-5 {
        font-size: 1.75rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }

    /* Service zigzag : image au-dessus, texte en-dessous */
    .service-zigzag-img {
        height: 220px !important;
        border-radius: 16px !important;
    }

    .service-zigzag-row {
        margin-bottom: 2rem !important;
    }

    /* Sections : padding réduit */
    .container-fluid.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .container.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Formulaire contact : pleine largeur */
    .bg-secondary.p-5,
    .bg-light.p-5 {
        padding: 1.25rem !important;
    }

    /* Boutons CTA plus grands pour mobile */
    .btn.rounded-pill {
        padding: 0.65rem 1.5rem !important;
        font-size: 0.95rem;
    }

    /* Footer : colonnes empilées */
    .footer h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem !important;
    }

    .footer .footer-item a {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .copyright {
        font-size: 0.85rem;
    }

    /* Bouton retour en haut : repositionné pour mobile */
    .back-to-top {
        right: 15px !important;
        bottom: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }

    /* Partenaires : cartes plus compactes */
    .partner-card {
        padding: 1.25rem !important;
    }

    .partner-card img {
        max-height: 60px !important;
    }

    .partner-filter {
        font-size: 12px;
        padding: 6px 12px;
        margin: 3px;
    }

    /* Équipe : photos plus petites */
    .team-item img {
        width: 130px !important;
        height: 130px !important;
    }

    /* Categories : images cards */
    .categories-item {
        padding: 1rem !important;
    }

    .categories-item-inner .categories-content {
        padding: 0.75rem !important;
    }

    .categories-item h4 {
        font-size: 1.1rem;
    }

    /* Blog : images cards */
    .blog-content {
        padding: 1rem !important;
    }

    .blog-content .h4 {
        font-size: 1.05rem;
    }

    .blog-date {
        font-size: 0.75rem;
        padding: 6px 12px !important;
    }

    /* Counter / chiffres : 2 par ligne */
    .counter .counter-item .counter-item-icon {
        width: 65px !important;
        height: 65px !important;
    }

    .counter .counter-counting .fs-2 {
        font-size: 1.4rem !important;
    }

    .counter .counter-counting .h1 {
        font-size: 1.4rem !important;
    }

    /* About : moins de padding */
    .about {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .about-logo-img {
        max-height: 130px;
    }

    /* Form-floating sur iOS : fix pour le zoom */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Espacement entre les rangées dans les grilles */
    .row.g-4 {
        --bs-gutter-y: 1.25rem;
    }

    /* Tableau admin : moins de padding */
    .table th,
    .table td {
        padding: 0.5rem !important;
        font-size: 0.85rem;
    }

    .card-body {
        padding: 1rem !important;
    }
}

/* --- Très petits écrans (max-width: 480px) --- */
@media (max-width: 480px) {

    .carousel .carousel-item,
    .carousel .carousel-item img {
        height: 580px !important;
    }

    .carousel .carousel-item .display-3 {
        font-size: 1.3rem !important;
    }

    h1,
    .h1 {
        font-size: 1.6rem !important;
    }

    h2,
    .h2 {
        font-size: 1.4rem !important;
    }

    .display-5 {
        font-size: 1.4rem !important;
    }

    /* Empêche tout débordement horizontal */
    body,
    html {
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Boutons pleine largeur sur très petits écrans */
    .text-center .btn.rounded-pill {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* --- Améliorations accessibilité --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Bouton de contact WhatsApp flottant (mobile) */
@media (max-width: 767.98px) {
    .whatsapp-float {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: #25D366;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
        z-index: 9999;
        text-decoration: none;
        animation: whatsapp-pulse 2s infinite;
    }

    @keyframes whatsapp-pulse {

        0%,
        100% {
            box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
        }

        50% {
            box-shadow: 0 6px 28px rgba(37, 211, 102, 0.7);
        }
    }
}

/* Topbar mobile deux lignes */
.topbar-mobile {
    display: none;
    position: relative;
    z-index: 1030;
    line-height: 1.2;
}

.topbar-mobile a {
    opacity: 0.9;
    transition: opacity 0.2s;
}

.topbar-mobile a:hover {
    opacity: 1;
}

/* Smooth focus outline pour accessibilité clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: 4px;
}