/* --- BASE & TYPOGRAPHIE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.7;
  padding-top: 260px; 
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- EN-TÊTE WEBA OFFICIEL (NOIR) --- */
.weba-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999; 
  background-color: #000000;
  color: #ffffff;
  border-bottom: 2px solid #000;
  padding-bottom: 25px; 
}

.top-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
}

.top-bar-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; 
}

.top-bar-center {
  justify-content: center;
}

/* 2. Main Navigation */
.main-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 20px 18px 20px; 
  display: flex;
  justify-content: center; 
  align-items: center;
  flex-direction: column;
  position: relative; 
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-link {
  text-decoration: none;
  margin-bottom: 5px;
}

.site-logo {
  max-height: 75px;
  width: auto; 
  display: block;
  margin: 0 auto;
}

.logo-subtitle {
  font-size: 13px;
  color: #ffffff;
  margin-top: 5px;
  display: block;
}

/* --- MENU DESKTOP (CORRECTION ICI) --- */
.desktop-menu ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    padding: 0;
    width: 100%;
    max-width: 950px; 
}

.flex-spacer {
    flex-grow: 1;
}

.menu-group-right {
    display: flex;
    align-items: center;
    gap: 20px; 
}

/* Espace "Nous connaitre" des 3 premiers */
.desktop-menu ul li:nth-child(4) {
  margin-left: 20px; 
}

.desktop-menu ul li:nth-child(6) {
    margin-left: 50px; 
}

/* Taille réduite des 3 premiers liens */
.desktop-menu ul li a.nav-item.big {
    font-size: 16px !important; 
    font-weight: 500 !important;
    color: #ffffff !important;
}

/* Taille des liens "Nous connaitre" et "Contact" */
.desktop-menu ul li a, .menu-group-right a {
    font-size: 13px;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap; 
}

.separator {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    padding: 0 15px; 
}

.cyber-link {
    margin-right: -15px; 
}

/* Espace supplémentaire pour séparer les deux groupes de menu */
.menu-spacer {
    width: 55px; 
}

.desktop-menu a:hover, .menu-group-right a:hover {
  border-bottom: 2px solid #007bff;
}

.title-welcome {
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin: 5px 20px 9px 20px; 
  display: block;
}

/* 3. Bouton Audit centré en bas */
.header-action-wrapper {
  position: absolute;
  bottom: -22px; 
  left: 0;
  width: 100%;
  display: flex !important;
  justify-content: center;
  z-index: 10;
}

.btn-audit {
  background-color: #007bff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 30px; 
  border: 2px solid #ffffff; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}

.btn-audit:hover {
  background-color: #0056b3;
}

/* --- BURGER MENU STYLE --- */
.burger-menu {
  display: none; 
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10000; 
  position: absolute;
  right: 20px;
  top: 15px;
}

.burger-menu span {
  width: 30px;
  height: 3px;
  background: #ffffff;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

/* --- EN-TÊTE DE LA PAGE D'ACCUEIL & FILTRES --- */
.home-hero {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 80px 0 40px 0; 
  margin-bottom: 40px;
  text-align: center;
}

.home-hero h1 {
  font-size: 32px;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 10px;
}

.home-hero p {
  font-size: 18px;
  color: #475569;
  margin-bottom: 25px;
}

.filters {
  display: flex;
  justify-content: center;
  align-items: center; /* NOUVEAU pour aligner avec le pipe */
  gap: 15px;
  flex-wrap: wrap;
  font-size: 15px;
  color: #334155;
  font-weight: 500;
}

.filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  transition: background 0.2s;
}

.filters label:hover {
  background: #e2e8f0;
}

/* NOUVEAUX STYLES POUR LE SÉPARATEUR DE FILTRE ET LE BOUTON ANCIENS ARTICLES */
.filter-divider {
  color: #cbd5e1;
  font-weight: 300;
  display: flex;
  align-items: center;
  margin: 0 5px;
}

.filters label.label-anciens {
  background: #ffffff;
  border: 1px solid #94a3b8;
  color: #475569;
  font-weight: 600;
}

.filters label.label-anciens:hover {
  background: #f1f5f9;
}

/* --- GRILLE D'ARTICLES --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.article-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.article-card h3 {
  font-size: 19px;
  color: #0f172a;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.article-excerpt {
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: #64748b;
}

.btn-lire {
  background-color: #0046c7;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: background-color 0.2s ease;
}

.btn-lire:hover {
  background-color: #0037a5;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #475569;
}

/* --- BADGES --- */
.card-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 25px; 
  flex-wrap: wrap;
}

.meta-badge-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px; 
  flex-wrap: wrap;
}

.badge {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.badge-alerte {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-actualite {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-audience {
  background-color: #f1f5f9;
  color: #475569;
}

.meta-date {
  font-size: 14px;
  color: #64748b;
  margin-left: 5px;
}

/* --- PAGE DE LECTURE --- */
.main-content {
  max-width: 1200px;
  margin: 60px auto 40px auto;
  padding: 0 20px;
}

.btn-retour {
  display: inline-block;
  margin-bottom: 20px;
  color: #0046c7;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

.btn-retour:hover {
  text-decoration: underline;
  color: #0037a5;
}

.article-header {
  margin-bottom: 40px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 30px;
}

.article-header h1 {
  font-size: 38px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.article-intro {
  font-size: 19px;
  color: #475569;
  font-weight: 400;
  line-height: 1.6;
}

.grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.article-body {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.article-body h2 {
  font-size: 24px;
  color: #0f172a;
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-body p {
  margin-bottom: 20px;
  color: #334155;
}

.article-body ul {
  margin-bottom: 25px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 8px;
  color: #334155;
}

.sidebar-cta {
  position: sticky;
  top: 360px; 
}

.cta-box {
  background-color: #0f172a;
  color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
  border-top: 4px solid #0046c7;
}

.cta-box h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 600;
}

.cta-box p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-cta-full {
  display: block;
  text-align: center;
  background-color: #0046c7;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s ease;
}

.btn-cta-full:hover {
  background-color: #0037a5;
}

/* --- PIED DE PAGE --- */
.site-footer {
  font-size: 13px;
  background-color: #000000;
  color: #94a3b8;
  padding: 20px 20px;
  margin-top: 80px;
  border-top: 1px solid #1e293b;
  text-align: center;
}

.footer-txt {
  font-size: 13px;
  margin-top: 1px;
}

.footer-container a {
  font-size: 13px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.footer-container a:hover {
  text-decoration: underline;
}

.footer-sub {
  font-size: 12px;
  color: #7e8186;
  margin-top: 2px;
  margin-bottom: 20px;
}

.footer-contact{
  font-size: 14px;
  color: #ffffff;
  margin-top: 2px;
  margin-bottom: 25px;
}

/* --- RESPONSIVE MOBILE AVEC BURGER MENU --- */
@media (max-width: 768px) {
  body {
    padding-top: 240px; 
  }

  .title-welcome {
    font-size: 18px; 
    margin: 10px 20px 20px 20px;
  }

  .main-nav-container {
    min-height: 45px; 
    padding: 5px 20px;
  }

  .burger-menu {
    display: flex;
    top: 10px; 
    left: 50%;
    transform: translateX(-50%);
  }

  .desktop-menu {
    position: absolute;
    top: 60px; 
    left: 0;
    width: 100%;
    background-color: #000000;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #333;
    display: none; 
    padding: 20px 0;
    z-index: 100; 
    box-shadow: 0px 15px 15px rgba(0,0,0,0.5); 
  }

  .desktop-menu.active {
    display: flex;
  }

  .desktop-menu ul {
    flex-direction: column;
    gap: 15px;
  }

  .menu-group-right {
    flex-direction: column;
    gap: 15px;
  }

  .desktop-menu ul li:nth-child(4), .desktop-menu ul li:nth-child(6) {
    margin-left: 0; 
  }

  .desktop-menu ul li a.nav-item.big {
    font-size: 18px !important;
  }

  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg);
  }
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .grid-layout, .articles-grid {
    grid-template-columns: 1fr; 
  }

  .article-header h1 {
    font-size: 26px; 
  }

  .article-body {
    padding: 20px;
  }

  .home-hero {
    padding-top: 100px; 
  }

  .home-hero h1 {
    font-size: 24px;
  }

  .separator, .menu-spacer, .filter-divider {
    display: none;
  }

  .main-content {
    margin-top: 100px; 
  }
  
}