@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');
        
        :root {
            /* Couleurs principales inspirées des sites institutionnels français */
            --primary-blue: #003366;      /* Bleu marine profond */
            --secondary-blue: #0056a3;    /* Bleu institutionnel */
            --accent-orange: #ff6b35;     /* Orange moderne */
            --light-orange: #ffa500;      /* Orange clair */
            --dark-gray: #2c3e50;         /* Gris foncé */
            --medium-gray: #5a6c7d;       /* Gris moyen */
            --light-gray: #ecf0f1;        /* Gris très clair */
            --white: #ffffff;
            --black: #1a1a1a;
            
            /* Couleurs de statut */
            --success-green: #27ae60;
            --warning-yellow: #f39c12;
            --error-red: #e74c3c;
            --info-blue: #3498db;
        }
        
        * {
            font-family: 'Roboto', 'Inter', sans-serif;
        }
        
        body {
            background-color: #f8f9fa;
        }
        
        .gradient-bg {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--accent-orange) 100%);
            box-shadow: 0 4px 6px rgba(0, 51, 102, 0.1);
        }
        
        .glass-effect {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 51, 102, 0.1);
            box-shadow: 0 2px 8px rgba(0, 51, 102, 0.05);
        }
        
        /* Graph building animation */
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        .graph-building {
            animation: pulse 2s infinite;
        }
        
        .graph-node {
            transition: all 0.3s ease;
        }
        
        .graph-node:hover {
            transform: scale(1.1);
        }
        
        /* Graph selector styles */
        .graph-selector {
            background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
            border: 2px solid var(--secondary-blue);
            border-radius: 8px;
            padding: 1rem;
            margin-top: 1rem;
        }
        
        .graph-item {
            padding: 0.75rem;
            margin: 0.5rem 0;
            background: white;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .graph-item:hover {
            border-color: var(--accent-orange);
            transform: translateX(5px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .graph-item.selected {
            background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
            border-color: var(--accent-orange);
        }
        
        /* Panel de debug styles */
        .debug-panel {
            background: #1e1e1e;
            color: #d4d4d4;
            font-family: 'Courier New', monospace;
            font-size: 0.85rem;
        }
        
        .debug-entry {
            border-left: 3px solid transparent;
            padding-left: 10px;
            margin: 5px 0;
            transition: all 0.3s ease;
        }
        
        .debug-entry:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        
        .debug-entry.agent-send {
            border-left-color: #4fc3f7;
        }
        
        .debug-entry.agent-receive {
            border-left-color: #81c784;
        }
        
        .debug-entry.error {
            border-left-color: #ff5252;
        }
        
        .debug-entry.warning {
            border-left-color: #ffa726;
        }
        
        .debug-entry.info {
            border-left-color: #ab47bc;
        }
        
        .debug-entry.validation {
            border-left-color: #ffeb3b;
        }
        
        .debug-entry.graph {
            border-left-color: #4caf50;
        }
        
        .debug-timestamp {
            color: #888;
            font-size: 0.75rem;
        }
        
        .debug-type {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 0.7rem;
            text-transform: uppercase;
            margin-right: 8px;
            font-weight: bold;
        }
        
        .debug-type.send { background: #4fc3f7; color: #1e1e1e; }
        .debug-type.receive { background: #81c784; color: #1e1e1e; }
        .debug-type.error { background: #ff5252; color: white; }
        .debug-type.warning { background: #ffa726; color: #1e1e1e; }
        .debug-type.info { background: #ab47bc; color: white; }
        .debug-type.validation { background: #ffeb3b; color: #1e1e1e; }
        .debug-type.graph { background: #4caf50; color: white; }
        
        .debug-content {
            margin-top: 5px;
            padding: 8px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
            white-space: pre-wrap;
            word-wrap: break-word;
        }
        
        .debug-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
            padding: 10px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 5px;
            margin: 10px 0;
        }
        
        .debug-stat {
            text-align: center;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
        }
        
        .debug-stat-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--accent-orange);
        }
        
        .debug-stat-label {
            font-size: 0.75rem;
            color: #888;
            text-transform: uppercase;
        }
        
        /* Validation score styles */
        .validation-score {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: bold;
        }
        
        .validation-score.excellent { background: #4caf50; color: white; }
        .validation-score.bon { background: #8bc34a; color: white; }
        .validation-score.satisfaisant { background: #ffc107; color: #333; }
        .validation-score.insuffisant { background: #ff9800; color: white; }
        .validation-score.a-reprendre { background: #f44336; color: white; }
        
        /* Progress bar background */
        .bg-gray-200 {
            background-color: var(--light-gray) !important;
        }
        
        .progress-bar {
            transition: width 0.3s ease;
            background: linear-gradient(90deg, var(--secondary-blue) 0%, var(--accent-orange) 100%);
        }
        
        .fade-in {
            animation: fadeIn 0.5s ease-in;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .loader {
            border-color: var(--light-gray);
            border-top-color: var(--accent-orange);
            animation: spinner 1.5s linear infinite;
        }
        
        @keyframes spinner {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .section-card {
            transition: all 0.3s ease;
            background: white;
        }
        
        .section-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 51, 102, 0.15);
            border-color: var(--accent-orange) !important;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
            transition: all 0.3s ease;
            border: none;
            box-shadow: 0 2px 4px rgba(0, 51, 102, 0.2);
        }
        
        .btn-primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
        }
        
        .btn-primary:disabled {
            background: linear-gradient(135deg, var(--medium-gray) 0%, var(--dark-gray) 100%);
            opacity: 0.6;
        }
        
        /* Formatted content styles */
        .formatted-content {
            font-family: 'Roboto', 'Times New Roman', serif;
            line-height: 1.8;
            color: var(--dark-gray);
        }
        
        .formatted-content h1 {
            font-size: 1.875rem;
            font-weight: 700;
            margin-top: 1.5rem;
            margin-bottom: 1rem;
            color: var(--primary-blue);
            border-bottom: 3px solid var(--accent-orange);
            padding-bottom: 0.5rem;
        }
        
        .formatted-content h2 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-top: 1.25rem;
            margin-bottom: 0.75rem;
            color: var(--secondary-blue);
            border-left: 4px solid var(--accent-orange);
            padding-left: 1rem;
        }
        
        .formatted-content h3 {
            font-size: 1.25rem;
            font-weight: 500;
            margin-top: 1rem;
            margin-bottom: 0.5rem;
            color: var(--dark-gray);
        }
        
        .formatted-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
            box-shadow: 0 2px 4px rgba(0, 51, 102, 0.1);
        }
        
        .formatted-content th {
            background-color: var(--primary-blue);
            color: white;
            border: 1px solid var(--primary-blue);
            padding: 0.75rem;
            text-align: left;
            font-weight: 600;
        }
        
        .formatted-content td {
            border: 1px solid var(--light-gray);
            padding: 0.75rem;
            background-color: white;
        }

        .query-mode-indicator {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        /* Style pour les modes sélectionnés */
        .query-mode-local { border-left: 4px solid #3B82F6; }
        .query-mode-global { border-left: 4px solid #F97316; }
        .query-mode-hybrid { border-left: 4px solid #10B981; }
        .query-mode-auto { border-left: 4px solid #EAB308; }