/* Vitrine onseconstruit.ca — palette Héliographie (bleu de Prusse, or, papier). Sobre. */
:root {
  --brand: #16357F;
  --brand-fonce: #0F2557;
  --or: #F0B429;
  --papier: #F5F7FB;
  --texte: #131C33;
  --texte-doux: #44506B;
  --texte-min: #5C6880; /* assez foncé pour le contraste AA 4,5:1 sur papier et blanc */
  --bord: #DDE3EF;
  --m0: #4A5570;
  --m1: #2456C4;
  --m2: #BC6C0C;
  --m3: #2E7D4F;
  --tete: 'Lexend', sans-serif;
  --corps: 'Source Sans 3', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--corps); color: var(--texte); background: var(--papier); line-height: 1.6; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--tete); line-height: 1.12; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.btn {
  display: inline-block; padding: 13px 24px; border-radius: 8px; font-family: var(--tete);
  font-weight: 600; font-size: 15px; text-decoration: none; border: none; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-or { background: var(--or); color: #4A3403; }
.btn-or:hover { background: #E0A61F; transform: translateY(-1px); }
.btn-blanc { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn-blanc:hover { background: rgba(255,255,255,0.22); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45); padding: 8px 16px; font-size: 13px; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-mini { padding: 7px 14px; font-size: 13px; background: var(--brand); color: #fff; border-radius: 6px; }

.topbar { background: var(--brand); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { font-family: var(--tete); font-weight: 800; font-size: 21px; color: #fff; }
/* Même taille et même poids que le reste : c'est la couleur seule qui fait lire
   « On construit ». L'espacement sépare les trois mots. */
.logo-se { color: var(--or); margin: 0 .2em; }

/* Héros : fond bleu de Prusse avec une trame d'héliographie, comme un plan d'architecte. */
.hero {
  background-color: var(--brand);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  color: #fff; padding: 84px 0 92px; text-align: center;
  border-bottom: 3px solid var(--or);
}
.hero-kicker {
  font-family: var(--tete); font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--or); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 6.2vw, 60px); font-weight: 800; max-width: 780px; margin: 0 auto; letter-spacing: -0.02em; }
.hero-sub { font-size: clamp(16px, 2.3vw, 19px); color: rgba(255,255,255,0.86); max-width: 610px; margin: 22px auto 0; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Fil conducteur : les cinq temps du projet. */
.parcours { background: var(--brand-fonce); padding: 0; }
.parcours-liste {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 34px; padding: 20px 0;
}
.parcours-liste li {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--tete); font-weight: 600; font-size: 15px; color: rgba(255,255,255,0.92);
}
.parcours-liste span {
  width: 24px; height: 24px; border-radius: 50%; background: var(--or); color: var(--brand-fonce);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
  font-variant-numeric: tabular-nums; flex-shrink: 0;
}

.hero-note { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 16px; }

/* Aperçus du logiciel : vraies captures, générées par scripts/gen-apercus.mjs.
   height: auto est REQUIS — les attributs width/height du HTML (posés contre le saut
   de mise en page) neutralisent sinon le calcul de hauteur. */
.apercu { margin: 16px 0 18px; }
.apercu img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--bord); border-radius: 10px;
  box-shadow: 0 2px 10px rgba(19,28,51,0.08);
  background: #fff;
}
.apercu figcaption { font-size: 12px; color: var(--texte-min); margin-top: 7px; line-height: 1.5; }

section { padding: 72px 0; }

/* Les trois murs : le problème, posé avant la solution. */
.probleme { background: #fff; }
.murs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; margin-top: 6px; }
.mur h3 { font-size: 18px; color: var(--brand); margin-bottom: 8px; }
.mur p { font-size: 15px; color: var(--texte-doux); }

/* Ce que fait le logiciel : les quatre modules. */
.outil { background: var(--papier); }

/* Ce qui s'en vient : promesses etiquetees, jamais presentees comme livrees. */
.avenir { background: #fff; }
.avenir-intro { max-width: 660px; color: var(--texte-doux); font-size: 16px; margin-bottom: 28px; }
.avenir-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.a-carte { background: var(--papier); border: 1px solid var(--bord); border-radius: 12px; padding: 22px 20px; }
.a-etiq {
  display: inline-block; font-family: var(--tete); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--m2);
  border: 1px solid var(--m2); border-radius: 999px; padding: 3px 9px; margin-bottom: 10px;
}
.a-carte h3 { font-size: 17px; color: var(--brand); margin-bottom: 7px; }
.a-carte p { font-size: 14.5px; color: var(--texte-doux); }

/* Bâtiment passif : une VOIE possible, jamais une obligation. On y définit ce que
   « écoénergétique » veut dire concrètement, parce que le mot ne dit plus rien. */
.passif { background: var(--brand-fonce); color: #fff; }
.passif h2 { color: #fff; margin-bottom: 14px; }
.passif-kicker {
  font-family: var(--tete); font-size: 12.5px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--or); margin-bottom: 12px;
}
.passif-lead { color: rgba(255,255,255,0.86); font-size: 16.5px; max-width: 700px; margin-bottom: 34px; }
.passif-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: start; }
.passif-liste { list-style: none; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 18px 22px; }
.passif-liste li { font-size: 14px; color: rgba(255,255,255,0.8); padding: 12px 0 12px 20px; position: relative; }
.passif-liste li + li { border-top: 1px solid rgba(255,255,255,0.12); }
.passif-liste li::before { content: '◆'; position: absolute; left: 0; top: 15px; font-size: 9px; color: var(--or); }
.passif-liste strong { color: #fff; display: block; font-family: var(--tete); font-size: 13.5px; margin-bottom: 2px; }
.passif-cote { display: flex; flex-direction: column; gap: 14px; }
.passif-carte { border-left: 3px solid var(--or); padding-left: 16px; }
.passif-carte h3 { font-size: 16px; color: #fff; margin-bottom: 5px; }
.passif-carte p { font-size: 14px; color: rgba(255,255,255,0.78); }
.passif-note { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 32px; max-width: 760px; }
.passif-note a { color: var(--or); }

/* La certification elle-meme, distincte du concept : ce qui se passe concretement. */
.passif-cert { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 30px; }
.passif-cert h3 { font-size: 18px; color: #fff; margin-bottom: 20px; }
.cert-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px 30px; }
.cert-item { display: flex; gap: 14px; align-items: flex-start; }
.cert-n {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--or); color: var(--brand-fonce);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--tete); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums;
}
.cert-item p { font-size: 14px; color: rgba(255,255,255,0.78); }
.cert-item strong { color: #fff; }

/* Différenciateurs. */
.atouts { background: var(--papier); }
.atouts-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 6px; }
.atout {
  background: #fff; padding: 22px 20px;
  border-left: 4px solid var(--or); border-radius: 0 12px 12px 0;
  box-shadow: 0 1px 3px rgba(19,28,51,0.05);
}
.atout h3 { font-size: 17px; color: var(--brand); margin-bottom: 6px; }
.atout p { font-size: 14.5px; color: var(--texte-doux); }

.legal { background: #fff; }
.legal h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; color: var(--brand); }
.legal-date { font-size: 13px; color: var(--texte-min); margin-top: 8px; }
.legal-intro { font-size: 17px; color: var(--texte-doux); margin: 24px 0 8px; max-width: 720px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p { max-width: 720px; color: var(--texte-doux); margin-bottom: 10px; }
.legal ul { max-width: 720px; margin: 0 0 14px 20px; color: var(--texte-doux); }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand); }
.legal-fort { font-weight: 600; color: var(--texte) !important; }
h2 { font-size: clamp(25px, 3.6vw, 36px); font-weight: 700; color: var(--brand); margin-bottom: 18px; }

/* Preuve : discrète et en fin de page. Le chantier d'origine sert de caution,
   pas de vitrine personnelle. */
.preuve { background: #fff; }
.preuve-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; }
.preuve-txt { color: var(--texte-doux); font-size: 16px; }
.preuve-visuel { margin: 0; }
/* height: auto est REQUIS : les attributs width/height du HTML (posés pour éviter le
   saut de mise en page) fixeraient sinon la hauteur et neutraliseraient aspect-ratio. */
.preuve-visuel img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; display: block; }
.preuve-visuel figcaption { font-size: 12px; color: var(--texte-min); margin-top: 7px; }

.faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 28px; }
.fait {
  background: var(--papier); padding: 22px 20px;
  border-left: 4px solid var(--or); border-radius: 0 12px 12px 0;
}
.fait strong {
  display: block; font-family: var(--tete); font-size: 34px; font-weight: 800; color: var(--brand);
  font-variant-numeric: tabular-nums; line-height: 1.1; margin-bottom: 6px;
}
.fait span { font-size: 14.5px; color: var(--texte-doux); }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 10px; }
.carte {
  background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 26px 24px;
  box-shadow: 0 1px 3px rgba(19,28,51,0.06);
}
.carte-etape {
  font-family: var(--tete); font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; margin-bottom: 10px;
}
/* Étiquettes assombries : les couleurs de module (ocre surtout) échouaient le
   contraste AA à cette taille de texte. */
.carte-m0 .carte-etape { color: #3C4964; }
.carte-m1 .carte-etape { color: #1D4699; }
.carte-m2 .carte-etape { color: #8F5208; }
.carte-m3 .carte-etape { color: #226240; }
.carte h3 { font-size: 21px; margin-bottom: 10px; color: var(--brand); }
.carte > p { color: var(--texte-doux); font-size: 15px; margin-bottom: 14px; }
.carte ul { list-style: none; }
.carte li { font-size: 14.5px; color: var(--texte-doux); padding: 6px 0 6px 24px; position: relative; }
.carte li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; }
.carte li.a-venir { color: var(--texte-min); font-style: italic; }
.carte li.a-venir::before { content: '◆'; font-size: 11px; }
.carte-m0 li::before { color: var(--m0); }
.carte-m1 li::before { color: var(--m1); }
.carte-m2 li::before { color: var(--m2); }
.carte-m3 li::before { color: var(--m3); }

.liste { background: var(--brand); color: #fff; text-align: center; }
.liste h2 { color: #fff; }
.liste > .wrap > p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }
/* Formulaire de liste d'attente : on demande de quoi segmenter et rappeler, pas juste
   un courriel. Aligne a gauche dans une carte, malgre la section centree. */
.liste-form {
  margin: 30px auto 0; text-align: left; max-width: 720px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px; padding: 26px 24px;
}
.lf-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.lf-champ { display: flex; flex-direction: column; gap: 6px; }
.lf-champ label { font-family: var(--tete); font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.9); }
.lf-opt { font-weight: 400; color: rgba(255,255,255,0.55); }
.lf-champ input {
  padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.3);
  font-size: 15px; font-family: var(--corps); background: #fff; color: var(--texte); width: 100%;
  box-sizing: border-box;
}
.lf-groupe { border: none; margin-top: 22px; padding: 0; }
.lf-groupe legend {
  font-family: var(--tete); font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,0.9); padding: 0; margin-bottom: 10px;
}
.lf-aide { font-size: 13px; color: rgba(255,255,255,0.62); margin: -4px 0 10px; max-width: 560px; line-height: 1.5; }
.lf-aide a { color: var(--or); }
.lf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-chips label { cursor: pointer; }
/* Le bouton radio reste dans le DOM (accessibilite, navigation clavier) mais invisible ;
   c'est le <span> qui porte l'apparence, via :checked + . */
.lf-chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.lf-chips span {
  display: inline-block; border: 1.5px solid rgba(255,255,255,0.35); border-radius: 999px;
  padding: 8px 14px; font-size: 13.5px; color: rgba(255,255,255,0.88); transition: all 0.15s ease;
}
.lf-chips input:checked + span { background: var(--or); border-color: var(--or); color: #4A3403; font-weight: 600; }
.lf-chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.liste-form .btn { margin-top: 24px; width: 100%; }
.consent { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 12px; }
.consent a { color: var(--or); }
.form-msg { font-family: var(--tete); font-weight: 600; font-size: 14px; margin-top: 10px; min-height: 1.4em; }
.liste .form-msg { color: var(--or); }

footer { background: var(--papier); border-top: 1px solid var(--bord); padding: 34px 0 40px; }
.plans-teaser { font-size: 13.5px; color: var(--texte-doux); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plans-inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plans-inline input { padding: 7px 12px; border-radius: 6px; border: 1px solid var(--bord); font-size: 13px; font-family: var(--corps); width: 200px; }
footer .form-msg { color: var(--m3); font-size: 12.5px; margin: 0; }
.footer-legal { font-size: 12px; color: var(--texte-min); margin-top: 18px; line-height: 1.7; }
.footer-legal a { color: var(--brand); }

@media (max-width: 860px) {
  .passif-in { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 760px) {
  .preuve-in { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 560px) {
  .hero { padding: 58px 0 64px; }
  section { padding: 52px 0; }
  .parcours-liste { gap: 6px 18px; }
  .parcours-liste li { font-size: 13.5px; }
}
