/* Scrollbar personnalisée avec effet brillant */

/* Pour WebKit (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00b4ff 0%, #9b59b6 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* Effet brillant */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #b873ff 100%);
    box-shadow: 0 0 8px rgba(0, 180, 255, 0.8), 0 0 12px rgba(155, 89, 182, 0.6);
}

/* Animation de brillance sur le thumb */
::-webkit-scrollbar-thumb {
    transition: all 0.3s ease;
}

/* Effet brillant dynamique (avec JS) */
.scrollbar-brilliant {
    position: relative;
}

/* Pour Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #9b59b6 #1a1a2e;
}

/* Style supplémentaire pour l'effet de brillance */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 180, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 180, 255, 0.8), 0 0 10px rgba(155, 89, 182, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 180, 255, 0.3);
    }
}

::-webkit-scrollbar-thumb {
    animation: glow 2s infinite;
}

/* Option : style pour les éléments avec overflow auto */
.custom-scroll-container {
    overflow: auto;
}

.custom-scroll-container::-webkit-scrollbar {
    width: 10px;
}

.custom-scroll-container::-webkit-scrollbar-track {
    background: #1e1e2e;
    border-radius: 5px;
}

.custom-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00b4ff, #9b59b6);
    border-radius: 5px;
}