/* doc-project | assets/css/blog-article-related.css | Définit le carrousel horizontal des articles complémentaires affiché en bas d’un article de blog, avec cartes miniature + titre et contrôles de défilement responsive. | Expose: aucun | Dépend de: blog/index.php, .blog-related-articles, .blog-related-carousel, .blog-related-track, .blog-related-card | Impacte: UI de découverte d’articles, navigation horizontale, responsive, accessibilité focus | Tables: aucune */

.blog-related-articles {
  padding: 60px 0 50px;
}

.blog-related-intro {
  max-width: 640px;
  margin: -20px auto 28px;
  color: #000;
  line-height: 1.6;
  text-align: center;
}

.blog-related-carousel {
  position: relative;
}

.blog-related-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  padding: 6px 4px 18px;
  scrollbar-width: thin;
}

.blog-related-track:focus-visible {
  outline: 3px solid rgba(216, 195, 226, 0.45);
  outline-offset: 6px;
}

.blog-related-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  background: #fff;
  border: 2px solid #f4d9cd;
  box-shadow: 0 0 30px rgba(73, 78, 92, 0.15);
  color: #000;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-related-card:hover,
.blog-related-card:focus,
.blog-related-card:active {
  color: #000;
  border-color: #d8c3e2;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.blog-related-card:focus-visible {
  outline: 3px solid rgba(216, 195, 226, 0.45);
  outline-offset: 4px;
}

.blog-related-card__image {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #fff7ec;
}

.blog-related-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-related-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff7ec;
  color: #d4673a;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 700;
}

.blog-related-card__title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.blog-related-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid #d8c3e2;
  border-radius: 50%;
  background: #fff7ec;
  color: #000;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.blog-related-control:hover,
.blog-related-control:focus {
  background: #d8c3e2;
  color: #fff7ec;
  outline: none;
}

.blog-related-control:disabled {
  cursor: default;
  opacity: 0.35;
}

.blog-related-control--prev {
  left: -18px;
}

.blog-related-control--next {
  right: -18px;
}

@media (max-width: 991.98px) {
  .blog-related-control--prev {
    left: 4px;
  }

  .blog-related-control--next {
    right: 4px;
  }
}

@media (max-width: 767.98px) {
  .blog-related-articles {
    padding: 40px 0 34px;
  }

  .blog-related-intro {
    margin-bottom: 22px;
  }

  .blog-related-track {
    gap: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .blog-related-card {
    flex-basis: 78%;
    min-height: 220px;
  }

  .blog-related-control {
    display: none;
  }
}