/* 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;
}
* {
	box-sizing: border-box;
}
/******** End reset *********/
html{
	position: fixed;
	width:100%;
}
body {
	font-family: 'Titillium Web', sans-serif;
	
}

#map {
	width: 100%;
	height: 500px;
}
/*

*

**

*
*
*
*
*
*/
header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	/*background-color: #242529;*/
	background: url(../img/banner.jpg);
	background-color: #943DA5;
	background-repeat: no-repeat;
	background-position: top;
	/*border-bottom: 2px solid #3e4144;*/
	box-shadow: 3px 3px 3px rgba(0,0,0,0.3);
	z-index: 200;
	position: relative;
	
}


h1 {
	font-family: 'Abel', sans-serif;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 50px;
	text-shadow: 2px 2px 4px #111;
}
/*
*
*
*
*
*
*
*
*
*/

.logo_ave {
	max-width: 200px;
	padding-left: 20px;
}
.fb-share-button {
	padding-right: 20px;
}
strong {
	font-weight: bold;
}
nav {
	background: #54ac3a;
	padding: 5px 20px;
	display: flex;
	justify-content: space-between;
}
nav img {
	height: 40px;
}
.flex-container {
	display: flex;
}

.mapboxgl-popup{
	
	z-index:999;
}

.mapboxgl-popup-content  h3 {
	font-family: 'Abel', sans-serif;
	width:100%;
	padding:0;
	margin: 0;
	/*text-shadow: #640408 3px 2px 0;*/
	position: relative;
	font-size: 24px;
	/*color: #3C3C41;*/
	color:#D63A76;
	font-weight: bold;
	/*-webkit-border-image: -webkit-linear-gradient(right,#D63A76,#8C0038) 100% 1;*/
	background-image: -webkit-linear-gradient(-216deg,#D63A76 0,#8C0038 50%,#D63A76 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mapboxgl-popup-content  {
	max-width: 600px;
	/*border-bottom: 5px #AC1953 solid;*/
	box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.8) !important;
	font-family: 'Titillium Web', sans-serif !important;
	font-size: 16px;
	background: #fff;
	border-width: 0 0 5px;
    border-style: solid;
    -webkit-border-image: -webkit-linear-gradient(right,#D63A76,#8C0038) 100% 1;
    bottom: -2px;
    top: auto;
	transition: 1s;
}


.mapboxgl-popup-content:hover{
	box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.8) !important;
	border-width: 0 0 10px;
    margin-bottom: 5px;
	transition: 0.5s;
}
.mobile-content-container {
	border-radius: 0 0 30px 30px;
	font-family: 'Titillium Web', sans-serif !important;
	font-size: 16px;
	background: #fff;
	box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5) !important;
	border-bottom: 5px solid #D63A76;
}
.mobile-content-container-inner.tapped {
	background: url(../img/tap.png) no-repeat !important;
	background-size: 10% !important;
	background-position: bottom right !important;
	overflow: hidden;
}
.mobile-content-container-inner p, .mapboxgl-popup-content p {
	line-height: 1.2em;
	padding: 5px;
	
}
.mobile-content-container-inner p:nth-child(even):not(:last-child), .mapboxgl-popup-content p:nth-child(even):not(:last-child) {
  background: #f0d8e1;
	border-bottom: 1px solid #d63a76
}
.sonar-emitter {
	display: block;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 0 0 rgba(204,169,44, 0.4);
	animation: pulse 2s infinite;
	position: absolute;
	bottom: 12px;
	right: 23px;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(214,58,118, 0.4);
  }
  70% {
      -webkit-box-shadow: 0 0 0 30px rgba(214,58,118, 0);
  }
  100% {
      -webkit-box-shadow: 0 0 0 0 rgba(214,58,118, 0);
  }
}
@keyframes pulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(214,58,118, 0.4);
    box-shadow: 0 0 0 0 rgba(214,58,118, 0.4);
  }
  70% {
      -moz-box-shadow: 0 0 0 30px rgba(214,58,118,  0);
      box-shadow: 0 0 0 30px rgba(214,58,118,  0);
  }
  100% {
      -moz-box-shadow: 0 0 0 0 rgba(214,58,118,  0);
      box-shadow: 0 0 0 0 rgba(214,58,118,  0);
  }
}

.mapboxgl-popup-close-button {
	padding-top: 13px;
	padding-right: 21px;
	font-size: 30px;
	color: #000;
	z-index: 1000;
}
.mapboxgl-popup-content h3, .mobile-content-container h3 {
	
	/*background-color: #AC1953;*/
	width:100%;
	text-align: left;
	border-bottom: 2px solid #FFF;
	padding-bottom: 5px;
	margin-bottom: 20px;
	font-size: 32px;
	padding-right: 42px;
	padding-left: 10px;
	line-height: 1em;
}
.map-container {
	position: relative;
}
.intro {
	max-width: 860px;
	margin: auto;
	font-size: 22px;
	padding: 10px;
	text-align: center;
}
/*
*
*
*
*
*
*
*
*
*
*
*/
.geocoder{
	width:100%;
}

.filter-container {
	position: absolute;
 	top: 20px;
  	z-index: 500;
  	width:80%;
 	background: #fff;
 	margin: -10px auto 0px auto;
 	left: 0;
 	right: 0;
	padding: 0px 20px 10px 20px;
	box-shadow: 3px 3px 3px rgba(0,0,0,0.2);
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	border:0px;
	/*border-bottom:2px #AC1953 solid;*/
}
.filter-container-inner {
	display: flex;
	justify-content: center;
	align-items: center;
}
.filter-container h4{
	color:#AC1953;
	font-weight: bold;
}
#txt-searchautocomplete-list {
	position: absolute;
	top: 95%;
	padding: 1rem;
	background: #fff;
	width: 100%;
	border-top: 3px solid #d43a75;
	line-height: 1.2em;
}
#txt-searchautocomplete-list strong {
	color: #d43a75;
}
#txt-searchautocomplete-list div:hover {
	color: #fff;
	background: #d43a75;
}
#txt-searchautocomplete-list div:hover strong {
	color: #fff;
}
.filter-item{
	display: flex;
	flex-direction: row;
	margin-left: 1%;
	margin-bottom: 0px;
	margin-right: 0px;
	margin-top: 0;
	padding:0; 
	width:19%;
	height: 100%;
	cursor: pointer;
	position: relative;
}


.check-container{
	background-color: transparent !important;
	/*color:#AC1953 !important;*/
	color:#111 !important;
	transition: 0.5s;
}

.check-container:hover{
	color:#D23773 !important;
	transition: 0.5s;
}

#txt-search {
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 1rem;
	padding-right: 0.8rem;
	padding-right: 2rem;
}
#txt-search:active, #txt-search:focus {
	border-bottom: 2px #AC1953 solid;
}

/* CHECKBOX STYLE
   ============================= */


/* The container */
.check-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1em;
	line-height: 25px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
	
}

/* Hide the browser's default checkbox */
.check-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  cursor: pointer;
}

/* On mouse-over, add a grey background color */
.check-container:hover input ~ .checkmark {
  	background-color: #ccc;
	cursor: pointer;	
}

/* When the checkbox is checked, add a blue background */
.check-container input:checked ~ .checkmark {
  background-color: #d43a75;
	cursor: pointer;	
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
	cursor: pointer;	
}

/* Show the checkmark when checked */
.check-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.check-container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}



/* END of checkbox style*/
/*
*
*
*
*
*
*
*
*
*
*
*/

.mapboxgl-popup-content tr:last-of-type, .mobile-content-container tr:last-of-type {
	border: 0;
}
.mapboxgl-popup-content td, .mobile-content-container td {
	padding: 5px 0;
}
.mapboxgl-popup-content tr td:nth-child(2), .mobile-content-container tr td:nth-child(2) {
	max-width: 300px;
	padding-left: 10px;
}
.mapboxgl-popup-content table, .mobile-content-container table {
	line-height: 1.2em;
	color: #fff !important;
}
.mapboxgl-popup-content a, .mobile-content-container a {
	color: #fff;
	font-weight: bold;
	background-color: #d63a76;
	border-radius: 5px;
	padding: 5px 10px;
	display: inline-block;
	border-bottom: 3px solid #a32c5a;
	text-decoration: none;
	transition: 0.5s;
}
.mapboxgl-popup-content a:hover, .mobile-content-container a:hover { 
	border-bottom: 1px solid #a32c5a;
}
.mobile-content-container {
	display: none;
	font-size: 12px;
	max-height: 50vh;
	overflow-y: auto;
	position: relative;
	z-index: 100;
}

.filter-item.inline {
	display: flex;
	justify-content: space-around;
	align-items: center;
}

.mapboxgl-ctrl-geocoder {
	min-width: 0 !important;
	width: 127px !important;
}


/*
*
*
*
*
*
*
*
*
*/



option{
	min-height: 48px;	
}


.filter-container label,.filter-container select {
		    width: 100%;
    		border-radius: 0px;			
			margin-top: 1%;
			cursor: pointer;
}

.check-container{
	margin: auto 0px !important;
}

.filter-container select{
	border:0px;
	/*border-bottom:2px #AC1953 solid;*/
	border-bottom: 2px solid transparent;
	transition: 0.5s;
}

.filter-container select:hover{
	border-bottom: 2px solid #D23773;
	transition: 0.2s;
}

.check-container, .check-container label, .check-container select{
	border:none;
}

#select_province, #select_mois, #select_semaine{
	min-height: 48px;
	
}

#select_province *{
	font-weight: 48px;
	cursor: pointer !important;
}

/*--- select style from : https://stackoverflow.com/users/3709775/steven-iseki ---*/

select{
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' 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: 100%;
  background-position-y: 50%;
  border: 1px solid #dfdfdf;
  border-radius: 2px;
  margin-right: 2rem;
  padding: 0.8rem;
  padding-right: 2rem;
  line-height: 1.2em;
}

.remarque-mobile{
	display: none;
}

.remarque-desktop {
	display: flex;
	flex-wrap: wrap;
	max-width: 300px;
	justify-content: flex-end;
	padding: 10px;
}

#icon{
	display:none;
}
.logo_ave {
	width: 200px;
	height: 46px;
}

#remarque{
	width:100%;
	margin-top: 5px;
	margin-left:25px;
	text-align: left;
	align-self: left;
	color:#D43975;
	font-size: 0.9em;
}
/*
*
*
*
*
*
*
*
*
*
*
*
*
*/

.search-btn{
	display:none;
}
@media screen and (max-width: 800px) {
	html{
		position: fixed;
		overflow-x: hidden;
	}
	body{
		max-width: 100%;
		max-height: 100%;
		height: auto;
		overflow-x: hidden;
	}
	#defaultCanvas0{
		height:100% !important;
	}
	
	.mobile-content-container{
		position:absolute;
		top:0;
		left:0;
		right:0;
		max-width: 100%;
		box-sizing: content-box;
		padding: 0;
		padding-left:10px;
		padding-right:10px;
		margin:0;
		border-radius: 0px;
	}
	
	.mobile-content-container h3{
		font-size: 2em;
	}
	
	.mobile-content-container p{
		font-size: 1em;
	}
	
	#mycontent{
		font-size: 1em;
	}
	

	header {
		
		flex-direction: column;	
		padding: 0;
		margin:0;
		height: 100%;
		min-height: 100px;
		margin-top: 0px;
		border: none;
		z-index:200;

	}
	h1 {
		font-size: 32px;
		padding: 0 20px;
		padding-bottom: 10px;
	}
	h1:after {
		display: none;
	}
	
	#map {
	position: relative;
	width: 100%;
	height: calc(100vh - 180px) !important;
	z-index: 0;	
	}
	.intro {
		font-size: 16px;
	}
	
	.mobile-content-container {
		display: none;
		padding: 10px 20px;
	}
	.mobile-content-container h3 {
		text-align: center;
		color: #D63A76;
		border-bottom: 2px solid #D63A76;
		padding: 5px 10px;
	}
	
	.mapboxgl-popup-content tr td:nth-child(2) {
		max-width: 200px;
		padding-left: 10px;
	}
	
.filter-container {
	text-align: left;
	justify-content: space-between;
	position: absolute;
	top: 100%;
	left: 0;
	border-top: 2px solid #d43a75;
	z-index: 10000;
	border-radius: 0 0 0px 0px;
	cursor: default;
	box-shadow: 0px 10px 1px #111, 0 10px 20px #222;
	margin-top: -92px;
	padding-top: 5px;
	padding-bottom: 10%!important;
	width: 100vw;
	
	display: flex;
  	flex-wrap: nowrap; 
  	overflow-x: auto;
  	-webkit-overflow-scrolling: touch; 
  	-ms-overflow-style: -ms-autohiding-scrollbar; 
	}#txt-searchautocomplete-list {
		position: relative;
	}
	
	.filter-container h4{
		width:100%;
	}
	
	.filter-container select {
			width: auto;
		    height: 40px;
    		border-radius: 5px;
	}
	
	.filter-container label,.filter-container select {
		    width:250px;
    		
	}
	

	.filter-container::-webkit-scrollbar {
  		display: none;
	}
	.filter-item {
			margin: 10px 0;
		 	flex: 0 0 auto; 
			width: auto;
			height: 100%;
			display: block;
	}
	.filter-container label, .filter-container select {
		color: #000;
		width: auto;
}
	.filter-container select {
		height: auto;
		border-right: 1px solid #d6c1c9;
		border-bottom: 2px solid #D23773;
	}
	.filter-container select:hover, .filter-container select:active, .filter-container select:focus {
		border-bottom: 4px solid #D23773;
	}
	
	.mapboxgl-popup-content {
		max-width: 80% !important;
	}
	.logo_ave {
		max-width: 150px;
		padding-left: 0;
		height: auto;
		padding-top: 5px;
	}
	
	
	
	.mapboxgl-popup-content  {
	max-width: 600px;
	border-radius: 0px !important;
	box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.8) !important;
	font-family: 'Titillium Web', sans-serif !important;
	font-size: 16px;
	background: -moz-linear-gradient(top, rgba(60,60,60,1) 0%, rgba(38,38,38,1) 100%) !important;
	background: -webkit-linear-gradient(top, rgba(60,60,60,1) 0%,rgba(38,38,38,1) 100%) !important;
	background: linear-gradient(to bottom, rgba(60,60,60,1) 0%,rgba(38,38,38,1) 100%) !important;
}
	.filter-item.inline {
		flex-direction: column;
	}
	
	.mapboxgl-ctrl-top-right {
		top: 25px !important;
	}
	
	.remarque-desktop{
		display: none;
	}
	
	.remarque-mobile{
		width:100%;
		text-align: center;
		margin: 1% auto;
		display: inline-block;
	}

	.fb-share-button { 
		display: inline-block;
		position:relative;
		padding-right: 0;
		margin-top: 10px;
		z-index: 1000;
	}
	
	.remarque-mobile p {
		color:grey;
		vertical-align:super;
		display: inline-block;
		margin-left: 1%;
		z-index: 999;
	}
	
	#defaultCanvas0{
		height:100%;
	}
	
	#icon{
		display: none;
		position: absolute;
		min-width:50px;
		width:15vw;
		bottom:0;
		left:0;
		z-index: 99999;
	}
	
	#icon:focus{
		display:none;
	}

	.check-outer {
		display: flex;
	}
	.check-container {
		padding-right: 15px;
	}
	
	.search-btn{
		position: absolute;
		top:100%;
		left:20px;
		margin-top: -125px;
		width:100%;
		display: inline-block;
		z-index: 999;
	}

	.search-btn-text{
		font-size: 2em;
		color:#D23773;
		color: -moz-linear-gradient(top, rgba(60,60,60,1) 0%, rgba(38,38,38,1) 100%) !important;
	    color: -webkit-linear-gradient(top, rgba(60,60,60,1) 0%,rgba(38,38,38,1) 100%) !important;
	    color: linear-gradient(to bottom, rgba(60,60,60,1) 0%,rgba(38,38,38,1) 100%) !important;
			
	}
	
	#remarque{
	    flex: 1 0 100%;
		margin-left: 0px;
	}
}
