@media (min-width: 768px) {
  .container {
    max-width: 980px; 
  }
}

/*  Head
--------------------------------------------------------*/

#head{
  background: #72c349;
  position:relative;
  min-height:80px;
}

#shadow-head{
  background: transparent url('../img/shadow-head.png') repeat-x 0 0;
  width:100%;
  height:11px;
  position:absolute;
  left:0;
  bottom:-4px;
  z-index: 999;
}

.navbar {
  margin-bottom: 0px;
}

ul.navbar-nav{
  position:relative;
}

ul.navbar-nav:before, ul.navbar-nav:after{
  content:"";
  position:absolute;
  height:83px;
  width:14px;
  top:-8px;
}

ul.navbar-nav:before{
  background: transparent url('../img/sh-menu-left.png') no-repeat 0 0;
  left:-14px;
}

ul.navbar-nav:after{
  background: transparent url('../img/sh-menu-right.png') no-repeat 0 0;
  right:-14px;
}

.navbar-default {
  background-color: transparent;
  border:none;
}

.navbar-brand{
  position:absolute;
  z-index: 100;
  margin-left:60px;
}

.navbar-nav{
  float:right;
  /*margin-right:80px;*/
  right: 80px;
}

.navbar-default .navbar-nav > li > a {
  color: #333;
  background: #fff url('../img/shadow-menu-link.png') no-repeat 0 0 !important;
  font-size:14px;
  text-transform: uppercase;
  border-left:solid 1px #72c349;
  padding:20px;
  width:125px;
}

.navbar-default .navbar-nav > li:first-child > a{
  border-left:none;
}

.navbar-default .navbar-nav > li > a:hover{
  background: #fff url('../img/shadow-menu-link.png') no-repeat 0 0;
}

.navbar-default .navbar-nav > li > a strong {
  display:block;
}

.dropdown-menu {
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  border: none;
}

.dropdown-menu > li > a {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
  background: white url('../img/submenu.png') repeat-x 0 0;
  padding: 10px 15px;
}

.dropdown-menu > li:hover > a,
.dropdown-menu > li > a:focus,
.dropdown-menu > li > a:active,
.dropdown-menu > li.active > a,
.dropdown-menu > li.active > a:hover,
.dropdown-menu > li.active > a:focus,
.dropdown-menu > li.active > a:active {
  background: white url('../img/submenu.png') repeat-x 0 0;
  color: #ed6c2d;
}

#item-1 a{
  padding-left:42px;
}

#item-2 a{
  padding-left:28px;
}

#visu{
  background: transparent url('../img/shadow-visu.png') repeat-x 0 bottom;
  overflow: hidden;
}

#visu .col-md-12:before, #visu .col-md-12:after{
  content:"";
  position:absolute;
  top:0;
  width:16px;
  height:611px;
}

#visu .col-md-12:before{
  background: transparent url('../img/shadow_left.png') no-repeat 0 0;
  left:0;
}

#visu .col-md-12:after{
  background: transparent url('../img/shadow_right.png') no-repeat 0 0;
  right:0;
}

/*  Home page
--------------------------------------------------------*/

#content{
  padding:40px 0;
  background: #ebeaea;
}

.home .bloc{
  border-left:solid 1px #72c349;
  padding:0 30px;
  position:relative;
  min-height:348px;
}

.home .bloc:first-child{
  border-left:none;
}

.home .bloc img{
  margin-bottom:10px;
}

.home .bloc h3{
  margin-top:0px;
  text-transform: uppercase;
  font-size:14px;
  padding: 15px 0;
}

.home .bloc h3 span{
  font-weight:bold;
}

.home #bloc-1 h3{
  background: transparent url('../img/picto-1.png') no-repeat 0 0;
  padding-left:33px;
}

.home #bloc-2 h3{
  background: transparent url('../img/picto-2.png') no-repeat 0 0;
  padding-left:40px;
}

.home #bloc-3 h3{
  background: transparent url('../img/picto-3.png') no-repeat 0 0;
  padding-left:50px;
}

.home #bloc-3 .inner {
  max-height: 220px;
  overflow: hidden;
  overflow-y: auto;
}

.home #bloc-2 a, .home #bloc-1 a{
  position:absolute;
  bottom:0;
  right:30px;
  color:#333;
  text-decoration: underline;
  background: transparent url('../img/btn-decouvrir.png') no-repeat right center;
  padding-right:30px;
}

.slimScrollBar {
  height: 24px !important;
  width: 14px !important;
  width: 0 !important;
  height: 0 !important;
  border-style: solid;
  border-width: 12px 14px 12px 0;
  border-color: transparent #50a321 transparent transparent;
  opacity: 1 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/*  Ville page
--------------------------------------------------------*/

.ville h2{
  color:#ed6c2d;
  text-transform: uppercase;
  margin-top:0;
  margin-bottom:20px;
}

/*  Quartier page
--------------------------------------------------------*/

.quartier #visu .cta{
  position: absolute;
  bottom: 60px;
  right: 20px;
  text-align: center;
}
.quartier #visu .cta a {
  margin: 0;
  display: inline-block;
}
.quartier #content{
  padding-top:0;
}

#container-legendes{
  margin-bottom:40px;
}

#legendes{
  background: #9c526b;
  padding:15px;
  -webkit-border-radius:0 0 10px 10px;
  -moz-border-radius:0 0 10px 10px;
  border-radius:0 0 10px 10px;  
}

#arrow-orange{
  background: transparent url('../img/arrow-orange.png') no-repeat center top;
  width:34px;
  height:17px;
  display:block;
  position:absolute;
  top:-17px;
  left:50%;
  margin-left:-17px;

  display: none;
}

#legendes-inner{
  background: #9c526b;
  padding:15px;
  color: white;
}

#legendes-inner .col-sm-3 {
  width: 21%;
}

#legendes-inner .col-sm-3.last-child {
  width: 16%;
}

#container-legendes ul{
  list-style: none;
  margin:0;
  padding:0;
  overflow:hidden;
}

#container-legendes ul li{
  padding:12px 0 12px 50px;
  background: transparent url('../img/picto-legende.png') no-repeat 0 0;
  margin:20px 0;
  color: white;
}

#container-legendes #leg1{
  background-position: 0 0;
}

#container-legendes #leg2{
  background-position: 0 -75px;
}

#container-legendes #leg3{
  background-position: 0 -152px;
}

#container-legendes #leg4{
  background-position: 0 -227px;
  padding-top: 2px;
  padding-bottom: 5px;
}

#container-legendes #leg5{
  background-position: 0 -301px;
}

#container-legendes #leg6{
  background-position: 0 -376px;
}

#container-legendes #leg7{
  background-position: 0px -451px;
  padding-top: 2px;
  padding-bottom: 5px;
}

#container-legendes #leg8{
  background-position: 0px -526px;
}

#container-legendes #leg9{
  background-position: 0 -606px;
}

#container-legendes #leg10{
  background-position: 0 -475px;
}

.quartier #bloc-1, .quartier #bloc-2{
  padding:0 30px;
}

.quartier #bloc-2{
  border-left:solid 1px #ed6c2d;
}

.quartier h2{
  font-size:20px;
  color:#ed6c2d;
  text-transform: uppercase;
  margin-top:0;
}

.quartier h3{
  font-size:14px;
  color:#ed6c2d;
  text-transform: uppercase;
  margin-top:0px;
}

.quartier .list{
  padding-left:0;
  list-style: inside;
}

.quartier .last{
  margin:0;
  padding-top:20px;
  font-size:11px;
}

/*  Residences
--------------------------------------------------------*/

.residences #visu{
  background: none;
}

.residences #content{
  padding:40px 0;
  position:relative;
}

.residences h3{
  font-size:13px;
  color:#ed6c2d;
  text-transform: uppercase;
  margin-top:5px;
}

.residences .titre-resi{
  position:absolute;
  top:-54px;
  left:0;
  right: 0;
  z-index: 10;
  background: transparent url('../img/shadow-visu.png') repeat-x 0 bottom;
  text-align: center;
}

.residences .titre-resi span {
  display: inline-block;
  text-transform: uppercase;
  padding:10px 30px;
  text-transform: uppercase;
  font-size:24px;
  background: #ebeaea;
  -webkit-border-radius:10px 10px 0 0;
  -moz-border-radius:10px 10px 0 0;  
  border-radius:10px 10px 0 0; 
  color: #ed6c2d;
  font-weight: bold;
}

.residences .container-myTab{
  position:absolute;
  top:-42px;
  left:0;
  z-index: 10000;
  background: transparent url('../img/shadow-visu.png') repeat-x 0 bottom;
}

.residences .myTab{
  list-style: none;
  padding:0;
  /*background: #ed6c2d;*/
  -webkit-border-radius:10px 10px 0 0;
  -moz-border-radius:10px 10px 0 0;  
  border-radius:10px 10px 0 0;
  width:594px;
  overflow:hidden;
  margin:0 auto;
  padding: 0 10px;
  width:901px;
  height: 42px;
}

.residences .myTab li{
  float:left;
  margin:0;
}

.residences .myTab a{
  padding:9px 20px;
  text-transform: uppercase;
  font-size:17px;
  background: #ed6c2d url('../img/shadow-visu.png') repeat-x 0 bottom;
  color:#fff;
  font-weight:bold;
  display:block;
  text-decoration: none;
  position: relative;
}

.residences .myTab a:before {
  content:"";
  position: absolute;
  top: -1px;
  bottom:0px;
  left: -5px;
  width: 10px;
  background: #ed6c2d url('../img/shadow-visu.png') repeat-x 0 bottom;
  -webkit-border-radius:10px 0px 0 0;
  -moz-border-radius:10px 0px 0 0;  
  border-radius:10px 0px 0 0;
  webkit-box-shadow: -2px 2px 2px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: -2px 2px 2px 0px rgba(0,0,0,0.5);
  box-shadow: -2px 0px 2px 0px rgba(0,0,0,0.5);
  z-index: -1;
}

.residences .myTab a:after {
  content:"";
  position: absolute;
  top: -1px;
  bottom:0px;
  right: -5px;
  width: 10px;
  background: #ed6c2d url('../img/shadow-visu.png') repeat-x 0 bottom;
  -webkit-border-radius:0px 10px 0 0;
  -moz-border-radius:0px 10px 0 0;  
  border-radius:0px 10px 0 0;
  webkit-box-shadow: 2px 0px 2px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 2px 0px 2px 0px rgba(0,0,0,0.5);
  box-shadow: 2px 0px 2px 0px rgba(0,0,0,0.5);
  z-index: 1;
}

.residences .myTabReverse a:before {
  content:"";
  position: absolute;
  top: -1px;
  bottom:0px;
  left: -5px;
  width: 10px;
  background: #ed6c2d url('../img/shadow-visu.png') repeat-x 0 bottom;
  -webkit-border-radius:10px 0px 0 0;
  -moz-border-radius:10px 0px 0 0;  
  border-radius:10px 0px 0 0;
  webkit-box-shadow: -2px 2px 2px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: -2px 2px 2px 0px rgba(0,0,0,0.5);
  box-shadow: -2px 0px 2px 0px rgba(0,0,0,0.5);
  z-index: 1;
}

.residences .myTabReverse a:after {
  content:"";
  position: absolute;
  top: -1px;
  bottom:0px;
  right: -5px;
  width: 10px;
  background: #ed6c2d url('../img/shadow-visu.png') repeat-x 0 bottom;
  -webkit-border-radius:0px 10px 0 0;
  -moz-border-radius:0px 10px 0 0;  
  border-radius:0px 10px 0 0;
  webkit-box-shadow: 2px 0px 2px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 2px 0px 2px 0px rgba(0,0,0,0.5);
  box-shadow: 2px 0px 2px 0px rgba(0,0,0,0.5);
  z-index: -1;
}

.residences .myTab li.active a{
  background: #ebeaea;
  color:#ed6c2d;
}

.residences .myTab li.active a:before {
  content:"";
  position: absolute;
  display: inline-block;
  top: -1px;
  bottom:0px;
  left: -5px;
  width: 15px;
  background: #ebeaea;
  -webkit-border-radius:10px 0px 0 0;
  -moz-border-radius:10px 0px 0 0;  
  border-radius:10px 0px 0 0;
  webkit-box-shadow: -3px 2px 2px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: -3px 2px 2px 0px rgba(0,0,0,0.5);
  box-shadow: -3px 2px 2px 0px rgba(0,0,0,0.5);
  z-index: 2;
}

.residences .myTab li.active a:after {
  content:"";
  position: absolute;
  display: inline-block;
  top: -1px;
  bottom:0px;
  right: -5px;
  width: 15px;
  background: #ebeaea;
  -webkit-border-radius:0px 10px 0 0;
  -moz-border-radius:0px 10px 0 0;  
  border-radius:0px 10px 0 0;
  webkit-box-shadow: 3px 2px 2px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 3px 2px 2px 0px rgba(0,0,0,0.5);
  box-shadow: 3px 2px 2px 0px rgba(0,0,0,0.5);
  z-index: 2;
}

.residences .list{
  padding-left:0;
  list-style: outside;
  margin-left: 16px;
}

/* modif bug */

/* end modif */

.tab-pane .img-responsive{
  margin-top:100px;
  margin-left:auto;
  margin-right:auto;
}

#tab3 .img-responsive{
  margin-top: 60px;
}

.tab-pane .bloc-border{
  border-left:solid 1px #72c349;
  padding:0 15px 0 30px;
}

.tab-pane .link{
  color:#fff;
  background: #ed6c2d;
  font-weight:bold;
  text-transform:uppercase;
  padding:20px 10px;
  font-size:15px;
  text-decoration:none;
  float:right;
  display:inline-block;
  margin-top:40px;
  margin-bottom:40px;
}

.caption {
  text-align: center;
  color: white;
  font-size: 18px;
  text-transform: uppercase;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 100;
  background: transparent url('../img/caption-bg.png') no-repeat 50% 0;
  padding: 15px;
}

.caption p {
  line-height: 1.1;
  margin:0;
  font-size: 30px;
  font-weight: bold;
}

.caption span {
  font-size: 24px;
}

.tel {
  clear: both;
}

/*  Infos page
--------------------------------------------------------*/

.infos #content h2{
  font-size:18px;
  color:#ed6c2d;
  text-transform: uppercase;
  margin-top:0px;
}

.infos #content h3{
  font-size:13px;
  color:#333;
  text-transform: uppercase;
  margin-top:5px;
}

.infos #content ul{
  padding-left:15px;
}

.infos #content p.last{
  padding-top:40px;
  font-size:11px;
}

/*  Footer
--------------------------------------------------------*/

#footer{
  background: #ebeaea url('../img/shadow-footer.png') no-repeat center top;
  padding-top:20px;
  padding-bottom: 20px;
}

#footer a{
  color:#333;
}

#partenaires{
  padding:0;
  margin-top:20px;
}

#partenaires ul{
  list-style: none;
  margin:0;
  padding:0;

  display: table;
  width: 100%;
}

#partenaires ul li{
  float:left;
  margin:0;
  padding:0 22px;

  display: table-cell;
  float: none;
  vertical-align: middle;
  text-align: center;
}

#partenaires ul li img {
  margin: 0 auto;
}

/*#li1{
  width:18%;
}

#li2{
  width:26%;
}

#li3{
  width:39%;
}

#li4{
  width:17%;
}

#li5{
  width:17%;
}*/

@media only screen and (min-width: 768px) and (max-width: 994px) {
.residences .container-myTab {
    top: -36px;
    width: 100%;
  }

  .residences .myTab {
    width: 705px;
    height: 36px;
  }

  .residences .myTab a {
    font-size: 13px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {

  .navbar-brand{
    margin-left:20px;
  }
  
  .navbar-nav{
    float:right;
    margin-right:0px;
  }
  
}


@media only screen and (max-width: 767px) {
  
  .navbar-brand{
    margin-left:0;  
  }
  
  .navbar-brand img{
    width:80%;
  }
  
  .navbar-collapse {
    border-top: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0);
  }
  
  ul.navbar-nav {
    float:none !important;
    text-align: right;
    right: 0;
  }

  ul.navbar-nav:before, ul.navbar-nav:after{
    background: none;
    display:none;
  }
  
  .navbar-default .navbar-nav > li > a {
    width:100%;
  } 

  /*.home .bloc img {
    width: 100%;
  } */

  .quartier #bloc-2 {
    border: none;
  }

  .residences #content {
    padding-top:0;
  }
  
  /*.residences .container-myTab{
    text-align:center;
    position:relative;
    top:0;
    left:0;
    background: none;
  }
  
  .residences .myTab{
    -webkit-border-radius:0;
    -moz-border-radius:0;  
    border-radius:0;
    width:auto;
    margin:0 auto;
    display:block;
    padding: 0;
    height: auto !important;
  }

  .residences .myTab li{
    float:none;
  }

  .residences .myTab a{
    background: #ed6c2d;
    -webkit-border-radius:0;
    -moz-border-radius:0;  
    border-radius:0;
  }

  .residences .myTab li.active a{
    background: #fff;
    color:#ed6c2d;
  }

  .residences .myTab a:before,
  .residences .myTab a:after {
    display: none!important;
  }*/

  .tab-pane .img-responsive {
    margin-top: 20px !important;
    margin-bottom:20px;
  }

  .tab-pane .link {
    float:none;
    margin:20px auto 0 auto;
    width:180px;
    text-align: center;
    display:block;
  }

  #legendes-inner .col-sm-3 {
    width: 100% !important;
  }

  #container-legendes ul li {
    padding: 12px 0 12px 50px !important;
    margin: 20px 0;
  }

  #container-legendes ul li br {
    display: none;
  }

  #partenaires ul {
    display: block;
    width: auto;
  }

  #partenaires ul li {
    display: inline-block;
    width: 48%;
    margin-top: 30px;
  }
  
}

@media only screen and (max-width: 500px) {

  .residences .titre-resi {
    top: -42px;
  }

  .residences .titre-resi span {
    font-size: 16px;
  }

  .quartier #visu .cta {
    bottom: 15px;
    right: 30px;
  }

}