/* Styles pour les breadcrumbs */
.breadcrumbs-container {
    width: 100%;
    font-family: var(--font-family);
}

.paths-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.path-branch {
    position: relative;
    padding: 0.75rem 0;
    transition: transform 0.2s ease;
}

.path-branch:not(:last-child) {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.path-branch:hover {
    transform: translateX(4px);
}

.path-nodes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.node {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.node:hover {
    transform: translateY(-2px);
}

.home-node {
    background-color: #f3f4f6;
    color: #4b5563;
}

.home-node:hover {
    background-color: #e5e7eb;
}

.mesh-node {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.mesh-node:hover {
    background-color: #bfdbfe;
}

.category-node {
    background-color: #f3f4f6;
    color: #1f2937;
}

.category-node:hover {
    background-color: #e5e7eb;
}

.article-node {
    background-color: #dcfce7;
    color: #15803d;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-node:hover {
    background-color: #bbf7d0;
}

.connector {
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0 0.25rem;
}

@media (max-width: 768px) {
    .path-nodes {
        gap: 0.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 5px;
    }

    .path-nodes::-webkit-scrollbar {
        display: none;
    }
    
    .node {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .connector {
        font-size: 0.625rem;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.path-branch {
    animation: slideIn 0.3s ease-out forwards;
    animation-delay: calc(var(--path-index) * 0.1s);
}

/* Styles pour les mots-clés MeSH */
.badge.text-bg-light {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
    transition: all 0.2s ease-in-out;
}

.badge.text-bg-light:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    animation: fadeIn 0.3s ease-out forwards;
    animation-delay: calc(var(--badge-index) * 0.05s);
}

.badge .qualifier {
    color: #6c757d;
    font-size: 0.9em;
}

/* Responsive pour les badges */
@media (max-width: 768px) {
    .badge.text-bg-light {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Style pour le conteneur des badges MeSH */
.mesh-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Style pour améliorer l'espacement des badges dans le flux */
.mesh-keywords .badge {
    margin: 0.25rem;
}