/* ===== Dernières mises à jour ===== */
.updates { margin: 24px 0 32px; }
.updates__head { margin-bottom: 12px; }
.updates__kicker { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #667085; }
.updates__head h2 { }
.updates__desc { margin: 0; color: #475569; }

.updates__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}

.updates__card {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  border: 1px solid #e7ecf5;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.updates__thumb {
  position: relative;
  overflow: hidden;
  /* aspect-ratio: 4 / 3;    hauteur fixe proportional à la largeur */
}

.updates__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* recadrage propre sans écraser l'image */
}


.updates__body { padding: 10px 12px; }
.updates__title { margin: 0 0 4px; font-size: 18px; line-height: 1.25; }
.updates__title a { color: black; text-decoration: none; }
.updates__title a:hover { text-decoration: underline; }

.updates__meta {
  display: flex; align-items: center; gap: 6px;
  color: #64748b; font-size: 12px; margin-bottom: 6px;
}
.updates__tags { display: flex; gap: 6px; padding: 0; margin: 0; list-style: none; }
.updates__tag { border: 1px solid #dbe3ff; background: #f3f7ff; border-radius: 999px; padding: 2px 6px; font-size: 12px; }
.updates__dot { opacity: .6; }

.updates__excerpt { margin: 0; color: #334155; }
.updates__audio { margin-top: 8px; }
.updates__audio audio { width: 100%; }

.updates__more { text-align: center; margin-top: 10px; }
.updates__btn {
  display: inline-block; border: 1px solid #dbe3ff; background: #fff;
  border-radius: 10px; padding: 8px 12px; font-weight: 600; color: #1e293b; text-decoration: none;
}
.updates__btn:hover { background: #f6f9ff; }

/* ===== Mobile ===== */
@media (max-width: 719px) {
  .updates__card {
    display: block;        /* retour au bloc simple */
    padding: 10px;         /* petite marge interne */
  }

  .updates__body {
    padding: 0;            /* évite les double-padding */
  }

  .updates__title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .updates__excerpt {
    font-size: 14px;
  }

  .updates__meta {
    font-size: 11px;
  }

  .updates__tag {
    font-size: 11px;
    padding: 2px 5px;
  }

  .updates__audio .barredeson {
    zoom: 0.9;            /* réduit légèrement ton player */
  }
}

/* Tablette */
@media (min-width: 720px) {
  .updates__card { grid-template-columns: 180px 1fr; }
}

/* Desktop : 3 colonnes de cartes */
@media (min-width: 980px) {
  .updates__card { grid-template-columns: 1fr; }
  .updates__grid > .updates__card { grid-column: span 4; } /* 3 colonnes */
}



.updates__filters {
  margin: 10px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.updates__filter-btn {
  border: 1px solid #dbe3ff;
  background: #f3f7ff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
}

.updates__filter-btn.is-active {
  background: green;
  border-color: green;
  color: #fff;
}

.updates__audio {
  margin-top: 0.5em;
}

.updates__audio .barredeson {
  margin-left: 0; /* pour éviter un décalage trop fort à gauche dans la carte */
}
