/* HEADER */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    /* NOUVELLE HAUTEUR */
    height: 90px; /* Augmentation de ~20px */
}
/* AJOUTEZ CE CONTAINER AUTOUR DU HEADER-CONTAINER */
.header-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0; /* Augmenter le padding vertical */
    position: relative;
    height: 90px; /* Même hauteur que le header */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--military-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(15deg);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.logo-text span {
    color: var(--military-green);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    background: transparent;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    transform-origin: center;
}

/* Animation du menu burger */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--military-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--military-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Liens d'authentification mobile (cachés en desktop) */
.mobile-auth-links {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid var(--medium-gray);
    margin-top: 20px;
}

.mobile-btn {
    width: 100%;
    text-align: center;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-outline {
    border: 2px solid var(--military-green);
    color: var(--military-green);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--military-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

.btn-primary {
    background-color: var(--military-green);
    color: white;
    border: 2px solid var(--military-green);
}

.btn-primary:hover {
    background-color: #267349;
    border-color: #267349;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

/* RESPONSIVE HEADER */
@media (max-width: 992px) {
    .header-container {
        padding: 12px 0;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .auth-buttons {
        gap: 10px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
    }
    
    .menu-toggle {
        display: flex;
        order: 2;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .mobile-auth-links {
        display: flex;
    }
    
    /* Overlay pour le menu mobile */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 0;
    }
    
    .nav-links {
        width: 100%;
        padding: 70px 20px 20px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .menu-toggle {
        padding: 3px;
    }
    
    .menu-toggle span {
        width: 22px;
        height: 2px;
    }
}

/* Animation pour le header au scroll */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.header-scrolled .header-container {
    padding: 10px 0;
}

/* Animation d'entrée pour les liens du menu mobile */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-links.active .nav-link {
    animation: slideInRight 0.3s ease forwards;
}

.nav-links.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-links.active .nav-link:nth-child(2) { animation-delay: 0.15s; }
.nav-links.active .nav-link:nth-child(3) { animation-delay: 0.2s; }
.nav-links.active .nav-link:nth-child(4) { animation-delay: 0.25s; }
.nav-links.active .mobile-auth-links { animation-delay: 0.3s; }