/* ========================================
   HEADER FIXE
   ======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: var(--primary-yellow);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive - réduire le padding sur très petits écrans */
@media (max-width: 480px) {
    .header-container {
        padding: 1rem 1rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    width: 45px;
    height: 45px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: none;
    text-decoration: none;
}

/* Navigation Desktop */
nav {
    display: none;
}

nav a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary-green);
}

/* Menu Hamburger */
.mobile-menu-toggle {
    display: block;
    background: var(--primary-green);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Menu Mobile */
.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--primary-yellow);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-menu a:hover {
    background: rgba(58, 174, 80, 0.1);
}

/* Responsive */
@media (min-width: 600px) {
    .logo-text {
        display: block;
    }
}

@media (min-width: 900px) {
    nav {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}
