/* #### Mobile Phones Portrait #### */
@media screen and (max-device-width: 480px) and (orientation: portrait){
  /* some CSS here */
}

/* #### Mobile Phones Landscape #### */
@media screen and (max-device-width: 800px) and (orientation: landscape){
  /* some CSS here */
}

/* #### Mobile Phones Portrait or Landscape #### */

  @media screen and (max-device-width: 900px){
  #search-query{
    width: 100px;
  }
  }
  
@media screen and (min-device-width: 1024px){
#search-query{
    width: 130px;
  }
}
  #search-query{
    padding-left: 2px;
    padding-right: 2px;
	/*Modif le 20//11 avant 8 px pour réduire la case recherche adresses de la barre de menu */
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    transition: all .5s;
  }

  #search-query:focus{
    width: 206px;
  }

  /* Adapt form */
  #dock .form-horizontal .controls, div.modal .form-horizontal .controls {
  /* margin-left: 10px; */ Enlevé le 15/11
  /* margin-left: 10px; */ Enlevé le 15/11
  }

  #edition #edition-point-coord-form-group.jforms-table-group {
    padding-left: 5px;
  }

  #edition-point-coord-form-group .control-group label.control-label{
    width: 80px;
    display: inline-block;
  }

  #edition-point-coord-form-group .control-group div {
    display: inline-block;
    text-align: right;
  }

  #edition-point-coord-form-group .control-group input.jforms-ctrl-input{
    width: 85px;
  }

  #edition-point-coord-form-group .control-group select {
    width: auto;
  }

  lizmap-geolocation-survey .control-group > div:first-child{
    width: 80px;
  }

  lizmap-geolocation-survey input.input-mini{
    width: 40px;
  }


  #attributeLayers-tabs > li > a {
    padding: 2px;
  }

  /* Hide text for login links */
  #headermenu.mobile #auth ul.nav a span.text {
    display:none;
  }

/* #### Retina screen (iphone4, samsung note, etc.) Portrait or Landscape #### */

  /* Retina-specific stuff here */
  body{
    padding-top : 60px;
  }
 /*-----------------------------------------------------------------*/ 
  @media screen and (min-device-width: 1024px){
	  
  #header {
    height : 50px;
  }
  #logo {
    height : 40px; /* Modif avant 50  */
   /* margin: 0px 5px; suppprimer oour cadrer le logo */
    min-width:46px; /* Modif avant 40 */
  }
  #logo h1 {
    font-size : 4em;
    margin-left: 10px;
    margin: 5px 5px;
    line-height: 20px;
  }
  #title{
    height : 40px;
    margin : 0px 5px;
    padding-right:5px;
  }
  #title h1 {
    margin : 0px 5px;
    font-size : 1.5em;
    line-height: 40px;
  }
  }
  /*-------------------------------------------------------------------*/
  @media screen and (max-device-width: 800px){
	  
   #header {
    height : 35px;
	}
	#logo {
    height : 30px;
    margin: 0px 67px;
    min-width:30px;
  }
  #logo h1 {
    font-size : 0em;
    margin-left: 10px;
    margin: 5px 5px;
    line-height: 20px;
  }
  #title{
    height : 35px;
    margin : 0px 0px;  /* Modifs 10/12 avant 5px */
    padding-right:8px;
  }
  #title h1 {
    margin : 0px 0px;
    font-size : 0em;
    line-height: 30px;
  }
   #title h2 {
    margin : 0px 5px;
    font-size : 0em;
    line-height: 30px;
  }
  }
/*--------------------------------------------------------------------------*/
	
  #headermenu{
    height:30px;
    position: fixed;
    top: 15px;  /* Modifs le 14/12 pour remonter le headermenu  avant 53*/
    padding-right: 7px; /* Modifs 20/12 avant 65 px */
  }
  #headermenu.mobile #auth form#nominatim-search {
    position:absolute;
    right:50px;
    top:30px;
  }
  #headermenu.mobile #auth ul.nav {
    position: absolute;
    left:auto;
    right: 0px;
  }

  #headermenu.mobile .btn-locate-clear.icon {
  background-color: transparent;
  background-position: -850px 0px;
 /* Modif le 20/11 pour ne plus voir le bouton clear de la recherche adresse dans la barre de menu */
  margin-top: -155px;
  }

  .navbar-inner {
    min-height:30px;
    padding: 0px 10px;
  }

  #search{
    top: -10px;  /* Modifs 14/12 avant 30 px pour enlever le bouton t de la page accueil */
  }

  /*  for ie*/
  .navbar-inner ul li{
    display:inline\9;
  }

  #overview-box {
    right:50px;
    bottom:40px;
  }

  #bottom-dock  {
    opacity: 1;
  }

  #navbar .slider{
    display: none;
  }
  
  #navbar button.btn{
    height : 30px;
    width : 30px;
    margin-bottom: 0.3em;
  }

  #navbar .btn.pan {
/*  background-position : -5px -25px;  Modifs 20/11 */
  }
  #navbar .btn.zoom {
    background-position : -30px -30px;
	/*  background-position : -30px -30px;  Modifs 20/11 */
	  }
  #navbar .btn.zoom-extent {
  /*  background-position : -25px -55px;  Modifs 20/11 */
  }
  #navbar .btn.zoom-out {
    
	/*  background-position : -25px -5px;  Modifs 20/11 */
  }
  #navbar .btn.zoom-in {
   /* background-position : 5px 5px;  Modifs 20/11 */
  }

  #navbar .history button.btn{
    width: 20px;
  }

  #navbar .btn.previous, #navbar .btn.next{
    background-position-y: -87px;
  }

  #navbar .btn.previous.disabled{
    background-position-y: -117px;
  }

  #navbar .btn.next.disabled{
    background-position-y: -116px;
  }

  #navbar .btn.next, #navbar .btn.next.disabled{
    background-position-x: -39px;
  }

  #headermenu.mobile #auth form#nominatim-search{
    right: -100px;  }   /* Modifs pour ne plus voir la loupe rechercher */
	
/*--------------------------------------------------------------------------*/	
/*            Construction lien responsive du menu                          */

@media screen and (min-device-width: 1024px){
	
	#mapmenu{
	z-index: 5001;
    width: 20%;  /* au lieu de 100%   */
	left: -60%;
    transition: left 0.3s cubic-bezier(0.77,0.2,0.05,1.0);
 } 
/*=========================================================================*/ 
 }
 
 @media screen and (max-device-width: 800px){
	
#mapmenu{
	z-index: 5001;
     width: 70%;
	left: -80%;
    transition: left 0.3s cubic-bezier(0.77,0.2,0.05,1.0);
}

}
/*=======================================================================*/
  #mapmenu > div{
    width: unset;
    display: flex;
	 top: 45px;
  }

  #mapmenu > div > ul{
    margin: 0 7px;
    width: 100%;
    background-color: #F0F0F0;
  }

  #mapmenu > div > ul li{
    background: #444444;
    border-radius: 6px;
    margin-top: 10px;
	 padding-left: 15px;
  }
  
  #mapmenu > div > ul li.active{
   /* background-color: #006dcc;*/
	background-color: #f28169;
  }
  
  #mapmenu > div > ul li:last-child{
    margin-bottom: 15px;
  }
  
  @media screen and (min-device-width: 1024px){
  #mapmenu .nav-list > li > a{
    width: unset;
    text-align: left;
    font-size: 1.1em;  /* Modifs le 18/01 avant 1.2 */
    color: white;
    padding: .5em;
  }
  }
  
  @media screen and (min-device-width: 1024px){
  #mapmenu .nav-list > li > a{
    width: unset;
    text-align: left;
    font-size: 1.3em;  /* Modifs le 18/01 avant 1.2 */
    color: white;
    padding: .5em;
  }
  }
  
  
  @media screen and (max-device-width: 800px){
   #mapmenu .nav-list > li > a{
    width: unset;
    text-align: left;
    font-size: 1em;  /* Modifs le 18/01 avant 1.2 */
    color: white;
    padding: .5em;
  }
  }
  
  #mapmenu .nav-list > li.active > a{
    background-color: initial;
  }
 
  #mapmenu .menu-title{
    display: inline-block;
    margin-left: 10px;
	text-transform: capitalize;
  }
  
#map-content{
    margin-left: 0;
  }

  #content #dock{
    background-color: #4A4A4A;
  }
/*    A VERIFIER  */

  #docks-wrapper{
    right: -233px;
    width: 100%;
	// padding-top: 44px;
    box-sizing: border-box;
  }
  
  #bottom-dock{
    border-left: 0;
  }
  
#menuToggle.opened ~ #mapmenu{
    left: 0;
  }
  
 @media screen and (max-device-width: 800px){
  #menuToggle{
    display: block;
    position: absolute;
    top:4px; /* Modifs avant 1px */
	 left: 5px; /*  pour mettre le bouton menu complétement à gauche au lieu de 5 */
	 z-index: 9000;
    -webkit-user-select: none;
    user-select: none;
   padding: 7px;
    border-radius: 8px;
    background: #3a3c3d;
    transition: padding 0.3s cubic-bezier(0.77,0.2,0.05,1.0);
  }}
  
  @media screen and (min-device-width: 1024px){
	  
	#menuToggle{
    display: block;
    position: absolute;
    top: 6px;
	 left: 5px; /*  pour mettre le bouton menu complétement à gauche au lieu de 5 */
	 z-index: 9000;
    -webkit-user-select: none;
    user-select: none;
   padding: 7px;
    border-radius: 8px;
    background: #3a3c3d;
    transition: padding 0.3s cubic-bezier(0.77,0.2,0.05,1.0);
  }}
	
 @media screen and (max-device-width: 800px){	
  #menuToggle span{
    display: block;
    width: 24px;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background: white;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.3s cubic-bezier(0.77,0.2,0.05,1.0);
  }
 }
@media screen and (min-device-width: 1024px){
 #menuToggle span{
    display: block;
    width: 26px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: white;
    border-radius: 3px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.3s cubic-bezier(0.77,0.2,0.05,1.0);
  }
 }




















  #menuToggle span:first-child{
    transform-origin: 0% 0%;
  }

  #menuToggle span:nth-last-child(2){
    transform-origin: 0% 100%;
  }

  #menuToggle span:last-child{
    margin-bottom: 0;
  }

  #menuToggle.opened{
    padding-right: 2px;
	
  }

  /* Transform all the slices of hamburger into a crossmark. */
  #menuToggle.opened span{
    opacity: 1;
    transform: rotate(45deg) translate(0px, -5px);
  }

  /* Hide the middle one */
  #menuToggle.opened span:nth-child(2){
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }

  /* The last one should go the other direction */
  #menuToggle.opened span:nth-child(3){
    transform: rotate(-45deg) translate(0, -1px);
  }
  
  
#content.mobile #mini-dock{
    left: 0;
	}
	
	 /* Overload dock icons. TODO : change sprite with SVG */
  #mapmenu .nav-list > li.home.active .icon {
  background-position: -25px 0px;
  }
  #mapmenu .nav-list > li.projects.active .icon {
    background-position: -925px 0px;
  }
  #mapmenu .nav-list > li.metadata.active .icon {
    background-position: -125px 0px;
  }
  #mapmenu .nav-list > li.switcher.active .icon {
    background-position: -75px 0px;
  }
  #mapmenu .nav-list > li.legend.active .icon {
    background-position: -75px 0px;
  }
  #mapmenu .nav-list > li.locate.active .icon {
    background-position: -175px 0px;
  }
  #mapmenu .nav-list > li.print.active .icon {
    background-position: -375px 0px;
  }
  #mapmenu .nav-list > li.measure.active .icon {
    background-position: -275px 0px;
  }
  #mapmenu .nav-list > li.edition.active .icon {
    background-position: -475px 0px;
  }
  #mapmenu .nav-list > li.geolocation.active .icon {
    background-position: -325px 0px;
  }
  #mapmenu .nav-list > li.attributeLayers.active .icon {
    background-position: -525px 0px;
  }
  #mapmenu .nav-list > li.permaLink.active .icon {
    background-position: -675px 0px;
  }
  #mapmenu .nav-list > li.tooltip-layer.active .icon {
    background-position: -775px 0px;
  }
  #mapmenu .nav-list > li.timemanager.active .icon {
    background-position: -625px 0px;
  }

  .nav .active > a .icon-white, .nav li > a:hover .icon-white, .nav li > a:focus .icon-white {
    background-image: url(images/glyphicons-halflings-white.png);
  }
#content #message.span6{         /* calc 10% au lieu de 100% pour ne plus afficher le message de position 15 mars Modifs */
  /*  left: -140px; /* avant 60 px 
    width: calc(10% - 70px);*/
  }
 #right-dock{
    margin-left: auto; /* Modifs suite à erreur sur affichage atlas avant margin : 0; */
  }
}
/*@media (hover: none) and (pointer: coarse) and (orientation: portrait){ */
  #docks-wrapper{
    flex-direction: column;
  }
  /*}*/
  
  #sub-dock{
    width: 100%;
  
}
  /*TODO
  Cacher
  */

