.articles-full-width-hero {
  position: relative;
  width: 100vw; /* S'étale sur toute la largeur de l'écran */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 30vh; /* Hauteur généreuse de la section */
  max-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.articles-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.articles-full-width-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 65%; /* Cadrage élégant */
  display: block;
}

.articles-full-width-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.articles-overlay-content {
  max-width: 500px;
  margin-left: 20px; /* Décale le texte vers la droite à l'intérieur du container */
  text-align: left;
}

.articles-overlay-content h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.articles-hero-separator {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 15px 0;
}
.articles-hero-description {
  font-family: "montserrat", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px;
}

.articles-podcast-banner {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 20px 30px;
  /* Retrait des largeurs 100vw pour qu'elle respecte les conteneurs du site */
  max-width: 1200px;
  margin: 40px auto; /* Centre la bannière et crée un espace détaché du hero et du reste */
  border-radius: 12px; /* Arrondis pour un effet "carte / encart" */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Ombre portée pour bien la détacher du fond */
  position: relative;
}

.articles-podcast-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.articles-podcast-info {
  flex: 1;
}

.articles-podcast-info h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #d4b8b3;
}

.articles-podcast-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.articles-podcast-img-wrapper {
  flex: 1;
  max-width: 280px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
}

.articles-podcast-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.articles-podcast-buttons {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.articles-podcast-btn {
  font-family: "Montserrat", sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(
    255,
    255,
    255,
    0.15
  ); /* Fond légèrement transparent et élégant */
  color: #fff; /* Texte blanc pour contraster avec la bannière colorée */
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  width: 250px;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Fine bordure élégante */
  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    border-color 0.3s ease;
}

.articles-podcast-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.articles-podcast-btn i,
.articles-podcast-icon {
  font-size: 22px; /* Modifie cette taille à ta convenance (ex: 24px, 26px) */
  flex-shrink: 0;
  display: inline-flex; /* Remplace block par inline-flex pour respecter la taille de police */
  align-items: center;
  justify-content: center;
}

/* Permet à la bannière podcast de s'étaler sur toute la largeur de la grille */
.articles-grid-container .articles-podcast-banner {
  grid-column: 1 / -1;
  margin: 1.5rem 0;
}
/* ==========================================
   2. LES BOUTONS DE VUE (Grille / Liste en petits carrés)
   ================================---------- */
.articles-view-buttons {
  display: flex;
  gap: 8px;
}

.articles-view-btn {
  background-color: #f4f4f4; /* On remet le fond carré */
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #555;
}

.articles-view-btn:hover {
  background-color: #e2e2e2;
}

.articles-view-btn.active {
  background-color: var(--secondary-color); /* Fond coloré quand actif */
  color: #fff; /* Icône blanche quand actif */
}

/* ==========================================
   1. LA BARRE DE CONTRÔLE (Filtres + Vues)
   ================================---------- */
.articles-content-section {
  padding: 50px 0;
}

.articles-controls-bar {
  display: flex;
  justify-content: space-between; /* Pousse les filtres à gauche et les vues à droite */
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 20px;
}

/* Style des boutons de filtres par thèmes */
/* ==========================================
   1. LES FILTRES PAR THÈMES (Texte épuré + Trait animé)
   ================================---------- */
.articles-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 25px; /* Espace entre les catégories */
}

.articles-filter-btn {
  background: none;
  border: none;
  padding: 5px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  color: #777;
  position: relative;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.articles-filter-btn:hover {
  color: var(--secondary-color);
}

/* Le trait animé sous les filtres */
.articles-filter-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease-in-out;
}

.articles-filter-btn:hover::after {
  width: 100%;
}

.articles-filter-btn.active {
  color: var(--secondary-color);
  font-weight: 600;
}

.articles-filter-btn.active::after {
  width: 100%;
}

/* ==========================================
   2. LES BOUTONS DE VUE (Grille / Liste en petits carrés)
   ================================---------- */
.articles-view-buttons {
  display: flex;
  gap: 8px;
}

.articles-view-btn {
  background-color: #f4f4f4; /* On remet le fond carré */
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #555;
}

.articles-view-btn:hover {
  background-color: #e2e2e2;
}

.articles-view-btn.active {
  background-color: var(--secondary-color); /* Fond coloré quand actif */
  color: #fff; /* Icône blanche quand actif */
}

/* ==========================================
   2. LE CONTENEUR DES ARTICLES (Mode Grille par défaut)
   ================================---------- */
.articles-grid-container {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(320px, 1fr)
  ); /* Grille responsive automatique */
  gap: 30px;
}

/* Style d'une carte d'article (Mode Grille) */
.articles-card {
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.articles-card-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1; /* Place la zone cliquable au-dessus de tout le reste */
}

.articles-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.articles-card-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.articles-card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100px; /* Ajuste la taille selon ton logo */
  height: auto;
  z-index: 2; /* Pour s'assurer qu'il passe bien au-dessus de l'image */
  /* Optionnel : un fond semi-transparent si ton logo a besoin de contraste */
}

.articles-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.articles-card:hover .articles-card-img {
  transform: scale(1.05);
}

.articles-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.articles-card-category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.articles-card-title {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.articles-card-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.articles-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.articles-card-link:hover {
  text-decoration: underline;
}

/* ==========================================
   3. LE MODE LISTE (Déclenché par JavaScript)
   ================================---------- */
/* Quand le conteneur aura la classe .is-list-view, on change tout en mode horizontal */
.articles-grid-container.is-list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.articles-grid-container.is-list-view .articles-card {
  flex-direction: row; /* Met l'image à gauche et le texte à droite */
  align-items: center;
}

.articles-grid-container.is-list-view .articles-card-img-wrap {
  width: 250px; /* Largeur fixe pour l'image en mode liste */
  height: 180px;
  flex-shrink: 0;
}

.articles-grid-container.is-list-view .articles-card-content {
  padding: 20px 30px;
}

/* ==========================================
   4. RESPONSIVE MOBILE
   ================================---------- */
@media (max-width: 768px) {
  .articles-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .articles-view-buttons {
    display: none;
  }

  /* Sur mobile, on force les cartes en mode grille normale même si le mode liste était actif pour éviter l'écrasement */
  .articles-grid-container.is-list-view .articles-card {
    flex-direction: column;
  }
  .articles-grid-container.is-list-view .articles-card-img-wrap {
    width: 100%;
    height: 180px;
  }

  .articles-full-width-hero {
    height: 40vh; /* Hauteur généreuse de la section */
  }
}

@media (max-width: 900px) {
  .articles-podcast-banner {
    margin: 20px 15px; /* Marges sur mobile */
    padding: 25px 20px;
  }
  .articles-podcast-container {
    flex-direction: column;
    text-align: center;
  }
  .articles-podcast-buttons {
    align-items: center;
    width: 100%;
  }
  .articles-podcast-btn {
    width: 100%;
    max-width: 260px;
  }
  .articles-podcast-img-wrapper {
    max-width: 100%;
    width: 100%;
  }
}
