/* CORPS DE LA PAGE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: #0a0a0a;
  color: #e6ecef;
  width: 100%;
}

/* HEADER */
/* ------------------------------------------------------------------ */

.header {
  width: 100%;
  background-color: #0a0a0a;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 2px solid #cccccc;
}

.header-topbar {
  background-color: #111111;
  color: #ffffff;
  font-size: 12px;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 2px solid #cccccc;
}

.topbar-right a {
  margin-left: 15px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.topbar-right a:hover {
  background-color: #ffffff;
  color: #000000;
  padding: 2px 6px;
  border-radius: 4px;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  width: 100%;
}

.logo img {
  height: 50px;
  width: 50px;
  border: 2px solid #cccccc;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-list {
  display: flex;
  gap: 45px;
  list-style: none;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 14px;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: #e6ecef;
  color: #000000;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1001;
}

/* CONTENU VEILLE */
/* ------------------------------------------------------------------ */

.container {
  max-width: 1140px;
  margin: auto;
  padding: 20px 20px 40px;
  width: 100%;
}

.page-title {
  text-align: center;
  font-size: 80px;
  line-height: 1.05;
  margin: 12px auto 16px;
  font-weight: 800;
  color: #e6ecef;
}

.page-title::after {
  content: "";
  display: block;
  width: min(100%, 1140px);
  height: 2px;
  margin: 12px auto 0;
  background-color: #bfdfff;
}

.title {
  font-size: 35px;
  color: #e6ecef;
  margin-top: 80px;
  margin-bottom: 30px;
}

.title span {
  color: #bfdfff;
}

.bloc-presentation,
.bloc-articles {
  border: 2px solid #bfdfff;
  border-radius: 12px;
  background-color: #000000;
  width: 100%;
  padding: 30px 20px;
  margin-bottom: 35px;
}

.sources-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  margin-bottom: 35px;
  align-items: center;
  gap: 18px;
}

.sources-logos img {
  width: 95px;
  height: 95px;
  justify-self: center;
  object-fit: contain;
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 10px;
}

.intro-section {
  font-size: 18px;
  color: #e6ecef;
  line-height: 1.8;
  text-align: left;
}

.liste-sources {
  list-style: none;
  margin-top: 20px;
}

.liste-sources li {
  font-size: 17px;
  line-height: 1.8;
  color: #e6ecef;
}

.liste-sources li::before {
  content: "- ";
  color: #bfdfff;
}

.source {
  font-weight: 600;
}

.source.fr {
  color: #bfdfff;
}

.source.com {
  color: #ffffff;
}

.articles-title {
  font-size: 26px;
  color: #e6ecef;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.articles-title::before {
  content: "| ";
  color: #bfdfff;
}

/* CARTES ARTICLES */
/* ------------------------------------------------------------------ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-item {
  background-color: #f4f6f8;
  color: #111111;
  border: 2px solid #bfdfff;
  border-radius: 14px;
  padding: 22px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(191, 223, 255, 0.35);
}

.news-card-top {
  display: grid;
  grid-template-columns: 70px 1fr;
  column-gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.news-card-left {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-card-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 3px;
  padding: 3px;
}

.news-card-number {
  color: #000000;
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

.news-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 3px;
}

.news-card-source {
  color: #000000;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 12px;
}

.news-card-infos {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.news-card-date {
  color: #000000;
  font-size: 12px;
}

.news-item h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.news-item h3 a {
  color: #111111;
  text-decoration: none;
}

.news-item h3 a:hover {
  color: #2a6fbb;
}

.news-description {
  background-color: #eef1f4;
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 14px;
  color: #222222;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 18px;
  flex-grow: 1;
}

.news-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  background-color: #0f1c2e;
  border: none;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.news-link:hover {
  background-color: #2a6fbb;
}

.loading-news,
.error-news {
  grid-column: 1 / -1;
  font-size: 18px;
  color: #e6ecef;
  text-align: center;
  padding: 30px;
}

/* RESPONSIVE */
/* ------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-main {
    padding: 12px 20px;
  }

  .nav-list {
    gap: 20px;
  }

  .container {
    padding: 24px 16px;
  }

  .page-title {
    font-size: 36px;
  }

  .title {
    font-size: 24px;
    margin-top: 45px;
  }

  .bloc-presentation,
  .bloc-articles {
    padding: 18px 10px;
  }

  .sources-logos {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 18px;
  }

  .sources-logos img {
    width: 75px;
    height: 75px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .intro-section {
    font-size: 16px;
    text-align: justify;
  }

  .news-item {
    min-height: auto;
  }

  .news-card-top {
    grid-template-columns: 60px 1fr;
  }

  .news-card-logo {
    width: 60px;
    height: 60px;
  }
}

/* FOOTER */
/* ------------------------------------------------------- */

.footer {
  background-color: #0e0e0e;
  color: #e6ecef;
  padding: 40px 20px 10px;
  font-size: 14px;
  border-top: 2px solid #cccccc;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.footer-section h4 {
  color: #e6ecef;
  font-size: 15px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 6px;
}

.footer-section a {
  color: #e6ecef;
  text-decoration: none;
  transition: 0.2s ease;
}

.footer-section a:hover {
  color: #cccccc;
}

.footer-bottom {
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
  color: #e6ecef;
}

.footer-divider {
  width: 100%;
  max-width: 4000px;
  margin-top: 15px;
  border-top: 1px solid #cccccc;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #cccccc;
  color: #000000;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top:hover {
  opacity: 1;
  transform: scale(1.1);
}