/* chat-core.css — styles critiques du chat (bouton flottant, panneau masqué, overlays) chargés immédiatement */
/* chat.css — widget de chat Reload Prime (partagé index.html / pack.html) */
        :root {
            --bg-color: #0b0e14;
            --primary-color: #00f2ff;
            --primary-hover: #00d4e0;
            --primary-glow: rgba(0, 242, 255, 0.4);
            --accent-color: #06b6d4; 
            --admin-color: #f59e0b;
            --chat-bg: rgba(17, 24, 39, 0.95);
            --header-bg: #1f2937;
            --text-color: #f3f4f6;
            --text-muted: #9ca3af;
            --border-color: rgba(0, 242, 255, 0.2);
            --shadow-fab: 0 0 20px rgba(0, 242, 255, 0.5);
            --shadow-panel: 0 20px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 255, 0.15);
        }

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

        

        /* FAB Button */

        /* Panneau de discussion */
        .chat-panel {
            position: fixed;
            width: 380px;
            max-width: calc(100vw - 32px);
            height: 450px;
            max-height: calc(100dvh - 40px);
            background-color: var(--chat-bg);
            border-radius: 16px;
            box-shadow: var(--shadow-panel);
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: scale(0.95);
            transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, height 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            backdrop-filter: blur(12px);
        }

        .chat-panel.active {
            opacity: 1;
            visibility: visible;
            transform: scale(1);
        }

        /* Réduction compacte */
        .chat-panel.minimized {
            height: 64px !important;
            min-height: 64px !important;
        }

        .chat-panel.minimized .chat-panel.minimized .chat-body,
        .chat-panel.minimized .login-container,
        .chat-panel.minimized .image-preview-container,
        .chat-panel.minimized .chat-footer {
            display: none !important;
        }


        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(6px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 3000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        /* Lightbox Modal */
        .lightbox-overlay {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 4000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.25s ease;
        }

        .lightbox-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }
