body {
	font-family: "Arial", sans-serif;
    margin: 0;
    overflow: hidden;
    background-color: #0fa8d2;
    cursor: grab;
    padding: 0;
	min-width:1024px;
    color: #333;
	white-space: nowrap;
}

#map {
	width: 100%;
	height: 100vh;
}



/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	pointer-events: none;
	}
.leaflet-container {
	overflow: hidden;

	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}

.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 50px;
	height: 50px;
	line-height: 50px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}



/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
	
.menu {
	position: fixed; 
	bottom: 0px;
	left: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
	white-space: nowrap;
	z-index: 9999;
}

.menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 15px;
    padding: 20px 40px;
    font-size: 18px !important;
    background-color: #1f1f1f;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.menu a:hover {
    background-color: #3a3a3a;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
	transition: all 0.5s ease;
}

.menu img {
    height: 26px;
    margin-right: 10px;
}
	
.custom-label {
	position: absolute;
	transform: translate(15px, -10px); /* Décalage pour être à droite */
	color: white;
	font-size: 12px;
	font-weight: bold;
	padding: 2px 5px;
	border-radius: 3px;
	pointer-events: none; /* Évite l'interaction avec la souris */
}


.leaflet-control-zoom {
    position: fixed; /* Fixe les boutons en bas à droite */
    bottom: 15px; /* Distance depuis le bas de la fenêtre */
    right: 15px; /* Distance depuis le côté droit */
    display: flex;
    flex-direction: column; /* Empile les boutons verticalement */
    gap: 5px; /* Espace entre les boutons */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #ffffff; /* Fond blanc autour des boutons */
    overflow: hidden; /* Assure que rien ne dépasse les bordures */
}

.leaflet-control-zoom a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.leaflet-control-zoom a:hover {
    background-color: #f0f0f0;
}

.leaflet-control-zoom a:active {
    background-color: #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.leaflet-control-attribution {
    display: none !important; /* Masque complètement l'attribution */
}



/* Couleurs des catégories */
.label-onduleurs { 
	background-color: #ca8a04; 
	color: white;
}

.label-revente { 
	background-color: #2d92c4;
	color: white;
}

.label-energie { 
	background-color: #f67270; 
	color: white;
}

.label-recharge { 
	background-color: #16a34a;
	color: white;
}

.label-nord-civil { 
	background-color: black ;
	color: white;
}

.label-nord-entreprise { 
	background-color: #f9cc15;
	color:black;
}

.label-centre-civil { 
	background-color: black ;
	color: white;
}

.label-centre-entreprise { 
	background-color: #f9cc15;
	color:black;
}

.label-sud-civil { 
	background-color: black ;
	color: white;
}

.label-sud-entreprise { 
	background-color: #f9cc15;
	color:black;
}

.label-revente-legende { 
	background-color: #2d92c4;
	color: white;
}

.label-onduleurs-legende { 
	background-color: #ca8a04; 
	color: white;
}

.label-energie-legende { 
	background-color: #f67270; 
	color: white;
}

.label-recharge-legende { 
	background-color: #16a34a;
	color: white;
}

.label-civil-legende { 
	background-color: black ;
	color: white;
}

.label-entreprise-legende { 
	background-color: #f9cc15;
	color:black;
}

.label-baun {
	background-color: magenta;
	color:white;
}

.label-cm {
	background-color: darkred;
	color:white;
}

.label-ffs {
	background-color: #ff0000;
	color:white;
}

.label-pawl {
	background-color: brown;
	color:white;
}

.label-mtp {
	background-color: orangered;
	color:white;
}

.label-dmc {
	background-color: rgb(65, 64, 64);
	color:white;
}

.label-fdf {
	background-color: darkgreen;
	color:white;
}


#filter-panel {
	position: fixed;
	top: 10px;
	right: 10px;
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #ccc;
	border-radius: 10px;
	z-index: 1000;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	transition: all 0.3s ease;
	cursor: default;
}

/* Logo visible uniquement lorsque le menu est réduit */
#filter-panel::before {
	content: '';
	display: block;
	width: 30px;
	height: 30px;
	background-image: url("./img/layers.png");
	background-size: cover;
	background-position: center;
	margin: auto;
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1010; /* Logo toujours au-dessus du contenu caché */
}

#filter-panel-content {
	display: none; /* Masquer le contenu par défaut */
}

#filter-panel:hover::before {
	display: none; /* Masquer le logo au survol */
}

#filter-panel:hover {
	width: 220px; /* Affiche le menu au survol */
	height: auto; /* Ajuste la hauteur automatiquement */
	padding: 15px;
}

#filter-panel:hover #filter-panel-content {
	display: block; /* Afficher le contenu au survol */
}

#filter-panel h3 {
	margin: 0 0 10px 0;
	font-size: 16px;
	text-align: center;
	display: none;
}

#filter-panel:hover h3 {
	display: block; /* Affiche le titre au survol */
}

#filter-panel label {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
	cursor: pointer;
}

#filter-panel:hover label {
	display: flex; /* Affiche les labels au survol */
}

/* Style général des checkboxes */
input[type="checkbox"] {
    appearance: none; /* Supprime le style natif de la checkbox */
    width: 18px;
    height: 18px;
    border: 2px solid #000; /* Bordure noire */
    border-radius: 4px; /* Coins légèrement arrondis */
    background-color: white; /* Fond blanc */
    cursor: pointer;
    position: relative;
	margin-right: 10px;
}

/* Style lorsque la checkbox est cochée */
input[type="checkbox"]:checked {
    background-color: #000; /* Fond noir pour la coche */
    border-color: #000; /* Bordure noire */
}

/* Ajout de la coche noire en utilisant un pseudo-élément */
input[type="checkbox"]:checked::before {
    content: '✔'; /* Symbole de coche */
    color: white; /* Coche blanche */
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
