/* Fiche d'un bien, refonte du 10 novembre 2026 : voir fiche-refonte.js. */
.fr-on .fr-gone{display:none!important}
html .drawer.fr-on .drawer-content{display:flex!important;flex-direction:column;gap:14px;max-width:1180px;margin:0 auto;width:100%;box-sizing:border-box}
html .drawer.fr-on .drawer-content>*{margin-top:0;grid-column:auto!important;grid-row:auto!important}
.fr-crumb{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.fr-crumb .text-btn{padding:0;font-size:13px;color:var(--muted)}
.fr-crumb b{color:var(--text);font-weight:550}
.fr-crumb small{font-size:12.5px;color:var(--muted);margin-left:4px}

.fr-hero{position:relative;min-height:300px;border-radius:24px;overflow:hidden;background:#1d2a24;color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:18px 22px 22px;isolation:isolate}
.fr-hero.no-photo{background:linear-gradient(160deg,#2c3a33,#111916);min-height:220px}
.fr-hero-photo{position:absolute;inset:0;z-index:-1;padding:0;border:0;background:none;cursor:zoom-in}
.fr-hero-photo img{width:100%;height:100%;object-fit:cover;display:block}
.fr-hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,0) 32%,rgba(0,0,0,.08) 55%,rgba(0,0,0,.62) 100%)}
.fr-hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;pointer-events:none}
.fr-status{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.94);color:#111916;font-size:13px;font-weight:550}
.fr-status i{width:10px;height:10px;border-radius:50%;background:#d6ff00;border:1.5px solid #111916}
.fr-status small{font-weight:400;color:#56605a;font-size:12.5px}
.fr-ref{height:30px;display:inline-flex;align-items:center;padding:0 12px;border-radius:999px;background:rgba(17,25,22,.45);backdrop-filter:blur(8px);font-size:12px}
.fr-hero-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;pointer-events:none}
.fr-hero-bottom p{margin:0 0 6px;display:flex;align-items:center;gap:6px;font-size:14px;opacity:.92}
.fr-hero-bottom p svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7}
.drawer .fr-hero h1{margin:0;color:#fff!important;font-size:clamp(24px,2.6vw,34px);font-weight:550;letter-spacing:-1px;line-height:1.1;max-width:720px;text-shadow:0 1px 18px rgba(0,0,0,.25)}
.fr-price{text-align:right;flex:none}
.fr-price small{display:block;font-size:12px;opacity:.85;margin-bottom:2px}
.fr-price b{font-size:clamp(22px,2.4vw,32px);font-weight:550;letter-spacing:-.8px;white-space:nowrap}

.fr-under{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.fr-under .gallery-small{display:flex;gap:8px;margin:0}
.fr-under .gallery-small:empty{display:none}
.fr-under .gallery-small img{width:84px;height:56px;object-fit:cover;border-radius:12px}
.fr-under-right{display:flex;align-items:center;gap:12px;margin-left:auto;flex-wrap:wrap}
.fr-under .pn-agent{margin:0;padding:0;background:none}
.fr-under .h-dossier-tools{margin:0;display:flex;gap:8px}

.fr-band{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:28px;align-items:center;padding:18px 24px;border-radius:20px;background:var(--surface);border:1px solid var(--line)}
.fr-facts{display:flex;gap:26px;padding-right:26px;border-right:1px solid var(--line)}
.fr-facts div{display:flex;flex-direction:column;min-width:0}
.fr-facts b{font-size:26px;font-weight:550;letter-spacing:-.8px;line-height:1.1;white-space:nowrap}
.fr-facts span{font-size:12px;color:var(--muted);margin-top:3px}
.fr-sale-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:11px;letter-spacing:.12em;color:var(--muted)}
.fr-sale-head small{letter-spacing:0;font-size:12.5px}
.fr-sale-head b{color:var(--text);font-weight:600}
.fr-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,1fr);position:relative}
.fr-steps::before{content:"";position:absolute;left:7%;right:7%;top:6px;height:1px;background:var(--line)}
.fr-steps li{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;color:var(--muted);min-width:0;text-align:center}
.fr-steps li i{width:8px;height:8px;border-radius:50%;background:var(--surface);border:1px solid var(--muted);box-sizing:border-box;margin-top:2px;position:relative;z-index:1}
.fr-steps li.done{color:var(--text)}
.fr-steps li.done i{background:var(--text);border-color:var(--text)}
.fr-steps li.done::after{content:"";position:absolute;top:6px;left:50%;width:100%;height:1.5px;background:var(--text)}
.fr-steps li.now{color:var(--text);font-weight:600}
.fr-steps li.now i{width:16px;height:16px;margin-top:-2px;background:#d6ff00;border:2px solid var(--text)}
.fr-steps li span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

.fr-next{padding:20px 24px;border-radius:20px;border:1px solid var(--line);border-left:4px solid #d6ff00;background:linear-gradient(90deg,#f6ffd0,var(--surface) 70%)}
.fr-next.late{border-left-color:#d8894f;background:linear-gradient(90deg,#fbf0e4,var(--surface) 70%)}
.fr-next-head{display:flex;align-items:center;gap:10px;font-size:11px;letter-spacing:.12em;color:var(--muted)}
.fr-next-head em{font-style:normal;letter-spacing:0;font-size:12px;font-weight:550;height:24px;display:inline-flex;align-items:center;padding:0 10px;border-radius:999px;background:var(--text);color:var(--bg)}
.fr-next-head em.late{background:#fde6e1;color:#9a3412}
.fr-next h2{margin:10px 0 6px;font-size:22px;font-weight:550;letter-spacing:-.5px}
.fr-next p{margin:0;color:var(--muted);font-size:14px;line-height:1.5;max-width:720px}
.fr-next-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}
.fr-next-acts .btn{height:42px;padding:0 18px;border-radius:999px}
.fr-next-acts .btn svg{width:16px;height:16px}

.fr-tabsrow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.fr-tabsrow .pp-detail-tabs{margin:0}
.fr-more{position:relative}
.fr-more>summary{list-style:none;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-size:13px;font-weight:500;cursor:pointer;user-select:none}
.fr-more>summary::-webkit-details-marker{display:none}
.fr-more>summary svg{width:16px;height:16px}
.fr-more>summary span{min-width:22px;height:22px;border-radius:11px;background:var(--surface2);display:inline-flex;align-items:center;justify-content:center;font-size:11px}
.fr-more[open]>summary{border-color:var(--text)}
.fr-more-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:min(420px,calc(100vw - 40px));max-height:min(70vh,560px);overflow:auto;padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:0 24px 60px -24px rgba(17,25,22,.35);display:flex;flex-direction:column;gap:8px}
.fr-more-panel>.ds-entry{margin:0}
.fr-more-panel>.detail-section{margin:6px 0 0;padding:12px 0 0;border-top:1px solid var(--line)}
.fr-statusrow{justify-content:flex-start!important;gap:10px}

[data-theme=dark] .fr-next{background:linear-gradient(90deg,rgba(214,255,0,.08),var(--surface) 70%)}
[data-theme=dark] .fr-next.late{background:linear-gradient(90deg,rgba(216,137,79,.12),var(--surface) 70%)}
[data-theme=dark] .fr-steps li.now i{border-color:#d6ff00}

@media (max-width:900px){
 .fr-band{grid-template-columns:1fr;gap:16px}
 .fr-facts{border-right:0;padding-right:0;padding-bottom:14px;border-bottom:1px solid var(--line);flex-wrap:wrap;gap:16px 22px}
}
@media (max-width:600px){
 .fr-hero{min-height:260px;padding:14px 16px 16px;border-radius:20px}
 .fr-hero-bottom{flex-direction:column;align-items:flex-start;gap:10px}
 .fr-price{text-align:left}
 .fr-steps li span{font-size:10px}
 .fr-steps li:not(.now) span{visibility:hidden}
 .fr-crumb small,.fr-status small,.fr-ref{display:none}
 .fr-hero::after{background:linear-gradient(180deg,rgba(0,0,0,.15) 0%,rgba(0,0,0,0) 25%,rgba(0,0,0,.35) 50%,rgba(0,0,0,.78) 100%)}
 .fr-hero-bottom p{font-size:12.5px}
 .fr-under{gap:8px}
 .fr-under-right{margin-left:0;width:100%;justify-content:space-between}
 .fr-under .pn-agent{min-height:0}
 .fr-band,.fr-next{padding:16px}
 .fr-facts b{font-size:22px}
 .fr-more-panel{left:0;right:auto}
}
