/* ── C-17 — Bloc 4 Articles ───────────────────────────────────────────────────── */

.bloc-c17 {
  background-color: var(--bloc-bg, var(--color-bg));
  padding: 60px 0;
}

.bloc-c17__heading {
  color: var(--bloc-title, var(--color-text));
  font-family: var(--font-primary);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.bloc-c17__intro {
  text-align: center;
  margin-bottom: 48px;
}

.bloc-c17__intro p {
  color: var(--bloc-title, var(--color-text));
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 1em;
}

.bloc-c17__intro p:last-child {
  margin-bottom: 0;
}

/* ── Swiper ── */

.bloc-c17__swiper {
  overflow: hidden;
}

.bloc-c17__swiper .swiper-wrapper {
  height: auto;
}

/* ── Card ── */

.bloc-c17__card {
  display: block;
  text-decoration: none;
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--bloc-text, #171D21) 20%, transparent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bloc-c17__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.bloc-c17__card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}

.bloc-c17__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bloc-c17__card:hover .bloc-c17__card-img img {
  transform: scale(1.04);
}

.bloc-c17__card-body {
  padding: 24px 20px;
}

.bloc-c17__card-date {
  display: block;
  font-family: var(--font-tag);
  font-size: 13px;
  font-weight: 400;
  color: var(--bloc-text, var(--color-text));
  opacity: 0.6;
  margin-bottom: 8px;
}

.bloc-c17__card-title {
  color: var(--bloc-text, var(--color-text));
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

/* ── Dots ── */

.bloc-c17__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  min-height: 12px;
}

.bloc-c17__dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(23, 29, 33, 0.18);
  opacity: 1;
  margin: 0 !important;
  transition: width 0.25s ease, border-radius 0.25s ease, background 0.25s ease;
}

.bloc-c17__dots .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 4px;
  background: var(--bloc-title, #171D21);
}

/* ── Desktop ── */

@media (min-width: 1024px) {
  .bloc-c17 {
    padding: 80px 0;
  }

  .bloc-c17__card-title {
    font-size: 18px;
  }

  /* Masquer les dots quand affichage grille (pas carousel) */
  .bloc-c17__dots:empty {
    display: none;
  }
}
