/* Styles pour les menus déroulants */

/* Menu déroulant desktop */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    padding-right: 20px !important;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 8px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(105, 56, 239, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px !important;
    color: #ffffff;
    text-align: center;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

.dropdown-menu li a:hover {
    background: rgba(105, 56, 239, 0.2);
    color: #ffffff;
    transform: translateY(0) !important;
}

/* Menu déroulant mobile */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    position: relative;
}

.mobile-dropdown-toggle::after {
    content: '▼';
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mobile-dropdown.active .mobile-dropdown-toggle::after {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 1000px;
    opacity: 1;
    margin-top: 15px;
}

.mobile-dropdown-menu li {
    margin: 5px 0;
}

.mobile-dropdown-menu li a {
    font-size: clamp(18px, 4vw, 24px) !important;
    padding: 5px !important;
}

/* Responsive */
@media (max-width: 992px) {
    .dropdown-toggle::after {
        display: none;
    }
    
    .dropdown-menu {
        display: none;
    }
}