/* ============================================
   MENU SUPERFLUID RESPONSIVE
   À ajouter dans navigation.css
   ============================================ */

/* MENU TOGGLE BUTTON */
.nav-menu {
    display: none;
}

.menu-toggle {
    display: block;
}

.mobile-menu-overlay {
    display: block;
}

.mobile-nav-item>a {
    font-size: 2rem;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #3D5A80;
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #EE6C4D;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #EE6C4D;
}

/* MENU MOBILE OVERLAY - SUPERFLUID */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #293241 0%, #3D5A80 100%);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* PATTERN BACKGROUND ANIMÉ */
.menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fluid-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.fluid-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: #98C1D9;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.fluid-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    background: #EE6C4D;
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.fluid-shape:nth-child(3) {
    width: 250px;
    height: 250px;
    background: #E0FBFC;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

/* MENU ITEMS MOBILE */
.mobile-menu-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

.mobile-nav-menu {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav-item:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav-item:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav-item:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav-item:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-nav-item:nth-child(6) {
    transition-delay: 0.6s;
}

.mobile-nav-item>a {
    font-size: 2.5rem;
    color: #E0FBFC;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
    padding: 0.5rem 1rem;
}

.mobile-nav-item>a:hover {
    color: #EE6C4D;
    transform: scale(1.1);
}

/* SOUS-MENU MOBILE */
.mobile-sub-menu {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-nav-item.has-children.open .mobile-sub-menu {
    max-height: 500px;
}

.mobile-sub-menu li {
    margin: 0.75rem 0;
}

.mobile-sub-menu a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1.2rem !important;
    color: #98C1D9 !important;
    font-weight: 500 !important;
}

.mobile-sub-menu a:hover {
    color: #EE6C4D !important;
    transform: scale(1.05) !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {}

@media (max-width: 480px) {
    .mobile-nav-item>a {
        font-size: 1.75rem;
    }

    .fluid-shape:nth-child(1),
    .fluid-shape:nth-child(2),
    .fluid-shape:nth-child(3) {
        width: 200px;
        height: 200px;
    }
}

/* PREVENT BODY SCROLL WHEN MENU OPEN */
body.menu-open {
    overflow: hidden;
}