/* Climarys v0.7.2.3 — correction compacte de « Mon logement » */
.property-hero-visual{
  overflow:visible;
  padding:34px 0 32px!important;
  background:
    radial-gradient(circle at 38% 25%,rgba(255,255,255,.72) 0,rgba(255,255,255,.22) 21%,transparent 42%),
    linear-gradient(180deg,#eaf7f1 0,#f7fcf9 100%);
  border-bottom:1px solid rgba(196,216,207,.65)
}
.property-hero-visual .container{
  position:relative;
  min-height:280px!important;
  height:auto!important
}
/* Neutralise l’ancienne grande illustration qui provoquait l’espace vide. */
.property-hero-visual .property-hero-illustration{display:none!important}
.property-hero-visual .property-hero-copy{display:contents!important}
.property-hero-visual .eyebrow{margin-bottom:8px}
.property-hero-visual h1{
  display:flex;
  align-items:center;
  gap:14px;
  width:min(100%,560px);
  max-width:560px;
  margin:6px 0 14px;
  font-size:clamp(2.45rem,4vw,3.55rem);
  line-height:1.02;
  letter-spacing:-.045em
}
.property-title-illustration{
  display:inline-grid;
  place-items:center;
  width:58px;
  height:58px;
  flex:0 0 58px;
  border-radius:18px;
  color:#176b55;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(165,204,187,.8);
  box-shadow:0 11px 26px rgba(20,53,44,.12)
}
.property-title-illustration svg{
  display:block;
  width:34px;
  height:34px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round
}
.property-hero-visual .address-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:auto!important;
  max-width:min(100%,560px)!important;
  margin:0;
  padding:10px 14px;
  border:1px solid rgba(176,207,194,.8);
  border-radius:999px;
  background:rgba(255,255,255,.8);
  color:#36564d;
  font-size:.96rem;
  font-weight:750;
  line-height:1.35;
  overflow-wrap:anywhere;
  box-shadow:0 5px 15px rgba(20,53,44,.05)
}
.property-hero-visual .address-chip::before{
  content:"";
  width:17px;
  height:17px;
  flex:0 0 17px;
  background:currentColor;
  opacity:.75;
  mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z'/%3E%3C/svg%3E")
}
.property-hero-visual .dashboard-actions{
  display:flex!important;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  width:auto!important;
  max-width:650px;
  margin-top:20px
}
.property-hero-visual .dashboard-actions form{
  display:block!important;
  width:auto!important;
  margin:0!important;
  flex:0 0 auto
}
.property-hero-visual .dashboard-actions .btn{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  padding:12px 17px!important;
  white-space:nowrap!important;
  line-height:1.15;
  box-shadow:0 7px 20px rgba(23,107,85,.13)
}
.property-action-icon{display:inline-grid;place-items:center;width:18px;height:18px;flex:0 0 18px}
.property-action-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* La carte existante reste à sa place : aucun changement de grille ou de structure. */
.property-hero-visual [class*="map-card"],
.property-hero-visual [class*="location-card"],
.property-hero-visual [data-property-map]{align-self:start}
.property-hero-visual + .section{padding-top:32px}

.property-detail-grid{--property-accent:#176b55}
.property-detail-grid .property-tabs{
  gap:7px;
  padding:9px;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(12px);
  border-color:rgba(196,216,207,.9);
  box-shadow:0 10px 34px rgba(20,53,44,.09)
}
.property-detail-grid .property-tabs a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  padding:8px 11px;
  color:#27483f;
  transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease
}
.property-detail-grid .property-tabs a:hover{background:#edf7f2;transform:translateY(-1px)}
.property-detail-grid .property-tabs a.is-active,
.property-detail-grid .property-tabs a[aria-current="location"]{background:var(--green);color:#fff;box-shadow:0 7px 16px rgba(23,107,85,.2)}
.property-tab-icon{display:inline-grid;place-items:center;width:18px;height:18px;flex:0 0 18px}
.property-tab-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.property-detail-grid>.panel{
  --section-accent:#176b55;
  --section-tint:#eef8f3;
  position:relative;
  overflow:hidden;
  border-top:4px solid var(--section-accent);
  box-shadow:0 12px 38px rgba(20,53,44,.07);
  scroll-margin-top:145px
}
.property-detail-grid>.panel::after{content:"";position:absolute;right:-55px;top:-72px;width:170px;height:170px;border-radius:50%;background:var(--section-tint);opacity:.72;pointer-events:none}
.property-detail-grid>.panel>*{position:relative;z-index:1}
.property-detail-grid>.panel .panel-heading{align-items:center}
.property-detail-grid>.panel h2.property-heading-with-icon{display:flex;align-items:center;gap:12px;margin-top:4px}
.property-detail-grid>.panel>h2.property-heading-with-icon{margin-top:0}
.property-heading-icon{display:inline-grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:13px;color:var(--section-accent);background:var(--section-tint);box-shadow:inset 0 0 0 1px rgba(23,52,45,.06)}
.property-heading-icon svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

#synthese{--section-accent:#176b55;--section-tint:#e5f4ec}
#georisques{--section-accent:#c55c45;--section-tint:#fff0ec}
#dpe{--section-accent:#759a2e;--section-tint:#f2f7e3}
#bati-terrain{--section-accent:#8a6a45;--section-tint:#f7f0e8}
#catnat{--section-accent:#a66b2a;--section-tint:#fff3e2}
#eau-rivieres{--section-accent:#2d819e;--section-tint:#e7f5fa}
#soleil,#solaire,#pvgis{--section-accent:#cc8b24;--section-tint:#fff5df}
#urbanisme,#urbanisme-servitudes,#urbanisme-contexte{--section-accent:#715fa8;--section-tint:#f0edfa}
#climat-analyse{--section-accent:#d17a27;--section-tint:#fff2e3}
#drias-brut{--section-accent:#657b74;--section-tint:#edf2f0}
#documents{--section-accent:#5e7797;--section-tint:#edf2f8}
#photos{--section-accent:#9a5d7d;--section-tint:#faedf4}
#rapports{--section-accent:#3d7867;--section-tint:#e8f3ef}

.property-detail-grid .history-row{border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin-top:10px;background:linear-gradient(135deg,#fff,#f7fbf9)}
.property-detail-grid .history-score{display:grid;place-items:center;min-width:68px;height:48px;padding:0 10px;border-radius:13px;background:var(--mint);color:var(--green-dark)}
.property-detail-grid .context-card,.property-detail-grid .water-card,.property-detail-grid .geo-highlight,.property-detail-grid .recommendation{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.property-detail-grid .context-card:hover,.property-detail-grid .water-card:hover,.property-detail-grid .geo-highlight:hover,.property-detail-grid .recommendation:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(20,53,44,.08);border-color:#bdd2c9}

@media(max-width:1100px){
  .property-hero-visual .container{min-height:260px!important}
  .property-hero-visual h1{max-width:470px;font-size:clamp(2.35rem,4.7vw,3.2rem)}
  .property-hero-visual .address-chip{max-width:min(100%,470px)!important}
}
@media(max-width:900px){
  .property-hero-visual{padding:30px 0 28px!important}
  .property-hero-visual .container{min-height:0!important}
  .property-detail-grid .property-tabs{position:sticky;top:78px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:10px}
  .property-detail-grid .property-tabs a{white-space:nowrap}
}
@media(max-width:700px){
  .property-hero-visual h1{width:100%;max-width:none;font-size:clamp(2.15rem,10vw,3rem)}
  .property-title-illustration{width:50px;height:50px;flex-basis:50px;border-radius:15px}
  .property-title-illustration svg{width:29px;height:29px}
  .property-detail-grid>.panel{scroll-margin-top:135px}
  .property-detail-grid>.panel::after{width:125px;height:125px;right:-42px;top:-54px}
}
@media(max-width:520px){
  .property-hero-visual{padding:26px 0 24px!important}
  .property-hero-visual h1{align-items:flex-start;gap:11px;font-size:2.25rem}
  .property-hero-visual .address-chip{border-radius:16px}
  .property-hero-visual .dashboard-actions{display:grid!important;grid-template-columns:1fr;width:100%!important}
  .property-hero-visual .dashboard-actions form,.property-hero-visual .dashboard-actions .btn{width:100%!important}
  .property-heading-icon{width:38px;height:38px;flex-basis:38px;border-radius:12px}
  .property-heading-icon svg{width:21px;height:21px}
  .property-detail-grid>.panel h2.property-heading-with-icon{font-size:1.45rem}
}
@media(prefers-reduced-motion:reduce){
  .property-detail-grid .property-tabs a,.property-detail-grid .context-card,.property-detail-grid .water-card,.property-detail-grid .geo-highlight,.property-detail-grid .recommendation{transition:none}
}
