/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Fira Code', monospace;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg, rgba(0, 183, 235, 0.05), rgba(0, 183, 235, 0.05) 1px, transparent 1px, transparent 20px);
  z-index: -1;
  animation: glitchScan 5s infinite linear;
}

@keyframes glitchScan {
  0% { transform: translateY(-100%); opacity: 0.4; }
  50% { opacity: 0.6; }
  100% { transform: translateY(100%); opacity: 0.4; }
}

/* Navigation */
.menu {
  display: flex;
  justify-content: center;
  background: rgba(26, 26, 26, 0.9);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #00b7eb;
  backdrop-filter: blur(8px);
}

.menu a {
  color: #e0e0e0;
  text-decoration: none;
  padding: 12px 30px;
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  transition: all 0.3s ease;
}

.menu a:hover {
  color: #00b7eb;
  text-shadow: 0 0 10px rgba(0, 183, 235, 0.7);
  transform: scale(1.05);
}

.menu_bouton {
  display: none;
}

.menu_links {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

/* Header */
.header {
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  border-bottom: 3px solid #00b7eb;
}

.glow-text {
  font-family: 'Fira Code', monospace;
  font-size: 3.5em;
  color: #e0e0e0;
  text-shadow: 0 0 15px #00b7eb, 0 0 30px #ff2e2e;
  animation: cyberGlow 3s infinite alternate;
}

@keyframes cyberGlow {
  0% { text-shadow: 0 0 15px #00b7eb, 0 0 30px #ff2e2e; }
  100% { text-shadow: 0 0 25px #00b7eb, 0 0 40px #ff2e2e; }
}

/* Sections */
section {
  padding: 60px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: 'Fira Code', monospace;
  font-size: 3em;
  color: #00b7eb;
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
  border-bottom: 2px solid #ff2e2e;
  padding-bottom: 10px;
}

/* Introduction */
.introduction {
  max-width: 1000px;
  margin: 0 auto 60px;
  background: rgba(26, 26, 26, 0.9);
  border-radius: 15px;
  padding: 40px;
  border: 2px solid #00b7eb;
  box-shadow: 0 0 15px rgba(0, 183, 235, 0.3);
}

.introduction p {
  max-width: 800px;
  margin: 0 auto 20px;
  font-family: 'Fira Code', monospace;
  font-size: 1.1em;
  text-align: center;
  color: #b0b0b0;
}

.ransomware-image {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  margin: 20px auto;
  display: block;
  border: 2px solid #ff2e2e;
  box-shadow: 0 0 15px rgba(0, 183, 235, 0.3);
  transition: transform 0.3s ease;
}

.ransomware-image:hover {
  transform: scale(1.05);
}

.introduction ul {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
  text-align: left;
}

.introduction li {
  margin: 15px 0;
  font-family: 'Fira Code', monospace;
  font-size: 1em;
  position: relative;
  padding-left: 30px;
  color: #e0e0e0;
}

.introduction li:before {
  content: '>>';
  position: absolute;
  left: 0;
  color: #00b7eb;
  font-size: 1.2em;
}

.highlight {
  color: #00b7eb;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(0, 183, 235, 0.5);
}

/* Outils de veille */
.outils-veille {
  padding: 60px 20px;
}

.outils-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.outil {
  background: rgba(26, 26, 26, 0.9);
  padding: 20px;
  border-radius: 15px;
  border: 2px solid #ff2e2e;
  box-shadow: 0 0 15px rgba(0, 183, 235, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  width: 220px;
}

.outil:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 183, 235, 0.7);
}

.outil img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 10px;
}

.outil h3 {
  font-family: 'Fira Code', monospace;
  font-size: 1.5em;
  color: #00b7eb;
  text-shadow: 0 0 10px rgba(0, 183, 235, 0.5);
}

/* Articles */
.articles {
  padding: 60px 20px;
}

.filter {
  text-align: center;
  margin-bottom: 40px;
}

.filter label {
  color: #ff2e2e;
  font-family: 'Fira Code', monospace;
  font-size: 1.3em;
  margin-right: 15px;
}

.filter select {
  padding: 10px 20px;
  font-family: 'Fira Code', monospace;
  font-size: 1.1em;
  background: rgba(26, 26, 26, 0.9);
  color: #00b7eb;
  border: 2px solid #ff2e2e;
  border-radius: 25px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter select:hover {
  border-color: #00b7eb;
  box-shadow: 0 0 15px rgba(0, 183, 235, 0.5);
}

.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.article-card {
  background: rgba(26, 26, 26, 0.9);
  padding: 20px;
  border-radius: 15px;
  border: 2px solid #00b7eb;
  box-shadow: 0 0 15px rgba(0, 183, 235, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 183, 235, 0.7);
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 2px solid #ff2e2e;
}

.article-card h4 a {
  font-family: 'Fira Code', monospace;
  font-size: 1.5em;
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-card h4 a:hover {
  color: #00b7eb;
}

.article-card p {
  font-family: 'Fira Code', monospace;
  font-size: 1em;
  margin-bottom: 10px;
  color: #b0b0b0;
}

.article-card .rating, .article-card .date {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
  color: #ff2e2e;
}

/* Footer */
.footer {
  background: rgba(26, 26, 26, 0.9);
  padding: 40px;
  text-align: center;
  border-top: 2px solid #00b7eb;
  backdrop-filter: blur(8px);
}

.footer-links img {
  width: 50px;
  margin: 0 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-links img:hover {
  transform: scale(1.2);
  filter: brightness(1.3);
}

.legal-links a {
  color: #ff2e2e;
  text-decoration: none;
  margin: 0 10px;
  font-family: 'Fira Code', monospace;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #00b7eb;
}

.footer p {
  margin-top: 20px;
  font-family: 'Fira Code', monospace;
  font-size: 1em;
  color: #00b7eb;
}

/* Responsive */
@media (max-width: 768px) {
  .glow-text { font-size: 3em; }
  .section-title { font-size: 2.5em; }
  .introduction { padding: 30px; max-width: 90%; }
  .ransomware-image { max-width: 450px; }
  .outils-container { gap: 30px; }
  .outil { width: 200px; }
  .article-cards { grid-template-columns: 1fr; gap: 30px; }

  .menu_bouton {
    display: flex;
    align-items: start;
    cursor: pointer;
    position: relative;
    z-index: 100;
  }

  .menu_bouton img {
    height: 30px;
    width: 30px;
    background-color: #ffffff;
    transition: opacity 0.3s ease;
  }

  #menu_close {
    display: none;
    position: absolute;
  }

  .menu_links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .menu_links a {
    display: block;
    padding: 10px;
    text-align: center;
  }

  .menu_active {
    display: flex;
  }
}

@media (max-width: 480px) {
  .menu { padding: 10px 0; }
  .menu a { padding: 8px 20px; font-size: 0.9em; }
  .glow-text { font-size: 2.5em; }
  .section-title { font-size: 2em; }
  .introduction { padding: 20px; max-width: 100%; margin: 0 10px 40px; }
  .ransomware-image { max-width: 100%; }
  .outils-container { gap: 20px; }
  .outil { width: 180px; }
  .article-card img { height: 150px; }
  .article-card h4 a { font-size: 1.3em; }
}