:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #ecf0f1;
    --hover-color: #e74c3c;
    --background-dark: #202020;
    --background-light: #333;
    --font-family: 'Arial', 'Noto Sans Arabic', sans-serif;
    --transition-speed: 0.3s;
}

/* ----- HEADER ----- */
.navbar-custom {
    background-color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-bottom: 10px;
    margin-top: 5px;
}



.navbar-brand-custom {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: color var(--transition-speed) ease;
    margin-right: 30px;
}

.navbar-brand-custom:hover {
    color: var(--hover-color);
}

.navbar-brand-custom img {
    height: 40px;
    margin-left: 10px;
    margin-right: 0;
}

/* ----- LINKS ----- */
.nav-links-custom {
    list-style: none;
    display: flex;
    margin-bottom: 0;
}

.nav-links-custom li {
    margin-right: 2.5rem;
    margin-left: 0;
}

.nav-links-custom a{
    color: black;
    text-decoration: none;
    font-size: 2rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-speed) ease;
    font-family: var(--font-family);
}
.nav-links-custom .has-submenu .menu-title {
     color: black;
    text-decoration: none;
    font-size: 2rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-speed) ease;
    font-family: var(--font-family);}

.nav-links-custom a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 0;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-links-custom a:hover {
    color: var(--primary-color);
}

.nav-links-custom a:hover::after {
    width: 100%;
    left: 0;
}

/* ----- HAMBURGER ----- */
.hamburger-custom {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    z-index: 10000;
}

.hamburger-custom span {
    background: var(--text-color);
    height: 3px;
    width: 30px;
    margin: 4px 0;
    transition: all var(--transition-speed) ease;
}

.hamburger-custom.active span:nth-child(1) {
    transform: translateY(7px) rotate(-45deg);
}

.hamburger-custom.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-custom.active span:nth-child(3) {
    transform: translateY(-7px) rotate(45deg);
}

/* ----- MOBILE MENU ----- */
.nav-mobile-custom {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 32, 32, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease-in-out;
    z-index: 9999;
    list-style: none;
}

.nav-mobile-custom.active {
    transform: translateX(0);
}

.nav-mobile-custom li {
    margin: 1rem 0;
}

.nav-mobile-custom a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    transition: color var(--transition-speed) ease;
}

.nav-mobile-custom a:hover {
    color: var(--primary-color);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .nav-links-custom {
        display: none;
    }

    .hamburger-custom {
        display: flex;
    }

    .nav-mobile-custom {
        display: flex;
    }
}

/* --- Sous-menu dans nav-links-custom --- */
.nav-links-custom li.has-submenu {
    position: relative;
}

.nav-links-custom .submenu {
    display: none;
    position: absolute;
    right: 0; /* Pour RTL */
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1001;
    min-width: 180px;
    border-radius: 4px;
}

.nav-links-custom .submenu li {
    margin: 0;
}

.nav-links-custom .submenu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: black;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-links-custom .submenu li a:hover {
    background: var(--primary-color);
    color: white;
}

/* Afficher le sous-menu au survol */
.nav-links-custom li.has-submenu:hover .submenu {
    display: block;
}

/* Style du titre de menu non cliquable */
.nav-links-custom .menu-title {
    cursor: default;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    font-family: var(--font-family);
    color: black;
}
.nav-mobile-custom .has-submenu-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-mobile-custom .menu-title-mobile {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: default;
    margin-bottom: 0.5rem;
}

.nav-mobile-custom .submenu-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-mobile-custom .submenu-mobile a {
    font-size: 1.4rem;
    color: var(--text-color);
}

.nav-mobile-custom .submenu-mobile a:hover {
    color: var(--primary-color);
}

.menu-badge {
    background: var(--hover-color); /* rouge */
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 6px;
    vertical-align: middle;
}
.navbar-custom nav{
    margin-left: 50px;

}
