html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

::before, ::after{
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

:root{
	--primary-color: rgba(0, 0, 0, .97); /* noir */
	--secondary-color: #36022F; /* violet */
	--third-color: #DBB086; /* beige */
	--fourth-color: rgba(255, 255, 255, .85); /* blanc */

	--primary-font: "Philosopher", cursive;
	--secondary-font: "Oswald", sans-serif;
	--third-font: "Lato", sans-serif;

	--bora: .5rem;
}

body{
	font: 1.1rem/150% var(--third-font);
	font: 1.05rem/170% var(--third-font);
	overflow-x: hidden;
}

a{
	color: var(--primary-color);
	text-underline-offset: 4px;
	transition: text-underline-offset .3s ease-in-out,
				text-decoration-thickness .3s ease-in-out;
}

a:hover{
	text-underline-offset: 6px;
	text-decortion-color: var(--fourth-color);
	text-decoration-thickness: 0.09375rem;
}

header h1{
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 20;
}

header h1 a{
	display: block;
	color: var(--fourth-color);
	font: small-caps 400 1.6rem/1 var(--secondary-font);
	letter-spacing: 1px;
	text-decoration: none;
	transition: translate .2s ease-in-out;
}

header h1 a:hover{
	translate: .625rem;
}

.toggle{
	color: var(--fourth-color);
	font-size: 2rem;
	position: absolute;
	top: 1rem;
	right: 1rem;
	cursor: pointer;
	z-index: 20;
}

.ouvrir{
	display: block;
}

.fermer{
	display: none;
}

.open .ouvrir{
	display: none;
}

.open .fermer{
	display: block;
}

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

.menu{
	height: 100%;
	display: flex;
}

.menu-right a:link, .menu-right a:visited{
	display: block;
	color: var(--third-color);
	font: 1.7rem/100% var(--primary-font);
	text-decoration: none;
}

.menu-right a:hover, .menu-right a:active, .menu-right a:focus{
	text-decoration: underline;
	animation: bounce-nav .1s ease-in-out forwards;
}

.container{
	background: linear-gradient(var(--primary-color) 1%, var(--secondary-color) 6%, var(--third-color) 20%, var(--third-color) 80%, var(--secondary-color) 94%, var(--primary-color) 99%);
}

.encart-section{
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3rem;
	padding: 2rem;
}

.cv .encart-section{
	gap: 2rem;
}

section:last-child .encart-section{
	padding-bottom: 3rem;
}

.encart-section h1{
	font: 400 2.5rem/1 var(--primary-font);
	cursor: default;
}

h2{
	font: 700 1.1rem/150% var(--third-font);
}

.projets{
	width: 100%;
}

.projets div{
	position: relative;
	color: #fff;
	height: 270px;
    background: url("../img/coeur-astral.png") left top/cover no-repeat rgba(0, 0, 0, .1);
    border: 1px solid var(--fourth-color);
    border-radius: var(--bora);
    cursor: pointer;
    overflow: hidden;
}

.projets div:nth-child(2){
	background-image: url("../img/the-chest.png");
}

.projets div:nth-child(3){
	background-image: url("../img/shepydogs.png");
}

.projets div:last-child{
	background-image: url("../img/toto.png");
}

.projets div::before {
	content: "";
	position: absolute;
	background: linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.5) 0%,
		rgba(0, 0, 0, 0) 30%);
	inset: 0;
}

.projets a{
	display: block;
	position: absolute;
	inset: 0;
	color: var(--fourth-color);
	font: small-caps 1.2rem var(--secondary-font);
	letter-spacing: 1px;
	text-decoration: none;
	text-shadow: 1px 1px 8px var(--primary-color);
}

.projets span{
	display: block;
	position: absolute;
	left: .5rem;
	bottom: .3rem;
	transtion: opacity 200ms ease;
}

.encart-competences, .competences{
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.competences, .card-wrapper{
	flex-basis: 100%;
}

.encart-competences{
	width: 50%;
}

.card-wrapper{
	min-height: 3.5rem;
	perspective: 2000px;
	perspective-origin: top;
}

.card-wrapper:hover .card{
	transform: rotateY(180deg);
}

.card{
	position: relative;
	transform-style: preserve-3d;
	transition: transform .8s cubic-bezier(.86,0,.07,1);
}

.card-front, .card-back{
	background: var(--fourth-color);
	color: var(--secondary-color);
	position: absolute;
	display: flex;
    justify-content: center;
    align-items: center;
	width: 100%;
	font-variant: small-caps;
	letter-spacing: 1px;
	padding: 10px;
	border: 1px solid var(--primary-color);
	border-radius: var(--bora);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	cursor: default;
}

.card-back{
	background: var(--secondary-color);
    color: var(--fourth-color);
    border-color: var(--fourth-color);
	transform: rotateY(180deg);
}

form{
	width: 100%;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 1rem 3rem;
}

form > div{
	grid-column: 1 / 3;
}

form > div:last-child{
	display: none;
}

.input-form{
	position: relative;
	display: flex;
	flex-direction: column-reverse;
	margin: 2rem 0;
}

.input-form:first-child{
	margin-top: 0;
}

.input-form:last-child{
	margin-bottom: 1rem;
}

input, textarea{
	background: var(--fourth-color);
	box-sizing: border-box;
	width: 100%;
	padding: 10px;
	border: 0;
	border-bottom: 2px solid transparent;
	outline: 0;
	border-radius: var(--bora);
}

input, textarea, label, button{
	transition: all .3s;
}

label{
	position: absolute;
	transform: translate(10px, -7px);
	transform-origin: left top;
	cursor: text;
}

textarea ~ label{
	transform: translate(10px, -153px);
}

textarea{
	resize: none;
}

input::placeholder, textarea::placeholder{
	opacity: 0;
}

input:focus, input:not(:placeholder-shown), textarea:focus, textarea:not(:placeholder-shown){
	border-bottom: 2px solid var(--secondary-color);
}

input:not(:placeholder-shown) ~ label,
input:focus ~ label{
	color: var(--fourth-color);
	transform: translate(10px, -33px) scale(.8);
}

textarea:not(:placeholder-shown) ~ label,
textarea:focus ~ label{
	color: var(--fourth-color);
	transform: translate(10px, -160px) scale(.8);
}

button[type="submit"]{
	background: var(--third-color);
	color: var(--primary-color);
	width: 100%;
	font: 1.1rem/135% var(--third-font);
	padding: .5rem;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: var(--bora);
	box-shadow: 1px 1px 15px -5px rgba(0, 0, 0, .4);
	outline: 0;
	cursor: pointer;
	transition: font-weight .3s ease-in-out,
				letter-spacing .3s ease-in-out;
}

button[type="submit"]:hover, button[type="submit"]:focus{
	color: var(--secondary-color);
	font-weight: bold;
	letter-spacing: 1px;
	border-bottom: 3px solid var(--secondary-color);
}

.cv .encart-section{
	align-items: flex-start;
}

.cv-competences div{
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.cv-competences p:nth-child(-n+2){
	font-weight: bold;
}

a.btn:link, a.btn:visited{
	position: absolute;
	background: var(--third-color);
	color: var(--primary-color);
	min-width: 9rem;
	text-align: center;
	text-decoration: none;
	padding: .5rem 1rem;
	border-radius: var(--bora);
	transition: background-color color .3s ease-in-out;
}

a.btn:hover, a.btn:active, a.btn:focus{
	box-shadow: 0 0 12px var(--fourth-color);
}

footer{
	background: var(--primary-color);
	display: flex;
	justify-content: flex-end;
	padding: 8px 1.2rem 5px;
}

footer li{
	color: var(--fourth-color);
	font: .75rem/1 var(--secondary-font);
}

@media screen and (max-width: 749px){
	.portfolio section:first-child{
		color: var(--fourth-color);
	}

	.projets div:hover{
		translate: 0 -.5rem;
	}
}

@media screen and (max-width: 849px){
	.menu{
		background: linear-gradient(to bottom, var(--primary-color) 70%, var(--secondary-color));
		width: 100%;
		position: absolute;
		top: 0;
		left: 0;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 1rem;
		translate: -100%;
		transition: translate .4s ease-out;
	}

	.open .menu{
		translate: 0%;
	}

	.menu-left, .menu-right ul{
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.menu-left{
		color: var(--third-color);
		font: 2.7rem/100% var(--primary-font);
		margin-bottom: 6rem;
	}

	.sep-icon a:link, .sep-icon a:visited{
		display: block;
		color: var(--third-color);
		font: 1.7rem/100% var(--primary-font);
		text-decoration: none;
	}

	.sep-icon a:hover, .sep-icon a:active, .sep-icon a:focus{
		text-decoration: underline;
		animation: bounce-nav .1s ease-in-out forwards;
	}
}

@media screen and (max-width: 1199px){
	.container{
		padding: 14rem 0;
	}

	.container.traitement{
		background: linear-gradient(var(--primary-color) 1%, var(--secondary-color) 6%, var(--third-color) 30%);
		height: calc(100vh - 25px);
		padding-top: 0;
	}

	.projets div{
	    transition: translate .3s ease-in-out;
	    margin-bottom: 3rem;
	}

	.projets div:last-child{
		margin-bottom: 0;
	}

	.traitement section{
		height: 100vh;
		display: flex;
		align-items: center;
	}

	a.btn{
		top: 8rem;
		left: 50%;
		translate: -50% 0%;
	}
}

@media screen and (min-width: 700px){
	.encart-section.small{
		padding: 3rem 4rem;
	}

	.encart-competences{
		justify-content: center;
		align-items: flex-start;
		gap: 3rem;
	}

	.competences{
		flex-basis: calc(50% - 3rem);
	}

	.card{
		min-width: 115px;
	}

	form > div:first-child{
		grid-column: 1 / 2;
	}

	form > div:nth-child(2){
		grid-column: 2 / 3;
	}

	form > div:nth-child(3){
		grid-column: 1 / 3;
	}

	form > div:last-child{
		grid-column: 1 / 3;
	}

	textarea:not(:placeholder-shown) ~ label,
	textarea:focus ~ label{
		transform: translate(10px, -179px) scale(.8);
	}
}

@media screen and (min-width: 750px){
	.projets{
		display: flex;
		justify-content: space-between;
		gap: 3rem;
	}

	.projets div{
		background-position: left top;
		background-size: cover;
		flex-grow: 1;
		width: 25%;
		height: 200px;
		transition: width .3s ease-in-out;
	}

	.projets div:hover {
		width: 75%;
	}
}

@media screen and (min-width: 850px){
	.menu-left, .menu-right{
		background: linear-gradient(to bottom, #000 70%, var(--secondary-color));
		color: var(--third-color);
		width: 50%;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
		transition: transform .5s;
	}

	.menu-left{
		font: 3rem/100% var(--primary-font);
		transform: translateX(-100%);
	}

	.menu-right{
		transform: translateX(100%);
	}

	.open .menu-left, .open .menu-right{
		transform: translateX(0);
	}

	.menu-left h1, .menu-right a{
		text-shadow: 1px 1px 2px var(--third-color);
	}

	.menu-left h1 span{
		display: block;
		margin: 1rem 0 0 4rem;
	}

	.menu-right ul{
		display: flex;
		flex-direction: column;
		gap: 2rem;
	}

	.sep{
		background: var(--third-color);
		width: 3px;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
	}

	.sep-icon, .sep-icon a{
		width: 7rem;
		height: 7rem;
		border-radius: 50%;
	}

	.sep-icon{
		background: var(--third-color);
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		opacity: 0;
	}

	.sep-icon a{
		color: var(--primary-color);
		font: 3rem/1 var(--secondary-font);
		letter-spacing: .1rem;
		text-decoration: none;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.sep-icon::after{
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border-radius: 50%;
		box-shadow: 0 0 12px var(--fourth-color);
		opacity: 0;
		transition: opacity .3s ease-out;
		z-index: -1;
	}

	.sep-icon:hover::after{
		opacity: 1;
	}
}

@media screen and (min-width: 950px){
	.menu-left{
		font-size: 4rem;
	}

	.menu-left h1 span{
		margin-left: 5rem;
	}

	.encart-section.small{
		padding: 3rem 12rem;
	}
}

@media screen and (min-width: 1200px){
	.container{
		background: radial-gradient(circle, var(--third-color) 20%, var(--secondary-color) 80%, var(--primary-color) 95%);
		height: 100vh;
		padding: 0;
		scroll-snap-type: y mandatory;
		overflow-y: scroll;
	}

	section{
		position: relative;
		height: 100vh;
		display: flex;
		justify-content: center;
		align-items: center;
		scroll-snap-align: center;
	}

	.encart-section{
		padding: 2rem 8rem;
	}

	.encart-section.small{
		padding: 3rem 18rem;
	}

	.cv .encart-section.small{
		padding: 3rem 17rem;
	}

	.encart-section h1{
		font-size: 3rem;
	}

	.projets div:hover {
		width: 50%;
	}

	.encart-competences{
		gap: 2rem;
	}

	.competences{
		flex-wrap: nowrap;
	}

	/*.cv .cv-competences{
		align-items: center;
	}*/

	a.btn{
		right: 1rem;
		bottom: 3rem;
	}

	footer{
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
	}
}

@media screen and (min-width: 1350px){
	.cv .encart-section{
		margin-left: 150px;
	}
}

@keyframes bounce-nav{
	0%{
		transform: translateX(0px);
	}
	30%{
		transform: translateX(10px);
	}
	60%{
		transform: translateX(-10px);
	}
	90%{
		transform: translateX(5px);
	}
	100%{
		transform: translateX(0px);
	}
}