/* ============================================
   HEADER CSS - Styles du header et navigation
   ============================================ */

/* Header principal */
header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.25rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 0 4px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo:hover {
    opacity: 0.9;
}

/* Liens de navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    transition: var(--transition-fast);
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
    font-size: 1.05rem;
}

.nav-links a:hover {
    color: var(--c-rose, #f093fb);
}

/* Bouton menu mobile */
.mobile-toggle {
    display: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(30,30,50,0.8);
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition-fast);
    flex-direction: column;
    padding: 0;
}

.mobile-toggle span {
    width: 26px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    display: block;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.mobile-toggle:hover span {
    background: #ffffff;
}

.mobile-toggle.active {
    background: linear-gradient(135deg, var(--c-blue, #667eea), var(--c-purple, #764ba2));
    border-color: transparent;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* News Ticker */
.news-ticker {
    position: sticky;
    /* top sera défini dynamiquement par news-ticker.js pour être juste en dessous du header */
    top: 0;
    background: rgba(20, 20, 35, 0.9);
    padding: 0.8rem 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: var(--z-ticker);
}

.ticker-content {
    display: flex;
    gap: 3rem;
    animation: scroll 28s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.ticker-label {
    background: linear-gradient(135deg, var(--c-blue, #667eea), var(--c-purple, #764ba2));
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ticker-highlight {
    position: relative;
    display: inline-block;
    animation: pulse-glow 2s ease-in-out infinite;
}

.ticker-highlight::before {
    content: '✨';
    margin-right: 0.3rem;
    animation: sparkle 1.5s ease-in-out infinite;
    display: inline-block;
}

.ticker-item a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.ticker-item a:hover {
    opacity: 0.8;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(240, 147, 251, 0.5);
    }
    50% {
        text-shadow: 0 0 15px rgba(240, 147, 251, 0.8), 0 0 25px rgba(102, 126, 234, 0.6);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.7;
    }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

