/* ------- F O N T E S ------- */
@font-face {
	font-family: "Combined";
	src: url('/mw/skins/foreground/assets/fonts/combined.otf');  
	font-style:   normal;
	font-weight:  normal;
}

@font-face {
	font-family: "Vega";
	src: url('/mw/skins/foreground/assets/fonts/Vega-Regular.otf');  
	src: url('/mw/skins/foreground/assets/fonts/Vega-Regular.ttf') format("truetype");  
	src: url("/mw/skins/foreground/assets/fonts/Vega-Regular-Webfont.svg") format("svg");
	src: url("/mw/skins/foreground/assets/fonts/Vega-Regular.woff") format("woff");
	src: url("/mw/skins/foreground/assets/fonts/Vega-Regular.woff2") format("woff2");
	font-style:   normal;
	font-weight:  normal;
}

@font-face {
	font-family: Lucette;
	src: url("/mw/skins/foreground/assets/fonts/LUCETTE/font/otf/Lucette-Regular.otf");
	src: url("/mw/skins/foreground/assets/fonts/LUCETTE/font/ttf/Lucette-Regular.ttf");
	src: url("/mw/skins/foreground/assets/fonts/LUCETTE/font/woff/Lucette-Regular.woff");
	src: url("/mw/skins/foreground/assets/fonts/LUCETTE/font/woff2/Lucette-Regular.woff2");
}

@font-face {
	font-family: Lucette;
	src: url("/mw/skins/foreground/assets/fonts/LUCETTE/font/otf/Lucette-Regularitalic.otf");
	src: url("/mw/skins/foreground/assets/fonts/LUCETTE/font/ttf/Lucette-Regularitalic.ttf");
	src: url("/mw/skins/foreground/assets/fonts/LUCETTE/font/woff/Lucette-Regularitalic.woff");
	src: url("/mw/skins/foreground/assets/fonts/LUCETTE/font/woff2/Lucette-Regularitalic.woff2");
	font-style: italic;
}

@font-face {
	font-family:'FontAwesome';
	src:url(/mw/skins/foreground/assets/fonts/fontawesome-webfont.eot?32400);
	src:url(/mw/skins/foreground/assets/fonts/fontawesome-webfont.eot?32400) format('embedded-opentype'),url(/mw/skins/foreground/assets/fonts/fontawesome-webfont.woff2?db812) format('woff2'),url(/mw/skins/foreground/assets/fonts/fontawesome-webfont.woff?a3572) format('woff'),url(/mw/skins/foreground/assets/fonts/fontawesome-webfont.ttf?a3de2) format('truetype'),url(/mw/skins/foreground/assets/fonts/fontawesome-webfont.svg?f775f) format('svg');
	font-weight:normal;
	font-style:normal
}

/* Global variables. */
:root,
::backdrop {
	/* Set sans-serif & mono fonts */
	--sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
	"Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
	"Helvetica Neue", sans-serif;
	--mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
	--standard-border-radius: 5px;

	/* Default (light) theme */
	--bg: #fff;
	--accent-bg: #f5f7ff;
	--text: #212121;
	--text-light: #585858;
	--border: #898EA4;
	--accent: #0d47a1;
	--accent-hover: #1266e2;
	--accent-text: var(--bg);
	--code: #d81b60;
	--preformatted: #444;
	--marked: #ffdd33;
	--disabled: #efefef;

	--font-title: Giskith;
	--font-body: Lucette;
	--color-a: #a700ff; /* purple */
	--color-b: #00ab6b; /* green */
	--font-size: 23px;
	--line-height: 1.3em;
	--color-a-shadow: rgba(166, 0, 255, 0.44);
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
	:root,
	::backdrop {
		color-scheme: dark;
		--bg: #222;
		--accent-bg: #2b2b2b;
		--text: #dcdcdc;
		--text-light: #ababab;
		--accent: #ffb300;
		--accent-hover: #ffe099;
		--accent-text: var(--bg);
		--code: #f06292;
		--preformatted: #ccc;
		--disabled: #111;

		--font-title: Giskith;
		--font-body: Lucette;
		--color-a: #9557b5; /* washed-off purple */
		--color-b: #3c856b; /* washed-off green */
		--font-size: 23px;
		--line-height: 1.3em;
	}
}

body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	overflow: hidden;
	font-family: "Vega", serif;
}

div#handle {
	position: absolute;
	bottom: -3em;
	width: 70%;
	height: 5em;
	background-color: transparent;
	left: 5em;
}
/* change la taille des cercle dans le svg */
/*circle {
transform: scale(0.8);
}

path {
transform: scale(0.8);
} */

circle.active{
	transform: scale(0.5);
}

.links line {
	stroke: #aaa;
	/*stroke: none;*/
}

.links line.active2 {
	stroke: var(--color-a);
}

.links line.history {
	stroke: purple;
}

.active {
	stroke: var(--color-a);
}

.category circle {
	fill: var(--color-b);
}

.web circle {
	fill: purple;
}

.news circle {
	fill: lightgray;
}

.template circle {
	fill: lightgreen;
}

.discussion circle {
	fill: aqua;
}

/* ------- paramĂtre de la carte ------- */

svg {
	position: absolute;
	left: 0; top: 0; right: 0; bottom: 0;
	font: 10px sans-serif;
	/* C'est bon j'ai trouve, c'est ce tranform qui change la taille de l'affichage de la carte*/
	transform: scale(1.75);
}

@media only screen and (max-width: 320px) {
	#cats,
	svg {
		zoom: 0.5;
		transform: scale(1);
	}
}

svg g.page {
	cursor: pointer;
}

/* texte des noeud */
svg g.page text {
	visibility: hidden;
	fill: var(--color-a);
	font: 10px Combined;
	max-width: 20%;
}

svg g.active text {
	/*visibility: visible;*/
}

svg g.mouse use {
	fill: var(--color-a);
	stroke: var(--color-a);
}
svg g.mouse text {
	visibility: visible;
	stroke-width: 1.5px;
	stroke: white;
	paint-order: stroke;

}

use {
	fill: #EEE;
	stroke: black;
}

.highlight use {
	fill: #FFF;
	stroke: var(--color-b);
}

.active use {
	/*  animation-transform: 2;*/
	animation-duration: 2s;
	animation-name: pulse;
	animation-iteration-count: infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1, 1);
	}
	50% {
		transform: scale(1.5, 1.5);
	}
	100% {
		transform: scale(1, 1);
	}
}

.active use {
	fill: #FFF;
	stroke: var(--color-b) !important;
}

.active text {
	stroke: var(--bg);
	stroke-width: 1px;
	paint-order: stroke;
	fill: var(--color-b) !important;
	visibility: visible !important;
	transform: translate(-20px, 20px);
}

.active2 use {
	fill: #FFF;
	stroke: var(--color-a);
}



/* --------- Categories ------- */

@media only screen and (max-width: 600px) {
	#page {
		display:none;
	}
	#wikiframediv {
		right:0;
		top:0;
	}

	#cats .body {
		display: none;
	}
	#cats.expanded .placeholder {
		display: block;
	}
}

#cats .placeholder {
	min-width: 100%;
	text-align: center;
	position: relative;
	top: 3px;
}
#cats.expanded .body {
	display: block;
}

#cats.expanded .placeholder {
	display: none;
}
#cats.expanded .placeholder:hover {
	color: var(--color-b);
}
#cats.expanded .placeholder:before {
	content: "Ă—";
	font-size: 17px;
	cursor: pointer;
}
#cats .placeholder:before {
	content: "?";
	font-size: 12px;
	cursor: pointer;
}

#cats {
	/*display: none;*/
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: white; 
	color: black;
	/*	border-radius: 24px;*/
	padding: 10px;
	font-size: 12px;
	min-width: 16px;
	min-height: 16px;
	box-shadow: 0 3px 3px 3px var(--color-a-shadow);
}

#cats div.cat span.icon {
	position: relative;
	top: 4px;
	display: inline-block;
	width: 18px;
	height: 18px;
	background-repeat: no-repeat;
	margin-right: 4px;
	background-position: center center;
	background-size: contain;
}
#cats div.cat:last-child span.icon {
	background-size: 50%;
}
#cats div.cat span.count {
	display: none;
	padding: 0px 3px;
	background: #DDD;
	color: #444;
	font-size: 12px;
	margin-left: 4px;
}
#cats div.cat a {
	color: black;
	text-decoration: none;
	text-decoration: underline;
	cursor:pointer;

}
#cats div.cat.highlight span.icon {
	background-color: var(--color-b);
	background-blend-mode: screen;
}
#cats div.cat a:hover,
#cats div.cat.highlight a {
	color: var(--color-b);
}
#cats hr {
	color: white;
}


#page {
	position: absolute;
	left: 55%; 
	right:0;
	top: 0;
	bottom: 0;
}

#wikiframediv {
	position: absolute;
	left: 0; top: 0;
	right: 35%; bottom: 0;
}
#wikiframediv iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* ------- MEDIAWIKI PAGE ------- */

.header-container {
	display: none !important;
}

iframe form.header {
	display: none;
}
/*ul#page-actions {
display: none;
}
 */
a.talk {
	display:none;
}


/* ------- control positioning ------- */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	font-size: 12px;
}
.leaflet-control {
	float: left;
	clear: both;
}

/* ------- general toolbar styles ------- */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
}
.leaflet-bar a,
.leaflet-bar a:hover {
	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 {
	background-color: #f4f4f4;
}
.leaflet-bar a:first-child:before {
	content: " ";
	height: 2px;
	display: block;
}
.leaflet-bar a:last-child {
	border-bottom: none;
}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
}


/* ------- zoom controls -------- */

.zoom-controls {
	position: absolute;
	/* changed from left top to bottom right */
	right: 10px;
	bottom: 10px;
	z-index: 10;
}

#specialclosediv {
	position: absolute;
	left: 25px;
	top: 10px;
	z-index: 10000;
	box-shadow: 0 3px 3px 3px var(--color-a-shadow);
	background-color: #ffffff;
	display: none;
}
#specialclosediv a, #specialclosediv a:hover {
	font-size: 24px;
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
}


.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: Combined;
	font-size: 17px;
	line-height: 20px;
	text-indent: 1px;
	box-shadow: 0 3px 3px 3px var(--color-a-shadow);
	background-color: #ffffff;
}

@media only screen and (max-width: 600px) {
	#cats,
	svg {
		zoom: 0.5;
		transform: scale(1);
	}
	body {
		overflow: auto;
	}

	#container {
		position: absolute;
		left: 0; top: 0;
		right: 0;
		height: 150vh;
	}

	#page {
		display:none;
		position: absolute;
		left: 0; top: 0;
		height: 50vh;
		width: 100vw;
		z-index: 10000;
	}

	#wikiframediv {
		position: absolute;
		left: 0; top: 0;
		height: 100vh;
		width: 100vw;
	}

}

/* ------- Menu dĂpliant ------- */
.button-style {
	box-shadow: 0 3px 3px 3px var(--color-a-shadow);
	background-color: white;
	font-family: "Vega", serif;
	font-size: 12px;
	padding: 6px 2px, serif;
	cursor: pointer;
	color: black;
}

.button-map {
	font-size:14pt;
	border-radius:24px;
}


a.button-style {
	text-decoration:none;
}



#specialselectdiv {
	position: absolute;
	/* changement des valeur sde bottom right a top left*/
	top: 8px;
	left: 25px;
	z-index: 10000;
	background: white;
}

#specialselectdiv select {
	box-shadow: 0 3px 3px 3px var(--color-a-shadow);
	background-color: white;
	font-family: "Vega", serif;
	font-size: 12px;
	padding: 6px 2px;
	text-transform: uppercase;
	cursor: pointer;
	color: black;
}


#specialiframediv {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: none;
	z-index: 100;
}
#specialiframediv iframe {
	width: 100%;
	height: 100%;
	border: none;
}


#quit {
        position:fixed;
        width: fit-content;
        text-align:center;
        right:15px;
        visibility:visible;
	padding: 4px 8px;
}
        @media (max-width: 800px) and (-webkit-min-device-pixel-ratio: 1) { 
                script {
                        display:none !important;
                }
                #page {
                        display:none !important;
                }
                #wikiframediv {
                        right:0;
                }
}
/*----- Modification carte -----*/
#page {  
    left:66%; 
}  
      
#wikiframediv {  
    right: 34%;  
}  
      
svg g.page text {  
    font-size: 6pt;  
    font-family: monospace;
    stroke-width: 0px;  
    fill: #888;          
}  
      
svg g.active2 text {  
    font-size: 6pt;  
    visibility: visible;  
}  
      
svg g.active text {  
    font-size: 8pt;  
    visibility: visible;  
}  

.links line:not(.active2), .nodes .page{  
    opacity: 0.25;  
}  


.links .page {
    opacity: 1;
}

.page.active, .page.active2 {  
    opacity: 1;  
}

