:root{
  scroll-behavior: smooth;
}

html{
  scroll-behavior: smooth;
}

.commercial-container--immeuble.espace-commun .commercial-image {
  left: 0;
  right: unset
}

.commercial-container--immeuble.espace-commun .commercial-text{
  margin-left: auto;
  margin-right: 0;
}

.single-immeuble #content .hero-info{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0 auto;
  max-width: calc(var(--lw) + (2 * var(--lp)));
  padding: 0 var(--lp);
  margin-bottom: 70px;
}

.single-immeuble #content .hero-info>div{
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto;
  font-size: 20px;
}

.single-immeuble #content .hero-info>div p{
  font-size: 140%;
  margin: 0;
}

body.single-immeuble .immeuble-sub-menu{
  background: rgb(232, 231, 231);
  /*padding-top: var(--header-height);*/
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  z-index: 2;
  transition: all 0.15s;
}

html.main-nav-hiding .immeuble-sub-menu{
  top: 0;
}

body.single-immeuble .immeuble-sub-menu>div{
  display: flex;
  margin: 0 auto;
  max-width: calc(var(--lw) + (2 * var(--lp)));
  padding: 0 var(--lp);
  gap: 60px;
  padding-top: 20px;
  padding-bottom: 20px;
}

body.single-immeuble .immeuble-sub-menu img{
  width: 110px;
  height: auto;
}

body.single-immeuble .immeuble-sub-menu>div>div{
  display: flex;
  gap: 20px;
  align-items: center;
}

body.single-immeuble .immeuble-sub-menu>div>div a{
  display: block;
  padding: 6px 12px;
}

body.single-immeuble .immeuble-sub-menu>div>div a:hover{
  text-decoration: none;
}

body.single-immeuble .immeuble-sub-menu>div>div a::after{
background: currentColor;
        height: 2px;
        content: "";
        display: block;
        margin-bottom: -2px;
        margin-left: 1px;
        transform: translateY(4px) scaleX(0);
        transition: transform 0.2s;
        transition-timing-function: 
cubic-bezier(0.11, 0.65, 0.39, 0.93);
        /*width: calc(100% - 2px);*/
        width: 12px;
}

body.single-immeuble .immeuble-sub-menu>div>div a:hover::after{
  transform: translateY(4px) scaleX(1);
}

body.single-immeuble .appartements-container.new .appartement{
  grid-template-columns: auto 1fr 8% 8% 8% 8% auto auto;
}

body.single-immeuble .appartements-container.new .appartement h3{
  font-size: 20px;
}

body.single-immeuble .appartements-container.new .appartement a{
  font-size: 16px;
  margin: 0 14px;
}

body.single-immeuble .appartements-container.new .appartement>div:last-of-type{
  min-width: 0;
}

body.single-immeuble .appartements-container.new .appartements{
  gap: 2px;
}

body.single-immeuble .appartements-container.new .appartement .title{
  width: auto;
}
 
#appartements-search{
  background: #056289;
  padding-bottom: 40px;
}

#appartements-search h2,
#appartements-search p{
  color: #fff;
  grid-column: 1 / 13;
}

#appartements-search select{
color: rgb(255, 255, 255);
    text-align: center;
    height: 70px;
    appearance: none;
    border-width: 2px;
    border-style: solid;
    border-color: rgb(255, 255, 255);
    border-image: initial;
    padding: 0px 10px;
    background: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
      background-position-x: 80%;
      background-position-y: 50%;
}

#appartements-search select option{
  color: #0e2435 !important;
}

#appartements-search button{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 0;
    background: #ffffff;
    color: #149bd7;
    display: block;
    font-size: 2.2rem;
    line-height: 2.6rem;
    font-family: myriad-pro-condensed, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    background: linear-gradient(to right, #149bd7 49%, #ffffff 50%);
    background-size: 300%;
    background-position-x: 100%;
    transition: all 0.42s 
ease-in-out;
    height: 70px;
}

#appartements-search #search-form{
  grid-column: 1/13;
  gap: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr 190px;
}

body.single-immeuble #appartements-search #search-form{
  grid-template-columns: 1fr 1fr;
}

#appartements-search h2{
  margin-bottom: 0;
}

#search-no-result{
  grid-column: 1/-1;
}

.map-block.commercial-container{
  margin-top: 100px;
  padding-bottom: calc(300px + 6vw);
}

.map-block.commercial-container .map{
  height: auto;
  aspect-ratio: 16/11;
}

.map-block.commercial-container .commercial-image{
  width: 100%;
  top: 5vw;
}

body.single-immeuble #appartements-search{
  grid-column: 1/-1;
  background-color: transparent;
  margin-top: 50px;
  padding-bottom: 0;
}

body.single-immeuble #appartements-search select{
  border-color: #276487;
  color: #276487;
      background-image: url("data:image/svg+xml;utf8,<svg fill='\u0023276487' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");

}

body.single-immeuble #appartements-search button[type="submit"]{
  background: linear-gradient(to right, #056289 49%, #149bd7 50%);
  background-size: 300%;
  background-position-x: 100%;
  color: #fff;
  transition: all 0.42s ease-in;
}
body.single-immeuble #appartements-search button[type="submit"]:hover{
  background-position-x: 0%;
}
html body.single-immeuble:is(.logged-in, .imotep-validation) #content{
  padding-top: 50px;
}

html.header-fixed body.single-immeuble:is(.logged-in, .imotep-validation) #content{
  padding-top: calc(var(--header-height) + 50px);
}


/* Durant le dev seulement */
body:not(.logged-in, .imotep-validation).single-immeuble .hero-info,
body:not(.logged-in, .imotep-validation).single-immeuble .espace-commun,
body:not(.logged-in, .imotep-validation).single-immeuble .immeuble-sub-menu,
body:not(.logged-in, .imotep-validation).single-immeuble .appartements-container.new,
body:not(.logged-in, .imotep-validation) #appartements-search,
body:not(.logged-in, .imotep-validation) #emplacement.new,
body:not(.logged-in, .imotep-validation) #localisation,
body:is(.logged-in, .imotep-validation) #emplacement:not(.new),
body:is(.logged-in, .imotep-validation) .appartements-container:not(.new),
body:is(.logged-in, .imotep-validation) .hero-container--immeuble .hero,
body:not(.logged-in, .imotep-validation) .infos-container--immeuble .new,
body:is(.logged-in, .imotep-validation) .infos-container--immeuble .proximite .linebefore:not(.new){
  display: none !important;
}