#ailleurs2 {
  background-color: #f5f5f5;
  padding: 2% max(20px, 1%);
  width: 100%;
  position: relative; /
}
.sponsored-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

@media (max-width: 767px) {
  .sponsored-badge {
    position: static;
    display: inline-flex;
    margin: 10px 0 .5rem 10px;
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}
.articles-container {
  max-width: 1550px;
  margin: 0 auto;
}

.header-content {
  text-align: center;
  margin-bottom: 2rem;
}

.main-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 25px;
  position: relative;
  padding-left: 15px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.main-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 85%;
  background-color: #e65f0d;
  position: absolute;
  left: -5px;
  top: 0;
}

.subtitle {
  font-size: 1rem;
  color: #666;
}

.articles-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, 1fr);
}

.article-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.article-image {
  width: 100%;
  overflow: hidden;
}

.article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image svg {
  width: 40px;
  height: 40px;
  color: #999;
}

.article-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
  line-height: 1.3;
  font-weight: 600;
}

.article-meta {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.article-excerpt {
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.4;
  font-size: 0.9rem;
}

.read-more {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: #e65f0d;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s ease;
  font-size: 0.9rem;
  margin-top: auto;
}

.read-more:hover {
  background: #d35400;
}

/* Responsive Design */
@media (min-width: 768px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  #ailleurs2 {
    padding: 2% max(20px, 1%) 7%;
  }
  #ailleurs2 .article-title {
    margin-bottom: -12px;
  }
  #ailleurs2  .main-title {
    font-size: 1.5em;
    margin-bottom: -20px;
    margin-top: 10px;
  }

  .article-card:last-child {
    display: none;
  }
}



/* du plus pour les pubs */

/* Forcer line-height 0 pour les pubs Ailleurs */
.ailleurs-ad-container {
  line-height: 0 !important;
  font-size: 0 !important;
  overflow: hidden;
}

.ailleurs-ad-container div[data-lebar-trackid],
.ailleurs-ad-container div[id^="lebar-"] {
  line-height: 0 !important;
  font-size: 0 !important;
  height: 100%;
}

.ailleurs-ad-container img {
  display: block;
  width: 100%;
  height: auto;
}