@font-face {
	font-family: 'fjallaoneregular';
	src: url('../fonts/fjallaone-regular-webfont.woff2') format('woff2'),
			 url('../fonts/fjallaone-regular-webfont.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

@font-face {
    font-family: 'liberation_monoregular';
    src: url('../fonts/liberationmono-regular-webfont.woff2') format('woff2'),
         url('../fonts/liberationmono-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'calling_coderegular';
    src: url('../fonts/callingcode-regular-webfont.woff2') format('woff2'),
         url('../fonts/callingcode-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'erica_typeregular';
    src: url('../fonts/erika_type-webfont.woff2') format('woff2'),
         url('../fonts/erika_type-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'snell_roundhandblackscript';
    src: url('../fonts/snbl_-webfont.woff2') format('woff2'),
         url('../fonts/snbl_-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root{
	--noir: rgba(37, 31, 17, 1);
	--blanc: rgb(230, 230, 230);
	--gris: rgb(51, 51, 51);
	--gris-clair: rgb(190, 190, 190);
	--rouge: rgb(255,20, 20);
	--orange: rgb(255, 110, 0);
	--jaune: rgb(240, 215, 20);
	--rose: rgb(255, 50, 150);
	--violet: rgb(120, 0, 135);
	--bleu: rgb(0, 107, 196);
	--vert: rgb(80, 160, 50);
}

html, body {
	margin: 0;
	padding: 0;
	font-family: 'calling_coderegular', sans-serif;
	/*font-size: 105%;*/
	font-weight: 100; 
	line-height: 1.5rem;
	text-rendering: optimizeLegibility;
	color: var(--blanc);
	background: rgb(110, 110, 120);
	overflow-x: hidden;
	/*-webkit-scrollbar-color: var(--violet) var(--noir);
	scrollbar-color: var(--violet) var(--noir);*/
   scroll-behavior: smooth;
}

section, header, footer, article, nav, div, span, ul, li, a{
  box-sizing: border-box;
}

header{
	position: fixed;
	top: 0;
	left:0;
	display: flex;
	justify-content: space-between;
	padding: .3rem 0 .3rem 0;
	width: 100vw;
	z-index: 10;
}

header img{
	width: 170px;
}

main{
   display: block;
   width: 100vw;
   height: 100vh;
   margin: 0 auto;
	overflow-x: hidden;
}

h2{
	width:10%;
	font-family: 'fjallaoneregular', sans-serif;
	font-size: 1.5rem;
	color: var(--gris-clair);
	/*margin: 3rem auto 0;*/
	padding-bottom: 5px;
	/*border-bottom: solid 1px var(--gris-clair);*/
}


/* menus****************************************************/
#menuToggle{
	display: block;
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1;
	-webkit-user-select: none;
	user-select: none;
}

#menuToggle a{
	text-decoration: none;
	color: var(--blanc);
	transition: color 0.3s ease;
}

#menuToggle a:hover{
	color: var(--orange);
}

#menuToggle input{
	display: block;
	width: 40px;
	height: 32px;
	position: absolute;
	top: -7px;
	left: -5px;
	cursor: pointer;
	opacity: 0; /* hide this */
	z-index: 2; /* and place it over the hamburger */
	-webkit-touch-callout: none;
}

#menuToggle span{
	display: block;
	width: 35px;
	height: 3px;
	margin-bottom: 7px;
	position: relative;
	background: var(--blanc);
	border-radius: 3px;  
	z-index: 1;
	transform-origin: 4px 0px;
	transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease,
              
}

#menuToggle span:first-child
{
	transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
	transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span
{
	opacity: 1;
	transform: rotate(45deg) translate(-2px, -1px);
	background: var(--orange);
	cursor: pointer;
}

#menuToggle input:checked ~ span:nth-last-child(3)
{
	opacity: 0;
	transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2)
{
	transform: rotate(-45deg) translate(0, -1px);
}


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

#menu {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	right: 0;
	margin: 0;
	padding: 20px 40px ;
	background-color: var(--gris);
	list-style-type: none;
	-webkit-font-smoothing: antialiased;
	transform-origin: left;
	transform: translate(800px, 0);
	transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
	/*z-index: 20;*/
}

#menu li{
	text-transform: uppercase;
	padding: 5px 10px;
	color: var(--orange);
}

#menu  a{
	color: var(--blanc);
	text-transform: uppercase;
	padding: 5px 0 0 25px;
	transition: color .4s;
}

#menu  a:hover{
	color: var(--orange);
}

#menuToggle input:checked ~ ul
{
	transform: none;
}

/* FOOTER ********************************************************/
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-around;
    width: 100vw;
    background-color: var(--gris);
    font-size: 0.8rem;
    font-weight: 900;
    padding: 0 1rem;
    z-index: 3;
}

footer a{
	text-decoration: none;
    user-select: none;
    cursor: pointer;
    color: var(--gris-clair);
    transition: color .4s;
    margin: 13.44px 0;
}

footer a:hover{
	color: var(--orange);
}

.menu-liens {
   display: none;
   position: fixed;
   bottom: 3rem;
   left: 0;
   right: 0;
   width: fit-content;
   font-size: 1rem;
   text-transform: uppercase;
   transform: translateY(100%);
	z-index: 2;
}

.menu-liens.active {
    display: block;
    transform: translateY(0);
    animation: fadeInUp .3s;
}

.menu-liens-header {
    display: flex;
    justify-content: flex-end;
    padding:.5rem 1rem 0;
    width: 290px;
    background-color: var(--gris);
}

.fermer {
    cursor: pointer;
    font-size: 2rem;
    transition: color .4s;
}

.fermer:hover {
    color: var(--orange);
}

.menu-liens-content {
   padding: 0 1rem;
   width: 290px;
   background-color: var(--gris);
}

.menu-liens-content a {
    display: block;
    padding: 0 1rem .5rem;
    color: var(--blanc);
    text-decoration: none;
    user-select: none;
    cursor: pointer;
    transition: color .4s;
}

.menu-liens-content a:hover {
    color: var(--orange);
}

.menu-liens-content img {
   width: 25px;
   vertical-align: center;
}


