/* === BOUTON DE BASCULEMENT THÈME === */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-left: 1rem;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    background: var(--accent-primary);
    border-color: var(--accent-secondary);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.95);
}

.theme-toggle-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sun-icon,
.moon-icon {
    position: absolute;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="day"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="day"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* Responsive pour le bouton de thème */
@media (max-width: 768px) {
    .theme-toggle {
        width: 44px;
        height: 44px;
        margin-left: 0.5rem;
    }
    
    .theme-toggle-icon {
        width: 20px;
        height: 20px;
    }
    
    .sun-icon,
    .moon-icon {
        font-size: 1rem;
    }
}

/* === BOUTON DE BASCULEMENT THÈME MOBILE === */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 1rem;
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
}

.mobile-theme-toggle:hover {
    background: var(--accent-primary);
    transform: translateX(8px);
}

.mobile-theme-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sun-icon,
.mobile-moon-icon {
    position: absolute;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.mobile-moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="day"] .mobile-sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="day"] .mobile-moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.mobile-theme-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mobile-theme-toggle:hover .mobile-theme-text {
    color: var(--text-primary);
}

/* === INDICATEUR MODE AUTOMATIQUE === */
.auto-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.auto-indicator.active {
    opacity: 1;
    transform: scale(1);
}

.mobile-auto-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.mobile-auto-indicator.active {
    opacity: 1;
    transform: scale(1);
}