
/* 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%;
}
