/* ============================================
   RESET GLOBAL + STRUCTURE
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.6;
 
}

.container {
  width: 95%;
  max-width: 1300px;
  margin: auto;
}


/* ================= TOP BAR ================= */
a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   TOP BAR
============================================ */
.top-bar {
  background: #0b1f3a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 8px 20px;
  font-size: 14px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.top-bar .left a {
  margin-right: 22px;
  transition: 0.3s;
  color: #cdd7e6;
}

.top-bar .left a:hover {
  color: #ffffff;
}

.top-bar .right span i {
  margin-right: 4px;
}

.top-bar .right span {
  margin-left: 20px;
}

/* ============================================
   MAIN HEADER
============================================ */
.main-header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  border-bottom: 1px solid #dcdcdc;
  position: sticky;
  top: 38px;
  z-index: 999;
}

.logo img {
  height: 60px;
  object-fit: contain;
}

/* SEARCH */
.search-box {
  display: flex;
  width: 40%;
}

.search-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid #cfd3da;
  border-right: none;
  border-radius: 6px 0 0 6px;
}

.search-box button {
  background: #005bff;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: 0.2s;
}

.search-box button:hover {
  background: #0045c4;
}

/* Header Icons */
.icons i {
  font-size: 22px;
  margin-left: 18px;
  cursor: pointer;
  color: #0b1f3a;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: #0b1f3a;
}

/* ============================================
   NAVIGATION BAR
============================================ */
.nav-bar {
  background: #0b1f3a;
  padding: 10px 0;
  position: sticky;
  top: 103px;
  width: 100%;
  z-index: 998;
}

.nav-bar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

.nav-bar a {
  color: #fff;
  margin: 0 20px;
  font-weight: 500;
  padding-bottom: 4px;
  transition: 0.3s;
  border-bottom: 2px solid transparent;
}

.nav-bar a:hover {
  color: #45c8ff;
  border-bottom: 2px solid #45c8ff;
}

/* ============================================
   MOBILE MENU
============================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 75%;
  height: 100vh;
  background: #0b1f3a;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  transition: 0.4s ease-in-out;
  z-index: 999;
}

.mobile-menu a {
  color: #fff;
  padding: 18px 22px;
  font-size: 18px;
  border-bottom: 1px solid #1d3557;
}

.mobile-menu.active {
  left: 0;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.55);
  z-index: 998;
}

.overlay.active {
  display: block;
}

/* ============================================
   BREAKING NEWS
============================================ */
.breaking-news {
  background: #ff1e00;
  color: #fff;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 155px;
  z-index: 800;
}

.breaking-news .label {
  font-weight: bold;
  margin-right: 12px;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 992px) {
  .search-box {
    width: 32%;
  }
}

@media (max-width: 768px) {
  .search-box {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-bar {
    display: none;
  }

  .breaking-news {
    top: 105px;
  }
}
/* ============================================
   ACTUALITÉS RÉCENTES — SECTION
============================================ */
.articles-section {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 35px;
  font-weight: 800;
  color: #1c1c1c;
}

/* FILTRES */
.filter-buttons {
  text-align: center;
  margin-bottom: 35px;
}

.filter-buttons button {
  background: #e9eef4;
  border: 1px solid #d9dfe6;
  padding: 10px 28px;
  margin: 6px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s ease;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background: #005bff;
  color: #fff;
  border-color: #005bff;
  box-shadow: 0 4px 12px rgba(0, 91, 255, 0.3);
}

/* GRID ARTICLES */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
}

/* ARTICLE CARD */
.article-card {
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
}

.article-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

/* CONTENT ARTICLE */
.article-content {
  padding: 18px;
}

.category {
  display: inline-block;
  background: #005bff;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 12px;
  font-weight: 600;
}

.article-content h3 {
  font-size: 19px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.read-more {
  text-decoration: none;
  color: #005bff;
  font-weight: 600;
}

/* ============================================
   SECTION VIDÉOS / PODCASTS / PUBS
============================================ */
.media-section {
  padding: 50px 0;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 35px;
}

.media-column h3 {
  font-size: 22px;
  margin-bottom: 18px;
}

/* VIDEOS */
.video-wrapper {
  position: relative;
  padding-bottom: 56%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}

.video-box,
.podcast-box,
.ad-box {
  margin-bottom: 20px;
}

/* PUBLICITES */
.ad-box img {
  width: 100%;
  border-radius: 10px;
}

/* PODCAST */
.podcast-box audio {
  width: 100%;
}

/* Lien Voir plus */
.see-all {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #005bff;
}

/* ============================================
   PUBS PREMIUM
============================================ */
.pub-section {
  padding: 50px 0;
}

.pub-banner img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 25px;
}

.pub-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 25px;
}

.pub-box img,
.pub-box video {
  width: 100%;
  border-radius: 10px;
}

/* ============================================
   NEWSLETTER SECTION
============================================ */
.newsletter-section {
  background: #0b1f3a;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.newsletter-section input {
  padding: 12px;
  border-radius: 8px 0 0 8px;
  border: none;
  width: 280px;
}

.newsletter-section button {
  padding: 12px 18px;
  background: #005bff;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

/* ============================================
   FOOTER
============================================ */
/* ===================== FOOTER GLOBAL ===================== */
.footer {
  background: #111;
  color: #ddd;
  padding: 50px 0 20px;
  font-family: "Poppins", sans-serif;
}

.footer-top {
  width: 90%;
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* ===================== ABOUT ===================== */
.footer-about img {
  width: 150px;
  margin-bottom: 15px;
}

.footer-about p {
  line-height: 1.7;
  color: #ccc;
  font-size: 0.95rem;
}

/* ===================== NAVIGATION ===================== */
.footer-nav h4,
.footer-newsletter h4,
.footer-social h4 {
  margin-bottom: 15px;
  color: #fff;
  font-size: 1.2rem;
  position: relative;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin: 8px 0;
}

.footer-nav ul li a {
  text-decoration: none;
  color: #ccc;
  font-size: 0.95rem;
  transition: 0.3s;
}

.footer-nav ul li a:hover {
  color: #ffcc00;
  padding-left: 5px;
}

/* ===================== NEWSLETTER ===================== */
.footer-newsletter p {
  color: #bbb;
  margin-bottom: 10px;
}

.footer-newsletter form {
  display: flex;
  background: #222;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
}

.footer-newsletter input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  background: #222;
  color: #fff;
}

.footer-newsletter button {
  background: #ffcc00;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  color: #111;
  font-size: 1.2rem;
  transition: 0.3s;
}

.footer-newsletter button:hover {
  background: #e2b600;
}

/* ===================== SOCIAL ICONS ===================== */
.footer-social .social-icons a {
  display: inline-block;
  margin-right: 12px;
  width: 40px;
  height: 40px;
  background: #222;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: #ffcc00;
  font-size: 1rem;
  transition: 0.3s;
}

.footer-social .social-icons a:hover {
  background: #ffcc00;
  color: #111;
  transform: translateY(-3px);
}

/* ===================== BOTTOM FOOTER ===================== */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #aaa;
  font-size: 0.9rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social .social-icons a {
    margin: 7px;
  }

  .footer-newsletter form {
    flex-direction: column;
  }

  .footer-newsletter button {
    width: 100%;
  }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
============================================ */
@media (max-width: 992px) {
  .search-box { width: 55%; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .pub-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-header { flex-wrap: wrap; }
  .search-box { width: 100%; margin: 15px 0; }
  .hamburger { display: block; }
  .nav-bar ul { display: none; }
  .mobile-menu { display: flex; }
  .media-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .section-title { font-size: 26px; }
  .articles-grid { grid-template-columns: 1fr; }
}
/* ===================== FOOTER FIX MOBILE ===================== */
@media (max-width: 600px) {

  .footer-top {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 25px;
  }

  .footer-about img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-nav ul li a {
    display: inline-block;
  }

  .footer-newsletter form {
    flex-direction: column !important;
  }

  .footer-newsletter input {
    width: 100%;
    border-radius: 8px 8px 0 0;
  }

  .footer-newsletter button {
    width: 100%;
    border-radius: 0 0 8px 8px;
  }

  .footer-social .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}
/* ============================================
   FIX TOP-BAR MOBILE
============================================ */
@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    text-align: center;
    padding: 10px 0;
  }

  .top-bar .left {
    margin-bottom: 6px;
  }

  .top-bar .left a {
    margin: 0 10px;
    display: inline-block;
  }

  .top-bar .right span {
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
  }
}
/* ====== FIX: Filter buttons responsive & scrollable on mobile ====== */
@media (max-width: 600px) {
  .filter-buttons {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    white-space: nowrap;
    justify-content: flex-start; /* Alignés à gauche */
    scroll-snap-type: x mandatory; /* Smooth scroll */
  }

  .filter-buttons button {
    flex: 0 0 auto; /* Empêche le rétrécissement */
    scroll-snap-align: start;
  }

  /* Cache la barre de scroll (optionnel) */
  .filter-buttons::-webkit-scrollbar {
    display: none;
  }
}
