/* achetermamaison.info · page d'inscription au guide « Passer de locataire à propriétaire » */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --sol: #E7ECF2;
  --tuile: #FFFFFF;
  --ton: #DCE3ED;
  --ton-clair: #EEF2F7;
  --encre: #16213D;
  --encre-douce: #454C5C;
  --bleu: #2A4D8F;
  --nuit: #101A33;
  --accent: #D9A94F;
  --accent-fonce: #C9963A;
  --erreur: #A3261E;

  --t1: clamp(56px, 11.2vw, 178px);
  --t2: clamp(28px, 2.6vw, 38px);
  --t3: clamp(21px, 1.85vw, 27px);
  --t4: 17px;
  --t5: 14px;

  --marge: clamp(20px, 2.4vw, 32px);
  --ecart-section: clamp(104px, 12vw, 190px);
  --sortie: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: var(--t4);
  line-height: 1.55;
  color: var(--encre);
  background: var(--sol);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
p { margin: 0; }
sup { font-size: .6em; line-height: 0; }
[hidden] { display: none !important; }

.evitement {
  position: absolute; left: 8px; top: 8px; z-index: 10;
  background: var(--encre); color: #fff; padding: 12px 18px; text-decoration: none;
}
.evitement:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement:focus { color: #fff; }

/* ---------- En-tête en tuiles ---------- */
.hero {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  padding: 8px;
  min-height: 100svh;
}
.tuile { background: var(--tuile); }

.bande {
  background: var(--encre);
  color: #fff;
  overflow: hidden;
  padding: 1.1vw 1.4vw .5vw;
}
.monument {
  margin: 0;
  font-size: var(--t1);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.048em;
  white-space: nowrap;
}
.monument .ligne { display: block; text-align: right; }

.liens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.lien {
  min-height: 64px;
  padding: 16px 18px;
  font-size: var(--t4);
  font-weight: 600;
  color: var(--encre);
  text-decoration: none;
  transition: background-color .25s var(--sortie);
}
.lien:hover { background: var(--ton-clair); color: var(--encre); }

.hero-corps {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
}
.rail-gauche {
  grid-column: 1 / 4;
  display: grid;
  gap: 8px;
  align-content: start;
}
.couverture { overflow: hidden; background: var(--encre); }
.couverture img {
  width: 100%;
  animation: derive 26s ease-in-out infinite alternate;
  transform-origin: 50% 30%;
}
@keyframes derive {
  from { transform: scale(1); }
  to { transform: scale(1.07) translateY(-1.5%); }
}
.faits {
  margin: 0;
  padding: 18px 20px;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: var(--t4);
  line-height: 1.35;
}

.formulaire {
  grid-column: 4 / 13;
  padding: clamp(24px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.enonce {
  font-size: var(--t3);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.012em;
  max-width: 34ch;
}


/* ---------- Formulaire ---------- */
.inscription { display: grid; gap: 20px; }
.etape { display: grid; gap: 20px; }
.champs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  align-items: end;
}
.champ { display: grid; gap: 6px; }
.champ label { font-size: var(--t4); font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  font: inherit;
  color: var(--encre);
  background: #fff;
  border: 2px solid #BFC8D5;
  border-radius: 0;
  transition: border-color .2s var(--sortie);
}
input:focus { border-color: var(--encre); outline: 3px solid rgba(42, 77, 143, .3); outline-offset: 0; }
input[aria-invalid="true"] { border-color: var(--erreur); }
input::placeholder { color: #6B7280; }

.horizon { margin: 0; padding: 0; border: 0; }
.horizon legend { padding: 0; margin-bottom: 12px; font-size: var(--t4); font-weight: 600; }
.choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  background: var(--ton-clair);
  cursor: pointer;
  font-size: var(--t4);
  transition: background-color .2s var(--sortie);
}
.option:hover { background: var(--ton); }
.option:has(input:checked) { background: var(--encre); color: #fff; }
.option input, .consentement input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.consentement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--t4);
  line-height: 1.45;
}
.consentement input { margin-top: 2px; }
.envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  font: 600 var(--t4)/1 "Inter", system-ui, sans-serif;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--sortie), background-color .2s var(--sortie);
}
.bouton:active { transform: translateY(1px); }
.bouton-accent { background: var(--accent); color: var(--encre); }
.bouton-accent:hover { background: var(--accent-fonce); color: var(--encre); transform: translateY(-2px); }
.bouton[disabled] { opacity: .7; cursor: progress; }
.champ-action .bouton { width: 100%; }
.bouton-texte {
  padding: 8px 0;
  font: 600 var(--t4) "Inter", system-ui, sans-serif;
  color: var(--bleu);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bouton-texte:hover { color: var(--encre); }

.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore : champ piège invisible, pas un filet */
.etat { font-size: var(--t4); min-height: 1.5em; }
.etat.erreur { color: var(--erreur); font-weight: 600; }
.merci { display: grid; gap: 16px; max-width: 52ch; }
.rassurance { margin-top: auto; font-size: var(--t5); color: var(--encre-douce); }
.formulaire.envoye .rassurance { display: none; }
.merci:focus { outline: none; }

/* Sans JavaScript, les deux étapes restent visibles et les boutons de navigation disparaissent. */
.js-seulement { display: none; }
.js .js-seulement { display: block; }
.js .champ-action.js-seulement { display: grid; }
.js .etape[data-etape="2"] { display: none; }
.js .inscription.etape-2 .etape[data-etape="1"] { display: none; }
.js .inscription.etape-2 .etape[data-etape="2"] { display: grid; }

/* ---------- Sections ---------- */
main > section { padding-inline: var(--marge); }
.titre { margin: 0; font-size: var(--t2); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }

/* Chiffres */

/* Calcul de la mise de fonds */

/* Le guide */
.guide {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 120px);
  padding-block: var(--ecart-section);
  max-width: 1440px;
  margin-inline: auto;
}
.guide-colonne { container-type: inline-size; }
.mot-geant {
  margin: 0 0 20px;
  font-size: var(--t1);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.05em;
  text-transform: uppercase;
}
.barres { display: grid; gap: 6px; }
.barre { background: var(--ton); }
.barre summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background-color .2s var(--sortie);
}
.barre summary::-webkit-details-marker { display: none; }
.barre summary::after { content: "+"; font-size: var(--t3); font-weight: 500; line-height: 1; transition: transform .3s var(--sortie); }
.barre[open] summary::after { transform: rotate(45deg); }
.barre summary:hover { background: #CFD8E5; }
.barre ul { margin: 0; padding: 4px 20px 20px 38px; display: grid; gap: 10px; font-size: var(--t4); }
.guide-image { align-self: start; position: sticky; top: 24px; }

/* Défilant */

/* André */
.andre {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  row-gap: 120px;
  padding-block: var(--ecart-section);
}
.faits-andre { margin: 0; display: grid; gap: 20px; align-content: start; max-width: 230px; }
.faits-andre dt { font-size: var(--t5); color: var(--encre-douce); }
.faits-andre dd { margin: 0; font-size: var(--t4); font-weight: 600; line-height: 1.35; }
.andre-texte { font-size: var(--t3); line-height: 1.38; max-width: 90%; letter-spacing: -.01em; }
.signature { display: block; margin-top: 18px; font-size: var(--t4); font-weight: 700; }

/* Questions */
.questions { padding-block: var(--ecart-section); overflow-x: clip; }
.mot-geant-large {
  font-size: var(--t1);
  text-transform: none;
  letter-spacing: -.048em;
  line-height: .9;
  margin-bottom: 80px;
}
.faq { margin-left: 33.333%; display: grid; gap: 12px; max-width: 980px; }
.faq details { padding: 12px 24px; margin-inline: -24px; transition: background-color .25s var(--sortie); }
.faq details[open] { background: var(--tuile); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
  font-size: var(--t3);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 12px; height: 12px; flex: none;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s var(--sortie);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--bleu); }
.faq details p { padding: 4px 0 16px; max-width: 48ch; }

/* Fin */
.fin {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(72px, 9vw, 140px) 40px;
  background: var(--encre);
  color: #fff;
}
.fin-titre { margin: 0; font-size: var(--t1); font-weight: 800; line-height: .9; letter-spacing: -.048em; }
.fin-titre .ligne { display: block; color: var(--accent); }
.fin-bas { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.fin-bas p { font-size: var(--t4); max-width: 36ch; }

/* Pied de page */
.pied {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 72svh;
  padding: 48px var(--marge) 28px;
  background: var(--nuit);
  color: #D3DAE6;
  overflow: clip;
}
.pied a { color: #fff; }
.pied-colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: var(--t4); }
.pied-colonnes div { display: grid; gap: 6px; align-content: start; }
.pied-titre { color: #fff; font-weight: 600; }
.pied-marque {
  align-self: end;
  margin-top: 64px;
  font-size: 11.5vw;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.05em;
  color: #fff;
  white-space: nowrap;
}
.pied-legal { margin-top: 20px; font-size: var(--t5); color: #B7C1D1; max-width: 75ch; }

/* ---------- Apparitions (ajoutées par le script seulement) ---------- */
.pret { opacity: 0; transform: translateY(24px); }
.vu { opacity: 1; transform: none; transition: opacity .8s var(--sortie), transform .8s var(--sortie); }

@media (prefers-reduced-motion: reduce) {
  .couverture img { animation: none; }
  .pret { opacity: 1; transform: none; }
  .vu, .bouton, .cellule { transition: none; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1100px) {
  .rail-gauche { grid-column: 1 / 4; }
  .formulaire { grid-column: 4 / 13; }
  .guide { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  .hero { gap: 6px; padding: 6px; min-height: 0; }
  .bande { padding: 3vw 3vw 1.5vw; }
  .monument { font-size: 15vw; }
  .liens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .liens .lien:last-child { grid-column: 1 / -1; }
  .lien { min-height: 52px; padding: 14px 16px; }
  .hero-corps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .formulaire { grid-column: 1; order: 1; padding: 24px 20px; gap: 22px; }
  .rail-gauche { grid-column: 1; order: 3; grid-template-columns: 40% minmax(0, 1fr); gap: 6px; }
  .champs, .choix { grid-template-columns: minmax(0, 1fr); }



  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide-image { position: static; width: 78%; }

  .andre { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .andre-texte { order: -1; font-size: 21px; max-width: none; }
  .faits-andre { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }

  .mot-geant { font-size: 31vw; }
  .mot-geant-large { font-size: 15vw; margin-bottom: 40px; }
  .faq { margin-left: 0; }
  .faq details { margin-inline: -20px; padding-inline: 20px; }
  .faq summary { font-size: 21px; }

  .fin { min-height: 80svh; }
  .fin-titre { font-size: 15vw; }
  .fin-bas .bouton { width: 100%; }

  .pied-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; font-size: var(--t4); }
  .pied-marque { font-size: 11.5vw; margin-top: 20svh; }
}

/* ---------- Pages simples (merci, confidentialité, 404) ---------- */
.simple { background: var(--tuile); }
.simple-tete {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px var(--marge); background: var(--encre);
}
.simple-marque { color: #fff; font-weight: 800; font-size: var(--t3); letter-spacing: -.03em; text-decoration: none; }
.simple-lien { color: #fff; font-weight: 600; }
.simple-marque:hover, .simple-lien:hover { color: var(--accent); }
.simple-corps { max-width: 760px; padding: clamp(48px, 8vw, 120px) var(--marge); display: grid; gap: 20px; }
.simple-titre { margin: 0 0 8px; font-size: var(--t2); line-height: 1.12; letter-spacing: -.02em; }
.simple-intro { font-size: var(--t3); line-height: 1.38; }
.simple-corps h2 { margin: 28px 0 0; font-size: var(--t3); line-height: 1.3; }
.simple-corps ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.simple-corps .bouton { margin-top: 12px; }
.simple-pied { padding: 28px var(--marge); background: var(--ton-clair); font-size: var(--t5); color: var(--encre-douce); }

.etape-titre { font-size: var(--t4); font-weight: 700; margin: 0; }
.etape-titre:focus { outline: none; }
.js .etape[data-etape="1"] .champ-action { margin-top: 16px; justify-self: start; }
@media (max-width: 760px) { .js .etape[data-etape="1"] .champ-action { justify-self: stretch; } }

/* ---------- Barre d'action sur téléphone ---------- */
.barre-mobile { display: none; }
@media (max-width: 760px) {
  .liens { display: none; }
  .enonce { font-size: 21px; }
  .formulaire { padding: 22px 18px 26px; gap: 18px; scroll-margin-top: 8px; }
  .option { min-height: 56px; font-size: 17px; }
  .envoi { flex-direction: column; align-items: stretch; gap: 8px; }
  .envoi .bouton { width: 100%; }
  .bouton-texte { min-height: 44px; }
  .consentement { padding: 4px 0; }
  .consentement input { width: 24px; height: 24px; margin-top: 0; }
  .js .barre-mobile {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--sol);
    transform: translateY(110%);
    transition: transform .25s var(--sortie);
  }
  .js .barre-mobile.visible { transform: none; }
  .barre-mobile .bouton { min-height: 52px; padding: 0 18px; }
  .bouton-encre { background: var(--encre); color: #fff; }
  .js body.avec-barre .pied { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .js .barre-mobile { transition: none; } }
