    /* --- CONFIGURATION & VARIABLES --- */
        :root { --nebula-bg: rgba(11, 14, 20, 0.85); --nebula-glass: rgba(255, 255, 255, 0.05); --nebula-cyan: #00F5FF; --nebula-purple: #7B2CBF; --text-main: #E0E1DD; --blur-val: 12px; --glow-cyan: 0 0 10px rgba(0, 245, 255, 0.8); }
        body { margin: 0; font-family: 'Inter', sans-serif; background-color: #0B0E14; }

        /* --- STRUCTURE HEADER (GRID) --- */
        .nebula-header { display: grid; grid-template-columns: 1.2fr 2fr 1.2fr; align-items: center; height: 70px; padding: 0 20px; background: var(--nebula-bg); backdrop-filter: blur(var(--blur-val)); -webkit-backdrop-filter: blur(var(--blur-val)); border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-main); position: sticky; top: 0; z-index: 1000; }

        /* --- HEADER GAUCHE (LOGO & INFOS) --- */
        .header-left { display: flex; align-items: center; gap: 12px; }
        .logo-rond { width: 45px; height: 45px; background: linear-gradient(135deg, var(--nebula-cyan), var(--nebula-purple)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; transition: 0.3s ease; cursor: pointer; }
        .logo-rond:hover { box-shadow: var(--glow-cyan); transform: scale(1.05); }
        .project-info { display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 0 10px; }
        .project-title { font-size: 1rem; font-weight: 700; color: var(--nebula-cyan); white-space: nowrap; text-transform: uppercase; letter-spacing: 1px; }
        .user-role { font-size: 0.7rem; color: var(--text-main); opacity: 0.7; }

        /* --- BOUTONS (INTERACTIFS) --- */
        .btn-round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: var(--nebula-glass); color: var(--text-main); cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
        .btn-round:hover { border-color: var(--nebula-cyan); box-shadow: var(--glow-cyan); color: var(--nebula-cyan); }
        .btn-upload { padding: 8px 18px; border-radius: 8px; background: var(--nebula-purple); border: 1px solid transparent; color: white; font-weight: 500; cursor: pointer; transition: 0.3s; text-transform: uppercase; font-size: 0.8rem; }
        .btn-upload:hover { background: #9d4edd; border-color: var(--nebula-cyan); box-shadow: var(--glow-cyan); transform: translateY(-1px); }

        /* --- HEADER CENTRAL (RECHERCHE & ANIMATION) --- */
        .header-center { display: flex; justify-content: center; flex: 1; min-width: 0; }
        .search-bar { width: 350px; padding: 10px 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 25px; color: white; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; }
        .search-bar:focus { outline: none; border-color: var(--nebula-cyan); box-shadow: 0 0 15px rgba(0, 245, 255, 0.2); background: rgba(0, 0, 0, 0.5); animation: nebulaStretch 0.6s forwards; }
        @keyframes nebulaStretch { 0% { width: 350px; } 70% { width: 550px; } 100% { width: 500px; } }

        /* --- HEADER DROIT (AUTH & TOOLTIPS) --- */
        .header-right { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
        .btn-auth { width: 40px; height: 40px; border-radius: 50%; background: var(--nebula-glass); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: 0.3s; }
        .btn-auth:hover { border-color: var(--nebula-cyan); color: var(--nebula-cyan); box-shadow: var(--glow-cyan); }
        .btn-container { position: relative; display: inline-block; }
        .tooltip { position: absolute; top: 55px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--nebula-bg); backdrop-filter: blur(20px); border: 1px solid rgba(0, 245, 255, 0.3); border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); visibility: hidden; opacity: 0; transition: all 0.3s ease; z-index: 2000; }
        .btn-container:hover .tooltip { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
        
        /* --- TOOLTIPS : INDICATEURS & GRILLE --- */
        .tooltip-triangle { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid rgba(0, 245, 255, 0.3); }
        .tooltip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
        .grid-item-round { width: 35px; height: 35px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); color: white; cursor: pointer; transition: 0.2s; }
        .grid-item-round:hover { background: var(--nebula-purple); border-color: var(--nebula-cyan); box-shadow: 0 0 10px var(--nebula-cyan); }
        .grid-item-rect { padding: 5px 10px; font-size: 0.7rem; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.05); color: white; cursor: pointer; text-transform: uppercase; transition: 0.2s; }
        .grid-item-rect:hover { background: var(--nebula-purple); border-color: var(--nebula-cyan); }

        /* --- BOUTON AUTH : ÉTATS DYNAMIQUES (LOGGED IN/OUT) --- */
        .btn-auth.is-logged-out { background: rgba(255, 0, 0, 0.15); border: 2px solid #ff0000; color: #ff0000; animation: nebula-red-pulse 2s infinite ease-in-out; }
        .btn-auth.is-logged-in { background: var(--nebula-glass); border: 2px solid var(--nebula-cyan); color: var(--nebula-cyan); overflow: hidden; padding: 0; }
        .logout-icon { font-size: 1.4rem; font-weight: bold; }
        .user-avatar { width: 100%; height: 100%; object-fit: cover; }
        .user-initial { font-weight: 800; font-size: 1.2rem; color: var(--nebula-cyan); }
        .btn-auth:hover { transform: scale(1.1); transition: 0.3s; }

        /* --- RECHERCHE & EFFETS NÉON --- */
        .search-bar { width: 350px; padding: 10px 20px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; color: white; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        .search-bar:focus { outline: none; border-color: var(--nebula-cyan); animation: searchStretch 0.6s forwards; }
        .logo-rond:hover, .btn-upload:hover, .btn-round:hover { box-shadow: 0 0 15px var(--nebula-cyan); border-color: var(--nebula-cyan); }

        /* --- MODAL : STRUCTURE & OVERLAY --- */
        .nebula-modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 9999; }
        .nebula-modal-card { background: #0b0e14; border: 1px solid var(--nebula-cyan); border-radius: 20px; padding: 40px; width: 380px; box-shadow: 0 0 40px rgba(0, 245, 255, 0.15); position: relative; animation: modalFadeIn 0.3s ease-out; }
        .nebula-modal-title { color: var(--nebula-cyan); font-size: 1.5rem; letter-spacing: 2px; margin-bottom: 5px; text-align: center; }
        .nebula-modal-subtitle { font-size: 0.8rem; opacity: 0.6; margin-bottom: 25px; text-align: center; }
        .nebula-modal-logo { width: 50px; height: 50px; background: linear-gradient(135deg, var(--nebula-cyan), var(--nebula-purple)); border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem; }

        /* --- MODAL : FORMULAIRE & INPUTS --- */
        .nebula-input, .nebula-modal-form input { width: 100%; padding: 12px 15px; margin-bottom: 15px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: white; outline: none; box-sizing: border-box; }
        .nebula-input:focus, .nebula-modal-form input:focus { border-color: var(--nebula-cyan); background: rgba(255, 255, 255, 0.08); }
        .nebula-btn-submit { width: 100%; padding: 12px; background: var(--nebula-purple); border: none; border-radius: 8px; color: white; font-weight: bold; cursor: pointer; transition: 0.3s; }
        .nebula-btn-submit:hover { box-shadow: 0 0 15px var(--nebula-purple); transform: translateY(-2px); }
        .nebula-modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; opacity: 0.5; }
        .nebula-modal-close:hover { opacity: 1; }

        /* --- KEYFRAMES --- */
        @keyframes nebula-red-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); } 70% { box-shadow: 0 0 0 12px rgba(255, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); } }
        @keyframes searchStretch { 0% { width: 350px; } 70% { width: 520px; } 100% { width: 480px; } }
        @keyframes modalFadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

        /* --- FORMULAIRES AVANCÉS & WHATSAPP --- */
        .nebula-input-row { display: flex; gap: 10px; } .nebula-input-row .nebula-input { flex: 1; }
        .nebula-btn-wa { width: 100%; padding: 12px; background: #25D366; border: none; border-radius: 8px; color: white; font-weight: bold; cursor: pointer; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; }
        .nebula-btn-wa:hover { background: #128C7E; box-shadow: 0 0 15px rgba(37, 211, 102, 0.4); }

        /* --- ÉLÉMENTS VISUELS NEBULA (DIVIDER & OTP) --- */
        .divider { margin: 25px 0; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); line-height: 0.1em; }
        .divider span { background: #0b0e14; padding: 0 15px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
        .otp-input { text-align: center; font-size: 1.5rem; letter-spacing: 10px; font-family: 'Orbitron', sans-serif; color: var(--nebula-cyan) !important; }

        /* --- NAVIGATION & VUES --- */
        .auth-view { animation: fadeIn 0.3s ease; }
        .auth-switch-links { margin-top: 20px; display: flex; justify-content: space-between; font-size: 0.85rem; }
        .auth-switch-links a { color: var(--nebula-cyan); text-decoration: none; opacity: 0.8; }
        .auth-switch-links a:hover { opacity: 1; }

        /* --- PROFIL UTILISATEUR & AVATAR --- */
        .nebula-user-wrapper { position: relative; display: inline-block; }
        .nebula-user-btn { position: relative; display: flex; align-items: center; cursor: pointer; padding: 5px; border-radius: 50%; transition: 0.3s; }
        .avatar-container { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--glass-border); background: var(--glass); display: flex; align-items: center; justify-content: center; font-weight: bold; font-family: 'Orbitron', sans-serif; color: var(--nebula-cyan); overflow: hidden; position: relative; }
        .avatar-container img { width: 100%; height: 100%; object-fit: cover; }
        .nebula-user-btn.logged-in .avatar-container { border-color: #00ff88; box-shadow: 0 0 10px rgba(0, 255, 136, 0.2); }
        .nebula-user-btn.logged-in:hover .avatar-container { box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); }
        .user-name-box { font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--nebula-cyan); margin-right: 15px; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem; text-shadow: 0 0 10px rgba(0, 245, 255, 0.3); }

        /* --- MENU DÉROULANT (USER TOOLTIP) --- */
        .user-tooltip { position: absolute; top: 55px; right: 0; width: 220px; background: #0b0e14; border: 1px solid var(--nebula-cyan); border-radius: 12px; padding: 10px 0; box-shadow: 0 15px 40px rgba(0,0,0,0.8); backdrop-filter: blur(20px); visibility: hidden; opacity: 0; transform: translateY(15px); transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); z-index: 10000; }
        .nebula-user-wrapper:hover .user-tooltip { visibility: visible; opacity: 1; transform: translateY(0); }
        .tooltip-header { padding: 8px 20px; font-size: 0.65rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 8px; }
        .user-tooltip a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: #fff; text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
        .user-tooltip a i { color: var(--nebula-cyan); width: 20px; }
        .user-tooltip a:hover { background: rgba(0, 245, 255, 0.08); color: var(--nebula-cyan); }
        .logout-link:hover { color: #ff4d4d !important; background: rgba(255, 77, 77, 0.05) !important; }

        /* --- TOAST NOTIFICATION & ANIMATIONS --- */
        .nebula-toast { position: fixed; bottom: 30px; right: 30px; background: #00ff88; color: #0b0e14; padding: 15px 25px; border-radius: 8px; font-weight: bold; box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3); z-index: 9999; animation: slideIn 0.5s ease-out; }
        @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    
