	/* ==========================================
	   VARIABLES CSS - THÈMES COULEURS BASSA LEARNING
	   ========================================== */

	:root {
	    /* Thème Orange (défaut) */
	    --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
	    --primary-color: #ff6b35;
	    --secondary-color: #f7931e;
	    --accent-color: #ff9800;
	    --primary-rgb: 255, 107, 53;
	    --bg-dark: #1a1a2e;
	    --bg-light: #16213e;
	    --text-light: #ffffff;
	    --text-muted: #a0a0a0;
	    --success-color: #4caf50;
	    --warning-color: #ff9800;
	    --shadow-color: rgba(255, 107, 53, 0.3);
	    --border-radius: 15px;
	    --card-shadow: 0 4px 20px rgba(0,0,0,0.1);
	    --transition-speed: 0.3s;
	}

	/* THÈME ORANGE */
	[data-theme="orange"] {
	    --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
	    --primary-color: #ff6b35;
	    --secondary-color: #f7931e;
	    --accent-color: #ff9800;
	    --primary-rgb: 255, 107, 53;
	    --shadow-color: rgba(255, 107, 53, 0.3);
	}

	/* THÈME ROSE */
	[data-theme="pink"] {
	    --primary-gradient: linear-gradient(135deg, #e91e63 0%, #f48fb1 100%);
	    --primary-color: #e91e63;
	    --secondary-color: #f48fb1;
	    --accent-color: #ff4081;
	    --primary-rgb: 233, 30, 99;
	    --shadow-color: rgba(233, 30, 99, 0.3);
	}

	/* THÈME VERT */
	[data-theme="green"] {
	    --primary-gradient: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
	    --primary-color: #56ab2f;
	    --secondary-color: #a8e063;
	    --accent-color: #4caf50;
	    --primary-rgb: 86, 171, 47;
	    --shadow-color: rgba(86, 171, 47, 0.3);
	}

	/* THÈME BLEU */
	[data-theme="blue"] {
	    --primary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	    --primary-color: #4facfe;
	    --secondary-color: #00f2fe;
	    --accent-color: #3b82f6;
	    --primary-rgb: 79, 172, 254;
	    --shadow-color: rgba(79, 172, 254, 0.3);
	}

	/* THÈME VIOLET */
	[data-theme="purple"] {
	    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	    --primary-color: #667eea;
	    --secondary-color: #764ba2;
	    --accent-color: #8b5cf6;
	    --primary-rgb: 102, 126, 234;
	    --shadow-color: rgba(102, 126, 234, 0.3);
	}

	/* THÈME ROUGE */
	[data-theme="red"] {
	    --primary-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
	    --primary-color: #eb3349;
	    --secondary-color: #f45c43;
	    --accent-color: #e53935;
	    --primary-rgb: 235, 51, 73;
	    --shadow-color: rgba(235, 51, 73, 0.3);
	}

	/* THÈME JAUNE */
	[data-theme="jaune"] {
	    --primary-gradient: linear-gradient(135deg, #fbbf24 0%, #fde047 100%);
	    --primary-color: #fbbf24;
	    --secondary-color: #fde047;
	    --accent-color: #eab308;
	    --primary-rgb: 251, 191, 36;
	    --shadow-color: rgba(251, 191, 36, 0.3);
	}

	/* THÈME NOIR */
	[data-theme="black"] {
	    --primary-gradient: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
	    --primary-color: #404040;
	    --secondary-color: #2d2d2d;
	    --accent-color: #555555;
	    --primary-rgb: 64, 64, 64;
	    --bg-dark: #0a0a0a;
	    --bg-light: #1a1a1a;
	    --text-light: #e0e0e0;
	    --text-muted: #999999;
	    --shadow-color: rgba(0, 0, 0, 0.5);
	}

	/* THÈME BLANC */
	[data-theme="white"] {
	    --primary-gradient: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
	    --primary-color: #6b7280;
	    --secondary-color: #9ca3af;
	    --accent-color: #4b5563;
	    --primary-rgb: 107, 114, 128;
	    --bg-dark: #ffffff;
	    --bg-light: #f9fafb;
	    --text-light: #111827;
	    --text-muted: #6b7280;
	    --shadow-color: rgba(0, 0, 0, 0.1);
	}

	/* THÈME VERT CITRON */
	[data-theme="lime"] {
	    --primary-gradient: linear-gradient(135deg, #cddc39 0%, #c0ca33 100%);
	    --primary-color: #cddc39;
	    --secondary-color: #c0ca33;
	    --accent-color: #c6ff00;
	    --primary-rgb: 205, 220, 57;
	    --shadow-color: rgba(205, 220, 57, 0.3);
	}

	/* THÈME BLEU CIEL */
	[data-theme="sky-blue"] {
	    --primary-gradient: linear-gradient(135deg, #03a9f4 0%, #00bcd4 100%);
	    --primary-color: #03a9f4;
	    --secondary-color: #00bcd4;
	    --accent-color: #0288d1;
	    --primary-rgb: 3, 169, 244;
	    --shadow-color: rgba(3, 169, 244, 0.3);
	}

	/* THÈME PBM PAULO */
	[data-theme="paulo"] {
	    --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #764ba3 50%, #2a5298 100%);
	    --primary-color: #ff6b35;
	    --secondary-color: #764ba3;
	    --accent-color: #2a5298;
	    --primary-rgb: 118, 75, 163;
	    --shadow-color: rgba(118, 75, 163, 0.3);
	}

	/* ==========================================
	   STYLES D'INTERFACE
	   ========================================== */

	[data-style="minimal"] {
	    --border-radius: 8px;
	    --card-shadow: 0 2px 8px rgba(0,0,0,0.05);
	    --transition-speed: 0.2s;
	}

	[data-style="classic"] {
	    --border-radius: 5px;
	    --card-shadow: 0 2px 5px rgba(0,0,0,0.15);
	    --transition-speed: 0.2s;
	}

	[data-style="dark"] {
	    --bg-dark: #0a0a0a;
	    --bg-light: #1a1a1a;
	    --text-light: #e0e0e0;
	}

	/* ==========================================
	   BASE STYLES
	   ========================================== */

	* {
	    margin: 0;
	    padding: 0;
	    box-sizing: border-box;
	}

	body {
	    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	    background: var(--bg-dark);
	    color: var(--text-light);
	    min-height: 100vh;
	    display: flex;
	    flex-direction: column;
	    transition: background var(--transition-speed) ease;
	}

	/* =====================================================
	   BOUTON TOGGLE MENU - STYLE FLÈCHE CORRIGÉ
	   ===================================================== */

	.menu-toggle {
	    position: fixed;
	    top: 120px;
	    left: 20px;
	    z-index: 1100;
	    background: var(--primary-color);
	    border: none;
	    width: 45px;
	    height: 45px;
	    border-radius: 50%;
	    color: white;
	    cursor: pointer;
	    box-shadow: 0 4px 15px var(--shadow-color);
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    transition: all 0.3s ease;
	    font-family: Arial, sans-serif; /* Assurer l'affichage des flèches */
	}

	/* Icône par défaut : flèche droite → */
	.menu-toggle::before {
	    content: '→';
	    font-size: 24px; /* Légèrement réduit */
	    font-weight: bold;
	    transition: all 0.3s ease;
	}

	/* Quand le menu est ouvert : flèche gauche ← */
	.menu-toggle.active::before {
	    content: '←';
	}

	.menu-toggle:hover {
	    transform: scale(1.1);
	    background: var(--accent-color);
	    box-shadow: 0 6px 20px var(--shadow-color);
	}

	.menu-toggle:active {
	    transform: scale(0.95);
	}

	/* Masquer l'icône FontAwesome à l'intérieur */
	.menu-toggle i {
	    display: none;
	}


	/* ==========================================
	   HEADER - LOGO CORRIGÉ
	   ========================================== */

	.header {
	    background: var(--bg-light);
	    padding: 15px 30px;
	    display: flex;
	    align-items: center;
	    justify-content: space-between;
	    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
	    position: sticky;
	    top: 0;
	    z-index: 100;
	}

	.logo-section {
	    display: flex;
	    align-items: center;
	    gap: 15px;
	}

	.logo-circle {
	    width: 60px; /* Réduit de 70px à 60px */
	    height: 60px; /* Réduit de 70px à 60px */
	    background: var(--primary-color);
	    border-radius: 50%;
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    position: relative;
	    overflow: hidden;
	    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	    flex-shrink: 0;
	    border: 2px solid rgba(255,255,255,0.1);
	}

	.logo-image {
	    width: 100%;
	    height: 100%;
	    object-fit: cover;
	    border-radius: 50%;
	    display: block; /* Assurer l'affichage */
	}

	/* Fallback si l'image ne charge pas */
	.logo-circle::after {
	    content: '🎓';
	    position: absolute;
	    font-size: 24px;
	    display: none; /* Caché par défaut */
	}

	.logo-circle:has(.logo-image[src*="undefined"])::after,
	.logo-circle:has(.logo-image[src=""])::after {
	    display: flex;
	    align-items: center;
	    justify-content: center;
	}

	.header-title h1 {
	    font-size: 1.5em; /* Légèrement réduit */
	    background: var(--primary-gradient);
	    -webkit-background-clip: text;
	    -webkit-text-fill-color: transparent;
	    background-clip: text;
	    margin: 0;
	}

	.header-title .subtitle {
	    font-size: 0.8em; /* Légèrement réduit */
	    color: var(--text-muted);
	}


	.header-actions {
	    display: flex;
	    gap: 15px;
	    align-items: center;
	}

	.lang-indicator {
	    display: flex;
	    align-items: center;
	    gap: 8px;
	    padding: 8px 15px;
	    background: rgba(var(--primary-rgb), 0.2);
	    border-radius: 20px;
	    font-size: 0.9em;
	}

	.stats-badge {
	    background: var(--success-color);
	    color: white;
	    padding: 6px 14px;
	    border-radius: 15px;
	    font-size: 0.85em;
	    font-weight: 600;
	}

	/* ==========================================
	   MAIN CONTAINER
	   ========================================== */

	.main-container {
	    display: flex;
	    flex: 1;
	    overflow: hidden;
	    position: relative;
	}

	/* ==========================================
	   SIDEBAR
	   ========================================== */

	.sidebar {
	    width: 300px;
	    background: var(--bg-light);
	    border-right: 1px solid rgba(255,255,255,0.1);
	    display: flex;
	    flex-direction: column;
	    overflow-y: auto;
	    transition: transform var(--transition-speed) ease;
	    z-index: 999;
	}

	.sidebar-close {
	    display: none;
	    position: absolute;
	    top: 15px;
	    right: 15px;
	    width: 35px;
	    height: 35px;
	    background: rgba(255,255,255,0.1);
	    border-radius: 50%;
	    align-items: center;
	    justify-content: center;
	    cursor: pointer;
	    color: var(--text-light);
	    transition: all var(--transition-speed) ease;
	}

	.sidebar-close:hover {
	    background: rgba(255,255,255,0.2);
	    transform: rotate(90deg);
	}

	.sidebar-overlay {
	    display: none;
	    position: fixed;
	    top: 0;
	    left: 0;
	    right: 0;
	    bottom: 0;
	    background: rgba(0,0,0,0.5);
	    z-index: 998;
	    backdrop-filter: blur(2px);
	}

	@media (max-width: 768px) {
	    .sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		transform: translateX(-100%);
		box-shadow: 2px 0 20px rgba(0,0,0,0.3);
	    }

	    .sidebar.open {
		transform: translateX(0);
	    }

	    .sidebar-overlay.active {
		display: block;
	    }

	    .sidebar-close {
		display: flex;
	    }

	    .header {
		padding-left: 70px;
	    }
	}

	.sidebar-section {
	    padding: 20px;
	    border-bottom: 1px solid rgba(255,255,255,0.1);
	}

	.sidebar-title {
	    font-size: 0.9em;
	    color: var(--text-muted);
	    text-transform: uppercase;
	    letter-spacing: 1px;
	    margin-bottom: 15px;
	    font-weight: 600;
	    display: flex;
	    align-items: center;
	    gap: 8px;
	}

	.sidebar-divider {
	    height: 1px;
	    background: rgba(255,255,255,0.1);
	    margin: 10px 20px;
	}

	/* Menu Items */
	.menu-item {
	    margin-bottom: 8px;
	}

	.menu-item-home {
	    margin-bottom: 0;
	}

	.menu-link {
	    display: flex;
	    align-items: center;
	    justify-content: space-between;
	    padding: 12px 15px;
	    background: rgba(var(--primary-rgb), 0.1);
	    border-radius: 10px;
	    cursor: pointer;
	    transition: all var(--transition-speed) ease;
	    color: var(--text-light);
	    text-decoration: none;
	}

	.menu-link:hover {
	    background: rgba(var(--primary-rgb), 0.2);
	    transform: translateX(5px);
	}

	.menu-link span {
	    display: flex;
	    align-items: center;
	    gap: 12px;
	    font-weight: 500;
	}

	.menu-link i.chevron {
	    font-size: 0.8em;
	    transition: transform var(--transition-speed) ease;
	}

	.menu-item.active .chevron {
	    transform: rotate(90deg);
	}

	/* Submenu */
	.submenu {
	    max-height: 0;
	    overflow: hidden;
	    transition: max-height 0.4s ease;
	    margin-top: 8px;
	    margin-left: 15px;
	}

	.submenu.active {
	    max-height: 500px;
	}

	.submenu-link {
	    display: flex;
	    align-items: center;
	    gap: 10px;
	    padding: 10px 15px;
	    color: var(--text-light);
	    text-decoration: none;
	    border-left: 2px solid transparent;
	    transition: all var(--transition-speed) ease;
	    font-size: 0.9em;
	}

	.submenu-link:hover {
	    background: rgba(var(--primary-rgb), 0.15);
	    border-left-color: var(--primary-color);
	    padding-left: 20px;
	}

	/* Settings */
	.settings-item {
	    display: flex;
	    align-items: center;
	    justify-content: space-between;
	    padding: 10px;
	    margin-bottom: 8px;
	    background: rgba(255,255,255,0.05);
	    border-radius: 8px;
	}

	.settings-item label {
	    font-size: 0.9em;
	}

	.style-selector,
	.theme-selector {
	    background: rgba(255,255,255,0.1);
	    color: var(--text-light);
	    border: 1px solid rgba(255,255,255,0.2);
	    padding: 6px 10px;
	    border-radius: 8px;
	    font-size: 0.85em;
	    cursor: pointer;
	    transition: all var(--transition-speed) ease;
	}

	.style-selector:hover,
	.theme-selector:hover {
	    background: rgba(255,255,255,0.15);
	}

	.toggle-switch {
	    position: relative;
	    width: 45px;
	    height: 24px;
	    background: rgba(255,255,255,0.2);
	    border-radius: 12px;
	    cursor: pointer;
	    transition: background var(--transition-speed) ease;
	}

	.toggle-switch.active {
	    background: var(--primary-color);
	}

	.toggle-switch::after {
	    content: '';
	    position: absolute;
	    top: 2px;
	    left: 2px;
	    width: 20px;
	    height: 20px;
	    background: white;
	    border-radius: 50%;
	    transition: transform var(--transition-speed) ease;
	}

	.toggle-switch.active::after {
	    transform: translateX(21px);
	}

	/* Contact Link */
	.sidebar-contact-link {
	    display: block;
	    text-decoration: none;
	    padding: 15px;
	    background: rgba(var(--primary-rgb), 0.1);
	    border-radius: 12px;
	    transition: all 0.3s ease;
	    border: 1px solid transparent;
	}

	.sidebar-contact-link:hover {
	    background: var(--primary-gradient);
	    transform: translateY(-2px);
	    box-shadow: 0 4px 15px var(--shadow-color);
	}

	.sidebar-contact-link:hover .sidebar-title,
	.sidebar-contact-link:hover p {
	    color: white !important;
	}
	
	/* ==========================================
	   RÉSEAUX SOCIAUX - DISPOSITION CORRIGÉE
	   ========================================== */

	.social-section {
	    margin-bottom: 20px;
	    padding: 0 20px;
	}

	.social-section .sidebar-title {
	    margin-bottom: 10px;
	    font-size: 0.85em;
	}

	.social-links-grid {
	    display: grid;
	    grid-template-columns: repeat(3, 1fr);
	    gap: 12px; /* Espacement réduit */
	    justify-items: center;
	    margin-top: 15px;
	}

	.social-link {
	    width: 45px; /* Réduit de 50px */
	    height: 45px; /* Réduit de 50px */
	    display: flex;
	    align-items: center;
	    justify-content: center;
	    border-radius: 50%;
	    color: white;
	    font-size: 1.1em; /* Réduit de 1.3em */
	    text-decoration: none;
	    transition: all 0.3s ease;
	    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	}

	.social-link:hover {
	    transform: translateY(-3px) scale(1.05); /* Animation plus subtile */
	    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	}

	/* Couleurs des réseaux sociaux */
	.social-link.linkedin { background: linear-gradient(135deg, #0077b5, #00a0dc); }
	.social-link.github { background: linear-gradient(135deg, #333, #555); }
	.social-link.facebook { background: linear-gradient(135deg, #3b5998, #8b9dc3); }
	.social-link.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
	.social-link.gmail { background: linear-gradient(135deg, #ea4335, #fbbc04); }
	.social-link.telegram { background: linear-gradient(135deg, #0088cc, #00a0e0); }

	/* ==========================================
	   RESPONSIVE - CORRECTIONS
	   ========================================== */

	@media (max-width: 768px) {
	    .menu-toggle {
		top: 100px; /* Ajusté pour mobile */
		left: 15px;
		width: 40px;
		height: 40px;
	    }
	    
	    .menu-toggle::before {
		font-size: 20px;
	    }
	    
	    .logo-circle {
		width: 50px; /* Plus petit sur mobile */
		height: 50px;
	    }
	    
	    .header-title h1 {
		font-size: 1.2em;
	    }
	    
	    .header-title .subtitle {
		font-size: 0.75em;
	    }
	    
	    .social-links-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	    }
	    
	    .social-link {
		width: 40px;
		height: 40px;
		font-size: 1em;
	    }
	}

	@media (max-width: 480px) {
	    .header {
		padding: 12px 20px;
	    }
	    
	    .logo-circle {
		width: 45px;
		height: 45px;
	    }
	    
	    .header-title h1 {
		font-size: 1.1em;
	    }
	    
	    .social-links-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	    }
	    
	    .social-link {
		width: 38px;
		height: 38px;
		font-size: 0.9em;

	    }
	}


	/* ==========================================
	   CHAT AREA / CONTENT
	   ========================================== */

	.chat-area {
	    flex: 1;
	    display: flex;
	    flex-direction: column;
	    background: var(--bg-dark);
	    overflow-y: auto;
	}

	.chat-header {
	    background: var(--bg-light);
	    padding: 20px 30px;
	    border-bottom: 1px solid rgba(255,255,255,0.1);
	}

	.chat-header h2 {
	    display: flex;
	    align-items: center;
	    gap: 10px;
	    font-size: 1.4em;
	    margin-bottom: 8px;
	}

	.chat-header p {
	    color: var(--text-muted);
	    font-size: 0.95em;
	}

	.messages-container {
	    flex: 1;
	    overflow-y: auto;
	    padding: 30px;
	}

	/* ==========================================
	   FOOTER
	   ========================================== */

	.footer {
	    background: var(--bg-light);
	    padding: 20px 30px;
	    text-align: center;
	    border-top: 1px solid rgba(255,255,255,0.1);
	    margin-top: auto;
	}

	.footer-content p {
	    margin: 5px 0;
	    color: var(--text-muted);
	    font-size: 0.9em;
	}

	.footer-content p:first-child {
	    color: var(--text-light);
	    font-weight: 600;
	}

	/* ==========================================
	   SCROLLBAR
	   ========================================== */

	::-webkit-scrollbar {
	    width: 8px;
	}

	::-webkit-scrollbar-track {
	    background: rgba(255,255,255,0.05);
	}

	::-webkit-scrollbar-thumb {
	    background: rgba(var(--primary-rgb), 0.5);
	    border-radius: 4px;
	}

	::-webkit-scrollbar-thumb:hover {
	    background: var(--primary-color);
	}

	/* ==========================================
	   RESPONSIVE
	   ========================================== */

	@media (max-width: 768px) {
	    .header-title h1 {
		font-size: 1.2em;
	    }

	    .header-title .subtitle {
		display: none;
	    }

	    .lang-indicator {
		font-size: 0.75em;
		padding: 6px 10px;
	    }

	    .stats-badge {
		display: none;
	    }

	    .chat-header {
		padding: 15px 20px;
	    }

	    .messages-container {
		padding: 20px 15px;
	    }

	    .footer {
		padding: 15px 20px;
	    }
	}

	/* ==========================================
	   ANIMATIONS
	   ========================================== */

	@keyframes fadeIn {
	    from {
		opacity: 0;
		transform: translateY(20px);
	    }
	    to {
		opacity: 1;
		transform: translateY(0);
	    }
	}

	@keyframes slideIn {
	    from {
		opacity: 0;
		transform: translateX(-20px);
	    }
	    to {
		opacity: 1;
		transform: translateX(0);
	    }
	}

	/* ==========================================
	   UTILITY CLASSES
	   ========================================== */

	.hidden {
	    display: none !important;
	}

	.text-center {
	    text-align: center;
	}

	.mt-1 { margin-top: 0.5rem; }
	.mt-2 { margin-top: 1rem; }
	.mt-3 { margin-top: 1.5rem; }
	.mb-1 { margin-bottom: 0.5rem; }
	.mb-2 { margin-bottom: 1rem; }
	.mb-3 { margin-bottom: 1.5rem; }

	/* ==========================================
	   CONTENT CARDS (Dashboard, etc.)
	   ========================================== */

	.content-card {
	    background: var(--bg-light);
	    border-radius: var(--border-radius);
	    padding: 25px;
	    margin-bottom: 20px;
	    box-shadow: var(--card-shadow);
	    transition: all var(--transition-speed) ease;
	    opacity: 0;
	    transform: translateY(20px);
	}

	.content-card:hover {
	    transform: translateY(-5px);
	    box-shadow: 0 8px 30px var(--shadow-color);
	}

	.card-title {
	    font-size: 1.3em;
	    color: var(--primary-color);
	    margin-bottom: 15px;
	    display: flex;
	    align-items: center;
	    gap: 10px;
	}

	.card-content {
	    color: var(--text-light);
	    line-height: 1.6;
	}
