/* ========================================
   📡 VEILLE TECHNOLOGIQUE - Experience Theme
   ======================================== */

.veille-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* Background animé */
.veille-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  z-index: 1;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.veille-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.08) 0%,
    rgba(123, 44, 191, 0.06) 40%,
    transparent 70%
  );
  animation: pulseGlow 6s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulseGlow {
  0%, 100% { 
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.veille-section > .container {
  position: relative;
  z-index: 10;
}

/* ==========================================
   📋 SECTION HEADER
   ========================================== */

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 750px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   🏷️ THÉMATIQUES SUIVIES
   ========================================== */

.veille-themes {
  margin-bottom: 60px;
  padding: 40px;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 24px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(0, 212, 255, 0.05);
}

.themes-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.themes-title i {
  font-size: 1.8rem;
  color: #00d4ff;
}

.themes-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-badge::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  border-radius: 50px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.theme-badge.cloud::before {
  background: linear-gradient(135deg, #00d4ff, #0099ff);
}

.theme-badge.security::before {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.theme-badge.devops::before {
  background: linear-gradient(135deg, #00ffaa, #00cc88);
}

.theme-badge.microsoft::before {
  background: linear-gradient(135deg, #0078d4, #005a9e);
}

.theme-badge.opensource::before {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
}

.theme-badge:hover,
.theme-badge.active {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.theme-badge:hover::before,
.theme-badge.active::before {
  transform: translate(-50%, -50%) scale(1);
}

.theme-badge i {
  font-size: 1.3rem;
}

/* ==========================================
   📰 ARTICLES GRID
   ========================================== */

.veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.veille-card {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 24px;
  padding: 35px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(0, 212, 255, 0.03);
}

.veille-card.hidden {
  display: none;
}

.veille-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00d4ff, #7b2cbf, #00d4ff);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.veille-card:hover {
  transform: translateY(-10px);
  border-color: #00d4ff;
  box-shadow: 
    0 20px 60px rgba(0, 212, 255, 0.3),
    0 0 40px rgba(0, 212, 255, 0.2);
}

.veille-card:hover::before {
  transform: scaleX(1);
  animation: gradientSlide 2s ease infinite;
}

@keyframes gradientSlide {
  to { background-position: 200% 0; }
}

/* ==========================================
   🏷️ BADGES (Nouveau, Important, etc.)
   ========================================== */

.veille-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  animation: badgePulse 2s ease-in-out infinite;
}

.veille-badge.new {
  background: linear-gradient(135deg, #00d4ff, #0099ff);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.5);
}

.veille-badge.alert {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
}

.veille-badge.hot {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #000000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

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

/* ==========================================
   📄 CARD CONTENT
   ========================================== */

.veille-header {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.veille-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.8rem;
  flex-shrink: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.veille-icon.cloud {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 212, 255, 0.1));
  color: #00d4ff;
}

.veille-icon.security {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.25), rgba(255, 107, 107, 0.1));
  color: #ff6b6b;
}

.veille-icon.devops {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.25), rgba(0, 255, 170, 0.1));
  color: #00ffaa;
}

.veille-icon.microsoft {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.25), rgba(0, 120, 212, 0.1));
  color: #0078d4;
}

.veille-icon.opensource {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
  color: #ffd700;
}

.veille-icon.automation {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.25), rgba(138, 43, 226, 0.1));
  color: #8a2be2;
}

.veille-card:hover .veille-icon {
  transform: rotate(360deg) scale(1.1);
}

.veille-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.veille-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.veille-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.veille-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.veille-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 20px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.veille-sources {
  padding: 12px 16px;
  background: rgba(0, 212, 255, 0.08);
  border-left: 3px solid #00d4ff;
  border-radius: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.veille-sources strong {
  color: #00d4ff;
}

.veille-sources i {
  color: #00d4ff;
  margin-right: 8px;
}

/* ==========================================
   🏷️ TAGS
   ========================================== */

.veille-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  color: #00d4ff;
  transform: translateY(-3px);
}

/* ==========================================
   🔗 LINK
   ========================================== */

.veille-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00d4ff, #7b2cbf);
  border-radius: 50px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.veille-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
  color: #ffffff;
}

/* ==========================================
   📚 SOURCES SECTION
   ========================================== */

.veille-sources-section {
  padding: 50px;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(0, 212, 255, 0.25);
  border-radius: 28px;
  margin-bottom: 60px;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 40px rgba(0, 212, 255, 0.05);
}

.sources-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 40px;
  text-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

.sources-title i {
  font-size: 2.2rem;
  color: #00d4ff;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.source-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.source-item:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.source-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.source-icon.rss {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 140, 0, 0.1));
  color: #ff8c00;
}

.source-icon.social {
  background: linear-gradient(135deg, rgba(0, 119, 181, 0.2), rgba(0, 119, 181, 0.1));
  color: #0077b5;
}

.source-icon.alert {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
  color: #ff6b6b;
}

.source-icon.podcast {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(138, 43, 226, 0.1));
  color: #8a2be2;
}

.source-icon.newsletter {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
  color: #00d4ff;
}

.source-icon.community {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.2), rgba(0, 255, 170, 0.1));
  color: #00ffaa;
}

.source-content h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.source-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================
   📧 CTA NEWSLETTER
   ========================================== */

.veille-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 50px;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 28px;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 40px rgba(0, 212, 255, 0.08);
}

.cta-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00d4ff, #7b2cbf);
  border-radius: 50%;
  font-size: 2.5rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cta-content {
  flex: 1;
}

.cta-content h4 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #00d4ff, #7b2cbf);
  border: none;
  border-radius: 50px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 212, 255, 0.6);
  color: #ffffff;
}

/* ==========================================
   📱 RESPONSIVE
   ========================================== */

@media (max-width: 991.98px) {
  .veille-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .veille-themes {
    padding: 30px;
  }

  .themes-title {
    font-size: 1.4rem;
  }

  .veille-sources-section {
    padding: 40px;
  }

  .sources-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 767.98px) {
  .veille-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .veille-grid {
    grid-template-columns: 1fr;
  }

  .veille-card {
    padding: 30px;
  }

  .veille-themes {
    padding: 25px;
  }

  .themes-badges {
    flex-direction: column;
  }

  .theme-badge {
    justify-content: center;
    width: 100%;
  }

  .veille-cta {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }

  .cta-content h4 {
    font-size: 1.5rem;
  }

  .veille-sources-section {
    padding: 30px 25px;
  }

  .sources-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.8rem;
  }

  .veille-title {
    font-size: 1.3rem;
  }

  .veille-description {
    font-size: 0.95rem;
  }

  .veille-badge {
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .cta-btn {
    padding: 16px 28px;
    font-size: 1rem;
  }
}

/* ==========================================
   ♿ ACCESSIBILITÉ
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  .veille-section::before,
  .veille-section::after,
  .veille-icon,
  .cta-icon,
  .badgePulse {
    animation: none;
  }
}
