/**
 * visualisation.css est inclus dans les fichiers :
 * - layout.php
 */

body {
	height: 100vh;
	overflow: hidden;
}

.content {
	margin: 0px;
}

#nav_onglets {
	height: 28px;
}

#ul_onglets {
	list-style: none;
}

#ul_onglets a {
	border-color: black;
	border-radius: 10px 10px 0px 0px;
	border-style: solid;
	border-width: 2px;
	display: inline-block;
	font-size: 14px;
	transform: translateY(5px);
}

/*
#onglet_visualisation_graph {
	cursor: not-allowed;
}

#onglet_visualisation_doc {
	cursor: not-allowed;
}
*/

.active {
	background-color: white;
	border-width: 2px 2px 0px 2px !important;
	padding: 0 3px;
	transform: translateY(7px) !important;
}

.inactive {
	background-color: #80baff;
	padding: 0 3px;
}

#bloc_visualisation {
	border-style: solid;
	border-width: 2px;
	height: 85vh;
}

#carte {
	height: 82vh;
	margin: 15px;
	position: absolute;
	width: 62.3%;
	z-index: 3;
}

#graphique {
	height: 100%;
	position: absolute;
	width: 63.5%;
	z-index: 3;
}

#document {
	height: 78%;
	margin: 15px;
	position: absolute;
	width: 62.3%;
	z-index: 3;
}

.legende-container img {
	max-width: 100%;
}

/* Moteur de recherche */

.search-bar {
	display: flex;
	width: 100%;
}

.search-bar input {
	border-color: #0072ba;
	border-radius: 20px 20px;
	border-style: solid;
	border-width: 3px;
	height: 40px;
	width: 270px;
}

.search-bar input[type=search] {
	padding-left: 35px;
}

.search-btn {
	background-image: url("../../images/btn_search_2.png");
	background-repeat: no-repeat;
	background-size: 100%;
	border-color: #0072ba;
	border-radius: 50%;
	border-style: solid;
	border-width: 3px;
	height: 2.5em;
	position: absolute;
	transform: translateX(230px);
	transition: 0.2s;
	width: 2.5em;
}

.search-btn:hover {
	background-image: url("../../images/btn_search_3.png");
	transition: 0.2s;
}

.contenant_loupe_icone {
	border-color: black;
	border-width: 2px;
	height: 40px;
	position: absolute;
	width: 40px;
	z-index: 5;
}

.loupe_icone {
	background-image: url("../../images/icon_search.png");
	background-repeat: no-repeat;
	background-size: 100%;
	height: 20px;
	width: 20px;
}

/* La case à cocher */

.checkbox_container {
	cursor: pointer;
	display: block;
	font-size: 14px;
	padding-left: 18px;
	position: relative;
	user-select: none;
}

.checkbox:first-child {
	margin: 0 2.5% 0 0;
}

.checkbox:nth-child(2n) {
	margin: 0 4%;
}

.checkbox:nth-child(3n) {
	margin: 0 0 0 2.5%;
}

/* Cache la case à cocher par défaut du navigateur */
.checkbox_container input {
	cursor: pointer;
	height: 0;
	opacity: 0;
	position: absolute;
	width: 0;
}

/* Crée une case à cocher customisée */
.checkmark {
	border-color: black;
	border-radius: 2px;
	border-style: solid;
	border-width: 2px;
	height: 15px;
	left: 0;
	position: absolute;
	top: 2px;
	width: 15px;
}

/* Quand la case à cocher est cochée, ajoute un fond bleu (blanc?) */
.checkbox_container input:checked~.checkmark {
	background-color: #efffee;
}

/* Crée la coche/l'indicateur (cachée quand pas cochée) */
.checkmark:after {
	content: "";
	display: none;
	position: absolute;
}

/* Affiche la coche quand cochée */
.checkbox_container input:checked~.checkmark:after {
	display: block;
}

/* Stylise la coche/l'indicateur */
.checkbox_container .checkmark:after {
	border: solid black;
	border-width: 0 3px 3px 0;
	height: 10px;
	left: 3px;
	transform: rotate(45deg);
	width: 6px;
}

/* Thèmes */

.theme_visualisation {
	background-color: white;
	border-color: rgba(0, 0, 0, 0.5);
	border-radius: 25px;
	border-style: solid;
	border-width: 1px;
	box-shadow: 0px 2px 4px grey;
	height: 4vh;
	margin: 0 5px 0 5px;
	transition: 0.3s;
}

.theme_visualisation:hover {
	background-color: #b3d9e8;
	box-shadow: 0px 0px 0px transparent;
	transform: translateY(2px);
	transition: all 0.3s;
}

.theme_visualisation:active, .activatedTheme {
	/* Nécessaire d'ajouter la classe activatedTheme pour modifier l'apparence */
	background-color: #b3d9e8;
	box-shadow: 0px 0px 0px transparent;
	transform: translateY(2px);
	transition: all 0.3s;
}

.theme_visualisation p {
	font-size: 0.7vw;
	font-weight: bold;
	margin: 0;
}

.theme p {
	padding: 0 4px 0 4px;
}

.col-lg-2 {
	width: 20%;
}

#filtres h3, #bloc_visualisation_donnees h3 {
	font-size: 1.1vw;
}

#bloc_visualisation_donnees hr {
	margin: 0.5rem 0;
}

/* Jeux de données */

#bloc_visualisation_donnees {
	padding: 0;
	z-index: 0;
}

#jeux_donnees {
	height: 63%;
	overflow-y: scroll;
	position: absolute;
	width: 33%;
	z-index: -5;
}

.bloc_donnees {
	border-radius: 8px;
	margin: 3px 11px 10px 0;
	padding: 12px;
	transition: 0.2s;
	width: 96%;
}

h5 {
	font-size: 1vw;
	font-weight: 600;
	margin: 0;
}

.donnees_affiche {
	background-color: #b3d9e8;
	box-shadow: rgba(3, 130, 230, 0.3) 0px 0px 0px 3px;
	transition: 0.2s;
}

.donnees_affiche:hover {
	background-color: #e7eef7;
	box-shadow: none;
	cursor: pointer;
	transition: 0.2s;
}

.donnees_affiche:active, .activatedId {
	background-color: #e7eef7;
	border-color: #0072ba;
	border-style: solid;
	box-shadow: none;
}

.donnees_bloque {
	background-color: lightgray;
	box-shadow: lightgray 0px 0px 0px 3px;
}

.donnees_bloque:hover {
	cursor: not-allowed;
}

.cadenas {
	border-radius: 8px 0 2px 0;
	height: 32px;
	position: absolute;
	transform: translate(-12px, -12px);
	width: 32px;
}

.cadenas_ferme {
	color: darkred;
	position: absolute;
}

.cadenas_ouvert {
	color: darkgreen;
	position: absolute;
}

.nc_img {
	background-image: url("../../images/icon_nc.png");
	background-repeat: no-repeat;
	background-size: 3vw;
	height: 100%;
	position: absolute;
	width: 100%;
}

.graph_img {
	background-image: url("../../images/icon_graph.png");
	background-repeat: no-repeat;
	background-size: 2.4vw;
	height: 100%;
	position: absolute;
	width: 100%;
}

.doc_img {
	background-image: url("../../images/icon_document.png");
	background-repeat: no-repeat;
	background-size: 1.5vw;
	height: 100%;
	position: absolute;
	width: 100%;
}

.p_jeux_donnees {
	font-size: 0.9vw;
	margin-bottom: 5px;
	margin-top: 5px;
	text-align: justify;
}

.p_jeux_donnees_legende {
	font-size: 0.9vw;
	margin-bottom: 5px;
	margin-top: 5px;
	padding-left: 5px;
	padding-right: 5px;
	text-align: justify;
}

.image_legende_donnees {
	height: auto;
	max-width: 100%;
}

.blue-button {
	background-color: #b3d9e8;
	border-color: #0072ba;
	color: #000000;
}

.blue-button:hover {
	background-color: #0072ba;
	border-color: #0072ba;
	color: #ffffff;
}

.bloc_legende_info:nth-child(odd) {
	background-color: #b3d9e8;
	padding: 8px 0 8px 10px;
}

.bloc_legende_info:nth-child(even) {
	background-color: white;
	padding: 8px 0 8px 10px;
}

.bloc_legende_info select {
	font-size: 0.9vw;
	height: 3.5vh;
	overflow-wrap: break-word;
}

/* select pour le téléchargement des données dans un certain format */
#selectDownloadFormat {
	display: none;
	position: fixed;
}

@media (min-width: 1600px) {

	#principal_content {
		height: 85%;
	}

	#jeux_donnees {
		height: 63%;
	}

	.icone_jeux_donnees {
		height: 40px;
		position: relative;
		width: 50px;
	}

	.checkbox_container {
		font-size: 14px;
		padding-left: 18;
	}

	.checkmark {
		background-color: white;
		border-width: 1px;
		height: 13px;
		left: 0;
		top: 2px;
		width: 13px;
	}
}

@media (min-width: 1350px) and (max-width: 1600px) {

	#principal_content {
		height: 85%;
	}

	#jeux_donnees {
		height: 59%;
	}

	.icone_jeux_donnees {
		height: 35px;
		position: relative;
		width: 50px;
	}

	.checkbox_container {
		font-size: 11.5px;
	}

	.checkmark {
		border-width: 1px;
		height: 13px;
		left: 0;
		top: 2px;
		width: 13px;
	}

	.theme_visualisation p {
		font-size: 11px;
		font-weight: bold;
		margin: 0;
	}

	/* Moteur de recherche */

	.search-bar input {
		height: 35px;
		width: 230px;
	}

	.search-btn {
		height: 2.2em;
		transform: translateX(195px);
		width: 2.2em;
	}

	.contenant_loupe_icone {
		height: 35px;
		width: 35px;
	}

	.loupe_icone {
		height: 15px;
		width: 15px;
	}
}

@media (min-width: 1000px) and (max-width: 1350px) {

	#principal_content {
		height: 88%;
	}

	#jeux_donnees {
		height: 61%;
	}

	.icone_jeux_donnees {
		height: 30px;
		position: relative;
		width: 50px;
	}

	.checkbox_container {
		font-size: 10px;
		padding-left: 14px;
	}

	.checkmark {
		border-width: 1px;
		height: 11px;
		left: 0;
		top: 2px;
		width: 11px;
	}

	.checkbox_container .checkmark:after {
		border-width: 0 2px 2px 0;
		height: 7px;
		left: 3px;
		top: 1px;
		width: 4px;
	}

	.checkbox:first-child {
		margin: 0 1% 0 0;
	}

	.checkbox:nth-child(2n) {
		margin: 0 2%;
	}

	.checkbox:nth-child(3n) {
		margin: 0 0 0 1%;
	}

	.theme_visualisation p {
		font-size: 10px;
		font-weight: bold;
		margin: 0;
	}

	.col-lg-2 {
		width: 22%;
	}

	/* Moteur de recherche */

	input::placeholder {
		font-size: 0.8em;
	}

	.contenant_loupe_icone {
		height: 32px;
		width: 32px;
	}

	.loupe_icone {
		height: 12px;
		width: 12px;
	}

	.search-bar input {
		height: 32px;
		width: 200px;
	}

	.search-bar input[type=search] {
		padding-left: 30px;
	}

	.search-btn {
		height: 2em;
		transform: translateX(169px);
		width: 2em;
	}
}

@media (max-width: 1000px) {

	#principal_content {
		height: 90%;
	}

	#jeux_donnees {
		height: 56%;
	}

	.icone_jeux_donnees {
		height: 25px;
		position: relative;
		width: 50px;
	}

	.checkbox_container {
		font-size: 10px;
	}

	.checkmark {
		border-width: 1px;
		height: 11px;
		left: 0;
		top: 3px;
		width: 11px;
	}

	.checkbox_container .checkmark:after {
		border-width: 0 2px 2px 0;
		height: 7px;
		left: 3px;
		top: 1px;
		width: 4px;
	}

	.checkbox:first-child {
		margin: 0 1% 0 0;
	}

	.checkbox:nth-child(2n) {
		margin: 0 2%;
	}

	.checkbox:nth-child(3n) {
		margin: 0 0 0 1%;
	}

	.theme_visualisation p {
		font-size: 8px;
		font-weight: bold;
		margin: 0;
	}

	.col-lg-2 {
		width: 22%;
	}

	/* Moteur de recherche */

	.search-bar input {
		height: 28px;
		width: 180px;
	}

	.search-bar input[type=search] {
		padding-left: 22px;
	}

	.search-btn {
		height: 1.7em;
		transform: translateX(154px);
		width: 1.7em;
	}

	.contenant_loupe_icone {
		height: 28px;
		width: 28px;
	}

	.loupe_icone {
		height: 9px;
		width: 9px;
	}

	input::placeholder {
		font-size: 0.7em;
	}
}