/* Un rythme typographique commun aux deux pages de courtage. */
:root body:is(.buying-page, .selling-page) {
  --brokerage-copy-size: .875rem;
  --brokerage-leading: 1.8;
}

:root body:is(.buying-page, .selling-page) main p:not(.eyebrow) {
  font-size: var(--brokerage-copy-size);
  line-height: var(--brokerage-leading);
  text-align: left !important;
  text-align-last: left !important;
  text-wrap: pretty;
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: break-word;
}

/* Seuls les paragraphes longs se prêtent à la justification. */
:root body:is(.buying-page, .selling-page) p.copy-long {
  text-align: justify !important;
  text-align-last: left !important;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* La mention débute au même bord gauche que les encadrés. */
:root body.buying-page .note-honnete {
  margin-inline: 0;
}

@media (max-width: 640px) {
  :root body:is(.buying-page, .selling-page) main p.copy-long:not(.note-honnete),
  :root body:is(.buying-page, .selling-page) .hero p.copy-long {
    text-align: left !important;
    hyphens: manual;
    -webkit-hyphens: manual;
  }
}

:root body:is(.buying-page, .selling-page) .hero h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.15;
}

:root body:is(.buying-page, .selling-page) .section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

:root body:is(.buying-page, .selling-page) main h3 {
  /* Certaines tailles historiques sont définies directement dans le HTML. */
  font-size: clamp(17px, 1.6vw, 20px) !important;
  line-height: 1.4;
}

:root body:is(.buying-page, .selling-page) .service-card h3 {
  margin-block: 0 8px;
}

:root body:is(.buying-page, .selling-page) .service-card {
  min-width: 0;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
}

:root body:is(.buying-page, .selling-page) .section-head {
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

/* Des colonnes plus amples limitent les espaces dans le texte justifié. */
:root body:is(.buying-page, .selling-page) .crossnav .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

:root body:is(.buying-page, .selling-page) .temoignages .quotes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:root body:is(.buying-page, .selling-page) .temoignages .quote:last-child {
  grid-column: 1 / -1;
}

/* Les mentions et les liens courts gardent leur taille discrète. */
:root body:is(.buying-page, .selling-page) .hero-actions p {
  font-size: .8125rem;
  text-align: left !important;
  hyphens: manual;
  -webkit-hyphens: manual;
}

:root body:is(.buying-page, .selling-page) .about-sec p:last-child[style*="font-size:11px"] {
  font-size: .75rem;
}

@media (max-width: 640px) {
  :root body:is(.buying-page, .selling-page) .crossnav .card-grid,
  :root body:is(.buying-page, .selling-page) .temoignages .quotes {
    grid-template-columns: minmax(0, 1fr);
  }
}
