/* Styles unifiés pour la barre de navigation */

/* Structure de base de la navbar */
.navbar {
    background-color: var(--color-bg-primary);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 100%;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-text {
    background: linear-gradient(135deg, #00c2ff, #d000ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

/* Menu de navigation */
.nav-menu {
    margin: 0 auto 0 50px;
    height: 100%;
    display: flex;
    align-items: center;
}

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

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--color-accent-purple);
}

/* Boutons CTA */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.nav-cta .btn {
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-cta .btn-primary {
    background: linear-gradient(135deg, #00c2ff, #d000ff);
    color: white;
    border: none;
}

.nav-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Bouton hamburger */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 100;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Animation du bouton hamburger */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu mobile */
.mobile-menu {
    display: none;
}

.mobile-menu.show {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--color-bg-primary);
    z-index: 99;
    overflow-y: auto;
}

.mobile-menu a {
    display: block;
    color: var(--color-text-primary);
    text-decoration: none;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-accent-blue);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:last-child {
    margin-top: 20px;
    background: var(--color-accent-gradient);
    color: white;
    border-radius: var(--border-radius-md);
    margin: 20px;
    padding: 15px;
}

/* Style pour empêcher le défilement */
body.no-scroll {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-menu, .nav-cta {
        display: none;
    }
}
