
/* Header et navigation */
header {
    background-color:var(--primary-blue);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}


header.scrolled {
     background-color: var(--primary-blue-transparent);
    backdrop-filter: blur(10px); /* flou derrière le header */
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    
}





.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display:flex;
    align-items: center;
    gap:10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}


.logo-icon {    
    
    height:40px;
    width:auto;
    object-fit: contain;
    transition: transform 0.3s;
}
.logo-icon:hover {
    transform: scale(1.7);
} 
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    transition: color 0.3s;
}  


/* ============================================
   MENU DE NAVIGATION
   ============================================ */
.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.main-menu li {
    position: relative;
}
/*
.main-menu a,
.main-menu li:not(.active){
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 0px; 
    transition: all 0.3s, transform 0.2s;
    position: relative;
} 
*/

/* Active state (current page) */
.main-menu .active,
.main-menu a:hover {
    color: var(--primary-orange);
    
}

/* underline animation on hover */
.main-menu a::after {
    content: '';
    position: absolute;
    bottom:0;
    left:0;
    width:0;
    height:2px;
    background-color: var(--primary-orange);
    transition: all 0.3s ease;
}
.main-menu a:hover::after,
.main-menu .active::after {
    width:100%;
}




.main-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
}

.main-menu a:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
}

.main-menu a.active {
    background-color: var(--primary-orange);
    color: var(--white);
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.main-menu a:hover::after {
    width: 80%;
}
/* ============================================
   BOUTON BURGER (Mobile)
   ============================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Effet hamburger → croix */
.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);
}

/* ============================================
   RESPONSIVE : MOBILE & TABLETTE
   ============================================ */
@media (max-width: 992px) {
    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background: var(--primary-blue);
        width: 70%;
        height: 100vh;
        padding-top: 80px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .main-menu.active {
        right: 0;
    }

    .main-menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    .main-menu a {
        display: block;
        padding: 12px 20px;
        font-size: 1.2rem;
        color: white;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .main-menu a::after {
        display: none; /* Désactive l'underline sur mobile */
    }

    .main-menu a:hover,
    .main-menu a.active {
        color: var(--primary-orange);
        background: rgba(255,255,255,0.1) !important;
    }

    /* Afficher le burger en mobile */
    .menu-toggle {
        display: flex;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    nav {
        padding: 15px 0;
    }
    .logo-text {
        font-size: 1.5rem;
    }
    .logo-icon {
        height: 32px;
    }
}
