/* ================================
   HEADER RESPONSIVE & STICKY
   ================================ */

/* Header de base */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.logo-image {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05) rotate(5deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.highlight {
    color: var(--primary);
}

/* Menu desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

/* Bouton menu mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle:hover span {
    background: var(--primary);
}

/* Responsive Tablette */
@media (max-width: 992px) {
    .nav {
        padding: 1rem 2rem !important;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .nav {
        padding: 1rem !important;
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

/* Très petit mobile */
@media (max-width: 480px) {
    .logo-image {
        width: 45px;
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
}

/* Animation header au scroll */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header.scrolled {
    animation: slideDown 0.3s ease;
}

/* Support touch */
@media (hover: none) {
    .nav-link:hover::after {
        width: 0;
    }
    
    .nav-link:active {
        color: var(--primary);
    }
}
