/* ============================================================
   Carrousel "même thématique" en bas d'article (partagé)
   Injecté dans le bloc articles liés ; JS : /assets/js/article-carousel.js
   Style unifié quel que soit le design de l'article.
   ============================================================ */
.rel-wrap { position: relative; }

.rel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rel-track::-webkit-scrollbar { display: none; }

.rel-card {
  scroll-snap-align: start;
  flex: 0 0 300px;
  max-width: 300px;
  background: #fff;
  border: 1px solid #e4e8f2;
  border-radius: 16px;
  padding: 22px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 22px rgba(45, 60, 99, .04);
}
.rel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(45, 60, 99, .12);
  border-color: rgba(31, 184, 76, .4);
}
.rel-card .rel-k {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1fb84c;
}
.rel-card h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.3;
  color: #2b3660;
  margin: 10px 0 6px;
}
.rel-card p {
  font-size: 13.5px;
  color: #6c7493;
  line-height: 1.45;
  margin: 0;
  flex-grow: 1;
}
.rel-card .rel-go {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: #1fb84c;
  margin-top: 14px;
}

/* flèches */
.rel-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}
.rel-controls.is-hidden { display: none; }
.rel-prev, .rel-next {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d7deea;
  background: #fff;
  color: #2b3660;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.rel-prev:hover, .rel-next:hover { border-color: #1fb84c; color: #1fb84c; }
.rel-prev[disabled], .rel-next[disabled] { opacity: .35; cursor: default; }

/* code couleur des tags : 1 thématique = 1 couleur (aligné sur les vignettes) */
.rel-card .rel-k[data-cat="prospection"] { color: #c2691c; }
.rel-card .rel-k[data-cat="formation"]   { color: #5a5fd0; }
