/* Vallière Immobilier : pages intérieures (biens, fiches, estimation, agence, crédits), refonte du 8 novembre 2026.
   Se charge APRÈS accueil-n.css, dont elle reprend les variables, l'en-tête, le pied, les boutons, la cote, la planche à légende et le barème.
   Un seul style : la Nuit encadre (en-tête, tête de page, pied), le Plâtre porte tout le contenu ; les sections sont séparées par un filet coté
   (hr.cote), jamais par une bande de couleur. Work Sans seule, titres en 300, coins droits, filets de 1 px, aucune ombre, aucun dégradé décoratif,
   rien posé sur une photo, plus rien qui apparaît au défilement. Texte courant 17 px, notes 15 px, libellés et légendes 14 px. */

:root { --brique: #A24E2E; --t-page: clamp(2.25rem, 1.4rem + 2.9vw, 4rem); /* 64 px à 1 440 px : 80 % du titre de l'accueil */ }
main { min-height: 50vh; }
.nav-liste a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 959px) { .nav-liste a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lueur); text-decoration-thickness: 2px; text-underline-offset: .22em; } }
.entete.defile { border-bottom-color: transparent; }

/* sans JavaScript, la page reste lisible */
.sans-js { display: none; }
html:not(.js) .sans-js { display: block; }
html:not(.js) .avec-js { display: none !important; }
.avis-sans-js { max-width: 46rem; margin: var(--bloc) 0; padding: 18px 22px; background: var(--platre-2); }
.avis-sans-js strong { font-weight: 500; }
.avis-sans-js ul { margin: 12px 0 0; }
.avis-sans-js li { padding: 8px 0; border-top: 1px solid var(--trait-doux); }
.avis-sans-js li a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---------- la tête de page commune : bandeau Nuit, fil d'Ariane coté, titre, chapo, et la photo propre à la page ---------- */
.tete-bande { background: var(--nuit); color: #fff; --focus: var(--lueur); }
.page-tete { display: grid; gap: 0 clamp(32px, 4vw, 64px); padding: 0 0 clamp(40px, 4.5vw, 64px); }
.page-tete h1, .fiche-titre h1 { font: 300 var(--t-page)/1.08 var(--sans); letter-spacing: -.012em; text-wrap: balance; max-width: 22ch; color: #fff; }
.fiche-titre h1 { font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.75rem); } /* la fiche : 60 px au plus, la colonne est plus étroite */
.page-tete .chapo { margin-top: 18px; max-width: 40rem; font-size: 1.125rem; line-height: 1.55; color: #DCD7E6; }
.tete-bande a { color: #fff; text-decoration-color: var(--lueur); text-decoration-thickness: 2px; }
.tete-bande .legende { color: #DCD7E6; }
.tete-bande .legende .rep { border-top-color: rgba(255, 255, 255, .55); }
.tete-bande .legende .rep:first-child::before, .tete-bande .legende .rep:last-child::after { border-left-color: rgba(255, 255, 255, .55); }
.page-tete-photo { margin-top: 32px; }
.page-tete-photo img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 960px) {
  .page-tete--photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
  .page-tete--photo .fil { grid-column: 1 / -1; }
  .page-tete--photo .page-tete-photo { margin-top: 0; max-width: 520px; justify-self: end; width: 100%; }
}

/* fil d'Ariane : les maillons sont séparés par un trait de cote, pas par un signe */
.fil { padding: clamp(16px, 2.2vw, 26px) 0 clamp(20px, 2.6vw, 32px); }
.fil ol { display: flex; flex-wrap: wrap; gap: 0 4px; font-size: .875rem; line-height: 1.4; color: #DCD7E6; }
.fil li { display: inline-flex; align-items: center; min-width: 0; }
.fil li:not(:last-child)::after { content: ""; width: 1px; height: .95em; margin: 0 6px 0 10px; background: rgba(255, 255, 255, .5); }
.fil a { display: inline-flex; align-items: center; min-height: 32px; text-underline-offset: .2em; }
.fil [aria-current] { color: #fff; }
@media (max-width: 599px) { .fil .fil-dernier { display: none; } .fil li:nth-last-child(2)::after { display: none; } }

/* ---------- sections : un seul espacement, sur le Plâtre ---------- */
.bloc { padding: var(--bloc) 0; }
.titre-section { font: 300 var(--t-h2)/1.12 var(--sans); letter-spacing: -.012em; text-wrap: balance; max-width: 26ch; }
.bloc .titre-section + p, .bloc .titre-section + .petit { margin-top: 20px; }
.chapo-section { margin-top: 20px; max-width: 40rem; font-size: 1.125rem; line-height: 1.6; }
.texte-court { max-width: 66ch; }
.texte-court p + p, .texte-court .note-bande { margin-top: 18px; }
.petit a { text-underline-offset: .2em; }
.mention { margin-top: 24px; max-width: 44rem; }
.legende .mention { margin-top: 0; max-width: none; }

/* ---------- champs de formulaire ---------- */
.champ { position: relative; display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.champ { display: block; }
fieldset.champ > legend + * { margin-top: 8px; }
.champ > label, .champ > legend, .etiq { padding: 0; font: 500 .9375rem/1.3 var(--sans); color: var(--encre); }
fieldset.champ > legend { display: block; padding: 0; }
.champ.large, .consent.large { grid-column: 1 / -1; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; background-color: var(--papier); color: var(--encre);
  border: 1px solid var(--trait); border-radius: 0; font: 400 1rem/1.4 var(--sans); -webkit-appearance: none; appearance: none;
}
textarea { min-height: 112px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #4A4268; opacity: 1; }
select {
  padding-right: 40px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%231D1A2B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input:hover, select:hover, textarea:hover { border-color: var(--encre); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2.5px solid var(--crepuscule); outline-offset: 2px; }
/* erreurs : la Brique, seulement pour elles (5,1 pour 1 sur Plâtre) */
[aria-invalid="true"] { border-color: var(--brique) !important; box-shadow: inset 0 0 0 1px var(--brique); }
.erreur { margin: 0; font: 500 .9375rem/1.4 var(--sans); color: var(--brique); }
.resume-erreurs { margin-bottom: 20px; padding: 14px 18px; background: var(--papier); border: 1px solid var(--brique); font-size: .9375rem; line-height: 1.5; }
.resume-erreurs strong { font-weight: 500; color: var(--brique); }
.resume-erreurs ul { margin-top: 6px; }
.resume-erreurs li { padding: 2px 0; }
.resume-erreurs a { color: var(--encre); text-underline-offset: .2em; }
fieldset.champ[aria-invalid="true"] { border: 0 !important; box-shadow: none !important; border-left: 3px solid var(--brique) !important; padding: 4px 0 12px 16px; }
fieldset.champ[aria-invalid="true"] > .erreur { margin-top: 10px; }
.paire { display: grid; gap: 20px; }
@media (min-width: 640px) { .paire { grid-template-columns: 1fr 1fr; } }
.etape-champs { display: grid; gap: 22px; }
form[hidden] { display: none !important; }
.aide { font-size: 1rem; line-height: 1.5; }

/* choix en pastilles carrées */
.choix { display: flex; flex-wrap: wrap; gap: 8px; }
.choix label { position: relative; display: block; }
.choix input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.choix span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; background: var(--papier); border: 1px solid var(--trait); font: 500 .9375rem/1.2 var(--sans); text-align: center; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.choix input:hover + span { border-color: var(--encre); }
.choix input:checked + span { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.choix input:focus-visible + span { outline: 2.5px solid var(--crepuscule); outline-offset: 2px; }
.choix--grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.choix--grille span { flex-direction: column; gap: 2px; }
.choix--grille small { display: block; font: 400 .875rem/1.3 var(--sans); }
.choix--grille b { font-weight: 500; }

/* case carrée */
.critere, .compare, .consent { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; cursor: pointer; font: 400 .9375rem/1.4 var(--sans); }
.critere input, .compare input, .consent input { position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin: -12px 0 0; opacity: 0; cursor: pointer; }
.case { position: relative; flex: none; width: 22px; height: 22px; margin-top: 1px; background: var(--papier); border: 1px solid var(--encre); transition: background-color .2s var(--ease); }
.case::after { content: ""; position: absolute; left: 6px; top: 1px; width: 6px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg); opacity: 0; }
input:checked ~ .case, input:checked + .case { background: var(--nuit); border-color: var(--nuit); }
input:checked ~ .case::after, input:checked + .case::after { opacity: 1; }
input:focus-visible ~ .case, input:focus-visible + .case { outline: 2.5px solid var(--crepuscule); outline-offset: 2px; }
input:disabled ~ .case { opacity: .45; }

/* curseurs */
input[type="range"] { -webkit-appearance: none; appearance: none; background: none; margin: 0; }
.simple { width: 100%; height: 44px; }
.simple::-webkit-slider-runnable-track { height: 2px; background: var(--trait); }
.simple::-moz-range-track { height: 2px; background: var(--trait); }
.simple::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 28px; margin-top: -13px; border-radius: 0; background: var(--nuit); border: 2px solid var(--papier); box-shadow: 0 0 0 1px var(--nuit); cursor: grab; }
.simple::-moz-range-thumb { width: 12px; height: 26px; border-radius: 0; background: var(--nuit); border: 2px solid var(--papier); box-shadow: 0 0 0 1px var(--nuit); cursor: grab; }
.simple:focus-visible { outline: none; }
.simple:focus-visible::-webkit-slider-thumb { outline: 2.5px solid var(--crepuscule); outline-offset: 3px; }
.simple:focus-visible::-moz-range-thumb { outline: 2.5px solid var(--crepuscule); outline-offset: 3px; }
.duo { position: relative; height: 44px; }
.duo-piste { position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; transform: translateY(-50%); background: var(--trait-doux); }
.duo-piste::after { content: ""; position: absolute; top: -1px; bottom: -1px; left: var(--a, 0%); right: calc(100% - var(--b, 100%)); background: var(--nuit); }
.duo input[type="range"] { position: absolute; inset: 0; width: 100%; height: 44px; pointer-events: none; }
.duo input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 44px; }
.duo input[type="range"]::-moz-range-track { background: transparent; height: 44px; }
.duo input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 16px; height: 28px; margin-top: 8px; border-radius: 0; background: var(--nuit); border: 2px solid var(--papier); box-shadow: 0 0 0 1px var(--nuit); cursor: grab; }
.duo input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 26px; border-radius: 0; background: var(--nuit); border: 2px solid var(--papier); box-shadow: 0 0 0 1px var(--nuit); cursor: grab; }
.duo input[type="range"]:focus-visible { outline: none; }
.duo input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2.5px solid var(--crepuscule); outline-offset: 3px; }
.duo input[type="range"]:focus-visible::-moz-range-thumb { outline: 2.5px solid var(--crepuscule); outline-offset: 3px; }
.valeur-duo { display: flex; justify-content: space-between; gap: 16px; font: 500 .9375rem/1.3 var(--sans); font-variant-numeric: tabular-nums; }

/* boutons discrets */
.btn-lien { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; font: 500 1rem/1.3 var(--sans); text-decoration: underline; text-decoration-color: var(--crepuscule); text-decoration-thickness: 1.5px; text-underline-offset: .32em; cursor: pointer; color: inherit; }
.btn-lien:hover { text-decoration-thickness: 3px; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; }
.tog { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: transparent; border: 1px solid var(--trait); font: 500 .9375rem/1.2 var(--sans); cursor: pointer; color: inherit; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.tog:hover { background: var(--platre-2); border-color: var(--encre); }
.tog svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.tog[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.tog[aria-pressed="true"] svg { fill: currentColor; }
.tog .n { font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; margin-left: 6px; padding: 0 .35rem; background: var(--nuit); color: #fff; font: 600 .8125rem/1 var(--sans); }
.badge[hidden] { display: none; }

/* ---------- Les biens : tête Nuit, cartouche de filtres, carte du secteur ---------- */
.page-tete--biens { grid-template-columns: minmax(0, 1fr); }
.cartouche--filtres { width: 100%; margin-top: 28px; box-shadow: none; }
.filtres { min-width: 0; }
.cartouche--filtres .cartouche-grille { display: flex; flex-wrap: wrap; gap: 2px; }
.cartouche--filtres .cel { flex: 1 1 170px; margin: 0; border: 0; }
.cartouche--filtres .cel-projet { flex: 0 1 auto; }
.cartouche--filtres fieldset.cel > legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font: 500 .875rem/1.3 var(--sans); color: var(--crepuscule); }
.cartouche--filtres fieldset.cel > legend + * { clear: both; }
.segment-3 { display: grid !important; grid-template-columns: repeat(3, auto); }
@media (max-width: 959px) { .segment-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.filtres-panneau { display: contents; }
.cel-budget { flex: 1 1 230px !important; }
.cel-budget[hidden] { display: none; }
.cel-plus { display: flex; align-items: flex-end; flex: 0 1 auto !important; }
.plus-bouton { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; background: none; border: 0; border-bottom: 1.5px solid var(--nuit); font: 500 .9375rem/1 var(--sans); color: var(--nuit); cursor: pointer; white-space: nowrap; }
.plus-bouton::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.plus-bouton[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.plus { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; padding: 18px 20px 14px; background: var(--platre); }
.plus[hidden] { display: none; }
.champ-plus { min-width: 0; margin: 0; padding: 0; border: 0; }
.champ-plus > legend, .champ-plus > .etiq { display: block; margin-bottom: 8px; font: 500 .875rem/1.3 var(--sans); color: var(--crepuscule); }
.champ-plus .choix span { min-height: 44px; padding: 0 14px; }
.champ-plus input[type="text"] { min-height: 44px; }
.criteres { display: flex; flex-wrap: wrap; gap: 0 20px; }
.criteres .critere { padding: 6px 0; }
.plus-pied { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.panneau-pied { display: none; }
.filtres-bouton { display: none; }
.cartouche--filtres select { color: var(--nuit); }
/* la carte du secteur, en petit, à droite de la tête */
.carte-biens { margin: 0; }
.carte-biens .carte-svg { display: block; width: 100%; height: auto; border: 1px solid rgba(255, 255, 255, .35); background: #F3F1F5; }
.carte-biens .carte-note { margin-top: 10px; max-width: 34rem; font-size: .875rem; line-height: 1.45; color: #DCD7E6; }
.carte-bouton { display: none; }
.carte-biens .pin { cursor: pointer; transition: opacity .3s var(--ease); }
.carte-biens .pin:focus { outline: none; }
.carte-biens .pin:focus-visible circle.c1 { stroke: var(--lueur); stroke-width: 4px; }
.carte-biens .pin:hover circle.c1, .carte-biens .pin.actif circle.c1 { stroke: var(--crepuscule); stroke-width: 3px; }
.carte-biens .pin.actif circle.c1 { fill: var(--crepuscule); }
.carte-biens .pin.eteinte { opacity: .38; cursor: default; }
.carte-biens .pin.actif { transform: none; }
@media (min-width: 960px) {
  .page-tete--biens { grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 360px); grid-template-rows: auto auto 1fr; }
  .page-tete--biens .fil { grid-column: 1 / -1; }
  .page-tete--biens .page-tete-texte { grid-column: 1; grid-row: 2; }
  .page-tete--biens .filtres { grid-column: 1; grid-row: 3; align-self: start; }
  .page-tete--biens .carte-biens { grid-column: 2; grid-row: 2 / 4; align-self: start; }
  .page-tete--biens .carte-biens .carte-note { margin-top: 6px; font-size: .8125rem; line-height: 1.4; }
  .page-tete--biens { padding-bottom: 24px; }
}
/* téléphone et tablette : le projet reste visible, le reste se range dans « Filtres » */
@media (max-width: 959px) {
  .cartouche--filtres { margin-top: 24px; }
  .cartouche--filtres .cartouche-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: none; }
  .cartouche--filtres .cel { padding: 0 0 14px; background: none; }
  .cartouche--filtres { background: transparent; color: #fff; --focus: var(--lueur); }
  .cartouche--filtres .cel > label, .cartouche--filtres fieldset.cel > legend, .champ-plus > legend, .champ-plus > .etiq { color: #fff; }
  .cartouche--filtres .segment span { border-bottom-color: #fff; color: #fff; }
  .cartouche--filtres .segment input:checked + span { background: var(--lueur); color: var(--nuit); }
  .cartouche--filtres select { color: #fff; border-bottom-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%23FFFFFF' stroke-width='1.5'/%3E%3C/svg%3E"); }
  .cartouche--filtres select option { color: var(--nuit); background: #fff; }
  .filtres-bouton { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; background: transparent; border: 1px solid rgba(255, 255, 255, .6); color: #fff; font: 500 1rem/1.2 var(--sans); cursor: pointer; }
  .filtres-bouton .badge { background: var(--lueur); color: var(--nuit); }
  .filtres-bouton .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
  .filtres-bouton[aria-expanded="true"] .ico { transform: rotate(180deg); }
  .filtres-panneau { display: block; padding-top: 18px; }
  .filtres-panneau[data-ferme="true"] { display: none; }
  .cel-plus { padding-bottom: 8px !important; }
  .plus-bouton { color: #fff; border-bottom-color: #fff; }
  .plus { padding: 14px 0 0; background: none; color: #fff; }
  .plus .choix span { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
  .plus .choix input:checked + span { background: var(--lueur); border-color: var(--lueur); color: var(--nuit); }
  .plus .case { background: transparent; border-color: #fff; }
  .plus input:checked ~ .case { background: var(--lueur); border-color: var(--lueur); }
  .plus input:checked ~ .case::after { border-color: var(--nuit); }
  .plus .simple::-webkit-slider-runnable-track { background: rgba(255, 255, 255, .6); }
  .plus .simple::-webkit-slider-thumb { background: var(--lueur); box-shadow: 0 0 0 1px var(--lueur); border-color: var(--nuit); }
  .plus .btn-lien { text-decoration-color: var(--lueur); }
  .cel-budget .duo-piste::after { background: var(--lueur); }
  .cel-budget .duo-piste { background: rgba(255, 255, 255, .45); }
  .cel-budget .duo input[type="range"]::-webkit-slider-thumb { background: var(--lueur); box-shadow: 0 0 0 1px var(--lueur); border-color: var(--nuit); }
  .valeur-duo { color: #fff; }
  .panneau-pied { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 8px calc(-1 * var(--g)) 0; padding: 12px var(--g) calc(12px + var(--bas)); background: var(--nuit); border-top: 1px solid rgba(255, 255, 255, .25); }
  .panneau-pied .tog { color: #fff; border-color: rgba(255, 255, 255, .6); }
  .voir-n { background: var(--lueur); border-color: var(--lueur); color: var(--nuit); flex: 1 1 180px; }
  .tog-copier--barre { display: none; }
  .carte-biens { margin-top: 20px; }
  .carte-bouton { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: #fff; font: 500 1rem/1.2 var(--sans); text-decoration: underline; text-decoration-color: var(--lueur); text-decoration-thickness: 2px; text-underline-offset: .35em; cursor: pointer; }
  .carte-biens:not([data-ouvert="true"]) .carte-corps { display: none; }
  .carte-biens .carte-corps { margin-top: 10px; max-width: 520px; }
}

/* résultats */
.res-barre { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: clamp(28px, 3.5vw, 44px) 0 20px; }
.compteur { font: 300 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--sans); letter-spacing: -.01em; }
.compteur:focus { outline: none; }
.res-compte .petit { margin-top: 8px; max-width: 46rem; }
.res-outils { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.champ-tri { min-width: 13rem; }
.champ-tri label { font: 500 .875rem/1.3 var(--sans); color: var(--doux); }
.res-outils select { min-height: 44px; }
@media (max-width: 599px) {
  .res-outils { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
  .champ-tri { min-width: 0; }
}
.lignes { border-top: 1px solid var(--trait); }
.ligne-bien { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--trait-doux); }
.ligne-bien[hidden] { display: none; }
.ligne-bien .planche { grid-area: photo; align-self: start; }
.ligne-bien .vue-photo { aspect-ratio: 3 / 2; object-fit: cover; }
.ligne-bien .bien-corps { grid-area: corps; align-self: center; min-width: 0; }
.ligne-bien .bien-lieu { margin: 0; font: 500 .9375rem/1.3 var(--sans); color: var(--crepuscule); }
.ligne-bien h3 { margin-top: 6px; font: 400 1.375rem/1.25 var(--sans); letter-spacing: -.008em; text-wrap: balance; }
.ligne-bien h3 a { text-decoration: none; }
.ligne-bien h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ligne-bien:hover h3 a { text-decoration: underline; text-decoration-color: var(--crepuscule); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.ligne-bien h3 a:focus-visible { outline: 0; }
.ligne-bien h3 a:focus-visible::after { outline: 2.5px solid var(--crepuscule); outline-offset: -3px; }
.bien-date { margin-top: 8px; font-size: .9375rem; color: var(--doux); }
.cotes-ligne { grid-area: cotes; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; min-width: 0; }
.cotes-ligne > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; min-width: 0; }
.cotes-ligne dt { display: flex; align-items: center; gap: 6px; font: 500 .875rem/1.2 var(--sans); color: var(--doux); }
.cotes-ligne dt svg { flex: none; color: var(--encre); }
.cotes-ligne dd { margin: 0; font: 400 1.25rem/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cotes-ligne .c-prix { flex-direction: column; gap: 6px; }
.cotes-ligne .c-prix dd { font-size: 1.5rem; color: var(--crepuscule); }
.cotes-ligne .c-prix dd.sous { font: 400 .9375rem/1.2 var(--sans); color: var(--doux); }
.bien-actions { grid-area: actions; position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; min-width: 0; }
.coeur { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; background: var(--papier); border: 1px solid var(--trait); color: var(--encre); cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.coeur:hover { background: var(--platre-2); border-color: var(--encre); }
.coeur svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.coeur[aria-pressed="true"] { color: var(--crepuscule); border-color: var(--crepuscule); }
.coeur[aria-pressed="true"] svg { fill: currentColor; }
@media (min-width: 600px) {
  .ligne-bien { grid-template-columns: minmax(200px, 6fr) minmax(0, 6fr); grid-template-areas: "photo corps" "photo cotes" "photo actions"; column-gap: 32px; row-gap: 14px; align-items: start; }
  .ligne-bien .planche { grid-row: 1 / span 3; }
  .ligne-bien .bien-corps { align-self: end; }
}
@media (max-width: 599px) { .ligne-bien { grid-template-areas: "photo" "corps" "cotes" "actions"; } }
@media (min-width: 1180px) {
  .ligne-bien { grid-template-columns: 400px minmax(0, 1fr) 64px 96px 168px 112px; grid-template-areas: "photo corps pieces surface prix actions"; column-gap: 28px; align-items: center; padding: 32px 0; }
  .ligne-bien .planche { grid-row: auto; align-self: center; }
  .ligne-bien .bien-corps, .ligne-bien .bien-actions { align-self: center; }
  .cotes-ligne { display: contents; }
  .c-pieces { grid-area: pieces; } .c-surface { grid-area: surface; } .c-prix { grid-area: prix; }
  .cotes-ligne > div { align-self: center; }
  .bien-actions { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.resultats { padding-bottom: var(--bloc); }
.vide { max-width: 46rem; padding: 36px 0 12px; }
.vide h3 { font: 400 1.5rem/1.25 var(--sans); }
.vide p { margin-top: 14px; }
.vide ul { margin-top: 18px; display: grid; gap: 10px; }
.vide .btn { height: auto; min-height: 48px; padding: 12px 22px; line-height: 1.3; text-align: left; justify-content: flex-start; }
.vide .petit { margin-top: 22px; }
.vide-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* comparateur : chaque ligne a son libellé au-dessus, puis les biens côte à côte (aucun défilement de côté) */
.tray { position: fixed; z-index: 70; left: var(--g); right: var(--g); bottom: var(--bas); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; max-width: 760px; margin-inline: auto; padding: 12px 16px; background: var(--papier); border: 1px solid var(--encre); }
.tray[hidden] { display: none; }
.tray p { margin: 0; display: grid; gap: 2px; font-size: .9375rem; line-height: 1.35; }
.tray strong { font-weight: 500; }
.tray small { font-size: .9375rem; color: var(--doux); }
.tray-actions { display: flex; gap: 10px; }
.tray .btn { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
@media (max-width: 599px) { .tray { flex-wrap: nowrap; padding: 8px 10px; gap: 10px; } .tray small { display: none; } .tray .btn { padding: 0 14px; } }
html.avec-tray body { padding-bottom: 150px; }
dialog { max-width: min(1080px, calc(100% - 24px)); max-height: calc(100dvh - 24px); width: 100%; padding: 0; background: var(--pierre); color: var(--encre); border: 1px solid var(--encre); }
dialog::backdrop { background: rgba(29, 26, 43, .6); }
dialog[open] { display: flex; flex-direction: column; }
.dlg-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 14px; }
.dlg-tete h2 { font: 300 1.75rem/1.15 var(--sans); }
.dlg-fermer { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--papier); border: 1px solid var(--trait); cursor: pointer; color: inherit; }
.dlg-fermer:hover { background: var(--platre-2); border-color: var(--encre); }
.dlg-corps { overflow: auto; padding: 0 24px 24px; overscroll-behavior: contain; }
.compar-tab { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compar-tab th, .compar-tab td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; font-weight: 400; font-size: .9375rem; line-height: 1.45; }
.compar-tab thead th { padding-top: 0; font-size: 1.0625rem; line-height: 1.25; }
.compar-tab thead th .vue { display: block; aspect-ratio: 3 / 2; max-width: 220px; margin-bottom: 10px; overflow: hidden; }
.compar-tab thead th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compar-tab thead th a { text-underline-offset: .2em; }
.compar-tab tbody th { padding: 14px 0 0; border-top: 1px solid var(--trait-doux); font: 500 .875rem/1.3 var(--sans); color: var(--doux); }
.compar-tab td.meilleur { font-weight: 600; color: var(--crepuscule); box-shadow: inset 3px 0 0 var(--crepuscule); padding-left: 10px; }
.compar-note { margin: 18px 0 0; font-size: .9375rem; line-height: 1.5; color: var(--doux); max-width: 62ch; }
@media (max-width: 599px) { .dlg-corps { padding: 0 14px 18px; } .dlg-tete { padding: 16px 14px 10px; } .compar-tab th, .compar-tab td { padding-right: 8px; font-size: .9375rem; } .compar-tab thead th { font-size: .9375rem; } .compar-tab thead th .vue { max-width: 96px; } }

/* ---------- planche : photo, légende cotée ---------- */
.vue { position: relative; overflow: hidden; }
.vue img, .vue-photo { display: block; width: 100%; height: auto; }
.planche .vue-photo { aspect-ratio: 3 / 2; object-fit: cover; }
.planche .legende .mention { flex: 0 1 auto; min-width: 0; text-align: center; }

/* ---------- la fiche d'un bien : la photo d'abord, sans plein cadre ---------- */
.fiche-haut { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(32px, 4vw, 56px); }
.fiche-titre .bien-lieu { margin: 0 0 10px; font: 500 .9375rem/1.3 var(--sans); color: #DCD7E6; }
.fiche-titre h1 { font-size: clamp(1.875rem, 1.35rem + 1.9vw, 3rem); max-width: 20ch; }
.galerie { min-width: 0; margin-top: 24px; }
.galerie-cadre { position: relative; }
.galerie-piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y pinch-zoom; }
.galerie-piste::-webkit-scrollbar { display: none; }
.galerie-piste:focus-visible { outline: 2.5px solid var(--lueur); outline-offset: 4px; }
.galerie-piste > .slide:nth-child(n+3) { content-visibility: auto; contain-intrinsic-size: auto 1px; } /* sur téléphone, seules les 2 premières photos se chargent avec la page : les autres attendent qu'on s'en approche */
.galerie-piste > .slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 3 / 2; }
.galerie-piste .vue { width: 100%; height: 100%; }
.galerie-piste .vue img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.galerie-barre { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; margin-top: 10px; }
.galerie-legende { margin-top: 0; }
.galerie-legende .mention { flex: 0 1 auto; min-width: 0; text-align: center; }
@media (max-width: 599px) { .galerie-legende .rep { display: none; } .galerie-legende { justify-content: center; font-size: .875rem; } }
.gal-nav { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid rgba(255, 255, 255, .6); color: #fff; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.gal-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .12); border-color: #fff; }
.gal-nav:disabled { opacity: .4; cursor: default; }
.gal-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.miniatures { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.miniatures button { flex: none; width: 72px; padding: 0; background: none; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; transition: border-color .25s var(--ease); }
.miniatures button:hover { border-color: #fff; }
.miniatures button[aria-current="true"] { border-color: var(--lueur); outline: 1px solid var(--lueur); }
.miniatures button:focus-visible { outline: 2.5px solid var(--lueur); outline-offset: 3px; }
.miniatures .vue { display: block; aspect-ratio: 3 / 2; }
.miniatures .vue img { width: 100%; height: 100%; object-fit: cover; }
.fiche-info { min-width: 0; }
.fiche-cotes { display: flex; flex-wrap: nowrap; margin-top: 24px; }
.fiche-cotes > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 14px 20px 12px; border-top: 1px solid rgba(255, 255, 255, .55); border-bottom: 1px solid rgba(255, 255, 255, .25); }
.fiche-cotes > div + div { border-left: 1px solid rgba(255, 255, 255, .25); }
.fiche-cotes > div:first-child { padding-left: 0; }
.fiche-cotes dt { display: flex; align-items: center; gap: 6px; min-height: 20px; font: 500 .875rem/1.2 var(--sans); color: #DCD7E6; }
.fiche-cotes dd { margin: 0; font: 400 1.25rem/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.fiche-cotes .cote-prix dd { font-size: 1.75rem; }
.fiche-cotes .cote-prix dd small { display: block; margin-top: 6px; font: 400 .875rem/1.2 var(--sans); color: #DCD7E6; white-space: normal; }
.fiche-sous { margin-top: 12px; font-size: .9375rem; color: #DCD7E6; }
.fiche-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.fiche-actions .btn { background: var(--lueur); border-color: var(--lueur); color: var(--nuit); }
.fiche-actions .btn:hover { background: #fff; border-color: #fff; }
.fiche-actions .tog { color: #fff; border-color: rgba(255, 255, 255, .6); }
.fiche-actions .tog:hover { background: rgba(255, 255, 255, .1); }
.fiche-actions .tog[aria-pressed="true"] { background: var(--lueur); border-color: var(--lueur); color: var(--nuit); }
.ico-c { display: inline-flex; }
.fiche-accroche { margin-top: 24px; max-width: 34rem; font-size: 1.125rem; line-height: 1.55; color: #DCD7E6; }
@media (min-width: 960px) {
  .fiche-haut { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(32px, 3.5vw, 56px); grid-template-areas: "fil fil" "gal titre" "gal info"; grid-template-rows: auto auto 1fr; }
  .fiche-haut .fil { grid-area: fil; }
  .fiche-titre { grid-area: titre; }
  .fiche-haut .galerie { grid-area: gal; margin-top: 0; }
  .fiche-info { grid-area: info; }
}
/* téléphone : titre et galerie sur la Nuit, puis prix et cotes sur le Plâtre */
@media (max-width: 959px) {
  .fiche-haut { padding-bottom: 0; }
  .galerie { margin-inline: calc(-1 * var(--g)); }
  .galerie-barre, .miniatures { margin-inline: var(--g); }
  .miniatures { padding-bottom: 24px; }
  .fiche-info { margin-inline: calc(-1 * var(--g)); padding: 4px var(--g) 8px; background: var(--platre); color: var(--encre); --focus: var(--crepuscule); }
  .fiche-info .fiche-cotes > div { border-top-color: var(--trait); border-bottom-color: var(--trait-doux); }
  .fiche-info .fiche-cotes > div + div { border-left-color: var(--trait-doux); }
  .fiche-info .fiche-cotes dt, .fiche-info .fiche-cotes .cote-prix dd small, .fiche-info .fiche-sous, .fiche-info .fiche-accroche { color: var(--doux); }
  .fiche-info .fiche-cotes dt svg { color: var(--encre); }
  .fiche-info .fiche-cotes dd { color: var(--encre); }
  .fiche-info .fiche-cotes .cote-prix dd { color: var(--crepuscule); }
  .fiche-info .fiche-actions .btn { background: var(--nuit); border-color: var(--nuit); color: #fff; }
  .fiche-info .fiche-actions .tog { color: var(--encre); border-color: var(--trait); }
  .fiche-info .fiche-actions .tog[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
  .fiche-info a { color: var(--encre); }
}
@media (max-width: 420px) { .fiche-cotes > div { padding-inline: 12px; } .fiche-cotes .cote-prix dd { font-size: 1.5rem; } .fiche-cotes dd { font-size: 1.125rem; } }

.fiche-corps { display: grid; gap: 56px; padding: var(--bloc) 0; }
.fiche-principal { min-width: 0; display: grid; gap: clamp(48px, 6vw, 72px); }
.fiche-principal > section { min-width: 0; }
.fiche-principal .titre-section, .fiche-lateral .titre-section, .autres .titre-section { margin-bottom: 22px; }
.fiche-principal p, .fiche-principal .carac { max-width: 66ch; }
.fiche-principal p + p { margin-top: 14px; }
.lumiere { padding-left: 16px; border-left: 1px solid var(--crepuscule); }
.lumiere strong { font-weight: 500; }
@media (min-width: 1020px) { .fiche-corps { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 64px; align-items: start; } }
@media (min-width: 1020px) and (min-height: 820px) { .fiche-lateral { position: sticky; top: 24px; } }
.carac { display: grid; }
.carac > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--trait-doux); }
.carac > div:last-child { border-bottom: 1px solid var(--trait-doux); }
.carac dt { font-weight: 500; flex: none; max-width: 45%; }
.carac dd { margin: 0; color: var(--doux); text-align: right; }
.points { margin-top: 24px; display: grid; gap: 10px; max-width: 44rem; }
.points li { position: relative; padding-left: 28px; }
.points li::before { content: ""; position: absolute; left: 0; top: .8em; width: 16px; border-top: 1px solid var(--encre); }
.points li::after { content: ""; position: absolute; left: 0; top: calc(.8em - 4px); height: 9px; border-left: 1px solid var(--encre); }

/* plans lisibles : l'un sous l'autre jusqu'à 1600 px, numéros mis à l'échelle de l'écran, nomenclature en 15 px dessous */
.plans { display: grid; gap: 32px; }
@media (min-width: 1600px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan-fig { min-width: 0; margin: 0; }
.plan-svg { display: block; width: 100%; height: auto; background: var(--blanc); border: 1px solid var(--trait-doux); --u: 1.6; }
.plan-svg .pn { font-size: calc(17px * var(--u)); }
.plan-svg .pc { font-size: calc(14px * var(--u)); }
.plan-fig .legende { margin-top: 10px; }
.nomenclature { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 24px; margin-top: 12px; font-size: .9375rem; line-height: 1.4; }
.nomenclature b { display: inline-block; min-width: 1.6em; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-note { margin-top: 14px; }

.dpe { display: grid; gap: 32px; }
@media (min-width: 760px) { .dpe { grid-template-columns: 1fr 1fr; gap: 48px; } }
.dpe-titre { margin-bottom: 14px; font: 500 1rem/1.3 var(--sans); }
.dpe-echelle { display: grid; gap: 4px; }
.dpe-ligne { display: flex; align-items: center; gap: 12px; min-height: 34px; }
.dpe-barre { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: var(--l); min-width: 132px; height: 34px; padding: 0 12px; background: color-mix(in srgb, var(--c) 40%, var(--papier)); color: var(--encre); }
.dpe-ligne.est-actif .dpe-barre { height: 44px; background: var(--c); color: var(--t, var(--encre)); outline: 1.5px solid var(--encre); outline-offset: 2px; }
.dpe-barre b { font: 600 1.0625rem/1 var(--sans); }
.dpe-barre i { font: 400 .875rem/1 var(--sans); font-style: normal; font-variant-numeric: tabular-nums; }
.dpe-valeur { font-size: .9375rem; white-space: nowrap; }
.dpe-valeur strong { font: 400 1.375rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.depenses { margin-top: 24px; }
.dpe-note { margin-top: 18px; }

.situation { display: grid; gap: 24px; }
.situation .vue { aspect-ratio: 16 / 10; border: 1px solid var(--trait); background: #F3F1F5; --u: 1.9; }
.situation .vue-svg { display: block; width: 100%; height: 100%; max-width: none; }
.situation .vue-svg .st { font-size: max(var(--fs, 20px), calc(13px * var(--u))); }
.situation .vue-svg .st-cote { font-size: max(var(--fs, 20px), calc(13.5px * var(--u))); }
.situation .vue-svg .st-bien { font-size: max(var(--fs, 27px), calc(15px * var(--u))); }
@media (max-width: 600px) { .situation .vue-svg .sit-sec { display: none; } }
.situation ul { margin: 18px 0 0; }
.situation li { padding: 12px 0; border-top: 1px solid var(--trait-doux); }
.situation li:last-child { border-bottom: 1px solid var(--trait-doux); }
@media (min-width: 760px) { .situation { grid-template-columns: 1.5fr 1fr; align-items: center; gap: 40px; } }
/* le plan de situation se déplie, une seule fois par fiche et par visite : le seul moment d'arrivée de la fiche */
.situation .vue { overflow: visible; }
.pli { --pf: cubic-bezier(.42, .05, .22, 1); position: absolute; inset: 0; z-index: 1; perspective: 2400px; perspective-origin: 20% 40%; pointer-events: none; }
.pli .plan-feuille { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 100%; animation: plan-pose 1.2s var(--pf) backwards; }
.pli .volet { position: absolute; top: 0; height: 100%; width: calc(100% / 3); transform-style: preserve-3d; }
.pli .volet .volet { left: 100%; width: 100%; transform-origin: 0 50%; }
.pli .v1 { left: 0; }
.pli .v2 { transform: none; animation: plan-v2 1s var(--pf) backwards; }
.pli .v3 { transform: none; animation: plan-v3 1s var(--pf) .18s backwards; }
.pli .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: #F3F1F5; }
.pli .verso { transform: rotateY(180deg); background: #E6E2EC; }
.pli .v2 > .recto::before, .pli .v3 > .recto::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 14px; background: rgba(29, 26, 43, .08); }
.pli .recto { box-shadow: inset 0 0 0 1px rgba(29, 26, 43, .16); }
.pli-ombre { position: absolute; inset: 0; z-index: 2; background: rgba(29, 26, 43, .3); opacity: 0; }
.pli .v2 > .recto > .pli-ombre { animation: plan-ombre 1s var(--pf) backwards; }
.pli .v3 > .recto > .pli-ombre { animation: plan-ombre 1s var(--pf) .18s backwards; }
@keyframes plan-pose { from { transform: rotateX(16deg) translateY(10px); } to { transform: none; } }
@keyframes plan-v2 { from { transform: translateZ(1px) rotateY(-179deg); } to { transform: none; } }
@keyframes plan-v3 { from { transform: translateZ(1px) rotateY(179deg); } to { transform: none; } }
@keyframes plan-ombre { from { opacity: 1; } 55% { opacity: .55; } to { opacity: 0; } }
@keyframes plan-ecrit { from { opacity: 0; } to { opacity: 1; } }
.pli-img { position: absolute; top: 0; height: 100%; width: 300%; left: calc(var(--i, 0) * -100%); }
.pli-img svg { width: 100%; height: 100%; display: block; max-width: none; }
.pli .cote-t, .pli .cote-l { opacity: 0; }
.cote-m { stroke-dasharray: 1; stroke-dashoffset: 0; }
[data-pli="attente"] .vue-svg { opacity: 0; }
[data-pli="joue"] .vue > .vue-svg { opacity: 0; }
[data-pli="attente"] .cote-t, [data-pli="attente"] .cote-l { opacity: 0; }
[data-pli="fini"] .cote-m { animation: trace 1.1s cubic-bezier(.45, .05, .35, 1) backwards; animation-delay: calc(.1s + var(--n, 0) * .25s); }
[data-pli="fini"] .cote-t { animation: plan-ecrit .8s var(--ease) backwards; animation-delay: calc(.5s + var(--n, 0) * .3s); }
@media print { [data-pli] .vue-svg { opacity: 1; } [data-pli] .cote-t, [data-pli] .cote-l { opacity: 1; } .pli { display: none; } }

/* simulateur de mensualités */
.simu-grille { display: grid; gap: 28px; }
@media (min-width: 760px) { .simu-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; } }
.simu-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; align-content: start; }
@media (max-width: 420px) { .simu-champs { grid-template-columns: 1fr; } }
.simu-champs .consent strong { font-weight: 600; white-space: nowrap; }
.simu-sortie { display: flex; flex-direction: column; gap: 22px; padding: 24px 24px 20px; background: var(--papier); border: 1px solid var(--trait-doux); }
.simu-sortie .etiq { margin: 0 0 8px; font: 500 .875rem/1.3 var(--sans); color: var(--doux); }
.simu-sortie .gros { font: 300 clamp(2rem, 1.6rem + 1.4vw, 2.75rem)/1.05 var(--sans); font-variant-numeric: tabular-nums; color: var(--crepuscule); }
.simu-sortie .gros small { font: 400 1rem/1 var(--sans); color: var(--doux); }
.barre-part { display: flex; height: 10px; background: var(--trait-doux); }
.barre-part i { display: block; height: 100%; transition: width .5s var(--ease); }
.barre-part i:first-child { background: var(--nuit); }
.barre-part i:last-child { background: var(--crepuscule); opacity: .55; }
.barre-leg { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: -10px 0 0; font-size: .875rem; color: var(--doux); }
.barre-leg span { display: inline-flex; align-items: center; gap: 8px; }
.barre-leg span::before { content: ""; width: 10px; height: 10px; background: var(--nuit); }
.barre-leg span + span::before { background: var(--crepuscule); opacity: .55; }
.simu-sortie dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--trait-doux); }
.simu-sortie dt { color: var(--doux); }
.simu-sortie dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.loc-conditions { display: grid; max-width: 44rem; }
.loc-conditions > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--trait-doux); }
.loc-conditions > div:last-child { border-bottom: 1px solid var(--trait-doux); }
.loc-conditions dt { font-weight: 500; }
.loc-conditions dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.loc-conditions dd small { display: block; margin-top: 4px; font-size: .9375rem; color: var(--doux); }

/* demande de visite */
.visite { padding: 28px 24px 24px; background: var(--papier); border: 1px solid var(--trait); }
.visite > .petit { margin: -6px 0 20px; }
.visite > p.sans-js { margin-bottom: 0; }
.visite form { display: grid; gap: 20px; }
.jours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jours label, .heures-creneaux label { position: relative; display: block; }
.jours input, .heures-creneaux input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.jours span { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: 64px; background: var(--papier); border: 1px solid var(--trait); text-align: center; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.jours small { font: 500 .875rem/1.2 var(--sans); color: var(--doux); }
.jours b { font: 400 1.5rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.heures-creneaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.heures-creneaux span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 6px; background: var(--papier); border: 1px solid var(--trait); font: 500 .9375rem/1.2 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.jours input:hover + span, .heures-creneaux input:hover + span { border-color: var(--encre); }
.jours input:checked + span, .heures-creneaux input:checked + span { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.jours input:checked + span small, .jours input:checked + span b { color: #fff; }
.jours input:focus-visible + span, .heures-creneaux input:focus-visible + span { outline: 2.5px solid var(--crepuscule); outline-offset: 2px; }
.heures-creneaux input:disabled { cursor: not-allowed; }
.heures-creneaux input:disabled + span { opacity: .45; border-style: dashed; }
.succes, .est-succes { padding: 24px; background: var(--papier); border: 1px solid var(--trait); }
.succes:focus, .est-succes:focus { outline: 2.5px solid var(--crepuscule); outline-offset: 3px; }
.succes h3, .est-succes h3 { font: 400 1.5rem/1.2 var(--sans); }
.succes p { margin-top: 12px; }

/* autres biens et retour à la liste */
.autres { padding-bottom: var(--bloc); }
.autres-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding-top: 32px; border-top: 1px solid var(--trait); }
.autres-liste { margin-top: 8px; }
@media (min-width: 960px) { .autres-liste { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: 900px; } }
.bien-prix { margin-top: 8px; color: var(--crepuscule); font-size: 1.125rem; font-variant-numeric: tabular-nums; }

/* barre fine du téléphone : prix, visite, appel ; elle s'efface devant le formulaire */
.barre-fiche { display: none; }
@media (max-width: 959px) {
  .page-fiche { padding-bottom: 0; }
  .barre-fiche.visible { position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(var(--bas) + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: auto 1fr auto; height: 48px; background: var(--nuit); color: #fff; border-top: 1px solid rgba(255, 255, 255, .25); --focus: var(--lueur); }
  .barre-fiche .barre-prix { display: flex; align-items: center; padding: 0 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .barre-fiche a { display: flex; align-items: center; justify-content: center; padding: 0 14px; border-left: 1px solid rgba(255, 255, 255, .25); color: #fff; font: 500 .9375rem/1 var(--sans); text-decoration: none; white-space: nowrap; }
  .barre-fiche a:focus-visible { outline-offset: -3px; }
  html.avec-barre { scroll-padding-bottom: calc(var(--bas) + 64px) !important; }
}
@media (max-width: 359px) { .barre-fiche .barre-prix { padding: 0 8px; font-size: .9375rem; } .barre-fiche a { padding: 0 8px; } }

/* ancienne adresse des fiches */
.liste-fiches { display: grid; gap: 0; max-width: 46rem; border-top: 1px solid var(--trait); }
.liste-fiches li { padding: 14px 0; border-bottom: 1px solid var(--trait-doux); }
.introuvable-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

/* ---------- Estimation : le récapitulatif devient un cartouche de plan d'architecte ---------- */
.est-grille { display: grid; gap: 40px; padding: clamp(28px, 3.5vw, 48px) 0 var(--bloc); }
@media (min-width: 960px) { .est-grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: start; } .est-grille .cartouche-plan { position: sticky; top: 24px; } }
.est-gauche { min-width: 0; }
.etape-court { display: none; }
.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 20px; }
.etapes[hidden], .etape-court[hidden] { display: none !important; }
.etapes li { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 12px 16px 0; font: 500 1rem/1.25 var(--sans); color: var(--doux); }
.etapes li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px solid var(--trait-doux); }
.etapes .num { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--encre); background: var(--platre); font: 500 1rem/1 var(--sans); }
.etapes b { font-weight: 500; white-space: nowrap; }
.etapes li[aria-current="step"] { color: var(--encre); }
.etapes li[aria-current="step"]::after { border-bottom: 2px solid var(--nuit); }
.etapes li[aria-current="step"] .num { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.etapes li[data-etat="fait"] { color: var(--encre); }
.etapes li[data-etat="fait"]::after { border-bottom-color: var(--nuit); }
.etapes li[data-etat="fait"] .num { background: var(--platre-2); }
@media (max-width: 599px) {
  .etapes { display: none; }
  .etape-court { display: block; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--nuit); font: 500 1rem/1.3 var(--sans); }
}
.est-aide-haut { margin: 0 0 24px; }
.etape-panneau h2 { font: 300 1.875rem/1.15 var(--sans); letter-spacing: -.01em; }
.etape-panneau h2:focus { outline: none; }
.etape-panneau .aide { margin: 8px 0 24px; color: var(--doux); }
.est-demo { margin-top: 24px; }
.etape-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--trait-doux); }
.est-succes .points { margin-top: 18px; }
.est-succes h2 { font: 300 1.875rem/1.15 var(--sans); }
.est-succes h3 { font: 500 1.0625rem/1.3 var(--sans); margin-top: 24px; }
.est-succes p { margin-top: 12px; }
.est-succes-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }
/* le cartouche : cadre de 1 px, cases à filets, pied « dressé le » comme une planche */
.cartouche-plan { background: var(--papier); border: 1px solid var(--nuit); }
.cp-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--nuit); }
.cp-tete h2 { font: 400 1.25rem/1.2 var(--sans); }
.cp-etape { font-size: .9375rem; color: var(--doux); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-pli { display: none; }
.cp-cases { display: grid; grid-template-columns: 1fr 1fr; }
.cp-cases > div { min-height: 76px; padding: 12px 18px; border-bottom: 1px solid var(--trait-doux); }
.cp-cases > div:nth-child(odd) { border-right: 1px solid var(--trait-doux); }
.cp-cases dt, .cp-ligne dt { font: 500 .875rem/1.3 var(--sans); color: var(--doux); }
.cp-cases dd { margin: 6px 0 0; font: 400 1.25rem/1.25 var(--sans); }
.cp-ligne > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--trait-doux); }
.cp-ligne dd { margin: 0; text-align: right; }
.cp-cases dd:empty::before, .cp-ligne dd:empty::before { content: "—"; color: var(--doux); }
.cp-pied { padding: 12px 18px 14px; font-size: .9375rem; color: var(--doux); }
@media (max-width: 599px) {
  .cartouche-plan .cp-tete { display: none; }
  .cp-pli { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; background: none; border: 0; color: var(--encre); font: 500 1rem/1.2 var(--sans); text-align: left; cursor: pointer; }
  .cp-pli::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
  .cp-pli[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .cartouche-plan:not([data-ouvert="true"]) .cp-corps { display: none; }
  .cp-corps { border-top: 1px solid var(--nuit); }
}

/* ---------- L'agence ---------- */
.equipe-note { margin-top: 14px; }
.membres { display: grid; gap: 32px 56px; margin-top: 36px; }
@media (min-width: 760px) { .membres { grid-template-columns: 1fr 1fr; } }
.membre { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 12px; align-items: center; padding-top: 24px; border-top: 1px solid var(--trait); }
.membre .mono { width: 56px; height: 56px; }
.membre h3 { font: 400 1.375rem/1.2 var(--sans); }
.membre .role { margin-top: 2px; color: var(--doux); }
.membre .desc { grid-column: 1 / -1; max-width: 34rem; font-size: 1.0625rem; line-height: 1.6; }
.methode-page { display: grid; gap: 40px 24px; }
@media (min-width: 960px) { .methode-page { grid-template-columns: repeat(12, minmax(0, 1fr)); } .methode-page > .methode-intro { grid-column: 1 / 5; } .methode-page > .coupe { grid-column: 5 / 13; } }
.methode-intro .chapo-section { max-width: 26rem; }
/* la coupe de la façade : 3 niveaux, 3 temps, lus du rez-de-chaussée au toit ; en mots, sans cote chiffrée */
.coupe { display: grid; grid-template-columns: clamp(110px, 17vw, 230px) minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: clamp(20px, 3vw, 40px); }
.coupe-dessin { grid-column: 1; grid-row: 1 / 4; width: 100%; height: 100%; min-height: 360px; }
.coupe-temps { display: contents; }
.coupe-temps li { grid-column: 2; display: flex; flex-direction: column; justify-content: center; padding: 18px 0; border-top: 1px solid var(--trait-doux); }
.coupe-temps .temps-3 { grid-row: 1; border-top: 0; }
.coupe-temps .temps-2 { grid-row: 2; }
.coupe-temps .temps-1 { grid-row: 3; }
.temps-niveau { font: 500 .875rem/1.3 var(--sans); color: var(--crepuscule); }
.coupe-temps h3 { margin-top: 4px; font: 400 1.375rem/1.25 var(--sans); }
.coupe-temps .num { display: inline-block; width: auto; height: auto; min-width: 1.3em; border: 0; background: none; font: 300 1.375rem/1.25 var(--sans); font-variant-numeric: tabular-nums; color: var(--crepuscule); }
.coupe-temps p:not(.temps-niveau) { margin-top: 6px; max-width: 60ch; font-size: 1.0625rem; line-height: 1.55; }
.honoraires-page { display: grid; gap: 32px 24px; }
@media (min-width: 960px) { .honoraires-page { grid-template-columns: repeat(12, minmax(0, 1fr)); } .honoraires-page > :first-child { grid-column: 1 / 6; } .honoraires-page > :last-child { grid-column: 7 / 13; } }
.honoraires-page > :first-child p { margin-top: 20px; max-width: 34rem; }
.bareme-wrap { overflow-x: auto; }
.bareme-wrap:focus-visible { outline: 2.5px solid var(--crepuscule); outline-offset: 3px; }
.bareme thead th { padding: 0 0 10px; border-top: 0; font: 500 .875rem/1.3 var(--sans); color: var(--doux); }
.bareme thead th:last-child { text-align: right; padding-left: 16px; }
.bareme td { white-space: normal; }
.mentions-agence { margin-top: 20px; }
.contact-page { display: grid; gap: 48px 24px; }
@media (min-width: 960px) { .contact-page { grid-template-columns: repeat(12, minmax(0, 1fr)); } .contact-page > :first-child { grid-column: 1 / 6; } .contact-page > :last-child { grid-column: 7 / 13; } }
.contact-page address { margin-top: 24px; font-size: 1.0625rem; line-height: 1.7; }
.contact-page address a { display: inline-flex; align-items: center; min-height: 44px; }
.horaires { margin-top: 20px; max-width: 28rem; }
.horaires > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--trait-doux); }
.horaires > div:last-child { border-bottom: 1px solid var(--trait-doux); }
.horaires dt { font-weight: 500; }
.horaires dd { margin: 0; color: var(--doux); text-align: right; }
.formulaire { padding: 28px 24px 24px; background: var(--papier); border: 1px solid var(--trait); }
.formulaire h3 { font: 400 1.5rem/1.2 var(--sans); }
.formulaire .aide { margin: 8px 0 20px; color: var(--doux); }
.formulaire .petit { margin-top: 20px; }
.formulaire-envoi { margin-top: 24px; }

/* ---------- Crédits : une planche-contact par bien ---------- */
.cr-bien { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--trait); scroll-margin-top: 24px; }
.cr-bien h3 { font: 400 1.5rem/1.25 var(--sans); }
.cr-source { margin-top: 10px; max-width: 70ch; font-size: .9375rem; line-height: 1.55; color: var(--doux); }
.cr-source a { display: inline-flex; align-items: center; min-height: 24px; color: var(--encre); text-underline-offset: .2em; }
.planche-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-top: 20px; }
@media (min-width: 960px) { .planche-contact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; } }
.planche-contact img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.planche-contact p { display: grid; gap: 2px; margin-top: 8px; font-size: .875rem; line-height: 1.4; }
.planche-contact b { font-weight: 500; font-size: .9375rem; }
.cr-titre { color: var(--doux); }
.planche-contact a { display: inline-flex; align-items: center; min-height: 24px; text-underline-offset: .2em; }
.cr-fin { margin-top: 28px; }

/* ---------- contraste forcé : les choix cochés restent visibles ---------- */
@media (forced-colors: active) {
  .segment input:checked + span, .choix input:checked + span, .jours input:checked + span, .heures-creneaux input:checked + span { outline: 3px solid Highlight; outline-offset: -3px; }
  .duo-piste, .simple { border: 1px solid CanvasText; }
  .cote, .logo-nom::after { forced-color-adjust: auto; }
}

/* téléphone : la fiche resserrée */
@media (max-width: 599px) {
  .fiche-principal { gap: 48px; }
  .dpe-ligne { min-height: 28px; }
  .dpe-barre { height: 28px; }
  .dpe-ligne.est-actif .dpe-barre { height: 38px; }
  .carac > div { padding: 11px 0; }
  .planche-contact { gap: 16px 12px; }
}
@media (max-width: 599px) {
  .planche-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .planche-contact p { font-size: .875rem; }
  .planche-contact b { font-size: .875rem; }
  .cr-bien { margin-top: 36px; padding-top: 22px; }
}
.titre-section + .texte-court, .titre-section + p.texte-court { margin-top: 20px; }
@media (min-width: 960px) and (max-width: 1279px) { .fiche-cotes { flex-wrap: wrap; } .fiche-cotes .cote-prix { flex-basis: 100%; border-bottom: 0; } .fiche-cotes .cote-prix + div { padding-left: 0; border-left: 0; } }
@media (max-width: 599px) {
  .coupe { display: block; }
  .coupe-dessin { display: none; }
  .coupe-temps { display: block; border-left: 1px solid var(--crepuscule); padding-left: 16px; }
  .coupe-temps li { padding: 14px 0; }
  .coupe-temps .temps-1 { border-top: 0; }
  .coupe-temps .temps-3 { border-top: 1px solid var(--trait-doux); }
}
.plan-fig { max-width: 760px; }
.cartouche--filtres .segment-3 { grid-template-columns: repeat(3, auto); }
@media (max-width: 959px) { .cartouche--filtres .segment-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } html.panneau-ouvert .tray { display: none; } }
html:not(.js) .gal-nav, html:not(.js) .miniatures { display: none; }
.carte-biens .pin .nb { font-size: 15.5px; }
.carte-biens .carte-svg.petite .carte-lib { display: none; }

/* sans JavaScript : la liste des biens se lit, ses boutons (favori, comparer) n'existent pas */
html:not(.js) .bien-actions { display: none; }
html:not(.js) .resultats .avis-sans-js { margin: 28px 0 8px; }
/* grands écrans : planches de la liste à 480 px (400 px entre 1 180 et 1 359 px) */
@media (min-width: 1360px) { .ligne-bien { grid-template-columns: 480px minmax(0, 1fr) 64px 96px 168px 112px; } }

/* ---------- « verre dépoli » : le même fondu que l'accueil, sur toutes les pages intérieures ----------
   En-tête et tête de page claires (plâtre, voile lilas très léger, lueur chaude, texte et navigation en Nuit), comme le premier écran de l'accueil ;
   la photo d'en-tête de L'agence se dissout dans le plâtre (masque + flou progressif). Les photos de contenu (biens, galerie, plans) restent nettes.
   Le menu ouvert, le pied de page et la bande « Chaque maison a son heure » restent sur la Nuit. */
body:not(.accueil) .entete { position: absolute; inset: 0 0 auto 0; background: transparent; color: var(--nuit); --focus: var(--nuit); }
body:not(.accueil) .entete.defile { border-bottom-color: transparent; }
.menu-ouvert body:not(.accueil) .entete { color: #fff; background: var(--nuit); --focus: var(--lueur); }
.tete-bande { position: relative; overflow: clip; padding-top: var(--entete); background: var(--platre); color: var(--nuit); --focus: var(--nuit); }
.tete-bande::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 38% 55% at 82% 38%, rgba(244, 213, 141, .26) 0, rgba(244, 213, 141, 0) 100%), linear-gradient(to bottom, rgba(222, 214, 236, .55) 0, rgba(222, 214, 236, 0) 70%); }
.tete-bande > .conteneur { position: relative; z-index: 1; }
.page-tete h1, .fiche-titre h1 { color: var(--nuit); }
.page-tete .chapo, .fiche-titre .bien-lieu, .fiche-accroche { color: var(--nuit); }
.tete-bande a:not(.btn) { color: var(--nuit); text-decoration-color: var(--nuit); }
.fil ol, .fil [aria-current] { color: var(--nuit); }
.fil li:not(:last-child)::after { background: rgba(29, 26, 43, .5); }
.tete-bande .legende { color: var(--nuit); }
.tete-bande .legende .rep { border-top-color: rgba(29, 26, 43, .5); }
.tete-bande .legende .rep:first-child::before, .tete-bande .legende .rep:last-child::after { border-left-color: rgba(29, 26, 43, .5); }

/* la fiche : prix, cotes et boutons passent au clair (comme le bas du premier écran sur téléphone, mais à toutes les largeurs) */
.fiche-cotes > div { border-top-color: var(--trait); border-bottom-color: var(--trait-doux); }
.fiche-cotes > div + div { border-left-color: var(--trait-doux); }
.fiche-cotes dt, .fiche-cotes dd, .fiche-cotes .cote-prix dd small, .page-fiche .fiche-sous { color: var(--nuit); }
.fiche-cotes dt svg { color: var(--nuit); }
.fiche-cotes .cote-prix dd { color: var(--crepuscule); }
.page-fiche .fiche-actions .btn { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.page-fiche .fiche-actions .btn:hover { background: var(--crepuscule); border-color: var(--crepuscule); }
.page-fiche .fiche-actions .tog { background: rgba(243, 241, 245, .7); color: var(--nuit); border-color: var(--trait); }
.page-fiche .fiche-actions .tog:hover { background: #fff; }
.page-fiche .fiche-actions .tog[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.page-fiche .galerie-piste:focus-visible { outline-color: var(--nuit); }
.page-fiche .gal-nav { background: var(--platre); border-color: var(--trait); color: var(--nuit); }
.page-fiche .gal-nav:hover:not(:disabled) { background: #fff; border-color: var(--nuit); }
.page-fiche .miniatures button { border-color: rgba(29, 26, 43, .3); }
.page-fiche .miniatures button:hover { border-color: var(--nuit); }
.page-fiche .miniatures button[aria-current="true"] { border-color: var(--nuit); outline: 1px solid var(--nuit); }
.page-fiche .miniatures button:focus-visible { outline: 2.5px solid var(--nuit); outline-offset: 3px; }

/* l'agence : la porte se dissout dans le plâtre, flou progressif du côté du texte (même construction que le premier écran de l'accueil) */
.page-agence .page-tete-texte { position: relative; z-index: 2; }
.page-agence .page-tete-photo { position: relative; margin: 24px calc(-1 * var(--g)) 0; z-index: 0; }
.page-agence .page-tete-photo img { display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%; filter: brightness(1.06) saturate(.95);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 68%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 26%, #000 68%, transparent 100%); }
.page-agence .page-tete-photo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 40%; pointer-events: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, transparent 100%); }
.page-agence .page-tete-photo .legende { margin: -26px var(--g) 0; position: relative; }
@media (min-width: 960px) {
  .page-agence .page-tete--photo { grid-template-columns: minmax(0, 1fr); }
  .page-agence .page-tete-photo { position: absolute; inset: 0 0 0 auto; width: 56%; max-width: none; margin: 0; justify-self: auto; }
  .page-agence .page-tete-photo img { height: 100%; aspect-ratio: auto; object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .5) 16%, #000 48%), linear-gradient(to bottom, transparent 0, #000 22%, #000 66%, transparent 100%); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .5) 16%, #000 48%), linear-gradient(to bottom, transparent 0, #000 22%, #000 66%, transparent 100%); mask-composite: intersect; }
  .page-agence .page-tete-photo::before { inset: 0; height: auto; -webkit-mask-image: linear-gradient(to right, #000 0, rgba(0, 0, 0, .6) 22%, transparent 54%); mask-image: linear-gradient(to right, #000 0, rgba(0, 0, 0, .6) 22%, transparent 54%); }
  .page-agence .page-tete-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 34% 40% at 70% 44%, rgba(244, 213, 141, .28) 0, rgba(244, 213, 141, 0) 100%); }
  .page-agence .page-tete-photo .legende { position: absolute; right: var(--mx); bottom: 14px; left: auto; width: min(300px, 60%); margin: 0; }
  .page-agence .page-tete { min-height: 520px; align-content: start; padding-bottom: 0; }
  .page-agence .page-tete-texte { padding: 40px 0 88px; max-width: calc(44vw - var(--mx)); min-width: min(100%, 18rem); }
}
.page-agence .tete-bande > .conteneur { position: static; }

/* Les biens, en-tête clair : cartouche de filtres blanc sur ordinateur, filtres et carte en Nuit sur le plâtre sur téléphone et tablette */
.cartouche--filtres { background: #fff; box-shadow: none; border: 1px solid var(--trait-doux); }
.cartouche--filtres .cartouche-grille { background: var(--platre-2); }
.cartouche--filtres .cel, .plus { background: #fff; }
.carte-biens .carte-svg { border-color: var(--trait); }
.carte-biens .carte-note { color: var(--nuit); }
@media (max-width: 959px) {
  .cartouche--filtres { background: transparent; border: 0; color: var(--nuit); --focus: var(--nuit); }
  .cartouche--filtres .cel, .cartouche--filtres .cartouche-grille { background: none; }
  .cartouche--filtres .cel > label, .cartouche--filtres fieldset.cel > legend, .champ-plus > legend, .champ-plus > .etiq, .valeur-duo { color: var(--nuit); }
  .cartouche--filtres .segment span { border-bottom-color: var(--nuit); color: var(--nuit); }
  .cartouche--filtres .segment input:checked + span { background: var(--nuit); color: #fff; }
  .cartouche--filtres select { color: var(--nuit); border-bottom-color: var(--nuit); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%231D1A2B' stroke-width='1.5'/%3E%3C/svg%3E"); }
  .filtres-bouton { border-color: var(--trait); color: var(--nuit); background: rgba(255, 255, 255, .6); }
  .filtres-bouton .badge { background: var(--nuit); color: #fff; }
  .plus-bouton { color: var(--nuit); border-bottom-color: var(--nuit); }
  .plus { background: none; color: var(--nuit); }
  .plus .choix span { background: transparent; border-color: var(--trait); color: var(--nuit); }
  .plus .choix input:checked + span { background: var(--nuit); border-color: var(--nuit); color: #fff; }
  .plus .case { background: transparent; border-color: var(--nuit); }
  .plus input:checked ~ .case { background: var(--nuit); border-color: var(--nuit); }
  .plus input:checked ~ .case::after { border-color: #fff; }
  .plus .simple::-webkit-slider-runnable-track { background: var(--trait); }
  .plus .simple::-webkit-slider-thumb { background: var(--nuit); box-shadow: 0 0 0 1px var(--nuit); border-color: #fff; }
  .plus .btn-lien { text-decoration-color: var(--nuit); }
  .cel-budget .duo-piste::after { background: var(--nuit); }
  .cel-budget .duo-piste { background: var(--trait); }
  .cel-budget .duo input[type="range"]::-webkit-slider-thumb { background: var(--nuit); box-shadow: 0 0 0 1px var(--nuit); border-color: #fff; }
  .carte-bouton { color: var(--nuit); text-decoration-color: var(--nuit); }
}

/* Estimation : le premier écran téléphone est plein de champs, la puce « Démo » se rangeait donc en haut, contre le bouton Menu.
   On la garde en bas à droite (comme sur les autres pages) ; elle ne gêne que le bord haut d'un champ, et s'efface dès qu'un champ a le focus. */
@media (max-width: 760px) {
  body:has(#form-est) .demo-pastille.reduite { transform: translate(calc(var(--demo-vw, 100vw) - 100% - 10px), calc(var(--demo-vh, 100vh) - 100% - 10px)) !important; }
}
