
.modern-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(220,139,255,0.08);
    box-shadow: 0 2px 16px rgba(220,139,255,0.04);
    will-change: transform;
}
.modern-header.hide {
    transform: translateY(-120%);
    box-shadow: none;
    pointer-events: none;
}
.modern-header.show {
    transform: translateY(0);
    box-shadow: 0 4px 24px rgba(220,139,255,0.08);
}
.nav-links a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.08rem;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s;
}
.nav-links a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    transition: width 0.3s;
    border-radius: 2px;
    margin-top: 2px;
}
.nav-links a:hover::after {
    width: 100%;
    background: #160e54;
}
.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background: #1a1e31;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
@media (max-width: 900px) {
    .nav-links {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: block !important;
    }
        .mobile-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    position: fixed;
    top: 64px;
    left: 0;
    width: 100vw;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(220,139,255,0.08);
    z-index: 999;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px; /* espace vertical entre les liens */
    transition: opacity 0.35s ease, transform 0.35s ease;
    border-bottom: 1px solid rgba(220,139,255,0.12);
    }

    .mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    }
    .mobile-nav a {
        color: #222;
        font-size: 1.2rem;
        font-weight: 500;
        text-decoration: none;
        padding: 8px 0;
    }
}
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.hamburger-line {
  transition: transform 0.3s, opacity 0.3s;
}

@media (min-width: 901px) {
  .mobile-nav {
    display: none;
  }
}