/* ============================================
   Styles pour les highlights et tooltips
   ============================================ */

/* Highlights de preuves */
.evidence-highlight {
    transition: all 0.2s ease;
    position: relative;
}

.evidence-highlight:hover {
    filter: brightness(0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animation de flash pour attirer l'attention */
@keyframes highlight-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; transform: scale(1.05); }
}

/* Tooltip */
.highlight-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    max-width: 300px;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.tooltip-header {
    font-weight: 600;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.tooltip-content {
    font-size: 0.9em;
    line-height: 1.4;
}

/* Avertissement de trop de highlights */
.highlight-warning {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    text-align: center;
}

.highlight-warning h3 {
    color: #92400e;
    margin-bottom: 12px;
}

.highlight-warning p {
    color: #78350f;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .highlight-tooltip {
        max-width: 200px;
        font-size: 0.8em;
    }
}
