.project-page {
  padding-block: clamp(3rem, 8vw, 7rem);
}

/* Le bouton mobile « Parlons de votre projet » mène à cette page : inutile ici, et il cachait le formulaire. */
.mobile-cta {
  display: none;
}

.project-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  margin-inline: auto;
  max-width: 70rem;
}

/* Encadré bleu nuit : les couleurs claires du texte étaient prévues pour ce fond. */
.project-intro {
  background: var(--navy);
  border-left: 5px solid var(--red);
  border-radius: 1.25rem;
  color: #eff4ff;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.project-intro > :last-child {
  margin-bottom: 0;
}

.project-intro h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0.45rem 0 1.25rem;
}

.project-intro > p:not(.project-kicker) {
  color: #c7d0e0;
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 30rem;
}

.project-kicker {
  color: #f7bd76;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.project-contact {
  border-top: 1px solid #43516a;
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  margin-top: 2rem;
  padding-top: 1.3rem;
}

.project-contact h2 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.project-contact a {
  color: #eff4ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.project-form {
  background: #f5f1e8;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  color: #102035;
  padding: clamp(1.3rem, 4vw, 2.5rem);
  scroll-margin-top: 7rem;
}

.project-fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-form label,
.project-form legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
}

.project-fields label > span,
.project-choices legend > span,
.project-details > span {
  color: #4b5871;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-form input:not([type="checkbox"]):not([type="hidden"]),
.project-form textarea {
  background: #fff;
  border: 1px solid #9da8b8;
  border-radius: 0.55rem;
  box-sizing: border-box;
  color: #102035;
  display: block;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.35rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

.project-form textarea {
  resize: vertical;
}

.project-form textarea::placeholder {
  color: #5d6780;
}

.project-form :is(input, textarea, button):focus-visible {
  outline: 3px solid #105da4;
  outline-offset: 2px;
}

.project-choices {
  border: 0;
  margin: 1.2rem 0;
  min-width: 0;
  padding: 0;
}

.project-choices legend {
  margin-bottom: 0.45rem;
  padding: 0;
}

.project-choice-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-choice-grid label {
  align-items: center;
  background: #fff;
  border: 1px solid #b0b9c7;
  border-radius: 0.55rem;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0.4rem 0.55rem;
}

.project-choice-grid input {
  accent-color: #174f99;
  flex-shrink: 0;
  height: 1.05rem;
  margin: 0;
  width: 1.05rem;
}

.project-note,
.project-status {
  color: #4b5871;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0.85rem 0;
}

.project-status:empty {
  margin: 0;
}

.project-error {
  color: #8a2720;
  font-weight: 700;
}

.project-fallback {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.project-fallback a {
  align-items: center;
  background: #fff;
  border: 1px solid #122540;
  border-radius: 0.55rem;
  color: #122540;
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  text-align: center;
  text-decoration: none;
}

.project-fallback .project-fallback-mail {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.project-fallback .project-fallback-mail:hover {
  background: var(--red-hover);
}

/* Après un envoi réussi, seul le message de remerciement reste visible. */
.project-form.is-sent > :not(.project-success) {
  display: none;
}

.project-success h2 {
  color: #102035;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

.project-success p {
  color: #4b5871;
  margin: 0 0 0.4rem;
}

.project-success a {
  color: #174f99;
  font-weight: 750;
}

.project-fallback[hidden],
.project-success[hidden] {
  display: none;
}

.project-submit {
  background: #122540;
  border: 1px solid #122540;
  border-radius: 0.55rem;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  width: 100%;
}

.project-submit[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 52rem) {
  .project-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 31rem) {
  .project-fields,
  .project-choice-grid {
    grid-template-columns: 1fr;
  }
}
