/* ========================================
   VEILLE RÉGLEMENTAIRE & MÉDIA RADAR
   Design moderne avec animations radar
   ======================================== */

.veille-radar-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Animation radar de fond */
.veille-radar-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(127, 255, 124, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radarPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes radarPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* En-tête Hero */
.radar-hero {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.radar-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.3);
    animation: radarSpin 4s linear infinite;
}

@keyframes radarSpin {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 10px 30px rgba(15, 118, 110, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(127, 255, 124, 0.5);
    }
    100% {
        transform: rotate(360deg);
        box-shadow: 0 10px 30px rgba(15, 118, 110, 0.3);
    }
}

.radar-icon i {
    font-size: 2.5rem;
    color: #7FFF7C;
    animation: radarPing 2s ease-in-out infinite;
}

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

.radar-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1C2440;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.radar-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.radar-meta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
}

.radar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.radar-badge.ai {
    background: linear-gradient(135deg, #7FFF7C 0%, #5eeb5a 100%);
    color: #1C2440;
}

.radar-badge.update {
    background: #f3f4f6;
    color: #6b7280;
}

/* Grille d'articles */
.radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Carte article */
.radar-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.radar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #7FFF7C;
}

.radar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1.25rem 0.5rem;
    gap: 0.75rem;
}

.radar-media-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: #f3f4f6;
    padding: 4px;
    flex-shrink: 0;
}

.radar-date {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
}

.radar-card-body {
    padding: 0 1.25rem 1.25rem;
}

.radar-article-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1C2440;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.radar-article-title:hover {
    color: #0f766e;
}

.radar-relevance {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7FFF7C 0%, #5eeb5a 100%);
    color: #1C2440;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.radar-insight {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.radar-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.radar-access-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.radar-access-status.libre {
    color: #10b981;
}

.radar-access-status.partiel {
    color: #f59e0b;
}

.radar-access-status.paywall {
    color: #ef4444;
}

.radar-engagement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.radar-engagement i {
    color: #f59e0b;
}

/* Source indicator */
.radar-source-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: sourcePulse 2s ease-in-out infinite;
}

.radar-source-indicator.reglementation {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.radar-source-indicator.marche {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.radar-source-indicator.presse {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

@keyframes sourcePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Barre de filtres */
.radar-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.radar-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.radar-filters-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1C2440;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radar-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.radar-filter-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
}

.radar-filter-tag:hover {
    border-color: #0f766e;
    color: #0f766e;
    transform: translateY(-2px);
}

.radar-filter-tag.active {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: white;
    border-color: #0f766e;
}

.radar-sort-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.radar-sort-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
}

.radar-sort-btn:hover {
    background: #e5e7eb;
    color: #1C2440;
}

.radar-sort-btn.active {
    background: #F9E79F;
    color: #1C2440;
}

.radar-cta-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.radar-cta-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.radar-cta-btn.primary {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.radar-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.4);
}

.radar-cta-btn.secondary {
    background: white;
    color: #0f766e;
    border: 2px solid #0f766e;
}

.radar-cta-btn.secondary:hover {
    background: #0f766e;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .radar-title {
        font-size: 1.75rem;
    }
    
    .radar-grid {
        grid-template-columns: 1fr;
    }
    
    .radar-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .radar-filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Animation d'entrée */
.radar-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.radar-card:nth-child(1) { animation-delay: 0.1s; }
.radar-card:nth-child(2) { animation-delay: 0.2s; }
.radar-card:nth-child(3) { animation-delay: 0.3s; }
.radar-card:nth-child(4) { animation-delay: 0.4s; }
.radar-card:nth-child(5) { animation-delay: 0.5s; }
.radar-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge "Hot Topic" */
.radar-hot-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #F9E79F 0%, #f59e0b 100%);
    color: #1C2440;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(249, 231, 159, 0.5);
    animation: hotPulse 2s ease-in-out infinite;
}

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

/* Loading state */
.radar-loading {
    text-align: center;
    padding: 3rem;
}

.radar-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid #e5e7eb;
    border-top-color: #0f766e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
