@font-face {
  font-family: "Young Serif";
  src: url("/assets/fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Pierre grise, ardoise et vert-de-gris des toits de cuivre de Québec */
  --papier: #edefea;
  --papier-2: #dfe4dc;
  --encre: #1e2a2c;
  --encre-doux: #4a5557;
  --vdg: #3f6b62;
  --vdg-pale: #dfe8e3;
  --pierre: #c5cac1;
  --blanc: #f8f9f6;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --marge: clamp(1.25rem, 5vw, 4.5rem);
  --respiration: clamp(2.75rem, 5.5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -0.012em; max-width: 18ch; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 60ch; text-wrap: pretty; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--vdg); outline-offset: 3px; }
::selection { background: var(--vdg); color: var(--blanc); }
html { accent-color: var(--vdg); caret-color: var(--vdg); scrollbar-color: var(--pierre) var(--papier); }
a { text-underline-offset: .2em; }
.form input:user-invalid, .form select:user-invalid { border-color: #a4402f; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--encre); color: var(--blanc); padding: .6rem 1rem; z-index: 20;
}
.skip:focus { left: 1rem; top: 1rem; }
.visuel-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Boutons */
.bouton {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  cursor: pointer;
  transition-property: background-color, color, border-color, scale;
  transition-duration: .2s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.bouton:active:not(:disabled) { scale: 0.96; }
.bouton-clair { color: var(--blanc); background: transparent; }
.bouton-clair:hover { background: var(--blanc); color: var(--encre); }
.bouton-plein { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.bouton-plein:hover { background: var(--vdg); border-color: var(--vdg); }
.bouton:disabled { opacity: .6; cursor: progress; }

/* Navigation */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem var(--marge);
  color: var(--blanc);
}
.logo { text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo-svg { display: block; height: 1.75rem; width: auto; }
.logo-sous { font-size: .78rem; letter-spacing: .02em; opacity: .8; margin-top: .3rem; }
.nav-cta {
  position: relative;
  font-size: .95rem; text-decoration: none;
  border-bottom: 1px solid rgba(248, 249, 246, .5); padding-bottom: 2px;
}
.nav-cta::after { content: ""; position: absolute; inset: -14px -12px; }
.nav-cta { transition: border-color .15s ease-out; }
.nav-cta:hover { border-color: var(--blanc); }

/* 1. Héros */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 7.5rem;
  display: flex; align-items: flex-end;
  color: var(--blanc);
  overflow: hidden;
  background: var(--encre);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(22, 31, 33, .62) 0%, rgba(22, 31, 33, .25) 48%, transparent 70%),
    linear-gradient(to top, rgba(22, 31, 33, .85) 0%, rgba(22, 31, 33, .45) 40%, rgba(22, 31, 33, .08) 72%),
    linear-gradient(to bottom, rgba(22, 31, 33, .45), transparent 22%);
}
.hero-texte {
  position: relative; z-index: 1;
  padding: 0 var(--marge) clamp(2.5rem, 8vh, 6.5rem);
  max-width: 62rem;
}
.hero h1 {
  font-size: clamp(2.6rem, min(7.4vw, 10.5vh), 6.4rem);
  line-height: .98;
  letter-spacing: -0.025em;
  max-width: 11ch;
  margin-bottom: 1.6rem;
}
.hero p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 44ch; opacity: .92; margin-bottom: 2rem; }

/* Blocs génériques */
.bloc { padding: var(--respiration) var(--marge); }

/* 2. À qui vous parlez */
.qui {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
.qui-texte h2 { margin-bottom: 1.4rem; }
.qui-texte p { color: var(--encre-doux); font-size: 1.15rem; max-width: 40ch; }
.qui-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 65%; outline: 1px solid oklch(0 0 0 / 0.1); outline-offset: -1px; }

/* 3. Ce qu'on achète : la photo prend la forme d'un pignon */
.achat {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
  background: var(--papier-2);
}
.achat-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 40%;
  clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%);
}
.achat-texte h2 { margin-bottom: 1.6rem; }
.achat-liste { margin: 0; }
.achat-liste > div { padding: 1.15rem 0; border-top: 1px solid var(--pierre); }
.achat-liste > div:last-child { border-bottom: 1px solid var(--pierre); }
.achat-liste dt { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; }
.achat-liste dd { margin: .25rem 0 0; color: var(--encre-doux); }
.secteur { margin-top: 1.8rem; color: var(--vdg); font-weight: 500; }

/* 4. Locataires */
.locataires { position: relative; padding-bottom: calc(var(--respiration) * .6); }
.locataires-img { width: 100%; height: clamp(22rem, 72vh, 46rem); object-fit: cover; object-position: 50% 85%; }
.locataires-panneau {
  position: relative;
  background: var(--blanc);
  margin: -6rem var(--marge) 0;
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 40rem;
  box-shadow: 0 1px 2px rgba(30, 42, 44, .06), 0 12px 32px -12px rgba(30, 42, 44, .18);
}
.locataires-panneau h2 { margin-bottom: 1.4rem; }
.locataires-panneau > p { color: var(--encre-doux); }
.engagements { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.engagements li {
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.35;
  padding: .9rem 0 .9rem 1.6rem; position: relative;
  border-top: 1px solid var(--pierre);
}
.engagements li::before {
  /* petit pignon */
  content: ""; position: absolute; left: 0; top: 1.3rem;
  width: .7rem; height: .6rem; background: var(--vdg);
  clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%);
}

/* 5. Tableau comparatif */
.comparer { background: var(--blanc); }
.entete { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.entete h2 { max-width: 22ch; margin-bottom: 1.2rem; }
.entete p { color: var(--encre-doux); }
.tableau { width: 100%; border-collapse: collapse; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 1.2rem 1.5rem 1.2rem 0; }
.tableau thead th {
  font-family: var(--serif); font-weight: 400; font-size: 1.35rem;
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--encre);
}
.tableau tbody th { font-weight: 600; font-size: 1rem; width: 22%; }
.tableau tbody tr { border-bottom: 1px solid var(--pierre); }
.tableau td { color: var(--encre-doux); }
.tableau .col-directe { background: var(--vdg-pale); color: var(--encre); padding-left: 1.5rem; padding-right: 1.5rem; }
.tableau .col-courtier { padding-left: 2rem; }
.tableau thead .col-directe { color: var(--vdg); }

/* 6. Étapes (vraie séquence, donc numérotée) */
.etapes h2 { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.etapes-liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2.5rem; counter-reset: etape;
}
.etapes-liste li { counter-increment: etape; border-top: 1px solid var(--encre); padding-top: 1.4rem; }
.etapes-liste li::before {
  content: counter(etape);
  display: block; font-family: var(--serif); font-size: 3.2rem; line-height: 1;
  color: var(--vdg); margin-bottom: 1.2rem;
}
.etapes-liste h3 { margin-bottom: .7rem; }
.etapes-liste p { color: var(--encre-doux); }

/* 7. Options */
.options { background: var(--encre); color: var(--papier); }
.options-interieur { padding: var(--respiration) var(--marge); }
.options h2 { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.options-grille { display: grid; gap: 2.5rem; }
.options-grille h3 { margin-bottom: .7rem; }
.options-grille p { color: #b9c2bf; }

/* 8. FAQ */
.faq { display: grid; gap: 2.5rem; }
.faq-liste { border-top: 1px solid var(--encre); }
.faq details { border-bottom: 1px solid var(--pierre); }
.faq summary {
  list-style: none; cursor: pointer;
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.35;
  padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .3rem; top: 50%;
  width: .85rem; height: .85rem; margin-top: -.42rem;
  background:
    linear-gradient(var(--encre), var(--encre)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--encre), var(--encre)) center / 1.5px 100% no-repeat;
  transition: transform .2s cubic-bezier(0.2, 0, 0, 1);
}
.faq summary { transition: color .15s ease-out; }
.faq summary:hover { color: var(--vdg); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--encre-doux); padding: 0 2.5rem .9rem 0; margin: 0; }
.faq details p:last-child { padding-bottom: 1.4rem; }
.faq details:target summary, .faq details[open] summary { color: var(--vdg); }
.sources { font-size: .86rem; }
.sources a { color: var(--vdg); }

/* 9. Formulaire */
.contact { display: grid; background: var(--papier-2); }
.contact-photo img { width: 100%; height: 100%; min-height: 20rem; max-height: 34rem; object-fit: cover; }
.contact-texte { padding: var(--respiration) var(--marge); }
.contact-texte h2 { margin-bottom: 1.2rem; }
.contact-texte > p { color: var(--encre-doux); margin-bottom: 1rem; }
.contact-texte > p.appel { margin-bottom: 2.5rem; color: var(--encre); }
.appel a { font-family: var(--serif); font-size: 1.3rem; color: var(--vdg); text-decoration: none; white-space: nowrap; border-bottom: 1px solid currentColor; }
.pied-tel { text-decoration: none; white-space: nowrap; }
.pied-tel:hover { color: var(--vdg); }
.form { max-width: 38rem; }
.champ { margin-bottom: 1.3rem; display: flex; flex-direction: column; }
.champ-duo { display: grid; gap: 0 1.2rem; }
.form label { font-size: .92rem; font-weight: 500; margin-bottom: .45rem; }
.facultatif { font-weight: 400; color: var(--encre-doux); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--pierre); border-radius: 4px;
  padding: .85rem .95rem; width: 100%;
  min-height: 3.1rem;
}
.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - .9rem) 55%;
  background-size: .35rem .35rem; background-repeat: no-repeat;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--vdg); box-shadow: 0 0 0 3px rgba(63, 107, 98, .18); }
.form textarea { resize: vertical; }
.form input, .form select, .form textarea { transition-property: border-color, box-shadow; transition-duration: .15s; transition-timing-function: ease-out; }
.form .bouton { margin-top: .6rem; width: 100%; }
.form-note { font-size: .86rem; color: var(--encre-doux); margin-top: 1rem; }
.form-etat { font-family: var(--serif); font-size: 1.3rem; color: var(--vdg); margin: 0; }
.form.envoye .champ, .form.envoye .champ-duo, .form.envoye .bouton, .form.envoye .form-note { display: none; }

/* 10. Pied de page : une seule ligne, mince */
.pied {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1.5rem;
  padding: 1.1rem var(--marge);
  font-size: .84rem; color: var(--encre-doux);
  border-top: 1px solid var(--pierre);
}
.pied-logo { color: var(--encre); display: inline-flex; }
.pied-logo .logo-svg { height: 1.45rem; }
.pied { align-items: center; }

/* Mobile : tableau en fiches */
@media (max-width: 699px) {
  .tableau thead { display: none; }
  .tableau, .tableau tbody, .tableau tr, .tableau th, .tableau td { display: block; width: 100%; }
  .tableau thead + tbody tr:first-child { border-top: 1px solid var(--encre); }
  .tableau tbody tr { padding: 1rem 0 1.1rem; }
  .tableau tbody th { width: 100%; padding: 0 0 .3rem; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
  .tableau .col-directe { background: none; position: relative; padding: 0 0 0 1.35rem; }
  .tableau .col-directe::before {
    content: ""; position: absolute; left: 0; top: .5rem;
    width: .65rem; height: .55rem; background: var(--vdg);
    clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%);
  }
  .tableau .col-courtier { padding: .45rem 0 0 1.35rem; font-size: .92rem; }
  .tableau .col-courtier::before { content: "Avec un courtier : "; font-weight: 600; color: var(--encre); }
  .lien-faq { margin-top: .6rem; }
  .locataires-panneau { margin-top: -3rem; }
  .pied { justify-content: flex-start; }
}

@media (min-width: 700px) {
  .champ-duo { grid-template-columns: 1fr 1fr; }
  .etapes-liste { grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; }
  .options-grille { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

@media (min-width: 900px) {
  .qui { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .achat { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-bottom: calc(var(--respiration) * .8); }
  .locataires-panneau { margin: -12rem var(--marge) 0 auto; }
  .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .contact-photo { position: relative; }
  .contact-photo img { position: absolute; inset: 0; max-height: none; height: 100%; }
  .pied { flex-wrap: nowrap; }
}

@media (min-width: 1100px) {
  .etapes-liste { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Situations (section Qui) */
.situations-intro { margin-top: 1.6rem; margin-bottom: .6rem; color: var(--encre); font-weight: 500; }
.situations { list-style: none; margin: 0; padding: 0; }
.situations li {
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.35;
  padding: .55rem 0 .55rem 1.5rem; position: relative;
}
.situations li::before {
  content: ""; position: absolute; left: 0; top: 1rem;
  width: .65rem; height: .55rem; background: var(--vdg);
  clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%);
}

/* Le toit tracé au-dessus de la façade */
.achat-photo { position: relative; }
.toit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.toit path {
  fill: none; stroke: var(--vdg); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.achat { padding-top: calc(var(--respiration) + 1rem); }

/* Étapes sur fond foncé pour rythmer la page */
.etapes { background: var(--encre); color: var(--papier); }
.etapes-liste li { border-top-color: rgba(237, 239, 234, .35); }
.etapes-liste li::before { color: #9cc2b7; }
.etapes-liste p { color: #b9c2bf; }
.faq { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
}

/* Évite un éclair du titre avant que les animations démarrent */
.motion-pending .hero-texte { visibility: hidden; }
.hero-img { will-change: transform; }

/* Liens vers la FAQ et le calculateur */
.lien-faq {
  display: block; width: fit-content; margin-top: .75rem;
  font-size: .88rem; font-weight: 500; color: var(--vdg); text-decoration: none;
  border: 1px solid currentColor; border-radius: 999px; padding: .35rem .9rem;
  transition: background-color .15s ease-out, color .15s ease-out;
}
.lien-faq:hover { background: var(--vdg); color: var(--blanc); }
.lien-doux { color: var(--vdg); white-space: nowrap; }

/* Calculateur des frais de courtage */
.calcul { background: var(--vdg-pale); display: grid; gap: clamp(1.8rem, 4vw, 4rem); align-items: start; }
.calcul-intro h2 { margin-bottom: 1.2rem; }
.calcul-intro p { color: var(--encre-doux); max-width: 46ch; }
.calcul-outil { background: var(--blanc); border: 1px solid var(--pierre); border-radius: 6px; padding: clamp(1.4rem, 3.5vw, 2.4rem); max-width: 34rem; }
.calcul-outil label { font-size: .92rem; font-weight: 500; margin-bottom: .45rem; }
.calcul-outil output { font-weight: 600; color: var(--vdg); font-variant-numeric: tabular-nums; }
.prix-champ { display: flex; align-items: baseline; gap: .4rem; border-bottom: 1px solid var(--encre); }
.prix-champ input {
  font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.3rem); color: var(--encre);
  border: 0; background: transparent; padding: .2rem 0; width: 100%; min-width: 0;
  font-variant-numeric: tabular-nums;
}
.prix-champ input:focus { outline: none; }
.prix-champ:focus-within { border-bottom-color: var(--vdg); box-shadow: 0 1px 0 var(--vdg); }
.prix-champ span { font-family: var(--serif); font-size: 1.6rem; color: var(--encre-doux); }
.calcul-outil input[type="range"] { width: 100%; margin: .6rem 0 .1rem; height: 1.6rem; cursor: pointer; }
.taux-bornes { display: flex; justify-content: space-between; font-size: .8rem; color: var(--encre-doux); }
.calcul-resultat { margin: 1.4rem 0 0; font-variant-numeric: tabular-nums; }
.calcul-resultat > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--pierre); }
.calcul-resultat dt { color: var(--encre-doux); }
.calcul-resultat dd { margin: 0; white-space: nowrap; }
.calcul-resultat .calcul-total { flex-direction: column; gap: .2rem; border-top: 1px solid var(--encre); padding-top: 1rem; }
.calcul-total dt { color: var(--encre); font-weight: 500; }
.calcul-total dd { font-family: var(--serif); font-size: clamp(2.4rem, 6.5vw, 3.4rem); line-height: 1.05; color: var(--vdg); }
.calcul-note { font-size: .84rem; color: var(--encre-doux); margin: 1rem 0 0; }
@media (min-width: 900px) {
  .calcul { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .calcul-outil { justify-self: end; width: 100%; }
}

/* Portrait (cadre temporaire en attendant la photo) */
.qui-photo { max-width: 17rem; width: 100%; justify-self: start; }
@media (min-width: 900px) { .qui-photo { max-width: 26rem; justify-self: center; } }
.qui-photo img, .portrait-attente { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-attente {
  display: grid; place-items: center; text-align: center;
  background: var(--papier-2); border: 1px dashed var(--pierre); color: var(--encre-doux); font-size: .9rem;
}
.qui-photo figcaption { margin-top: .7rem; font-size: .88rem; color: var(--encre-doux); }

/* Pied de page : liens discrets sur la même ligne */
.pied-liens { display: inline-flex; gap: 1.5rem; }
.pied-liens a { text-decoration: none; }
.pied-liens a:hover { color: var(--vdg); }

/* Politique de confidentialité */
.politique { max-width: 46rem; }
.politique h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 1.5rem 0 .6rem; }
.politique-date { color: var(--encre-doux); font-size: .9rem; margin-bottom: 2rem; }
.politique h2 { font-size: 1.45rem; max-width: none; margin: 2rem 0 .6rem; }
.politique p { color: var(--encre-doux); }
.politique a { color: var(--vdg); }
.faq details { scroll-margin-top: 1rem; }

/* Photo du calculateur */
.calcul-photo { margin-top: clamp(1.4rem, 3vw, 2rem); }
.calcul-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; border-radius: 6px; }
.calcul-photo img { aspect-ratio: 3 / 2; }
@media (max-width: 899px) {
  .calcul-photo { display: none; }
  .hero-img { object-position: 30% 40%; }
}

/* Calculateur : les deux colonnes finissent à la même hauteur */
@media (min-width: 900px) {
  .calcul { align-items: stretch; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .calcul-intro { display: flex; flex-direction: column; }
  .calcul-photo { flex: 1 1 auto; position: relative; min-height: 14rem; }
  .calcul-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .calcul-outil { max-width: none; justify-self: stretch; }
}

/* Ce qu'on achète : photo moins haute, texte centré à côté */
@media (min-width: 900px) {
  .achat { align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .achat-photo { max-width: 34rem; }
  .achat-photo img { aspect-ratio: 1 / 1; }
}

.qui-photo img { object-position: 50% 30%; border-radius: 6px; }

/* Titre du haut : le mot change dans sa propre ligne masquée */
.titre-visuel { display: block; }
.titre-ligne { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.titre-ligne > .ligne-int { display: block; }
.mot-cadre .mot { display: inline-block; white-space: nowrap; will-change: transform; }
.hero h1 { max-width: none; }
/* Le mot le plus long (« immeuble à revenus ») doit tenir sur sa ligne */
.hero-texte { width: 100%; max-width: 75rem; }
.hero h1 { font-size: clamp(2rem, min(9vw, 10.5vh), 6.4rem); }
.mot-cadre .mot { color: #a8cfc3; }
