/* Comportements de la maquette v40 rendus sans JavaScript : onglets, galerie, bascule Investir / Habiter */
body { background: var(--bg); font-family: "Plus Jakarta Sans", -apple-system, sans-serif; color: var(--t); margin: 0; }
.tabs-css > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tabs-css .tab-panel { display: none; }
.tabs-css > input:nth-of-type(1):checked ~ .tab-panels > .tab-panel:nth-child(1),
.tabs-css > input:nth-of-type(2):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tabs-css > input:nth-of-type(3):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tabs-css > input:nth-of-type(4):checked ~ .tab-panels > .tab-panel:nth-child(4) { display: block; }
.tabs-css > input:nth-of-type(1):checked ~ .tab-bar > label:nth-child(1),
.tabs-css > input:nth-of-type(2):checked ~ .tab-bar > label:nth-child(2),
.tabs-css > input:nth-of-type(3):checked ~ .tab-bar > label:nth-child(3),
.tabs-css > input:nth-of-type(4):checked ~ .tab-bar > label:nth-child(4) { color: var(--p); font-weight: 800; border-bottom-color: var(--p); background: var(--pl); }
.tabs-css > input:focus-visible ~ .tab-bar { outline: 2px solid var(--pm); outline-offset: 2px; }
.gallery-css > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.gallery-css .g-main img { display: none; }
.gallery-css .g-thumb { border: 2px solid transparent; }
.gallery-css > input:nth-of-type(1):checked ~ .g-wrap .g-main img:nth-of-type(1) { display: block; }
.gallery-css > input:nth-of-type(1):checked ~ .g-wrap .g-thumbs label:nth-of-type(1) { border-color: var(--p); }
.gallery-css > input:nth-of-type(2):checked ~ .g-wrap .g-main img:nth-of-type(2) { display: block; }
.gallery-css > input:nth-of-type(2):checked ~ .g-wrap .g-thumbs label:nth-of-type(2) { border-color: var(--p); }
.gallery-css > input:nth-of-type(3):checked ~ .g-wrap .g-main img:nth-of-type(3) { display: block; }
.gallery-css > input:nth-of-type(3):checked ~ .g-wrap .g-thumbs label:nth-of-type(3) { border-color: var(--p); }
.gallery-css > input:nth-of-type(4):checked ~ .g-wrap .g-main img:nth-of-type(4) { display: block; }
.gallery-css > input:nth-of-type(4):checked ~ .g-wrap .g-thumbs label:nth-of-type(4) { border-color: var(--p); }
.gallery-css > input:nth-of-type(5):checked ~ .g-wrap .g-main img:nth-of-type(5) { display: block; }
.gallery-css > input:nth-of-type(5):checked ~ .g-wrap .g-thumbs label:nth-of-type(5) { border-color: var(--p); }
.gallery-css > input:nth-of-type(6):checked ~ .g-wrap .g-main img:nth-of-type(6) { display: block; }
.gallery-css > input:nth-of-type(6):checked ~ .g-wrap .g-thumbs label:nth-of-type(6) { border-color: var(--p); }
.gallery-css > input:nth-of-type(7):checked ~ .g-wrap .g-main img:nth-of-type(7) { display: block; }
.gallery-css > input:nth-of-type(7):checked ~ .g-wrap .g-thumbs label:nth-of-type(7) { border-color: var(--p); }
.gallery-css > input:nth-of-type(8):checked ~ .g-wrap .g-main img:nth-of-type(8) { display: block; }
.gallery-css > input:nth-of-type(8):checked ~ .g-wrap .g-thumbs label:nth-of-type(8) { border-color: var(--p); }
/* Bascule Investir / Habiter du formulaire (maquette v37) sans JavaScript */
.v37-projet-css > input { position: absolute; opacity: 0; pointer-events: none; }
.v37-projet-css > label { height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 600 14px/1 inherit; color: var(--ink2); cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; }
.v37-projet-css > input:checked + label { border-color: var(--navy); background: var(--tint); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.v37-projet-css > input[value="habiter"]:checked + label { border-color: var(--green); background: #eef8f4; color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.v37-projet-css > input:focus-visible + label { outline: 2px solid var(--pm); outline-offset: 2px; }
.v37-form:has(input[name="projet"][value="investir"]:checked) .v37-rp-only, .v37-form:has(input[name="projet"][value="habiter"]:checked) .v37-inv-only { display: none; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr !important; } }
.v40-name a { color: inherit; text-decoration: none; }
.v40-act a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.v40-left { position: absolute; bottom: 12px; left: 12px; background: #fff; color: #b23a3a; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 50px; }
@media (max-width: 900px) { .ts-grid { grid-template-columns: 1fr !important; } }
/* Page « programme vendu » : liens à la place des boutons de la maquette */
.v38-crumb a { color: inherit; text-decoration: none; }
a.v38-alt { color: inherit; text-decoration: none; display: block; }
a.v38-wide-link, a.v38-alert, a.v38-inline { text-decoration: none; }
.v38-empty { color: var(--mu); font-size: 14px; }
/* Page « programme vendu » : bascule Pour investir / Pour y vivre et carte de la ville */
.v38-profils > input { position: absolute; opacity: 0; pointer-events: none; }
.v38-profil-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--bo); border-radius: 14px; background: var(--bg); margin: 0 0 18px; }
.v38-profil-tabs label { padding: 8px 18px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--mu); cursor: pointer; }
.v38-profil-tabs label span { font-weight: 600; opacity: .75; margin-left: 4px; }
#profil-inv:checked ~ .v38-profil-tabs label[for="profil-inv"] { background: var(--p); color: #fff; }
#profil-rp:checked ~ .v38-profil-tabs label[for="profil-rp"] { background: var(--rp); color: #fff; }
.v38-profil { display: none; }
#profil-inv:checked ~ .v38-profil-investir, #profil-rp:checked ~ .v38-profil-habiter { display: block; }
.v38-profils > input:focus-visible ~ .v38-profil-tabs { outline: 2px solid var(--pm); outline-offset: 2px; }
.v38-carte { height: 420px; border-radius: 16px; border: 1px solid var(--bo); overflow: hidden; background: var(--pl); }
/* Fiche programme retravaillée (avis UX et audit du 10/11) : pastilles, boutons d'en-tête, filtre des lots, action mobile */
.chip-info { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 50px; background: var(--pl); border: 1px solid var(--pm); color: var(--pd, #244d75); font-size: 12.5px; font-weight: 700; }
.chip-info.chip-ok { background: rgb(232, 247, 241); border-color: rgb(187, 230, 212); color: rgb(15, 118, 89); }
.cta-main, .cta-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 50px; font-weight: 800; font-size: 14px; text-decoration: none; }
.cta-main { color: #fff; }
.cta-ghost { color: var(--t); background: #fff; border: 1.5px solid var(--bo); }
.cta-main:focus-visible, .cta-ghost:focus-visible, .cta-mobile:focus-visible { outline: 3px solid var(--pm); outline-offset: 2px; }
.lots-filtre { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.lots-filtre input { position: absolute; opacity: 0; pointer-events: none; }
.lots-filtre label { padding: 6px 14px; border-radius: 50px; border: 1px solid var(--bo); background: #fff; font-size: 13px; font-weight: 700; color: var(--mu); cursor: pointer; }
.lots-filtre input:checked + label { background: var(--p); border-color: var(--p); color: #fff; }
.lots-filtre input:focus-visible + label { outline: 2px solid var(--pm); outline-offset: 2px; }
.cta-mobile { display: none; }
@media (max-width: 900px) {
  .cta-mobile { display: flex; align-items: center; justify-content: center; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; min-height: 50px; border-radius: 50px; color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; box-shadow: 0 8px 24px rgba(15, 34, 56, .25); }
  body:has(.cta-mobile) { padding-bottom: 74px; }
  #programme-entete h1 { font-size: 24px; }
}
/* Formulaire en deux étapes sans JavaScript (Eric, 10/11) : mêmes champs, mêmes boutons que la maquette */
.v37-step1, .v37-step2 { display: flex; flex-direction: column; gap: 10px; }
.v37-step2 { display: none; }
.v37-step-toggle { position: absolute; opacity: 0; pointer-events: none; }
.v37-step-toggle:checked ~ .v37-step1 { display: none; }
.v37-step-toggle:checked ~ .v37-step2 { display: flex; }
.v37-next { display: flex; align-items: center; justify-content: center; user-select: none; }
.v37-form:has(.v37-step1 :invalid) .v37-next { background: #e6eaef; color: #3c4a59; pointer-events: none; box-shadow: none; }
.v37-step-toggle:focus-visible ~ .v37-step1 .v37-next, .v37-step-toggle:focus-visible ~ .v37-step2 .v37-back { outline: 2px solid var(--pm); outline-offset: 3px; }
.v37-back { align-self: center; font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; padding: 4px 8px; }
.v37-back:hover { color: var(--navy); }
.v37-steps { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; }
.v37-steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: var(--ink2); border: 1px solid var(--line); background: #fff; }
.v37-steps span.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.v37-steps span.done { background: var(--tint); border-color: var(--navy); color: var(--navy); }
.v37-steps i { flex: 0 0 28px; height: 2px; background: var(--line); border-radius: 2px; }
.v37-steps i.on { background: var(--navy); }
/* Relecture direction artistique (10/11) */
/* overflow-x: hidden sur html/body empêchait le formulaire de rester visible au défilement : clip garde la coupe sans casser sticky */
html, body { overflow-x: clip; overflow-y: visible; }
/* Cinq chiffres au plus, chacun dans sa case : jamais de chevauchement (audit UX du 10/11) */
.spec-bar { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); margin: 0 0 12px; padding: 0; background: #fff; border: 1px solid var(--bo); border-radius: 14px; box-shadow: var(--s1); overflow: hidden; }
.spec { min-width: 0; padding: 12px 16px; border-left: 1px solid var(--bo); margin: -1px 0 0 -1px; border-top: 1px solid var(--bo); }
.spec dt { font-size: 12px; color: var(--mu); font-weight: 600; margin: 0 0 3px; }
.spec dd { margin: 0; font-size: 16px; font-weight: 800; color: var(--t); line-height: 1.25; overflow-wrap: anywhere; }
.spec-sub { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--green, #0f8a68); }
@media (max-width: 1180px) { .spec-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spec-main dd { font-size: 21px; color: var(--pd, #244d75); letter-spacing: -0.01em; }
.detail-grid.rp .spec-main dd { color: var(--rpd); }
.lots-note { margin: -4px 0 14px; font-size: 13px; color: var(--mu); line-height: 1.5; }
.lot-cta { display: inline-block; padding: 8px 14px; border-radius: 50px; border: 1.5px solid var(--p); color: var(--p); background: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s; }
.lot-cta:hover, .lot-cta:focus-visible { background: var(--p); color: #fff; }
.detail-grid.rp .lot-cta { border-color: var(--rp); color: var(--rp); }
.detail-grid.rp .lot-cta:hover, .detail-grid.rp .lot-cta:focus-visible { background: var(--rp); color: #fff; }
/* Mobile (relecture du 10/11) : la colonne ne doit jamais dépasser l'écran */
.detail-grid > div { min-width: 0; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .spec-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec dd { white-space: normal; }
  .spec-main { grid-column: 1 / -1; }
  .spec-main dd { font-size: 24px; }
  #programme-entete h1 span { display: block; font-size: 20px; }
  .cta-main, .cta-ghost { flex: 1 1 100%; }
  .lots-filtre label { padding: 6px 12px; }
}
/* Lots : 10 affichés, les autres derrière « Voir les N autres lots » (Eric, 10/11) */
.lots-zone tr.lot-plus { display: none; }
.lots-zone:has(#lots-tous:checked) tr.lot-plus,
.lots-zone:has(.lots-filtre input:not(#typo-tous):checked) tr.lot-plus { display: table-row; }
.lots-plus-toggle { position: absolute; opacity: 0; pointer-events: none; }
.lots-plus-btn { display: flex; align-items: center; justify-content: center; margin: 12px auto 0; width: fit-content; min-height: 42px; padding: 0 22px; border-radius: 50px; border: 1.5px solid var(--bo); background: #fff; color: var(--t); font-size: 13.5px; font-weight: 800; cursor: pointer; }
.lots-plus-btn:hover { border-color: var(--p); color: var(--p); }
.lots-plus-toggle:focus-visible + .lots-plus-btn { outline: 2px solid var(--pm); outline-offset: 2px; }
.lots-plus-btn .moins, .lots-plus-toggle:checked + .lots-plus-btn .plus { display: none; }
.lots-plus-toggle:checked + .lots-plus-btn .moins { display: inline; }
.lots-zone:has(.lots-filtre input:not(#typo-tous):checked) .lots-plus-btn { display: none; }

/* Vignettes de programme (maquette v40) : photo au même format partout, étiquettes, prix alignés en bas */
.v40-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; align-items: stretch; }
.v40-grid > li { display: flex; min-width: 0; }
.v40-grid .v40-card { width: 100%; }
.v40-img img { position: absolute; inset: 0; }

.v40-why { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: #7a5a2b; }
.v40-price b.v40-ask { font-size: 16px; font-weight: 700; }
@media (max-width: 1180px) { .v40-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .v40-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .v40-grid { grid-template-columns: 1fr; } }

/* Catalogue : tri et vue grille, liste ou carte, choisie sans JavaScript (boutons radio et :has) */
.cat-vue { position: absolute; opacity: 0; pointer-events: none; }
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 0 22px; }
.cat-tri { display: flex; align-items: center; gap: 10px; }
.cat-tri label { font-size: 13.5px; color: #4a5b70; white-space: nowrap; }
.cat-tri select { height: 46px; min-width: 220px; padding: 0 16px; border: 1px solid #dde3ea; border-radius: 12px; background: #fff; font-family: inherit; font-size: 15px; font-weight: 500; color: #14263d; cursor: pointer; }
.cat-tri select:focus-visible { outline: 3px solid #e2c68f; outline-offset: 2px; }
.cat-seg { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid #dde3ea; border-radius: 999px; }
.cat-seg label { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #4a5b70; cursor: pointer; transition: background .15s, color .15s; }
.cat:has(#vue-grille:checked) label[for="vue-grille"], .cat:has(#vue-liste:checked) label[for="vue-liste"], .cat:has(#vue-carte:checked) label[for="vue-carte"] { background: #1b3a5a; color: #fff; }
.cat:has(#vue-grille:focus-visible) label[for="vue-grille"], .cat:has(#vue-liste:focus-visible) label[for="vue-liste"], .cat:has(#vue-carte:focus-visible) label[for="vue-carte"] { outline: 3px solid #e2c68f; outline-offset: 2px; }
.cat:has(#vue-liste:checked) .cat-grid { grid-template-columns: 1fr; }
.cat:has(#vue-liste:checked) .v40-card { flex-direction: row; }
.cat:has(#vue-liste:checked) .v40-img { width: 340px; flex: none; aspect-ratio: auto; min-height: 230px; }
.cat-carte { display: none; }
.cat:has(#vue-carte:checked) .cat-carte { display: grid; }
.cat:has(#vue-carte:checked) .cat-grid { display: none; }
.cat-vide { padding: 32px; border: 1px dashed #c3ceda; border-radius: 16px; color: #4a5b70; text-align: center; }
.cat-pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 30px 0 0; }
.cat-pages .cat-gap { border: 0; min-width: 20px; color: #6b7a8c; }
.cat-pages .cat-step { padding: 0 14px; }
@media (max-width: 700px) { .cat-pages .cat-step span { display: none; } .cat-pages a, .cat-pages span { min-width: 40px; height: 40px; } }
.cat-pages a, .cat-pages span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 6px; border-radius: 999px; border: 1px solid #dde3ea; color: #1b3a5a; font-weight: 700; text-decoration: none; }
.cat-pages span[aria-current] { background: #1b3a5a; border-color: #1b3a5a; color: #fff; }
@media (max-width: 700px) {
  .cat-bar { align-items: stretch; }
  .cat-tri, .cat-tri select { width: 100%; min-width: 0; }
  .cat-seg { width: 100%; }
  .cat-seg label { flex: 1; justify-content: center; }
  .cat:has(#vue-liste:checked) .v40-card { flex-direction: column; }
  .cat:has(#vue-liste:checked) .v40-img { width: auto; aspect-ratio: 16 / 10; min-height: 0; }

}

/* Fenêtre « Recevoir la brochure » / « Prix & plan » (Eric, 10/11) : s'ouvre sans JavaScript (:target),
   le petit script demande.js ajoute le lot choisi, Échap et le clic à côté pour fermer */
.pop { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 34, 56, .58); backdrop-filter: blur(3px); }
.pop:target, .pop.open { display: flex; }
.pop-box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; padding: 26px 24px 20px; box-shadow: 0 30px 80px rgba(15, 34, 56, .35); animation: pop-in .22s ease-out; }
.pop-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #4a5b70; font-size: 22px; line-height: 1; text-decoration: none; }
.pop-close:hover { background: #f2f5f9; color: #14263d; }
.pop-close:focus-visible { outline: 3px solid #e2c68f; outline-offset: 2px; }
.pop-lot { display: inline-block; margin: 0 0 10px; padding: 4px 11px; border-radius: 999px; background: #f2f5f9; color: #1b3a5a; font-size: 12.5px; font-weight: 700; }
.pop-lot:empty { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pop-box { animation: none; } }
body:has(.pop:target), body:has(.pop.open) { overflow: hidden; }

/* Toute la vignette est cliquable : le lien du nom couvre la carte (un seul lien, lu une fois par les lecteurs d'écran) */
.v40-card { position: relative; }
.v40-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.v40-link:focus-visible { outline: none; }
.v40-card:has(.v40-link:focus-visible) { outline: 3px solid #e2c68f; outline-offset: 3px; }
.v40-go { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.v40-card:hover .v40-go { background: #0f2238; }

/* « Tout savoir » replié partie par partie (audit UX du 10/11) */
.ts-part { border-bottom: 1px solid var(--bo); padding-bottom: 14px; }
.ts-part summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ts-part summary::-webkit-details-marker { display: none; }
.ts-part summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--mu); }
.ts-part[open] summary::after { content: "–"; }

/* « L'analyse Supinvest » (Eric, 10/11) : placée juste après les lots, atouts et vigilances côte à côte,
   conclusion propre au projet (investir ou habiter) et méthode en pied */
.analyse { background: white; border: 1px solid var(--pm); border-left: 4px solid rgb(46, 94, 140); border-radius: 14px; padding: 22px 24px; margin: 0 0 24px; }
.detail-grid.rp .analyse { border-left-color: var(--rp); }
.analyse h2 { font-size: 20px; font-weight: 800; color: var(--t); margin: 0 0 10px; letter-spacing: -0.01em; }
.analyse h3 { font-size: 14px; font-weight: 800; color: var(--t); margin: 0 0 8px; }
.analyse-intro { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: rgb(51, 65, 85); }
.analyse-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.analyse ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; line-height: 1.6; color: rgb(51, 65, 85); }
.analyse li { padding-left: 22px; position: relative; }
.analyse-plus li::before { content: "+"; position: absolute; left: 0; font-weight: 800; color: rgb(19, 168, 126); }
.analyse-watch li::before { content: "!"; position: absolute; left: 4px; font-weight: 800; color: rgb(196, 120, 22); }
.analyse-conclusion { margin: 18px 0 0; padding: 16px 18px; background: var(--pl); border: 1px solid var(--pm); border-radius: 12px; }
.detail-grid.rp .analyse-conclusion { background: var(--rpl); border-color: var(--rpm); }
.analyse-conclusion p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.7; color: var(--t); }
.analyse-cta { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 10px; background: rgb(46, 94, 140); color: white; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.detail-grid.rp .analyse-cta { background: var(--rp); }
.analyse-sign { margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--mu); }

/* Page « Je veux investir » : loyer prévu, loyer de marché et loyer plafonné, sans les confondre */
.loyers { margin: 0 0 24px; }
.loyers h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 12px; }
.loyers table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: white; border: 1px solid var(--bo); border-radius: 14px; overflow: hidden; }
.loyers th, .loyers td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--bo); white-space: nowrap; }
.loyers thead th { background: var(--pl); color: var(--pd, #244d75); font-size: 12.5px; font-weight: 800; }
.loyers tbody th { font-weight: 800; color: var(--t); }
.loyers tbody th span { font-weight: 500; color: var(--mu); margin-left: 6px; }
.loyers td { font-variant-numeric: tabular-nums; color: var(--t); }
.loyers-legende { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.6; color: var(--mu); }
.loyers-legende strong { color: var(--t); }
.loyers-alerte { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: rgb(255, 247, 237); border: 1px solid rgb(253, 215, 170); color: rgb(146, 64, 14); font-size: 13.5px; line-height: 1.6; }

/* Page « Résidence principale » : ce qu'il y a autour, par catégorie */
.vivre { margin: 0 0 24px; }
.vivre h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 12px; }
.vivre-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.vivre-grid > div { background: white; border: 1px solid var(--bo); border-radius: 12px; padding: 14px 16px; }
.vivre h3 { font-size: 13.5px; font-weight: 800; color: var(--rpd, var(--t)); margin: 0 0 8px; }
.vivre ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.vivre li { display: flex; justify-content: space-between; gap: 10px; color: var(--t); }
.vivre li small { color: var(--mu); }
.vivre-dist { color: var(--mu); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vivre-source { margin: 10px 0 0; font-size: 12.5px; color: var(--mu); }

/* ═══ Barre de filtres du catalogue (maquette v36, Eric 10/11) ═══
   Les styles v36 visaient des boutons React : ici ce sont des cases et des boutons radio dans des étiquettes,
   cochés sans JavaScript ; :has(:checked) donne l'état « choisi ». */
.cat .v36-bar input, .cat .v36-bar button, .cat .v36-bar select, .cat .v36-bar label, .cat .v36-bar summary, .cat .v36-results select { font-family: inherit; }
.cat .v36-bar { top: 60px; }
.cat .v36-search input { font-size: 14px; font-weight: 500; }
.cat .v36-pill { font-size: 13.5px; font-weight: 500; list-style: none; user-select: none; }
.cat .v36-pill::-webkit-details-marker { display: none; }
.cat .v36-pill.has { font-weight: 600; }
.cat details[open] > .v36-pill:not(.has) { border-color: var(--navy); }
.cat .v36-pill:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.cat .v36-alert { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.cat .v36-cta { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 4px; text-decoration: none; }
.cat .v36-cta.full { font-size: 15px; }
.cat .v36-ghost { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; }
.cat .v36-link { font-size: 13.5px; font-weight: 600; }
.cat .v36-input input { font-size: 16px; font-weight: 500; }
.cat .v36-chip { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; }
.cat .v36-chip:has(:checked), .cat .v36-chip.on { border-color: var(--navy); background: var(--tint); color: var(--navy); font-weight: 600; }
/* Cases cachées : l'étiquette entière se coche */
.cat .v36-usage input, .cat .v36-dcard input, .cat .v36-seg input, .cat .v36-ychip input, .cat .v36-tile input, .cat .v36-chip input, .cat .v36-dpe input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cat .v36-usage label { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; transition: all .15s; }
.cat .v36-usage label:has(:checked) { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(20, 38, 61, .14); }
.cat .v36-dcard-name { font-size: 14px; font-weight: 600; }
.cat .v36-dcard-count { font-size: 12px; font-weight: 600; }
.cat .v36-dcard:has(:checked) { border-color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px var(--navy); }
.cat .v36-dcard:has(:checked) .v36-dcard-check { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat .v36-dcard:has(:checked) .v36-dcard-count { background: #fff; color: var(--navy); }
.cat .v36-dcard:has(:disabled) { opacity: .45; cursor: default; }
.cat .v36-seg label { display: grid; place-items: center; height: 48px; border-right: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cat .v36-seg label:last-child { border-right: 0; }
.cat .v36-seg label:has(:checked) { background: var(--navy); color: #fff; }
.cat .v36-ychip:has(:checked) { border-color: var(--navy); background: var(--tint); box-shadow: inset 0 0 0 1px var(--navy); }
.cat .v36-tile { font-size: 13.5px; font-weight: 600; }
.cat .v36-tile:has(:checked) { border-color: var(--navy); background: var(--tint); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.cat .v36-dpe label { display: grid; place-items: center; width: 52px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.cat .v36-dpe .dpe-A:has(:checked) { background: #0f8a68; color: #fff; border-color: #0f8a68; }
.cat .v36-dpe .dpe-B:has(:checked) { background: #4f9d4a; color: #fff; border-color: #4f9d4a; }
.cat .v36-dpe .dpe-C:has(:checked) { background: #a9b833; color: #fff; border-color: #a9b833; }
.cat .v36-dpe .dpe-D:has(:checked) { background: #e0b22b; color: #14263d; border-color: #e0b22b; }
.cat label:has(:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.cat .v36-tag { font-size: 13px; font-weight: 500; text-decoration: none; }
.cat .v36-results { padding-top: 18px; }
.cat .v36-results .crumbs { margin-bottom: 10px; }
.cat .v36-sheet-bg { z-index: 1100; }
/* Vue « Carte » : la carte à gauche, à droite les programmes de la zone affichée (maquette v40) */
.cat-carte { grid-template-columns: minmax(0, 1fr) 360px; height: 640px; border: 1px solid #dde3ea; border-radius: 16px; overflow: hidden; background: #fff; }
.cat-carte-map { height: 100%; min-height: 0; }
.cat-carte-liste { overflow: auto; background: #f6f8fa; border-left: 1px solid #dde3ea; padding: 14px; }
.cat-carte-aide { margin: 4px 0 12px; text-align: center; font-size: 13.5px; color: #4a5b70; }
.cat-carte-liste ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cat-mini { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 0 12px 0 0; background: #fff; border: 1px solid #dde3ea; border-radius: 12px; overflow: hidden; cursor: pointer; text-align: left; width: 100%; font: inherit; color: #14263d; transition: border-color .15s, box-shadow .15s; }
.cat-mini:hover, .cat-mini.on { border-color: #1b3a5a; box-shadow: 0 4px 14px rgba(20, 38, 61, .1); }
.cat-mini img, .cat-mini .cat-mini-ph { width: 96px; height: 84px; object-fit: cover; display: block; background: #e7edf3; }
.cat-mini b { display: block; font-size: 14.5px; font-weight: 700; }
.cat-mini small { display: block; font-size: 13px; color: #4a5b70; margin: 2px 0 4px; }
.cat-mini em { font-style: normal; font-weight: 800; color: #1b3a5a; font-size: 14px; }
.cat-mini i { font-style: normal; margin-left: 6px; display: inline-block; padding: 2px 8px; border-radius: 999px; background: #1b3a5a; color: #fff; font-size: 11.5px; font-weight: 700; }
.cat-pin { background: #1b3a5a; color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 3px 8px; font: 700 12px/1 "Plus Jakarta Sans", sans-serif; white-space: nowrap; box-shadow: 0 3px 10px rgba(15, 34, 56, .3); transform: translate(-50%, -50%); display: inline-block; }
.cat-pin.on { background: #c9a063; color: #0f2238; }
@media (max-width: 980px) {
  .cat-carte { grid-template-columns: 1fr; grid-template-rows: 420px auto; height: auto; }
  .cat-carte-liste { border-left: 0; border-top: 1px solid #dde3ea; max-height: 420px; }
}
/* Mobile : la barre reste complète et défile ; les fenêtres s'ouvrent au centre */
@media (max-width: 760px) {
  .cat .v36-bar { top: 60px; }
  .cat .v36-bar-in { flex-wrap: wrap; }
  .cat .v36-usage, .cat .v36-pills, .cat .v36-alert { display: flex; }
  .cat .v36-alert { margin-left: 0; }
  .cat .v36-search { flex: 1 1 100%; }
}

/* ═══ Programme vendu : passerelle vers les programmes disponibles (recommandation UX du 10/11) ═══ */
.arch-hero { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 28px; align-items: center; margin: 8px 0 30px; }
.arch-photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: #e7edf3; }
.arch-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.arch-eyebrow { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: #4a5b70; }
.arch-badge { display: inline-flex; align-items: center; margin: 10px 0 0; padding: 5px 12px; border-radius: 999px; background: #fdecea; color: #a23a2e; font-size: 13px; font-weight: 700; }
.arch-msg { margin: 12px 0 18px; font-size: 16px; line-height: 1.6; color: #334155; max-width: 60ch; }
.arch-cta { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: 999px; background: #1b3a5a; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.arch-cta:hover { background: #0f2238; }
.arch-dispo { scroll-margin-top: 80px; margin: 0 0 40px; }
.arch-radio { position: absolute; opacity: 0; pointer-events: none; }
.arch-head h2 { margin: 0; font: 600 26px/1.2 Spectral, Georgia, serif; color: #14263d; }
.arch-head p { margin: 6px 0 16px; color: #4a5b70; font-size: 14.5px; }
.arch-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; max-width: 760px; }
.arch-choix label { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1.5px solid #dde3ea; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.arch-choix label b { font-size: 17px; color: #14263d; }
.arch-choix label span { font-size: 13px; color: #4a5b70; }
.arch-choix label:hover { border-color: #9fb2c6; }
.arch:has(#arch-inv:checked) label[for="arch-inv"], .arch:has(#arch-rp:checked) label[for="arch-rp"] { border-color: #1b3a5a; background: #f2f5f9; box-shadow: inset 0 0 0 1px #1b3a5a; }
.arch:has(#arch-inv:focus-visible) label[for="arch-inv"], .arch:has(#arch-rp:focus-visible) label[for="arch-rp"] { outline: 2px solid #1b3a5a; outline-offset: 2px; }
.arch-split { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 18px; align-items: start; }
.arch-map { height: 560px; border: 1px solid #dde3ea; border-radius: 16px; overflow: hidden; background: #eef2f6; }
.arch-legend { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; color: #4a5b70; }
.arch-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px #c3ceda; }
.arch-dot.rouge { background: #c0392b; }
.arch-dot.bleu { background: #2e5e8c; margin-left: 10px; }
.arch-list-col { max-height: 590px; overflow: auto; padding-right: 4px; }
.arch-list-investir, .arch-list-habiter { display: none; }
.arch:has(#arch-inv:checked) .arch-list-proches, .arch:has(#arch-rp:checked) .arch-list-proches { display: none; }
.arch:has(#arch-inv:checked) .arch-list-investir, .arch:has(#arch-rp:checked) .arch-list-habiter { display: block; }
.arch-list-title { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: #4a5b70; }
.arch-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.arch-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; background: #fff; border: 1px solid #dde3ea; border-radius: 14px; overflow: hidden; color: #14263d; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.arch-item:hover, .arch-item.on { border-color: #1b3a5a; box-shadow: 0 6px 18px rgba(20, 38, 61, .1); }
.arch-item-img { position: relative; background: #e7edf3; min-height: 120px; }
.arch-item-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch-item-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 12px 0; min-width: 0; }
.arch-item-body b { font-size: 15.5px; }
.arch-item-body small { font-size: 13px; color: #4a5b70; line-height: 1.4; }
.arch-item-prix { font-size: 14px; font-weight: 800; color: #1b3a5a; }
.arch-item-info { align-self: flex-start; margin-top: 2px; padding: 3px 9px; border-radius: 999px; background: #eef6f1; color: #0f8a68; font-size: 12px; font-weight: 700; }
.arch-item-cta { margin-top: 4px; font-size: 13px; font-weight: 700; color: #2e5e8c; }
.arch-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; }
.arch-more-link { display: none; height: 44px; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid #1b3a5a; color: #1b3a5a; font-weight: 700; font-size: 14px; text-decoration: none; }
.arch-more-proches { display: inline-flex; }
.arch:has(#arch-inv:checked) .arch-more-proches, .arch:has(#arch-rp:checked) .arch-more-proches { display: none; }
.arch:has(#arch-inv:checked) .arch-more-investir, .arch:has(#arch-rp:checked) .arch-more-habiter { display: inline-flex; }
.arch-more-alt { font-size: 13.5px; font-weight: 600; color: #14263d; text-underline-offset: 3px; }
.arch-histo h2 { margin: 0 0 12px; font: 600 22px/1.25 Spectral, Georgia, serif; }
.arch-pin { width: 16px; height: 16px; border-radius: 50%; background: #2e5e8c; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(15, 34, 56, .35); transform: translate(-50%, -50%); }
.arch-pin.on { background: #c9a063; width: 20px; height: 20px; }
.arch-pin.vendu { background: #c0392b; width: 20px; height: 20px; }
.arch-retour { background: #fff; border: 1px solid #c3ceda; border-radius: 8px; padding: 6px 10px; font: 600 12.5px/1.2 "Plus Jakarta Sans", sans-serif; color: #14263d; cursor: pointer; box-shadow: 0 2px 6px rgba(15, 34, 56, .15); }
@media (max-width: 900px) {
  .arch-hero { grid-template-columns: 1fr; gap: 16px; }
  .arch-photo { aspect-ratio: 16 / 7; }
  .arch-choix { grid-template-columns: 1fr 1fr; }
  /* Mobile : d'abord les programmes, puis la carte */
  .arch-split { grid-template-columns: 1fr; }
  .arch-list-col { order: -1; max-height: none; overflow: visible; }
  .arch-map { height: 380px; }
}

/* ═══ Téléphone (Eric, 11/11 : « la page programme doit être hyper agréable sur mobile ») ═══
   La grille de la maquette (texte + colonne de 350 px) est écrite dans le gabarit : elle passe ici sur une seule
   colonne, le formulaire vient après le contenu (le bouton du bas ouvre la demande à tout moment). */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; padding: 16px 16px 24px !important; }
  .detail-sticky { position: static !important; }
  .fil { padding: 10px 16px 0 !important; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fil::-webkit-scrollbar { display: none; }
  .g-main { height: 300px !important; }
  .tab-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-bar .tab { flex: 0 0 auto; padding: 12px 14px; }
}
@media (max-width: 640px) {
  .projet-switch { width: 100% !important; }
  .projet-switch a { flex: 1 1 0; text-align: center; padding: 11px 8px !important; }
  #programme-entete h1 { font-size: 26px !important; }
  .g-main { height: 240px !important; }
  .g-thumbs label { width: 64px !important; height: 44px !important; }
  /* Lots : une carte par lot (type, surface, statut, étage) et « Prix & plan » en grand, à portée du pouce */
  .lots-table thead { display: none; }
  .lots-table, .lots-table tbody { display: block; }
  .lots-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 16px; }
  .lots-table td { padding: 0 !important; text-align: left !important; }
  .lot-type { font-size: 16px; order: 1; }
  .lot-surf { font-size: 15px; order: 2; }
  .lot-statut { order: 3; margin-left: auto; }
  .lots-table tr::before { content: ""; order: 4; flex-basis: 100%; height: 0; }
  .lot-etage, .lot-orient { order: 5; font-size: 13px; }
  .lot-etage::before, .lot-orient::before { content: attr(data-label) " : "; }
  .lot-orient + .lot-etage::before { content: "· " attr(data-label) " : "; }
  .lot-action { order: 6; margin-left: auto; }
  .lot-action .lot-cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; font-size: 13.5px; }
  .lots-zone:has(#lots-tous:checked) tr.lot-plus,
  .lots-zone:has(.lots-filtre input:not(#typo-tous):checked) tr.lot-plus { display: flex; }
  .lots-filtre { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .lots-filtre label { flex: 0 0 auto; min-height: 36px; display: inline-flex; align-items: center; }
  /* Loyers : une carte par typologie, chaque loyer sur sa ligne avec son nom */
  .loyers table, .loyers tbody { display: block; border: 0; background: none; border-radius: 0; }
  .loyers thead { display: none; }
  .loyers tr { display: block; background: white; border: 1px solid var(--bo); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
  .loyers tbody th { display: block; padding: 0 0 6px; border: 0; white-space: normal; font-size: 15px; }
  .loyers td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; border-top: 1px solid var(--bo); white-space: normal; font-weight: 700; }
  .loyers td::before { content: attr(data-label); font-weight: 500; color: var(--mu); }
  .analyse { padding: 18px 16px; }
  /* Fenêtre de demande : posée en bas de l'écran, comme une application */
  .pop { align-items: flex-end; padding: 0; }
  .pop-box { max-width: none; border-radius: 20px 20px 0 0; max-height: 92dvh; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
  .cta-mobile { bottom: calc(12px + env(safe-area-inset-bottom)); }
}
/* Téléphone (11/11) : programmes similaires en carrousel horizontal (on glisse d'une carte à l'autre, la suivante
   dépasse pour le montrer) ; la barre de filtres du catalogue ne reste plus collée en haut, elle prenait le tiers
   de l'écran : tous ses filtres restent, les critères sur une seule ligne qui défile. */
@media (max-width: 600px) {
  #programmes-similaires { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; }
  #programmes-similaires::-webkit-scrollbar { display: none; }
  #programmes-similaires > li { flex: 0 0 84%; scroll-snap-align: start; }
  .similaires { padding: 0 16px 32px !important; }
}
@media (max-width: 760px) {
  .cat .v36-bar { position: static; }
  .cat .v36-pills { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cat .v36-pills::-webkit-scrollbar { display: none; }
}

/* Dispositifs (Eric, 12/11 : tous les dispositifs, chacun dans sa couleur, rendu direction artistique premium).
   Une teinte par famille, sourde et accordée au bleu nuit et à l'or de la charte ; la pastille garde un fond très
   clair et un point de couleur, jamais un aplat criard. */
.dp { --dp: #4a5b70; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 650; letter-spacing: .01em; line-height: 1.25; white-space: nowrap;
  color: color-mix(in srgb, var(--dp) 78%, #0f2238); background: color-mix(in srgb, var(--dp) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--dp) 20%, #fff); }
.dp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dp); flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dp) 16%, transparent); }
.dp-jeanbrun { --dp: #3d5a80; }
.dp-lmnp { --dp: #9a6b1f; }
.dp-droit { --dp: #3f6f5a; }
.dp-malraux { --dp: #8a2f46; }
.dp-monument { --dp: #6b4e2e; }
.dp-deficit { --dp: #4a4594; }
.dp-denormandie { --dp: #5a7330; }
.dp-nue { --dp: #6a4592; }
.dp-rp { --dp: #0f7a63; }
.dp-aide { --dp: #24708f; }
.dp-neutre { --dp: #4a5b70; }
.dp-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
/* Sur une photo : verre dépoli clair, lisible sur n'importe quelle image */
.dp-on-photo { color: #14263d; background: rgba(255, 255, 255, .9); border-color: rgba(255, 255, 255, .6);
  backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2); box-shadow: 0 2px 10px rgba(15, 34, 56, .14); }
.dp-photo, .v40-tags { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 640px) { .dp { font-size: 12px; padding: 4px 10px 4px 9px; } .dp-photo .dp:nth-child(n+3) { display: none; } }

/* Objectif précis sous Investir / Habiter (Eric, 18/11) : puces plus discrètes que les deux grands boutons */
.v37-goal { margin: 10px 0 2px; }
.v37-goal-q { margin: 0 0 6px; font: 600 12px/1.2 inherit; letter-spacing: .02em; color: var(--ink2); }
.v37-goal-set { display: flex; flex-wrap: wrap; gap: 6px; }
.v37-goal-set > input { position: absolute; opacity: 0; pointer-events: none; }
.v37-goal-set > label { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 12px; border: 1px solid #d5dde7; border-radius: 999px; background: #fff; font: 500 13px/1.25 inherit; color: #33475e; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.v37-goal-set > label:hover { border-color: #9fb2c8; }
.v37-goal-set > input:checked + label { border-color: var(--navy); background: var(--tint); color: var(--navy); }
.v37-goal-set > input:checked + label::before { content: "✓"; font-weight: 700; }
.v37-goal-set > input:focus-visible + label { outline: 2px solid var(--pm); outline-offset: 2px; }
.v37-goal-rp > input:checked + label { border-color: var(--green); background: #eef8f4; color: var(--green); }
form:has(input[name="projet"][value="investir"]:checked) .v37-goal-rp,
form:has(input[name="projet"][value="habiter"]:checked) .v37-goal-inv { display: none; }
@media (max-width: 420px) { .v37-goal-set > label { flex: 1 1 100%; justify-content: flex-start; } }
/* Vue « Carte » : tous les programmes filtrés sont sur la carte, la pagination de la grille n'a pas lieu d'être (Eric, 19/11) */
.cat:has(#vue-carte:checked) .cat-pages { display: none; }
/* Liste de la vue carte : la pastille du dispositif sur sa propre ligne, sans toucher le bord de la vignette (Eric, 19/11) */
.cat-mini > span { padding: 8px 0; min-width: 0; }
.cat-mini em { display: block; }
.cat-mini i { display: block; width: fit-content; max-width: 100%; margin: 6px 0 0; line-height: 1.35; white-space: normal; }
.cat-mini img, .cat-mini .cat-mini-ph { height: 100%; min-height: 84px; }
/* Pastilles des cartes (Eric, 21/11 : « mangées » sur mobile) : sur une carte étroite, deux au plus sur une ligne,
   puis « +N » ; jamais sous le bandeau « lots restants » */
.v40-tags .dp-plus { display: none; }
.v40-card .v40-img { container-type: inline-size; }
@container (max-width: 440px) {
  .v40-tags { flex-wrap: nowrap; overflow: hidden; }
  .v40-tags .dp { flex: 0 1 auto; min-width: 0; white-space: nowrap; }
  .v40-tags .dp:not(.dp-plus) { overflow: hidden; text-overflow: ellipsis; }
  .v40-tags .dp:nth-child(n+3):not(.dp-plus) { display: none; }
  .v40-tags .dp-plus { display: inline-flex; flex: none; }
}
.v40-tags .dp-plus::before { display: none; }
/* Avec pastilles.js : une seule ligne, pastilles jamais coupées ; le script masque celles qui ne tiennent pas */
.v40-tags.js-pastilles { flex-wrap: nowrap; overflow: hidden; }
.v40-tags.js-pastilles .dp { flex: none; display: inline-flex; overflow: visible; white-space: nowrap; }
.v40-tags.js-pastilles .dp:not([hidden]):not(.dp-x) { display: inline-flex; }
.v40-tags.js-pastilles .dp[hidden] { display: none; }

/* Audit du 23/11 : un immeuble ancien réhabilité n'est pas présenté comme du neuf */
.v40-ancien { font-weight: 700; color: #8a6a3a; }

/* Eric, 23/11 : si une photo ne se charge pas (redémarrage du site pendant une mise à jour), pas de texte de
   remplacement par-dessus la carte ; le fond reste propre */
.v40-img img { color: transparent; font-size: 0; }

/* Visuel d'illustration (Eric, 26/11) : légende sur la photo affichée seulement */
.photo-legende{position:absolute;left:10px;bottom:10px;z-index:2;max-width:calc(100% - 20px);padding:3px 9px;border-radius:4px;background:rgba(15,23,42,.72);color:#fff;font-size:11.5px;line-height:1.35;pointer-events:none}
.gallery-css .g-cap{display:none}
.gallery-css > input:nth-of-type(1):checked ~ .g-wrap .g-main .g-cap-1{display:block}
.gallery-css > input:nth-of-type(2):checked ~ .g-wrap .g-main .g-cap-2{display:block}
.gallery-css > input:nth-of-type(3):checked ~ .g-wrap .g-main .g-cap-3{display:block}
.gallery-css > input:nth-of-type(4):checked ~ .g-wrap .g-main .g-cap-4{display:block}
.gallery-css > input:nth-of-type(5):checked ~ .g-wrap .g-main .g-cap-5{display:block}
.gallery-css > input:nth-of-type(6):checked ~ .g-wrap .g-main .g-cap-6{display:block}
.gallery-css > input:nth-of-type(7):checked ~ .g-wrap .g-main .g-cap-7{display:block}
.gallery-css > input:nth-of-type(8):checked ~ .g-wrap .g-main .g-cap-8{display:block}
.v40-img{position:relative}
