.so-news-archive .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 24px !important;
}

.so-news-card__actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* Le bouton aperçu reste carré, le télécharger prend toute la place */
.so-news-card__actions .doc-action-btn--download {
  flex: 1;
  justify-content: center;
}

.so-news-card__actions {
  margin-top: 15px;
}


/* Hover card avec lien détail */
.so-news-archive .card.cardHover {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.so-news-archive .card.cardHover:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.13);
}

.so-news-archive .card.cardHover:hover .card-title {
  color: var(--cat-color, #0175BF);
  transition: color 0.2s ease;
}

/* Couleur catégorie : date badge */
.so-news-archive .card .dateNews {
  background: var(--cat-color, #0175BF) !important;
  color: #fff !important;
}

/* Couleur catégorie : boutons action */
.so-news-archive .card .doc-action-btn {
  background: rgba(var(--cat-rgb, 1,117,191), 0.12);
  color: var(--cat-color, #0175BF);
}

.so-news-archive .card .doc-action-btn:hover {
  background: var(--cat-color, #0175BF);
  color: #fff;
}

.so-news-archive__pagination {
  margin-top: 24px;
}


.stepone-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  -webkit-backdrop-filter: blur(5px) !important;
  backdrop-filter: blur(5px) !important;
}

.stepone-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.stepone-popup-inner {
  max-width: 680px;
  width: 100%;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.popupContent {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.stepone-popup-image {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 0 !important;
}

.stepone-popup-image img {
  width: 100%;
  height: auto;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

.stepone-popup-content {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px 20px 50px;
}

.so-news-popup__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.so-news-popup__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
}

.so-news-popup__actions .btn i {
  line-height: 1;
  font-size: 1rem;
}

.stepone-popup.is-visible .stepone-popup-inner {
  transform: translateY(0);
  opacity: 1;
}

.stepone-popup-close {
  position: absolute;
  right: -18px;
  top: -18px;
  text-align: center;
  padding: 0 !important;
  line-height: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  border: none;
  font-size: 28px;
  cursor: pointer;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.7) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  backdrop-filter: blur(5px) !important;
  transition: 0.3s;
}

.stepone-popup-close:hover {
  transform: scale(1.02);
}

@media screen and (max-width: 768px) {
  .stepone-popup-inner {
    width: 85%;
  }

  .stepone-popup-content {
    min-height: auto;
    padding: 30px;
  }

  .so-news-popup__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
