/* --- NAVIGATION --- */
.navbar {
    position: sticky;
    top: 0;
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: none;
    padding: 1rem 0;
    z-index: 200;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; padding-left: 1.5rem; padding-right: 1.5rem; max-width: 100%; }

.nav-brand {
    display: flex; align-items: center; gap: 0.75rem;
    font-weight: 700; font-size: 1.25rem; color: var(--text);
    text-decoration: none;
}
.logo { width: 40px; height: 40px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links > a {
    text-decoration: none; color: var(--text-light); font-weight: 500; font-size: 0.9375rem;
    padding: 0.375rem 0.75rem; border-radius: 0.5rem; transition: all 0.2s ease-in-out;
}
.nav-links > a:not(.btn-nav):hover { color: var(--text); background: #f3f4f6; }

.nav-contact-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}
.nav-contact-icons:hover {
    background: #f3f4f6;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

.nav-links-group {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow:
        0 0 0 4px white,
        0 0 0 5px var(--border);
    overflow: hidden;
}

.nav-links-group > a {
    padding: 0 0.85rem;
    height: 36px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    border-radius: 0;
}
.nav-links-group > a:hover {
    color: var(--text);
    background: #f3f4f6;
}
.nav-links-group > a + a {
    border-left: 1px solid var(--border);
}

.nav-contact-group {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow:
        0 0 0 4px white,
        0 0 0 5px var(--border);
    overflow: hidden;
}

.nav-icon {
    padding: 0 0.55rem;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.nav-icon:hover {
    color: var(--text);
    background: #f3f4f6;
}
.nav-contact-group .nav-icon + .nav-icon {
    border-left: 1px solid var(--border);
}

.btn-nav {
    background: white;
    color: var(--primary) !important;
    padding: 0 0.85rem;
    height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    box-shadow:
        0 0 0 4px white,
        0 0 0 5px var(--border);
    transition: background 0.2s, color 0.2s;
}
.btn-nav:hover {
    background: #f3f4f6;
    color: var(--primary-dark) !important;
}

/* --- BURGER MENU --- */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 0 0 4px white, 0 0 0 5px var(--border);
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 200;
}
.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.burger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- MOBILE MENU (hors du nav, position fixed sur le body) --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}
.mobile-menu-nav a {
    display: block;
    width: 100%;
    max-width: 280px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
    background: var(--bg-gray);
    color: var(--primary);
}

.mobile-menu-separator {
    width: 60px;
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.mobile-menu-contact {
    display: flex;
    gap: 0.75rem;
}
.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}
.mobile-menu-link:hover {
    color: var(--text);
    border-color: var(--text);
}

.mobile-menu-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    transition: background 0.2s;
    margin-top: 0.5rem;
}
.mobile-menu-cta:hover {
    background: var(--primary-dark);
}
