
/*


*/

/* Classe d'images*/
img.black-to-color {
	/*Target color: #2c558d Thanks to:https://codepen.io/sosuke/pen/Pjoqqp*/
	filter: invert(30%) sepia(29%) saturate(1218%) hue-rotate(174deg) brightness(94%) contrast(89%);
}

#section1 .loisir li > img {
	width:50px;
	height:auto;
	border-radius:50%;
}

.lv1 > img, .lv2 > img, .lv3 > img,.lv4 > img,.lv5 > img{
	width:auto;
	height:20px; 
	position:absolute;
	left:5px;
	bottom:5px;	
}


body {
	font-family:Arial;
	margin:0;
	padding:0;
	background-color:#d9d9d9;
}


p, li {	font-size:0.70em;}


h1 {font-size:1.25em;}

h2 {
	font-size:1em;
	background-color:rgba(0,0,0,0);
	color:#2c558d;
	text-align:left;
	padding-left:35px;
	text-transform:uppercase;

}

h3 {font-size:0.75em;}

a, a:hover, a:visited {
color:inherit;
text-decoration:none;
}

header, footer {	
	background-color: #2c558d !important;
	color:white;
}

footer h2 {color:white;}

body > div.grid {margin:auto;}

article {	
	background-color:white;
	color:black;
	border:1px black solid;
	padding:10px;
	margin:10px;
	box-shadow:1px 1px 2px rgba(0,0,0,0.8);
	min-height:auto;
}


/*Couleur Bleu pour le barre sur le côté et son texte en blanc*/



/*#003 HEADER*/

header {}

header h1 {
	text-align:center;
	margin-bottom:0;
	text-transform:uppercase;
}

header p {
	text-align:center;
	font-style:italic;
	margin:0;
	text-transform:uppercase;
}

header img {
	margin-top:15px;
	height:auto;
	width:120px;
	border-radius:50%;
}


/*#004 SECTION-1 - Section 1*/
#section1 p, footer > p{
	text-transform:uppercase;
	padding:4px 0 4px 40px;
	margin:0;
	font-weight:bold;
	position:relative;
}

#section1 {	min-height:80vh;}

/*Skillbars*/

#section1 p.lv1 {	background:url("Ressources/skillbar/lv1.png") no-repeat 95% 1px;}
#section1 p.lv2 {	background:url("Ressources/skillbar/lv2.png") no-repeat 95% 1px;}
#section1 p.lv3 { background:url("Ressources/skillbar/lv3.png") no-repeat 95% 1px;}
#section1 p.lv4 { background:url("Ressources/skillbar/lv4.png") no-repeat 95% 1px;}
#section1 p.lv5 {	background:url("Ressources/skillbar/lv5.png") no-repeat 95% 1px;}



#section1 h3:nth-of-type(1n+2) {
		margin:15px 0 7px 0;
		
	
}

#section1 ul.loisir {
	list-style:none;
	padding:0;
	margin:0;
	display:flex;
	flex-flow:row wrap;
	justify-content:space-around;

	
}

#section1 ul.loisir > li{
	width:20%;
	text-transform:uppercase;
	text-align:center;
	font-weight:bold;
	font-size:0.5em;
	padding:15px 0 15px 0;
	box-sizing:border-box;

	
}

#section1 ul.loisir img{
	padding:0 0 5px 0;
	
}

.no-top-padding {
	padding-top:0 !important;
	
}

/*# - Section 2*/
/*###TYPE1 */


#section2 .grid > p {
	padding:0;
	margin:0;

}


/*Date*/
#section2 .grid > p:nth-child(1) { grid-area:1/1/2/13;}

/*Titre*/
#section2 .grid > p:nth-child(2) {
	grid-area:2/1/3/8;
	font-weight:bold;
}

/*Localisation*/
#section2 .grid > p:nth-child(3) {
	grid-area:2/8/3/13;
	text-align:right;
}

/*Détails*/
#section2 .grid > ul:nth-child(4) {
	grid-area:3/1/13/13;
	padding-top:0;
	margin-top:0;
	display:flex;
	flex-flow:row wrap;
	box-sizing:border-box;
	justify-content:baseline;
	list-style-type:none;
	list-style-position: inside;
	padding-left:3px;
		
		
}

#section2 .grid > ul:nth-child(4) > li:nth-of-type(odd) {
	color:#404040;
}


#section2 .grid > ul:nth-child(4) > li {
	box-sizing:inherit;
	color:#606060;
	width:50%;
	padding-left:10px;
	position:relative;

}

#section2 .grid > ul:nth-child(4) > li:hover > .details {
display:block;

}
#section2 .grid > ul:nth-child(4) > li:not(:last-child)::after {}			

#section2 .grid > ul:nth-child(4) > li::before {
	font-weight:bold;
	color:#2c558d;
	content: "|";
	padding-right:3px;
	font-size:1.25em;	
}

	
#section2 .details {
	display:none;
	position:absolute;
	background:rgba(44,85,141,0.90);
	box-shadow:1px 1px 2px rgba(0,0,0,0.8);
	border:0px black solid;
	color:white;
	font-size:1em;
	font-weight:bold;
	z-index:1;
	padding:10px;
	margin-left:1px;
}

#section2 .details:hover {
	display:none !important;
}






/*#00? FOOTER - Bas de page, information de contact*/

footer {
	padding:auto;
	margin:0;
	
}

footer > p {
	padding-top:0;
	margin-top:0;
	font-weight:normal;
	
}

footer > p.bar::before {
	content:"|";
	font-weight:bold;
	font-size:1.25em;
	padding-right:3px;
	
}


footer > div {
	padding:15px 0 0 0;
	display:flex;
	flex-flow: row wrap;
	justify-content:space-around;
	box-sizing:border-box;
	font-size:1.25em;
	text-transform:uppercase;
}

footer > div > p {
	box-sizing:inherit;
	padding:0;
	margin:0;
	display:inline-block;
	text-align:left;
	width:85%;
	padding-right:5px;
}

footer > div > h3 {
	box-sizing:inherit;
	text-align:left;
	width:15%;
	padding:0 0 0 5px;
	margin:0 0 0 0;

}



@media all and (max-width:590px) {	
	.grid header {padding:0 5px 0 5px;}
	.grid #section2 {border:none;}
	.grid footer {background-color:magenta;}
	p.lv4 {filter: invert(30%) sepia(29%) saturate(1218%) hue-rotate(174deg) brightness(94%) contrast(89%);}

}


/*Definition de la grille "grid" si la taille de l'écran dépasse un certain seuil*/
@media print {
	#section2 .grid > ul:nth-child(4) > li {

    color: #202020 !important;

}
	
}

@media all and (min-width:590px) {	
	@supports (display:grid) {
		.grid {
			display:grid;
			grid-template-columns: repeat(12,1fr);
			grid-auto-rows: auto;
			grid-gap: 0px;

		}

		/*HEADER*/
		.grid header {
			grid-area:2 / 1 / 4 / 5;
			background-color:red;
			padding:0 5px 0 5px;
		}

		.grid nav {
			background-color:blue;
			grid-area:1 / 1 / 2 / 13;
			display:none;
		}

		.grid #section1 {
			background-color:green;
			grid-area:5 / 1 / 13 / 5;
		}
		.grid #section2 {
			grid-area:2 / 5 / 13 / 13;
			border-left: 3px black solid;
	}

		.grid footer {
			background-color:magenta;
			grid-area:4 / 1 / 5 / 5;
		}
		
		.grid header, .grid footer, .grid #section1 > article, #section1 {
			background-color:#2c558d !important;
			color:white;
			padding:0;
			margin:0;
			border:none;
			box-shadow:none;
		}
		
		#section1 h2, footer > h2 {
			background:rgba(0,0,0,0.25);
			text-align:center;
			margin:5px 0 5px 0;
			padding:0px;
			text-transform:uppercase;
			color:white;
		}

		#section1 > h3, footer > h3 {
			padding-left:15px;
			margin:7px 0 7px 0;
			text-transform:uppercase;
			/*text-decoration:underline;*/
		}
	}
	
	body > .grid {grid-template-columns: repeat(4,64px) repeat(8,1fr);}
	#section2 .grid > ul:nth-child(4) > li {width:50%;}	
}

.button {
	display:flex;
	background-color:grey;
	border:1px black solid;
	padding:5px;
	margin-top:5px;
	margin-bottom:5px;
	box-shadow:1px 1px 1px black;
	justify-content:center;
	text-transform:uppercase;

}
/*NEWSLETTER*/

#newsletter, #contact{
		position:absolute;
		margin:auto;
		display:none;
		width:97vw;
		height:97vh;
		top:0;
}


#newsletter iframe,#contact iframe {
	position:fixed;
	margin:auto;
	z-index:1;
}

#newsletter a, #contact a {
	position:fixed;
	top:0;
	right:0;
	z-index:2;
	text-decoration:none;
	font-size:2em;
	margin:5px;
	color:black;
	background-color:rgba(0,0,0,0.10);
	padding:0 8px 3px 8px;
	border-radius:50%;
}

#newsletter:hover iframe,#contact:hover iframe {
	display:block;
}



