:root {
  --vert: #02b26a;
  --orange: #f4ab00;
  --rouge: #d80909;
  --titres: #2c676b;
  --titres2: #78847d;
}

html {
	font-family: "Open Sans", sans-serif;
	font-size: 10px;
	line-height: 1.4;
}

h1, h2, h3 {
	font-family: "Montserrat", sans-serif;
	font-size: 1.8rem;
	margin: 0;
	color: var(--titres);
}

h2 {
	color: var(--titres2);
}

p, ul {
	font-size: 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: black;
	text-underline-offset: 4px;
}

hr {
	border: 0;
	height: 1px;
	background: #ccc;
	margin: 20px 0;
}

span.vert {
	color: var(--vert);
}

span.orange {
	color: var(--orange);
}

span.rouge {
	color: var(--rouge);
}

.mobile {
	display: none;
}

.nomobile {
	display: block;
}
	

body {
	height: 100%;
	margin: 0;
	position: relative;
	font-size: 1.4rem;
    overflow: hidden;
}

#map-wrapper {
	height: 100%;
	position: relative;
	display: flex;
	justify-content: end;
}

#panneau {
	position: absolute;
	left: 0;
	z-index: 10000;
	height: 100%;
	width: 300px;
	padding: 10px;
	background: #f1f1f1;
	box-sizing: border-box;
	-webkit-box-shadow: 5px 0px 10px 0px rgba(0,0,0,0.3); 
	box-shadow: 5px 0px 10px 0px rgba(0,0,0,0.3);
	display: flex;
    flex-direction: column;
    height: 100%;
}

.logo { 
	width: 180px;
	cursor: pointer;
}

h1 {
	text-transform: uppercase;
	margin: 10px 0 0;
}

.filtre {
	margin-bottom: 20px;
}

.filtre.site > div,
.filtre.polluants ul:not(.menu) li {
	display: flex;
	margin-top: 10px;
	position: relative;
}

.filtre.polluants li a {
	padding: 5px;
	border-radius: 5px;
	position: relative;
	border: 1px solid #ccc;
	cursor: pointer;
	text-decoration: none;
	flex: 1;
}

.filtre.polluants li.active a {
	color: white;
	background: var(--titres) !important;
}

.filtre.site > div img,
.filtre.polluants li img {
	margin: auto auto auto 10px;
	cursor: pointer;
}

.filtre.site .info-popin,
.filtre.polluants .info-popin {
	position: absolute;
	bottom: 0;
	left: 300px;
	width: 400px;
	padding: 10px;
	background: white;
	display: none;
	border-radius: 5px;
}

.filtre.site > div img:hover + .info-popin,
.filtre.polluants li img:hover + .info-popin {
	display: block;
}

.filtre.polluants .info-popin > span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.filtre.annee select {
    width: 90%;
    background: none;
    border-radius: 5px;
    border-color: #ccc;
    padding: 5px;
	margin-top: 10px;
	font-size: 1.4rem;
}

.filtre.annee select option:disabled {
	color: #cccccc;
}

.filtre.site {
	display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filtre.site input {
    background: none;
    border-radius: 5px;
    border-color: #ccc;
    padding: 5px;
	font-size: 1.4rem;
	border: 1px solid #ccc;
	flex: 1;
}

p.list {
	margin: 5px 0;
	font-size: 1.2rem;
    width: 90%;
}

.list-container {
	list-style: none;
	display: block;
	width: 91%;
	overflow-x: hidden;
	overflow-y: scroll;
	margin-top: 10px;
    padding-right: 17px;
	flex: 1;
}

.list-container::-webkit-scrollbar {
  width: 5px;
}

.list-container::-webkit-scrollbar-track {
  background: #f9f9f9;
}

.list-container::-webkit-scrollbar-thumb {
  background: var(--titres);
}

.list-container::-webkit-scrollbar-thumb:hover {
  background: #0a3b69;
}

.list-container > li {
	display: flex;
    justify-content: space-between;
    width: 100%;
	padding: 5px 0;
    border-bottom: 1px solid #ccc;
}

.list-container > li:nth-child(odd) {
    background: #ececec;
}

.list-container > li span {
	margin: auto 0;
	hyphens: auto;
}

.list-container > li span:first-child {
	flex: 1;
    padding-right: 5px;
}

.list-container > li span:last-child {
	width: 60px;
	margin: auto;
	padding: 2px;
	text-align: center;
    border-radius: 5px;
}

.list-container > li span a {
	text-decoration: none;
}

#map { 
	width: calc(100% - 300px);
	height: 100%;
	position: relative;
}

#alertozone {
	position: absolute;
	top: 10px;
	left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 660px;
    max-width: 96%;
	box-sizing: border-box;
    background: white;
    border: 4px solid var(--rouge);
    padding: 10px;
    text-align: center;
	font-size: 1.4rem;
	display: none;
}

#alertozone a {
	color: var(--rouge);
}

.zoom {
	position: absolute;
	top: 130px;
	right: 10px;
	z-index: 1000;
	width: 30px;
	height: 30px;
	line-height: 30px;
	background: white;
	border: 2px solid rgba(0,0,0,0.2);
	border-radius: 2px;
	cursor: pointer;
}

#zoommarathon {
	top: 175px;
}

.zoom img {
    width: 100%;
}

.leaflet-popup-content {
    width: 350px !important;
	margin: 0;
	padding: 15px 5px;
	font-family: "Open Sans", sans-serif;
}	

.leaflet-popup-content p {
    margin: 0;
	font-size: 1.4rem;
	line-height: 1.2;
}

.leaflet-popup-content p.mp-nom {
	font-family: "Montserrat", sans-serif;
	font-size: 1.8rem;
	font-weight: 700;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.leaflet-popup-content .mp-sport {
    width: 30px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.leaflet-popup-content p.mp-adresse {
	font-style: italic;
	letter-spacing: -0.5px;
	margin-top: 5px;
}

.leaflet-popup-content p.mp-bouton {
	background: #ccc;
	border-radius: 10px;
	text-align: center;
	font-weight: 700;
	padding: 5px 0;
	margin: 15px 0;
}

.leaflet-popup-content p.mp-qualite,
.leaflet-popup-content p.mp-indice {
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 15px;
}

.leaflet-popup-content p.mp-indice {
	padding-left: 10px;
}

.leaflet-popup-content p.mp-disclaimer {
	font-size: 1.2rem;
	text-align: justify;
}

.leaflet-popup-content p.mp-disclaimer a {
	color: black;
}

.marker-popup {
	*display: flex;
	padding: 10px 20px;
}

.marker-popup > div {
	padding: 0;
}

.marker-popup > div.left-col {
	*width: 100%;
}

.marker-popup > div.right-col {
    *width: 100%;
    padding: 0 24% 0 10px;
    background-repeat: no-repeat;
	background-position: right;
}

.marker-popup .mp-drapeau {
    display: block;
	width: 120px;
    margin: 7px auto 5px;
}

.marker-popup .mp-drapeau.marathon {
	width: 150px;
}

.marker-popup .mp-marathon {
	font-size: 1.6rem;
    line-height: 1.4;
}

.marker-popup .mp-marathon span {
	font-weight: bold;
}

.legende:not(.info) {
	background: rgb(255 255 255 / 70%);
	position: absolute;
	right: 10px;
	bottom: 20px;
    z-index: 1000;
	width: max-content;
	max-width: 90%;
	*transform: translateX(-50%);
}

.legende:not(.info) ul {
	list-style: none;
	*display: flex;
    *justify-content: space-evenly;
	*text-align: center;
    padding: 0;
}

.legende:not(.info) ul li {
	padding: 0 15px;
	border-bottom: 1px solid grey;
}

.legende ul li:last-child {
	border: 0;
}

.legende ul li span {
	display: inline-block;
}

.legende ul li span:before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	margin-right: 10px;
	vertical-align: middle;
}

.legende ul li.vert span:before {
	background: var(--vert);
}

.legende ul li.jaune span:before {
	background: #ecdd13;/*#f1c40e*/
}

.legende ul li.orange span:before {
	background: var(--orange);
}

.legende ul li.rouge span:before {
	background: var(--rouge);
}

.legende.info.tempsreel {
	display: none !important;
}

/* .show-moyenne .legende.info.tempsreel { */
	/* display: none; */
/* } */

.legende.info.moyenne {
	display: flex;
}

/* .show-moyenne .legende.info.moyenne { */
	/* display: flex; */
/* } */

.legende.info > span {
	text-decoration: underline;
    text-underline-offset: 3px;
	margin-right: 20px;
}

.legende.info ul li:first-child {
	margin-top: 0;
}
	
#popin { 
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10000;
	height: 100%;
	background: rgb(0 0 0 / 60%);
	display: none;
    justify-content: center;
    width: 100%;
}

#popin-wrapper { 
	width: 600px;
	max-width: 80%;
	max-height: 90%;
    margin: auto;
    background: white;
	position: relative;
	padding: 20px 30px 30px;
    overflow: hidden;
	border-radius: 10px;
	-webkit-box-shadow: 0px 0px 15px 10px rgba(0,0,0,0.5); 
	box-shadow: 0px 0px 15px 10px rgba(0,0,0,0.5);
}

#popin-wrapper .close { 
	position: absolute;
	top: 10px;
	right: 20px;
	width: 35px;
	cursor: pointer;
	opacity: 0.6;
}

#popin-wrapper .logo { 
	float: left;
	width: 70px;
}

#popin-menu {
	list-style: none;
	display: flex;
    margin: 40px 0 20px;
}

#popin-menu > li {
	padding: 0 20px;
	border-right: 1px solid grey;
	cursor: pointer;
	font-size: 1.6rem;
	text-transform: uppercase;
}

#popin-menu > li:last-child {
	border: 0;
}

#popin-menu > li.active {
	font-weight: bold;
}

#popin-content {
	padding: 20px 0 0;
	border-top: 1px solid #ccc;
	max-height: 1000px;
	transition: max-height 1s; 
}

#popin-content > div {
	transition: opacity 2.5s, max-height 2.5s;
	overflow: hidden;
}

#popin-content > div:not(.active) {
	height: 0;
	max-height: 120px;
	opacity: 0;
}

#popin-content > div.active {
	height: auto;
	max-height: 1000px;
	opacity: 1;
}

#popin-content h2 {
	margin-bottom: 20px;
}

#popin-content p {
	text-align: justify;
}

.loader {
	border: 8px solid #02b26a;
	border-top: 8px solid #0265a8;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	animation: spin 2s linear infinite;
	position: absolute;
	z-index: 9999;
	top: calc(50% - 30px);
	left: calc(50% - 30px);
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@media ( max-width: 999px ) {
	.mobile {
		display: block;
	}
	
	.nomobile {
		display: none !important;
	}
	
	.entete {
		padding: 10px;
	    background: #f1f1f1;
		-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3); 
		box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);
		position: relative;
		z-index: 1000;
	}
	
	.logo {
		width: 40px;
		float: left;
		padding: 0 10px 0 0;
	}
	
	h1 {
		margin: 0;
	    font-size: 1.2rem;
		line-height: 1.2;
	}
	
	#panneau {
		position: absolute;
		bottom: 0;
		left: 0;
		height: 0;
		min-height: 300px;
		width: 100%;
		-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3); 
		box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);
	}
	
	#panneau h2 {
		font-size: 1.4rem;
	}
	#panneau .filtre h2 {
		display: none !important;
	}

	#panneau ul.menu {
		display: flex;
	}
	
	#panneau ul.menu li {
		padding: 5px 10px;
		border: 1px solid #e2e2e2;
		cursor: pointer;
		background: #f7f7f7;
	}
	
	#panneau ul.menu li {
		-webkit-box-shadow: inset 0px -5px 2px -5px rgba(0, 0, 0, 0.5);
		box-shadow: inset 0px -5px 2px -5px rgba(0, 0, 0, 0.5);
	}
	
	#panneau ul.menu li.active {
		background: #f1f1f1;
		border-width: 1px 2px 0;
		border-left-color: #d3d3d3;
		border-right-color: #d3d3d3;
		box-shadow: none;
	}

	#panneau ul.menu li.active:first-child {
		border-left-width: 1px;
		border-left-color: #e2e2e2;
	}
	
	#panneau ul.menu li.active:last-child {
		border-right-width: 1px;
		border-right-color: #e2e2e2;
	}
		
	#panneau .filtre:not(.active) {
		display: none;
	}
		
	.filtre.site > div, .filtre.polluants ul:not(.menu) li {
		position: static;
	}
	
	.filtre.polluants li a {
		padding: 3px 5px;
	}
	
	.filtre.polluants .legende.info ul li {
		margin-top: 5px;
	}
	
	.filtre.polluants .legende.info ul li:first-child {
		margin-top: 0;
	}
	
	.filtre.annee select {
		margin-top: 20px;
	    padding: 10px;
	}
	
	.filtre.site > div img:hover + .info-popin,
	.filtre.polluants li img:hover + .info-popin {
		display: none;
	}
	
	.filtre.site .info-popin, .filtre.polluants .info-popin {
		top: 0;
		bottom: unset;
		left: 0;
		width: 92%;
        height: 100%;
		max-height: 215px;
        overflow-y: scroll;
	    box-sizing: border-box;
		z-index: 100;
		font-size: 1.2rem;
		letter-spacing: -0.15;		
	}
	
	.filtre.polluants .info-popin .legende.info ul li {
		font-size: 1.2rem;
	}
	
	.list-container {
		flex: auto;
		max-height: 120px;
	}
		
	#map { 
		width: 100%;
		height: calc(100% - 300px);
	}
	
	#alertozone {
		max-width: 70%;
		font-size: 1.2rem;
	}

	
	.leaflet-popup-content {	
		width: inherit !important;
	}
	
	.marker-popup {
		display: block;
	}
	
	.leaflet-popup-content {
		width: 260px !important;
	}

	.marker-popup > div.right-col,
	.marker-popup > div.left-col {
		width: 100%;
		box-sizing: border-box;
	}
	
	.leaflet-popup-content p.mp-nom {
		font-size: 1.4rem;
	}
		
	#popin-menu {
		display: block;
		margin-top: 0;
	}
	
	#popin-menu > li {
		border: 0;
	    margin-bottom: 6px;
	}
	
	#popin-wrapper {
		max-height: 80%;
	}
	
	#popin-content > div.active {
		max-height: 50%;
		overflow: scroll;
	}
}

@media ( max-width: 500px ) {
	.logo {
		width: 45px;
	}
}
















