/* Menu burger — thème sombre IA */
#menu {
    display: flex;
    list-style: none;
}

#menu li {
    padding: 10px;
}

#menu li a {
    text-decoration: none;
    color: #ffffff;
}

#menu li a:hover {
    color: var(--ia-neon, #2dff8a);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    position: absolute;
    top: 12px;
    right: 8px;
    z-index: 1103;
    padding: 10px;
    margin: 0;
    line-height: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle .bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--ia-neon, #2dff8a);
    margin: 5px 0;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(45, 255, 138, 0.4);
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background: rgba(5, 24, 18, 0.98) !important;
    border-bottom: 1px solid rgba(45, 255, 138, 0.22);
    backdrop-filter: blur(10px);
}

#menu.show {
    background-color: rgba(5, 24, 18, 0.98);
    border-bottom: 1px solid rgba(45, 255, 138, 0.22);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.mgr {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    header {
        padding: 16px 56px 12px 20px;
        position: sticky;
        top: 0;
        z-index: 1100;
    }

    header.nav-open {
        z-index: 1100;
    }

    header nav {
        position: static;
        width: 100%;
    }

    header .lg {
        height: 40px;
        max-width: 140px;
    }

    .header-logos {
        gap: 16px;
    }

    #menu {
        display: none !important;
        flex-direction: column;
        position: fixed;
        top: var(--header-height, 88px);
        left: 0;
        right: 0;
        z-index: 1102;
        background-color: rgba(5, 24, 18, 0.98);
        width: 100%;
        padding: 12px 0 20px;
        margin: 0;
        border-bottom: 1px solid rgba(45, 255, 138, 0.22);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        max-height: calc(100vh - var(--header-height, 88px));
        overflow-y: auto;
    }

    #menu li {
        padding: 12px;
        text-align: center;
        width: 100%;
        margin: 0;
    }

    #menu.show {
        display: flex !important;
        animation: slideDown 0.25s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-toggle {
        display: block;
        min-width: 48px;
        min-height: 48px;
    }

    .hero {
        min-height: 60vh;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__meta {
        flex-direction: column;
        gap: 12px;
    }
}
