/* =====================================================================
   desle.immo · assets/v2/pages/vendre.css · page /vendre/ (v2, 16/10/2026)
   Chargé après assets/v2/site.css, qui reste intact : ici seulement ce que
   la page ajoute (préfixe vd-) : hero texte + photo, réponse directe,
   tableau des prix médians à barres (5 communes + « Les 23 communes »),
   questions en cellules, tableau comparatif seul / avec moi, emplacement
   du rappel, index typographique des communes.
   Tout le reste vient du système : di-section, di-eyebrow, di-cadre,
   di-grille, di-cellule, di-chiffre, di-frise, di-visuel, di-btn, di-encre.
   ===================================================================== */

/* ── 00 Hero : texte | photo 3:4 ; chiffres sous le texte ────────────── */
.vd-hero__grille{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"titre" "texte" "photo" "chiffres";gap:clamp(28px,3.6vw,44px) clamp(32px,4.5vw,72px)}
.vd-hero__titre{grid-area:titre}
.vd-hero__texte{grid-area:texte;display:grid;gap:clamp(24px,3vw,36px);align-content:start}
.vd-hero__cadre{grid-area:photo}
.vd-hero__chiffres{grid-area:chiffres;align-self:end}
@media (min-width:960px){
  .vd-hero__grille{grid-template-columns:minmax(0,7fr) minmax(0,5fr);grid-template-areas:"titre titre" "texte photo" "chiffres photo";align-items:start}
}
.vd-hero .di-h1{max-width:22ch}
/* photo : 4:3 sur mobile (moins haute), 3:4 dès 960 px */
.vd-hero__photo{border:1px solid var(--filet);border-radius:var(--radius)}
.vd-hero__photo > img{aspect-ratio:4 / 3;object-position:50% 62%}
@media (min-width:960px){.vd-hero__photo > img{aspect-ratio:3 / 4;object-position:50% 50%}}
/* trois chiffres côte à côte à toutes les largeurs */
.vd-chiffres3{grid-template-columns:repeat(3,minmax(0,1fr))}
@container (max-width:460px){
  .vd-chiffres3 .di-chiffre{min-height:116px;padding:16px 12px}
  .vd-chiffres3 .di-chiffre__l{letter-spacing:.06em}
}

/* réponse directe (extrait en tête de page) et réponses des sections */
.vd-reponse{max-width:60ch;padding-left:clamp(16px,2vw,24px);border-left:2px solid var(--accent);font-size:var(--fs-lead);line-height:1.6;color:var(--texte);text-wrap:pretty}
.vd-direct{max-width:62ch;font-size:clamp(1.0625rem,1rem + .3vw,1.1875rem);line-height:1.6;color:var(--texte);text-wrap:pretty}

/* liens dans le texte courant */
.vd-prose a{color:var(--texte);font-weight:500;text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:1px;text-underline-offset:3px}
@media (hover:hover){.vd-prose a:hover{text-decoration-thickness:2px}}

/* ── 01 Prix médian : texte collant | tableau à barres ───────────────── */
.vd-prix{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(32px,4vw,56px)}
.vd-prix__texte{display:grid;gap:22px;align-content:start}
@media (min-width:960px){
  .vd-prix{grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:start}
  .vd-prix__texte{position:sticky;top:calc(var(--header-h) + var(--eyebrow-h) + 32px)}
}
.vd-minmax__g{grid-template-columns:repeat(2,minmax(0,1fr))}
.vd-minmax .di-chiffre{min-height:112px}
.vd-minmax .di-chiffre__n{font-size:clamp(1.375rem,5.6cqi,2.5rem)}

.vd-table-boite{overflow-x:auto;border:1px solid var(--filet);border-radius:var(--radius);background:var(--fond)}
/* colonnes fixes (colgroup) : les deux tables (5 communes, puis les 18 du <details>) restent alignées */
.vd-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.9375rem;font-variant-numeric:tabular-nums}
.vd-table th{padding:16px clamp(12px,2vw,22px) 12px;border-bottom:1px solid var(--filet-fort);font:500 var(--fs-mono)/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase;text-align:left;color:var(--sourd)}
.vd-table td{padding:11px clamp(12px,2vw,22px);border-bottom:1px solid var(--filet);color:var(--texte);transition:background-color .25s}
.vd-table tbody tr:last-child td{border-bottom:0}
.vd-table td:first-child{font-weight:500;line-height:1.3}
.vd-table th:last-child,.vd-table td:last-child{text-align:right}
.vd-table td:last-child{font:500 .875rem/1.3 var(--mono);letter-spacing:.01em;white-space:nowrap}
.vd-table .vd-table__barre{padding-inline:0}
.vd-col-barre{width:28%}
.vd-col-prix{width:calc(6.5rem + 2 * clamp(12px,2vw,22px))}
@media (min-width:960px){
  .vd-col-prix{width:calc(8.75rem + 2 * clamp(12px,2vw,22px))}
  .vd-table th{white-space:nowrap}
}
.vd-table__barre span{display:block;width:calc(var(--p) * 100%);height:2px;background:var(--accent);transform-origin:left}
.vd-table__min .vd-table__barre span,.vd-table__max .vd-table__barre span{height:4px}
@media (hover:hover){.vd-table tbody tr:hover td{background:var(--fond-survol)}}

/* « Les 23 communes » : les 18 autres, repliées sous les 5 premières (plus grand volume de ventes) */
.vd-plus{border-top:1px solid var(--filet);interpolate-size:allow-keywords}
.vd-plus__resume{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:52px;padding:12px clamp(12px,2vw,22px);cursor:pointer;list-style:none;font:500 var(--fs-mono)/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--texte);transition:background-color .25s}
.vd-plus__resume::-webkit-details-marker{display:none}
.vd-plus__resume:focus-visible{outline-offset:-3px}
.vd-plus__chev{width:20px;height:20px;transition:transform .35s var(--ease)}
.vd-plus[open] .vd-plus__chev{transform:rotate(180deg)}
.vd-plus[open] > .vd-plus__resume{border-bottom:1px solid var(--filet)}
@media (hover:hover){.vd-plus__resume:hover{background:var(--fond-survol)}}
@media (prefers-reduced-motion:no-preference){
  .vd-plus::details-content{block-size:0;overflow:clip;transition:block-size .45s var(--ease),content-visibility .45s allow-discrete}
  .vd-plus[open]::details-content{block-size:auto}
}

/* ── 02 Documents : suite de la frise ────────────────────────────────── */
.vd-suite{display:grid;gap:18px;max-width:62ch;margin-top:clamp(28px,3.5vw,44px)}
.vd-btn-long{white-space:normal;justify-content:space-between;min-height:52px;padding-block:14px;line-height:1.35;text-align:left}

/* ── 03 Prix et délai : deux questions en cellules ───────────────────── */
.vd-question{display:flex;flex-direction:column;gap:18px}
.vd-question > * + *{margin-top:0}
.vd-h2-cellule{font-size:clamp(1.5rem,1.15rem + 1.1vw,2.125rem);line-height:1.1}

/* ── 04 Seul ou accompagné : tableau comparatif à filets ─────────────────
   Trois colonnes (point | Seul | Avec moi) ; « Avec moi » seulement en Ink plus appuyé,
   rien n'est marqué « gagnant ». Sous 720 px : une carte par ligne (étiquette + deux lignes). */
.vd-cmp-boite{border:1px solid var(--filet);border-radius:var(--radius);background:var(--fond)}
.vd-cmp{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.9375rem;line-height:1.5}
.vd-cmp th,.vd-cmp td{padding:16px clamp(14px,2vw,24px);text-align:left;vertical-align:baseline}
.vd-cmp thead th{padding-block:16px 12px;border-bottom:1px solid var(--filet-fort);font:500 var(--fs-mono)/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--sourd)}
.vd-cmp thead th + th{border-left:1px solid var(--filet)}
.vd-cmp thead .vd-cmp__moi{color:var(--texte)}
.vd-cmp .vd-cmp__coin{width:24%}
.vd-cmp tbody tr + tr{border-top:1px solid var(--filet)}
.vd-cmp tbody th{font:500 var(--fs-mono)/1.5 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--texte)}
.vd-cmp tbody td{border-left:1px solid var(--filet);color:var(--sourd);transition:background-color .25s}
.vd-cmp tbody td[data-th="Avec moi"]{color:var(--texte);font-weight:500}
@media (hover:hover){.vd-cmp tbody tr:hover > *{background:var(--fond-survol)}}
@media (max-width:719.98px){
  .vd-cmp,.vd-cmp tbody,.vd-cmp tr,.vd-cmp th,.vd-cmp td{display:block}
  .vd-cmp thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .vd-cmp tbody tr{padding:14px clamp(14px,4vw,18px) 6px}
  .vd-cmp tbody th{padding:0 0 8px}
  .vd-cmp tbody td{display:grid;grid-template-columns:4.5rem minmax(0,1fr);gap:12px;padding:9px 0;border-left:0;border-top:1px solid var(--filet);font-size:.9375rem}
  .vd-cmp tbody td::before{content:attr(data-th);content:attr(data-th) / "";font:500 var(--fs-mono)/1.6 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--sourd)}
  .vd-cmp tbody td[data-th="Avec moi"]::before{color:var(--texte)}
}

/* ── 05 Estimation (bloc Ink) : emplacement du mini-formulaire de rappel ──
   <div data-rappel> est rempli par chrome.js. Vide : aucune place prise (la figure reste).
   Rempli : il prend la moitié droite à la place de la figure (même cellule de la grille). */
#estimation .di-appel > [data-rappel]:empty{display:none}
#estimation .di-appel > [data-rappel]:not(:empty) ~ .di-visuel{display:none}
@media (min-width:720px){
  #estimation .di-appel > [data-rappel],#estimation .di-appel > .di-visuel{grid-column:2;grid-row:1}
}

/* ── 06 Commune par commune : index typographique ────────────────────── */
.vd-communes{max-width:none;font:600 clamp(1.375rem,1.05rem + 1.5vw,2.25rem)/1.42 var(--font);letter-spacing:-.02em;color:var(--sourd);text-wrap:pretty}
.vd-communes a{color:var(--texte);text-decoration:underline;text-decoration-color:var(--filet-fort);text-decoration-thickness:1px;text-underline-offset:.18em;transition:text-decoration-color .25s}
@media (hover:hover){.vd-communes a:hover{text-decoration-color:var(--accent);text-decoration-thickness:2px}}
.vd-communes a:focus-visible{text-decoration-color:var(--accent)}
