blog-card-link.back-link {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.back-link a {
  color: var(--vinted-color);
  text-decoration: none;
  font-weight: 500;
}

.back-link a:hover {
  text-decoration: underline;
}

.blog-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: var(--light-bg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem;
}

.blog-card-content h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: #000000;
}

.blog-card-content .meta {
  font-size: 0.9rem;
  color: --gray-text;
  margin: 0;
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}

.blog-card-link:hover .blog-card {
  transform: translateY(-4px);
}

.blog-category {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  background-color: rgba(255, 255, 255, 0.25); /* ✅ semi-transparent */
  backdrop-filter: blur(6px); /* ✅ flou derrière */
  -webkit-backdrop-filter: blur(6px); /* ✅ pour Safari */
  color: var(--gray-text);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 2.5rem;
}

.blog-filters-wrapper {
  position: relative;
  overflow: hidden;
}

.blog-filters::before,
.blog-filters::after {
  content: "";
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.blog-filters::before {
  left: 0;
  background: linear-gradient(to right, white 0%, transparent 100%);
}

.blog-filters::after {
  right: 0;
  background: linear-gradient(to left, white 0%, transparent 100%);
}

.blog-image-wrapper {
  position: relative;
}

.blog-image-wrapper img {
  display: block;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.blog-section {
  margin-bottom: 3rem;
}

.centered-cta {
  margin-bottom: 2rem;
}

.container-article {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

.content img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.filter-button {
  background-color: var(--light-bg);
  color: var(--vinted-color);
  border: 1px solid var(--vinted-color);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.filter-button:hover {
  background-color: var(--vinted-color);
  color: white;
  text-decoration: underline;
}

.filter-button.active {
  background-color: var(--vinted-color);
  color: white;
}

h3 a {
  color: var(--gray-text);
  text-decoration: none;
  font-weight: 500;
}

h3 a:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.pagination .arrow {
  color: var(--vinted-color);
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0 0.5rem;
}

.pagination .arrow.disabled {
  color: #ccc;
  pointer-events: none;
  cursor: default;
}

.pagination .page-counter {
  font-size: 1rem;
  color: #333;
}

@media (max-width: 767px) {
  /* 1 carte par ligne sur mobile */
  .blog-article-grid {
    grid-template-columns: 1fr;
  }

  .blog-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5rem;
    -webkit-overflow-scrolling: touch;
    margin: 0.5rem 0 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0.5rem;
  }

  .blog-filters::-webkit-scrollbar {
    display: none; /* cache la scrollbar sur mobile */
  }

  .filter-button {
    display: inline-block;
    margin-right: 0.5rem;
    white-space: nowrap;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .page-title {
    margin: 0;
  }
}
