/* ==================== ARBRE MUSICAL (VRAIE SOUDURE) ==================== */
#arbre-container {
    position: absolute; /* Remplace fixed par absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Prend exactement la place jusqu'au bandeau Aum */
    z-index: 5000;
    background: rgba(0,0,0,0.95); 
    display: none; 
    opacity: 0;
    transition: opacity 0.4s ease;
}

#arbre-container.active {
    display: block;
    opacity: 1;
}

#arbre-p5-holder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#arbre-p5-holder canvas {
    display: block;
    position: absolute !important;
    bottom: 0 !important; /* Le canvas touche le bas du wrapper (donc le bandeau) */
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* NAVIGATION (Flotte au-dessus du tronc) */
#racines-container, #styles-container, #perles-breadcrumb {
    position: relative;
    z-index: 10; /* Passe par-dessus l'arbre */
    flex-shrink: 0; /* Les boutons gardent toute leur place (Élastique) */
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 15px;
    display: flex;
    justify-content: flex-start; /* flex-start gère mieux le tactile que center */
    gap: 8px;
    background: rgba(0, 0, 0, 0.6); /* Un peu transparent pour voir le tronc derrière */
}

/* --- AJOUT POUR LE PC --- */
@media (min-width: 1024px) {
    #racines-container, #styles-container, #perles-breadcrumb {
        justify-content: center; /* Centre les boutons sur grand écran */
    }
}

.btn-opt {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 11px;
    border-radius: 6px;
    background: #1a1a2e; 
    border: 1px solid #444;
    color: white;
    cursor: pointer;
}

.btn-opt.active {
    background: var(--gold) !important;
    color: #000 !important;
}