:root {
    --teams-purple: #6264A7;
    --teams-light-purple: #8b8cc7;
    --teams-dark: #252423;
}

/* Mode sombre */
[data-theme="dark"] {
    --bg-primary: #1f1f1f;
    --text-primary: #ffffff;
    --bg-secondary: #2d2d2d;
    --bg-card: #333333;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --text-primary: #252423;
    --bg-secondary: #f9fafb;
    --bg-card: #ffffff;
}

body {
    font-family: 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--teams-purple);
    height: 4rem;
    z-index: 40;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-title {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Menu burger à gauche */
.menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    color: white;
    z-index: 100;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Contrôles à droite */
.header-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 100;
}

/* Language selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
}

.language-btn {
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.language-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.language-btn.active {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Theme switch */
.theme-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-switch span {
    color: white;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(255, 255, 255, 0.4);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Navigation */
.nav-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background-color: rgba(98, 100, 167, 0.1);
    border-left: 4px solid var(--teams-purple);
}

.nav-item.active {
    background-color: rgba(98, 100, 167, 0.1);
    border-left: 4px solid var(--teams-purple);
}

/* Video container styles */
.video-container {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: translateY(-2px);
}

/* Adaptation dark mode pour la vidéo */
[data-theme="dark"] .video-container {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }

    .header-controls {
        position: fixed;
        bottom: 1rem;
        top: auto;
        left: 1rem;
        right: 1rem;
        justify-content: center;
        background: var(--teams-purple);
        padding: 0.75rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Dark mode adaptations */
[data-theme="dark"] .bg-white {
    background-color: var(--bg-card);
}

[data-theme="dark"] .bg-gray-50 {
    background-color: var(--bg-secondary);
}

[data-theme="dark"] .text-gray-700 {
    color: var(--text-primary);
}