/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # CSS commun à toutes les cartes */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

/* Viewport */
@viewport{zoom:1.0;width:device-width;}
@-ms-viewport{zoom:1.0;width:device-width;}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Base */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

body {
	margin: 0;
	font-family: sans-serif;
	font-size: 11px;
	line-height: 16px;
	color: #fff;
	background: #000;
	overflow: hidden;
}

body.crosshair #map svg {
	cursor: crosshair;
}
body.grabbing #map svg,
body.grabbing #map > svg > path[id^="area"] {
	cursor: grabbing !important;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Intitulés */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

h1,h2,h3,h4,h5,h6 {
	clear: both;
	font-weight: bold;
	margin-top: 0;
}
h1 {font-size:30px;line-height:36px;padding:10px;background:#000;color:#fff;text-transform:uppercase;}
h2 {font-size:18px;font-weight:normal;margin-bottom:10px;text-transform:uppercase;}
h3 {font-size:24px;line-height:30px;color:#333;}
h4 {font-size:14px;line-height:20px;color:#333;text-transform:uppercase;}
h5,h6 {font-size:12px;color:#333;}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Éléments textuels */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

a {text-decoration:none;font-weight:bold;color:lightskyblue;cursor:pointer;}
a:hover, a:focus {color:#999}
p {margin:0 0 5px;padding:0;text-align:justify;}
ul {padding-left:15px;list-style-type:square;}
li {text-align:justify;}

::-webkit-scrollbar, scrollbar {
width: 8px;
height: 10px; }

::-webkit-scrollbar-thumb, scrollbar {
background-color: #000;
-webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,0.10),inset 0 -1px 0 rgba(0,0,0,0.07); }


/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Entrées et boutons */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

button {
	color: #fff;
	width: 24px;
	height: 24px;
	padding: 0;
	font-family: "FontAwesome";
	font-size: 18px;
	font-weight: 300;
	border: 0;
	background: none;
	cursor: pointer;
}
button:hover,
button:focus {
	color: #999;
}
button[disabled] {
	cursor: default;
	color: #9999 !important;
}

optgroup {background:#555;color:#fff;font-size:12px;}
option {background:#fff;color:#000;font-size:11px;}

input,
select {
	width: 100%;
	height: 24px;
	padding: 2px;
	border: unset;
	border-radius: 2px;
	box-sizing: border-box;
}

input[type="checkbox"] {width:auto;height:auto;margin:0;}
input:-moz-placeholder {color:#000;}
input::-webkit-input-placeholder {color:#000;}
/* Enlever le placeholder au focus */
input:focus::-webkit-input-placeholder {color:transparent;}
input:focus:-moz-placeholder {color:transparent;}

a:focus,
input:focus,
select:focus,
button:focus {outline:0;}
input[type="text"]{border: 2px solid transparent;}
input[type="text"]:hover {background:#eee;}
input[type="text"]:focus {border-color: lightskyblue;}

.highlight {color:#999;}
.buttonToggle {font-size: 12px;}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Déclarations héritées */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

.close {
	float: right;
	padding:0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

/* --- USELESS --- */
/* img {vertical-align: middle;margin: 5px 25px;} */
/* #lightbox img {margin: 0;} */

/* --- UNUSED --- */
/* table {margin:10px 0;font-size:11px;} */
/* caption {font-size:16px;} */
/* th {vertical-align:top;padding:0 3px;text-align:left;} */
/* td {vertical-align:top;padding:0 3px;} */
/* .right {float:right;} */
/* .left {float:left;} */
/* .clr {clear:both;} */
/* .hide {display:none !important;} */
/* .popuplink {border-bottom:1px dashed #aaa;} */
/* .let {font-size:19px;font-weight:bold;} */
/* .anot {font-weight:bold;color:olive;} */
/* .tab {margin-left:10px;} */
/* .encadre {background:#f0f0f0;padding:10px;} */
/* .marge {border-left:5px solid #c3c3c3;margin:20px 0 20px 30px;padding-left:10px;font-size:11px;} */

/* --- EMPTY --- */
/* #description tr:nth-child(even) {} */
/* #description tr:nth-child(odd) {} */

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Spinner */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#spinner {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	font-size: 60px;
	color: #fff;
	background-color: #000;
	z-index: 9999;
}
#spinner::before,
#spinner::after {
	content: "";
	border: 12px solid #fff;
	border-left-color: transparent;
	border-bottom-color: transparent;
	border-radius: 100%;
	animation-duration: 2s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	box-sizing: border-box;
}
#spinner::before {
	width: 96px;
	height: 96px;
	animation-name: rotation1;
}
#spinner::after {
	content: "";
	width: 60px;
	height: 60px;
	margin-left: -78px;
	animation-name: rotation2;
}
@keyframes rotation1 {
	from {transform: rotate(0deg);}
	to {transform: rotate(360deg);}
}
@keyframes rotation2 {
	from {transform: rotate(360deg);}
	to {transform: rotate(0deg);}
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Canvas */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#canvas {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Arrière-plan */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Carte */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#map {
	display: block;
	position: relative;
	width: 100%;
	margin: 0;
	background-repeat: no-repeat;
}
#map > svg > text {
	pointer-events: none;
	user-select: none;
}
#map > svg > [id^="loc_mark"] {
	cursor: pointer;
}

#map > svg > [id^="loc_mark"]:hover {
	stroke: #ff0; /* TEMP */
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Tableau de commandes */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#command_box {
	position: absolute;
	top: 10px;
	right: 10px;
	max-width: 460px;
	margin-left: 10px;
	padding: 10px;
	border-radius: 5px;
	background: #000d;
	box-sizing: border-box;
}
.command-toggle {
	float: right;
	position: relative;
	width: 30px;
	height: 30px;
	font-size: 28px;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Panneau de commandes */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#command_panel {
	width: 440px;
}
#search_toggle,
#search_panel,
#search_text,
#search_list,
#button_panel {
	display: inline-block;
	vertical-align: top;
}
#search_panel,
#button_panel {
	font-size: 0;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Panneau de recherche */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#search_panel {}
#search_text,
#search_list {
	width: 200px;
	margin-left: 10px;
}
#search_text {}
#search_list {
	display:none;
}
#search_list select {
	background:#fff;
	color:#000;
	border: 2px solid transparent;
}
#search_list select:hover,
#search_list select:focus {
	color: lightskyblue;
	border-color: lightskyblue;
}

#search_text {
	position: relative;
}
#search_text .clear {
	position: absolute;
	width: 24px;
	top: 0;
	right: 0;
	color: #000;
}
#search_text .clear:hover,
#search_text .clear:focus {
	color: #0009;
}
#search_text .clear::after {
	content: "×";
}

.ui-autocomplete, #search_list select {
	overflow-y: auto;
	overflow-x:hidden;
	scrollbar-color: #000 #ccc;
	scrollbar-width: thin;
	max-height:300px;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Panneau de boutons */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#button_panel {
	margin-left: 10px;
}

#button_panel button {
	vertical-align: top;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Panneau de l'itinéraire */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#path_panel {
	display: none;
	width: 300px;
	padding: 10px;
}

#path_panel button {
	float: right;
}
#path_title {
	font-weight: bold;
	margin-bottom: 10px;
}
#path_output {
	display: block;
}
#path_output.active {
	padding: 5px 0;
	font-size: 20px;
	text-align: center;
}
#path_panel .tooltip:hover span {top:40px;left:-100px;}
#path_panel .tooltip:hover::after {top:30px;}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Panneau de texte */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#text_panel,
#extra_panel {
	margin-top: 10px;
}
#text_panel {
	position: relative;
	padding-bottom: 20px;
}
#text p {
	padding:0 5px;
}
#link,
#source {
	margin-top: 5px;
}
#link {
	float: left;
	margin-left: 5px;
}
#source {
	font-size: 10px;
	float: right;
}
#link a::before,
#source span::before {
	margin-right: 5px;
	font-family: "FontAwesome";
}
#link a::before {
	content:"\f70e"; /* scroll */
	font-weight: normal;
	font-size: 14px;
}
#source span::before {
	content:"\f02e"; /* bookmark */
	opacity: .5;
}

/* #text img {max-width:95%;margin:2px 10px 10px 10px;float:left;} */
/* #credits {font-size:10px;margin:30px 5px;} */
/* #credits a {color:#fff;} */

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Panneau additionnel */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#extra_panel {display:none;}
#extra_panel a {display:inline-block;padding:4px 0;color:#fff;}
#extra_panel a:hover,
#extra_panel a:focus {color:#999;}
#extra_panel i {font-size:15px;margin-right:5px;}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Fenêtre des lieux */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#locations {
	display:none;
	position:fixed;
	bottom:10px;
	/*left:10px*/
	right:60px;
	background:#000d;
	color:#fff;
	padding:10px;
	border-radius:5px;
	width:fit-content;
	height:fit-content;
	cursor:move;
	z-index:1;
}
#locations h2 {
	clear: none;
	margin-bottom: 6px;
	line-height: 24px;
}
#locations input[type="checkbox"] {pointer-events:none;vertical-align:top;}
#locations label {
	user-select: none;
	display: inline-block;
	position: relative;
	margin-left: -14px;
	padding: 0px 0px 4px 20px;
	vertical-align: top;
	z-index: 1;
	cursor: pointer;
}
#locations label:hover,
#locations label:focus {
	color: #999;
}
#locations i.fa:before {
	content: attr(data-before);
	margin-right: 5px;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Fenêtre des zones */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#areas {
	display: none;
	position: fixed;
	bottom: 45px;
	left: 10px;
	width: fit-content;
	height: fit-content;
	padding: 10px;
	color: #fff;
	border-radius: 5px;
	background: #000d;
	cursor: move;
}
#areas h2 {
	clear: none;
	margin-bottom: 6px;
	line-height: 24px;
}
#areas .color,
#areas .name {
	vertical-align: top;
}
#areas .color {
	display: inline-block;
	width: 15px;
	height: 15px;
	margin: 5px 5px 5px 0;
	border: 1px solid #000;
	box-sizing: border-box;
	}
#areas .name {
	line-height:25px;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Fenêtre des images */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#pictures {
	display: none;
	position: absolute;
	top: 10px;
	left: 10px;
	width: fit-content;
	line-height: 20px;
	padding: 10px;
	color: #fff;
	border-radius: 5px;
	background: #000d;
	cursor: move;
	z-index: 1;
}
#pictures h2 {
	clear:none;
}
#pictures > div {
	display: flex;
	align-items: start;
	justify-content: space-between;
	margin-top: 10px;
	line-height: 0;
	font-size: 0;
}
#pictures a {
	display: inline-block;
}

#pictures img {
	margin:0 2px;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Fenêtre des articles */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#article {
	display: none;
	position: absolute;
	left: 10px;
	top: 10px;
	color: #fff;
	background: #000d;
	border-radius: 15px;
	cursor: move;
	z-index: 1;
}
#article .grip {
	height: 40px;
	border-radius: 15px 15px 0 0;
	border: 1px solid #c3c3c3;
	background: linear-gradient(#e7e7e7, #fff);
	box-sizing: border-box;
	cursor: move;
}

#article .close {
	color: #000;
	margin: 10px 10px 0px 0px;
}

#article .content {
	display: none;
	min-width: 300px;
	max-width: 500px;
	max-height: 500px;
	padding: 10px;
	color: #000;
	border: 1px solid #c3c3c3;
	border-top: 0;
	border-radius: 0 0 15px 15px;
	background-color: #fff;
	cursor: text;
	overflow-y: auto;
	scrollbar-color: #000 #ccc;
	scrollbar-width: thin;
}
#article .content p {
	margin-bottom: 7px;
}
#article .content img {
	max-width: 97%;
	height: auto;
	margin: 10px !important;
}
#article .content a {
	color: blueviolet;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Boîte de zoom */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

#zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	width: 40px;
}
#zoom button:not(:first-of-type) {
	display: inline-block;
	width: 40px;
	height: 40px;
	font-size: 20px;
	border: 1px solid #fff9;
	background: #000d;
}
#zoom button:last-of-type {
	margin-top: -1px;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}
#zoom button:hover:not([disabled]),
#zoom button:focus:not([disabled]) {
	color: lightskyblue;
	border-width: 2px;
	border-color: lightskyblue;
}
#zoom_level,
#zoom_scale,
#zoom_scale::after {
	display: inline-block;
	position: absolute;
	box-sizing: border-box;
}
#zoom_level,
#zoom_scale {
	height: 20px;
	padding: 2px 4px;
	font-size: 10px;
	font-family: sans-serif;
	text-align: center;
	color: #fff;
	background-color: #000a;
}
#zoom_level {
	right: 0;
	top: -20px;
	width: 40px;
	cursor: pointer;
}
#zoom #zoom_level:hover,
#zoom #zoom_level:focus {
	color: lightskyblue;
}
#zoom_scale {
	/*right:60px*/
	left: 10px;
	bottom: 20px;
	width: 110px;
	line-height: 12px;
	font-weight: bold;
	cursor: move;
}
#zoom_scale::after {
	content: "";
	top: 5px;
	left: 4px;
	width: 102px;
	height: 12px;
	border: 2px solid #fff;
	border-top: 0;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Icônes des boutons */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

/*
	"\1f5fa" : map
	"\f02d" : book
	"\f0ec" : arrow-right-arrow-left
	"\f277" : signs-post
	"\f29c" : circle-question
	"\f477" : file-medical
*/

.close::before, .close_item::before {content:"\f057";} /* circle-x-mark*/

#command_box .command-toggle::before {content:"\f104";} /* angle-left */
#command_box.active .command-toggle::before {content:"\f105"; } /* angle-right */

/* Path */
.path-clear::before {content:"\f2ed";} /* trash */
.path-cancel::before {content:"\f056";} /* circle-minus */

/* Zoom */
.zoom-in::before {content:"\f067";} /* plus */
.zoom-out::before {content:"\f068";} /* minus */

/* Search */
.search-toggle::before {content:"\f002";} /* magnifying-glass */
.search-toggle.active::before {content:"\f03a";} /* list */

/* Buttons */
.button-icon.locations::before {content:"\f3c5";} /* location-dot */
.button-icon.locations.active::before {content:"\f5a0";} /* map-location-dot */
.button-icon.areas::before {content:"\f5cb";}
.button-icon.areas.active::before {content:"\f5ee";}
.button-icon.path::before {content:"\f545";} /* ruler */
.button-icon.path.active::before {content:"\f547";} /* ruler-horizontal */
.button-icon.pictures::before {content:"\f03e";} /* image */
.button-icon.pictures.active::before {content:"\e209";} /* panomara */
.button-icon.extra::before {content:"\f07b";} /* folder */
.button-icon.extra.active::before {content:"\f07c";} /* folder-open */
.button-icon.fullscreen::before {content:"\f065";font-weight:900;} /* expand */

.button-icon.active {color:lightskyblue;}
.button-icon.active:hover, .button-icon.active:focus {color:#999}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Tootips */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

.tooltip {position:relative;outline:none;cursor:pointer;}
.tooltip span {display:none;border:1px solid #fff;font-family:sans-serif;font-size:11px;pointer-events:none;}
.tooltip:hover span {display:block;position:absolute;top:35px;left:-10px;width:auto;white-space:nowrap;background:#fff;color:#000;border-radius:5px;padding:10px;font-weight:bold;z-index:1;}
.tooltip:hover::after {content:"";position:absolute;top:25px;left:10px;border-width:5px;border-style:solid;border-color:transparent transparent #fff transparent;}

#tooltip { /* Tooltip box for locations */
	pointer-events: none;
	user-select: none;
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	padding: 0 5px;
	color: #fff;
	border-radius: 5px;
	background-color: #000d;
}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Page */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

/* Masquer le texte Undefined en haut à gauche de la carte */
/* text[font-family="'Arial'"] {display:none;} */

/* CSS pour fond de page noir */
/* body.black-bg {background:#000;} */

/* CSS pour fond de page blanc */
body.white-bg {background:#fff;color:#000;}
body.white-bg #command_box {background:#fff;border:1px solid #777;}
body.white-bg button:not([disabled]) {color:#000;}
body.white-bg .command-toggle,
body.white-bg #pictures,
body.white-bg #areas,
body.white-bg #locations,
body.white-bg #path_panel,
body.white-bg #text_panel,
body.white-bg #extra_panel,
body.white-bg #extra_panel a,
body.white-bg #zoom button,
body.white-bg #zoom_level,
body.white-bg #zoom_scale {background:#fff;color:#000;}
body.white-bg #zoom_scale::after {border-color:#000;}

body.white-bg #search_list select {
	color: #000;
	background-color: #0002;
}
body.white-bg #search_list select:hover,
body.white-bg #search_list select:focus {
	color: blueviolet;
	border-color: blueviolet;
}

body.white-bg a,
body.white-bg .button-icon.active {color:blueviolet;}

body.white-bg a:hover,
body.white-bg a:focus,
body.white-bg .button-icon.active:hover,
body.white-bg .button-icon.active:focus {color:#999}

body.white-bg #locations .label_type:hover,
body.white-bg #locations .label_type:focus,
body.white-bg #extra_panel a:hover,
body.white-bg #extra_panel a:focus,
body.white-bg button:hover,
body.white-bg button:focus,
body.white-bg #zoom button:hover,
body.white-bg #zoom button:focus {color:#777;}
body.white-bg #zoom button,
body.white-bg #locations {border:1px solid #777;}
body.white-bg #zoom button:nth-of-type(2) {margin-top: -1px;}
body.white-bg #zoom button:hover:not([disabled]),
body.white-bg #zoom button:focus:not([disabled]) {
	color: blueviolet;
	border-width: 2px;
	border-color: blueviolet;
}
body.white-bg #zoom #zoom_level:hover,
body.white-bg #zoom #zoom_level:focus {
	color: #000;
}

body.white-bg input[type="text"] {border:0 solid #ccc;border-bottom-width: 1px;}
body.white-bg input[type="text"]:hover {background:#eee;}
body.white-bg input[type="text"]:focus {color:blueviolet;border-color:blueviolet;}

body.white-bg .tooltip {}
body.white-bg .tooltip span {border:1px solid #000;}
body.white-bg .tooltip:hover span {background:#000;color:#fff;}
body.white-bg .tooltip:hover::after {border-color:transparent transparent #000 transparent;}
body.white-bg #tooltip {background:#fff;color:#000;}

/* ========================================================================== */
/* -------------------------------------------------------------------------- */
/* # Media Queries */
/* -------------------------------------------------------------------------- */
/* ========================================================================== */

@media screen and (max-width: 480px) {
	#command_box {
		top: 0;
		right: 0;
		max-width: 100%;
		margin-left: 0;
		border-radius: 0 0 0 5px;
	}
	#command_box.active {
		width: 100%;
		border-radius: 0;
	}
	#command_panel {
		width: auto;
	}
	#search_panel,
	#button_panel {
		display: block;
	}
	#button_panel {
		margin-left: 0;
	}
	#search_text,
	#search_list {
		width: calc(100% - 70px);
	}
	#zoom {
		right: 0;
		bottom: 0;
	}
	#zoom button {
		border-right: 0;
	}
	#zoom button:last-of-type {
		border-radius: 0;
		border-bottom: 0;
	}
}

@media screen and (max-height: 600px) {
	#article .content {max-height: 400px;}
}

@media screen and (max-height: 500px) {
	#article .content {max-height: 300px;}
}

@media screen and (max-height: 400px) {
	#article .content {max-height: 200px;}
}

@media screen and (max-height: 300px) {
	#article .content {max-height: 100px;}
}
