.navbar-transparent {
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}

.nav-link{
    color: white;
    transition: all 0.3s ease;
}

.nav-link:hover{
    color: #87d3a3;
}

.nav-link-scrolled {
    color: #166534;
    transition: color 0.3s ease;
}

.nav-link-scrolled:hover {
    color: #16a34a;
}

.nav-link-active {
    border-bottom: 2px solid;
    padding-bottom: 2px;
}

.logo {
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    user-select: none;
    transition: color 0.3s ease;
}

.logo img{
    width: 9rem;
    margin-bottom: 5px;
}
.logo-scrolled {
    color: #166534;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.mySwiper2{
    width: 100%;
    height: 100%;
}

.mySwiper2 img{
    width: 100%;
    height: 100%;
}

/* Loader */
.loader-spin {
  border-top-color: transparent;
}

.partenaire{
    width: 190px;
}


/* .hero-video-fallback {
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
} */

html {
    scroll-behavior: smooth;
}

.mobile-menu {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(22, 101, 52, 0.95);
    backdrop-filter: blur(10px);
}

.mobile-sublinks {
    padding-left: 15px;
}
.mobile-subitem {
    display: block;
    color: white;
    padding: 8px 0;
}


.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-btn {
    color: white;
    transition: color 0.3s ease;
}

.mobile-menu-btn.scrolled {
    color: #166534;
}

.about-sublinks,
.entity-sublinks
 {
    min-width: 220px;
    width: max-content;
    max-width: 320px;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(22, 101, 52, 0.95);
}


#aboutSection, #entitySection {
    position: relative;
}


.about-sublinks.open, .entity-sublinks.open{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;    
}

/* Fix pour éviter que le menu mobile affecte la hauteur de la navbar */
.navbar-container {
    position: relative;
}

@media (max-width: 767px) {
    .navbar-scrolled {
        padding: 0.5rem 0;
    }
}
