﻿/* Root */
.navbar-root {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background-color 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    /* Même padding horizontal que .hero-root et .pillars-strip pour garder 
       toutes les sections alignées sur la même colonne verticale */
    padding: 0 var(--layout-padding-mobile);
}

.navbar-root.scrolled {
    background-color: rgba(5, 5, 7, 0.70);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* Container */
.navbar-container {
    max-width: var(--layout_container-maxwidth); 
    margin: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1.0rem;
    padding: 0.35rem 0;
    flex-wrap: nowrap; /* empêche le passage sur deux lignes */
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .navbar-root {
        padding: 0 var(--layout-padding-desktop);
    }
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-top: -0.90rem;
    white-space: nowrap;
}

.navbar-dot {
    width: 10px;
    height: 10px;
    background-color: #00E599;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(0, 229, 153, 0.8);
}

.navbar-logo-text {
    font-family: "Outfit";
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    line-height: 1;
}

.navbar-logo-highlight {
    color: #00E599;
}

/* Desktop links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    margin-left: auto; /*1.5rem;*/
    padding-left: 1.5rem; /* identique au Hero et aux sections */
}

.navbar-container ul li {
    list-style: none
}

.navbar-link {
    font-family: "JetBrains Mono";
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #A0A4AF;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height:1;
}

.navbar-link:hover {
    color: #00E599;
}

/* Button */
.navbar-btn {
    height: 40px;
    width: 147px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #00E599;
    color: #050507;
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 500;
    padding: 1rem 1.75rem;
    border-radius: 0.25rem;
    text-decoration: none;
} 

.navbar-btn:hover {
    background-color: white;
}

/* Hamburger */
.navbar-burger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    margin-top: -0.85rem;
}

/* Mobile menu */
.navbar-mobile-menu {
    background-color: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.navbar-mobile-link {
    font-family: "JetBrains Mono";
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #A0A4AF;
    text-decoration: none;
}

.navbar-mobile-link:hover {
    color: #00E599;
}

.navbar-mobile-btn {
    margin-top: 1rem;
    text-align: center;
}

/* MOBILE */
@media (max-width: 875px) {
    /* cacher les liens */
    .navbar-links {
        display: none;
        margin-left: 0; /* corrige le décalage */
    }

    /* afficher le hamburger */
    .navbar-burger {
        display: block;
        margin-left: auto;
    }
}