/**
 * AcadIA-M - Module Veille Scientifique CSS
 * Surveillance automatisee, profils chercheurs, tendances
 * Couleurs: Teal/Cyan (#0D9488 → #06B6D4)
 */

/* === VIEW CONTAINER === */
#view-veille-scientifique {
    box-sizing: border-box; background: var(--bg-primary, #f8fafc);
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10; display: none; flex-direction: column; overflow: hidden;
}
#view-veille-scientifique.active { display: flex !important; flex-direction: column; }
#view-veille-scientifique .view-header { flex-shrink: 0; }

/* === BANNER VEILLE === */
.admin-header-banner.banner-veille {
    background: linear-gradient(135deg, #0D9488 0%, #06B6D4 50%, #0891B2 100%) !important;
    padding: 1rem 2rem; position: relative; overflow: hidden; border-bottom: none;
}
.admin-header-banner.banner-veille::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: veille-shimmer 8s infinite linear; pointer-events: none;
}
@keyframes veille-shimmer { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.admin-header-banner.banner-veille h2 {
    color: white !important; font-size: 1.5rem; font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2); position: relative; z-index: 1;
}
.admin-header-banner.banner-veille .header-icon {
    background: rgba(255,255,255,0.2) !important; border: 1px solid rgba(255,255,255,0.3) !important; backdrop-filter: blur(8px);
}
.admin-header-banner.banner-veille .header-icon svg { stroke: white !important; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.admin-header-banner.banner-veille .view-header-left,
.admin-header-banner.banner-veille .view-header-right { position: relative; z-index: 1; }
.admin-header-banner.banner-veille p { color: rgba(255,255,255,0.85); }

/* === NAV ITEM VEILLE === */
.nav-item-veille { background: rgba(13, 148, 136, 0.08); border-left: 3px solid #0D9488; color: var(--text-primary); }
.nav-item-veille::before { background: linear-gradient(135deg, #0D9488, #06B6D4); }
.nav-item-veille:hover { background: rgba(13, 148, 136, 0.15); color: #0F766E; }
.nav-item-veille.active { background: rgba(13, 148, 136, 0.12); color: #0F766E; font-weight: 600; }
.nav-item-veille svg { color: #0D9488; }

/* === MAIN CONTAINER === */
.veille-container {
    display: flex; flex-direction: column;
    width: 100%; box-sizing: border-box; flex: 1;
    overflow: hidden; min-height: 0;
}

/* === TAB SYSTEM === */
.veille-tabs {
    display: flex; gap: 0; padding: 0 1.5rem; background: var(--card-bg, white);
    border-bottom: 1px solid var(--border-color, #e2e8f0); flex-shrink: 0;
}
.veille-tab-btn {
    display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1.25rem;
    border: none; background: transparent; color: var(--text-secondary, #64748b);
    font-size: 0.875rem; font-weight: 500; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.2s;
}
.veille-tab-btn:hover { color: #0D9488; background: rgba(13, 148, 136, 0.05); }
.veille-tab-btn.active { color: #0D9488; border-bottom-color: #06B6D4; font-weight: 600; }
.veille-tab-btn svg { width: 16px; height: 16px; }
.veille-tab-content { display: none; flex: 1; overflow-y: auto; padding: 0.75rem 1rem; min-height: 0; }
.veille-tab-content.active { display: flex; flex-direction: column; }

/* === PROFILE TAB === */
.veille-profile-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem; margin-bottom: 1.5rem;
}
.veille-profile-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid rgba(13, 148, 136, 0.15); border-radius: 12px; padding: 1.25rem;
    cursor: pointer; transition: all 0.2s ease; position: relative; overflow: hidden;
}
.veille-profile-card:hover {
    border-color: rgba(13, 148, 136, 0.4); background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15); transform: translateY(-2px);
}
.veille-profile-card.active {
    border-color: #0D9488; background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2);
}
.veille-profile-form {
    background: var(--card-bg, white); border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.veille-form-group { margin-bottom: 1.15rem; }
.veille-form-label {
    display: block; font-size: 0.85rem; font-weight: 600; color: #134E4A;
    margin-bottom: 0.5rem; letter-spacing: 0.01em;
}
.veille-form-input, .veille-form-select, .veille-form-textarea {
    width: 100%; padding: 0.65rem 0.85rem; border: 1.5px solid #99f6e4; border-radius: 10px;
    font-size: 0.875rem; background: #f0fdfa; color: var(--text-primary, #1e293b);
    box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s;
}
.veille-form-input:focus, .veille-form-select:focus, .veille-form-textarea:focus {
    outline: none; border-color: #0D9488; box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12); background: white;
}
.veille-form-input::placeholder, .veille-form-textarea::placeholder { color: #5eead4; }
.veille-form-textarea { min-height: 80px; resize: vertical; }
.veille-checkbox-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.veille-checkbox-label {
    display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; cursor: pointer;
    padding: 0.4rem 0.75rem; border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px; transition: all 0.2s;
}
.veille-checkbox-label:hover { border-color: #0D9488; background: rgba(13, 148, 136, 0.05); }
.veille-checkbox-label input[type="checkbox"] { accent-color: #0D9488; }

/* === REFERENCES VIEW === */
.veille-references-view { display: flex; flex-direction: column; gap: 0; flex: 1; min-height: 0; }
.veille-references-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.75rem 1rem; background: white; border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
    margin-bottom: 0.75rem; flex-shrink: 0; flex-wrap: wrap;
}
.veille-toolbar-left { display: flex; align-items: center; gap: 0.75rem; }
.veille-toolbar-right { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.veille-profile-indicator {
    font-size: 0.82rem; color: #64748b; padding: 0.3rem 0.75rem;
    background: #f0fdfa; border-radius: 8px; border: 1px solid #ccfbf1;
}
.veille-profile-indicator strong { color: #0F766E; }
.veille-select-sm {
    padding: 0.4rem 2rem 0.4rem 0.65rem; border: 1.5px solid #e2e8f0; border-radius: 8px;
    font-size: 0.8rem; background: #f8fafc; color: #334155; cursor: pointer;
    appearance: none; font-family: inherit; transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.5rem center;
}
.veille-select-sm:focus { outline: none; border-color: #0D9488; box-shadow: 0 0 0 3px rgba(13,148,136,0.08); }
.veille-results-container { flex: 1; overflow-y: auto; min-height: 0; padding-right: 0.25rem; }
.veille-results-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; background: white; border-radius: 14px; margin-top: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03); flex-shrink: 0;
}
.veille-results-count { font-size: 0.82rem; color: #64748b; font-weight: 500; }
.veille-export-btns { display: flex; gap: 0.5rem; }
.veille-btn-outline {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.85rem;
    border: 1.5px solid #e2e8f0; border-radius: 8px; background: white; color: #475569;
    font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.veille-btn-outline:hover { border-color: #0D9488; color: #0D9488; background: #f0fdfa; }
.veille-empty-results {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 4rem 2rem; text-align: center;
}
.veille-empty-results svg { color: #99f6e4; margin-bottom: 1rem; }
.veille-empty-results h4 { font-size: 1rem; color: #334155; margin: 0 0 0.5rem; font-weight: 600; }
.veille-empty-results p { font-size: 0.85rem; color: #94a3b8; margin: 0; max-width: 360px; line-height: 1.5; }
.veille-empty-tab-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 4rem 2rem; text-align: center;
}
.veille-empty-tab-state svg { color: #99f6e4; margin-bottom: 1rem; }
.veille-empty-tab-state h3 { font-size: 1.05rem; color: #334155; margin: 0 0 0.5rem; font-weight: 600; }
.veille-empty-tab-state p { font-size: 0.85rem; color: #94a3b8; margin: 0; max-width: 400px; line-height: 1.5; }

/* === PAPER CARDS === */
.veille-paper-card {
    background: white; border: 1px solid #e8ecf1; border-radius: 14px;
    padding: 0; margin-bottom: 0.6rem; transition: all 0.25s ease; overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.veille-paper-card:hover {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.1), 0 1px 3px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.veille-paper-card-inner { padding: 1rem 1.25rem; }
.veille-paper-header {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap;
}
.veille-paper-title {
    font-size: 0.95rem; font-weight: 600; color: #1e293b; margin: 0 0 0.4rem 0;
    line-height: 1.45; letter-spacing: -0.01em;
}
.veille-paper-title:hover { color: #0D9488; }
.veille-paper-authors {
    font-size: 0.8rem; color: #64748b; margin: 0 0 0.4rem 0; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.veille-paper-abstract {
    font-size: 0.82rem; color: #94a3b8; line-height: 1.55; margin: 0 0 0.75rem 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-style: italic;
}
.veille-paper-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: var(--text-secondary, #64748b); margin-bottom: 0.5rem; flex-wrap: wrap; }
.veille-paper-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
}
.veille-paper-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.veille-paper-actions .veille-btn-secondary {
    padding: 0.35rem 0.7rem; font-size: 0.78rem; border-radius: 7px;
    background: #f0fdfa; color: #0F766E; border: 1px solid #ccfbf1;
    transition: all 0.2s; font-weight: 500; text-decoration: none;
}
.veille-paper-actions .veille-btn-secondary:hover {
    background: #0D9488; color: white; border-color: #0D9488;
    box-shadow: 0 2px 8px rgba(13,148,136,0.25);
}

/* === PERTINENCE SCORE BAR === */
.veille-pertinence-bar {
    display: flex; align-items: center; gap: 0.5rem;
}
.veille-pertinence-track {
    flex: 1; max-width: 80px; height: 5px; background: #e2e8f0; border-radius: 3px; overflow: hidden;
}
.veille-pertinence-fill {
    height: 100%; border-radius: 3px; transition: width 0.5s ease;
    background: linear-gradient(90deg, #0D9488, #06B6D4);
}
.veille-pertinence-fill.high { background: linear-gradient(90deg, #0D9488, #10b981); }
.veille-pertinence-fill.medium { background: linear-gradient(90deg, #f59e0b, #eab308); }
.veille-pertinence-fill.low { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.veille-pertinence-score {
    font-size: 0.72rem; font-weight: 700; min-width: 28px; text-align: right;
}
.veille-pertinence-score.high { color: #0D9488; }
.veille-pertinence-score.medium { color: #d97706; }
.veille-pertinence-score.low { color: #94a3b8; }

/* === PAPER YEAR / CITATIONS BADGES === */
.veille-paper-year {
    font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.5rem;
    background: #f1f5f9; color: #475569; border-radius: 5px;
}
.veille-paper-citations {
    font-size: 0.72rem; font-weight: 500; color: #94a3b8;
    display: flex; align-items: center; gap: 0.25rem;
}
.veille-paper-citations svg { width: 12px; height: 12px; }

/* === SOURCE BADGES === */
.veille-source-badge {
    display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.55rem;
    border-radius: 5px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; color: white;
}

/* === FILTERS BAR (legacy compatibility) === */
.veille-filters-bar {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 1rem;
    background: var(--card-bg, white); border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px; margin-bottom: 1rem;
}
.veille-filters-bar input, .veille-filters-bar select {
    padding: 0.5rem 0.75rem; border: 1px solid var(--border-color, #e2e8f0); border-radius: 8px;
    font-size: 0.85rem; background: var(--bg-primary, #f8fafc); transition: border-color 0.2s;
}
.veille-filters-bar input:focus, .veille-filters-bar select:focus {
    outline: none; border-color: #0D9488; box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* === SCROLLBAR === */
.veille-results-container::-webkit-scrollbar { width: 5px; }
.veille-results-container::-webkit-scrollbar-track { background: transparent; }
.veille-results-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.veille-results-container::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* === TREND VISUALIZATION === */
.veille-trend-section {
    background: var(--card-bg, white); border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.veille-trend-bar-container { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.veille-trend-bar {
    flex: 1; height: 24px; background: linear-gradient(90deg, #0D9488, #06B6D4);
    border-radius: 6px; transition: width 0.5s ease; min-width: 4px;
}
.veille-trend-label {
    font-size: 0.85rem; font-weight: 500; color: var(--text-primary, #1e293b);
    min-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* === STRATÉGIE DE RECHERCHE TAB === */
.veille-strategie-view {
    display: flex; flex-direction: column; gap: 1.25rem;
}
.veille-strategie-header {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    border-radius: 14px; padding: 1.25rem 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.12);
}
.veille-strategie-header h3 {
    font-size: 1.15rem; font-weight: 700; color: #0C4A6E; margin: 0 0 0.2rem 0;
}
.veille-strategie-header p {
    font-size: 0.82rem; color: #5B8FA8; margin: 0;
}
.veille-strategie-actions {
    display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0;
}

/* Strategy content & sections */
.veille-strategy-content {
    display: flex; flex-direction: column; gap: 1.25rem;
}
.veille-strategy-section {
    background: var(--card-bg, white); border-radius: 14px;
    border: 1px solid rgba(14, 165, 233, 0.1);
    overflow: hidden; transition: box-shadow 0.25s ease;
}
.veille-strategy-section:hover {
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
}
.veille-strategy-placeholder {
    background: var(--card-bg, white); border-radius: 14px; padding: 2.5rem;
    border: 2px dashed rgba(14, 165, 233, 0.2); text-align: center;
}
.veille-strategy-placeholder p {
    font-size: 0.88rem; color: var(--text-secondary, #64748b); margin: 0;
    max-width: 500px; margin: 0 auto; line-height: 1.6;
}

/* Accent block (positionnement) */
.veille-accent-block {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-left: 4px solid #0EA5E9; padding: 1.15rem 1.25rem !important;
    font-style: italic;
}

/* === AXES DE RECHERCHE === */
.veille-axes-grid {
    display: grid; grid-template-columns: 1fr; gap: 0.75rem; padding: 1rem 1.25rem;
}
.veille-axe-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border: 1px solid rgba(14, 165, 233, 0.12); border-radius: 12px;
    padding: 1.15rem; transition: all 0.25s ease; position: relative;
}
.veille-axe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.25);
}
.veille-axe-card h5 {
    font-size: 0.92rem; font-weight: 700; color: #0C4A6E;
    margin: 0 0 0.5rem; line-height: 1.35;
}
.veille-axe-desc {
    font-size: 0.84rem; color: var(--text-primary, #334155); line-height: 1.6;
    margin: 0 0 0.5rem;
}
.veille-axe-originality {
    font-size: 0.82rem; color: #6366F1; line-height: 1.55;
    margin: 0 0 0.65rem; padding: 0.5rem 0.75rem;
    background: rgba(99, 102, 241, 0.06); border-radius: 8px;
    border-left: 3px solid rgba(99, 102, 241, 0.3);
}
.veille-axe-originality em { font-weight: 600; color: #4F46E5; }
.veille-axe-badges {
    display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.5rem;
}
.veille-impact-badge, .veille-difficulty-badge {
    display: inline-flex; align-items: center; padding: 0.22rem 0.65rem; border-radius: 8px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
}
.veille-impact-badge.high { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; border: 1px solid #86efac; }
.veille-impact-badge.medium { background: linear-gradient(135deg, #fef9c3, #fef08a); color: #854d0e; border: 1px solid #fde047; }
.veille-impact-badge.low { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #475569; border: 1px solid #cbd5e1; }
.veille-difficulty-badge.high { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b; border: 1px solid #fca5a5; }
.veille-difficulty-badge.medium { background: linear-gradient(135deg, #fef9c3, #fef08a); color: #854d0e; border: 1px solid #fde047; }
.veille-difficulty-badge.low { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534; border: 1px solid #86efac; }

/* Collaborations */
.veille-axe-collabs {
    margin-top: 0.5rem; padding-top: 0.5rem;
    border-top: 1px dashed rgba(14, 165, 233, 0.15);
}
.veille-collab-label {
    font-size: 0.75rem; font-weight: 600; color: #64748B;
    display: block; margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.veille-collab-pills {
    display: flex; flex-wrap: wrap; gap: 0.3rem;
}
.veille-collab-pill {
    font-size: 0.74rem; font-weight: 500; padding: 0.2rem 0.6rem;
    border-radius: 20px; background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369A1; border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.2s ease;
}
.veille-collab-pill:hover {
    background: linear-gradient(135deg, #bae6fd, #7dd3fc); border-color: #38bdf8;
}

/* === PLAN D'ACTION === */
.veille-plan-columns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0;
}
.veille-plan-column {
    padding: 1rem 1.25rem;
}
.veille-plan-column:first-child {
    border-right: 1px solid rgba(14, 165, 233, 0.1);
}
.veille-plan-column-title {
    display: flex; align-items: center; gap: 0.45rem;
    font-size: 0.88rem; font-weight: 700; margin: 0 0 0.65rem;
}
.veille-plan-icon { font-size: 1.05rem; }
.veille-plan-icon.short + span, .veille-plan-column:first-child .veille-plan-column-title { color: #059669; }
.veille-plan-icon.medium + span, .veille-plan-column:last-child .veille-plan-column-title { color: #D97706; }
.veille-plan-list {
    list-style: none; padding: 0; margin: 0; counter-reset: plan-step;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.veille-plan-list li {
    counter-increment: plan-step;
    position: relative; padding: 0.6rem 0.75rem 0.6rem 2.5rem;
    background: rgba(255, 255, 255, 0.6); border-radius: 10px;
    border: 1px solid rgba(14, 165, 233, 0.08);
    font-size: 0.84rem; line-height: 1.55; color: var(--text-primary, #334155);
    transition: all 0.2s ease;
}
.veille-plan-list li:hover {
    border-color: rgba(14, 165, 233, 0.2);
    background: rgba(255, 255, 255, 0.9);
}
.veille-plan-list li::before {
    content: counter(plan-step);
    position: absolute; left: 0.65rem; top: 0.6rem;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: white;
}
.veille-plan-column:first-child .veille-plan-list li::before {
    background: linear-gradient(135deg, #059669, #10B981);
}
.veille-plan-column:last-child .veille-plan-list li::before {
    background: linear-gradient(135deg, #D97706, #F59E0B);
}

/* === FINANCEMENTS === */
.veille-funding-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem; padding: 1rem 1.25rem;
}
.veille-funding-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 100%);
    border: 1px solid rgba(13, 148, 136, 0.12); border-radius: 12px;
    padding: 1.1rem; transition: all 0.25s ease;
    border-left: 4px solid #0D9488;
}
.veille-funding-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.25);
    border-left-color: #0D9488;
}
.veille-funding-card h5 {
    font-size: 0.9rem; font-weight: 700; color: #0F766E;
    margin: 0 0 0.35rem; line-height: 1.35;
}
.veille-funding-programme {
    display: inline-block; font-size: 0.72rem; font-weight: 600;
    padding: 0.15rem 0.55rem; border-radius: 6px;
    background: rgba(13, 148, 136, 0.1); color: #0F766E;
    margin-bottom: 0.5rem;
}
.veille-funding-amount {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.84rem; margin-bottom: 0.5rem;
}
.veille-funding-amount strong {
    color: #059669; font-size: 0.95rem;
}
.veille-funding-label {
    font-size: 0.78rem; color: #64748B; font-weight: 500;
}
.veille-funding-pertinence {
    display: flex; align-items: center; gap: 0.5rem;
}
.veille-pertinence-bar-container {
    flex: 1; height: 6px; background: rgba(13, 148, 136, 0.1);
    border-radius: 3px; overflow: hidden;
}
.veille-funding-pertinence .veille-pertinence-bar {
    height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, #0D9488, #14B8A6, #5eead4);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.veille-pertinence-pct {
    font-size: 0.78rem; font-weight: 700; color: #0F766E; min-width: 32px;
}

/* === DEEP HEMISYNC BADGE === */
.veille-deep-badge {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #1B4F72, #2E86C1); color: white; border-radius: 8px;
    font-size: 0.75rem; font-weight: 600; box-shadow: 0 2px 6px rgba(27, 79, 114, 0.3);
}

/* === SYNTHÈSE & TENDANCES TAB === */
.veille-synthese-view {
    display: flex; flex-direction: column; gap: 1.25rem;
}
.veille-synthese-header {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #e0f2fe 100%);
    border-radius: 14px; padding: 1.25rem 1.5rem;
    border: 1px solid rgba(13, 148, 136, 0.12);
}
.veille-synthese-header h3 {
    font-size: 1.15rem; font-weight: 700; color: #134E4A; margin: 0 0 0.2rem 0;
}
.veille-synthese-header p {
    font-size: 0.82rem; color: #5F8B86; margin: 0;
}
.veille-btn-deep {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.2rem; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #0F766E 0%, #0D9488 60%, #14B8A6 100%);
    color: white; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    transition: all 0.25s ease; white-space: nowrap;
}
.veille-btn-deep:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}
.veille-btn-deep:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

/* Trends placeholder */
.veille-trends-placeholder {
    background: var(--card-bg, white); border-radius: 14px; padding: 2.5rem;
    border: 2px dashed rgba(13, 148, 136, 0.2); text-align: center;
}
.veille-trends-placeholder p {
    font-size: 0.88rem; color: var(--text-secondary, #64748b); margin: 0;
    max-width: 500px; margin: 0 auto; line-height: 1.6;
}

/* Trends content container */
.veille-trends-content {
    display: flex; flex-direction: column; gap: 1.25rem;
}

/* Trends section card */
.veille-trends-section {
    background: var(--card-bg, white); border-radius: 14px;
    border: 1px solid rgba(13, 148, 136, 0.1);
    overflow: hidden; transition: box-shadow 0.25s ease;
}
.veille-trends-section:hover {
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
}

/* Section title */
.veille-section-title {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.95rem; font-weight: 700; color: #134E4A;
    margin: 0; padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.6) 0%, rgba(204, 251, 241, 0.4) 100%);
    border-bottom: 1px solid rgba(13, 148, 136, 0.08);
}
.veille-section-icon {
    font-size: 1.1rem; display: inline-flex;
}

/* Text block (synthèse générale) */
.veille-text-block {
    padding: 1rem 1.25rem;
    font-size: 0.88rem; line-height: 1.75; color: var(--text-primary, #334155);
    max-height: 280px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(13, 148, 136, 0.3) transparent;
}
.veille-text-block::-webkit-scrollbar { width: 4px; }
.veille-text-block::-webkit-scrollbar-track { background: transparent; }
.veille-text-block::-webkit-scrollbar-thumb {
    background: rgba(13, 148, 136, 0.25); border-radius: 4px;
}
.veille-text-block::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 148, 136, 0.45);
}

/* Themes grid */
.veille-themes-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem; padding: 1rem 1.25rem;
}

/* Theme card */
.veille-theme-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 100%);
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: 12px; padding: 1rem 1.15rem;
    position: relative; transition: all 0.25s ease;
}
.veille-theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.25);
}
.veille-theme-card.emerging {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #f0fdfa 100%);
    border-color: rgba(217, 119, 6, 0.2);
}
.veille-theme-card.emerging:hover {
    border-color: rgba(217, 119, 6, 0.35);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.1);
}
.veille-theme-name {
    font-size: 0.9rem; font-weight: 700; color: #0F766E;
    margin-bottom: 0.5rem; line-height: 1.35;
}
.veille-theme-card.emerging .veille-theme-name { color: #92400E; }
.veille-theme-desc {
    font-size: 0.8rem; color: var(--text-secondary, #64748b); line-height: 1.55;
    margin: 0.5rem 0 0.4rem; display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.veille-theme-count {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.72rem; font-weight: 600; color: #5F8B86;
    padding: 0.15rem 0.5rem; border-radius: 6px;
    background: rgba(13, 148, 136, 0.08);
}
.veille-theme-card.emerging .veille-theme-count {
    color: #92400E; background: rgba(217, 119, 6, 0.08);
}

/* Theme progress bar */
.veille-theme-bar-container {
    width: 100%; height: 5px; background: rgba(13, 148, 136, 0.08);
    border-radius: 3px; overflow: hidden; margin-bottom: 0.35rem;
}
.veille-theme-bar {
    height: 100%; border-radius: 3px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.veille-theme-bar.dominant {
    background: linear-gradient(90deg, #0D9488, #14B8A6, #5eead4);
}
.veille-theme-bar.emerging {
    background: linear-gradient(90deg, #D97706, #F59E0B, #FCD34D);
}

/* NEW badge */
.veille-new-badge {
    position: absolute; top: 0.65rem; right: 0.65rem;
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em;
    padding: 0.15rem 0.5rem; border-radius: 6px;
    background: linear-gradient(135deg, #F59E0B, #D97706); color: white;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* Gaps list */
.veille-gaps-list {
    list-style: none; padding: 0.75rem 1.25rem; margin: 0;
    display: flex; flex-direction: column; gap: 0.6rem;
    counter-reset: gap-counter;
}
.veille-gap-item {
    counter-increment: gap-counter;
    padding: 0.85rem 1rem 0.85rem 3rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 50%, #fef2f2 100%);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 10px; position: relative;
    transition: all 0.2s ease;
}
.veille-gap-item:hover {
    border-color: rgba(239, 68, 68, 0.25);
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.08);
}
.veille-gap-item::before {
    content: counter(gap-counter);
    position: absolute; left: 0.85rem; top: 0.85rem;
    width: 24px; height: 24px; border-radius: 50%;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white; font-size: 0.72rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.veille-gap-item strong {
    font-size: 0.88rem; font-weight: 600; color: #991B1B;
    display: block; margin-bottom: 0.25rem;
}
.veille-gap-item p {
    font-size: 0.82rem; color: #6B7280; margin: 0; line-height: 1.55;
}

/* Timeline */
.veille-timeline {
    padding: 1rem 1.25rem; position: relative;
}
.veille-timeline::before {
    content: ''; position: absolute; left: 2.05rem; top: 1.5rem; bottom: 1.5rem;
    width: 2px; background: linear-gradient(to bottom, #14B8A6, #0D9488, #134E4A);
    border-radius: 2px;
}
.veille-timeline-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 0.5rem 0; position: relative;
}
.veille-timeline-dot {
    width: 14px; height: 14px; min-width: 14px; border-radius: 50%;
    background: white; border: 3px solid #0D9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
    margin-top: 0.2rem; z-index: 1;
}
.veille-timeline-item:first-child .veille-timeline-dot {
    background: #0D9488; border-color: #0D9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.25);
}
.veille-timeline-content {
    flex: 1; padding-bottom: 0.75rem;
}
.veille-timeline-period {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    color: white; background: linear-gradient(135deg, #0F766E, #0D9488);
    padding: 0.2rem 0.65rem; border-radius: 6px;
    margin-bottom: 0.4rem; letter-spacing: 0.02em;
}
.veille-timeline-content p {
    font-size: 0.84rem; color: var(--text-primary, #334155); line-height: 1.6;
    margin: 0.3rem 0 0;
}

/* Forecasts grid */
.veille-forecasts-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem; padding: 1rem 1.25rem;
}
.veille-forecast-card {
    background: linear-gradient(135deg, #EDE9FE 0%, #F3E8FF 50%, #FCE7F3 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px; padding: 1rem 1.15rem;
    transition: all 0.25s ease;
}
.veille-forecast-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
}
.veille-forecast-card h5 {
    font-size: 0.88rem; font-weight: 700; color: #5B21B6;
    margin: 0 0 0.4rem; line-height: 1.35;
}
.veille-forecast-card p {
    font-size: 0.82rem; color: #6B7280; line-height: 1.55;
    margin: 0 0 0.5rem;
}
.veille-forecast-horizon {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
    padding: 0.18rem 0.6rem; border-radius: 6px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED); color: white;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}

/* Maturity badge */
.veille-theme-maturity {
    display: inline-flex; align-items: center;
    font-size: 0.7rem; font-weight: 600; text-transform: capitalize;
    padding: 0.15rem 0.5rem; border-radius: 6px;
    background: rgba(13, 148, 136, 0.1); color: #0F766E;
    margin-right: 0.35rem;
}
.veille-theme-maturity.emerging {
    background: rgba(217, 119, 6, 0.1); color: #92400E;
}

/* Forecast footer (horizon + confiance) */
.veille-forecast-footer {
    display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem;
    flex-wrap: wrap;
}
.veille-forecast-confiance {
    font-size: 0.72rem; font-weight: 600;
}

/* DEEP HEMISYNC Footer */
.veille-deep-footer {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    padding: 1rem; border-radius: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdfa 100%);
    border: 1px solid rgba(13, 148, 136, 0.1);
    font-size: 0.82rem; color: #5F8B86;
}

/* === DATA HARVESTING OVERLAY === */
.veille-harvest-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10001; opacity: 0; transition: opacity 0.3s ease;
}
.veille-harvest-overlay.visible { opacity: 1; }
.veille-harvest-card {
    background: white; border-radius: 20px; padding: 2rem 2.25rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    max-width: 460px; width: 92%;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.veille-harvest-overlay.visible .veille-harvest-card {
    transform: translateY(0) scale(1);
}

/* Header */
.veille-harvest-header {
    display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem;
}
.veille-harvest-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: linear-gradient(135deg, #0F766E, #14B8A6);
    display: flex; align-items: center; justify-content: center;
    color: white; flex-shrink: 0;
    animation: veille-harvest-pulse 2s ease-in-out infinite;
}
@keyframes veille-harvest-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
}
.veille-harvest-title {
    font-size: 1.1rem; font-weight: 700; color: #134E4A; margin: 0;
    letter-spacing: -0.01em;
}
.veille-harvest-profile {
    font-size: 0.82rem; color: #5F8B86; margin: 0.1rem 0 0;
}

/* Progress bar */
.veille-harvest-progress-area {
    display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.75rem;
}
.veille-harvest-progress-bar {
    flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden;
}
.veille-harvest-progress-fill {
    height: 100%; border-radius: 4px;
    background: linear-gradient(90deg, #0D9488, #14B8A6, #5eead4);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.veille-harvest-progress-fill::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: veille-shimmer 1.5s ease-in-out infinite;
}
@keyframes veille-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.veille-harvest-pct {
    font-size: 0.82rem; font-weight: 700; color: #0F766E; min-width: 36px; text-align: right;
}

/* Step text */
.veille-harvest-step {
    font-size: 0.82rem; color: #64748B; margin: 0 0 1rem;
    min-height: 1.2em;
}

/* Sources list */
.veille-harvest-sources {
    display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem;
}
.veille-harvest-source {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.75rem; border-radius: 10px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.veille-harvest-source-badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.15rem 0.45rem; border-radius: 5px; font-size: 0.7rem;
    font-weight: 700; color: white; min-width: 24px; text-align: center;
}
.veille-harvest-source-name {
    flex: 1; font-size: 0.84rem; font-weight: 500; color: #334155;
}
.veille-harvest-source-status {
    display: flex; align-items: center;
}
.veille-harvest-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #F59E0B;
}
.veille-harvest-dot.pulsing {
    animation: veille-dot-pulse 1.2s ease-in-out infinite;
}
@keyframes veille-dot-pulse {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Keywords */
.veille-harvest-keywords {
    display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem;
}
.veille-harvest-keyword {
    font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem;
    border-radius: 20px; background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    color: #0F766E; border: 1px solid rgba(13, 148, 136, 0.2);
}

/* Result summary */
.veille-harvest-complete {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1rem; border-radius: 12px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    animation: veille-harvest-appear 0.4s ease;
}
@keyframes veille-harvest-appear {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.veille-harvest-complete strong {
    display: block; font-size: 0.88rem; color: #166534;
}
.veille-harvest-complete span {
    display: block; font-size: 0.78rem; color: #4ade80; margin-top: 0.15rem;
}

/* Dark mode harvest overlay */
[data-theme="dark"] .veille-harvest-card {
    background: #1e293b; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .veille-harvest-title { color: #99f6e4; }
[data-theme="dark"] .veille-harvest-profile { color: #5eead4; }
[data-theme="dark"] .veille-harvest-progress-bar { background: #334155; }
[data-theme="dark"] .veille-harvest-step { color: #94a3b8; }
[data-theme="dark"] .veille-harvest-source { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .veille-harvest-source-name { color: #e2e8f0; }
[data-theme="dark"] .veille-harvest-keyword { background: rgba(13, 148, 136, 0.15); color: #5eead4; border-color: rgba(13, 148, 136, 0.3); }
[data-theme="dark"] .veille-harvest-complete { background: rgba(22, 101, 52, 0.2); border-color: rgba(134, 239, 172, 0.3); }
[data-theme="dark"] .veille-harvest-complete strong { color: #86efac; }
[data-theme="dark"] .veille-harvest-complete span { color: #4ade80; }

/* === LOADING OVERLAY === */
.veille-loading-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6);
    display: flex; align-items: center; justify-content: center; z-index: 10000; backdrop-filter: blur(4px);
}
.veille-loading-content {
    background: white; border-radius: 16px; padding: 2.5rem 3rem; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-width: 400px; width: 90%;
}
.veille-loading-spinner {
    display: flex; justify-content: center; align-items: center; margin-bottom: 1.5rem;
    position: relative; width: 60px; height: 60px; margin-left: auto; margin-right: auto;
}
.veille-spinner-ring {
    position: absolute; width: 100%; height: 100%;
    border: 3px solid transparent; border-radius: 50%;
}
.veille-spinner-ring:nth-child(1) {
    border-top-color: #0D9488; animation: veille-spin 1s linear infinite;
}
.veille-spinner-ring:nth-child(2) {
    border-right-color: #14b8a6; animation: veille-spin 1.2s linear infinite reverse;
    width: 80%; height: 80%; top: 10%; left: 10%;
}
.veille-spinner-ring:nth-child(3) {
    border-bottom-color: #06B6D4; animation: veille-spin 0.8s linear infinite;
    width: 60%; height: 60%; top: 20%; left: 20%;
}
.veille-loading-title {
    font-size: 1.1rem; font-weight: 600; color: #1e293b; margin: 0 0 0.5rem 0;
}
.veille-loading-subtitle {
    font-size: 0.9rem; color: #64748b; margin: 0;
}
.veille-spinner {
    width: 40px; height: 40px; border: 3px solid #e2e8f0; border-top: 3px solid #0D9488;
    border-radius: 50%; animation: veille-spin 1s linear infinite; margin: 0 auto;
}
@keyframes veille-spin { to { transform: rotate(360deg); } }

/* === TOAST === */
.veille-toast {
    position: fixed; bottom: 2rem; right: 2rem; padding: 0.75rem 1.5rem; border-radius: 10px;
    font-size: 0.875rem; font-weight: 500; color: white; background: #0D9488;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3); z-index: 10001;
    transform: translateY(100px); opacity: 0; transition: all 0.3s ease; pointer-events: none;
}
.veille-toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.veille-toast.error { background: #dc2626; box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3); }
.veille-toast.warning { background: #f59e0b; box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3); }

/* === BUTTONS === */
.veille-btn-primary, .veille-btn-secondary, .veille-btn-danger {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem;
    border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
}
.veille-btn-primary { background: linear-gradient(135deg, #0D9488, #06B6D4); color: white; }
.veille-btn-primary:hover { box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3); transform: translateY(-1px); }
.veille-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.veille-btn-secondary { background: rgba(13, 148, 136, 0.1); color: #0D9488; }
.veille-btn-secondary:hover { background: rgba(13, 148, 136, 0.2); }
.veille-btn-danger { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.veille-btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

/* === EMPTY STATES === */
.veille-empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem; text-align: center; color: var(--text-secondary, #64748b); grid-column: 1 / -1;
}
.veille-empty-state svg { width: 64px; height: 64px; color: #5eead4; margin-bottom: 1rem; opacity: 0.6; }
.veille-empty-state h3 { font-size: 1.1rem; color: var(--text-primary, #1e293b); margin-bottom: 0.5rem; }
.veille-empty-state p { font-size: 0.875rem; margin-bottom: 1.5rem; max-width: 400px; }

/* === SYNTHESIS INLINE === */
.veille-synthesis-inline {
    border-top: 1px solid rgba(13, 148, 136, 0.15);
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 50%, #f0fdf4 100%);
}
.veille-synthesis-loading {
    display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem;
}
.veille-synthesis-loading span { font-size: 0.85rem; color: #0F766E; font-weight: 500; }
.veille-spinner-sm {
    width: 20px; height: 20px; border: 2px solid #ccfbf1; border-top: 2px solid #0D9488;
    border-radius: 50%; animation: veille-spin 0.8s linear infinite;
}

/* Synthesis result card */
.veille-synthesis-result {
    overflow: hidden;
}
.veille-synthesis-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.25rem; cursor: pointer; user-select: none;
    transition: background 0.2s ease;
}
.veille-synthesis-header:hover { background: rgba(13, 148, 136, 0.06); }
.veille-synthesis-header-left {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; font-weight: 600; color: #0F766E;
    letter-spacing: 0.02em; text-transform: uppercase;
}
.veille-synthesis-header-left svg { opacity: 0.7; }
.veille-synthesis-header-right {
    display: flex; align-items: center; gap: 0.5rem;
}
.veille-synthesis-chevron {
    transition: transform 0.3s ease; color: #0F766E; opacity: 0.5;
}
.veille-synthesis-result.expanded .veille-synthesis-chevron {
    transform: rotate(180deg);
}

/* Body — collapsed by default */
.veille-synthesis-body {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
}
.veille-synthesis-result.expanded .veille-synthesis-body {
    max-height: 800px; opacity: 1;
    padding: 0 1.25rem 1rem;
}

/* Sections */
.veille-synthesis-section {
    margin-bottom: 0.75rem;
}
.veille-synthesis-section:last-child { margin-bottom: 0; }
.veille-synthesis-section h5 {
    font-size: 0.78rem; font-weight: 700; color: #115E59;
    text-transform: uppercase; letter-spacing: 0.04em;
    margin: 0 0 0.4rem 0; padding-bottom: 0.3rem;
    border-bottom: 1px dashed rgba(13, 148, 136, 0.2);
    display: flex; align-items: center; gap: 0.35rem;
}

/* Scrollable text area */
.veille-synthesis-text-scroll {
    max-height: 160px; overflow-y: auto; padding-right: 0.5rem;
    scrollbar-width: thin; scrollbar-color: rgba(13, 148, 136, 0.3) transparent;
}
.veille-synthesis-text-scroll::-webkit-scrollbar { width: 4px; }
.veille-synthesis-text-scroll::-webkit-scrollbar-track { background: transparent; }
.veille-synthesis-text-scroll::-webkit-scrollbar-thumb {
    background: rgba(13, 148, 136, 0.3); border-radius: 4px;
}
.veille-synthesis-text-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 148, 136, 0.5);
}
.veille-synthesis-text-scroll p {
    font-size: 0.84rem; line-height: 1.65; color: #1e293b;
    margin: 0; text-align: justify;
}

/* Apports list */
.veille-apports-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.35rem;
}
.veille-apports-list li {
    font-size: 0.82rem; line-height: 1.55; color: #334155;
    padding: 0.4rem 0.65rem; border-radius: 8px;
    background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(13, 148, 136, 0.1);
    position: relative; padding-left: 1.4rem;
}
.veille-apports-list li::before {
    content: ''; position: absolute; left: 0.55rem; top: 0.65rem;
    width: 6px; height: 6px; border-radius: 50%;
    background: linear-gradient(135deg, #0D9488, #14B8A6);
}

/* Pertinence badge in synthesis header */
.veille-synthesis-header .veille-pertinence-badge {
    font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.55rem;
    border-radius: 10px; letter-spacing: 0.03em;
}
.veille-pertinence-badge.high {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #166534;
    border: 1px solid #86efac;
}
.veille-pertinence-badge.medium {
    background: linear-gradient(135deg, #fef9c3, #fef08a); color: #854d0e;
    border: 1px solid #fde047;
}
.veille-pertinence-badge.low {
    background: linear-gradient(135deg, #fee2e2, #fecaca); color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Error state */
.veille-synthesis-error {
    padding: 0.75rem 1.25rem; font-size: 0.84rem; color: #991b1b;
    display: flex; align-items: center; gap: 0.5rem;
}

/* === PROFILE TAB LAYOUT (sidebar + form) === */
.veille-profil-layout {
    display: flex; gap: 1rem; min-height: 0; flex: 1;
}
.veille-profil-sidebar {
    width: 280px; min-width: 280px; background: var(--card-bg, white);
    border-radius: 14px;
    display: flex; flex-direction: column; overflow: hidden;
}
.veille-profil-sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 12px;
}
.veille-profil-sidebar-header h3 {
    font-size: 0.95rem; font-weight: 700; color: #134E4A; margin: 0;
}
.veille-btn-icon {
    width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid #99f6e4;
    background: white; color: #0D9488; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s;
}
.veille-btn-icon:hover {
    background: #0D9488; color: white; border-color: #0D9488;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3); transform: scale(1.05);
}
.veille-profiles-list {
    flex: 1; overflow-y: auto; padding: 0.75rem;
}
.veille-profile-card {
    background: var(--card-bg, white);
    border-radius: 12px; padding: 1rem; cursor: pointer; transition: all 0.2s;
    margin-bottom: 0.6rem; border: 1.5px solid transparent;
}
.veille-profile-card:hover {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%);
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.12); transform: translateY(-1px);
}
.veille-profile-card.active {
    border-color: #0D9488; background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2);
}
.veille-profile-card-top { margin-bottom: 0.5rem; }
.veille-domain-badge {
    display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem;
    border-radius: 20px; font-size: 0.72rem; font-weight: 600; color: #0F766E;
    background: rgba(13, 148, 136, 0.1); border: 1px solid rgba(13, 148, 136, 0.15);
}
.veille-profile-card-name {
    font-size: 0.9rem; font-weight: 600; color: var(--text-primary, #1e293b);
    margin: 0.4rem 0; line-height: 1.3;
}
.veille-profile-card-meta {
    display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem;
    color: var(--text-secondary, #64748b);
}
.veille-profile-card-meta span { display: flex; align-items: center; gap: 0.2rem; }
.veille-empty-profiles {
    padding: 2rem 1rem; text-align: center; color: var(--text-secondary, #64748b);
}
.veille-empty-profiles p { font-size: 0.9rem; margin: 0 0 0.3rem; font-weight: 500; }
.veille-empty-profiles small { font-size: 0.78rem; opacity: 0.8; }
.veille-profil-form-area {
    flex: 1; min-width: 0; overflow-y: auto; min-height: 0;
}
.veille-empty-form-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 4rem 2rem; text-align: center; background: var(--card-bg, white);
    border-radius: 16px;
    flex: 1;
}
.veille-empty-form-state svg { color: #5eead4; margin-bottom: 1rem; }
.veille-empty-form-state h3 {
    font-size: 1.1rem; color: var(--text-primary, #1e293b); margin: 0 0 0.5rem; font-weight: 600;
}
.veille-empty-form-state p {
    font-size: 0.875rem; color: var(--text-secondary, #64748b);
    margin: 0 0 1.5rem; max-width: 400px; line-height: 1.5;
}

/* === PROFILE FORM STYLED === */
.veille-profile-form {
    background: var(--card-bg, white);
    border-radius: 16px; padding: 1.25rem 1.5rem;
}
.veille-profile-form h3 {
    font-size: 1.1rem; font-weight: 700; color: #134E4A; margin: 0 0 1rem;
    padding-bottom: 0.6rem; border-bottom: 2px solid #ccfbf1;
    display: flex; align-items: center; gap: 0.5rem;
}
.veille-profile-form h3::before {
    content: ''; width: 4px; height: 20px; border-radius: 4px;
    background: linear-gradient(135deg, #0D9488, #06B6D4);
}
.veille-form-group {
    margin-bottom: 1rem;
}
.veille-form-group > label {
    display: block; font-size: 0.85rem; font-weight: 600; color: #134E4A;
    margin-bottom: 0.5rem; letter-spacing: 0.01em;
}
.veille-form-group > label small {
    font-weight: 400; color: var(--text-secondary, #64748b); font-size: 0.78rem;
}
.veille-input, .veille-select, .veille-textarea {
    width: 100%; padding: 0.7rem 1rem; border: 1.5px solid #ccfbf1; border-radius: 10px;
    font-size: 0.875rem; background: #f0fdfa; color: var(--text-primary, #1e293b);
    box-sizing: border-box; transition: all 0.2s ease;
    font-family: inherit;
}
.veille-input:focus, .veille-select:focus, .veille-textarea:focus {
    outline: none; border-color: #0D9488; background: white;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1), 0 2px 8px rgba(13, 148, 136, 0.08);
}
.veille-input::placeholder, .veille-textarea::placeholder {
    color: #94a3b8; font-style: italic;
}
.veille-select {
    appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230D9488' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.75rem center;
    padding-right: 2.5rem;
}
.veille-textarea { min-height: 80px; resize: vertical; line-height: 1.5; }

/* === SOURCES GRID === */
.veille-sources-grid {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.veille-source-checkbox {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem;
    border: 1.5px solid #e2e8f0; border-radius: 10px; cursor: pointer;
    background: white; transition: all 0.2s; font-size: 0.85rem; font-weight: 500;
    color: var(--text-primary, #1e293b);
}
.veille-source-checkbox:hover {
    border-color: #0D9488; background: #f0fdfa;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
}
.veille-source-checkbox input[type="checkbox"] {
    accent-color: #0D9488; width: 16px; height: 16px; cursor: pointer;
}
.veille-source-badge-sm {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.15rem 0.45rem; border-radius: 5px; font-size: 0.7rem;
    font-weight: 700; letter-spacing: 0.02em; min-width: 22px; text-align: center;
}

/* === FREQUENCY GROUP === */
.veille-freq-group {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.veille-freq-radio {
    display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem;
    border: 1.5px solid #e2e8f0; border-radius: 10px; cursor: pointer;
    background: white; transition: all 0.2s; font-size: 0.85rem; font-weight: 500;
    color: var(--text-primary, #1e293b);
}
.veille-freq-radio:hover {
    border-color: #0D9488; background: #f0fdfa;
}
.veille-freq-radio:has(input:checked) {
    border-color: #0D9488; background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    color: #0F766E; box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}
.veille-freq-radio input[type="radio"] {
    accent-color: #0D9488; width: 16px; height: 16px; cursor: pointer;
}

/* === FORM ACTIONS === */
.veille-form-actions {
    display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem;
    padding-top: 1rem; border-top: 1px solid #e2e8f0;
}
.veille-btn {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem;
    border: none; border-radius: 10px; font-size: 0.875rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.veille-btn.veille-btn-primary {
    background: linear-gradient(135deg, #0D9488, #06B6D4); color: white;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}
.veille-btn.veille-btn-primary:hover {
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35); transform: translateY(-1px);
}
.veille-btn.veille-btn-danger {
    background: rgba(239, 68, 68, 0.08); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.15);
}
.veille-btn.veille-btn-danger:hover {
    background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.3);
}

/* === DARK MODE === */
[data-theme="dark"] .veille-profile-card {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(6, 182, 212, 0.08) 100%);
    border-color: rgba(13, 148, 136, 0.2);
}
[data-theme="dark"] .veille-profile-card:hover {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(6, 182, 212, 0.12) 100%);
    border-color: rgba(13, 148, 136, 0.4);
}
[data-theme="dark"] .veille-form-label { color: #5eead4; }
[data-theme="dark"] .veille-form-group > label { color: #5eead4; }
[data-theme="dark"] .veille-form-input,
[data-theme="dark"] .veille-form-select,
[data-theme="dark"] .veille-form-textarea,
[data-theme="dark"] .veille-input,
[data-theme="dark"] .veille-select,
[data-theme="dark"] .veille-textarea {
    background: rgba(13, 148, 136, 0.08); border-color: rgba(13, 148, 136, 0.3); color: #e2e8f0;
}
[data-theme="dark"] .veille-form-input:focus,
[data-theme="dark"] .veille-form-select:focus,
[data-theme="dark"] .veille-form-textarea:focus,
[data-theme="dark"] .veille-input:focus,
[data-theme="dark"] .veille-select:focus,
[data-theme="dark"] .veille-textarea:focus {
    background: rgba(13, 148, 136, 0.12); border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}
[data-theme="dark"] .veille-form-input::placeholder,
[data-theme="dark"] .veille-form-textarea::placeholder,
[data-theme="dark"] .veille-input::placeholder,
[data-theme="dark"] .veille-textarea::placeholder { color: rgba(94, 234, 212, 0.5); }
[data-theme="dark"] .veille-profil-sidebar {
    background: var(--card-bg, #1e293b); border-color: rgba(13, 148, 136, 0.2);
}
[data-theme="dark"] .veille-profil-sidebar-header {
    background: rgba(13, 148, 136, 0.1); border-color: rgba(13, 148, 136, 0.2);
}
[data-theme="dark"] .veille-profil-sidebar-header h3 { color: #5eead4; }
[data-theme="dark"] .veille-btn-icon {
    background: rgba(13, 148, 136, 0.15); border-color: rgba(13, 148, 136, 0.3); color: #14b8a6;
}
[data-theme="dark"] .veille-profile-card {
    background: var(--card-bg, #1e293b); border-color: rgba(13, 148, 136, 0.15);
}
[data-theme="dark"] .veille-profile-card:hover {
    background: rgba(13, 148, 136, 0.1); border-color: rgba(13, 148, 136, 0.4);
}
[data-theme="dark"] .veille-profile-card.active {
    background: rgba(13, 148, 136, 0.15); border-color: #0D9488;
}
[data-theme="dark"] .veille-profile-form {
    background: var(--card-bg, #1e293b); border-color: rgba(13, 148, 136, 0.15);
}
[data-theme="dark"] .veille-profile-form h3 { color: #5eead4; border-color: rgba(13, 148, 136, 0.2); }
[data-theme="dark"] .veille-source-checkbox {
    background: rgba(13, 148, 136, 0.05); border-color: rgba(13, 148, 136, 0.2); color: #e2e8f0;
}
[data-theme="dark"] .veille-source-checkbox:hover { background: rgba(13, 148, 136, 0.12); }
[data-theme="dark"] .veille-freq-radio {
    background: rgba(13, 148, 136, 0.05); border-color: rgba(13, 148, 136, 0.2); color: #e2e8f0;
}
[data-theme="dark"] .veille-freq-radio:hover { background: rgba(13, 148, 136, 0.12); }
[data-theme="dark"] .veille-freq-radio:has(input:checked) {
    background: rgba(13, 148, 136, 0.2); color: #5eead4;
}
[data-theme="dark"] .veille-form-actions { border-color: rgba(13, 148, 136, 0.15); }
[data-theme="dark"] .veille-empty-form-state { background: var(--card-bg, #1e293b); border-color: rgba(13, 148, 136, 0.2); }
[data-theme="dark"] .veille-domain-badge { background: rgba(13, 148, 136, 0.15); color: #5eead4; border-color: rgba(13, 148, 136, 0.3); }
[data-theme="dark"] .veille-paper-card { background: var(--card-bg, #1e293b); border-color: #334155; }
[data-theme="dark"] .veille-paper-card:hover { border-color: rgba(13, 148, 136, 0.4); }
[data-theme="dark"] .veille-paper-title { color: #e2e8f0; }
[data-theme="dark"] .veille-paper-authors { color: #94a3b8; }
[data-theme="dark"] .veille-paper-year { background: #334155; color: #cbd5e1; }
[data-theme="dark"] .veille-references-toolbar,
[data-theme="dark"] .veille-results-footer { background: var(--card-bg, #1e293b); box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
[data-theme="dark"] .veille-profile-indicator { background: rgba(13,148,136,0.1); border-color: rgba(13,148,136,0.2); color: #94a3b8; }
[data-theme="dark"] .veille-profile-indicator strong { color: #5eead4; }
[data-theme="dark"] .veille-select-sm { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .veille-btn-outline { background: #1e293b; border-color: #334155; color: #cbd5e1; }
[data-theme="dark"] .veille-btn-outline:hover { border-color: #0D9488; color: #14b8a6; background: rgba(13,148,136,0.1); }
[data-theme="dark"] .veille-paper-actions .veille-btn-secondary { background: rgba(13,148,136,0.1); border-color: rgba(13,148,136,0.2); color: #5eead4; }
[data-theme="dark"] .veille-pertinence-track { background: #334155; }
[data-theme="dark"] .veille-action-plan { background: rgba(13, 148, 136, 0.08); border-color: rgba(13, 148, 136, 0.2); }
[data-theme="dark"] .veille-synthesis-inline { background: rgba(13, 148, 136, 0.08); border-color: rgba(13, 148, 136, 0.2); }
[data-theme="dark"] .veille-synthesis-header:hover { background: rgba(13, 148, 136, 0.12); }
[data-theme="dark"] .veille-synthesis-header-left { color: #5eead4; }
[data-theme="dark"] .veille-synthesis-chevron { color: #5eead4; }
[data-theme="dark"] .veille-synthesis-section h5 { color: #99f6e4; border-color: rgba(13, 148, 136, 0.2); }
[data-theme="dark"] .veille-synthesis-text-scroll p { color: #e2e8f0; }
[data-theme="dark"] .veille-apports-list li { color: #cbd5e1; background: rgba(255, 255, 255, 0.05); border-color: rgba(13, 148, 136, 0.15); }
[data-theme="dark"] .veille-synthesis-text-scroll::-webkit-scrollbar-thumb { background: rgba(94, 234, 212, 0.3); }
[data-theme="dark"] .veille-pertinence-badge.high { background: rgba(22, 101, 52, 0.3); color: #86efac; border-color: rgba(134, 239, 172, 0.3); }
[data-theme="dark"] .veille-pertinence-badge.medium { background: rgba(133, 77, 14, 0.3); color: #fde047; border-color: rgba(253, 224, 71, 0.3); }
[data-theme="dark"] .veille-pertinence-badge.low { background: rgba(153, 27, 27, 0.3); color: #fca5a5; border-color: rgba(252, 165, 165, 0.3); }
/* Dark mode — Synthèse & Tendances */
[data-theme="dark"] .veille-synthese-header { background: linear-gradient(135deg, rgba(13, 148, 136, 0.12) 0%, rgba(13, 148, 136, 0.06) 100%); border-color: rgba(13, 148, 136, 0.2); }
[data-theme="dark"] .veille-synthese-header h3 { color: #99f6e4; }
[data-theme="dark"] .veille-synthese-header p { color: #5eead4; opacity: 0.7; }
[data-theme="dark"] .veille-trends-placeholder { background: var(--card-bg, #1e293b); border-color: rgba(13, 148, 136, 0.2); }
[data-theme="dark"] .veille-trends-section { background: var(--card-bg, #1e293b); border-color: rgba(13, 148, 136, 0.15); }
[data-theme="dark"] .veille-section-title { color: #99f6e4; background: rgba(13, 148, 136, 0.08); border-color: rgba(13, 148, 136, 0.12); }
[data-theme="dark"] .veille-text-block { color: #e2e8f0; }
[data-theme="dark"] .veille-theme-card { background: rgba(13, 148, 136, 0.06); border-color: rgba(13, 148, 136, 0.15); }
[data-theme="dark"] .veille-theme-card.emerging { background: rgba(217, 119, 6, 0.06); border-color: rgba(217, 119, 6, 0.15); }
[data-theme="dark"] .veille-theme-name { color: #5eead4; }
[data-theme="dark"] .veille-theme-card.emerging .veille-theme-name { color: #FCD34D; }
[data-theme="dark"] .veille-theme-desc { color: #94a3b8; }
[data-theme="dark"] .veille-theme-bar-container { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .veille-gap-item { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.15); }
[data-theme="dark"] .veille-gap-item strong { color: #fca5a5; }
[data-theme="dark"] .veille-gap-item p { color: #94a3b8; }
[data-theme="dark"] .veille-timeline::before { background: linear-gradient(to bottom, #14B8A6, rgba(13, 148, 136, 0.3)); }
[data-theme="dark"] .veille-timeline-dot { background: #1e293b; border-color: #14B8A6; }
[data-theme="dark"] .veille-timeline-item:first-child .veille-timeline-dot { background: #14B8A6; }
[data-theme="dark"] .veille-timeline-content p { color: #cbd5e1; }
[data-theme="dark"] .veille-forecast-card { background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.2); }
[data-theme="dark"] .veille-forecast-card h5 { color: #c4b5fd; }
[data-theme="dark"] .veille-forecast-card p { color: #94a3b8; }
[data-theme="dark"] .veille-deep-footer { background: rgba(13, 148, 136, 0.06); border-color: rgba(13, 148, 136, 0.15); color: #5eead4; }
/* Dark mode — Stratégie */
[data-theme="dark"] .veille-strategie-header { background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(13, 148, 136, 0.06) 100%); border-color: rgba(14, 165, 233, 0.2); }
[data-theme="dark"] .veille-strategie-header h3 { color: #7dd3fc; }
[data-theme="dark"] .veille-strategie-header p { color: #7dd3fc; opacity: 0.7; }
[data-theme="dark"] .veille-strategy-section { background: var(--card-bg, #1e293b); border-color: rgba(14, 165, 233, 0.15); }
[data-theme="dark"] .veille-strategy-placeholder { background: var(--card-bg, #1e293b); border-color: rgba(14, 165, 233, 0.2); }
[data-theme="dark"] .veille-accent-block { background: rgba(14, 165, 233, 0.08) !important; border-left-color: #38bdf8; color: #e2e8f0; }
[data-theme="dark"] .veille-axe-card { background: rgba(14, 165, 233, 0.05); border-color: rgba(14, 165, 233, 0.15); }
[data-theme="dark"] .veille-axe-card h5 { color: #7dd3fc; }
[data-theme="dark"] .veille-axe-desc { color: #cbd5e1; }
[data-theme="dark"] .veille-axe-originality { background: rgba(99, 102, 241, 0.08); color: #a5b4fc; border-left-color: rgba(99, 102, 241, 0.4); }
[data-theme="dark"] .veille-axe-originality em { color: #a5b4fc; }
[data-theme="dark"] .veille-collab-pill { background: rgba(14, 165, 233, 0.12); color: #7dd3fc; border-color: rgba(14, 165, 233, 0.25); }
[data-theme="dark"] .veille-plan-column:first-child { border-right-color: rgba(14, 165, 233, 0.1); }
[data-theme="dark"] .veille-plan-list li { background: rgba(255, 255, 255, 0.03); border-color: rgba(14, 165, 233, 0.08); color: #cbd5e1; }
[data-theme="dark"] .veille-funding-card { background: rgba(13, 148, 136, 0.05); border-color: rgba(13, 148, 136, 0.15); border-left-color: #14B8A6; }
[data-theme="dark"] .veille-funding-card h5 { color: #5eead4; }
[data-theme="dark"] .veille-funding-programme { background: rgba(13, 148, 136, 0.15); color: #5eead4; }
[data-theme="dark"] .veille-funding-amount strong { color: #34d399; }
[data-theme="dark"] .veille-pertinence-bar-container { background: rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .veille-pertinence-pct { color: #5eead4; }
[data-theme="dark"] .veille-loading-overlay { background: rgba(0, 0, 0, 0.7); }
[data-theme="dark"] .veille-spinner { border-color: #334155; border-top-color: #14b8a6; }
[data-theme="dark"] .veille-form-group select option { background: #1e293b; color: #e2e8f0; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .veille-container { padding: 0.75rem; }
    .veille-tabs { overflow-x: auto; flex-wrap: nowrap; padding: 0 0.75rem; }
    .veille-tab-btn { flex-shrink: 0; padding: 0.6rem 0.9rem; font-size: 0.8rem; }
    .veille-profile-list { grid-template-columns: 1fr; }
    .veille-profil-layout { flex-direction: column; flex: 1; }
    .veille-profil-sidebar { width: 100%; min-width: unset; max-height: 200px; flex: none; }
    .veille-sources-grid { flex-direction: column; }
    .veille-freq-group { flex-direction: column; }
    .veille-filters-bar { flex-direction: column; align-items: stretch; }
    .veille-strategy-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .veille-paper-actions { flex-direction: row; flex-wrap: wrap; }
    .veille-references-toolbar { flex-direction: column; align-items: stretch; }
    .veille-toolbar-left, .veille-toolbar-right { justify-content: center; flex-wrap: wrap; }
    .veille-results-footer { flex-direction: column; align-items: center; gap: 0.5rem; }
    .veille-paper-footer { flex-direction: column; align-items: flex-start; }
    .veille-pertinence-bar { width: 100%; justify-content: flex-end; }
    .veille-trend-bar-container { flex-direction: column; align-items: flex-start; }
    .veille-trend-label { min-width: unset; }
    .veille-checkbox-group { flex-direction: column; }
    .veille-toast { left: 1rem; right: 1rem; bottom: 1rem; text-align: center; }
    .veille-synthese-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .veille-strategie-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .veille-strategie-actions { flex-wrap: wrap; }
    .veille-themes-grid { grid-template-columns: 1fr; }
    .veille-forecasts-grid { grid-template-columns: 1fr; }
    .veille-funding-grid { grid-template-columns: 1fr; }
    .veille-plan-columns { grid-template-columns: 1fr; }
    .veille-plan-column:first-child { border-right: none; border-bottom: 1px solid rgba(14, 165, 233, 0.1); }
    .veille-deep-footer { flex-direction: column; gap: 0.4rem; }
}
