/********** ALEMA Modern Design - Template CSS **********/

:root {
    /* Modern Color Palette - Inspired by ALEMA Logo */
    --primary-dark: #0A1628;
    --primary-navy: #1B3B6F;
    --primary-blue: #2E5C9A;
    --accent-blue: #0088FF;
    --accent-light: #4DA8FF;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-muted: #6C757D;
    --gradient-primary: linear-gradient(135deg, #1B3B6F 0%, #2E5C9A 100%);
    --gradient-accent: linear-gradient(135deg, #0088FF 0%, #4DA8FF 100%);
    --shadow-sm: 0 2px 10px rgba(27, 59, 111, 0.08);
    --shadow-md: 0 4px 20px rgba(27, 59, 111, 0.12);
    --shadow-lg: 0 8px 40px rgba(27, 59, 111, 0.16);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Prevent horizontal scroll on all elements */
* {
    max-width: 100%;
}

.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    overflow-x: hidden;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
}

.row {
    margin-right: -15px;
    margin-left: -15px;
}

.container {
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Mobile-specific fixes for centering */
@media (max-width: 576px) {
    /* Force suppression de tout décalage horizontal */
    html, body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body {
        position: relative;
    }

    .container-fluid {
        padding-right: 15px;
        padding-left: 15px;
        width: 100%;
        margin: 0 auto;
        max-width: 100%;
    }

    .container {
        padding-right: 15px;
        padding-left: 15px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .row {
        margin-right: -15px;
        margin-left: -15px;
        width: 100%;
    }

    [class*="col-"] {
        padding-right: 15px;
        padding-left: 15px;
    }

    /* Force centrage de tous les titres */
    h1, h2, h3, h4, h5, h6,
    .display-1, .display-2, .display-3,
    .display-4, .display-5, .display-6 {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Éliminer tout débordement potentiel */
    * {
        box-sizing: border-box;
    }

    section {
        overflow-x: hidden;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding-right: 15px;
        padding-left: 15px;
        width: 100%;
        margin: 0 auto;
    }

    .container {
        padding-right: 15px;
        padding-left: 15px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
}

/* Geometric Background Pattern */
.geometric-bg {
    position: relative;
    overflow: hidden;
}

.geometric-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, transparent 40%, rgba(27, 59, 111, 0.02) 40%, rgba(27, 59, 111, 0.02) 60%, transparent 60%),
        linear-gradient(150deg, transparent 40%, rgba(46, 92, 154, 0.02) 40%, rgba(46, 92, 154, 0.02) 60%, transparent 60%);
    background-size: 80px 80px;
    z-index: 0;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.fw-medium {
    font-weight: 600;
}

.mt-6 {
    margin-top: 5rem;
}

.mb-6 {
    margin-bottom: 5rem;
}

.pt-6 {
    padding-top: 5rem;
}

.pb-6 {
    padding-bottom: 5rem;
}

/*** Modern Topbar ***/
.modern-topbar {
    background: white;
    border-bottom: 1px solid rgba(27, 59, 111, 0.08);
    font-size: 14px;
}

.topbar-contact-item {
    display: flex;
    align-items: center;
    margin-right: 30px;
    color: var(--text-dark);
}

.topbar-contact-item:last-child {
    margin-right: 0;
}

.topbar-contact-item i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    margin-right: 12px;
    font-size: 14px;
}

.topbar-contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.topbar-contact-item a:hover {
    color: var(--primary-navy);
}

.topbar-social {
    display: flex;
    gap: 10px;
}

.topbar-social a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 59, 111, 0.05);
    color: var(--primary-navy);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.topbar-social a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}


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

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


/*** Modern Buttons ***/
.btn {
    transition: all 0.4s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.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.6s ease;
    z-index: -1;
}

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

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--bs-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-accent);
}

.btn-outline-primary {
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bs-light);
    transform: translateY(-3px);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

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

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

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

.btn-xl-square {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

.btn-xxl-square {
    width: 75px;
    height: 75px;
    border-radius: 12px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    transition: all 0.3s ease;
}

.btn-square:hover,
.btn-sm-square:hover,
.btn-lg-square:hover,
.btn-xl-square:hover,
.btn-xxl-square:hover {
    transform: scale(1.1);
}

/*** Modern Navbar Full Width - Original Design ***/
.modern-navbar-fullwidth {
    background: transparent;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 0 !important;
    margin: 0;
}

/* Force removal of padding for header container */
.container-fluid.modern-navbar-fullwidth {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.modern-navbar-fullwidth > * {
    position: relative;
    z-index: 1;
}

.modern-navbar-fullwidth.sticky-top {
    top: 0;
}

/* Logo Section with Modern Design */
.navbar-logo-fullwidth {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    width: 100%;
    padding: 20px 0 20px 0;
    position: relative;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 85%,
        95% 100%,
        5% 100%,
        0 85%
    );
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

/* Decorative elements */
.navbar-logo-fullwidth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-blue) 50%, transparent 100%);
    opacity: 0.3;
}

.navbar-logo-fullwidth::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 136, 255, 0.4);
}

.navbar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: static;
    margin: 0;
    padding: 0;
}

.navbar-logo-img-fullwidth {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 15px rgba(27, 59, 111, 0.15));
}

.navbar-logo-img-fullwidth:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 6px 20px rgba(0, 136, 255, 0.3));
}

/* Menu Bar with Modern Styling */
.navbar-menu-bar {
    background: transparent;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.modern-navbar-fullwidth .navbar-nav .nav-link {
    margin: 0 25px;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.modern-navbar-fullwidth .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.modern-navbar-fullwidth .navbar-nav .nav-link:hover::before,
.modern-navbar-fullwidth .navbar-nav .nav-link.active::before {
    width: 70%;
}

.modern-navbar-fullwidth .navbar-nav .nav-link:hover,
.modern-navbar-fullwidth .navbar-nav .nav-link.active {
    color: var(--primary-navy);
    background: rgba(27, 59, 111, 0.05);
}

/* Navbar Toggler (menu hamburger mobile) */
.navbar-toggler {
    border-color: rgba(27, 59, 111, 0.3) !important;
    background: rgba(27, 59, 111, 0.05);
    margin-right: 15px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(27, 59, 111, 0.25);
}

.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='rgba(27, 59, 111, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-collapse {
    width: 100%;
}

.modern-navbar-fullwidth .navbar {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 991.98px) {
    .navbar-logo-img-fullwidth {
        height: 70px;
    }

    .navbar-logo-fullwidth {
        padding: 20px 0 30px 0;
        clip-path: polygon(
            0 0,
            100% 0,
            100% 85%,
            95% 100%,
            5% 100%,
            0 85%
        );
        width: 100%;
        margin: 0;
    }

    .container-fluid.modern-navbar-fullwidth {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navbar-logo-fullwidth::after {
        width: 150px;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar-brand {
        width: 100%;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    .modern-navbar-fullwidth .navbar-nav .nav-link {
        margin: 10px auto;
        width: 100%;
        max-width: 300px;
        text-align: center;
        display: block;
    }

    .navbar-menu-bar {
        padding: 0;
        margin-top: 25px;
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
        width: 100%;
    }

    .navbar-collapse {
        text-align: center;
        width: 100%;
        padding: 0;
    }

    .modern-navbar-fullwidth {
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .navbar-logo-img-fullwidth {
        height: 60px;
        margin: 0 auto;
        display: block;
    }

    .navbar-logo-fullwidth {
        padding: 20px 0 30px 0;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .container-fluid.modern-navbar-fullwidth {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navbar-logo-fullwidth::after {
        width: 120px;
        height: 3px;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar-logo-fullwidth::before {
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    .navbar-brand {
        width: 100%;
        justify-content: center;
        padding: 0;
        margin: 0;
        display: flex;
    }

    .navbar-menu-bar {
        margin-top: 20px;
        margin-left: 0;
        margin-right: 0;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .modern-navbar-fullwidth .navbar-nav .nav-link {
        margin: 8px auto;
        max-width: 250px;
    }

    .navbar-collapse {
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .modern-navbar-fullwidth {
        padding: 0;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .modern-navbar-fullwidth .navbar {
        padding: 0;
        margin: 0;
    }
}


/*** Modern Hero Section with Diagonal Cut ***/
.modern-hero {
    position: relative;
    min-height: 100vh;
    overflow: visible;
    padding-top: 0;
    margin-top: 0;
    padding-bottom: 6rem;
}

.hero-background {
    position: absolute;
    top: -250px;
    left: 0;
    width: 100%;
    height: calc(100% + 250px);
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 59, 111, 0.9) 0%, rgba(10, 22, 40, 0.85) 100%);
    z-index: 1;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(0, 136, 255, 0.02) 35px, rgba(0, 136, 255, 0.02) 70px);
}

/* Responsive adjustments for hero background extension */
@media (max-width: 768px) {
    .hero-background {
        top: -200px;
        height: calc(100% + 200px);
    }
}

@media (max-width: 576px) {
    .hero-background {
        top: -180px;
        height: calc(100% + 180px);
    }
}

.modern-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    color: var(--accent-blue);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    animation: fadeInUp 1.2s ease;
}

.hero-cta {
    animation: fadeInUp 1.4s ease;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-navy);
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 1.6s ease;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Logo Section */
.hero-logo-section {
    animation: fadeInRight 1.2s ease;
    perspective: 1000px;
}

.hero-image-only {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.hero-main-image-rounded {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 25px rgba(0, 136, 255, 0.4));
    transition: all 0.4s ease;
    animation: logoGentleFloat 3s ease-in-out infinite;
}

.hero-main-image-rounded:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 35px rgba(0, 136, 255, 0.6));
    animation-play-state: paused;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: fadeInUp 1.8s ease;
}

.feature-badge {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.feature-badge i {
    color: var(--accent-blue);
    margin-right: 15px;
    font-size: 20px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.scroll-indicator a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

@keyframes cardBreathing {
    0%, 100% {
        box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.4),
            0 10px 30px rgba(0, 136, 255, 0.2),
            inset 0 1px 1px rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow:
            0 30px 60px rgba(0, 0, 0, 0.45),
            0 15px 40px rgba(0, 136, 255, 0.3),
            inset 0 1px 1px rgba(255, 255, 255, 0.9);
    }
}

@keyframes logoGentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}

/* Responsive Modern Hero */
@media (max-width: 991px) {
    .modern-hero {
        padding-top: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-image-only {
        max-width: 400px;
    }

    .hero-main-image-rounded {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .modern-hero {
        padding-top: 0;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-image-only {
        max-width: 350px;
        margin: 0 auto 2rem auto;
    }

    .hero-logo-section {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-cta .btn {
        padding: 0.75rem 2rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .modern-hero {
        padding-top: 0;
        padding-bottom: 3rem;
        overflow-x: hidden;
        width: 100%;
    }

    .modern-hero .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-content {
        margin-top: 2rem;
        margin-bottom: 2rem;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-description {
        font-size: 0.95rem;
        text-align: center;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-image-only {
        max-width: 280px;
        margin: 0 auto 2rem auto;
    }

    .hero-logo-section {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto !important;
        padding: 0.7rem 1.5rem !important;
    }

    .feature-badge {
        padding: 12px 20px;
        font-size: 0.9rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .modern-hero .row {
        margin-right: -15px;
        margin-left: -15px;
    }

    .modern-hero [class*="col-"] {
        padding-right: 15px;
        padding-left: 15px;
    }
}

.carousel .carousel-item {
    height: 650px;
    overflow: hidden;
    position: relative;
}

.carousel .carousel-item img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    object-position: center;
    transition: transform 8s ease;
}

.carousel .carousel-item.active img {
    transform: scale(1.1);
}

.carousel .carousel-indicators {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 80px;
    flex-direction: column;
    margin: 0;
    margin-left: 3rem;
}

.carousel .carousel-indicators [data-bs-target] {
    width: 70px;
    height: 70px;
    text-indent: 0;
    margin: 5px 0;
    border: 3px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
    opacity: 0.7;
}

.carousel .carousel-indicators [data-bs-target].active {
    border-color: var(--accent-blue);
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.5);
}

.carousel .carousel-indicators [data-bs-target]:hover {
    opacity: 1;
    transform: scale(1.05);
}

.carousel .carousel-indicators [data-bs-target] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

    .carousel .carousel-indicators [data-bs-target] {
        width: 60px;
        height: 60px;
    }

    .carousel .carousel-caption {
        padding-left: 10rem;
    }
}

@media (max-width: 768px) {
    .carousel .carousel-item {
        min-height: 400px;
        height: 400px;
    }

    .carousel .carousel-item img {
        height: 400px;
    }

    .carousel .carousel-indicators {
        width: 60px;
        margin-left: 1rem;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 50px;
        height: 50px;
    }

    .carousel .carousel-caption {
        padding-left: 7rem;
        padding-right: 1rem;
    }

    .carousel .carousel-caption h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
}

@media (max-width: 576px) {
    .carousel .carousel-item {
        height: 350px;
    }

    .carousel .carousel-item img {
        height: 350px;
    }

    .carousel .carousel-indicators {
        width: 50px;
        margin-left: 0.5rem;
    }

    .carousel .carousel-indicators [data-bs-target] {
        width: 45px;
        height: 45px;
        margin: 3px 0;
    }

    .carousel .carousel-caption {
        padding-left: 5.5rem;
        padding-right: 0.5rem;
        padding-top: 1rem;
    }

    .carousel .carousel-caption h1 {
        font-size: 1.8rem !important;
        line-height: 1.1;
        margin-bottom: 1rem !important;
    }

    .carousel .carousel-caption .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    .carousel .carousel-item .display-1 {
        font-size: 7rem;
    }
}

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

/*** Modern About Section ***/
.about-img {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.about-img img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
}

.about-img-rounded {
    border-radius: 20px !important;
}

.about-img:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 50px rgba(27, 59, 111, 0.25);
}

.about-text-content {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-navy);
}

/* Info Banner Section - Compact */
.info-banner-section {
    background: var(--bg-light);
    padding: 30px 0 !important;
}

.info-banner-wrapper {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    transition: all 0.4s ease;
    max-width: 900px;
    margin: 0 auto;
}

.info-banner-wrapper:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.info-banner-image {
    width: 200px;
    flex-shrink: 0;
}

.info-banner-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-banner-content {
    flex: 1;
    text-align: left;
}

.info-banner-content h3 {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.info-banner-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

@media (max-width: 768px) {
    .info-banner-wrapper {
        flex-direction: column;
        padding: 25px 20px;
        text-align: center;
    }

    .info-banner-image {
        width: 150px;
    }

    .info-banner-content {
        text-align: center;
    }

    .info-banner-content h3 {
        font-size: 1.2rem;
    }

    .info-banner-content p {
        font-size: 0.9rem;
    }
}

/* Geometric accent behind image */
.about-img::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: -20px;
    left: -20px;
    background: var(--gradient-accent);
    opacity: 0.1;
    border-radius: 20px;
    z-index: -1;
    transition: all 0.4s ease;
}

.about-img:hover::before {
    top: -25px;
    left: -25px;
    opacity: 0.15;
}

/* Feature boxes in About section */
.feature-box {
    background: linear-gradient(135deg, rgba(27, 59, 111, 0.03), rgba(0, 136, 255, 0.03));
    border-radius: 16px;
    border: 1px solid rgba(27, 59, 111, 0.08);
    transition: all 0.4s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, rgba(27, 59, 111, 0.06), rgba(0, 136, 255, 0.06));
}

.feature-box-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    transition: all 0.4s ease;
}

.feature-box:hover .feature-box-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--gradient-accent);
}

/* Modern callout box */
.modern-callout {
    background: var(--gradient-primary);
    padding: 30px 30px 30px 100px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modern-callout::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.modern-callout h4 {
    color: white;
    position: relative;
    z-index: 1;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
}

.callout-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
}

@keyframes animateUpDown {
    0% {
        top: -25px;
    }
    50% {
        top: -45px;
    }
    100% {
        top: -25px;
    }
}

/* Responsive pour mobile */
@media (max-width: 992px) {
    .about-img {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .about-img::before {
        top: -15px;
        left: -15px;
    }

    .feature-box {
        margin-bottom: 1rem;
    }

    .modern-callout {
        padding: 25px 25px 25px 90px;
    }

    .callout-icon {
        width: 50px;
        height: 50px;
        left: 15px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .about-img::before {
        top: -10px;
        left: -10px;
    }

    .about-img {
        max-width: 100%;
        text-align: center;
    }

    .about-img img {
        margin: 0 auto;
    }

    .feature-box {
        margin-bottom: 1rem;
    }

    .feature-box-icon {
        width: 70px;
        height: 70px;
    }

    .feature-box-icon i {
        font-size: 2rem;
    }

    .modern-callout {
        padding: 20px 20px 20px 80px;
    }

    .callout-icon {
        width: 45px;
        height: 45px;
        left: 12px;
        font-size: 18px;
    }

    /* Centrage des sections */
    section {
        text-align: center;
    }

    section .display-6,
    section h1,
    section h2,
    section h3 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}


/*** Modern Features ***/
.feature {
    background: linear-gradient(135deg, rgba(27, 59, 111, 0.95), rgba(10, 22, 40, 0.95)), url(../img/1.jpg) left center no-repeat;
    background-size: cover;
    position: relative;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 136, 255, 0.02) 10px, rgba(0, 136, 255, 0.02) 20px);
    pointer-events: none;
}

.feature-row {
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    overflow: hidden;
}

.feature-item {
    border-color: rgba(27, 59, 111, 0.08) !important;
    transition: all 0.4s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 136, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue) !important;
}

.feature-icon {
    position: relative;
    transition: all 0.5s ease;
    background: var(--gradient-primary);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item:hover .feature-icon {
    transform: rotate(45deg) scale(1.1);
    background: var(--gradient-accent);
}

.feature-item a::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 1px;
    background: var(--bs-secondary);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: -1;
}

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

.feature-item a:hover::after {
    background: var(--bs-primary);
}

/* Feature Image Section */
.feature-image-card {
    position: relative;
    max-width: 500px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 136, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    animation: cardBreathing 4s ease-in-out infinite;
}

.feature-image-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.5),
        0 15px 40px rgba(0, 136, 255, 0.3);
    border-color: rgba(0, 136, 255, 0.4);
}

.feature-image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 136, 255, 0.15) 0%, transparent 70%);
    animation: subtleRotate 8s linear infinite;
    filter: blur(40px);
    pointer-events: none;
}

.feature-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 25px rgba(0, 136, 255, 0.3));
    transition: all 0.4s ease;
}

.feature-image-card:hover .feature-main-image {
    filter: drop-shadow(0 15px 35px rgba(0, 136, 255, 0.5));
    transform: scale(1.02);
}

@keyframes subtleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Modern Stats Boxes */
.stats-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stats-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 136, 255, 0.2) 0%, transparent 70%);
    transition: all 0.6s ease;
}

.stats-box:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 15px 40px rgba(0, 136, 255, 0.3);
}

.stats-box:hover::before {
    top: -20%;
    right: -20%;
}

.stats-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    transition: all 0.4s ease;
}

.stats-box:hover .stats-icon {
    transform: scale(1.15) rotate(10deg);
}

.stats-box h1 {
    font-size: 3rem;
    font-weight: 800;
}

/* Modern Progress Box */
.progress-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.experience .progress {
    height: 8px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}


/*** Modern Service Cards ***/
.service .service-item {
    position: relative;
    margin-top: 45px;
}

.service .service-inner {
    position: relative;
    height: 100%;
    margin-top: 45px;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(27, 59, 111, 0.05);
}

.service .service-inner:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.service .service-inner::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: height 0.6s ease;
    background: var(--gradient-primary);
    z-index: 0;
}

.service .service-inner:hover::before {
    height: 100%;
    top: 0;
}

/* Geometric accent */
.service .service-inner::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--gradient-accent);
    opacity: 0.1;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: all 0.6s ease;
    z-index: 0;
}

.service .service-inner:hover::after {
    transform: rotate(45deg) scale(1.5);
    opacity: 0.15;
}

.service .service-item img {
    margin: -30px auto 0;
    width: 90%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
    display: block;
}

.service .service-inner:hover img {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.service .service-item * {
    position: relative;
    transition: all 0.5s ease;
    z-index: 1;
}

.service .service-item h5 {
    font-weight: 700;
    color: var(--primary-navy);
    transition: all 0.3s ease;
    text-align: center;
}

.service .service-text {
    text-align: center;
}

.service .service-item:hover h5,
.service .service-item:hover p {
    color: var(--bs-white);
}

.service .service-item a {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.service .service-item:hover a {
    padding-left: 45px !important;
    background: white;
    color: var(--primary-navy) !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .service .service-item img {
        height: 200px;
        width: 92%;
    }
}

@media (max-width: 576px) {
    .service {
        overflow-x: hidden;
        width: 100%;
    }

    .service .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .service .service-item img {
        height: 180px;
        width: 94%;
        margin: 0 auto;
        display: block;
    }

    .service .service-item {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .service .row {
        justify-content: center;
        margin-left: -15px;
        margin-right: -15px;
    }

    .service [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Centrage des textes sur mobile */
    p, .about-text-content {
        text-align: center !important;
    }

    /* Ajustement des boutons sur mobile */
    .btn {
        margin: 0.5rem auto;
        display: inline-block;
    }

    /* Section About */
    #apropos.container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    #apropos .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    #apropos [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/*** Modern Appointment/Quote Section ***/
.appoinment {
    background: linear-gradient(135deg, rgba(27, 59, 111, 0.92), rgba(10, 22, 40, 0.92)), url(../img/8.jpg) left center no-repeat;
    background-size: cover;
    position: relative;
    margin-bottom: 0 !important;
    padding-bottom: 6rem !important;
}

.appoinment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(30deg, transparent 45%, rgba(0, 136, 255, 0.03) 45%, rgba(0, 136, 255, 0.03) 55%, transparent 55%),
        linear-gradient(-30deg, transparent 45%, rgba(77, 168, 255, 0.03) 45%, rgba(77, 168, 255, 0.03) 55%, transparent 55%);
    background-size: 80px 80px;
    pointer-events: none;
}

.appoinment .bg-white {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.appoinment .btn-lg-square {
    background: var(--gradient-primary);
    transition: all 0.3s ease;
}

.appoinment .btn-lg-square:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Utility classes for larger margins */
.mb-6 {
    margin-bottom: 4rem !important;
}

.mb-7 {
    margin-bottom: 5rem !important;
}

/* Contact Title with Design Line */
.contact-title {
    position: relative;
    display: inline-block;
    width: 100%;
    padding-bottom: 30px;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 20%, white 50%, rgba(255, 255, 255, 0.8) 80%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 2px 15px rgba(255, 255, 255, 0.5);
}

/* Map and Devis Cards */
.map-devis-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
}

.map-devis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Address With Background */
.address-with-background {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.address-with-background:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.address-with-background h4 {
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.address-with-background i {
    transition: all 0.3s ease;
}

.address-with-background:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .address-with-background h4 {
        font-size: 1.2rem;
    }

    .address-with-background i {
        font-size: 1.5rem !important;
    }

    .contact-title::after {
        width: 100px;
    }
}

@media (max-width: 991px) {
    .map-devis-card iframe {
        height: 300px;
    }

    .address-with-background {
        padding: 20px 15px;
    }

    .address-with-background .d-flex {
        flex-direction: column;
        gap: 10px;
    }

    .address-with-background h4 {
        font-size: 1.1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .appoinment {
        overflow-x: hidden;
        width: 100%;
    }

    .appoinment .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .appoinment .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .appoinment [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    .map-devis-card {
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    .map-devis-card iframe {
        height: 250px;
        width: 100%;
    }

    .map-devis-card.h-100 {
        height: auto !important;
    }

    .row.gy-4 {
        row-gap: 1.5rem !important;
        margin-left: -15px;
        margin-right: -15px;
    }

    .contact-title {
        padding-bottom: 20px;
        margin-bottom: 2rem !important;
        text-align: center;
        width: 100%;
    }

    .contact-title::after {
        width: 80px;
        height: 3px;
        left: 50%;
        transform: translateX(-50%);
    }

    .mb-6 {
        margin-bottom: 2.5rem !important;
    }

    .mb-7 {
        margin-bottom: 3rem !important;
    }
}


/*** Team ***/
.team .team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team .team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team .team-item:hover .team-social {
    width: 100%;
    left: 0;
}

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

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


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.testimonial-img div {
    position: absolute;
    width: 100px;
    height: 100px;
    animation-duration: 5s;
}

.testimonial-img div:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: .1s;
}

.testimonial-img div:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: .4s;
}

.testimonial-img div:nth-child(3) {
    top: 20%;
    left: 60%;
    animation-delay: .7s;
}

.testimonial-img div:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.testimonial-img div::after {
    position: absolute;
    content: "";
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    box-shadow: 0 0 10px 10px var(--bs-white) inset;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 15px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    color: var(--bs-primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}


/*** Appoinment ***/
.newsletter {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-3.jpg) left center no-repeat;
    background-size: cover;
}


/*** Modern Footer ***/
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
    position: relative;
    margin-top: 0 !important;
    padding-top: 3rem !important;
    padding-bottom: 1rem !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(0, 136, 255, 0.02) 20px, rgba(0, 136, 255, 0.02) 40px);
    pointer-events: none;
}

.footer h5 {
    position: relative;
    padding-bottom: 12px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent-blue);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer .btn.btn-link:hover {
    color: var(--accent-light);
    padding-left: 5px;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link:hover::before {
    color: var(--accent-light);
    margin-right: 15px;
}

.footer .btn-square {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
}

.footer .btn-square:hover {
    background: white;
    border-color: white;
    color: var(--primary-navy);
}

.footer .btn-square:hover i {
    color: var(--primary-navy);
}

/* Modern Footer Gallery */
.footer .row.g-1 img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer .row.g-1 img:hover {
    transform: scale(1.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.4);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.gallery-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 136, 255, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#galleryCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 15px 0;
    font-size: 18px;
}

.gallery-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}

.gallery-close:hover,
.gallery-close:focus {
    color: var(--accent-blue);
}

.gallery-prev,
.gallery-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    border-radius: 8px;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10001;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* Responsive Gallery Modal */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 95%;
        padding: 10px;
    }

    .gallery-modal-content img {
        max-height: 70vh;
    }

    .gallery-close {
        top: 15px;
        right: 25px;
        font-size: 40px;
    }

    .gallery-prev,
    .gallery-next {
        font-size: 24px;
        padding: 12px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    #galleryCaption {
        font-size: 16px;
        width: 90%;
    }
}

@media (max-width: 576px) {
    .gallery-modal-content {
        width: 100%;
        padding: 5px;
    }

    .gallery-modal-content img {
        max-height: 60vh;
        border-radius: 8px;
    }

    .gallery-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

    .gallery-prev,
    .gallery-next {
        font-size: 20px;
        padding: 10px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }

    #galleryCaption {
        font-size: 14px;
        width: 95%;
        padding: 10px 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .footer .row.g-1 img {
        height: 70px;
    }

    .footer {
        text-align: center;
    }

    .footer .col-lg-3,
    .footer .col-md-6 {
        text-align: center;
        margin-bottom: 2rem;
    }

    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Centrer la galerie footer sur mobile */
    .footer .row.g-1 {
        justify-content: center;
        margin: 0 auto;
    }

    /* Fix pour les icônes btn-lg-square sur tablette */
    .btn-lg-square {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0;
    }

    .btn-lg-square i {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .footer .row.g-1 img {
        height: 60px;
    }

    .footer {
        text-align: center;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
        width: 100%;
    }

    .footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .footer .col-lg-3,
    .footer .col-md-6 {
        text-align: center;
        margin-bottom: 2rem;
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer .d-flex {
        justify-content: center;
    }

    /* Centrer parfaitement la galerie footer sur mobile */
    .footer .row.g-1 {
        justify-content: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .footer .row.g-1 .col-4 {
        display: flex;
        justify-content: center;
    }

    /* Fix pour les icônes btn-lg-square sur mobile */
    .btn-lg-square {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px;
        min-height: 48px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0;
    }

    .btn-lg-square i {
        font-size: 18px;
    }
}

/* Copyright responsive */
@media (max-width: 768px) {
    .copyright {
        text-align: center;
    }

    .copyright .row > div {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .copyright {
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    .copyright .row > div {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
}
/* FIN DE L'AJOUT ⬆️ */

.copyright {
    background: var(--primary-dark);
    border-top: 1px solid rgba(0, 136, 255, 0.1);
    margin: 0 !important;
    padding: 1rem 0 0.5rem 0 !important;
}

.copyright a {
    color: var(--accent-light);
    transition: all 0.3s ease;
}

.copyright a:hover {
    color: var(--bs-white);
    text-decoration: underline;
}

/* Modern Utility Classes */
.text-primary {
    color: var(--primary-navy) !important;
}

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

.border-primary {
    border-color: var(--primary-navy) !important;
}

/* Modern Section Titles */
.display-6 {
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* Gradient text only for light backgrounds */
.display-6:not(.text-white) {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* White text for dark backgrounds */
.display-6.text-white {
    color: white !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.text-center .display-6 {
    display: block;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.text-center .display-6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-accent);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.3);
}

/* Progress bars modern style */
.progress {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    background: var(--gradient-accent) !important;
    box-shadow: 0 0 20px rgba(0, 136, 255, 0.5);
    transition: width 2s ease;
}

/* Modern Borders */
.border-5 {
    border-width: 3px !important;
    border-radius: 12px;
}

/* Logo styles - Remove white background */
.logo-img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
    mix-blend-mode: multiply;
    filter: brightness(0) invert(1);
}

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

/* Logo in dark backgrounds (topbar) */
.bg-primary .logo-img,
.footer .logo-img {
    filter: brightness(0) invert(1);
    mix-blend-mode: normal;
}

/* Logo in light backgrounds (navbar) */
.navbar .logo-img {
    filter: brightness(0) invert(0.2);
    mix-blend-mode: normal;
}

/* Hero logo should NOT be affected by the filters above */
.hero-logo {
    filter: drop-shadow(0 8px 30px rgba(0, 136, 255, 0.5)) !important;
    mix-blend-mode: normal !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Fade in animation for sections */
section {
    animation: sectionFadeIn 0.8s ease-out;
}

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

/* Hover effects for links */
a {
    transition: all 0.3s ease;
}

/* Enhanced shadows on hover for cards */
.card, .service-item, .feature-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth color transitions */
* {
    transition-property: color, background-color, border-color, fill, stroke;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}