* {
	box-sizing: border-box;
}

body {
	font-family: Trebuchet MS, Verdana, Geneva, Tahoma, sans-serif;
	padding: 0;
	margin: 0;
	background-color: #eeeeee;
}

h1, h2 {
	width: 100%;
	margin: 0;
}

p {
	margin: 2px;
	padding: 0;
}

#btnChangeLang {
	font-weight: bold;
	font-size: medium;
	background-color: transparent;
	border: none;
	position: absolute;
	top: 0px;
	right: 0px;
	z-index: 1;
}

#btnChangeView {
	background-image: url("ressources/view1.png");
	background-size: contain;
	background-repeat: no-repeat;
	position: absolute;
	top: 0px;
	width: 32px;
	height: 28px;
	bottom: 0;
	right: 0px;
	z-index: 1;
	color: transparent;
	background-color: transparent;
	border: 0;
}

#btnChangeLang:hover, #btnChangeView:hover {
	cursor: pointer;
}

#main {
	display: flex;
	flex-direction: column;
	width: 80%;
	margin: auto;
}

#header {
	margin: 2% 0;
	position: relative;
}

#header_bg {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background-image: url(./ressources/bg.png);
	background-position: center;
	background-size: cover;
	filter: blur(2px);
}


#content {
	margin: 2% 0;
	display: flex;
	flex-direction: column;
	position: relative;
}

#educations, #works, #skills, #interests, #projects {
	display: flex;
	flex-wrap: wrap;
	position: relative;
	gap: 1%
}

.section {
	margin-bottom: 2%;
}

.section h2 {
	margin-bottom: 12px;
	position: relative;
}

.skill, .experience, .interest {
	width: 100%;
	margin: 1% 0;
	padding: 2px 10px;
}

.skill, .experience, .interest, .project {
	opacity: 0;
	transition: opacity 1s ease, transform 0.2s ease;
}

.experience:hover, .skill:hover, .interest:hover, .project:hover {
	transform: scale(99%);
}

.fade-in {
	opacity: 1 !important;
}

.experience .location {
	font-weight: bold;
}

.experience {
	min-width: 33%;
	max-width: 49%;
	flex: 1;
}

#educations .experience {
	border-left: 3px solid #5f53ff;
}

#works .experience {
	border-left: 3px solid #ff4848;
}


.skill {
	display: flex;
	align-items: center;
	flex: 1;
	width: auto;
	min-width: calc(100% / 8);
	max-width: calc(100% / 6);
	border-left: 3px solid #00d1ae;
}
.skill .icon {
	width: auto;
	height: 20px;
	margin-right: 5px;
}


.interest {
	display: flex;
	flex: 1;
	max-width: calc(100% / 7);
	border-left: 3px solid #ffa742;
}


#projects {
	gap: 2%;
}
.project {
	display: flex;
	flex-direction: column;
	width: 49%;
	margin: 1% auto;;
	position: relative;
	align-items: center;
	border-radius: 10px;
	border: 0px solid black;
	overflow: hidden;
	box-shadow: 0px 0px 20px 2px #7e7e7e99;
}

.project_infos {
	width: 96%;
	border: 0 solid black;
	border-radius: 10px;
	margin: 2%;
	line-height: 24px;
}

.project_infos .name {
	font-size: large;
	font-weight: bold;
	border-bottom: 1px solid #a7a7a7;
	margin-bottom: 10px;
	padding-bottom: 10px;
	width: auto !important;
}

.project_infos .link {
	margin-top: 10px;
	text-align: right;
}
.project_infos .link a {
	color: #2b9a30;
	text-decoration: none;
	position: relative;
	padding-right: 24px;
}

.project_infos .link img {
    width: auto;
    height: 20px;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
	filter: invert(48%) sepia(13%) saturate(3207%) hue-rotate(75deg) brightness(95%) contrast(80%);
}

.project_infos .link a:hover {
	transform: translateX(5px);
	color: rgb(23, 160, 64);
	transition-duration: 500ms;
}
.project_visual {
	display: flex;
	position: relative;
	width: 100%;
}

.project_visual .visual {
	width: 100%;
}

.iconPause {
	position: absolute;
	bottom: 2%;
	left: 2%;
	filter: drop-shadow(0px 0px 20px #777777) contrast(50%);
	width: 5%;
	height: 16%;
	background-image: url(./ressources/pause.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.iconPlay {
	background-image: url(./ressources/play.png) !important;
}


#footer {
	margin: 2% 0;
	position: relative;
	text-align: center;
}


.wideView #btnChangeView {
	background-image: url("ressources/view2.png");
}

.wideView .project {
	width: 100%;
}

.wideView .project:nth-child(odd) {
	flex-direction: row;
}
.wideView .project:nth-child(even) {
	flex-direction: row-reverse;
}

.wideView .project_infos {
	width: 40%;
}


@media only screen and (max-width: 1280px) {
	#main {
		width: 95%;
	}

	#header, #footer {
		padding: 0% 2%;
	}
	
	#btnChangeLang {
		top: 2%;
		right: 2%;
	}
	#btnChangeView {
		right: 2%;
	}

	.section {
		padding: 0% 2%;
	}
}

@media only screen and (max-width: 1080px) {
	#main {
		width: 100%;
	}

	#header, #footer {
		padding: 0% 5%;
	}
	
	#btnChangeLang {
		top: 5%;
		right: 5%;
	}

	#btnChangeView {
		display: none;
	}

	.section {
		padding: 0% 5%;
	}
	
	.project {
		width: 100%;
		margin: 4% auto;
	}
	.skill {
		min-width: calc(100% / 3);
		max-width: calc(100% / 2);
	}
	.experience {
		min-width: calc(100% / 2);
		max-width: calc(100% / 1);
	}
	.interest {
		min-width: calc(100% / 4);
		max-width: calc(100% / 3);
	}

	.wideView .project {
		width: 100%;
	}
	
	.wideView .project:nth-child(odd) {
		flex-direction: column;
	}
	.wideView .project:nth-child(even) {
		flex-direction: column;
	}
	
	.wideView .project_infos {
		width: initial;
	}
}

@media print {
	.section {
		padding: 0%;
	}
}