html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/bg.jpg');
    /* adapte le chemin si nécessaire */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* optionnel : effet parallaxe */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-gradient {
    /*background: linear-gradient(135deg, rgba(17, 24, 39, 0.45), rgba(29, 78, 216, 0.45));*/
    background: linear-gradient(135deg, rgba(17, 39, 24, 0.45), rgba(16, 185, 129, 0.45));
}

.bg-diagonal {
    background-image: linear-gradient(135deg, #f9fafb 50%, #f3f4f6 50%);
}

.card-hover:hover {
    transform: translateY(-5px);
}

.custom-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon-container {
    transition: all 0.3s ease;
}

.card-hover:hover .card-icon-container {
    transform: scale(1.1);
    background-color: #2563eb;
}

.card-hover:hover .card-icon {
    color: white !important;
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.nav-active {
    /*color: #374151;*/
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    height: 2px;
    background-color: #3b82f6;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: transparent;
    transition: background 0.7s ease-in-out;
    z-index: 10000;
}

.header.scrolled {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #374151;
}

/* Swiper custom styles */
.swiper {
    width: 100%;
    padding: 40px 20px;
}

.swiper-slide {
    height: auto;
}

.swiper-button-next,
.swiper-button-prev {
    color: #3b82f6;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

.swiper-pagination-bullet-active {
    background: #3b82f6;
}

/* Mobile menu fixes */
#mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(31, 41, 55, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

#mobile-menu.show {
    display: block;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-section {
        background-attachment: scroll;
        /* Fix for mobile parallax */
    }
}