/* Menu Modernized - Titanium Theme */

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    margin-right: 40px;
}

.logo-img {
    height: 40px;
    margin-right: 12px;
}

.logo-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Menu desktop styling handled in main style.css now, but keeping overrides here just in case */

.desktop-menu {
    position: relative;
    align-items: center;
    padding: 0;
    height: auto;
    display: flex;
    flex-grow: 1;
    justify-content: center;
    gap: 5px;
}

.desktop-menu .menu-item {
    position: relative;
    padding: 10px 18px;
    color: #9ca3af;
    text-decoration: none;
    text-transform: none;
    /* Modern style: no uppercase */
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 50px;
}

.desktop-menu .menu-item:hover,
.desktop-menu .menu-item.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f0f11;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    border-radius: 16px;
    border: 1px solid #27272a;
    padding: 8px;
}

.dropdown-content a {
    color: #9ca3af;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: #6366f1;
    /* Indigo */
    color: white;
}

.menu-item.dropdown:hover .dropdown-content {
    display: block;
}

/* Icône dropdown - modern chevron */
.dropdown::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    margin-top: -2px;
    opacity: 0.7;
}

/* --- MOBILE MENU --- */

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 200;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #09090b;
    /* Zinc 950 */
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 80px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* When active (handled by JS toggling display usually) - adding a class for animation would be better but keeping simple */
.mobile-menu[style*="display: flex"] {
    opacity: 1;
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.mobile-menu a {
    padding: 16px 20px;
    color: #e4e4e7;
    text-decoration: none;
    font-size: 1.1rem;
    width: 90%;
    text-align: center;
    margin: 6px 0;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu a:hover {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: white;
}

/* Mobile Dropdowns */
.mobile-dropdown {
    width: 90%;
    margin: 6px 0;
}

.mobile-dropdown-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #e4e4e7;
    font-size: 1.1rem;
    padding: 16px 20px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: inherit;
}

.mobile-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.mobile-dropdown-btn::after {
    content: '▼';
    font-size: 10px;
    margin-left: 10px;
    opacity: 0.5;
}

.mobile-dropdown-content {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    border-radius: 12px;
    margin-top: 8px;
    padding: 8px;
}

.mobile-dropdown-content a {
    background-color: transparent;
    border: none;
    font-size: 1rem;
    width: 100%;
    margin: 2px 0;
    text-align: center;
    color: #9ca3af;
}

.mobile-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Bottom Nav (Mobile) - Matching Theme */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #27272a;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    color: #71717a;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #818cf8;
    /* Indigo 400 */
    background: transparent;
}

/* Tablet Media Query */
@media (max-width: 992px) {
    .desktop-menu .menu-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    .logo-container {
        display: none;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 24px;
        /* Adjust for new header height */
    }

    .bottom-nav {
        display: block;
    }
}