        :root {
            /* Palette moderne - Deep Ocean */
            --primary-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
            --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
            --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            
            /* Couleurs principales */
            --bg-dark: #0a0a0f;
            --bg-sidebar: #12121a;
            --bg-card: rgba(255, 255, 255, 0.03);
            --bg-card-hover: rgba(255, 255, 255, 0.06);
            --bg-main: #f8f9fc;
            
            /* Texte */
            --text-primary: #1a1a2e;
            --text-secondary: #64748b;
            --text-light: #f1f5f9;
            --text-muted: #94a3b8;
            
            /* Accents */
            --accent-primary: #6366f1;
            --accent-secondary: #8b5cf6;
            --accent-tertiary: #06b6d4;
            
            /* États */
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --info: #3b82f6;
            
            /* Effets */
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
            
            /* Dimensions */
            --sidebar-width: 280px;
            --border-radius: 12px;
            --border-radius-lg: 16px;
            --border-radius-xl: 24px;
            
            /* Transitions */
            --transition-fast: all 0.15s ease;
            --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-main);
            color: var(--text-primary);
            min-height: 100vh;
            display: flex;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        /* ============================================
           Messages Flash - Toast Notifications
           ============================================ */
        .flash-messages {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 9999;
            max-width: 380px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .flash-message {
            padding: 16px 20px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-lg);
            animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 500;
            font-size: 14px;
        }
        
        .flash-message::before {
            content: '';
            width: 20px;
            height: 20px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        
        .flash-message.success {
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
            color: white;
        }
        .flash-message.success::before {
            background: rgba(255,255,255,0.3);
            content: '✓';
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        
        .flash-message.error {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(220, 38, 38, 0.95));
            color: white;
        }
        .flash-message.error::before {
            background: rgba(255,255,255,0.3);
            content: '✕';
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        
        .flash-message.warning {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
            color: white;
        }
        
        .flash-message.info {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
            color: white;
        }
        
        @keyframes toastSlideIn {
            from {
                transform: translateX(120%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        @keyframes toastSlideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(120%);
                opacity: 0;
            }
        }
        
        /* ============================================
           Sidebar Desktop - Design Glassmorphism
           ============================================ */
        .sidebar {
            width: var(--sidebar-width);
            background: var(--bg-sidebar);
            background-image: 
                radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
            color: var(--text-light);
            height: 100vh;
            position: fixed;
            transition: var(--transition-base);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            border-right: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .sidebar-header {
            padding: 28px 24px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            gap: 14px;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            color: inherit;
        }
        
        .logo img {
            height: 42px;
            width: auto;
            filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
        }
        
        .logo-text {
            font-family: 'Outfit', sans-serif;
            font-size: 22px;
            font-weight: 600;
            background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.5px;
        }
        
        .nav-menu {
            list-style: none;
            padding: 20px 12px;
            flex: 1;
            overflow-y: auto;
        }
        
        .nav-menu::-webkit-scrollbar {
            width: 4px;
        }
        
        .nav-menu::-webkit-scrollbar-track {
            background: transparent;
        }
        
        .nav-menu::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }
        
        .nav-item {
            margin-bottom: 4px;
        }
        
        .nav-section-title {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            color: var(--text-muted);
            padding: 20px 16px 10px;
            opacity: 0.7;
        }
        
        .nav-link {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            color: var(--text-muted);
            text-decoration: none;
            border-radius: var(--border-radius);
            transition: var(--transition-base);
            font-weight: 500;
            font-size: 14px;
            position: relative;
            overflow: hidden;
        }
        
        .nav-link::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 0;
            background: var(--accent-gradient);
            border-radius: 0 3px 3px 0;
            transition: var(--transition-base);
        }
        
        .nav-link:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-light);
            transform: translateX(4px);
        }
        
        .nav-link:hover::before {
            height: 60%;
        }
        
        .nav-link.active {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.12) 100%);
            color: var(--text-light);
            font-weight: 600;
            box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.05);
        }
        
        .nav-link.active::before {
            height: 70%;
            width: 4px;
            background: linear-gradient(180deg, #818cf8, #a78bfa);
            box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
        }
        
        /* Breadcrumbs */
        .breadcrumbs {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 20px;
            padding: 10px 16px;
            background: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-sm);
        }
        
        .breadcrumbs a {
            color: var(--accent-primary);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition-fast);
        }
        
        .breadcrumbs a:hover {
            color: var(--accent-secondary);
        }
        
        .breadcrumbs .separator {
            color: var(--text-muted);
            opacity: 0.5;
        }
        
        .breadcrumbs .current {
            color: var(--text-primary);
            font-weight: 600;
        }
        
        .nav-link img {
            width: 20px;
            height: 20px;
            filter: brightness(0) invert(0.6);
            transition: var(--transition-fast);
        }
        
        .nav-link:hover img,
        .nav-link.active img {
            filter: brightness(0) invert(1);
        }
        
        /* ============================================
           Header Mobile
           ============================================ */
        .mobile-header {
            display: none;
            background: var(--bg-sidebar);
            color: var(--text-light);
            padding: 16px 20px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1001;
            box-shadow: var(--shadow-lg);
            backdrop-filter: blur(10px);
        }
        
        .mobile-header-content {
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }
        
        .mobile-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-light);
            text-decoration: none;
            font-family: 'Outfit', sans-serif;
            font-size: 18px;
            font-weight: 600;
        }
        
        .mobile-logo img {
            height: 32px;
        }
        
        .hamburger {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: var(--text-light);
            font-size: 20px;
            cursor: pointer;
            padding: 10px 12px;
            border-radius: var(--border-radius);
            transition: var(--transition-fast);
            position: absolute;
            left: 0;
        }
        
        .hamburger:hover {
            background: rgba(255, 255, 255, 0.15);
        }
        
        /* ============================================
           Menu Mobile Coulissant
           ============================================ */
        .mobile-menu-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            z-index: 1002;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition-base);
        }
        
        .mobile-menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 300px;
            max-width: 85vw;
            background: var(--bg-sidebar);
            background-image: 
                radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
            color: var(--text-light);
            transform: translateX(-100%);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            z-index: 1003;
        }
        
        .mobile-menu.active {
            transform: translateX(0);
        }
        
        .mobile-menu-header {
            padding: 24px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .mobile-menu-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--text-light);
            text-decoration: none;
            font-family: 'Outfit', sans-serif;
            font-size: 18px;
            font-weight: 600;
        }
        
        .mobile-menu-logo img {
            height: 36px;
        }
        
        .close-menu {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: var(--text-light);
            font-size: 24px;
            cursor: pointer;
            padding: 8px 12px;
            border-radius: var(--border-radius);
            transition: var(--transition-fast);
            line-height: 1;
        }
        
        .close-menu:hover {
            background: rgba(239, 68, 68, 0.3);
        }
        
        .mobile-nav-menu {
            list-style: none;
            padding: 16px 12px;
        }
        
        .mobile-nav-item {
            margin-bottom: 4px;
        }
        
        .mobile-nav-link {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            color: var(--text-muted);
            text-decoration: none;
            border-radius: var(--border-radius);
            transition: var(--transition-base);
            font-weight: 500;
            font-size: 15px;
        }
        
        .mobile-nav-link:hover,
        .mobile-nav-link.active {
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-light);
        }
        
        .mobile-nav-link img {
            width: 20px;
            height: 20px;
            filter: brightness(0) invert(0.6);
        }
        
        .mobile-nav-link:hover img,
        .mobile-nav-link.active img {
            filter: brightness(0) invert(1);
        }
        
        /* ============================================
           Contenu Principal
           ============================================ */
        .content {
            flex: 1;
            margin-left: var(--sidebar-width);
            padding: 32px;
            transition: var(--transition-base);
            min-height: 100vh;
            background: 
                radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
                var(--bg-main);
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
            padding-bottom: 24px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        }
        
        .page-title {
            font-family: 'Outfit', sans-serif;
            font-size: 28px;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.5px;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        
        .user-avatar {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: var(--accent-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 16px;
            box-shadow: var(--shadow-md);
        }
        
        .username {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 15px;
        }
        
        .subscription-badge {
            background: var(--accent-gradient);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: var(--shadow-md);
        }
        
        .logout-button {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
            padding: 10px 20px;
            border-radius: var(--border-radius);
            border: none;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition-base);
            box-shadow: var(--shadow-md);
        }
        
        .logout-button:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        /* ============================================
           Responsive Mobile
           ============================================ */
        @media (max-width: 1024px) {
            .content {
                padding: 24px;
            }
            
            .page-title {
                font-size: 24px;
            }
        }
        
        @media (max-width: 768px) {
            .flash-messages {
                bottom: 100px;
                left: 16px;
                right: 16px;
                max-width: none;
            }
            
            .sidebar {
                display: none !important;
            }
            
            .mobile-header {
                display: block !important;
            }
            
            .content {
                margin-left: 0;
                padding: 100px 16px 24px;
            }
            
            body {
                flex-direction: column;
            }
            
            .header {
                flex-direction: column;
                gap: 16px;
                align-items: flex-start;
            }
            
            .user-info {
                width: 100%;
                justify-content: space-between;
                flex-wrap: wrap;
                gap: 12px;
            }
            
            .page-title {
                font-size: 22px;
            }
        }
        
        @media (max-width: 480px) {
            .content {
                padding: 90px 12px 20px;
            }
            
            .user-info {
                gap: 8px;
            }
            
            .username {
                display: none;
            }
            
            .logout-button {
                padding: 8px 14px;
                font-size: 13px;
            }
            
            .subscription-badge {
                padding: 5px 10px;
                font-size: 11px;
            }
        }

/* Sidebar locked items */
.nav-locked .nav-link.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    display: flex;
    align-items: center;
    position: relative;
}
.nav-locked .lock-icon {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.7;
}

