.secondary-page {
  --reading-ink: #434c68;
  --reading-rule: #dce2ef;
  --reading-link: #135a9b;
  --reading-space: clamp(32px, 5vw, 64px);
}

.secondary-page .page-head {
  padding-block: clamp(36px, 5.2vw, 64px);
  background: #f5f7fb;
  border-bottom: 1px solid var(--reading-rule);
}

.secondary-page .page-head h1 {
  max-width: 25ch;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: -.043em;
  text-wrap: balance;
}

.secondary-page .page-head .lede,
.secondary-page .section-intro {
  max-width: 63ch;
  margin-block: 14px 0;
  color: var(--reading-ink);
  font-size: 17px;
  line-height: 1.65;
}

.secondary-page .eyebrow {
  margin-block: 0 10px;
  color: var(--reading-link);
  font-size: 13px;
  letter-spacing: .08em;
}

.secondary-page > section {
  padding-block: var(--reading-space);
}

.secondary-page .section-title,
.secondary-page .prose h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  max-width: 30ch;
}

.secondary-page .cote {
  margin-bottom: 10px;
}

.secondary-page .cote .lab {
  color: var(--reading-link);
  font-size: 12px;
  letter-spacing: .08em;
}

.secondary-page .content-actions {
  margin-block: 21px 0;
}

.secondary-page .rappel {
  padding-block: clamp(22px, 4vw, 38px);
}

.secondary-page .rappel p {
  font-size: 17px;
  font-weight: 650;
  max-width: 53ch;
}

/* Devis */
.contact-page .form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: clamp(22px, 4.2vw, 52px);
  align-items: start;
  margin-top: 0;
}

.contact-page form {
  min-width: 0;
}

.contact-page fieldset {
  min-width: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.contact-page legend {
  margin-bottom: 12px;
  padding: 0;
  color: #1f2764;
  font-size: 20px;
  font-weight: 700;
}

.contact-page .deux {
  gap: 0 16px;
}

.contact-page .champ {
  min-width: 0;
  margin-bottom: 16px;
}

.contact-page .champ label {
  margin-bottom: 5px;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.contact-page .champ input,
.contact-page .champ select,
.contact-page .champ textarea {
  min-width: 0;
  min-height: 45px;
  padding: 9px 12px;
  border-color: #bac5dc;
  border-radius: 7px;
}

.contact-page .champ textarea {
  min-height: 112px;
}

.contact-page .champ :is(input, select, textarea):focus-visible {
  outline: 2px solid #0187ce;
  outline-offset: 2px;
}

.contact-page .mentions {
  max-width: 64ch;
  color: var(--reading-ink);
  font-size: 14px;
}

.contact-page .bloc-contact {
  padding: clamp(17px, 2.2vw, 25px);
  border-radius: 12px;
}

.contact-page .bloc-contact h2 {
  font-size: 21px;
}

.contact-page .coord {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-page .coord li {
  display: grid;
  gap: 3px;
  padding-block: 12px;
  overflow-wrap: anywhere;
}

.contact-page .coord li + li {
  border-top: 1px solid var(--reading-rule);
}

.contact-page .coord span {
  color: var(--reading-ink);
  font-size: 14px;
  font-weight: 650;
}

.contact-page .coord a {
  color: var(--reading-link);
}

.contact-page .delai-contact {
  margin: 16px 0 0;
  padding: 15px 18px;
}

.contact-page .delai-contact .tag {
  margin-bottom: 4px;
}

/* Guide et mentions légales */
.guide-page .doc {
  grid-template-columns: minmax(190px, 235px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 65px);
  padding-block: var(--reading-space);
}

.guide-page .sommaire {
  top: 96px;
  padding: 16px;
  background: #f5f7fb;
  border: 1px solid var(--reading-rule);
  border-radius: 10px;
}

.guide-page .sommaire p {
  margin-bottom: 7px;
  color: #1f2764;
  letter-spacing: .06em;
}

.guide-page .sommaire a {
  padding: 5px 0;
  border: 0;
  font-size: 14px;
}

.guide-page .sommaire a::before {
  content: none;
}

.guide-page .prose {
  min-width: 0;
}

.guide-page .prose section {
  padding-bottom: 29px;
  margin-bottom: 29px;
  scroll-margin-top: 100px;
}

.guide-page .prose section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.guide-page .prose p,
.legal-page .legal p {
  max-width: 68ch;
  color: var(--reading-ink);
  line-height: 1.7;
}

.guide-page .prose a,
.legal-page .legal a {
  text-underline-offset: 3px;
}

.guide-page .prose .content-actions {
  margin-block: 0 18px;
}

.guide-page .tableau th,
.guide-page .tableau td {
  padding: 10px 12px;
}

.guide-page .tableau td:first-child {
  width: 29%;
  white-space: normal;
}

.guide-page .tableau td {
  overflow-wrap: anywhere;
}

.guide-page .visuel {
  border-color: var(--reading-rule);
  border-radius: 10px;
}

.guide-page .visuel img {
  height: auto;
  max-height: 350px;
  object-fit: contain;
}

.guide-page .visuel figcaption {
  color: var(--reading-ink);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.legal-page .legal {
  padding-block: var(--reading-space);
}

.legal-page .legal h2 {
  margin-block: 26px 8px;
  font-size: 23px;
}

.legal-page .legal p {
  margin-block: 8px;
  overflow-wrap: anywhere;
}

/* Réalisations, pièces du dossier et équipe */
.secondary-page .galerie,
.secondary-page .realis,
.secondary-page .pieces-grid,
.secondary-page .equipe {
  gap: 16px;
  margin-top: 22px;
}

.references-page .galerie {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.references-page .realis,
.excerpt-page .pieces-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.team-page .equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.secondary-page :is(.piece, .carte, .galerie figure, .membre) {
  min-width: 0;
  border: 1px solid var(--reading-rule);
  border-radius: 10px;
}

.secondary-page :is(.piece, .carte) {
  overflow: hidden;
}

.references-page .galerie img,
.excerpt-page .piece .vue img {
  height: clamp(145px, 16vw, 205px);
  object-fit: contain;
  object-position: center;
}

.references-page .galerie figcaption {
  color: var(--reading-ink);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.references-page .realis .piste > img {
  height: clamp(175px, 17vw, 220px);
}

.references-page .realis .fleche {
  display: flex;
  width: 38px;
  height: 38px;
}

.references-page .chiffres {
  padding-block: 25px;
}

.references-page .chiffres .row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.references-page .chiffres .n {
  font-size: clamp(25px, 3.4vw, 38px);
}

.references-page .chiffres .l {
  margin-top: 5px;
  color: #f5f7fb;
  letter-spacing: 0;
  text-transform: none;
}

.references-page .logos {
  gap: 9px;
  margin-top: 22px;
}

.references-page .logos > div {
  flex: 1 0 min(140px, 42%);
  min-height: 78px;
  padding: 12px;
}

.references-page .logos img {
  max-height: 45px;
}

.references-page .zoom:not(:target) {
  visibility: hidden;
}

.references-page .zoom .boite {
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border-radius: 10px;
}

.references-page .zoom .tete {
  align-items: flex-start;
  gap: 9px;
}

.references-page .zoom .fermer {
  padding-inline: 10px;
}

.excerpt-page .piece .corps {
  padding: 17px;
}

.excerpt-page .piece p,
.team-page .membre .role {
  color: var(--reading-ink);
  font-size: 15px;
}

.excerpt-page .piece .dl {
  color: var(--reading-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-page .membre {
  padding: 17px;
  text-align: left;
}

.team-page .membre h2 {
  margin: 0 0 7px;
  font-size: 19px;
}

.team-page .membre a {
  color: var(--reading-link);
  overflow-wrap: anywhere;
  word-break: normal;
}

.confirmation-page {
  padding-block: var(--reading-space);
}

@media (max-width: 840px) {
  .contact-page .form-grid,
  .guide-page .doc {
    grid-template-columns: 1fr;
  }

  .guide-page .sommaire {
    position: static;
  }

  .references-page .galerie,
  .references-page .realis,
  .excerpt-page .pieces-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .contact-page .deux,
  .references-page .realis,
  .excerpt-page .pieces-grid,
  .team-page .equipe {
    grid-template-columns: 1fr;
  }

  .contact-page .deux {
    gap: 0;
  }

  .references-page .chiffres .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .guide-page .tableau th,
  .guide-page .tableau td {
    padding: 7px 8px;
    font-size: 14px;
  }

  .guide-page .tableau td:first-child {
    width: 35%;
  }
}
