/* Navigation Moderne */
.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(3px); /* Reduced from 20px for better performance and content visibility */
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(212, 175, 55, 0.2);
}

/* Dark Theme Navigation */
[data-theme="dark"] .main-navigation {
    background: rgba(57, 28, 11, 0.95);
    border-bottom-color: rgba(255, 202, 153, 0.1);
}

[data-theme="dark"] .main-navigation.scrolled {
    background: rgba(57, 28, 11, 0.98);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(255, 202, 153, 0.2);
}

.main-navigation.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

/* Brand/Logo */
.nav-brand {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: scale(1.02);
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
    transition: all 0.3s ease;
}

.brand-link:hover .brand-logo {
    border-color: var(--color-bronze);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--color-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(205, 127, 50, 0.1) 100%);
    font-weight: 600;
}

/* Dark Theme Navigation Elements */
[data-theme="dark"] .brand-name {
    color: var(--color-amber-300);
}

[data-theme="dark"] .brand-subtitle {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .nav-link {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--color-amber-300);
    background: rgba(255, 202, 153, 0.08);
}

[data-theme="dark"] .nav-link.active {
    color: var(--color-amber-400);
    background: linear-gradient(135deg, rgba(255, 202, 153, 0.1) 0%, rgba(214, 148, 86, 0.1) 100%);
}

[data-theme="dark"] .nav-toggle-line {
    background-color: var(--color-amber-300);
}

/* Theme Toggle intégré dans la navbar */
.nav-theme-toggle {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.theme-toggle-nav {
    position: relative;
    width: 2.8rem;
    height: 1.6rem;
    background: rgba(109, 59, 7, 0.1);
    border: 1px solid rgba(109, 59, 7, 0.2);
    border-radius: 1.6rem;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.theme-toggle-nav:hover {
    background: rgba(109, 59, 7, 0.15);
    border-color: rgba(109, 59, 7, 0.3);
    transform: translateY(-1px);
}

.theme-toggle-track-nav {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.theme-toggle-thumb-nav {
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    background: linear-gradient(135deg, #6D3B07 0%, #D69456 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(109, 59, 7, 0.3);
}

.theme-toggle-nav.dark .theme-toggle-thumb-nav {
    transform: translateX(1.2rem);
    background: linear-gradient(135deg, #391C0B 0%, #6D3B07 100%);
}

.theme-toggle-nav .theme-icon {
    width: 0.75rem;
    height: 0.75rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-nav .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle-nav .moon-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

.theme-toggle-nav.dark .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
}

.theme-toggle-nav.dark .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Dark theme toggle navbar styles */
[data-theme="dark"] .theme-toggle-nav {
    background: rgba(255, 202, 153, 0.1);
    border-color: rgba(255, 202, 153, 0.2);
}

[data-theme="dark"] .theme-toggle-nav:hover {
    background: rgba(255, 202, 153, 0.15);
    border-color: rgba(255, 202, 153, 0.3);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.nav-toggle-line {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(3px); /* Reduced from 20px for better performance and content visibility */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
}

.nav-close {
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-bronze) 100%);
    transform: translateX(10px);
}

.nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.mobile-nav-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.mobile-contact {
    margin-bottom: 2rem;
}

.mobile-contact p {
    color: var(--color-gray-300);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-social {
    display: flex;
    gap: 1rem;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-social-link:hover {
    background: var(--color-gold);
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .brand-subtitle {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .brand-text {
        display: none;
    }
    
    .brand-logo {
        width: 40px;
        height: 40px;
    }
}

/* Mobile Theme Toggle Styles */
.mobile-theme-toggle {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 1rem;
    padding-top: 1rem;
}

.theme-toggle-mobile {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.theme-toggle-mobile:hover {
    background: rgba(212, 175, 55, 0.05);
}

.theme-toggle-mobile .nav-icon {
    position: relative;
    width: 18px;
    height: 18px;
}

.theme-toggle-mobile .theme-icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-mobile .moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

.theme-toggle-mobile.dark .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
    display: none;
}

.theme-toggle-mobile.dark .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    display: block;
}

.theme-label {
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Dark theme mobile styles */
[data-theme="dark"] .mobile-theme-toggle {
    border-top-color: rgba(255, 202, 153, 0.1);
}

[data-theme="dark"] .theme-toggle-mobile:hover {
    background: rgba(255, 202, 153, 0.08);
}

[data-theme="dark"] .theme-label {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .mobile-nav-link {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .mobile-nav-link:hover {
    background: rgba(255, 202, 153, 0.08);
    color: var(--color-amber-300);
}

[data-theme="dark"] .mobile-nav-link.active {
    background: rgba(255, 202, 153, 0.1);
    color: var(--color-amber-400);
}

[data-theme="dark"] .nav-overlay {
    background: rgba(57, 28, 11, 0.98);
}

[data-theme="dark"] .mobile-contact p {
    color: var(--dark-text-secondary);
}