/* ============================================= */
/* NAVIGATION UNIVERSELLE - InformatiConcept      */
/* Fichier : css/header.css                      */
/* ============================================= */

:root {
    --nav-bg: rgba(10, 15, 26, 0.94);
    --nav-border: rgba(255, 255, 255, 0.06);
    --nav-text: #f1f5f9;
    --nav-muted: #94a3b8;
    --nav-blue: #3b82f6;
    --nav-purple: #8b5cf6;
    --nav-teal: #00d4aa;
    --nav-hover-bg: rgba(139, 92, 246, 0.08);
    --nav-height: 64px;
    --nav-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CONTENEUR PRINCIPAL ===== */
.ic-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
    height: var(--nav-height);
    transition: background 0.3s;
}

.ic-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ===== LOGO ===== */
.ic-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    z-index: 1001;
}

.ic-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.ic-logo-svg {
    width: 100%;
    height: 100%;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.3)); }
    50% { filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6)); }
}

.ic-logo-text {
    font-family: 'Orbitron', 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--nav-text);
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.ic-logo-gradient {
    background: linear-gradient(135deg, var(--nav-teal), var(--nav-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== LIENS DESKTOP ===== */
.ic-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ic-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--nav-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all var(--nav-transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.ic-nav-link:hover {
    color: var(--nav-text);
    background: var(--nav-hover-bg);
}

/* Barre de surbrillance active */
.ic-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--nav-blue), var(--nav-purple), var(--nav-teal));
    transition: transform 0.3s ease;
}

.ic-nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.ic-nav-link.active {
    color: var(--nav-text);
    font-weight: 600;
}

.ic-nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Badge NOUVEAU */
.ic-badge-new {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--nav-purple), #ec4899);
    color: #fff;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ===== ICÔNES DROITE ===== */
.ic-nav-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.ic-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--nav-muted);
    cursor: pointer;
    transition: all var(--nav-transition);
    text-decoration: none;
}

.ic-nav-icon:hover {
    color: var(--nav-text);
    background: var(--nav-hover-bg);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Badge panier */
.ic-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--nav-purple), var(--nav-blue));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

/* Burger mobile */
.ic-burger {
    display: none;
}

/* ===== MENU MOBILE ===== */
.ic-mobile-menu {
    position: fixed;
    top: var(--nav-height, 64px);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--nav-height, 64px));
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--nav-border, rgba(255,255,255,0.06));
    padding: 16px;
    overflow-y: auto;
    z-index: 999;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ic-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px
    
    border-radius: 10px;
    color: var(--nav-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.ic-mobile-link:hover,
.ic-mobile-link.active {
    color: var(--nav-text);
    background: var(--nav-hover-bg);
}

.ic-mobile-link.active {
    border-left: 3px solid var(--nav-purple);
    font-weight: 600;
}

.ic-mobile-divider {
    height: 1px;
    background: var(--nav-border);
    margin: 12px 0;
}

#ic-mobile-user-area {
    padding: 8px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .ic-nav-links {
        display: none;
    }
    
    .ic-burger {
        display: flex;
    }
}

@media (max-width: 640px) {
    .ic-nav-inner {
        padding: 0 12px;
        gap: 10px;
    }
    
    .ic-logo-text {
        font-size: 15px;
    }
    
    .ic-logo-icon {
        width: 34px;
        height: 34px;
    }
    
    .ic-nav-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    .ic-nav-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 380px) {
    .ic-logo-text {
        display: none;
    }
}