header {
    /* Existing z-index */
    z-index: 1000;
    /* Add these properties for fixed positioning */
    position: fixed; /* Makes the header stay in place */
    top: 0;          /* Aligns it to the top of the viewport */
    left: 0;         /* Aligns it to the left of the viewport */
    width: 100%;     /* Makes it span the full width of the viewport */
    background-color: #ffffff; /* Add a background color so content behind it doesn't show through */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: add a subtle shadow for depth */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for background/shadow */
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   
}

.modern-header{
  display: flex;
  height: 5rem;
}

.logo{
  margin-left: 10px;
  height: 100%;

}

.logo a img{
  position: absolute;
  object-fit: cover;
  width: 80px;
  height: 80px;
}

.logo img:hover {
    transform: scale(1.03);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links li a:hover {
    color: #2563eb;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 2.5px;
    background-color: #2d3748;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animation du bouton hamburger */
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: #2563eb;
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: #2563eb;
}

/* Version mobile */
@media (max-width: 992px) {
    .header-container {
        padding: 1.2rem 1.5rem;
    }
    
    .nav-links {
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
        order: 2;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
        padding-top: 90px;
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        padding: 0 2rem;
        gap: 2rem;
    }
    
    .nav-links li a {
        font-size: 1.25rem;
        color: #4a5568;
    }
    
    .nav-links li a:hover {
        color: #2563eb;
    }
    
    .nav-wrapper {
        gap: 1rem;
    }
}