
/*************************************************************/

*{
	box-sizing:border-box;
	margin:0;
	padding:0;
}

.page{
	display:flex;
	flex-direction:row-reverse;
	overflow-x:hidden;
}

/*propriétés générales****************************************/

main{
	flex:1;
	height:100vh;
	z-index:1;
	overflow:hidden;
	position:relative;
	left:0;
	display:flex;
	transition:all 0.3s;
}

nav{
	position:fixed;
	height:100vh;
	width:260px;
	right:-235px;
	font-family:century-gothic, sans-serif;
	font-weight:bold;
	text-align:right;
	font-size:1em;
	z-index:3;
	transition:all 0.3s;
	display:flex;
	flex-direction:column;
	justify-content:space-around;
	padding:10px 0;
}

nav a{
	padding:10px 20px;
	border-radius:20px;
	margin:0 5px;
	text-decoration:none;
	transition:all 0.3s;
	text-align:left;
}

nav .indic_menu{
	padding:10px 15px;
	border-radius:100px 0 0 100px;
	position:fixed;
	bottom:20px;
	right:25px;
	transition:all 0.3s;
}



.retour{
	position:absolute;
	top:0;
	right:0;
	height:100vh;
	width:0;
	transition:all 0.3s ease-out;
	opacity:0.5;
}

section{
	height:80%;
	display:flex;
	flex-direction:column;
	justify-content:space-around;
}

.link{
	position:relative;
	left:0;
	top:-5vh;
	z-index:30;
	transition:all 0.3s;
}

.link div{
	width:40vw;
	height:30vw;
	min-width:400px;
	position:absolute;
	left:-300px;
	transform:rotate(6deg);
	background-color:#aaa;
}

.fond{
	width:100%;
	height:100%;
	position:absolute;
	top:0;
	left:-50vw;
	z-index:10;
	opacity:0;
	transition:all 0.3s;
	background-color:#00000088;
}

h2{
	font-size: max(6vw, 2rem);
	position:absolute;
	top:10vh;
	right:60px;
	font-weight:bold;
	line-height:100%;
	font-family:century-gothic, sans-serif;
	text-align:right;
	user-select:none;
	-webkit-user-select:none;
	-khtml-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	z-index:50;
	transition:all 0.3s;
	max-width: 50vw;
}
p{
	font-size: max(2vw, 1.5rem);
	position: absolute;
	top: 40vh;
	right: 40px;
	z-index: 50;
	font-family: century-gothic, sans-serif;
	max-width: 50vw;
	text-align: right;
	transition: all 0.3s;
}

.deg_fun{
	position:absolute;
	top:0;
	right:0;
	height:100%;
	width:300%;
	z-index:20;
	transition:all 0.3s;
}

.link:hover{
	left:20vw;
}
.link:hover ~ .deg_fun{
	right:-250%;
}
.link:hover + .fond{
	opacity:1;
	left:0;
	z-index:9;
}
.link:hover ~ h2, .link:hover ~ p{
	opacity:0;
}

nav:hover{
	right:0;
}
nav:hover + .retour{
	z-index:2;
	width:100vw;
}
nav:hover .indic_menu{
	right:260px;
	padding-right:0;
}
nav:hover ~ main{
	left:-250px;
}

.link div{
	background-size:cover;
	background-position:center;
	background-repeat:no-repeat;
}
.fond{
	background-size:contain;
	background-position:right;
	background-repeat:no-repeat;
}

p a{
	color: inherit;
	transition: all 0.3s;
}
p a:hover{
	color: #bbb;
}

@media (min-width: 1080px){
	h2{
		font-size: 5rem;
	}
}

/*propriétés générales****************************************/