/* Navigation par onglets */

/* Navigation par onglets */
.nav-tabs {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    color: var(--gray-700); /* Texte clair sur fond sombre */
}

/* Assurer que tous les éléments de texte dans la navigation ont une couleur appropriée */
.nav-tabs * {
    color: inherit;
}

.tab-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-2xs);
    padding: var(--spacing-md) var(--spacing-sm);
    background: none;
    border: none;
    color: var(--gray-400); /* Texte secondaire sur fond sombre */
    font-size: var(--text-2xs);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
    position: relative;
    border-radius: 0;
}

.tab-btn:hover {
    color: var(--primary);
    background: var(--gray-200);
}

.tab-btn.active {
    color: white;
    background: var(--gradient-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    transition: transform var(--transition-fast);
}

.tab-icon .ui-icon {
    width: 100%;
    height: 100%;
}

.tab-btn:hover .tab-icon {
    transform: scale(1.1);
}

@media (max-width: 720px) {
    .nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 88px;
        width: 88px;
        scroll-snap-align: start;
    }

    .tab-label {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }
}

