/* Filtres pills. */
.desc-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgb(var(--neutral-border));
  background: white;
  color: rgb(var(--neutral-text-muted));
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 9999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.desc-filter-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(var(--brand-accent));
  z-index: -1;
  width: 0;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.desc-filter-pill:hover {
  border-color: rgb(var(--brand-primary));
  color: rgb(var(--brand-primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.desc-filter-pill.is-active {
  border-color: rgb(var(--brand-accent));
  color: rgb(var(--brand-primary));
  box-shadow: 0 4px 12px rgb(var(--brand-accent) / 0.4);
  transform: translateY(0);
}
.desc-filter-pill.is-active::before { width: 100%; }
.desc-filter-count {
  background: rgb(var(--neutral-bg));
  color: rgb(var(--neutral-text-muted));
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 9999px;
  transition: all 0.25s ease;
}
.desc-filter-pill.is-active .desc-filter-count {
  background: rgb(var(--brand-primary) / 0.10);
  color: rgb(var(--brand-primary));
  font-weight: 800;
}

/* Card. */
.desc-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid rgb(var(--neutral-border));
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: var(--radius-md, 2px);
  overflow: hidden;
}
.desc-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.12); }

.desc-card__cover-wrap {
  position: relative;
  background: #f8fafc;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}
.desc-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  background: rgb(var(--brand-primary));
  color: rgb(var(--brand-accent));
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.desc-card__cover {
  width: 70%;
  aspect-ratio: 1 / 1.414;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.desc-card:hover .desc-card__cover {
  transform: translateY(-10px) scale(1.05) rotate(1.5deg);
  box-shadow: 0 15px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.1);
}
.desc-card__cover img,
.desc-card__cover canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.desc-card__pdf-loader,
.desc-card__no-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgb(var(--brand-primary) / 0.5);
  text-align: center;
}
.desc-card__pdf-loader .material-icons-outlined { font-size: 32px; }
.desc-card__no-cover .material-icons-outlined { font-size: 48px; }
.desc-card__loader-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 0.5rem;
}
@keyframes desc-spin { to { transform: rotate(360deg); } }
.desc-card__pdf-loader .animate-spin { animation: desc-spin 1s linear infinite; }

.desc-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.desc-card__title {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: rgb(var(--brand-primary));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.desc-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.desc-card__meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8125rem;
  color: rgb(var(--neutral-text-muted));
}
.desc-card__meta-row .material-icons-outlined {
  font-size: 16px;
  color: rgb(var(--brand-accent));
}
.desc-card__download {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  background: rgb(var(--brand-accent));
  color: rgb(var(--on-accent, var(--brand-primary)));
  border: 1px solid transparent;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.25s ease;
  border-radius: var(--radius-sm, 2px);
}
.desc-card__download .material-icons-outlined {
  font-size: 16px;
  transition: transform 0.25s ease;
}
.desc-card:hover .desc-card__download {
  background: rgb(var(--brand-primary));
  color: white;
}
.desc-card:hover .desc-card__download .material-icons-outlined { transform: translateY(3px); }
