.news-page {
  padding: 2rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent-color, #00ffff), var(--primary-color, #ff00ff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--accent-color, #00ffff); /* Fallback pour les navigateurs ne supportant pas background-clip */
}

.page-description {
  color: var(--font-color-secondary);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.watch-notice {
  background: rgba(0, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  max-width: 700px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0, 255, 255, 0.15), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.watch-notice i {
  font-size: 1.5rem;
  color: var(--accent-color);
  flex-shrink: 0;
}

.watch-notice p {
  margin: 0;
  color: var(--font-color);
  line-height: 1.5;
}

/* Navigation Tabs */
.news-categories {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.category-tab {
  padding: 0.75rem 1.5rem;
  color: var(--font-color);
  text-decoration: none;
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 20, 30, 0.5);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.category-tab:hover::before {
  left: 100%;
}

.category-tab:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.category-tab.active {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.category-tab i {
  font-size: 1.2rem;
}

/* News Sections */
.news-section {
  display: none;
}

.news-section.active {
  display: block;
}

.news-section h2 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--accent-color);
  text-align: center;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

/* News Cards - Neon Style */
.news-card {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.news-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color), var(--accent-color));
  border-radius: 12px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.4);
  background: rgba(25, 25, 35, 0.7);
}

.news-card:hover::before {
  opacity: 0.3;
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-card-header time {
  font-size: 0.85rem;
  color: var(--font-color-secondary);
  opacity: 0.8;
}

.news-source-badge {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  color: var(--bg-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.news-category-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.news-category-badge.cybersecurity {
  background: linear-gradient(135deg, #ff006e, #8338ec);
  color: white;
}

.news-category-badge.webdev {
  background: linear-gradient(135deg, #06ffa5, #00b4d8);
  color: white;
}

.news-card-title {
  margin-bottom: 1rem;
}

.news-card-title a {
  color: var(--font-color);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 400;
  transition: color 0.3s ease;
  display: inline-block;
}

.news-card-title a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.news-card-summary {
  color: var(--font-color-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}

.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

.read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.read-more:hover::after {
  width: 100%;
}

.no-news {
  text-align: center;
  color: var(--font-color-secondary);
  padding: 3rem;
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  margin: 2rem 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
.news-page-footer {
  margin-top: 4rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--card-border);
  background: linear-gradient(180deg, transparent, rgba(0, 255, 255, 0.02));
}

.footer-info {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.footer-info h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 1.5rem;
}

.footer-info p {
  color: var(--font-color-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-info strong {
  color: var(--font-color);
}

/* Pagination Controls */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 2rem 1rem;
}

.pagination-btn {
  background: rgba(20, 20, 30, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: var(--font-color);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.pagination-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.pagination-btn:hover::before {
  left: 100%;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-btn:disabled:hover {
  transform: none;
  border-color: rgba(0, 255, 255, 0.3);
}

.pagination-info {
  background: rgba(20, 20, 30, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  color: var(--font-color);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 80px;
  text-align: center;
}

.pagination-info .current-page {
  color: var(--accent-color);
  font-weight: 600;
}

/* News cards pagination state */
.news-card.hidden-by-pagination {
  display: none !important;
}

/* Animations */
@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.5); }
  50% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.8); }
}

/* Light Theme Overrides */
[data-theme="light"] .news-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 150, 150, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .news-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 150, 150, 0.4);
  box-shadow: 0 8px 25px rgba(0, 150, 150, 0.2), 0 4px 15px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .watch-notice {
  background: rgba(0, 150, 150, 0.05);
  border: 1px solid rgba(0, 150, 150, 0.2);
  box-shadow: 0 2px 10px rgba(0, 150, 150, 0.1), 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .category-tab {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 150, 150, 0.2);
}

[data-theme="light"] .category-tab:hover {
  border-color: rgba(0, 150, 150, 0.4);
  box-shadow: 0 0 10px rgba(0, 150, 150, 0.2);
}

[data-theme="light"] .category-tab.active {
  background: linear-gradient(135deg, rgba(0, 150, 150, 0.1), rgba(150, 0, 150, 0.1));
  border-color: var(--accent-color);
}

[data-theme="light"] .no-news {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 150, 150, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .news-source-badge {
  background: rgba(0, 120, 120, 0.15);
  color: #004040;
  border: 1px solid rgba(0, 120, 120, 0.3);
  font-weight: 600;
}

[data-theme="light"] .news-category-badge.cybersecurity {
  background: rgba(100, 70, 200, 0.15);
  color: #4c1d95;
  border: 1px solid rgba(100, 70, 200, 0.3);
}

[data-theme="light"] .news-category-badge.webdev {
  background: rgba(12, 140, 100, 0.15);
  color: #064e3b;
  border: 1px solid rgba(12, 140, 100, 0.3);
}

[data-theme="light"] .news-card-footer {
  border-top: 1px solid rgba(0, 150, 150, 0.15);
}

[data-theme="light"] .tag {
  background: rgba(240, 240, 240, 0.8);
  border: 1px solid rgba(200, 200, 200, 0.5);
  color: #333;
}

[data-theme="light"] .tag:hover {
  background: rgba(230, 230, 230, 0.9);
  border-color: rgba(0, 150, 150, 0.3);
  box-shadow: 0 0 8px rgba(0, 150, 150, 0.1);
}

[data-theme="light"] .pagination-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 150, 150, 0.3);
}

[data-theme="light"] .pagination-btn:hover:not(:disabled) {
  border-color: rgba(0, 150, 150, 0.5);
  box-shadow: 0 0 15px rgba(0, 150, 150, 0.3);
}

[data-theme="light"] .pagination-info {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 150, 150, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-categories {
    flex-direction: column;
    align-items: center;
  }
  
  .category-tab {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .watch-notice {
    flex-direction: column;
    text-align: center;
  }
}