/* Variables CSS personnalisées */
:root {
  --primary-color: #4e73df;
  --secondary-color: #1cc88a;
  --accent-color: #f6c23e;
  --danger-color: #e74a3b;
  --light-color: #f8f9fc;
  --dark-color: #5a5c69;
  --font-family: "Poppins", sans-serif;
}

/* Styles pour la section veille */
.veille {
  padding: 100px 50px;
  min-height: 100vh;
}

.veille-hero {
  text-align: center;
  margin-bottom: 80px;
  padding: 60px 0;
  background: linear-gradient(
    135deg,
    rgba(78, 115, 223, 0.1) 0%,
    rgba(28, 200, 138, 0.1) 100%
  );
  border-radius: 20px;
  border: 1px solid rgba(78, 115, 223, 0.2);
}

.veille-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #fff, var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.veille-hero p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Styles pour les statistiques */
.veille-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.stat-card.cache-active {
  border-color: var(--secondary-color);
  background: rgba(28, 200, 138, 0.1);
}

.stat-card.cache-refresh {
  border-color: var(--accent-color);
  background: rgba(246, 194, 62, 0.1);
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Informations de cache */
.cache-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cache-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.cache-status.from-cache {
  color: var(--secondary-color);
}

.cache-status.fresh-data {
  color: var(--accent-color);
}

.cache-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.next-update {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Navigation par onglets */
.veille-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 15px;
}

.tab-btn {
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(78, 115, 223, 0.3);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Grille d'articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.article-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.article-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(78, 115, 223, 0.2);
}

.category-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-badge.cybersecurite {
  background: var(--danger-color);
}

.category-badge.ia {
  background: var(--secondary-color);
}

.category-badge.dev {
  background: var(--accent-color);
  color: #333;
}

.category-badge.business {
  background: var(--primary-color);
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-title a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-title a:hover {
  color: var(--secondary-color);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.article-source {
  font-weight: 500;
  color: var(--primary-color);
}

.article-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: white;
  transform: translateX(5px);
}

/* Section derniers articles */
.latest-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

/* Stats en temps réel */
.veille-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .veille {
    padding: 50px 20px;
  }

  .veille-hero h1 {
    font-size: 36px;
  }

  .veille-hero p {
    font-size: 18px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .veille-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-btn {
    width: 200px;
  }
}

/* Style pour les icônes de catégories */
.category-icon {
  margin-right: 8px;
}
