﻿/* ==================== HEADER PRINCIPAL ==================== */
.header-neoheader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container-neoheader {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

/* ==================== LOGO ==================== */
.header-logo-neoheader {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
    position: relative;
}

.header-logo-img-neoheader {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-logo-neoheader:hover .header-logo-img-neoheader {
    transform: scale(1.05);
}

.header-neoheader.scrolled .header-logo-img-neoheader {
    height: 40px;
}

/* Logo blanc affiché uniquement sur le header transparent (accueil) */
.header-logo-white-neoheader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

.header-transparent-neoheader .header-logo-color-neoheader {
    opacity: 0;
}

.header-transparent-neoheader .header-logo-white-neoheader {
    display: block;
}

.header-transparent-neoheader.header-scrolled-neoheader .header-logo-color-neoheader {
    opacity: 1;
}

.header-transparent-neoheader.header-scrolled-neoheader .header-logo-white-neoheader {
    display: none;
}

/* ==================== HEADER TRANSPARENT (ACCUEIL) ==================== */
.header-transparent-neoheader {
    background: transparent;
    box-shadow: none;
}

.header-transparent-neoheader.header-scrolled-neoheader {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-transparent-neoheader .header-menu-link-neoheader {
    color: white;
}

.header-transparent-neoheader .header-menu-link-neoheader::after {
    background: white;
}

.header-transparent-neoheader .header-mobile-toggle-neoheader span {
    background: white;
}

.header-transparent-neoheader.header-scrolled-neoheader .header-menu-link-neoheader {
    color: #2c3e50;
}

.header-transparent-neoheader.header-scrolled-neoheader .header-menu-link-neoheader::after {
    background: #073a8d;
}

.header-transparent-neoheader.header-scrolled-neoheader .header-mobile-toggle-neoheader span {
    background: #2c3e50;
}

/* ==================== NAVIGATION DESKTOP ==================== */
.header-nav-neoheader {
    display: flex;
    align-items: center;
    gap: 45px;
}

.header-menu-neoheader {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.header-menu-link-neoheader {
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.header-menu-link-neoheader:hover {
    color: #073a8d;
}

.header-menu-link-neoheader::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #073a8d;
    transition: width 0.3s ease;
}

.header-menu-link-neoheader:hover::after {
    width: 100%;
}

/* ==================== ACTIONS ==================== */
.header-actions-neoheader {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-btn-contact-neoheader {
    padding: 14px 35px;
    background: #073a8d;
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    border-radius: 8px;
}

.header-btn-contact-neoheader:hover {
    color: white;
    background: #c8c6c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 58, 141,0.3);
}

/* ==================== BOUTON BURGER MOBILE ==================== */
.header-mobile-toggle-neoheader {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
}

.header-mobile-toggle-neoheader span {
    display: block;
    width: 28px;
    height: 3px;
    background: #2c3e50;
    margin: 6px 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 3px;
    position: absolute;
    left: 6px;
}

.header-mobile-toggle-neoheader span:nth-child(1) {
    top: 8px;
}

.header-mobile-toggle-neoheader span:nth-child(2) {
    top: 18px;
}

.header-mobile-toggle-neoheader span:nth-child(3) {
    top: 28px;
}

/* Animation du burger vers X */
.header-mobile-toggle-neoheader.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 18px;
    background: white;
}

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

.header-mobile-toggle-neoheader.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 18px;
    background: white;
}

/* ==================== MENU MOBILE FULLSCREEN ==================== */
.header-mobile-menu-neoheader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.5s, opacity 0.5s ease;
}

.header-mobile-menu-neoheader.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.5s ease;
}

/* Overlay avec effet de flou */
.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Contenu du menu */
.mobile-menu-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 40px 40px;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.header-mobile-menu-neoheader.active .mobile-menu-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

/* Liste des liens */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 500px;
}

.mobile-menu-list li {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.header-mobile-menu-neoheader.active .mobile-menu-list li {
    opacity: 1;
    transform: translateX(0);
    transition-delay: calc(0.1s + (var(--item-index) * 0.1s));
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    margin: 10px 0;
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: 600;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(7, 58, 141, 0.3), transparent);
    transition: left 0.6s ease;
}

.mobile-menu-link:hover::before {
    left: 100%;
}

.mobile-menu-link:active {
    transform: scale(0.95);
}

.mobile-menu-link i {
    font-size: 26px;
    color: #073a8d;
    min-width: 35px;
    text-align: center;
}

.mobile-menu-link span {
    letter-spacing: 1px;
}

/* Footer du menu mobile */
.mobile-menu-footer {
    margin-top: 50px;
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.header-mobile-menu-neoheader.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 40px;
    background: #073a8d;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(7, 58, 141, 0.3);
}

.mobile-menu-btn:hover {
    background: #c8c6c9;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(7, 58, 141, 0.5);
}

.mobile-menu-btn i {
    font-size: 18px;
}

/* Bloquer le scroll quand le menu est ouvert */
body.menu-open {
    overflow: hidden;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .header-nav-neoheader {
        display: none;
    }
    
    .header-mobile-toggle-neoheader {
        display: block;
    }
    
    .header-container-neoheader {
        padding: 0 20px;
        height: 80px;
    }
    
    .header-btn-contact-neoheader {
        display: none;
    }
    
    .header-logo-neoheader img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .mobile-menu-content {
        padding: 100px 20px 40px;
    }
    
    .mobile-menu-link {
        font-size: 22px;
        padding: 18px 25px;
        gap: 15px;
    }
    
    .mobile-menu-link i {
        font-size: 22px;
        min-width: 30px;
    }
    
    .mobile-menu-btn {
        font-size: 18px;
        padding: 18px 35px;
    }
}

/* Animation pour les petits écrans */
@media (max-width: 480px) {
    .mobile-menu-link {
        font-size: 20px;
        padding: 16px 20px;
    }
}