/**
 * Styles pour le bouton de changement de thème
 * QuantisDigitale
 */

/* Bouton toggle thème */
.bouton-theme {
    position: relative;
    width: 50px;
    height: 50px;
    border: 2px solid var(--couleur-bordure);
    background: var(--couleur-fond-secondaire);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.bouton-theme:hover {
    background: var(--couleur-accent);
    border-color: var(--couleur-accent);
    transform: rotate(15deg) scale(1.1);
}

.bouton-theme i {
    font-size: 20px;
    color: var(--couleur-texte);
    transition: all 0.3s ease;
}

.bouton-theme:hover i {
    color: var(--couleur-fond-principal);
    transform: rotate(-15deg);
}

/* Animation de rotation lors du changement */
.bouton-theme.rotation {
    animation: rotationTheme 0.6s ease;
}

@keyframes rotationTheme {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .bouton-theme {
        width: 45px;
        height: 45px;
    }
    
    .bouton-theme i {
        font-size: 18px;
    }
}