/* --- 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: 325px;
}

.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; /* Très important pour passer au-dessus de tout le reste */
  background-color: #000000;
  color: #ffffff;
  width: 100%;
  border-bottom: 2px solid #000;
  padding-bottom: 35px; /* Espace pour le bouton centré */
}

/* 1. Top Bar */
.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; /* Espace entre gauche et droite sur PC */
  align-items: center;
  gap: 20px;
  flex-wrap: wrap; /* Permet le retour à la ligne sur mobile */
}

/* Variante pour l'index où on centre tout */
.top-bar-center {
  justify-content: center;
}

.top-links-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-menu ul li a.nav-item.big {
    font-size: 20px !important; 
    font-weight: 500 !important;
    color: #ffffff !important;
}

.text-white { color: #ffffff; }
.text-blue { color: #007bff; text-decoration: none; }
.separator { color: #666; font-weight: 300; }

.top-links-right {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.top-links-right a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.top-links-right a svg {
  color: #007bff;
}

.top-links-right a:hover {
  color: #007bff;
}


/* 2. Main Navigation */
.main-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 20px 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Pour mobile */
}

.main-nav-center {
  justify-content: center;
  flex-direction: column;
}

.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; /* Corrigé : l'ancienne valeur était invalide */
  display: block;
  margin: 0 auto;
}

.logo-text-fallback {
  display: none;
  font-size: 45px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1;
}

.logo-subtitle {
  font-size: 13px;
  color: #cccccc;
  margin-top: 5px;
  display: block;
}

.desktop-menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap; /* Pour ne pas casser sur petit écran */
  margin-top: 15px;
}

.desktop-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.desktop-menu a:hover, .desktop-menu li.active a {
  border-bottom: 2px solid #007bff;
}

.arrow {
  font-size: 10px;
}

.title-welcome {
  font-size: 20px;
  color: #ffffff;
  text-align: center;
  margin: 15px 20px 25px 20px;
  display: block;
}

/* 3. Bouton Audit centré en bas */
.header-action-wrapper {
  position: absolute;
  bottom: -22px; 
  left: 0;
  width: 100%;
  display: flex;
  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;
}

/* --- EN-TÊTE DE LA PAGE D'ACCUEIL --- */
.home-hero {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 60px 0 40px 0; /* Plus d'espace en haut à cause du bouton absolu */
  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;
}

/* --- GRILLE D'ARTICLES (ACCUEIL) --- */
.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;
}

/* --- PAGE DE LECTURE DE L'ARTICLE --- */
.main-content {
  max-width: 1200px;
  margin: 60px auto 40px auto;
  padding: 0 20px;
}

.article-header {
  margin-bottom: 40px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 30px;
}

.meta-badge-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.badge-category {
  background-color: #e0f2fe;
  color: #0369a1;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.meta-date {
  font-size: 14px;
  color: #64748b;
}

.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 --- */
.sidebar-cta {
  position: sticky;
  top: 20px;
}

.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 (L'essentiel est ici) --- */
@media (max-width: 768px) {
  .top-bar-container {
    flex-direction: column;
    justify-content: center;
    gap: 15px;
  }
  
  .top-links-right {
    justify-content: center;
  }

  .main-nav-container {
    flex-direction: column;
    padding: 15px;
  }

  .nav-item.big { 
    font-size: 16px; 
  }

  .desktop-menu ul {
    flex-direction: column; /* Empile les liens du menu verticalement */
    gap: 15px;
    width: 100%;
  }

  .desktop-menu a {
    justify-content: center;
    font-size: 16px;
  }

  .grid-layout, .articles-grid {
    grid-template-columns: 1fr; /* Une seule colonne sur mobile */
  }

  .article-header h1 {
    font-size: 26px; /* Texte plus petit sur téléphone */
  }

  .article-body {
    padding: 20px;
  }

  .home-hero {
    padding-top: 50px;
  }

  .home-hero h1 {
    font-size: 24px;
  }
}