.project-page .page {
  max-width: 960px;
}

.project-page .intro {
  max-width: 680px;
}

.project-page .intro h1 {
  font-size: 2.3rem;
}

.project-page #wizard-progress {
  padding: 20px 0 0;
  margin-bottom: 30px;
  border-top: 1px solid var(--line);
}

.project-page .steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 0;
  gap: 8px;
}

.project-page .steps li {
  min-width: 0;
  padding-top: 4px;
}

.project-page .project-categories {
  display: grid;
  gap: 26px;
}

.project-page .project-category h2,
.project-page .group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 1.08rem;
  color: var(--navy);
}

.project-page .category-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: #245c80;
  border-radius: 6px;
  font-size: 1.3rem;
}

.project-page .project-category .choices {
  grid-template-columns: 1fr;
}

.project-page .choice {
  margin: 0;
  min-height: 58px;
  line-height: 1.4;
  transition: background-color .15s, border-color .15s;
}

.project-page .choice:hover {
  border-color: #245c80;
}

.project-page .choice:has(:focus-visible) {
  outline: 3px solid #2879b1;
  outline-offset: 3px;
}

.project-page .choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-page .compact .choice {
  min-height: 54px;
  font-size: .95rem;
}

.project-page .question {
  margin: 24px 0;
}

.project-page .question > legend {
  font-size: 1rem;
  margin-bottom: 12px;
}

.project-page .conditional {
  margin: 24px 0;
}

.project-page .description-question {
  margin-top: 28px;
}

.project-page .fields > div,
.project-page .choices {
  min-width: 0;
}

.project-page select {
  min-width: 0;
  text-overflow: ellipsis;
}

.project-page .actions {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.project-page .actions button {
  min-width: 116px;
}

.project-page .project-review {
  margin: 0 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.project-page summary {
  cursor: pointer;
  color: #245c80;
  font-weight: 700;
  min-height: 28px;
}

.project-page .project-review dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: .95rem;
}

.project-page .project-review dt {
  font-weight: 700;
  margin-top: 12px;
}

.project-page .project-review dd {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.project-page #dossier-reference,
.project-page .error {
  overflow-wrap: anywhere;
}

@media (min-width: 620px) {
  .project-page .project-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 430px) {
  .project-page .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: .82rem;
  }

  .project-page .intro h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-page .choice {
    transition: none;
  }
}
