body {
  background: #0f0f0f;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
}

header {
  position: relative;           /* pour placer le logo en absolu */
  text-align: center;
  padding: 20px;
  color: #00ff80;
  font-size: 1.8rem;
  font-weight: bold;
  border-bottom: 2px solid #00ff80;
  max-width: 900px;
  margin: 0 auto; /* Centrer le header horizontalement */
}

.home-link {
  position: absolute;           /* logo en haut à gauche */
  left: 20px;
  top: 20px;
}

.logo {
  height: 42px; /* Taille normale pour PC */
  vertical-align: middle;
  cursor: pointer;
  transition: transform 0.2s ease;
  max-width: none !important;
  width: auto !important;
}

.logo:hover {
  transform: scale(1.1);
}

@media screen and (max-width: 480px) {
  .logo {
    height: 60px !important; /* Forcer la taille plus grande sur mobile */
    width: auto !important;
  }
}

#news-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  max-width: 900px;
  margin: auto;
}

.article {
  display: flex;
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 255, 213, 0.1);
  transition: transform 0.2s;
}

.article:hover {
  transform: scale(1.01);
}

.article img {
  width: 180px;
  height: 120px;
  object-fit: cover;
}

.article-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-content h2 {
  margin: 0;
  font-size: 18px;
  color: #00ff80;
}

.article-content h2 a {
  color: #00ff80;
  text-decoration: none;
}

.article-content h2 a:hover {
  text-decoration: underline;
}

.article-content p {
  margin: 10px 0;
  font-size: 14px;
  color: #ccc;
}

.meta {
  font-size: 12px;
  color: #777;
}
