/********** Template CSS **********/
/* Empêcher le débordement horizontal - Règles strictes */
html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

* {
    box-sizing: border-box;
}

img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: visible !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.container {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

[class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
}

/* Empêcher les éléments positionnés de dépasser */
.position-absolute,
.position-fixed {
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
}

/* Section facts - éviter le débordement */
.facts {
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

.facts .container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Navbar - éviter le débordement et le scroll */
.navbar {
    max-width: 100vw !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999999 !important;
}

.navbar-nav {
    max-width: 100% !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.navbar-collapse {
    max-width: 100% !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.navbar-container,
.navbar > .container-fluid {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Carousel - éviter le débordement */
.carousel {
    max-width: 100vw !important;
    width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
    z-index: 1 !important;
}

.carousel-item {
    max-width: 100vw !important;
    width: 100% !important;
}

/* Éléments spécifiques qui doivent respecter le viewport */
.carousel-caption {
    max-width: 100vw !important;
}

/* Navbar - Au-dessus de tout */
.navbar {
    z-index: 999999 !important;
    position: sticky !important;
    top: 0 !important;
}

.navbar-collapse {
    z-index: 999999 !important;
    position: relative !important;
    overflow: visible !important;
}

.navbar-nav {
    z-index: 999999 !important;
    position: relative !important;
    overflow: visible !important;
}

/* Dropdown menu - toujours visible et au-dessus de tout */
.dropdown-menu {
    z-index: 999999 !important;
    position: absolute !important;
    overflow: visible !important;
}

.dropdown-menu.show {
    z-index: 999999 !important;
    position: absolute !important;
    overflow: visible !important;
}

.nav-item.dropdown {
    position: relative !important;
    z-index: 999999 !important;
    overflow: visible !important;
}

.dropdown {
    z-index: 999999 !important;
}

.dropdown.show {
    z-index: 999999 !important;
}

/* S'assurer que tous les autres éléments ont un z-index inférieur */
.container-fluid:not(.navbar):not(.topbar),
.container,
.row,
.col-lg-*,
.col-md-*,
.col-sm-*,
.card,
.modal,
.carousel {
    position: relative;
    z-index: 1 !important;
}

/* Tous les éléments avec largeur fixe */
[style*="width"] {
    max-width: 100vw !important;
}

:root {
    --primary: #3C548B;
    --secondary: #D47740;
    --light: #EFEBE7;
    --dark: #7784A1;
    --accent1: #B0BBD2;
    --accent2: #EDB28D;
    
    /* Mode clair (par défaut) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e9ecef;
}

/* Mode sombre */
[data-theme="dark"] {
    --primary: #4A6BC5;
    --secondary: #E8935A;
    --light: #2c2c2c;
    --dark: #1a1a1a;
    --accent1: #3a3a3a;
    --accent2: #4a4a4a;
    
    --bg-primary: #1a1a1a;
    --bg-secondary: #2c2c2c;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #404040;
}

/* Transitions pour le changement de thème */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Styles pour le mode sombre */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary);
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
}

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .service-item {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .team-item {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .blog-item {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .testimonial-item {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary);
}

[data-theme="dark"] .navbar-dark {
    background-color: rgba(26, 26, 26, 0.95) !important;
}

[data-theme="dark"] .sticky-top.navbar-dark {
    background-color: var(--bg-primary) !important;
}

/* Navigation en mode sombre - Corrections complètes */
[data-theme="dark"] .navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
}

[data-theme="dark"] .navbar-nav .nav-link:hover,
[data-theme="dark"] .navbar-nav .nav-link:focus {
    color: var(--secondary) !important;
}

[data-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

[data-theme="dark"] .navbar-toggler {
    border-color: var(--text-primary) !important;
}

[data-theme="dark"] .navbar-toggler .fa-bars {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .dropdown-toggle::after {
    border-top-color: var(--text-primary) !important;
}

[data-theme="dark"] .navbar-brand img {
    filter: brightness(1.1) contrast(1.1);
}

/* Topbar en mode sombre */
[data-theme="dark"] .container-fluid.bg-dark {
    background-color: var(--dark) !important;
}

[data-theme="dark"] .text-light {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .btn-outline-light {
    border-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .btn-outline-light:hover {
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}

/* Mode sombre - Améliorations complètes */
[data-theme="dark"] .container-fluid {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .section-title h1,
[data-theme="dark"] .section-title h5,
[data-theme="dark"] h1, [data-theme="dark"] h2, 
[data-theme="dark"] h3, [data-theme="dark"] h4, 
[data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] small {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--secondary) !important;
}

[data-theme="dark"] .facts {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .facts .bg-primary {
    background-color: var(--primary) !important;
}

[data-theme="dark"] .facts .bg-light {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .facts h5,
[data-theme="dark"] .facts h1 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .pricing-item,
[data-theme="dark"] #pricing .bg-light,
[data-theme="dark"] #pricing .bg-white {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] #pricing h4,
[data-theme="dark"] #pricing h1,
[data-theme="dark"] #pricing span {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .form-control {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .form-select {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .modal-content {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .footer-about,
[data-theme="dark"] .bg-dark {
    background-color: var(--dark) !important;
}

[data-theme="dark"] .text-light {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .border-bottom {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .dropdown-item:active {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .neural-section {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .vendor-carousel img {
    filter: brightness(0.8) contrast(1.2);
}

[data-theme="dark"] iframe {
    filter: invert(0.1) hue-rotate(180deg);
}

/* Corrections supplémentaires pour le mode sombre */
[data-theme="dark"] .text-primary {
    color: var(--primary) !important;
}

[data-theme="dark"] .btn-outline-light {
    border-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .btn-outline-light:hover {
    background-color: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}

[data-theme="dark"] .carousel-caption h1,
[data-theme="dark"] .carousel-caption h5 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .service-icon {
    background-color: var(--primary) !important;
}

[data-theme="dark"] .team-social .btn {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

[data-theme="dark"] .blog-item .position-absolute {
    background-color: var(--primary) !important;
}

[data-theme="dark"] .testimonial-item .text-primary {
    color: var(--primary) !important;
}

[data-theme="dark"] .footer-about .bg-primary {
    background-color: var(--primary) !important;
}

[data-theme="dark"] .copyright {
    background-color: var(--dark) !important;
}

[data-theme="dark"] .back-to-top {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Amélioration du bouton retour en haut */
.back-to-top {
    transition: all 0.3s ease !important;
    transform: scale(1);
}

.back-to-top:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.back-to-top:active {
    transform: scale(0.95) !important;
}

/* Amélioration des contrastes */
[data-theme="dark"] .display-1,
[data-theme="dark"] .display-5 {
    color: var(--text-primary) !important;
    font-weight: 600;
}

[data-theme="dark"] .section-title .text-secondary {
    color: var(--secondary) !important;
    font-weight: 600;
}

/* Bouton toggle mode sombre */
.theme-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1050;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.theme-toggle i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar {
    min-height: 70px !important;
    padding: 0.75rem 2rem !important;
}

.navbar-brand img {
    height: 60px !important;
    width: auto !important;
    max-width: 180px !important;
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 0.75rem 1.25rem !important;
    color: #FFFFFF;
    font-size: 1rem !important;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1.25rem !important;
    color: var(--dark);
}

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

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: var(--light);
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: var(--dark);
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: var(--light);
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(60, 84, 139, .7);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: var(--light);
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
    transform: translateY(0);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 2px;
    transform: rotate(-45deg);
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: rotate(-45deg) scale(1.1);
    background: var(--primary);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--accent1);
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--secondary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px var(--accent1);
}

/* Correction pour les témoignages sélectionnés en mode sombre */
[data-theme="dark"] .testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 30px rgba(74, 107, 197, 0.3) !important;
    border: 2px solid var(--primary) !important;
}

[data-theme="dark"] .testimonial-carousel .owl-item.center .testimonial-item h4 {
    color: var(--primary) !important;
}

[data-theme="dark"] .testimonial-carousel .owl-item.center .testimonial-item small {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .testimonial-carousel .owl-item.center .testimonial-item .pt-4 {
    color: var(--text-primary) !important;
}

/* Amélioration générale des témoignages en mode sombre */
[data-theme="dark"] .testimonial-carousel .owl-item .testimonial-item {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] .testimonial-carousel .owl-item .testimonial-item h4 {
    color: var(--primary) !important;
}

[data-theme="dark"] .testimonial-carousel .owl-item .testimonial-item small {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .testimonial-carousel .owl-item .testimonial-item .border-bottom {
    border-color: var(--border-color) !important;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px var(--accent1);
}

.team-item:hover .team-social {
    background: rgba(60, 84, 139, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

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

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1000;
    }
}

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

.bg-header {
    background: linear-gradient(rgba(60, 84, 139, .7), rgba(60, 84, 139, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/*** Neural Network Animation ***/
.neural-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.neural-bg::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--secondary);
    animation: neuronPulse1 3s infinite ease-in-out;
}

.neural-bg::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 20%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary);
    animation: neuronPulse2 2.5s infinite ease-in-out 0.5s;
}

.neural-bg .neuron1 {
    position: absolute;
    top: 60%;
    left: 25%;
    width: 10px;
    height: 10px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--secondary);
    animation: neuronFloat1 4s infinite ease-in-out;
}

.neural-bg .neuron2 {
    position: absolute;
    top: 20%;
    left: 70%;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 18px var(--primary);
    animation: neuronFloat2 3.5s infinite ease-in-out 1s;
}

.neural-bg .neuron3 {
    position: absolute;
    top: 80%;
    left: 60%;
    width: 9px;
    height: 9px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 16px var(--secondary);
    animation: neuronFloat3 4.5s infinite ease-in-out 2s;
}

.neural-bg .neuron4 {
    position: absolute;
    top: 45%;
    right: 10%;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--primary);
    animation: neuronPulse1 2.8s infinite ease-in-out 1.5s;
}

.neural-bg .connection1 {
    position: absolute;
    top: 25%;
    left: 20%;
    width: 150px;
    height: 2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--secondary));
    transform: rotate(25deg);
    animation: connectionFlow1 5s infinite linear;
    opacity: 0.7;
}

.neural-bg .connection2 {
    position: absolute;
    top: 65%;
    left: 40%;
    width: 120px;
    height: 1px;
    background: linear-gradient(-30deg, var(--secondary), transparent, var(--primary));
    transform: rotate(-15deg);
    animation: connectionFlow2 6s infinite linear 2s;
    opacity: 0.5;
}

@keyframes neuronPulse1 {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.8); opacity: 1; }
}

@keyframes neuronPulse2 {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(2); opacity: 1; }
}

@keyframes neuronFloat1 {
    0%, 100% { transform: translateY(0px) scale(1); }
    25% { transform: translateY(-10px) scale(1.2); }
    75% { transform: translateY(5px) scale(0.9); }
}

@keyframes neuronFloat2 {
    0%, 100% { transform: translateX(0px) scale(1); }
    33% { transform: translateX(8px) scale(1.3); }
    66% { transform: translateX(-5px) scale(0.8); }
}

@keyframes neuronFloat3 {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    25% { transform: translate(5px, -8px) scale(1.1); }
    50% { transform: translate(-3px, 3px) scale(1.4); }
    75% { transform: translate(7px, -2px) scale(0.9); }
}

@keyframes connectionFlow1 {
    0% { background-position: 0% 50%; opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { background-position: 200% 50%; opacity: 0.3; }
}

@keyframes connectionFlow2 {
    0% { background-position: 0% 50%; opacity: 0.2; }
    50% { opacity: 0.7; }
    100% { background-position: -200% 50%; opacity: 0.2; }
}

.neural-section {
    position: relative;
    z-index: 1;
}

.neural-section .container {
    position: relative;
    z-index: 2;
}

/* Video Background Styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}


/* Carousel adjustments for video background */
#home {
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

#home .carousel-inner {
    position: relative;
    z-index: 2;
    height: 100vh;
}

#home .carousel-item {
    height: 100vh;
    background: none;
}

#home .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

/* Facts section positioning */
.facts {
    position: relative;
    z-index: 10000 !important;
    background: transparent;
    margin-top: -75px;
}

@media (max-width: 991.98px) {
    .facts {
        margin-top: 0;
    }
}

/* Responsive video */
@media (max-width: 768px) {
    #background-video {
        min-width: 768px;
    }
}

/* Owl Carousel Partners - Forcer la visibilité */
.owl-carousel.partner-carousel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
}

.owl-carousel.partner-carousel.owl-loaded {
    display: block !important;
}

.owl-carousel.partner-carousel .owl-stage-outer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    width: 100% !important;
    position: relative !important;
    -webkit-transform: translate3d(0px, 0px, 0px) !important;
}

.owl-carousel.partner-carousel .owl-stage {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    position: relative !important;
}

.owl-carousel.partner-carousel .owl-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    min-width: 200px !important;
    float: none !important;
    position: relative !important;
}

.owl-carousel.partner-carousel .owl-item .item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

.owl-carousel.partner-carousel .partner-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.owl-carousel.partner-carousel .owl-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.owl-carousel.partner-carousel .item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.owl-carousel.partner-carousel .partner-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Standardisation des images Blog et Team */
.blog-img img,
.team-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.blog-img {
    height: 250px;
    overflow: hidden;
}

.team-img {
    height: 250px;
    overflow: hidden;
}

/* Pricing section alignment */
#pricing .row > .col-lg-4 {
    display: flex;
}

#pricing .bg-light,
#pricing .bg-white {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

#pricing .p-5 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#pricing .btn {
    margin-top: auto;
}

/* Pricing text alignment */
#pricing .d-flex span {
    text-align: left;
    line-height: 1.4;
}

#pricing .display-5 {
    text-align: center;
    margin-bottom: 2rem !important;
}

/* Google Maps integration */
iframe[src*="google.com/maps"] {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

iframe[src*="google.com/maps"]:hover {
    transform: scale(1.02);
}

/* Contact section map container */
#contact .col-lg-6:last-child {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* ===== MEDIA SECTIONS STYLES ===== */

/* Photos Gallery */
#photos .position-relative {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#photos .position-relative:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#photos .hover-opacity-100 {
    transition: opacity 0.3s ease;
}

#photos .position-relative:hover .hover-opacity-100 {
    opacity: 1 !important;
}

#photos .transition-all {
    transition: all 0.3s ease;
}

/* Videos Gallery */
#videos video {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#videos .position-relative:hover video {
    transform: scale(1.02);
}

#videos .bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3), transparent);
}

/* Media hover effects */
.media-hover-effect {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.media-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.media-hover-effect:hover::before {
    opacity: 0.1;
}

/* Mode sombre pour les sections médias */
[data-theme="dark"] #photos .position-relative,
[data-theme="dark"] #videos .position-relative {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] #photos .bg-dark {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] #videos .bg-dark {
    background-color: var(--bg-primary) !important;
}

/* Responsive adjustments for media sections */
@media (max-width: 768px) {
    #photos .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    #videos .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    #photos img,
    #videos video {
        height: 200px !important;
    }
}

/* Animation pour les médias */
@keyframes mediaFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-animate {
    animation: mediaFadeIn 0.6s ease-out;
}



[data-theme="dark"] .photo-gallery .photo-item:hover {
    box-shadow: 0 8px 16px rgba(255,255,255,0.2);
}

[data-theme="dark"] .photo-item-fallback {
    background: linear-gradient(135deg, #4A6BC5 0%, #3C548B 100%);
}



    100% { background-position: 200% 0; }
}

[data-theme="dark"] .loading-shimmer {
    background: linear-gradient(90deg, #3a3a3a 25%, #4a4a4a 50%, #3a3a3a 75%);
    background-size: 200% 100%;
}


/* ===== GALERIE PHOTOS - FORMAT GRID SIMPLE ===== */
.photos-grid-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

[data-theme="dark"] .photos-grid-section {
    background-color: #1a1a1a;
}

.photos-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.photos-grid-title {
    text-align: center;
    margin-bottom: 50px;
}

.photos-grid-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

[data-theme="dark"] .photos-grid-title h2 {
    color: #ffffff;
}

.photos-grid-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

[data-theme="dark"] .photos-grid-title p {
    color: #cccccc;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.photo-grid-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .photo-grid-item {
    background: #2c2c2c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.photo-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

[data-theme="dark"] .photo-grid-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.photo-grid-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.photo-grid-content {
    padding: 20px;
}

.photo-grid-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

[data-theme="dark"] .photo-grid-content h3 {
    color: #ffffff;
}

.photo-grid-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

[data-theme="dark"] .photo-grid-content p {
    color: #cccccc;
}

.photo-grid-fallback {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    flex-direction: column;
}

.photo-grid-fallback i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.photo-grid-fallback h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.photo-grid-fallback p {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .photos-grid-title h2 {
        font-size: 2rem;
    }
    
    .photo-grid-image {
        height: 200px;
    }
    
    .photo-grid-content {
        padding: 15px;
    }
    
    .photos-grid-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photos-grid-container {
        padding: 0 15px;
    }
    
    .photos-grid-title h2 {
        font-size: 1.8rem;
    }
}

/* Animation d'apparition simple */
.photo-grid-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInGrid 0.6s ease forwards;
}

.photo-grid-item:nth-child(1) { animation-delay: 0.1s; }
.photo-grid-item:nth-child(2) { animation-delay: 0.2s; }
.photo-grid-item:nth-child(3) { animation-delay: 0.3s; }
.photo-grid-item:nth-child(4) { animation-delay: 0.4s; }
.photo-grid-item:nth-child(5) { animation-delay: 0.5s; }
.photo-grid-item:nth-child(6) { animation-delay: 0.6s; }
.photo-grid-item:nth-child(7) { animation-delay: 0.7s; }
.photo-grid-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInGrid {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STYLES POUR LA PAGE GALERIE ===== */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
    pointer-events: none;
}

.nav-pills .nav-link {
    border-radius: 25px;
    padding: 12px 25px;
    margin: 0 5px;
    background: transparent;
    border: 2px solid #e9ecef;
    color: #666;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

[data-theme="dark"] .nav-pills .nav-link {
    border-color: #404040;
    color: #cccccc;
}

[data-theme="dark"] .nav-pills .nav-link:hover {
    background: #2c2c2c;
    border-color: #4A6BC5;
    color: #4A6BC5;
}

.video-container {
    position: relative;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-container:hover .video-overlay {
    opacity: 1;
}

/* Amélioration des boutons "Voir plus" */
.btn-lg {
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

[data-theme="dark"] .btn-lg {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

[data-theme="dark"] .btn-lg:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ===== STYLES POUR LES NOUVELLES PAGES ===== */

/* Styles pour la page Tarification */
.pricing-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.pricing-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.pricing-price {
    font-size: 2rem;
    font-weight: bold;
}

.price-text {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.2rem;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Styles pour la page Équipe */
.team-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.team-img {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

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

.team-social {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.team-social a {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: #764ba2;
    transform: scale(1.1);
}

/* Styles pour la page Blog */
.blog-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.blog-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.blog-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    min-width: 60px;
}

.blog-date span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.blog-date small {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.blog-meta small {
    color: #666;
}

.blog-content h5 {
    color: #333;
    transition: color 0.3s ease;
}

.blog-item:hover .blog-content h5 {
    color: #667eea;
}

/* Mode sombre pour les nouvelles pages */
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .team-item,
[data-theme="dark"] .blog-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .pricing-card:hover,
[data-theme="dark"] .team-item:hover,
[data-theme="dark"] .blog-item:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

[data-theme="dark"] .pricing-features li {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .blog-content h5 {
    color: var(--text-primary);
}

[data-theme="dark"] .blog-item:hover .blog-content h5 {
    color: var(--primary);
}

[data-theme="dark"] .blog-meta small {
    color: var(--text-secondary);
}

/* Amélioration des boutons "Voir plus" */
.btn-lg.px-5 {
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-lg.px-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-lg.px-5:hover::before {
    left: 100%;
}

/* Responsive pour les nouvelles pages */
@media (max-width: 768px) {
    .pricing-card,
    .team-item,
    .blog-item {
        margin-bottom: 30px;
    }
    
    .team-img,
    .blog-img {
        height: 200px;
    }
    
    .pricing-price {
        font-size: 1.5rem;
    }
    
    .btn-lg.px-5 {
        padding: 12px 30px !important;
        font-size: 0.9rem;
    }
}

/* ===== STYLES POUR LA PAGE PRICING ===== */
.pricing-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

[data-theme="dark"] .pricing-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

.pricing-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

[data-theme="dark"] .pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow: 0 20px 50px rgba(74, 107, 197, 0.4);
}

.pricing-card.popular {
    border: 3px solid #ffc107;
    position: relative;
}

.pricing-card.popular::before {
    content: '⭐ POPULAIRE';
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 6px 35px;
    font-size: 0.65rem;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.pricing-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.pricing-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.pricing-icon-wrapper i {
    font-size: 2rem;
    color: white;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
}

.pricing-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.pricing-body {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pricing-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 40px;
}

[data-theme="dark"] .pricing-description {
    color: var(--text-secondary);
}

.pricing-price {
    text-align: center;
    margin: 20px 0;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    position: relative;
}

[data-theme="dark"] .pricing-price {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.pricing-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
    margin-bottom: 8px;
}

[data-theme="dark"] .pricing-price-amount {
    color: var(--primary);
}

.pricing-price-currency {
    font-size: 1rem;
    color: #999;
    font-weight: 600;
}

[data-theme="dark"] .pricing-price-currency {
    color: var(--text-secondary);
}

.pricing-price-duration {
    font-size: 0.9rem;
    color: #999;
    margin-top: 5px;
}

[data-theme="dark"] .pricing-price-duration {
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
}

[data-theme="dark"] .pricing-features li {
    border-bottom-color: var(--border-color);
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: #28a745;
    margin-right: 10px;
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

.pricing-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.pricing-btn {
    width: 100%;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pricing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.empty-packages {
    text-align: center;
    padding: 80px 20px;
}

.empty-packages i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 30px;
}

.empty-packages h3 {
    color: #666;
    margin-bottom: 20px;
}

[data-theme="dark"] .empty-packages h3 {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 40px 0;
    }
    
    .pricing-card.popular::before {
        font-size: 0.55rem;
        padding: 4px 30px;
        right: -35px;
    }
    
    .pricing-header {
        padding: 20px 15px;
    }
    
    .pricing-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .pricing-icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .pricing-title {
        font-size: 1.1rem;
    }
    
    .pricing-body {
        padding: 20px 15px;
    }
    
    .pricing-price-amount {
        font-size: 1.6rem;
    }
}

/* ===== STYLES POUR LA PAGE GALERIE ===== */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

[data-theme="dark"] .gallery-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

[data-theme="dark"] .gallery-filters {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .filter-btn {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    aspect-ratio: 4/3;
}

[data-theme="dark"] .gallery-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .gallery-item:hover {
    box-shadow: 0 15px 40px rgba(74, 107, 197, 0.4);
}

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

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-category {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.gallery-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: scale(1);
}

.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.gallery-empty i {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 30px;
}

.gallery-empty h3 {
    color: #666;
    margin-bottom: 20px;
}

[data-theme="dark"] .gallery-empty h3 {
    color: var(--text-secondary);
}

.gallery-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-filters {
        padding: 15px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .gallery-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== STYLES RESPONSIFS MOBILE HARMONISÉS ===== */
/* Breakpoints standards : 576px (sm), 768px (md), 992px (lg) */

/* Mobile Small (< 576px) */
@media (max-width: 575.98px) {
    /* Sections générales */
    .container-fluid.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .section-title {
        margin-bottom: 2rem !important;
    }
    
    .section-title h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .section-title h5 {
        font-size: 0.9rem !important;
    }
    
    .section-title p {
        font-size: 0.9rem !important;
        margin-top: 0.75rem !important;
    }
    
    /* Titres */
    h1, .h1 {
        font-size: 1.75rem !important;
    }
    
    h2, .h2 {
        font-size: 1.5rem !important;
    }
    
    h3, .h3 {
        font-size: 1.25rem !important;
    }
    
    h4, .h4 {
        font-size: 1.1rem !important;
    }
    
    /* Boutons */
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Espacements */
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .pb-3 {
        padding-bottom: 1rem !important;
    }
    
    /* Cards et Items */
    .service-item,
    .blog-item,
    .team-item,
    .testimonial-item,
    .pricing-card {
        margin-bottom: 1.5rem !important;
    }
    
    /* Pricing Section */
    .pricing-section {
        padding: 2rem 0 !important;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem !important;
    }
    
    .pricing-header {
        padding: 1.5rem 1rem !important;
    }
    
    .pricing-title {
        font-size: 1.1rem !important;
    }
    
    .pricing-icon-wrapper {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 0.75rem !important;
    }
    
    .pricing-icon-wrapper i {
        font-size: 1.5rem !important;
    }
    
    .pricing-price-amount {
        font-size: 1.5rem !important;
    }
    
    .pricing-body {
        padding: 1.5rem 1rem !important;
    }
    
    /* Gallery */
    .gallery-section {
        padding: 2rem 0 !important;
    }
    
    .gallery-filters {
        padding: 1rem !important;
        gap: 0.5rem !important;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Contact */
    .bg-light.rounded.p-4 {
        padding: 1.5rem !important;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 0.75rem !important;
        font-size: 1rem !important;
    }
    
    textarea.form-control {
        min-height: 120px !important;
    }
    
    /* Empty states */
    .empty-packages,
    .gallery-empty {
        padding: 3rem 1rem !important;
    }
    
    .empty-packages i,
    .gallery-empty i {
        font-size: 3rem !important;
    }
    
    .empty-packages h3,
    .gallery-empty h3 {
        font-size: 1.25rem !important;
    }
}

/* Mobile Medium (576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container-fluid.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .section-title h1 {
        font-size: 2rem !important;
    }
    
    .pricing-section,
    .gallery-section {
        padding: 3rem 0 !important;
    }
}

/* Tablet (768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container-fluid.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .section-title h1 {
        font-size: 2.25rem !important;
    }
}

/* ===== AMÉLIORATIONS SPÉCIFIQUES MOBILE ===== */

/* Navbar mobile optimisée */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem !important;
        min-height: 60px !important;
    }
    
    .navbar-brand img {
        height: 45px !important;
        max-width: 140px !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        margin-top: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background-color: rgba(15, 23, 42, 0.98) !important;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.25rem !important;
    }
}

/* Carousel mobile */
@media (max-width: 767.98px) {
    #home.carousel {
        height: 400px !important;
    }
    
    .carousel-caption h1 {
        font-size: 1.75rem !important;
    }
    
    .carousel-caption h5 {
        font-size: 0.9rem !important;
    }
    
    .carousel-caption .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        margin: 0.25rem !important;
    }
}

/* Facts section mobile */
@media (max-width: 767.98px) {
    .facts-section {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }
    
    .facts .bg-primary,
    .facts .bg-light {
        height: 120px !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .facts h1 {
        font-size: 1.5rem !important;
    }
    
    .facts h5 {
        font-size: 0.9rem !important;
    }
}

/* Grid responsive amélioré */
@media (max-width: 575.98px) {
    .row.g-4 > [class*="col-"] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .row.g-4 {
        margin-left: -0.75rem !important;
        margin-right: -0.75rem !important;
    }
}

/* Images et médias */
@media (max-width: 767.98px) {
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .team-item img,
    .blog-item img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover !important;
    }
}

/* Tables responsive */
@media (max-width: 767.98px) {
    .table-responsive {
        border: none !important;
    }
    
    table {
        font-size: 0.85rem !important;
    }
    
    .table td,
    .table th {
        padding: 0.5rem !important;
    }
}

/* Footer mobile */
@media (max-width: 767.98px) {
    .footer {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
        text-align: center !important;
    }
    
    .footer .col-lg-3,
    .footer .col-md-6 {
        margin-bottom: 2rem !important;
    }
    
    .footer h4 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .copyright {
        text-align: center !important;
        padding-top: 1.5rem !important;
    }
}

/* Call to Action mobile */
@media (max-width: 767.98px) {
    .container-fluid.py-5[style*="gradient"] {
        padding: 2rem 1rem !important;
    }
    
    .container-fluid.py-5[style*="gradient"] h3 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .container-fluid.py-5[style*="gradient"] .btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    .container-fluid.py-5[style*="gradient"] .text-lg-end {
        text-align: center !important;
    }
}

/* Spacing global mobile */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}
