/*
 Theme Name: Astra Child
 Theme URI: https://wpastra.com/
 Description: Thème enfant Astra pour Somme Immobilier
 Author: Mathieu
 Template: astra
 Version: 1.0.0
*/

/* Import de la police pour les DPE / GES */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700;900&display=swap');

/* ====== FICHE BIEN ====== */

/* Conteneur Astra élargi UNIQUEMENT sur les fiches biens */
body.single-bien .ast-container{
    max-width:1600px !important;
    padding-left:40px;
    padding-right:40px;
}

/* Wrapper interne de la fiche */
.single-bien-wrap{
    max-width:1600px;
    margin:40px auto 80px;
    padding:0;
    font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.single-bien__topbar{
    margin-bottom:22px;
}
.single-bien__back{
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.16em;
    text-decoration:none;
    color:#111827;
}
.single-bien__back:hover{
    text-decoration:underline;
}

/* HERO */

.single-bien__hero{
    margin-top:10px;
    margin-bottom:40px;
}

/* Colonne photo dominante + texte à droite */
.single-bien__hero-layout{
    display:grid;
    grid-template-columns:minmax(0,3.3fr) minmax(0,1.2fr); /* ≈ 73% / 27% */
    gap:64px;
    align-items:flex-start;
}

.single-bien__hero-media{
    min-width:0;
}

/* ===== COUP DE HACHETTE SUR LES IMAGES DOUBLONS ===== */

/* Masquer UNIQUEMENT les images automatiques WordPress (et ne plus toucher aux autres images) */
.single-bien .wp-block-image img,
.single-bien .wp-block-gallery img,
.single-bien__description img{
    display:none !important;
}

.single-bien__gallery-main img,
.single-bien__thumb img{
    display:block !important;
}

.single-bien .wp-block-gallery,
.single-bien .wp-block-image,
.single-bien__description figure{
    display:none !important;
}

/* Image simple (fallback) */

.single-bien__image{
    position:relative;
    overflow:hidden;
}
.single-bien__image img{
    width:100%;
    height:auto;
    object-fit:cover;
}
.single-bien__image--empty{
    background:#f4f6fa;
    min-height:260px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#7a8190;
    font-size:14px;
}

/* ====== GALERIE PHOTO ====== */

.single-bien__gallery{
    position:relative;
}

/* Grande image façon bannière luxe mais moins haute */
body.single-bien .single-bien__gallery-main{
    position:relative;
    overflow:hidden;
    padding-top:60% !important;   /* hauteur de la photo principale */
    background:#f4f6fa;
}

/* On enlève toute limite de hauteur éventuelle */
body.single-bien .single-bien__gallery-main img{
    position:absolute;
    inset:0;
    width:100% !important;
    height:100% !important;
    max-height:none !important;
    object-fit:cover;
}

/* Bandeau de vignettes */
.single-bien__gallery-thumbs{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:8px;
    margin-top:10px;
    overflow-x:auto;
    padding-bottom:4px;
}

.single-bien__thumb{
    border:none;
    padding:0;
    background:transparent;
    overflow:hidden;
    cursor:pointer;
    flex:0 0 80px !important;
    max-width:80px !important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.single-bien__thumb img{
    width:80px !important;
    height:60px !important;
    object-fit:cover;
    opacity:.7;
    transition:opacity .2s ease, transform .2s ease;
}

.single-bien__thumb.is-active img{
    opacity:1;
    transform:scale(1.02);
}

/* Angles des photos (grande + fallback + vignettes) */
.single-bien__gallery-main,
.single-bien__image,
.single-bien__image--empty,
.single-bien__thumb,
.single-bien__gallery-main img,
.single-bien__image img,
.single-bien__thumb img{
    border-radius:10px;
}

/* résumé à droite */

.single-bien__hero-content{
    min-width:0;
    display:flex;
    flex-direction:column;
    height:100%;
}

.single-bien__hero-topline{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.16em;
    color:#6b7280;
    margin-bottom:10px;
}
.single-bien__country{
    font-weight:500;
}
.single-bien__ref{
    font-weight:500;
}
.single-bien__hero-location{
    margin-bottom:6px;
}
.single-bien__city-hero{
    font-size:16px;
    font-weight:600;
}
.single-bien__hero-type{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.16em;
    color:#6b7280;
    margin-bottom:6px;
}
.single-bien__hero-title{
    margin:4px 0 14px;
    font-size:28px;
    font-weight:300;
    line-height:1.3;
}
.single-bien__hero-meta{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    font-size:13px;
    color:#4b5563;
    margin-bottom:18px;
}
.single-bien__hero-meta span{
    position:relative;
}
.single-bien__hero-meta span + span::before{
    content:"";
    position:absolute;
    left:-9px;
    top:50%;
    width:2px;
    height:2px;
    border-radius:999px;
    background:#9ca3af;
    transform:translateY(-50%);
}
.single-bien__hero-price{
    font-size:26px;
    font-weight:700;
    margin-bottom:18px;
}

/* CTA dans le hero */

.single-bien__hero-cta{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    align-items:center;
}
.single-bien__btn{
    display:inline-block;
    background:#0b1a34;
    color:#fff;
    border-radius:999px;
    padding:11px 22px;
    font-size:13px;
    text-decoration:none;
    text-transform:uppercase;
    letter-spacing:.14em;
}
.single-bien__btn:hover{
    background:#111827;
}
.single-bien__link-ext{
    font-size:13px;
    text-decoration:none;
    color:#111827;
}
.single-bien__link-ext:hover{
    text-decoration:underline;
}

/* SECTION PRINCIPALE SPLIT (description + contact) */

.single-bien__section{
    margin-bottom:40px;
}
.single-bien__section-inner{
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(0,0.9fr);
    gap:42px;
}

/* Colonne de droite : empile les cartes (simulateur + contact) */
.single-bien__col-right{
    display:flex;
    flex-direction:column;
    gap:24px;              /* espace entre simulateur et bloc contact */
}

.single-bien__col-left,
.single-bien__col-right{
    min-width:0;
}

/* Blocs gauche */

.single-bien__col-right {
    margin-top: 10px !important;
    padding-top: 0 !important;
}

.single-bien__col-left > .single-bien__block:first-child {
    margin-top: 0 !important;
}

.single-bien__section--split {
    align-items: flex-start;
}

.single-bien__block{
    margin-bottom:32px;
}
.single-bien__block-title{
    font-size:20px;
    margin:0 0 14px;
    font-weight:500;
}
.single-bien__description{
    font-size:15px;
    line-height:1.7;
}
.single-bien__description p{
    margin-bottom:10px;
}

/* tableau de caractéristiques */

.single-bien__table{
    margin:0;
    padding:0;
}
.single-bien__table-row{
    display:grid;
    grid-template-columns:160px minmax(0,1fr);
    padding:10px 0;
    border-bottom:1px solid #e5e7eb;
}
.single-bien__table-row:first-child{
    border-top:1px solid #e5e7eb;
}
.single-bien__table-row dt{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:#6b7280;
}
.single-bien__table-row dd{
    margin:0;
    font-size:14px;
    color:#111827;
}

/* Carte agent / contact à droite */

.single-bien__agent-card{
    position:relative;
    padding:26px 24px 24px;
    border-radius:18px;
    background:#fdf2f2;
    border:1px solid #fee2e2;
}
.single-bien__agent-avatar{
    width:70px;
    height:70px;
    border-radius:999px;
    background:#0b1a34;
    margin-bottom:10px;
}
.single-bien__agent-name{
    font-size:16px;
    font-weight:600;
}
.single-bien__agent-phone{
    font-size:14px;
    margin-bottom:10px;
}
.single-bien__agent-intro{
    font-size:14px;
    line-height:1.6;
    margin-bottom:18px;
}
.single-bien__agent-btn{
    display:inline-block;
    background:#0b1a34;
    color:#fff;
    border-radius:999px;
    padding:9px 18px;
    font-size:13px;
    text-decoration:none;
    text-transform:uppercase;
    letter-spacing:.14em;
}
.single-bien__agent-btn:hover{
    background:#111827;
}
.single-bien__agent-note{
    font-size:12px;
    color:#4b5563;
    margin-top:14px;
}

/* Responsive */

@media (max-width:1024px){
    body.single-bien .ast-container{
        max-width:100% !important;
        padding-left:20px;
        padding-right:20px;
    }
    .single-bien__hero-layout{
        grid-template-columns:1fr;
        gap:28px;
    }
    .single-bien__section-inner{
        grid-template-columns:1fr;
        gap:32px;
    }
}

@media (max-width:640px){
    .single-bien-wrap{
        margin:30px auto 60px;
        padding:0 8px;
    }
    .single-bien__hero-title{
        font-size:22px;
    }
    .single-bien__hero-price{
        font-size:22px;
    }
    .single-bien__hero-layout{
        gap:24px;
    }
}

/* ===========================================================
   DPE / GES – style "flèches" façon graphique officiel
   =========================================================== */

.single-bien__dpe-ges{
  margin-top:18px;
}

.single-bien__dpe-ges-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:40px;
  align-items:flex-start;
}

/* Colonnes DPE / GES */
.dpe-block,
.ges-block{
  font-size:14px;
}

.dpe-title,
.erp-title{
  font-size:18px;
  margin:0 0 12px;
  font-weight:600;
}

/* Liste de flèches */
.dpe-scale,
.ges-scale{
  list-style:none;
  margin:10px 0 0;
  padding:0;
}

.dpe-row{
  position:relative;
  margin-bottom:6px;
}

/* La flèche elle-même */
.dpe-arrow{
  position:relative;
  display:flex;
  align-items:center;
  height:32px;
  padding:0 42px 0 46px; /* espace pour la lettre */
  border-radius:4px 0 0 4px;
  color:#fff;
  font-weight:600;
  font-size:13px;
  box-sizing:border-box;
}

/* Pointe de la flèche */
.dpe-arrow::after{
  content:"";
  position:absolute;
  top:0;
  right:-20px;
  border-top:16px solid transparent;
  border-bottom:16px solid transparent;
  border-left:20px solid transparent; /* couleur sur chaque classe */
}

/* Lettre dans un rond au début de la flèche */
.dpe-arrow::before{
  content:attr(data-letter);
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  width:22px;
  height:22px;
  border-radius:999px;
  background:#fff;
  color:#111827;
  font-size:12px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Texte des plages (ex: "251 à 330 kWh/m²/an") */
.dpe-arrow span{
  white-space:nowrap;
}

/* Largeur des flèches (A→G de plus en plus long) */
.dpe-row--A{ width:50%; }
.dpe-row--B{ width:60%; }
.dpe-row--C{ width:70%; }
.dpe-row--D{ width:80%; }
.dpe-row--E{ width:88%; }
.dpe-row--F{ width:95%; }
.dpe-row--G{ width:100%; }

/* Palette DPE vert → rouge */
.dpe-row--A .dpe-arrow{ background:#008048; }
.dpe-row--A .dpe-arrow::after{ border-left-color:#008048; }

.dpe-row--B .dpe-arrow{ background:#36a65b; }
.dpe-row--B .dpe-arrow::after{ border-left-color:#36a65b; }

.dpe-row--C .dpe-arrow{ background:#9acb3a; color:#111827; }
.dpe-row--C .dpe-arrow::after{ border-left-color:#9acb3a; }

.dpe-row--D .dpe-arrow{ background:#ffd800; color:#111827; }
.dpe-row--D .dpe-arrow::after{ border-left-color:#ffd800; }

.dpe-row--E .dpe-arrow{ background:#f6a800; }
.dpe-row--E .dpe-arrow::after{ border-left-color:#f6a800; }

.dpe-row--F .dpe-arrow{ background:#f26c23; }
.dpe-row--F .dpe-arrow::after{ border-left-color:#f26c23; }

.dpe-row--G .dpe-arrow{ background:#b82010; }
.dpe-row--G .dpe-arrow::after{ border-left-color:#b82010; }

/* État "actif" = classe réelle DPE (contour + surépaisseur) */
.dpe-scale--A .dpe-row--A,
.dpe-scale--B .dpe-row--B,
.dpe-scale--C .dpe-row--C,
.dpe-scale--D .dpe-row--D,
.dpe-scale--E .dpe-row--E,
.dpe-scale--F .dpe-row--F,
.dpe-scale--G .dpe-row--G{
  filter:drop-shadow(0 0 0 3px #e5e7eb);
}

/* On assombrit légèrement les flèches non actives */
.dpe-scale--A .dpe-row:not(.dpe-row--A),
.dpe-scale--B .dpe-row:not(.dpe-row--B),
.dpe-scale--C .dpe-row:not(.dpe-row--C),
.dpe-scale--D .dpe-row:not(.dpe-row--D),
.dpe-scale--E .dpe-row:not(.dpe-row--E),
.dpe-scale--F .dpe-row:not(.dpe-row--F),
.dpe-scale--G .dpe-row:not(.dpe-row--G){
  opacity:.45;
}

/* GES – même principe mais en dégradé de bleu */
.ges-scale .dpe-row--A .dpe-arrow{ background:#b8e3ff; color:#111827; }
.ges-scale .dpe-row--A .dpe-arrow::after{ border-left-color:#b8e3ff; }

.ges-scale .dpe-row--B .dpe-arrow{ background:#98ccff; color:#111827; }
.ges-scale .dpe-row--B .dpe-arrow::after{ border-left-color:#98ccff; }

.ges-scale .dpe-row--C .dpe-arrow{ background:#7fb2f5; }
.ges-scale .dpe-row--C .dpe-arrow::after{ border-left-color:#7fb2f5; }

.ges-scale .dpe-row--D .dpe-arrow{ background:#5f91e0; }
.ges-scale .dpe-row--D .dpe-arrow::after{ border-left-color:#5f91e0; }

.ges-scale .dpe-row--E .dpe-arrow{ background:#456fcb; }
.ges-scale .dpe-row--E .dpe-arrow::after{ border-left-color:#456fcb; }

.ges-scale .dpe-row--F .dpe-arrow{ background:#304fb6; }
.ges-scale .dpe-row--F .dpe-arrow::after{ border-left-color:#304fb6; }

.ges-scale .dpe-row--G .dpe-arrow{ background:#1e347f; }
.ges-scale .dpe-row--G .dpe-arrow::after{ border-left-color:#1e347f; }

.dpe-value{
  margin-top:10px;
  font-size:14px;
  color:#111827;
}

/* Responsive */
@media (max-width:640px){
  .single-bien__dpe-ges-grid{
    gap:24px;
  }
}

/* ===========================================================
   DPE / GES – ancien style .graph-energy (non utilisé ici)
   =========================================================== */

.graph-energy {
  padding:16px;
  margin:16px 0;
  border:1px solid #dedede;
  font-family:'Roboto Condensed', -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;
  color:#291b35;
}
.graph-energy__title{
  display:block;
  margin-bottom:8px;
  font-weight:700;
  font-size:16px;
}
.graph-energy__container{}
.graph-energy__scale{
  display:inline-block;
  margin-top:6px;
  margin-bottom:6px;
  margin-left:134px;
  font-size:12px;
  font-weight:700;
}
.graph-energy__scale:first-child{
  color:#00a774;
}
.graph-energy__scale:last-child{
  color:#ec0118;
}

.graph-energy__bars{
  position:relative;
}

.graph-energy__item{
  display:flex;
  margin-bottom:2px;
}

/* largeur + couleur DPE (A→G) */
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(1){width:70%;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(2){width:75%;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(3){width:80%;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(4){width:85%;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(5){width:90%;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(6){width:95%;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(7){width:100%;}

.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(1) .graph-energy__bar{background:#00a774;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(2) .graph-energy__bar{background:#00bb54;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(3) .graph-energy__bar{background:#4ac57b;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(4) .graph-energy__bar{background:#fdeb00;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(5) .graph-energy__bar{background:#ffbc00;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(6) .graph-energy__bar{background:#ff882f;}
.graph-energy:not(.graph-energy--ges) .graph-energy__item:nth-child(7) .graph-energy__bar{background:#ec0118;}

/* largeur + couleur GES (A→G) */
.graph-energy--ges .graph-energy__item:nth-child(1){width:70%;}
.graph-energy--ges .graph-energy__item:nth-child(2){width:75%;}
.graph-energy--ges .graph-energy__item:nth-child(3){width:80%;}
.graph-energy--ges .graph-energy__item:nth-child(4){width:85%;}
.graph-energy--ges .graph-energy__item:nth-child(5){width:90%;}
.graph-energy--ges .graph-energy__item:nth-child(6){width:95%;}
.graph-energy--ges .graph-energy__item:nth-child(7){width:100%;}

.graph-energy--ges .graph-energy__item:nth-child(1) .graph-energy__bar{background:#a3dbfc;}
.graph-energy--ges .graph-energy__item:nth-child(2) .graph-energy__bar{background:#8ab5d2;}
.graph-energy--ges .graph-energy__item:nth-child(3) .graph-energy__bar{background:#7692b1;}
.graph-energy--ges .graph-energy__item:nth-child(4) .graph-energy__bar{background:#5e708d;}
.graph-energy--ges .graph-energy__item:nth-child(5) .graph-energy__bar{background:#4d5272;}
.graph-energy--ges .graph-energy__item:nth-child(6) .graph-energy__bar{background:#393550;}
.graph-energy--ges .graph-energy__item:nth-child(7) .graph-energy__bar{background:#291b35;}

.graph-energy__details{
  display:flex;
  flex:0 0 134px;
}
.graph-energy__data{
  width:55%;
  position:relative;
  padding:8px 2px;
  text-align:center;
}
.graph-energy__data__title{
  position:absolute;
  top:-28px;
  left:0;
  font-size:10px;
  line-height:1;
  text-align:left;
}
.graph-energy__data__value{
  font-size:26px;
  font-weight:900;
  line-height:1;
}
.graph-energy__data__unit{
  font-size:9px;
}
.graph-energy__data + .graph-energy__data{
  width:45%;
  border-left:2px solid #291b35;
}
.graph-energy__data + .graph-energy__data .graph-energy__data__title{
  left:8px;
  top:-18px;
}

.graph-energy__bar{
  position:relative;
  flex:1 0 auto;
  overflow:hidden;
}
.graph-energy__bar__endline{
  position:absolute;
  top:0;
  right:0;
  width:20px;
  height:50%;
  overflow:hidden;
}
.graph-energy__bar__endline::before{
  content:'';
  position:absolute;
  top:-10px;
  right:2px;
  width:100%;
  height:100px;
  transform-origin:100% 0;
  transform:rotateZ(-30deg);
  background:#fff;
}
.graph-energy__bar__endline--bottom{
  top:auto;
  bottom:0;
}
.graph-energy__bar__endline--bottom::before{
  top:auto;
  right:2px;
  bottom:-5px;
  transform-origin:0 100%;
  transform:rotateZ(30deg);
}

.graph-energy__letter{
  display:flex;
  align-items:center;
  height:100%;
  padding-left:8px;
  font-size:22px;
  font-weight:900;
  color:#fff;
}

/* Item actif – DPE */
.graph-energy__item--active .graph-energy__details{
  box-shadow:inset 0 0 0 2px #291b35;
}
.graph-energy__item--active .graph-energy__letter{
  position:relative;
  font-size:38px;
  box-shadow:inset -2px 0 0 2px #291b35;
  background-color:#291b35;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:#fff;
  -webkit-text-stroke:4px transparent;
}
.graph-energy__item--active .graph-energy__bar__endline::before{
  border-left:2px solid #291b35;
}

/* Alerte "Passoire" */
.graph-energy__warning{
  position:absolute;
  bottom:-1px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  width:134px;
  height:56px;
  padding-right:24px;
  font-size:11px;
  color:rgba(41,27,53,0.6);
}
.graph-energy__warning__brackets{
  position:absolute;
  right:12px;
  width:1px;
  height:100%;
  background:#bbb;
}
.graph-energy__warning__brackets::before,
.graph-energy__warning__brackets::after{
  content:'';
  position:absolute;
  left:100%;
  width:4px;
  height:1px;
  background:#bbb;
}
.graph-energy__warning__brackets::before{ top:0; }
.graph-energy__warning__brackets::after{ bottom:0; }

/* si l’item actif est F ou G on masque le warning (comme le SCSS d’origine) */
.graph-energy__item--active + .graph-energy__warning,
.graph-energy__item--active + .graph-energy__item + .graph-energy__warning{
  display:none;
}

/* Variante GES */
.graph-energy--ges .graph-energy__scale{
  margin-left:2px;
}
.graph-energy--ges .graph-energy__scale:first-child{
  color:#8ab5d2;
}
.graph-energy--ges .graph-energy__scale:last-child{
  color:#291b35;
}
.graph-energy--ges .graph-energy__bar{
  border-top-right-radius:40px;
  border-bottom-right-radius:40px;
}
.graph-energy--ges .graph-energy__details{
  align-items:center;
  order:1;
}
.graph-energy--ges .graph-energy__data{
  width:100%;
  text-align:left;
  padding-top:6px;
  padding-bottom:0;
}
.graph-energy--ges .graph-energy__data__title{
  top:-12px;
}
.graph-energy--ges .graph-energy__item--active .graph-energy__bar{
  border:2px solid #291b35;
}
.graph-energy--ges .graph-energy__item--active .graph-energy__details{
  position:relative;
  box-shadow:none;
}
.graph-energy--ges .graph-energy__item--active .graph-energy__details::before{
  content:'';
  margin-left:8px;
  margin-right:8px;
  margin-top:-1px;
  width:32px;
  height:1px;
  background:#291b35;
}
.graph-energy--ges .graph-energy__item--active .graph-energy__letter{
  box-shadow:none;
}

/* petit ajustement dans ta mise en page globale */
.single-bien__dpe-ges{
  margin-top:24px;
}
.single-bien__dpe-ges-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:40px;
}
@media (max-width:768px){
  .single-bien__dpe-ges-grid{ gap:24px; }
}

/* ===========================================================
   NOUVEAU STYLE POUR TES CARTES DPE / GES (.energy-panel)
   =========================================================== */

.single-bien__dpe-ges{
  font-family:'Roboto Condensed', -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;
  color:#111827;
}

/* Carte blanche */
.energy-panel{
  background:#ffffff;
  border-radius:18px;
  border:1px solid #e5e7eb;
  padding:18px 20px 16px;
  box-shadow:0 14px 35px rgba(15,23,42,0.12);
}

.energy-panel-title{
  font-size:14px;
  font-weight:900;   /* TITRE BIEN GRAS */
  letter-spacing:.02em;
  text-transform:none;
  margin:0 0 12px;
  color: #000000;
}

/* Encadré valeur / classe */
.energy-score-box{
  display:flex;
  align-items:flex-end;
  gap:8px;
  margin-bottom:10px;
}
.energy-score-value{
  font-size:28px;
  font-weight:900;
  line-height:1;
}
.energy-score-unit{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#6b7280;
  margin-bottom:3px;
}
.energy-score-class{
  margin-left:auto;
  font-size:22px;
  font-weight:900;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #111827;
  min-width:44px;
  text-align:center;
}

/* petit texte sous le bloc valeur */
.energy-panel-sub{
  margin:0 0 10px;
  font-size:11px;
  color:#6b7280;
}

/* Echelle A→G */

.energy-scale{
  list-style:none;
  margin:0 0 8px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.energy-step{
  display:block;
}

.energy-step-shape{
  display:flex;
  align-items:center;
  gap:10px;
  padding:4px 16px 4px 12px;
  min-height:26px;
  /* plus de pointe "crayon" */
  border-radius:18px 999px 999px 18px;  /* gauche arrondi léger, droite bien arrondie */
  color:#111827;
  font-size:11px;
  font-weight:600;
}

/* Lettre et plage */
.energy-step-letter{
  font-size:14px;
  font-weight:900;
  min-width:14px;
}
.energy-step-range{
  font-size:11px;
}

/* Couleurs officielles DPE (A→G) */
.energy-scale--dpe .energy-step--A .energy-step-shape{ background:#00a774; color:#fff; }
.energy-scale--dpe .energy-step--B .energy-step-shape{ background:#00bb54; color:#fff; }
.energy-scale--dpe .energy-step--C .energy-step-shape{ background:#4ac57b; color:#111827; }
.energy-scale--dpe .energy-step--D .energy-step-shape{ background:#fdeb00; color:#111827; }
.energy-scale--dpe .energy-step--E .energy-step-shape{ background:#ffbc00; color:#111827; }
.energy-scale--dpe .energy-step--F .energy-step-shape{ background:#ff882f; color:#111827; }
.energy-scale--dpe .energy-step--G .energy-step-shape{ background:#ec0118; color:#fff; }

/* Couleurs GES (A→G) */
.energy-scale--ges .energy-step--A .energy-step-shape{ background:#a3dbfc; color:#111827; }
.energy-scale--ges .energy-step--B .energy-step-shape{ background:#8ab5d2; color:#111827; }
.energy-scale--ges .energy-step--C .energy-step-shape{ background:#7692b1; color:#ffffff; }
.energy-scale--ges .energy-step--D .energy-step-shape{ background:#5e708d; color:#ffffff; }
.energy-scale--ges .energy-step--E .energy-step-shape{ background:#4d5272; color:#ffffff; }
.energy-scale--ges .energy-step--F .energy-step-shape{ background:#393550; color:#ffffff; }
.energy-scale--ges .energy-step--G .energy-step-shape{ background:#291b35; color:#ffffff; }

/* Mise en avant de la classe active (la lettre de l’annonce) */
.energy-scale--A .energy-step--A .energy-step-shape,
.energy-scale--B .energy-step--B .energy-step-shape,
.energy-scale--C .energy-step--C .energy-step-shape,
.energy-scale--D .energy-step--D .energy-step-shape,
.energy-scale--E .energy-step--E .energy-step-shape,
.energy-scale--F .energy-step--F .energy-step-shape,
.energy-scale--G .energy-step--G .energy-step-shape {
  box-shadow: none;       /* enlève le contour noir */
  border: none;           /* si jamais un border revient un jour */
  transform: translateX(4px); /* tu gardes le léger décalage si tu veux */
}

/* Longueur des barres DPE : A plus courte, G la plus longue */
.energy-scale--dpe .energy-step--A{ width:55%; }
.energy-scale--dpe .energy-step--B{ width:63%; }
.energy-scale--dpe .energy-step--C{ width:71%; }
.energy-scale--dpe .energy-step--D{ width:79%; }
.energy-scale--dpe .energy-step--E{ width:87%; }
.energy-scale--dpe .energy-step--F{ width:95%; }
.energy-scale--dpe .energy-step--G{ width:100%; }

/* Longueur des barres GES : même logique */
.energy-scale--ges .energy-step--A{ width:55%; }
.energy-scale--ges .energy-step--B{ width:63%; }
.energy-scale--ges .energy-step--C{ width:71%; }
.energy-scale--ges .energy-step--D{ width:79%; }
.energy-scale--ges .energy-step--E{ width:87%; }
.energy-scale--ges .energy-step--F{ width:95%; }
.energy-scale--ges .energy-step--G{ width:100%; }

/* Lettres & valeurs NON sélectionnées (version douce) */
.energy-scale .energy-step-letter,
.energy-scale .energy-step-range {
  opacity: .55; /* lisible, mais en retrait */
  transition: opacity .25s ease;
}

/* Lettre + range active = à pleine puissance */
.energy-scale--A .energy-step--A .energy-step-letter,
.energy-scale--A .energy-step--A .energy-step-range,
.energy-scale--B .energy-step--B .energy-step-letter,
.energy-scale--B .energy-step--B .energy-step-range,
.energy-scale--C .energy-step--C .energy-step-letter,
.energy-scale--C .energy-step--C .energy-step-range,
.energy-scale--D .energy-step--D .energy-step-letter,
.energy-scale--D .energy-step--D .energy-step-range,
.energy-scale--E .energy-step--E .energy-step-letter,
.energy-scale--E .energy-step--E .energy-step-range,
.energy-scale--F .energy-step--F .energy-step-letter,
.energy-scale--F .energy-step--F .energy-step-range,
.energy-scale--G .energy-step--G .energy-step-letter,
.energy-scale--G .energy-step--G .energy-step-range {
  opacity: 1;
}

/* Effet spotlight sur les barres (version premium améliorée) */
.energy-scale .energy-step {
  opacity: .60;                       /* un peu plus clair pour les non-actives */
  filter: saturate(.85) brightness(1.02);
  transition: opacity .25s ease, filter .25s ease;
}

/* Barre active = bien visible, pleine couleur */
.energy-scale--A .energy-step--A,
.energy-scale--B .energy-step--B,
.energy-scale--C .energy-step--C,
.energy-scale--D .energy-step--D,
.energy-scale--E .energy-step--E,
.energy-scale--F .energy-step--F,
.energy-scale--G .energy-step--G {
  opacity: 1;
  filter: none;
}

/* Barre active un peu plus épaisse (effet premium) */
.energy-scale .energy-step-shape {
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Barre active : légère avancée + ombre douce, sans contour noir */
.energy-scale--A .energy-step--A .energy-step-shape,
.energy-scale--B .energy-step--B .energy-step-shape,
.energy-scale--C .energy-step--C .energy-step-shape,
.energy-scale--D .energy-step--D .energy-step-shape,
.energy-scale--E .energy-step--E .energy-step-shape,
.energy-scale--F .energy-step--F .energy-step-shape,
.energy-scale--G .energy-step--G .energy-step-shape{
  transform: translateX(4px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18); /* ombre floue, pas de bord net */
  border-radius: 999px; /* garantit le bout bien arrondi */
}

/* Légendes bas de carte + valeurs texte */
.energy-label-bottom,
.energy-label-bottom--ges{
  font-size:11px;
  color:#4b5563;
  margin:4px 0 0;
}

.dpe-value{
  font-size:13px;      /* un peu plus gros */
  color:#374151;       /* légèrement plus foncé, plus lisible */
  margin:6px 0 0;
}

.dpe-value {
  text-align: center;     /* centre les lignes sous les cartes */
  font-size: 13px;
  margin-top: 10px;
}

.dpe-value strong {
  font-weight: 700;
}

/* Pastilles colorées sous les graphiques DPE / GES */
.dpe-value--main {
  text-align: center;
  margin-top: 10px;
}

.dpe-class-highlight,
.ges-class-highlight {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* mêmes couleurs que les barres DPE */
.dpe-class-highlight--A { background:#00a774; color:#ffffff; }
.dpe-class-highlight--B { background:#00bb54; color:#ffffff; }
.dpe-class-highlight--C { background:#4ac57b; color:#111827; }
.dpe-class-highlight--D { background:#fdeb00; color:#111827; }
.dpe-class-highlight--E { background:#ffbc00; color:#111827; }
.dpe-class-highlight--F { background:#ff882f; color:#111827; }
.dpe-class-highlight--G { background:#ec0118; color:#ffffff; }

/* mêmes couleurs que les barres GES */
.ges-class-highlight--A { background:#a3dbfc; color:#111827; }
.ges-class-highlight--B { background:#8ab5d2; color:#111827; }
.ges-class-highlight--C { background:#7692b1; color:#ffffff; }
.ges-class-highlight--D { background:#5e708d; color:#ffffff; }
.ges-class-highlight--E { background:#4d5272; color:#ffffff; }
.ges-class-highlight--F { background:#393550; color:#ffffff; }
.ges-class-highlight--G { background:#291b35; color:#ffffff; }

/* Responsive léger */
@media (max-width:640px){
  .energy-panel{
    padding:14px 14px 12px;
    border-radius:14px;
  }
  .energy-score-value{
    font-size:24px;
  }
  .energy-score-class{
    font-size:18px;
    padding:3px 8px;
  }
  .energy-step-shape{
    min-height:24px;
    font-size:10px;
  }
}

.dpe-inline {
  text-align: center;
  font-size: 15px;          /* plus grand */
  line-height: 1.7;         /* un peu plus aéré */
  margin-top: 16px;
  max-width: 720px;         /* largeur proche des 2 cartes */
  margin-left: auto;        /* centre le bloc */
  margin-right: auto;
}

.dpe-inline strong {
  font-weight: 700;
}

.dpe-georisques {
  text-align: center;
  font-size: 15px;
  color: #6b7280; /* gris doux, comme les sous-titres */
  margin-top: 6px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.dpe-georisques a {
  color: #374151; /* gris foncé harmonisé */
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width:640px){
  .dpe-georisques {
    font-size: 12px;
    padding: 0 12px;
  }
}

/* ====== MONTANTS ====== */

.single-bien__montants{
  margin-top:32px;
}

.montants-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px 24px;
  margin-top:12px;
}

.montants-item{
  padding:14px 16px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
}

.montants-label{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#6b7280;
  margin-bottom:4px;
}

.montants-value{
  font-size:16px;
  font-weight:600;
  color:#111827;
}

.montants-note{
  display:block;
  font-size:12px;
  color:#4b5563;
  margin-top:2px;
}

.montants-mention{
  margin-top:10px;
  font-size:13px;
  color:#4b5563;
}

/* ====== VISITE VIRTUELLE ====== */

.single-bien__vt-block{
  margin-top:32px;
}

.single-bien__vt-title{
  font-size:20px;
  font-weight:600;
  margin-bottom:12px;
}

.single-bien__vt-wrapper{
  position:relative;
  width:100%;
  max-width:100%;
  border-radius:14px;
  overflow:hidden;
  background:#000;
}

/* ratio 16/9 responsive */
.single-bien__vt-inner{
  position:relative;
  padding-top:56.25%;
}

.single-bien__vt-inner iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* ===== Fond derrière les titres ===== */
.single-bien__block-title {
  background: #161c32;
  display: block;
  width: 100%;
  padding: 10px 16px;
  margin: 0 0 20px 0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

/* Sous-titres des étages (Rez-de-chaussée, 1er étage, etc.) */
.single-bien__subheading{
  text-align:center;
  background:#f2f4f7;
  color:#1f2937;
  padding:8px 24px;
  margin:22px auto 16px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  max-width:360px;
}

/* Taille de texte plus fine pour le tableau des surfaces */
.single-bien__table--surfaces dt{
  font-size:11px;
}

.single-bien__table--surfaces dd{
  font-size:13px;
}

/* --- Surfaces : meilleure répartition colonnes (sans couper les mots) --- */
.single-bien__table--surfaces {
  display: flex;
  flex-direction: column;
}

.single-bien__table--surfaces .single-bien__table-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
}

/* Colonne gauche = nom de la pièce */
.single-bien__table--surfaces dt {
  flex: 0 1 auto;
  min-width: 200px;
  padding-right: 24px;
  font-size: 11px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Colonne droite = surface, bien calée à droite */
.single-bien__table--surfaces dd {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 13px;
  text-align: left;
}

/* Simulateur de crédit */

.simu-credit{
  margin-top:20px;
  padding:24px 26px;
  border-radius:18px;
  background:#0F172A;
  border:1px solid #0F172A;
  font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#ffffff;
}

/* Titres */
.simu-credit__title{
  font-size:17px;
  font-weight:600;
  margin:0 0 4px;
  color:#ffffff;
}
.simu-credit__subtitle{
  font-size:12px;
  line-height:1.5;
  margin:0 0 14px;
  color:#E2E8F0;
}

/* Lignes prix + résultats */
.simu-credit__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  padding:10px 0;
  border-top:1px solid rgba(255,255,255,0.12);
}
.simu-credit__row--price{
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.simu-credit__row span{
  color:#ffffff;
}
.simu-credit__row strong{
  font-size:14px;
  color:#ffffff;
}

/* Grille des inputs */
.simu-credit__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 12px;
  margin:14px 0 10px;
}
.simu-credit__field{
  font-size:12px;
}
.simu-credit__field--full{
  grid-column:1 / -1;
}

.simu-credit__field label{
  display:block;
  margin-bottom:4px;
  color:#ffffff;
}

/* Inputs */
.simu-credit__input-wrap{
  position:relative;
}
.simu-credit__input-wrap input{
  width:100%;
  border-radius:999px;
  border:1px solid #CBD5E1;
  padding:7px 36px 7px 10px;
  font-size:13px;
  outline:none;
  background:#ffffff;
  color:#0F172A;
}
.simu-credit__input-wrap input:focus{
  border-color:#ffffff;
}

.simu-credit__suffix{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  font-size:12px;
  color:#475569;
}

/* Résultats */
.simu-credit__results{
  margin:10px 0 14px;
  padding-top:8px;
  border-top:1px dashed rgba(255,255,255,0.3);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.simu-credit__result span{
  display:block;
  font-size:12px;
  color:#E2E8F0;
}
.simu-credit__result strong{
  font-size:14px;
  color:#ffffff;
}

/* Bloc investisseur */
.simu-credit__invest{
  margin-top:8px;
  padding-top:10px;
  border-top:1px dashed rgba(255,255,255,0.3);
}
.simu-credit__invest h4{
  font-size:13px;
  font-weight:600;
  margin:0 0 8px;
  color:#ffffff;
}

.simu-credit__rent{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:8px;
}
.simu-credit__rent span{
  display:block;
  font-size:11px;
  color:#E2E8F0;
}
.simu-credit__rent strong{
  font-size:13px;
  color:#ffffff;
}

/* Disclaimer */
.simu-credit__disclaimer{
  margin-top:10px;
  font-size:10px;
  line-height:1.5;
  color:#E2E8F0;
}

/* TITRES DU SIMULATEUR – PLUS GRANDS + CENTRÉS */
.simu-credit__title,
.simu-credit__invest h4{
  font-size:20px !important;
  font-weight:700 !important;
  text-align:center !important;
  margin-bottom:14px !important;
  color:#ffffff !important;
}

/* Supprime les flèches ↑↓ des inputs type number */
.simu-credit input[type=number]::-webkit-inner-spin-button,
.simu-credit input[type=number]::-webkit-outer-spin-button{
    -webkit-appearance: none;
    margin: 0;
}

.simu-credit input[type=number]{
    -moz-appearance: textfield;
}

  /* ==== Bloc contact agence ==== */
.bloc-contact-bien{
    background:#F3F4F6; /* gris clair - harmonisé */
    border-radius:22px;
    padding:36px 32px;          /* un peu plus haut pour laisser respirer le logo */
    display:flex;
    gap:26px;
    align-items:center;         /* centre verticalement logo + texte */
    margin-top:40px;
    font-family:"Poppins", sans-serif;
}

/* Container carré fixe, qui empêche toute coupe */
.bloc-contact-bien__left{
    width:140px;
    height:140px;
    flex-shrink:0;                 /* 🔥 empêche l’écrasement */
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:visible;              /* important */
}


/* Logo non rogné */
.single-bien .bloc-contact-bien__logo{
    max-width:100%;
    max-height:100%;
    object-fit:contain;            /* 🔥 évite les coupes */
    display:block !important;
    border-radius:0;               /* plus rond → plus de risque de coupe */
}

.bloc-contact-bien__title{
    font-size:18px;
    font-weight:600;
    color:#0F172A;
    margin:0;
}

.bloc-contact-bien__phone{
    font-size:15px;
    color:#0F172A;
    margin-top:4px;
    margin-bottom:14px;
}

.bloc-contact-bien__text{
    color:#374151;
    font-size:15px;
    margin-bottom:20px;
}

.bloc-contact-bien__btn{
    display:inline-block;
    background:#0F172A;
    color:#fff;
    padding:12px 28px;
    border-radius:12px;
    text-decoration:none;
    font-weight:500;
    letter-spacing:0.05em;
    transition:0.25s;
}

.bloc-contact-bien__btn:hover{
    background:#1E293B;
}

.bloc-contact-bien__ref{
    margin-top:16px;
    font-size:13px;
    color:#6B7280;
}

@media (max-width:768px){
    .bloc-contact-bien{
      flex-direction:column;
      padding:20px 18px;
      gap:16px;
      margin-top:24px;
    }
  
    .bloc-contact-bien__left{
      width:120px;
      height:120px;
      flex-shrink:0;
      display:flex;
      align-items:center;
      justify-content:center;
      overflow:visible;
    }
  
    .single-bien .bloc-contact-bien__logo{
      display:block !important;     /* 🔥 très important sur mobile */
      max-width:100%;
      max-height:100%;
      object-fit:contain;
      border-radius:0;
    }
  }

  /* ===================================================================
   OVERRIDES SPÉCIAUX MOBILE (iPhone & co) FICHE BIEN
   =================================================================== */
@media screen and (max-width: 768px){

    /* Titres des blocs (Description, Caractéristiques, Surfaces, etc.) */
    body.single-bien .single-bien__block-title{
      background:#161c32 !important;
      color:#ffffff !important;
      border-radius:8px !important;
      padding:10px 16px !important;
      margin:0 0 20px 0 !important;
    }
  
    /* Sous-titres des étages */
    body.single-bien .single-bien__subheading{
      background:#f2f4f7 !important;
      color:#1f2937 !important;
      padding:8px 24px !important;
      border-radius:8px !important;
      text-align:center !important;
    }
  
    /* Simulateur de crédit : garder le fond bleu nuit */
    body.single-bien .simu-credit{
      background:#0F172A !important;
      border-color:#0F172A !important;
      color:#ffffff !important;
    }
  
    body.single-bien .simu-credit__title,
    body.single-bien .simu-credit__invest h4{
      font-size:20px !important;
      font-weight:700 !important;
      text-align:center !important;
      color:#ffffff !important;
    }
  
    /* Cartes DPE / GES : forcer l’affichage correct */
    body.single-bien .single-bien__dpe-ges{
      display:block !important;
      margin-top:24px !important;
    }
  
    body.single-bien .energy-panel{
      background:#ffffff !important;
      border:1px solid #e5e7eb !important;
      box-shadow:0 14px 35px rgba(15,23,42,0.12) !important;
      border-radius:18px !important;
      padding:14px 14px 12px !important;
    }
  
    body.single-bien .dpe-inline{
      font-size:14px !important;
      padding:0 12px !important;
    }
  
    body.single-bien .dpe-georisques{
      font-size:12px !important;
      padding:0 12px !important;
    }
  }
  body.single-bien .single-bien__btn {
    border-radius: 12px !important;
  }

/* ====== HERO TEXTE À DROITE ====== */

/* Layout général : colonne photo + colonne texte */
.single-bien__hero-layout{
    display:grid;
    grid-template-columns:minmax(0,3.3fr) minmax(0,1.2fr); /* ≈ 73% / 27% */
    gap:64px;
    align-items:stretch; /* les 2 colonnes ont la même hauteur */
}

/* La grande photo impose la hauteur */
.single-bien__hero-media{
    min-width:0;
    display:flex;
    flex-direction:column;
    height:100%;
}

/* Colonne texte = flex colonne sur toute la hauteur */
.single-bien__hero-content{
    min-width:0;
    display:flex;
    flex-direction:column;
    height:100%;
}

/* Ligne du haut : FRANCE / REF */
.bien-topline{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.16em;
    color:#6b7280;
    margin-bottom:10px;
}
.bien-country{ font-weight:500; }
.bien-ref{ font-weight:500; }

/* Bloc du milieu : ville / type / titre / méta */
.bien-city{
    font-size:25px;
    font-weight:600;
    margin-bottom:6px;
}
.bien-type{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.16em;
    color:#6b7280;
    margin-bottom:6px;
}
.bien-title{
    margin:4px 0 14px;
    font-size:28px;
    font-weight:400;
    line-height:1.3;
}
.bien-meta{
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    font-size:13px;
    color:#4b5563;
    margin-bottom:18px;
}
.bien-meta span{
    position:relative;
}
.bien-meta span + span::before{
    content:"";
    position:absolute;
    left:-9px;
    top:50%;
    width:2px;
    height:2px;
    border-radius:999px;
    background:#9ca3af;
    transform:translateY(-50%);
}

/* On descend le bloc “milieu” sous FRANCE / REF */
.bien-middle{
    margin-top:32px;   /* tu peux ajuster à 28 / 36 si tu veux */
    margin-bottom:0;
}

/* Bloc du bas : prix + bouton collés en bas de la colonne */
.bien-bottom{
    margin-top:auto;    /* pousse le bloc en bas */
    margin-bottom:0;
}

/* Prix aligné avec le bas de la grande photo */
.bien-price{
    font-size:40px;
    font-weight:600;
    margin:0 0 10px 0;
    line-height:1.2;
    color:#111827;
}

/* ====== Responsive mobile ====== */
@media (max-width:768px){

    /* Sur mobile, on repasse en flux normal */
    .single-bien__hero-layout{
        grid-template-columns:1fr;
        gap:24px;
        align-items:flex-start;
    }

    .single-bien__hero-content{
        display:block;
        height:auto;
    }

    .bien-middle{
        margin-top:8px;
        margin-bottom:8px;
    }

    .bien-bottom{
        margin-top:0;
    }

    .bien-price{
        font-size:32px;
        margin-top:10px;
    }

    .bien-city{
        font-size:20px;
        font-weight:600;
    }
}
  
  /* ====== FICHE NÉGOCIATEUR ====== */

.single-bien__nego-card{
    background:#F3F4F6;
    border-radius:18px;
    padding:26px 26px;
    display:flex;
    align-items:center;
    gap:22px;
    margin-bottom:24px;
    font-family:"Poppins", sans-serif;
}

.single-bien__nego-left{
    width:90px;
    height:90px;
    border-radius:999px;
    overflow:hidden;
    flex-shrink:0;
    background:#e5e7eb;
}

.single-bien__nego-photo{
    width:100%;
    height:100%;
    object-fit:cover;
}
.single-bien__nego-photo.fallback{
    background:#0F172A;
}

.single-bien__nego-right{
    flex:1;
}

.single-bien__nego-name{
    font-size:18px;
    font-weight:600;
    color:#111827;
    margin-bottom:6px;
}

.single-bien__nego-phone{
    font-size:15px;
    color:#1E293B;
    margin-bottom:4px;
}

.single-bien__nego-mail{
    font-size:15px;
    color:#0F172A;
    text-decoration:underline;
}

@media (max-width:600px){
    .single-bien__nego-card{
        flex-direction:column;
        text-align:center;
    }
    .single-bien__nego-left{
        width:110px;
        height:110px;
    }
}
/* ====== Carte contact bien ====== */

/* Carte globale */
.contact-bien-card{
    position:relative;
    background:#ffffff;
    border-radius:22px;
    padding:32px 28px 30px;
    box-shadow:0 18px 40px rgba(15,23,42,0.12);
    font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif;
  }
  
  /* Header agent */
  .contact-bien-card__header{
    text-align:center;
    margin-bottom:26px;
    padding-top:52px; /* espace pour l’avatar qui déborde */
    position:relative;
  }
  
  /* Avatar rond qui dépasse */
  .contact-bien-card__avatar{
    width:120px;
    height:120px;
    border-radius:50%;
    overflow:hidden;
    border:6px solid #ffffff;
    box-shadow:0 10px 25px rgba(15,23,42,0.15);
    position:absolute;
    left:50%;
    top:0;
    transform:translate(-50%, -50%);
    background:#f3f4f6;
  }
  .contact-bien-card__avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
  }
  
  /* Nom + téléphone */
  .contact-bien-card__identity{
    margin-top:36px;
  }
  .contact-bien-card__name{
    font-size:17px;
    font-weight:600;
    letter-spacing:0.02em;
    margin-bottom:4px;
  }
  .contact-bien-card__phone{
    font-size:14px;
    color:#374151;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;
  }
  .contact-bien-card__phone a{
    color:inherit;
    text-decoration:none;
  }
  .contact-bien-card__phone a:hover{
    text-decoration:underline;
  }
  .contact-bien-card__phone-icon{
    font-size:14px;
  }
  
  /* Titre bloc */
  .contact-bien-card__intro{
    text-align:center;
    margin-bottom:24px;
  }
  .contact-bien-card__title{
    font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size:24px;
    font-weight:400;
    line-height:1.3;
    margin:0 0 4px;
}
  .contact-bien-card__subtitle{
    font-size:14px;
    color:#6b7280;
    margin:0;
  }
  
  /* Formulaire */
  .contact-bien-form{
    font-size:14px;
  }
  .contact-bien-form__row{
    margin-bottom:18px;
  }
  .contact-bien-form__row--2col{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
  }
  @media (max-width:600px){
    .contact-bien-form__row--2col{
      grid-template-columns:1fr;
    }
  }
  
  .contact-bien-form__field label{
    display:block;
    font-size:13px;
    margin-bottom:4px;
    color:#111827;
  }
  .contact-bien-form__field input,
  .contact-bien-form__field textarea{
    width:100%;
    border:none;
    border-bottom:1px solid #111827;
    padding:6px 2px;
    font-size:14px;
    font-family:inherit;
    background:transparent;
  }
  .contact-bien-form__field textarea{
    border:1px solid #111827;
    border-radius:10px;
    padding:10px 12px;
    min-height:130px;
    resize:vertical;
  }
  .contact-bien-form__field input:focus,
  .contact-bien-form__field textarea:focus{
    outline:none;
    border-color:#111827;
  }
  
  /* Checkbox + RGPD */
  .contact-bien-form__row--checkbox{
    margin-top:6px;
  }
  .contact-bien-form__checkbox{
    display:flex;
    align-items:flex-start;
    gap:8px;
    font-size:12px;
    line-height:1.5;
    color:#4b5563;
  }
  .contact-bien-form__checkbox input[type="checkbox"]{
    margin-top:2px;
  }
  
  .contact-bien-form__rgpd{
    font-size:12px;
    line-height:1.6;
    color:#4b5563;
  }
  
  /* Bouton */
  .contact-bien-form__actions{
    margin-top:18px;
    text-align:left;
  }
  .contact-bien-form__submit{
    display:inline-block;
    padding:10px 32px;
    border-radius:4px;
    border:none;
    background:#111827;
    color:#ffffff;
    font-size:13px;
    letter-spacing:0.16em;
    text-transform:uppercase;
    font-weight:600;
    cursor:pointer;
  }
  .contact-bien-form__submit:hover{
    background:#000000;
  }

  /* === Nettoyage des ombres + coins pour les inputs du formulaire === */

/* Inputs (Prénom, Nom, Téléphone, E-mail) */
.contact-bien-form__field input{
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border-radius: 0 !important;      /* plus de coins arrondis */
    background: transparent;          /* même fond que la carte */
  }
  
  /* Au focus aussi, zéro ombre */
  .contact-bien-form__field input:focus{
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
  }
  
  /* Pour le textarea, on garde le look “carte”, juste on enlève les ombres parasites */
  .contact-bien-form__field textarea{
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
  }

  /* ===== Avatar Négociateur (photo) ===== */
.contact-bien-card__avatar.avatar-nego img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== Avatar Agence (logo complet) ===== */
.contact-bien-card__avatar.avatar-agence {
    border-radius: 0 !important;        /* carré */
    overflow: visible !important;       /* rien n’est rogné */
    background: transparent !important; /* plus de fond gris derrière */
}

.contact-bien-card__avatar.avatar-agence img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;     /* logo affiché en entier */
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0;                         /* enlève le petit cadre qui resserrait */
}

/* FORCE DISPLAY AGENCY LOGO TRANSPARENT — VERSION FINALE */
.contact-bien-card__avatar.avatar-agence {
    width: 140px;
    height: 140px;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.contact-bien-card__avatar.avatar-agence img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
/* ===== Correction alignement titre / prix (desktop + mobile) ===== */

/* Le bloc du milieu ne doit plus être centré verticalement */
.bien-middle{
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

/* Prix un peu plus remonté sur desktop */
.bien-price{
    font-size: 40px;
    font-weight: 600;
    margin-top: 8px;      /* 🔼 remonte le prix */
    margin-bottom: 6px;
    line-height: 1.2;
    color:#111827;
}

/* ===== Spécifique mobile ===== */
@media (max-width: 768px){

    /* On annule le flex "colonne pleine hauteur" pour le texte */
    .single-bien__hero-content{
        display: block;
        height: auto;
    }

    /* Titre + méta juste au-dessus du prix, sans gros vide */
    .bien-middle{
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }

    /* Le bloc prix/bouton ne doit plus être poussé en bas */
    .bien-bottom{
        margin-top: 0 !important;
        transform: none !important;
    }

    /* Taille un peu plus raisonnable sur téléphone */
    .bien-price{
        font-size: 32px;
        margin-top: 10px;
    }

    /* Ville plus grosse sur mobile */
    .bien-city{
        font-size: 20px !important;
        font-weight: 600;
    }
}
/* Desktop : ajuster la position du texte dans la colonne droite */
@media (min-width: 1025px){
    .single-bien__hero-content{
      position: static;
      padding-bottom: 0;
      padding-top: 24px;   /* 🔽 rabaisse légèrement tout le bloc texte */
      justify-content: flex-start; /* on s'assure que ça reste bien en haut + padding */
    }
  
    .bien-bottom{
      transform:none;
    }
  }
  /* On aligne la colonne texte sur la hauteur de la grande photo */
.single-bien__hero-layout {
    align-items: stretch !important;
}

/* La grande photo impose sa hauteur */
.single-bien__hero-media {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* La colonne texte prend toute la hauteur de la zone */
.single-bien__hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}
/* Le bloc du milieu doit être plus bas */
.bien-middle {
    margin-top: 40px !important;   /* 🔽 descend le bloc ville / type / titre */
}
/* Le prix doit être calé au bas exact de la photo */
.bien-bottom {
    margin-top: auto !important;   /* 🔥 colle le prix au bas */
    margin-bottom: 0 !important;
}

/* Ajustement de la taille / marge du prix */
.bien-price {
    font-size: 40px;
    font-weight: 600;
    margin: 0 0 10px 0 !important; /* petit espace */
}
/* === OVERRIDES ALIGNEMENT HERO DESKTOP === */
@media (min-width:1025px){

    /* Colonne texte en flex, mais sans pousser le prix tout en bas de la page */
    .single-bien__hero-content{
      display:flex;
      flex-direction:column;
      height:100%;
    }
  
    /* On descend le bloc ville / type / titre vers le milieu */
    .bien-middle{
      margin-top:40px !important;      /* décale le titre vers le centre */
      margin-bottom:0 !important;
    }
  
    /* Le prix ne colle plus au bas de la colonne, on met un simple écart */
    .bien-bottom{
      margin-top:90px !important;      /* espace sous le titre */
      margin-bottom:0 !important;
    }
  
    /* Prix propre, sans marge qui l’envoie trop bas */
    .bien-price{
      font-size:40px;
      font-weight:600;
      margin:0 0 10px 0 !important;
      line-height:1.2;
      color:#111827;
    }
  }

 /* ===========================================================
   BLOC TRAJET 
   =========================================================== */

.trajet-card{
    margin-top:32px;
    padding:24px 26px;
    border-radius:18px;
    background:#0F172A;       /* même fond bleu nuit */
    border:1px solid #0F172A;
    color:#ffffff;
    font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif;
}

/* Titres */
.trajet-card__title{
    font-size:20px;
    font-weight:700;
    text-align:center;
    margin:0 0 12px;
    color:#ffffff;
}

.trajet-card__subtitle{
    font-size:13px;
    color:#E2E8F0;
    text-align:center;
    margin:0 0 20px;
}

/* Input + bouton alignés */
.trajet-card__form{
    display:flex;
    gap:12px;
    align-items:center;
    justify-content:center;
    margin-bottom:18px;
    flex-wrap:wrap;
}

/* Label caché */
.trajet-card__form label{
    display:none;
}

/* Champ d'adresse */
#trajet-start{
    width:260px;
    border-radius:999px;
    border:1px solid #CBD5E1;
    padding:10px 16px;
    font-size:15px;
    background:#ffffff;
    color:#0F172A;
    outline:none;
}

#trajet-start:focus{
    border-color:#ffffff;
}

/* Bouton */
#trajet-btn{
    background:#ffffff;
    color:#0F172A;
    font-size:14px;
    font-weight:600;
    padding:10px 26px;
    border-radius:999px;
    border:none;
    cursor:pointer;
    letter-spacing:0.05em;
    text-transform:uppercase;
}

#trajet-btn:hover{
    background:#E2E8F0;
}

/* Résultat du trajet */
#trajet-infos{
    text-align:center;
    font-size:15px;
    color:#ffffff;
    margin-bottom:16px;
}

/* Carte */
.trajet-card__map{
    width:100%;
    height:260px;
    overflow:hidden;
    border-radius:14px;
}

/* Mobile */
@media(max-width:600px){
    #trajet-start{
        width:100%;
        font-size:16px;
    }
    #trajet-btn{
        width:100%;
        text-align:center;
    }
}

/* ===========================================================
   Bouton / icône fiche
   =========================================================== */

/* Par défaut : pas visible à l'écran (mais visible en print) */
.dpe-print-line,
.montants-print-line{
  display:none;
}

/* Ligne prix en bas du hero */
.bien-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* Icône imprimante sous le bloc trajet */
.fiche-bien-print-icon{
  text-align:center;
  margin-top:16px;
}

.fiche-bien-print-icon a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:50px;
  height:50px;
  background:#0F172A;
  color:#fff;
  border-radius:50%;
  font-size:26px;
  text-decoration:none;
  box-shadow:0 4px 10px rgba(15,23,42,.35);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.fiche-bien-print-icon a:hover{
  background:#111827;
  transform:scale(1.06);
  box-shadow:0 6px 16px rgba(15,23,42,.45);
}

/* ===============================
   MODE IMPRESSION / FICHE A4 ULTRA COMPACTE
   =============================== */

   @page {
    size: A4 portrait;
    margin: 5mm;
  }
  
  @media print {

    /* On masque tout ce qui ne sert pas pour la fiche */
    header,
    footer,
    .site-header,
    .site-footer,
    .single-bien__topbar,
    .bien-print-btn,
    .trajet-card,
    .simu-credit,
    .single-bien__gallery-thumbs,
    .single-bien__vt-block,
    .erp-block,
    .fiche-bien-print-icon {           /* 👈 ajout ici */
      display:none !important;
    }
  
    body{
      background:#ffffff !important;
      color:#000000 !important;
      font-family:"Poppins", system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI",sans-serif;
      font-size:9px;
    }
  
    .single-bien-wrap{
      max-width:100% !important;
      margin:0 !important;
      padding:0 !important;
    }
  
    /* 1 seule colonne pour tout */
    .single-bien__section--split,
    .single-bien__section-inner{
      display:block !important;
    }
  
    .single-bien__col-left,
    .single-bien__col-right{
      width:100% !important;
      max-width:100% !important;
      padding:0 !important;
      margin:0 0 4px 0 !important;
    }
  
    /* HERO ultra compact */
    .single-bien__hero{
      margin:0 0 4px !important;
    }
  
    .single-bien__hero-layout{
      display:block !important;
    }
  
    .single-bien__hero-media{
      margin-bottom:3px !important;
    }
  
    .single-bien__gallery-main img{
      width:100% !important;
      max-height:170px !important;
      object-fit:cover;
      border-radius:3px;
    }
  
    .bien-top{
      margin-bottom:1px !important;
    }
  
    .bien-country,
    .bien-ref{
      font-size:8px !important;
    }
  
    .bien-city{
      font-size:11px !important;
      font-weight:600;
    }
  
    .bien-type{
      font-size:9px !important;
      text-transform:uppercase;
    }
  
    .bien-title{
      font-size:12px !important;
      line-height:1.2;
      margin:1px 0 1px !important;
    }
  
    .bien-meta{
      font-size:8px !important;
      gap:4px !important;
    }
  
    .bien-bottom{
      display:flex;
      justify-content:space-between;
      align-items:center;
      margin-top:2px !important;
    }
  
    .bien-price{
      font-size:13px !important;
      font-weight:700;
    }
  
    /* Blocs généraux */
    .single-bien__block{
      margin-bottom:4px !important;
      page-break-inside:avoid;
    }
  
    .single-bien__block-title{
      font-size:10px !important;
      margin:0 0 2px !important;
    }
  
    /* Description : très courte */
    .single-bien__description{
      font-size:8px !important;
      line-height:1.25;
      max-height:60px;
      overflow:hidden;
    }
  
    /* Tables : très serrées */
    .single-bien__table{
      margin:0 !important;
    }
  
    .single-bien__table-row{
      display:flex;
      justify-content:space-between;
      gap:4px;
      padding:1px 0;
    }
  
    .single-bien__table-row dt{
      font-weight:600;
      font-size:8px;
    }
  
    .single-bien__table-row dd{
      margin:0;
      font-size:8px;
      text-align:right;
    }
  
    .single-bien__subheading{
      font-size:8px !important;
      margin:2px 0 1px !important;
    }
  
    /* ===== MONTANTS – PRINT ONLY ===== */
  
    .montants-grid,
    .montants-mention{
      display:none !important; /* on masque le détail */
    }
  
    .montants-print-line{
      font-size:9px;
      margin:0;
    }
  
    .montants-print-line strong{
      font-weight:700;
    }

    .montants-print-line,
  .dpe-print-line{
    display:block !important;
  }
  
    /* ===== DPE/GES – PRINT ONLY ===== */
  
    .single-bien__dpe-ges-grid,
    .dpe-inline,
    .dpe-georisques{
      display:none !important;  /* plus de graphiques, plus de pavés */
    }
  
    .dpe-print-line{
      font-size:9px;
      margin:0;
    }
  
    .dpe-print-line strong{
      font-weight:700;
    }
  
    /* Carte non imprimée */
    .trajet-card__map{
      display:none !important;
    }
  
    /* Négociateur ultra compact */
    .contact-bien-card{
      display:block !important;
      margin-top:3px !important;
      padding:4px 6px !important;
      border:1px solid #E5E7EB;
      border-radius:4px;
    }
  
    .contact-bien-card__header{
      display:flex;
      align-items:center;
      gap:6px;
      margin-bottom:2px;
    }
  
    .contact-bien-card__avatar img{
      width:28px;
      height:28px;
      border-radius:999px;
      object-fit:cover;
    }
  
    .contact-bien-card__name{
      font-size:9px;
      font-weight:600;
    }
  
    .contact-bien-card__phone a{
      font-size:9px;
      color:#000000;
      text-decoration:none;
    }
  
    .contact-bien-card__intro,
    .contact-bien-form{
      display:none !important; /* on garde juste les coordonnées */
    }
  
  }