 .btn-primary {
            background: #F36C21;
            transition: all 0.2s ease;
        }
        .btn-primary:hover {
            background: #D85A1A;
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(243, 108, 33, 0.3);
        }
        .btn-secondary {
            background: #0A1F44;
            transition: all 0.2s ease;
        }
        .btn-secondary:hover {
            background: #1A3A6B;
            transform: translateY(-1px);
        }
        .search-input:focus {
            border-color: #F36C21;
            box-shadow: 0 0 0 3px rgba(243, 108, 33, 0.15);
        }
        .stat-card {
            transition: all 0.3s ease;
            border: 1px solid #E5E7EB;
        }
        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(243, 108, 33, 0.12);
            border-color: #F36C21;
        }
        .badge-published {
            background: #DCFCE7;
            color: #166534;
        }
        .badge-draft {
            background: #F1F5F9;
            color: #475569;
        }
        .badge-archived {
            background: #FEE2E2;
            color: #991B1B;
        }
        .badge-open {
            background: #DBEAFE;
            color: #1E40AF;
        }
        .badge-full {
            background: #FEF3C7;
            color: #92400E;
        }
        .badge-ended {
            background: #F1F5F9;
            color: #475569;
        }
        .table-row:hover {
            background: rgba(243, 108, 33, 0.04);
        }
        .bg-primary-light {
            background: rgba(243, 108, 33, 0.08);
        }
        .text-primary {
            color: #F36C21;
        }
        .border-primary {
            border-color: #F36C21;
        }





.btn-primary {
            background: #F36C21;
            transition: all 0.2s ease;
        }
        .btn-primary:hover {
            background: #D85A1A;
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(243, 108, 33, 0.3);
        }
        .btn-outline {
            border: 1px solid #E5E7EB;
            transition: all 0.2s ease;
        }
        .btn-outline:hover {
            border-color: #F36C21;
            color: #F36C21;
            background: rgba(243, 108, 33, 0.04);
        }
        .stat-card {
            transition: all 0.3s ease;
            border: 1px solid #E5E7EB;
        }
        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(243, 108, 33, 0.12);
            border-color: #F36C21;
        }
        .course-card {
            transition: all 0.3s ease;
            border: 1px solid #E5E7EB;
        }
        .course-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
            border-color: #F36C21;
        }
        .progress-ring {
            transition: stroke-dashoffset 0.8s ease;
        }
        .badge-en-cours {
            background: #DBEAFE;
            color: #1E40AF;
        }
        .badge-termine {
            background: #DCFCE7;
            color: #166534;
        }
        .badge-pas-commence {
            background: #F1F5F9;
            color: #64748B;
        }
        .badge-en-attente {
            background: #FEF3C7;
            color: #92400E;
        }
        .badge-valide {
            background: #DCFCE7;
            color: #166534;
        }
        .badge-rejete {
            background: #FEE2E2;
            color: #991B1B;
        }
        .nav-link {
            color: rgba(255, 255, 255, 0.7);
            transition: all 0.2s ease;
        }
        .nav-link:hover {
            color: #F36C21;
        }
        .nav-link.active {
            color: #F36C21;
            border-bottom: 2px solid #F36C21;
        }
        .lesson-item {
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }
        .lesson-item:hover {
            background: rgba(243, 108, 33, 0.04);
            border-left-color: #F36C21;
        }
        .lesson-item.completed {
            border-left-color: #16A34A;
        }
        .lesson-item.completed .lesson-status {
            color: #16A34A;
        }
        .lesson-item.current {
            border-left-color: #F36C21;
            background: rgba(243, 108, 33, 0.06);
        }
        .modal-overlay {
            background: rgba(10, 31, 68, 0.5);
            backdrop-filter: blur(4px);
        }
        .fade-in {
            animation: fadeIn 0.3s ease-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 50;
        }
        .modal.active {
            display: flex;
        }
        .certif-badge {
            background: linear-gradient(135deg, #F36C21, #FF8C42);
        }
        .sidebar {
            width: 280px;
            background: #0A1F44;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 4px 0 20px rgba(10, 31, 68, 0.15);
        }
        .sidebar-link {
            color: rgba(255, 255, 255, 0.65);
            transition: all 0.2s ease;
        }
        .sidebar-link:hover {
            color: #F36C21;
            background: rgba(243, 108, 33, 0.08);
        }
        .sidebar-link.active {
            color: #F36C21;
            background: rgba(243, 108, 33, 0.12);
            border-right: 3px solid #F36C21;
        }
        .sidebar-link .icon-wrapper {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        .sidebar-link:hover .icon-wrapper {
            transform: scale(1.05);
        }
        .sidebar-link.active .icon-wrapper {
            background: #F36C21 !important;
        }
        .sidebar-link.active .icon-wrapper svg {
            color: white !important;
        }
        .overlay {
            background: rgba(10, 31, 68, 0.6);
            backdrop-filter: blur(4px);
        }
        /* Notification badge */
        .notif-badge {
            background: #F36C21;
        }
        /* Scrollbar personnalisée */
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: #f1f5f9; }
        ::-webkit-scrollbar-thumb { background: #F36C21; border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: #D85A1A; }

        







         .btn-primary {
            background: #F36C21;
            transition: all 0.2s ease;
        }
        .btn-primary:hover {
            background: #D85A1A;
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(243, 108, 33, 0.3);
        }
        .btn-secondary {
            background: #0A1F44;
            transition: all 0.2s ease;
        }
        .btn-secondary:hover {
            background: #1A3A6B;
            transform: translateY(-1px);
        }
        .btn-outline {
            border: 1px solid #E5E7EB;
            transition: all 0.2s ease;
        }
        .btn-outline:hover {
            border-color: #F36C21;
            color: #F36C21;
            background: rgba(243, 108, 33, 0.04);
        }
        .btn-danger {
            background: #EF4444;
            transition: all 0.2s ease;
        }
        .btn-danger:hover {
            background: #DC2626;
            transform: translateY(-1px);
        }
        .btn-success {
            background: #22C55E;
            transition: all 0.2s ease;
        }
        .btn-success:hover {
            background: #16A34A;
            transform: translateY(-1px);
        }
        .search-input:focus {
            border-color: #F36C21;
            box-shadow: 0 0 0 3px rgba(243, 108, 33, 0.15);
        }
        .stat-card {
            transition: all 0.3s ease;
            border: 1px solid #E5E7EB;
        }
        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(243, 108, 33, 0.12);
            border-color: #F36C21;
        }
        .module-card {
            transition: all 0.3s ease;
            border: 1px solid #E5E7EB;
        }
        .module-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
            border-color: #F36C21;
        }
        .resource-tag {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: 500;
            margin: 1px 2px;
        }
        .resource-tag.pdf { background: #FEE2E2; color: #DC2626; }
        .resource-tag.video { background: #DBEAFE; color: #2563EB; }
        .resource-tag.zip { background: #FEF3C7; color: #D97706; }
        .resource-tag.link { background: #DCFCE7; color: #16A34A; }
        .resource-tag.default { background: #F1F5F9; color: #64748B; }
        .table-row:hover {
            background: rgba(243, 108, 33, 0.04);
        }
        .table-row.dragging {
            opacity: 0.5;
            background: rgba(243, 108, 33, 0.1);
        }
        .table-row.drag-over {
            border-bottom: 2px solid #F36C21;
        }
        .bg-primary-light {
            background: rgba(243, 108, 33, 0.08);
        }
        .text-primary {
            color: #F36C21;
        }
        .border-primary {
            border-color: #F36C21;
        }
        .progress-bar {
            height: 6px;
            background: #E5E7EB;
            border-radius: 3px;
            overflow: hidden;
        }
        .progress-bar .fill {
            height: 100%;
            background: linear-gradient(90deg, #F36C21, #FF8C42);
            border-radius: 3px;
            transition: width 0.8s ease;
        }
        .modal-overlay {
            background: rgba(10, 31, 68, 0.5);
            backdrop-filter: blur(4px);
        }
        .fade-in {
            animation: fadeIn 0.3s ease-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 50;
        }
        .modal.active {
            display: flex;
        }
        .sidebar {
            width: 280px;
            background: #0A1F44;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 4px 0 20px rgba(10, 31, 68, 0.15);
        }
        .sidebar-link {
            color: rgba(255, 255, 255, 0.65);
            transition: all 0.2s ease;
        }
        .sidebar-link:hover {
            color: #F36C21;
            background: rgba(243, 108, 33, 0.08);
        }
        .sidebar-link.active {
            color: #F36C21;
            background: rgba(243, 108, 33, 0.12);
            border-right: 3px solid #F36C21;
        }
        .sidebar-link .icon-wrapper {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        .sidebar-link:hover .icon-wrapper {
            transform: scale(1.05);
        }
        .sidebar-link.active .icon-wrapper {
            background: #F36C21 !important;
        }
        .sidebar-link.active .icon-wrapper svg {
            color: white !important;
        }
        .overlay {
            background: rgba(10, 31, 68, 0.6);
            backdrop-filter: blur(4px);
        }
        .nav-link {
            color: rgba(255, 255, 255, 0.7);
            transition: all 0.2s ease;
        }
        .nav-link:hover {
            color: #F36C21;
        }
        .nav-link.active {
            color: #F36C21;
            border-bottom: 2px solid #F36C21;
        }
        .notif-badge {
            background: #F36C21;
        }
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: #f1f5f9; }
        ::-webkit-scrollbar-thumb { background: #F36C21; border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: #D85A1A; }
        .drag-handle {
            cursor: grab;
            color: #94A3B8;
            transition: color 0.2s;
            user-select: none;
        }
        .drag-handle:hover {
            color: #F36C21;
        }
        .drag-handle:active {
            cursor: grabbing;
        }
        .badge-ordre {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: rgba(243, 108, 33, 0.1);
            color: #F36C21;
            font-size: 12px;
            font-weight: 600;
        }
        .toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: #0A1F44;
            color: white;
            padding: 16px 24px;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
            z-index: 100;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.5s ease;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }
        .toast .toast-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .toast .toast-icon.success { background: rgba(34, 197, 94, 0.2); color: #22C55E; }
        .toast .toast-icon.error { background: rgba(239, 68, 68, 0.2); color: #EF4444; }
        .toast .toast-icon.info { background: rgba(59, 130, 246, 0.2); color: #3B82F6; }






/*================================================================================================================================== */
/*css sibar */
/*============================================================================================================================== */

        /* Styles personnalisés pour la sidebar admin */
        .sidebar-admin {
            background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
            box-shadow: 4px 0 20px rgba(0,0,0,0.3);
        }
        
        .sidebar-link {
            position: relative;
            transition: all 0.3s ease;
            border-radius: 12px;
            margin: 2px 8px;
        }
        
        .sidebar-link:hover {
            background: rgba(243, 108, 33, 0.15);
            transform: translateX(4px);
        }
        
        .sidebar-link.active {
            background: rgba(243, 108, 33, 0.2);
            border-right: 3px solid #F36C21;
        }
        
        .sidebar-link .icon-wrapper {
            transition: all 0.3s ease;
        }
        
        .sidebar-link:hover .icon-wrapper {
            transform: scale(1.1);
        }
        
        .sidebar-link.active .icon-wrapper {
            background: rgba(243, 108, 33, 0.3);
        }
        
        .nav-section-title {
            position: relative;
            padding-left: 12px;
        }
        
        .nav-section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 16px;
            background: #F36C21;
            border-radius: 2px;
        }
        
        .badge-notification {
            animation: pulse-badge 2s infinite;
        }
        
        @keyframes pulse-badge {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        .user-card {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.08);
            backdrop-filter: blur(10px);
        }
        
        .user-card:hover {
            background: rgba(255,255,255,0.08);
        }
        
        .sidebar-scroll::-webkit-scrollbar {
            width: 4px;
        }
        
        .sidebar-scroll::-webkit-scrollbar-track {
            background: transparent;
        }
        
        .sidebar-scroll::-webkit-scrollbar-thumb {
            background: rgba(243, 108, 33, 0.3);
            border-radius: 2px;
        }
        
        .sidebar-scroll::-webkit-scrollbar-thumb:hover {
            background: rgba(243, 108, 33, 0.5);
        }
        
        .logo-glow {
            text-shadow: 0 0 20px rgba(243, 108, 33, 0.3);
        }
        
        .menu-item-count {
            background: rgba(243, 108, 33, 0.2);
            color: #F36C21;
            font-size: 10px;
            padding: 2px 8px;
            border-radius: 20px;
            border: 1px solid rgba(243, 108, 33, 0.2);
        }
        
        .divider-gradient {
            background: linear-gradient(90deg, rgba(243, 108, 33, 0.3), transparent);
            height: 1px;
        }
        
        /* Animation du toggle */
        .sidebar-toggle {
            transition: transform 0.3s ease;
        }
        
        .sidebar-toggle:hover {
            transform: rotate(180deg);
        }
        
        /* Tooltip pour les icônes */
        .tooltip {
            position: relative;
        }
        
        .tooltip:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            left: 100%;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 11px;
            white-space: nowrap;
            margin-left: 12px;
            z-index: 50;
        }