input,button,textarea,select{font:inherit;color:inherit}button{cursor:pointer}.listing h1{font-size:clamp(2.15rem,4.25vw,4rem);line-height:1.08;overflow-wrap:break-word;text-wrap:balance}.listing h2{font-size:clamp(2rem,4vw,3.5rem);margin-top:2.6rem}.listing h3{margin:1.5rem 0 .5rem}.listing>p,.form-page form{max-width:70ch}.listing>.back-link::before{content:none}.listing>.back-link{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;margin-bottom:1.25rem;text-decoration:none}.filters{margin-bottom:2rem}.filters [aria-current]{border-bottom:2px solid var(--ink)}.listings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:2rem;margin:2rem 0}.listings img{width:100%;height:auto;aspect-ratio:1.5;object-fit:cover}.listings h3{font-size:1.5rem;line-height:1.25;margin:0 0 .75rem}.card-location::before{content:none}.listings h3 a{text-decoration:none}.price{font-size:1.4rem}
.gallery{margin:2rem 0}
.gallery-frame{position:relative}
.gallery-cover{display:block;cursor:zoom-in;touch-action:pan-y pinch-zoom}
.gallery-frame button{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;padding:0;background:transparent;color:white;border-radius:var(--button-radius);font-size:2rem;line-height:1}
.cover-prev{left:.75rem}.cover-next{right:.75rem}
.gallery-cover img{width:100%;height:clamp(230px,50vw,660px);object-fit:contain;background:#eae7e1}
.gallery-thumbs{display:flex;gap:.5rem;overflow-x:auto;padding:.4rem .25rem .65rem;scroll-snap-type:x proximity}
.gallery-thumbs a[aria-current="true"]{outline:2px solid var(--ink);outline-offset:1px}
.gallery-thumbs a{flex:0 0 clamp(84px,9vw,132px);scroll-snap-align:start}
.gallery-thumbs img{width:100%;aspect-ratio:4/3;object-fit:cover}
.facts,.actions{display:flex;flex-wrap:wrap;gap:1.4rem}.facts{border-block:1px solid var(--line);padding:1.4rem 0}.facts dd{font-size:1.35rem}.actions{margin:2rem 0;align-items:center}.actions a{margin:0;display:inline-flex;align-items:center;min-height:44px;text-decoration:none}.form-page form{margin-top:2rem}fieldset{border:1px solid var(--line);margin:1rem 0;padding:clamp(1rem,3vw,2.4rem);min-width:0}legend{font-size:1.2rem}.field{display:grid;margin:0 0 1rem;gap:.3rem}.field input,.field textarea,.field select{width:100%;padding:.65rem;border:1px solid #7a858d;background:white}.field textarea{resize:vertical}.errorlist{color:#862808}.form-page button,dialog button{padding:.7rem 1rem;min-height:44px}.form-page .button{border:0}.button[hidden],[hidden]{display:none!important}dialog{border:0;background:var(--ink);color:white;max-width:96vw;padding:.6rem}dialog img{max-height:83vh;object-fit:contain}dialog::backdrop{background:#101823dd}dialog button{color:var(--ink);margin-bottom:.5rem}footer .line{color:white}

.editorial h1{max-width:18ch;font-size:clamp(2.8rem,6.5vw,6rem);line-height:1.03;overflow-wrap:break-word}
.editorial .lede{max-width:52ch;font-size:clamp(1.18rem,2vw,1.6rem);color:var(--blue)}
.editorial h2{font-size:clamp(2rem,4vw,3.4rem);margin:0}
.editorial-row,.portfolio-selection{margin-top:clamp(64px,8vw,120px);padding-top:2rem;border-top:1px solid var(--line)}
.editorial-row{display:grid;grid-template-columns:1fr 1fr;gap:6%}
.editorial-row p{max-width:54ch;margin-bottom:.8rem}
.service-links{display:grid;gap:0}.service-links a{border-bottom:1px solid var(--line);padding:.7rem 0}
.portfolio-selection>p{margin-top:1.2rem}
@media(max-width:700px){.editorial-row{grid-template-columns:1fr;gap:1.4rem}}

html:has(#zoom[open]){overflow:hidden}
#zoom[open]{position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;background:#101820;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:max(.6rem,env(safe-area-inset-top)) max(.75rem,env(safe-area-inset-right)) max(.6rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left));gap:.4rem;overflow:hidden}
#zoom button{margin:0;color:white;background:#162532ed;border-radius:var(--button-radius);min-width:44px;min-height:44px}
#zoom [data-close]{justify-self:end;display:grid;place-items:center;padding:0;background:transparent}
.viewer-stage{min-height:0;touch-action:pan-y pinch-zoom;user-select:none}
#zoom .viewer-stage img{width:100%;height:100%;max-height:none;object-fit:contain}
#zoom [data-prev],#zoom [data-next-photo]{position:absolute;top:50%;transform:translateY(-50%);font-size:2rem;line-height:1;padding:0}
#zoom [data-prev]{left:max(.75rem,env(safe-area-inset-left))}
#zoom [data-next-photo]{right:max(.75rem,env(safe-area-inset-right))}
.viewer-caption{text-align:center;font-size:1rem;color:white}

.fact-icon{display:inline-block;flex:none;vertical-align:-.18em;color:var(--blue)}
.card-facts,.amenities{display:flex;flex-wrap:wrap;gap:.45rem 1rem;padding:0;margin:.65rem 0;list-style:none}
.card-facts li,.amenities li,.facts dt{display:inline-flex;align-items:center;gap:.4rem}
.card-facts{font-size:.94rem}
.amenities{margin:1rem 0}
.listing h3>.fact-icon{margin-right:.4rem}

.listing>.facts{margin:1.2rem 0;gap:1rem 2rem}.facts dt{line-height:1.35}.facts dd{margin-top:.25rem}
.listing>.facts dd{font-size:1.12rem;font-weight:500}
.listing-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:1rem clamp(2rem,6vw,6rem);margin:1.5rem 0}
.technical-list>div,.equipment-list li{padding:.65rem 0;border-bottom:1px solid var(--line)}
.technical-list>div{display:flex;justify-content:space-between;gap:1rem}
.technical-list dd{text-align:right;font-weight:500}
.equipment-section, .nearby-section { grid-column:1/-1; }
.equipment-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 clamp(1rem,3vw,3rem); list-style:none; margin:0; padding:0; }
.equipment-list .fact-icon { width:24px; height:24px; }
.equipment-list li span { overflow-wrap:anywhere; }
@media(max-width:850px) { .equipment-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.equipment-list li{display:flex;align-items:center;gap:.6rem}
.equipment-list li:not(:has(svg))::before{content:"";flex:none;margin:0 7px;width:4px;height:4px;background:var(--ink);border-radius:50%}

.cpe-grade{display:inline-grid;place-items:center;min-width:2.5rem;padding:.06rem .55rem;border-radius:3px;font-weight:700;color:#172127}
.grade-A{background:#17683b;color:white}.grade-B{background:#37834b;color:white}
.grade-C{background:#94c267}.grade-D{background:#c4d969}.grade-E{background:#f1dc65}
.grade-F{background:#f3b955}.grade-G{background:#e78b48}.grade-H{background:#ae462f;color:white}
.grade-I{background:#8a2833;color:white}
.floorplan-preview{display:block;width:100%;height:auto;object-fit:contain;margin:1rem 0;border:1px solid var(--line)}

main > .catalogue:first-child { padding-block-start: clamp(2.5rem, 5vw, 4.5rem); }
.catalogue h1 { margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.08; }
.catalogue > .listings { margin-top: clamp(1rem, 2vw, 1.75rem); }

.card-cover { position: relative; }
.card-cover > a { display: block; }
.photo-status {
  position: absolute;
  top: .75rem;
  left: 0;
  padding: .3rem .8rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  background: var(--ink);
  color: var(--ivory);
  font-size: .82rem;
  font-weight: 600;
  pointer-events: none;
}

.listings > article {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-items: start;
}
.listings .card-location { container-type: inline-size; font-size: 1.125rem; letter-spacing: .035em; }
.listings .card-location a { min-width: 0; font-size: min(1.125rem, calc(5.9cqi - .2rem)); text-wrap: pretty; }
.listings .card-cover { grid-row: 2; }
.listings .card-facts {
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  align-content: start;
  column-gap: .65rem;
}
.card-facts li { min-width: 0; overflow-wrap: anywhere; }
.card-facts .card-surface { grid-area: 1 / 2; } /* Superficie, en face du type de bien. */

.gallery-frame button.text-action { position: absolute; padding: 0; color: white; background: transparent; border-radius: 0; }
#zoom button.text-action { background: transparent; border-radius: 0; }

:is(.gallery-frame button, #zoom [data-prev], #zoom [data-next-photo])::before { content: none; }
:is(.gallery-frame button, #zoom [data-prev], #zoom [data-next-photo])::after {
  width: .85rem; height: .85rem; border-width: 2px 2px 0 0;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 80%));
}

section > .catalogue-heading { margin-inline:0; text-align:start; font-size: clamp(1.75rem, 2.5vw, 2.3rem); }

.seller-hero { display:grid; grid-template-columns: 46% 54%; background:var(--ink); color:var(--ivory); }
.seller-copy { align-self:center; padding:clamp(3rem,7vw,8rem) clamp(1.5rem,4vw,5rem) clamp(3rem,7vw,8rem) max(5vw,calc((100vw - 1312px)/2)); }
.seller-copy h1 { font-size:clamp(3rem,5.2vw,5.7rem); line-height:1.04; margin:0 0 1.4rem; }
.seller-copy p,.seller-section p { max-width:51ch; }
.seller-copy .text-action { margin-top:1.8rem; }
.seller-photo,.hero figure,.card-cover { overflow:hidden; }
.seller-photo img { width:100%; height:100%; object-fit:cover; }
.seller-section { padding-block:clamp(3rem,7vw,7rem); display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 6fr); gap:clamp(2rem,7vw,7rem); }
.seller-section h2 { margin:0 0 1rem; font-size:clamp(2rem,3.6vw,3.6rem); max-width:16ch; }
.seller-steps > li,.market-method { border-top:1px solid var(--line); }
.seller-section summary { cursor:pointer; display:flex; gap:1rem; align-items:baseline; justify-content:space-between; list-style:none; padding:1rem 0; font-weight:600; }
.seller-section summary::-webkit-details-marker { display:none; }
.seller-section summary::after { content:'+'; font-size:1.25rem; font-weight:400; }
.seller-section details[open]>summary::after { content:'−'; }
.seller-steps { list-style:none; margin:0; padding:0; }
.seller-steps > li { padding-block:clamp(1.4rem,3vw,2.5rem); }
.seller-steps p + p { margin-top:.85rem; }
@media(min-width:701px) and (min-height:36rem) {
  [aria-labelledby="parcours"] > div:first-child { position:sticky; align-self:start; top:2rem; }
}
.seller-market { background:#eae5dc; }
.seller-calculator { background:var(--ivory); padding:clamp(1.25rem,3vw,3rem); }
.seller-calculator form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.seller-calculator label { display:grid; gap:.35rem; font-size:.92rem; }
.seller-calculator label:first-child { grid-column:1/-1; }
.seller-calculator :is(input,select) { width:100%; min-width:0; color:var(--ink); background:white; border:1px solid var(--line); padding:.65rem; font:inherit; font-size:1rem; }
.seller-calculator .text-action { width:fit-content; grid-column:1/-1; cursor:pointer; }
.seller-calculator [hidden] { display:none!important; }
.market-result strong { display:block; font-size:clamp(1.4rem,2.6vw,2.5rem); font-weight:500; line-height:1.2; }
.market-result > :not([hidden]) { margin-top:1.6rem; }
.market-method { margin:1.6rem 0 1rem; font-size:.92rem; }
.market-method a { display:inline-block; margin:.75rem 0; }
@media(max-width:700px) {
 .seller-hero,.seller-section { grid-template-columns:1fr; }
 .seller-copy { padding:3rem 5vw; }
 .seller-photo { height:clamp(12rem,45vw,20rem); }
 .seller-calculator form { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:no-preference) {
 @keyframes gg-enter { from {opacity:0; transform:translateY(.8rem)} to {opacity:1; transform:translateY(0)} }
 @keyframes gg-focus { from {transform:scale(1.05)} to {transform:scale(1)} }
 .hero figure img,.seller-photo img { animation:gg-focus 1.8s ease-out both; }
 .seller-section details[open]>p,.market-result > :not([hidden]) { animation:gg-enter .25s ease-out; }
 .card-cover img { transition:transform .45s ease; }
 @media(hover:hover) { .listings article:hover .card-cover img { transform:scale(1.035); } }
}

.seller-links { display:flex; align-items:baseline; flex-wrap:wrap; gap:.5rem 1.6rem; margin-top:1.8rem; }
.seller-links .text-action { margin-top:0; }
.seller-steps h3 { display:flex; align-items:baseline; gap:1rem; margin:0 0 .8rem; font-size:clamp(1.15rem,2vw,1.5rem); line-height:1.3; }
.seller-steps h3 small { color:var(--blue); font-size:.75rem; font-variant-numeric:tabular-nums; font-weight:400; }

.property-film :is(iframe,video) { display:block; width:100%; aspect-ratio:16/9; border:0; background:var(--ink); }
:is(#property-info,#agency-contact,#property-visit) { width:min(32rem,92vw); max-height:88dvh; padding:clamp(1.4rem,4vw,2.5rem); border:0; color:var(--ink); background:var(--ivory); }
:is(#property-info,#agency-contact,#property-visit)::backdrop { background:#101f30aa; }
:is(#property-info,#agency-contact,#property-visit) h2 { padding-right:1.7rem; font-size:1.8rem; }
:is(#property-info,#agency-contact,#property-visit) form { display:grid; gap:1rem; margin-top:1rem; }
:is(#property-info,#agency-contact,#property-visit) :is(input,select,textarea) { width:100%; }
:is(#property-info,#agency-contact,#property-visit) .text-action { justify-self:start; }
.info-close { position:absolute; inset:.4rem .4rem auto auto; width:44px; height:44px; background:transparent; color:inherit; font-size:1.6rem; cursor:pointer; }


article.listing > .kicker + h1 { margin-block:.65rem .85rem; }
.listing-description > p + p:not(.area-note) { margin-block-start:.75rem; }
.actions { gap:.75rem 1.75rem; }
#biens > section + section, .catalogue > section + section { margin-top:clamp(2.5rem,5vw,4.5rem); }
#biens .listings, .catalogue .listings { margin-block:1.25rem 1rem; }
#biens > .kicker { margin-bottom:1.25rem; }
.listing-details section h3 { line-height:1.3; }

.form-page { max-width:48rem; }
.form-page h1 { font-size:clamp(2rem,3.6vw,3.2rem); margin-block:.75rem 1.25rem; }
.form-page form { max-width:none; margin-top:1.5rem; }
.form-page legend { padding-inline:.35rem; font-weight:500; }
.form-page .field label, :is(#property-info,#agency-contact,#property-visit) .field label { line-height:1.4; }
:is(#property-info,#agency-contact,#property-visit) .field { margin:0; }
:is(#property-info,#agency-contact,#property-visit) h2 { line-height:1.12; margin:0 0 .6rem; }
:is(#property-info,#agency-contact,#property-visit)[open] { overscroll-behavior:contain; }
html:has(:is(#property-info,#agency-contact,#property-visit)[open]) { overflow:hidden; }
:is(#property-info,#agency-contact,#property-visit) .info-close { padding:0; }
@media (max-width:700px) {
  .listing > .facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
  .listing > .facts dd { font-size:1rem; }
  .listing > .back-link { margin-bottom:.65rem; }
  .gallery { margin-block:1.25rem 2rem; }
  .actions { align-items:flex-start; }
  .seller-copy { padding-inline:max(18px,env(safe-area-inset-left)); }
}

article.listing > :is(.kicker, h1, .price, .facts, .actions),
.listing-description, .listing-details, .listing-media, .listing-tool { max-width:56rem; margin-inline:auto; }
.listing-tool {margin-block:clamp(2rem,5vw,4rem)}
.mortgage-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:1rem}
.mortgage-fields label {display:grid;gap:.4rem}
.mortgage-fields :is(input,select) {box-sizing:border-box;width:100%;min-height:44px;padding:.55rem .75rem;font:inherit;color:inherit;background:transparent;border:1px solid #aaa298;border-radius:3px}
.listing-tool .tool-note, .nearby-section .tool-note {font-size:.89rem;line-height:1.55}
.mortgage-result dd {font-variant-numeric:tabular-nums}

.offer-tools {display:flex;align-items:center;flex-wrap:wrap;gap:.25rem;max-width:100%}
.offer-tools [hidden], .offer-tools [role=status]:empty {display:none}
.offer-tools input {max-width:100%}

.offer-tools .offer-icon {display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--ink)}
.offer-tools .offer-icon:hover {color:#86663e}
.offer-icon svg {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.offer-tools .offer-icon[hidden] {display:none}

.actions .info-short { display:none; }
@media (min-width:701px) {
  .listing-media { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem; }
  .listing-media > section:only-child { grid-column:1/-1; }
  .listing-media .floorplan-preview { margin-top:0; }
  .actions > .offer-tools { margin-inline-start:auto; }
}

@media (max-width:700px) {
  .listing .actions { column-gap:.75rem; }
  .actions > a.text-action { gap:.45rem; font-size:.9375rem; }
  .actions .info-long { display:none; }
  .actions .info-short { display:inline; }
  .actions > .offer-tools { flex-basis:100%; justify-content:flex-end; }
  .offer-tools [data-share-feedback] { order:-1; }
  .offer-tools [data-share-link] { flex-basis:100%; }
}

.nearby-section dd { white-space:nowrap; }
.mortgage-percent { display:flex; align-items:center; gap:.25rem; padding-inline:.75rem; border:1px solid #aaa298; border-radius:3px; }
.mortgage-fields .mortgage-percent input { width:7ch; padding-inline:0; border:0; }

.masthead nav a.menu-contact { display:none; }
@media (max-width:700px) {
  .masthead .header-contact { display:none; }
  .masthead nav a.menu-contact { display:block; }
}
