/* ============================================
   NAVBAR - CSS PROPRE ET SIMPLE
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10010;
    padding: 0;
    margin: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10013;
    background: #ffffff;
}

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

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

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

/* Desktop Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    margin: 0;
}

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

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

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

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

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

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

/* Mobile Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    padding: 0;
    background: transparent;
    border: none;
    z-index: 10014;
    position: relative;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

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

    /* Menu slide depuis la droite - 100% width */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 10012;
        margin: 0;
        list-style: none;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-item {
        margin: 0;
        padding: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item:first-child {
        border-top: 1px solid #f0f0f0;
    }

    .nav-link {
        display: block;
        padding: 20px 30px;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background: #f5f5f5;
    }
}

/* Desktop padding */
@media (min-width: 769px) {
    .nav-container {
        padding: 20px 60px;
    }
}

@media (min-width: 1201px) {
    .nav-container {
        padding: 20px 80px;
    }
}

