/* ============================================
   NAVIGATION ENHANCEMENTS
   Modern sticky navigation with blur
   ============================================ */

/* Sticky header with blur effect */
#main-sticky-header {
    position: -webkit-sticky !important; /* Safari */
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5) !important;
    margin: 0 !important;
    padding: 0 !important;
}

#main-sticky-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

/* Modern logo styling */
#site-header .logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

#site-header .logo-container:hover {
    transform: scale(1.05);
}

/* Navigation links modern styling */
nav a {
    position: relative;
    transition: all 0.2s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-purple));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* --- Fix : header/nav parfois cachés sur les pages détail --- */
#site-header,
#main-sticky-header {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 999 !important;
}

#site-header nav,
#site-header nav a {
    color: #111827 !important;
    /* texte lisible sur fond clair */
}

#site-header nav a i {
    color: inherit !important;
}

/* Top bar gradient enhancement */
#site-header .top-bar {
    background: linear-gradient(90deg, var(--primary-500), var(--accent-purple)) !important;
}

/* Search bar in header enhancement */
#site-header form input[type="search"] {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#site-header form input[type="search"]:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}