/**
 * Styles pour la navbar DataShare
 */

/* Container principal de la navbar */
.dt-navbar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    color: white;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    min-height: 60px;
}

.dt-navbar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation */
.dt-navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.dt-navbar-nav-right {
    margin-left: auto;
}

.dt-navbar-item {
    position: relative;
    margin: 0;
}

/* Lien de la navbar */
.dt-navbar-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.dt-navbar-link:hover {
    background-color: rgba(255, 113, 48, 0.1);
    color: #FF7130;
    text-decoration: none;
}

.dt-navbar-link:focus {
    outline: 2px solid #FF7130;
    outline-offset: 2px;
}

/* Icône et caret */
.dt-navbar-icon {
    margin-right: 8px;
    font-size: 16px;
}

.dt-navbar-caret {
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dt-navbar-item.dropdown.open .dt-navbar-caret {
    transform: rotate(180deg);
}

/* Menu déroulant */
.dt-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dt-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Éléments du menu */
.dt-dropdown-item {
    margin: 0;
}

.dt-dropdown-item a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dt-dropdown-item a:hover {
    background-color: rgba(255, 113, 48, 0.1);
    color: #FF7130;
    text-decoration: none;
}

.dt-dropdown-item a:focus {
    outline: 2px solid #FF7130;
    outline-offset: -2px;
}

/* Icônes du menu */
.dt-dropdown-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .dt-navbar {
        padding: 8px 15px;
        min-height: 50px;
    }
    
    .dt-navbar-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .dt-dropdown-menu {
        min-width: 180px;
        right: -10px;
    }
    
    .dt-dropdown-item a {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dt-navbar {
        padding: 6px 10px;
        min-height: 45px;
    }
    
    .dt-navbar-link {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .dt-dropdown-menu {
        min-width: 160px;
        right: -15px;
    }
    
    .dt-dropdown-item a {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Animation d'entrée */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dt-navbar {
    animation: slideInFromTop 0.5s ease-out;
}

/* États d'interaction */
.dt-navbar-link:active {
    transform: translateY(1px);
}

.dt-dropdown-item a:active {
    transform: translateX(2px);
}

/* Styles spécifiques pour le menu de langue */
.dt-dropdown-item a[data-action^="language-"] {
    position: relative;
}

.dt-dropdown-item a[data-action^="language-"]:after {
    content: "✓";
    position: absolute;
    right: 16px;
    color: #FF7130;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dt-dropdown-item a[data-action^="language-"]:hover:after,
.dt-dropdown-item a[data-action^="language-"][style*="font-weight: bold"]:after {
    opacity: 1;
}

/* Indicateur de langue actuelle */
.dt-dropdown-item a[style*="font-weight: bold"] {
    background-color: rgba(255, 113, 48, 0.05);
    border-left: 3px solid #FF7130;
    padding-left: 13px;
}

/* Animation de changement de langue */
@keyframes languageChange {
    0% { opacity: 0.7; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.dt-c-content-main {
    transition: opacity 0.3s ease;
}

.dt-c-content-main.language-changing {
    animation: languageChange 0.5s ease-in-out;
}

/* Support pour les thèmes sombres */
@media (prefers-color-scheme: dark) {
    .dt-navbar {
        background: rgba(30, 30, 30, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .dt-navbar-link {
        color: #fff;
    }
    
    .dt-navbar-link:hover {
        background-color: rgba(255, 113, 48, 0.2);
    }
    
    .dt-dropdown-menu {
        background: #2a2a2a;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .dt-dropdown-item a {
        color: #fff;
    }
    
    .dt-dropdown-item a:hover {
        background-color: rgba(255, 113, 48, 0.2);
    }
    
    .dt-dropdown-divider {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .dt-dropdown-item a[style*="font-weight: bold"] {
        background-color: rgba(255, 113, 48, 0.1);
    }
}
