.jf-projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.jf-filter-btn {
  appearance: none;
  border: 1px solid #d6e0ea;
  background: #fff;
  color: #163d6b;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jf-filter-btn:hover {
  background: #f4f8fc;
  border-color: #b8cade;
}

.jf-filter-btn.active {
  background: #163d6b;
  color: #fff;
  border-color: #163d6b;
}

.jf-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 4px;
}

.jf-projects-grid .project-card.is-hidden {
  display: none;
}

.project-card {
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(19, 56, 95, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(19, 56, 95, 0.12);
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.project-card__title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  flex: 1;
}

.project-card__title a {
  text-decoration: none;
  color: #163d6b;
}

.project-card__title a:hover {
  color: #0f5fa8;
}

.project-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.project-card__subtitle {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.55;
  color: #425466;
  min-height: 72px;
}

.project-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-card__badge--status-en-cours {
  background: #1f8f5f;
}

.project-card__badge--status-termine {
  background: #7a8794;
}

.project-card__meta {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e7edf3;
}

.project-card__meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-card__meta strong {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #163d6b;
}

.project-card__meta strong .fa {
  margin-right: 6px;
}

.project-card__meta a,
.project-card__meta div {
  font-size: 0.96rem;
  line-height: 1.5;
}

.project-card__meta a {
  color: #0f5fa8;
  text-decoration: none;
  word-break: break-word;
}

.project-card__meta a:hover {
  text-decoration: underline;
}

.project-card__footer {
  margin-top: auto;
  padding-top: 20px;
}

.project-card__button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 10px;
  background: #163d6b;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-card__button:hover {
  background: #0f5fa8;
  transform: translateY(-1px);
}

.participant-inline {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .jf-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .jf-projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card {
    padding: 20px;
  }

  .project-card__top {
    flex-direction: column;
  }

  .project-card__title {
    font-size: 1.3rem;
  }

  .project-card__badges {
    justify-content: flex-start;
  }

  .project-card__subtitle {
    min-height: auto;
  }

  .participant-inline {
    white-space: normal;
  }
}
