/* Voiles sur mesure — full-bleed editorial grid */

.voiles-category__hero {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

/* ── Grid : 3 columns desktop, 3 rows mobile ── */
.voiles-category__grid {
  display: flex;
  height: 75vh;
  gap: 1rem;
}

@media (max-width: 991px) {
  .voiles-category__grid {
    gap: 1rem;
  }
}

.voiles-category__card {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #6c757d;
  transition: filter 0.4s ease;
}

.voiles-category__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.voiles-category__card:hover {
  filter: brightness(1.08);
}

/* ── Overlay : fond opaque sous titre et sous description ── */
.voiles-category__card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #1a1a1a;
}

.voiles-category__card-top {
  padding: 0.875rem 1.25rem;
}

.voiles-category__card-bottom {
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: end;
  gap: 1rem;
}

.voiles-category__card-title {
  font-family: var(--font-family-primary, sans-serif);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0;
  text-align: center;
}

.voiles-category__card-title-link {
  text-decoration: none;
  color:white;
}

.voiles-category__card-excerpt {
  flex: 1;
  font-family: var(--font-family-secondary, sans-serif);
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.88;
  margin-bottom: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.voiles-category__cta {
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .voiles-category {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 60px);
  }

  .voiles-category__grid {
    flex-direction: column;
    flex: 1;
    height: auto;
  }

  .voiles-category__card-top {
    padding: 0.625rem 1rem;
  }

  .voiles-category__card-bottom {
    padding: 1.25rem;
  }
}
