/* ====== Styles SCOPÉS au container .ccap-audio-shortcode ====== */
.ccap-audio-shortcode {
  font-family: 'Montserrat', sans-serif;
  color: #000;
}

/* Liste d'articles */
.ccap-audio-shortcode .ccap-post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.ccap-audio-shortcode .ccap-post-item {
  border: none;
  overflow: hidden;
  position: relative;
}

/* ===== PREMIER ARTICLE (hero) ===== */
.ccap-audio-shortcode .ccap-post-item-first .ccap-image-container {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
}
.ccap-audio-shortcode .ccap-post-item-first .ccap-image-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ccap-audio-shortcode .ccap-post-item-first .hero-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}

/* Bouton ÉCOUTER (overlay) — placé PLUS HAUT */
.ccap-audio-shortcode .ccap-post-item-first .ccap-image-container .cgap-audio {
  position: absolute;
  top: 6px;   /* plus haut */
  left: 10px;
  z-index: 3;
}

/* Titre en bas avec dégradé */
.ccap-audio-shortcode .ccap-post-item-first .gradient-title-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  min-height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  z-index: 2;
}
.ccap-audio-shortcode .ccap-post-item-first .gradient-title-overlay h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
}
.ccap-audio-shortcode .ccap-post-item-first .gradient-title-overlay h3 a {
  text-decoration: none;
  color: inherit;
}
@media (max-width: 767px) {
  .ccap-audio-shortcode .ccap-post-item-first .gradient-title-overlay h3 {
    font-size: 1rem;
  }
}

/* Excerpt desktop uniquement */
.ccap-audio-shortcode .hero-excerpt-wrapper { display: none; margin-top: 10px; }
.ccap-audio-shortcode .hero-excerpt { margin: 0; font-size: 0.9rem; line-height: 1.4; color: #000; }
@media (min-width: 1024px) {
  .ccap-audio-shortcode .hero-excerpt-wrapper { display: block; }
}

/* ===== AUTRES ARTICLES (2 COLONNES) ===== */
.ccap-audio-shortcode .ccap-post-item-others {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.ccap-audio-shortcode .ccap-post-item-others .left-col {
  position: relative;
  width: 30%;
  aspect-ratio: 1/1;
}
.ccap-audio-shortcode .ccap-post-item-others .left-col img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
/* Bouton ÉCOUTER (overlay) sur vignettes carrées — PLUS HAUT */
.ccap-audio-shortcode .ccap-post-item-others .left-col .cgap-audio {
  position: absolute;
  top: 6px;  /* plus haut */
  left: 10px;
  z-index: 3;
}

.ccap-audio-shortcode .ccap-post-item-others .right-col {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Titres */
.ccap-audio-shortcode .ccap-post-item-others h3 {
  margin: 0 0 5px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.6px;
  color: #000;
}
.ccap-audio-shortcode .ccap-post-item-others h3 a {
  text-decoration: none;
  color: inherit;
}
@media (max-width: 767px) {
  .ccap-audio-shortcode .ccap-post-item-others h3 { font-size: 16px; }
}

/* Infos Interview (bleu) */
.ccap-audio-shortcode .interview-name {
  font-weight: 700;
  font-size: 13px;
  margin: 5px 0 4px;
  color: #0000DE;
  text-transform: none;
}
.ccap-audio-shortcode .interview-info {
  font-size: 11px;
  font-weight: 400;
  margin: 0;
  color: #000;
}
.ccap-audio-shortcode .interview-info .org {
  font-weight: 600;
  font-style: italic;
}

/* Bouton Voir plus */
.ccap-audio-shortcode .ccap-more-container {
  text-align: center;
  margin-top: 20px;
}
.ccap-audio-shortcode .ccap-load-more-btn {
  background-color: #0000DE;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.ccap-audio-shortcode .ccap-load-more-btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Compactage léger du bouton overlay dans ce contexte */
.ccap-audio-shortcode .cgap-audio .cgap-btn { padding: 8px 12px; border-radius: 999px; }
