/*
	RESET CSS
*/


/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*
	GENERAL
*/
html, body {
	font-family: 'Arial';
	height: 100%;
	overflow: hidden;
}

/*
	HEADER
*/
header {
	height: 45px;
	display: flex;
	align-items: center;
	background-color: #E0006C;
	padding-left: 10px;
}
header img {
	background-color: white;
	width: 55px;
	padding: 5px;
	margin-right: 10px;
	border-radius: 5px;
	cursor: pointer;
}
header h1{
	text-align: right;
	font-size: 18px;
	margin-right: 10px;
	cursor: pointer;
}

/*
	CONTENT
*/

#content {
	display: flex;
	height: calc(100% - 45px);
	background-color: #E0006C;
}

/*
	MENU
*/

#menu {
	width: 400px;
	min-width: 320px;
	height: 100%;
	z-index: 401;
	position: relative;
}

/*
	FICHE
*/
#fiche{
	margin: 0 10px 10px 10px;
	background-color: white;
	border-radius: 2px;
	box-shadow: 0 0 10px rgb(0 0 0 / 20%);
	height: calc(100% - 240px);
}
#fiche-header{
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
#fiche-header h2{
	color:#E0006C;
	font-size: 18px;
	text-shadow: 1px 1px 0px #ef828273;
}
#fiche-dl{
	position:absolute;
	display:none;
	left:0;
	width: 35px;
	height: 35px;
	cursor: pointer;
}
#fiche-loc{
	position:absolute;
	top: 7px;
	right:10px;
	width: 35px;
	height: 35px;
	cursor: pointer;
}
#fiche-content{
	overflow-y : auto;
	height: calc(100% - 45px);
	display: flex;
	flex-direction: column;
	background-color: #f1f1f1;
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	font-size: 13px;
}
#fiche-content h3 {
	padding: 5px;
	font: bold 14px Arial;
}
#fiche-content .ligne {
	display: flex;
	margin: 3px 5px;
	min-height: fit-content; /*SAFARI*/
}
#fiche-content .ligne div{
	width: 50%;
}
#fiche-content .ligne div:first-of-type{
	padding-left: 5px;
}
#fiche-content .ligne div:last-of-type{
	background-color: white;
	padding: 2px 0 2px 2px;
	font-style: italic;
}

/*
	STATS
*/
#stats {
	margin: 10px;
	background-color: white;
	border-radius: 2px;
	box-shadow: 0 0 10px rgb(0 0 0 / 20%);
	position: absolute;
	bottom: 0;
	width: calc(100% - 20px);
	min-height: 205px;
}
#stats-header{
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
}
#stats-header h2{
	color:#E0006C;
	font-size: 18px;
	text-shadow: 1px 1px 0px #ef828273;
}
#stats-content{
	margin-bottom: 10px
}
#stats-content div{
	padding: 5px 10px;
	font-size: 15px;
}
#stats-content div span:last-of-type{
	font-weight: bold;
	margin-left: 5px;
	background-color: #e0006c26;
	padding: 0 4px;
	border-radius: 2px;
}
	
/*
	VOLETS
*/
#volets {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	position: relative;
}

/*
	MAP
*/

#map {
	width: 100%;
	flex: 1;
	border-top-left-radius: 5px;
	z-index: 400;
	background-color: white;
}
.fa-map-marker,.fa-spin,.fa-spinner{
	background-image:url(../img/locator.png);
	background-size:25px;
	width:26px;
	height:26px;
	display:block;
	cursor: pointer;
}
.leaflet-touch .leaflet-bar a{
	width:26px;
	height:26px;
	line-height:26px
}

/*
	SEARCH
*/

#div-search{
	position: absolute;
	z-index: 400;
	top:50px;
}
.searchlocationresult{
    width: 300px;
    height: 30px;
    border: 1px solid lightgrey;
    margin-left: 10px;
    background-color: white;
    display: flex;
    align-items: center;
    padding-left: 5px;
    font: normal 12px Arial;
    cursor: pointer;
}
.searchlocationresult span:first-of-type{
	width: 90px;
	min-width: 90px;
}
.searchlocationresult span:last-of-type{
	margin-left: 5px;
}
.searchlocationresult:hover{
    background-color: lightgrey;
}
#search-location-input{
    width:  272px;
    float: left;
    border-style: solid;
	border-width: 1px;
	height: 30px;
	box-sizing: border-box;
    padding-left: 5px;
    box-shadow: 0 1px 2px rgba(0 ,0 ,0 ,0.65);
    margin-left: 10px;
	font-size: 15px;
	font-family: Arial;
	border-radius: 0;
}
#searchlocationresults{
	z-index: 1001;
}
#searchlocationresults li.selected {
    background-color: lightgrey;
}
#search-button{
    display : block;
    float : left;
    width : 28px;
    height : 28px;	
    background :  url('../img/search-icon.png') no-repeat 3px 3px #fff;
    border-style: solid;
	border-width: 1px;
    box-shadow :  0 1px 2px rgba(0 ,0 ,0 ,0.65);
    pointer-events: none;
}

/*
	LÉGENDE
*/

#legend{
	background-color: white;
	position: absolute;
	z-index: 400;
	bottom:50px;
	right: -2px;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	padding: 5px 0 5px 5px;
	border: 2px solid #e0006c;
	max-width: 135px;
}
#legend div{
	display: flex;
	align-items: center;
	margin: 5px 0;
}
#legend div img{
	width: 25px;
	height: 25px;
}
#legend div span{
	margin-left: 5px;
	font-size: 12px;
}

/*
	TABLEAU
*/

#excel{
	cursor: pointer;
	position: absolute;
	right: 5px;
	bottom: 7px;
	background-image: url("../img/excel.png");
	background-size: 35px;
	background-position: center;
	background-repeat: no-repeat;
	width: 35px;
	height: 35px;
}

#filters{
	display: flex;
	align-items: center;
	padding: 0 0 10px;
}
#filters > div:not(:last-of-type){
    display: inline-block;
    max-width: 210px;
	font-size: 15px;
	margin-right: 20px;
	cursor: pointer;
}
#filters img{
	width: 16px;
	height: 16px;
	vertical-align: text-bottom;
}
.filters {
	color: #e0006c;
}

#tableau {
	position: absolute;
	height: calc(100% - 30px);
	background-color: white;
	border-top-left-radius: 5px;
	box-shadow: 0 0 10px rgb(0 0 0 / 20%);
	overflow: hidden;
	width: 100%;
	padding: 50px 5px 0 5px;
	box-sizing: border-box;
	z-index: 399;
}
#tableau table{
	table-layout:fixed;
	word-break:break-word;
	width: 100%;
	overflow-x: scroll;
}
#tableau th{
	font-size: 14px;
}
#tableau td{
	border: 1px solid #cacaca;
	font-size: 13px;
	padding: 3px;
	vertical-align: middle;
}
#tableau table tbody tr{
	cursor: pointer;
}
#tableau table tbody tr:hover{
	background-color: #e0006c26;
}
#tableau input.reset{
	display: none;
}
#reset{
	flex: 1;
	text-align: right;
	margin-right: 20px;
}
#reset img{
	width: 16px;
	height: 16px;
	cursor: pointer;
}


/**
 * Grid layout custom classes
 */

 /* main container */
.grd-main-cont{
	overflow: hidden;
}

/* headers container */
.grd-head-cont{
	overflow: hidden;
	background-color: #e0006c;
	margin-right: 18px;
}

/* header cell */
.grd-head-cont th{
	background-color: #e0006c;
	padding: 0.5em;
	color: #fff;
	border-right: 1px dotted #fff;
	height: 40px;
	overflow: hidden;
	text-overflow: ellipsis;
	position: relative;
	background-clip: padding-box; /*FIREFOX*/
}
.grd-head-cont th .sort-arrow{
	bottom: 2px;
	right: 2px;
}

/* table container */
.grd-cont{
	overflow-x: auto;
	overflow-y: scroll;
}

/* cell */
.grd-cont td{
	padding: 0.5em 0.5em;
	border-bottom: 1px solid #ccc;
	border-right: 1px dotted #666;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* head and body tables */
.grd-head-cont table, .grd-cont table{
	font-size: 1.1em;
	border-collapse: collapse;
}

/* bottom toolbar override */
.grd-main-cont > .grd_inf {
	background-color: #f9f9f9;
	border: 0;
}
input.reset{
	cursor: pointer;
}



/*
	ONGLETS
*/
#onglets {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 402;
    display: flex;
    height: 35px;
	box-shadow: 2px 2px 7px 2px rgb(0 0 0 / 30%);
	border-bottom-right-radius: 5px;
}
.onglet {
	font-size: 16px;
	background-color: #f3f3f3;
	padding: 0 15px;
	height: 100%;
	cursor: pointer;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 220px;
	justify-content: center;
}
.onglet.unselect:hover {
	text-shadow: 0 0 0.01px black;
}
.select {
	border-bottom:3px solid #E0006C;
	color:#E0006C;
	font-weight:bold;
	padding-top:4px;
	letter-spacing:-0.6px;
}
.unselect {
	border-bottom:0;
	color:black;
	font-weight:normal;
	padding-top:0;
	letter-spacing:0;
}

/*
	FOOTER
*/
footer {
	height: 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: white;
	background-color: #E0006C;
	font-size: 13px;
	font-style: italic;
	padding: 0 10px;
}
footer img{
	width: 50px;
	vertical-align: top;
}

/*
	RESPONSIVE
*/

@media screen and (max-width: 1600px) {
	#filters > div:not(:last-of-type){
		max-width: 110px;
	}
}
@media screen and (max-width: 1300px) {
	#filters > div:not(:last-of-type){
		font-size: 12px;
		margin-right: 10px;
		max-width: 90px;
	}
}
@media screen and (max-width: 1150px) {
	#filters > div:nth-of-type(6){
		display:none !important;
	}
}
@media screen and (max-width: 1024px) {
	#tableau, #onglets {
		display: none;
	}
	#div-search {
		top: 10px;
	}
}
@media screen and (max-width: 900px) {
	.leaflet-control-layers{
		margin-top: 50px !important;
	}
}
/*
	mobile display
*/
@media screen and (max-width: 800px) {
	#content{
		flex-direction: column;
	}
	#stats{
		display: none;
	}
	#menu {
		height: 25%;
		width: 100%;
	}
	#fiche{
		height: calc(100% - 20px);
	}
}
@media screen and (max-width: 400px) {
	header h1{
		font-size: 16px;
	}
	#fiche {
		margin: 5px;
		height: calc(100% - 10px);
	}
}