/* Navbar Component - CSS réutilisable */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    position: relative;
    z-index: 1001;
}

#logo_text {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.logo-link {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-link #logo_text {
    font-size: 24px !important;
    font-weight: 600 !important;
}

.logo-link:hover {
    color: #555555;
}

.logo-link:hover #logo_text {
    color: #555555 !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #666666;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333333;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #333333;
}

.nav-link.active::after {
    width: 100%;
    height: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .nav-container {
        padding: 0 20px;
        height: 70px;
    }

    .nav-logo {
        font-size: 20px;
    }

    #logo_text {
        font-size: 20px !important;
    }

    .logo-link #logo_text {
        font-size: 20px !important;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 70px;
    }

    .nav-container {
        padding: 0 20px;
        height: 70px;
        justify-content: space-between;
    }

    #logo_text {
        font-size: 20px !important;
    }

    .logo-link #logo_text {
        font-size: 20px !important;
    }
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 1003;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #333333;
    margin: 3px 0;
    border-radius: 2px;
}


@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 5vh;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        padding: 1rem 20px 20px 0;
    }

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

    .nav-item {
        margin: 5px 0;
    }

    .nav-item:first-child {
        margin-top: 2rem;
    }

    .nav-link {
        font-size: 1rem;
        font-weight: 400;
    }

    .nav-link.active {
        color: #333333;
    }
}


