.article-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin: 40px auto;
    max-width: 1200px;
}

.article-card {
    width: calc(33.333% - 20px);
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.article-content {
    padding: 20px;
    flex: 1;
}

.article-content h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 10px;
}

.article-content h3 a {
    color: #222;
    text-decoration: none;
}

.article-content h3 a:hover {
    color: #0073aa;
}

.article-excerpt {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #0073aa;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .article-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .article-card {
        width: 100%;
    }
}

@media only screen and (max-width: 767px) {
    .article-grid {
        margin-top: 40px!important;
    }
}

.avia_transform a:hover .image-overlay {
    display: none!important;
}

.article-image a {
    display: initial !important;
}

.article-meta {
  display: inline-block;
  background-color: #233e87;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.1em 0.4em;
  margin: 0.1em 0 0.9em 0;
  border-radius: 5px;
  text-transform: uppercase;
}
.hero-article {
  position: relative;
  max-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0.2));
  z-index: 1;
}

.hero-content {
  position: absolute;
  z-index: 2;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Nouveau style pillule */
.hero-title {
  background-color: rgba(35, 62, 135, 0.6); /* #233E87 avec opacité */
  padding: 0.5em 0.9em;
  border-radius: 5px;
  font-weight: bold;
  margin: 0;
  display: inline-block;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-content h1{
    color: white!important;
}

.hero-subtitle {
  margin-top: 15px;
  background-color: rgba(35, 62, 135, 0.6); /* #233E87 avec opacité */
  padding: 0.5em 0.9em;
  border-radius: 5px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
