.jf-projet-single-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.jf-projet-single {
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 10px 28px rgba(19, 56, 95, 0.08);
}

.jf-projet-single__header {
  margin-bottom: 28px;
}

.jf-projet-single__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.jf-projet-single__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
  color: #163d6b;
}

.jf-projet-single__subtitle {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a5d70;
}

.jf-projet-single__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.jf-projet-single__badge,
.jf-projet-single__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.jf-projet-single__status.is-en-cours {
  background: #1f8f5f;
}

.jf-projet-single__status.is-termine {
  background: #7a8794;
}

.jf-projet-single__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.jf-projet-single__item {
  padding: 20px;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  background: #fafcff;
}

.jf-projet-single__item h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #163d6b;
}

.jf-projet-single__item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #33475b;
}

.jf-projet-single__item a {
  color: #0f5fa8;
  text-decoration: none;
  word-break: break-word;
}

.jf-projet-single__item a:hover {
  text-decoration: underline;
}

.jf-projet-single__footer {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.jf-projet-single__button,
.jf-projet-single__back {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.jf-projet-single__button {
  background: #163d6b;
  color: #fff !important;
}

.jf-projet-single__button:hover {
  background: #0f5fa8;
  transform: translateY(-1px);
}

.jf-projet-single__back {
  background: #f3f7fb;
  color: #163d6b !important;
  border: 1px solid #dbe4ee;
}

.jf-projet-single__back:hover {
  background: #eaf1f7;
}

.jf-projet-single__content {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e7edf3;
}

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

@media (max-width: 767px) {
  .jf-projet-single {
    padding: 22px;
  }

  .jf-projet-single__title-row {
    flex-direction: column;
  }

  .jf-projet-single__badges {
    justify-content: flex-start;
  }

  .jf-projet-single__grid {
    grid-template-columns: 1fr;
  }

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