/* ===== NAVIGATION STYLES ===== */

/* Navbar styling */
.app-header {
    background: #f8f8f8 !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative; /* ou fixed / sticky si tu veux */
    z-index: 9999;
}

    .app-header .nav-link,
    .app-header .app-logo a {
        color: #000 !important;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .app-header .nav-link:hover,
        .app-header .app-logo a:hover {
            color: #4CAF50 !important;
            transform: translateY(-1px);
        }

/* Dropdown hover effect */
.main-menu-list .dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Modern cities dropdown design */
.villes-dropdown {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
    width: 720px;
    min-width: 720px;
    max-width: 90vw;
    padding: 32px;
    box-sizing: border-box;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .villes-dropdown li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .villes-dropdown .dropdown-item {
        display: block;
        padding: 14px 18px;
        border-radius: 12px;
        transition: all 0.3s ease;
        font-weight: 500;
        font-size: 14px;
        color: #2c3e50;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(76, 175, 80, 0.1);
        text-decoration: none;
        position: relative;
        overflow: hidden;
    }

        .villes-dropdown .dropdown-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .villes-dropdown .dropdown-item:hover::before {
            left: 100%;
        }

        .villes-dropdown .dropdown-item:hover {
            background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
            color: #ffffff;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3), 0 4px 12px rgba(76, 175, 80, 0.2);
            border-color: #4CAF50;
        }

/* Responsive design */
@media screen and (max-width: 1200px) {
    .villes-dropdown {
        grid-template-columns: repeat(3, 1fr) !important;
        width: 600px;
        min-width: 600px;
        gap: 10px;
        padding: 28px;
    }

        .villes-dropdown .dropdown-item {
            padding: 12px 16px;
            font-size: 13px;
        }
}

@media screen and (max-width: 992px) {
    .villes-dropdown {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 420px;
        min-width: 420px;
        gap: 8px;
        padding: 24px;
    }

        .villes-dropdown .dropdown-item {
            padding: 10px 14px;
            font-size: 12px;
        }
}

@media screen and (max-width: 768px) {
    .villes-dropdown {
        grid-template-columns: repeat(1, 1fr) !important;
        width: 280px;
        min-width: 280px;
        gap: 6px;
        padding: 20px;
    }
}

/* Additional navbar improvements */
.app-header .dropdown-toggle::after {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.app-header .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    color: black !important;
    transition: all 0.3s ease;
}

    .mobile-menu-toggle:hover {
        color: #4CAF50 !important;
    }

/* Ensure proper z-index for dropdown */
.main-nav {
    position: relative;
    z-index: 999;
}

/* Fix for Bootstrap conflicts */
.dropdown-menu.show {
    display: grid !important;
}

/* Smooth transitions for all interactive elements */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hover effects for better UX */
.nav-link {
    position: relative;
}

/* Logo hover effect */
.app-logo a {
    position: relative;
    display: inline-block;
    font-size: 0; /* Hide text */
}

.app-logo a img {
    height: 60px; /* Ensure image height is maintained */
    width: auto;
}

    .app-logo a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent, rgba(76, 175, 80, 0.1), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 4px;
    }

/* Styles for fixed white navigation */
.fixed-app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #f8f8f8  !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    height: 90px;
    padding-top: 14px;
    padding-bottom: 14px;
}

    .fixed-app-header.shrink {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .fixed-app-header .app-logo a {
        color: #000 !important;
    }

    .fixed-app-header .main-nav .main-menu-list > li > a {
        color: #000 !important;
    }

        .fixed-app-header .main-nav .main-menu-list > li > a:hover {
            color: #f69314 !important;
        }

    .fixed-app-header .mobile-menu-toggle span {
        background-color: black !important;
    }

/* Badge notification moderne pour la cloche */
.notification-badge-modern {
    position: absolute;
    top: -7px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.85em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(231,76,60,0.15);
    z-index: 2;
}
