
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        /* ============ ANTI-FOUC ICON SIZING ============ */
        svg {
            display: inline-block;
            vertical-align: middle;
            flex-shrink: 0;
            max-width: 100%;
        }
        svg.sidebar-nav-icon, .sidebar-nav-icon {
            width: 20px !important;
            height: 20px !important;
            min-width: 20px !important;
            min-height: 20px !important;
            max-width: 20px !important;
            max-height: 20px !important;
            flex-shrink: 0 !important;
        }
        svg.w-3\.5, .w-3\.5 { width: 14px !important; height: 14px !important; min-width: 14px !important; }
        svg.w-4, .w-4 { width: 16px !important; height: 16px !important; min-width: 16px !important; }
        svg.w-5, .w-5 { width: 20px !important; height: 20px !important; min-width: 20px !important; }
        svg.w-6, .w-6 { width: 24px !important; height: 24px !important; min-width: 24px !important; }
        svg.w-8, .w-8 { width: 32px !important; height: 32px !important; min-width: 32px !important; }
        [data-lucide], .lucide {
            display: inline-block !important;
            vertical-align: middle !important;
            width: 16px !important;
            height: 16px !important;
            min-width: 16px !important;
            min-height: 16px !important;
            flex-shrink: 0 !important;
        }


        html,
        body {
            height: 100%;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
            background: #f8fafc;
        }

        /* ============ GRADIENTS & COLORS ============ */
        .gradient-primary {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        }

        .gradient-accent {
            background: linear-gradient(135deg, #00938a 0%, #2BA7A0 100%);
        }

        .gradient-success {
            background: linear-gradient(135deg, #2BA7A0 0%, #059669 100%);
        }

        /* ============ ANIMATIONS ============ */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes pulse-glow {

            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
            }

            50% {
                box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
            }
        }

        .animate-slideIn {
            animation: slideIn 0.4s ease-out;
        }

        .animate-fadeIn {
            animation: fadeIn 0.3s ease-out;
        }

        .pulse-glow {
            animation: pulse-glow 2s infinite;
        }

        /* ============ SHADOWS & EFFECTS ============ */
        .shadow-premium {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        .shadow-soft {
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
        }

        .card-hover {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card-hover:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
        }

        /* ============ SIDEBAR ============ */
        .sidebar-active {
            width: 300px;
        }

        .sidebar-collapsed {
            width: 80px;
        }

        .sidebar-nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            margin: 4px 0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            color: #475569;
            font-weight: 500;
        }

        .sidebar-nav-item:hover {
            background: #f1f5f9;
            color: #1e293b;
        }

        .sidebar-nav-item.active {
            background: linear-gradient(135deg, #00938a 0%, #2BA7A0 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .sidebar-nav-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        .sidebar-nav-label {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* ============ AUTH FORM ============ */
        .auth-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
        }

        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1.5px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.2s;
        }

        .form-input:focus {
            outline: none;
            border-color: #00938a;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
            background: #f8fafc;
        }

        .btn-primary { 
            padding: 12px 16px;
            background: linear-gradient(135deg, #00938a 0%, #2BA7A0 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        /* ============ HEADER ============ */
        .header-bar {
            background: white;
            border-bottom: 1px solid #e2e8f0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #00938a 0%, #2BA7A0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 16px;
        }

        /* ============ DASHBOARD GRID ============ */
        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 24px;
            border-left: 4px solid #00938a;
            transition: all 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        }

        .stat-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: #eff6ff;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #00938a;
        }

        /* ============ MODAL ============ */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 50;
        }

        .modal-overlay.active {
            display: flex !important;
        }

        .modal-content {
            background: white;
            border-radius: 16px;
            padding: 32px;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

        /* ============ DROPDOWN MENU ============ */
        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            min-width: 200px;
            z-index: 1000;
            margin-top: 8px;
        }

        .dropdown-menu.active {
            display: block;
        }

        .dropdown-menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            color: #475569;
            text-decoration: none;
            transition: all 0.2s;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
        }

        .dropdown-menu-item:first-child {
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        .dropdown-menu-item:last-child {
            border-bottom-left-radius: 8px;
            border-bottom-right-radius: 8px;
        }

        .dropdown-menu-item:hover {
            background: #f8fafc;
            color: #1e293b;
        }

        .dropdown-menu-item.logout {
            color: #dc2626;
        }

        .dropdown-menu-item.logout:hover {
            background: #fee2e2;
            color: #991b1b;
        }

        .dropdown-menu-divider {
            height: 1px;
            background: #e2e8f0;
            margin: 4px 0;
        }

        /* ============ EDIT PROFILE MODAL ============ */
        .modal-edit {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 100;
            align-items: center;
            justify-content: center;
        }

        .modal-edit.active {
            display: flex !important;
        }

        .modal-edit-content {
            background: white;
            border-radius: 16px;
            padding: 32px;
            max-width: 600px;
            width: 90%;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            max-height: 90vh;
            overflow-y: auto;
        }

        .profile-info-card {
            background: white;
            border-radius: 12px;
            padding: 24px;
            border: 1px solid #e2e8f0;
            transition: all 0.3s;
        }

        .profile-info-card:hover {
            border-color: #cbd5e1;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }

        .profile-avatar-container {
            position: relative;
            display: inline-block;
        }

        .profile-avatar-upload {
            position: absolute;
            bottom: 0;
            right: 0;
            background: #00938a;
            border: 3px solid white;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            display: none;
        }

        .profile-avatar-upload:hover {
            background: #2BA7A0;
            transform: scale(1.1);
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 8px;
        }

        .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: #00938a;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .profile-badge {
            display: inline-block;
            padding: 6px 12px;
            background: #eff6ff;
            border: 1px solid #bfdbfe;
            border-radius: 20px;
            font-size: 13px;
            color: #1e40af;
            font-weight: 500;
        }

        .btn-edit {
            background: #00938a;
            color: white;
            border: none;
            padding: 10px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-edit:hover {
            background: #2BA7A0;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .btn-save {
            background: #10b981;
            color: white;
            border: none;
            padding: 12px 16px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            width: 40%;
        }

        .btn-save:hover {
            background: #059669;
        }

        .btn-cancel {
            background: #f1f5f9;
            color: #475569;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-cancel:hover {
            background: #e2e8f0;
        }

        .btn-danger {
            background: #ef4444;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-danger:hover {
            background: #dc2626;
        }

        /* ============ TRANSITIONS ============ */
        .transition-smooth {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* ============ LOGIN RESPONSIVE ============ */
        @media (max-width: 1024px) {
            .grid.grid-cols-2 {
                grid-template-columns: 1fr;
            }

            .hidden.lg\:flex {
                display: none !important;
            }
        }

        /* ============ PRINT ============ */
        @media print {
            .no-print {
                display: none !important;
            }

            body {
                background: white;
            }
        }

        /* ============ AVATAR STYLING ============ */
        #profileAvatarDisplay {
            background-size: cover !important;
            background-position: center !important;
            background-repeat: no-repeat;
            flex-shrink: 0;
            position: relative;
        }

        #profileAvatarInitials {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-weight: bold;
            font-size: 3rem;
            transition: opacity 0.3s ease;
        }

        /* ============ TOAST NOTIFICATIONS ============ */
        #toastContainer {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            pointer-events: none;
        }

        .toast {
            background: white;
            border-radius: 8px;
            padding: 16px 24px;
            margin-bottom: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideIn 0.3s ease-out;
            pointer-events: auto;
            min-width: 300px;
        }

        .toast.success {
            border-left: 4px solid #10b981;
            background: #f0fdf4;
        }

        .toast.success .toast-icon {
            color: #10b981;
        }

        .toast.success .toast-message {
            color: #166534;
        }

        .toast.error {
            border-left: 4px solid #ef4444;
            background: #fef2f2;
        }

        .toast.error .toast-icon {
            color: #ef4444;
        }

        .toast.error .toast-message {
            color: #991b1b;
        }

        .toast.info {
            border-left: 4px solid #3b82f6;
            background: #eff6ff;
        }

        .toast.info .toast-icon {
            color: #3b82f6;
        }

        .toast.info .toast-message {
            color: #1e40af;
        }

        .toast-icon {
            font-size: 20px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
        }

        .toast-message {
            font-size: 14px;
            font-weight: 500;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }

            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }

        .toast.removing {
            animation: slideOut 0.3s ease-out forwards;
        }
         

        /* ============ MOBILE & TABLETTE RESPONSIVE ENHANCEMENTS ============ */
        @media (max-width: 1023px) {

            /* Réduction des padding */
            .stat-card {
                padding: 16px !important;
            }

            .stat-icon {
                width: 40px !important;
                height: 40px !important;
                font-size: 20px;
            }

            .modal-content {
                padding: 20px !important;
                width: 95% !important;
                max-width: 100% !important;
            }

            .form-input,
            .form-control {
                font-size: 16px !important;
                padding: 12px !important;
            }

            /* Header responsive */
            .header-bar {
                padding: 12px 16px !important;
                flex-wrap: wrap;
            }

            #pageTitle {
                font-size: 18px !important;
                font-weight: 700;
            }

            /* Dropdown menu responsive */
            .dropdown-menu {
                width: calc(100vw - 24px) !important;
                right: 12px !important;
                left: auto !important;
                max-width: 280px;
            }

            /* Profil info mobile */
            .w-32 {
                width: 80px !important;
                height: 80px !important;
            }

            .w-32~div {
                text-align: center;
            }

            /* Grid responsive */
            .grid-cols-3 {
                grid-template-columns: 1fr !important;
            }

            .grid-cols-2 {
                grid-template-columns: 1fr !important;
            }

            /* Tables scrollables */
            table {
                font-size: 12px;
            }

            table th,
            table td {
                padding: 8px 12px !important;
            }

            /* Boutons responsive */
            .btn-primary,
            .btn-cancel,
            .btn-save {
                min-height: 44px;
                font-size: 14px;
                padding: 10px 16px !important;
            }

            /* User avatar mobile */
            .user-avatar {
                width: 36px !important;
                height: 36px !important;
                font-size: 14px !important;
            }

            /* Textes responsive */
            .text-sm {
                font-size: 12px;
            }

            .text-xs {
                font-size: 10px;
            }

            /* Sidebar nav mobile */
            .sidebar-nav-item {
                padding: 10px 12px !important;
                font-size: 13px;
            }
        }
        @media (max-width: 768px) {
            .form-input, .form-control {
                font-size: 11px !important;
                padding: 10px !important;
            }
        }

        /* ============================================================
           DESIGN SYSTEM - BOUTONS CTA & PILLS ACCUEIL / AUTH
           ============================================================ */
        .pill {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            font-size: .8rem;
            font-weight: 600;
            letter-spacing: .02em;
            color: #0b7e66;
            background: rgba(46, 181, 142, .1);
            border: 1px solid rgba(46, 181, 142, .26);
            padding: .35rem .95rem;
            border-radius: 999px;
        }
        .pill .dot-live {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #2eb58e;
            box-shadow: 0 0 0 3px rgba(46, 181, 142, .25);
            display: inline-block;
        }
        .btn-home-cta {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.625rem;
            width: 100%;
            padding: 0.95rem 1.75rem;
            font-family: inherit;
            font-size: 0.95rem;
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: 0.01em;
            color: #ffffff !important;
            background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 9999px;
            cursor: pointer;
            text-decoration: none;
            isolation: isolate;
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                        box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                        filter 0.2s ease,
                        background-position 0.3s ease;
            background-size: 200% 200%;
            background-position: 0% 50%;
            box-shadow: 0 10px 24px -6px rgba(5, 150, 105, 0.45), 
                        0 4px 10px -2px rgba(5, 150, 105, 0.25),
                        inset 0 1px 1px rgba(255, 255, 255, 0.35);
            will-change: transform, box-shadow;
        }
        .btn-home-cta:hover {
            color: #ffffff !important;
            background-position: 100% 50%;
            transform: translateY(-2px);
            box-shadow: 0 16px 32px -8px rgba(5, 150, 105, 0.55), 
                        0 6px 14px -2px rgba(5, 150, 105, 0.35),
                        inset 0 1px 1px rgba(255, 255, 255, 0.45);
            filter: brightness(1.03);
        }
        .btn-home-cta:active {
            transform: translateY(0);
            box-shadow: 0 6px 16px -4px rgba(5, 150, 105, 0.4);
        }
        .btn-home-cta:focus-visible {
            outline: none;
            box-shadow: 0 0 0 4px rgba(46, 181, 142, 0.35), 0 10px 24px -6px rgba(5, 150, 105, 0.45);
        }
