/* Container général */
.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Grid alternant grandes et petites cartes */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1rem;
}

/* Carte individuelle */
.news-card {
  display: block;
  background: #fff;
  border: 0.1px solid #850808;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.20);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.40);
}
.news-title {
  margin: 0;
  font-size: 1.5rem;
  color: #000;
  transition: color 0.3s ease;
  padding: 1rem;
}
.news-separator {
  width: 80%;
  color: #850808;
  background-color: #850808;
  margin: 0 auto;
}
.news-card:hover .news-title {
  color: #850808;
}

.news-card-body {
  padding: 1rem;
  color: #555;
  line-height: 1.4;
}

.news-card-image-container{
  overflow: hidden;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 0.1px solid #850808;
}
.news-card-image{
  width: 100%;
  height: 100%;
  transform: scale(1);
  filter: grayscale(60%) blur(1.5px);
  transition: transform 0.6s ease;
}
.news-card:hover .news-card-image{
  filter: grayscale(0%) blur(0px);
  transform: scale(1.5);
}

/* Grandes cartes occupent toutes les colonnes */
.news-card-large {
  grid-column: 1 / -1;
}
.news-card-large .news-card-image-container{
  height: 450px;
}

/* Petites cartes occupent une seule colonne */
.news-card-small {
  grid-column: span 1;
}
.news-card-small .news-card-image-container{
  height: 150px;
}

.news-card-footer{
  border-top: 0.1px solid #850808;
  display: flex;
  flex-direction: row;
  padding: 5px 10px;
}
.news-card-footer span{
  flex: 1;
}
.news-card-footer span:nth-child(odd){
  text-align: left;
}
.news-card-footer span:nth-child(even){
  text-align: right;
}

/* Lien archives positionné en bas à droite */
.archive-link-wrapper {
  text-align: right;
  margin-top: 1rem;
}
.btn-archive {
  background: #850808;
  color: #fff;
  padding: 0.6em 1.2em;
  margin-top: 10px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}
.btn-archive:hover {
  background: #5e0606;
}

