/* Navigation moderne - Regard Sur */
/* Fichier: user/themes/regard-sur/css/navigation.css */

/* Variables pour la navigation */
:root {
    --nav-height: 80px;
    --nav-bg: rgba(28, 28, 28, 0.95);
    --nav-bg-scrolled: rgba(28, 28, 28, 0.98);
    --nav-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --nav-blur: blur(15px);
}

/* Header principal */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--nav-transition);
}

/* Navigation */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: var(--nav-blur);
    -webkit-backdrop-filter: var(--nav-blur);
    border-bottom: 1px solid rgba(238, 121, 0, 0.1);
    transition: var(--nav-transition);
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: var(--nav-shadow);
    border-bottom-color: rgba(238, 121, 0, 0.2);
}

/* Container navigation */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* === LOGO ET BRAND === */
.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    text-decoration: none;
    display: block;
}

.logo-container {
    position: relative;
    display: inline-block;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.brand-link:hover {
    width: 100%;
}

.brand-link:hover .logo-text {
    transform: translateY(-1px);
}

/* === NAVIGATION PRINCIPALE === */
.nav-main {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    color: #f9f9f9;
    text-decoration: none;
    font-weight: 700; /* Bold par défaut */
    font-size: 0.95rem;
    border-radius: 50px;
    transition: var(--nav-transition);
    position: relative;
    overflow: hidden;
}

/* Effet de survol moderne */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(238, 121, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #EE7900;
    background: rgba(238, 121, 0, 0.05);
    transform: translateY(-2px);
}

/* État actif - Page courante surlignée */
.nav-link.active {
    color: #1c1c1c;
    background: linear-gradient(135deg, #EE7900 0%, #ff8800 100%);
    box-shadow: 0 4px 15px rgba(238, 121, 0, 0.3);
    transform: translateY(-1px);
}

/* === CTA BUTTON === */
.nav-cta {
    flex-shrink: 0;
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #EE7900 0%, #ff8800 100%);
    color: #1c1c1c;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: var(--nav-transition);
    box-shadow: 0 4px 15px rgba(238, 121, 0, 0.2);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 121, 0, 0.3);
    text-decoration: none;
    color: #1c1c1c;
}

.cta-icon {
    transition: transform 0.3s ease;
}

.cta-btn:hover .cta-icon {
    transform: translateX(3px);
}

/* === MOBILE TOGGLE === */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--nav-transition);
}

.mobile-toggle:hover {
    background: rgba(238, 121, 0, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #EE7900;
    margin: 3px 0;
    transition: var(--nav-transition);
    border-radius: 2px;
}

/* Animation hamburger */
.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* === NAVIGATION MOBILE === */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(28, 28, 28, 0.98);
    backdrop-filter: var(--nav-blur);
    -webkit-backdrop-filter: var(--nav-blur);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.active .mobile-nav {
    transform: translateY(0);
}

/* Header mobile */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(238, 121, 0, 0.2);
}

.mobile-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #EE7900;
}

.mobile-close {
    width: 40px;
    height: 40px;
    background: rgba(238, 121, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: #EE7900;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--nav-transition);
}

.mobile-close:hover {
    background: rgba(238, 121, 0, 0.2);
    transform: rotate(90deg);
}

/* Liens navigation mobile */
.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.mobile-nav-links li {
    margin-bottom: 1rem;
    animation: slideInLeft 0.5s ease-out both;
}

.mobile-nav-links li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-links li:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-links li:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-links li:nth-child(4) { animation-delay: 0.4s; }

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    color: #f9f9f9;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700; /* Bold par défaut */
    border-bottom: 1px solid rgba(238, 121, 0, 0.1);
    transition: var(--nav-transition);
}

.mobile-nav-link:hover {
    color: #EE7900;
    padding-left: 1rem;
}

/* État actif pour mobile */
.mobile-nav-link.active {
    color: #EE7900;
    background: rgba(238, 121, 0, 0.1);
    border-left: 3px solid #EE7900;
    padding-left: 1rem;
}

/* Footer mobile */
.mobile-nav-footer {
    margin-top: auto;
    text-align: center;
}

.mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #EE7900 0%, #ff8800 100%);
    color: #1c1c1c;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 2rem;
    transition: var(--nav-transition);
}

.mobile-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 121, 0, 0.3);
}

.mobile-contact-info {
    opacity: 0.8;
    font-size: 0.9rem;
}

.mobile-contact-info p {
    margin: 0.5rem 0;
}

/* === INDICATEUR DE SCROLL === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 3px;
    background: rgba(238, 121, 0, 0.1);
    z-index: 9999;
    pointer-events: none;
}

.scroll-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #EE7900, #ff8800);
    transition: width 0.1s linear;
    will-change: width;
}

/* === ANIMATIONS === */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .cta-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-main,
    .nav-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .mobile-nav {
        padding: 1.5rem;
    }
    
    .mobile-nav-link {
        font-size: 1.1rem;
        padding: 1.2rem 0;
    }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
.nav-link:focus,
.cta-btn:focus,
.mobile-toggle:focus,
.mobile-nav-link:focus {
    outline: 2px solid #EE7900;
    outline-offset: 2px;
}

/* === PRINT === */
@media print {
    .main-header {
        position: static;
        background: white;
        box-shadow: none;
    }
    
    .navbar {
        background: white;
        border-bottom: 1px solid #ccc;
    }
    
    .nav-links,
    .nav-cta,
    .mobile-toggle,
    .scroll-progress {
        display: none;
    }
    
    .logo-text {
        color: #EE7900 !important;
    }
}