@import url('https://fonts.googleapis.com/css?family=Barlow+Condensed:300,400');


*{
	box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, input, textarea, button{
	margin: 0;
	padding: 0;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 300;
}

body{
	overflow-x: hidden;
}

a{
	color: inherit;
	text-decoration: none;
	font-weight: bold;
}

.clear{
	clear: both;
}

hr{
	border: none;
	border-top: 1px solid #4e3f58;
	max-width: 360px;
	transform: rotate(-10deg);
	margin: 15px auto;
}


main, main > *{
	z-index: -20;
}

nav{
	z-index: 20;
	position: fixed;
	margin: 0;
	top: 12px;
	right: 20px;
}

nav ul{
	list-style: none;
	margin: 0;
}

nav li{
	display: inline-block;
	margin: 0 15px;
	color: #FFF;
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 3px;
}

nav li:hover{
	border-bottom: 2px solid #FFF;
}

nav li a{
	display: block;
	padding: 2px 0;
	font-weight: normal;
}

.menu{
	position: fixed;
	background: #390066;
	width: 540px;
	height: 52px;
	top: 0;
	right: 0;
	z-index: 10;
}

.menu:before{
	position: fixed;
	content: " ";
	right: 540px;
	border: 26px solid transparent;
	border-right-color: #390066;
	border-top-color: #390066;
}

header{
	padding-top: 10px;/*
	background: linear-gradient(to bottom, #312738, #4e3f58);*/
	background: linear-gradient(to bottom, #1b1220, #390066);
	height: 100vh;
	position: relative;
	z-index: 15;
}

header a{
	display: block;
	width: 150px;
	height: 150px;
	background: url(../img/yh2-blanc.svg);
	background-size: cover;
	background-repeat: no-repeat;
	margin: 0 auto;
	border: 15px solid white;
	animation: appear 1.5s ease-out 1;
}

header h1{
	/*position: fixed;*/
	position: absolute;
	font-size: 96px;
	font-weight: 300;
	color: #FFF;
	line-height: 2vw;
	margin: auto;
	height: 100px;
	width: 450px;
	top: 0; right: 0; bottom: 0; left: 0;
	text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.2),
				 2px 2px 0px rgba(255, 255, 255, 0.2),
				 3px 3px 0px rgba(255, 255, 255, 0.2);
}


h2{
	position: relative;
	padding-left: 25px;
	color: #FFF;
	font-size: 32px;
	font-weight: 300;
	line-height: 45px;
	width: 540px;
	max-width: 90%;
	height: 50px;
	background: #390066;
}

h2:after{
	position: absolute;
	content: " ";
	right: -50px;
	border: 25px solid #390066;
	border-right: 25px solid transparent;
	border-bottom: 25px solid transparent;
}


main > section{
	/*position: relative;*/
	border-top: 2px solid #390066;
}


.container{
	margin: 0px auto;
	padding: 50px 0;
}


#pres{
	background: url(../img/fond6.jpg);
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

#pres p{
	font-size: 24px;
	max-width: 960px;
	margin: 5px auto;
	text-align: center;
}

#pres p:first-of-type{
	font-weight: 400;
	font-size: 32px;
}

#susp{
	font-size: 32px;
	margin-top: -15px;
	opacity: 1;
	animation: clignot 1s linear infinite;
}


#exp h2{
	position: absolute;
	z-index: 10;
}


.box{
	float: left;
	display: block;
	width: calc(100% / 3);
	height: calc(100vw / 3);
	cursor: pointer;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.box aside{
	opacity: 0;
	height: 0;
	margin-top: calc(100vw / 3);
	padding: 0 2vw;
	color: #FFF;
	transition: 0.4s cubic-bezier(0,.98,.38,.97);
	overflow: hidden;
	text-align: center;
	color: rgba(255, 255, 255, 0);
}

.box aside h3{
	font-size: 3vw;
	font-weight: 400;
	margin: 10vw auto 3vw auto;
}

.box aside p{
	font-size: 2vw;
}

.box:hover aside{
	opacity: 1;
	height: calc(100vw / 3);
	margin-top: 0;
	color: rgba(255, 255, 255, 1);
}


#lapuce{
	background-image: url(../img/MainPic-2-min.jpeg);
}

#lapuce aside{
	background: rgba(72, 176, 73, 0.8);
}

#aiem{
	background-image: url(../img/accueil-2-min.jpg);
}
#aiem aside{
	background: rgba(0, 42, 86, 0.8);
}
#csa{
	background-image: url(../img/sorties_2-min.jpg);
}
#csa aside{
	background: rgba(62, 173, 202, 0.8);
}

#tsmartbo{
	background-image: url(../img/installation.webp);
}

#tsmartbo aside{
	background: rgba(226, 27, 32, 0.8);
}
#tsmartapp{
	background-image: url(../img/apptsmart.webp);
}

#tsmartapp aside{
	background: rgba(226, 27, 32, 0.8);
}

#dses{
	background-image: url(../img/dses.png);
}

#dses aside{
	background: rgba(28, 123, 191, 0.8);
}

#lorem{
	background-image: url(../img/lorem.png);
}

#lorem aside{
	background: rgba(41, 84, 158, 0.8);
}

#gen{
	background-image: url(../img/GeneraBig.png);
}

#gen aside{
	background: rgba(87, 64, 128, 0.8);
}

#vc{
	background-image: url(../img/visuelcop2.jpg);
}

#vc aside{
	background: rgba(0, 0, 0, 0.8);
}

#comp{
	background: url(../img/fond5.jpg);
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

#comp .container{
	max-width: 920px;
	position: relative;
	left: -50px;
}


#comp div[class ^= "progress"]{
	position: relative;
	/*border-style: solid;*/
	border-width: 1px;
	height: 50px;
	margin: 20px 0;
	box-sizing: content-box;
	box-shadow: 0px 0px 5px #FFFA inset;
	border-radius: 20px;
	background: linear-gradient(to bottom, #FFF0, #FFF5);
}

#comp .barre{
	width: 0;
	height: 50px;
	line-height: 50px;
	text-align: right;
	padding: 0 25px;
	font-size: 26px;
	font-weight: bold;
	letter-spacing: 1.2px;
	transition-timing-function: linear;
	border-radius: 20px;
	background: linear-gradient(to right, #edd3ff00, #f8efffff);
	text-shadow: -1px -1px 0px #0007,
				 -1px 1px 0px #0007,
				 1px -1px 0px #0007,
				 1px 1px 0px #0007,

				 -1px 0px 0px #0007,
				 0px -1px 0px #0007,
				 1px 0px 0px #0007,
				 0px 1px 0px #0007,

				 0px 0px 0px #0007;

}

#comp div[class ^= "progress"] .after{
	position: absolute;
	font-size: 26px;
	font-weight: bold;
	width: 40px;
	height: 50px;
	line-height: 50px;
	top: 0;
	right: -55px;
	opacity: 0;
}

div.messageBox {
	font-size: 16px;
	font-style: italic;
	text-align: center;
	max-width: 420px;
	margin: 15px auto;
	padding: 25px;
	line-height: 22px;
}

div.messageBox.ko {
	background: #faddde;
	color: #e21b20;
}
div.messageBox.ok {
	background: #d9f099;
	color: #323e02;
}

::placeholder{
	font-style: italic;
}


#contact .container{
	max-width: 720px;
}
input, textarea, button{
	display: block;
	font-size: 24px;
	cursor: pointer;
}

input, textarea{
	width: 100%;
	margin: 15px 0;
	padding: 5px 10px 0 10px;
	box-shadow: none;
	outline: none;
}

input{
	height: 40px;
	border: none;
	border-bottom: 1px solid #390066;
}
textarea{
	border: none;
	border-left: 1px solid #390066;
	height: 350px;
	resize: none;
}
button{
	width: 150px;
	height: 50px;
	margin: 25px 0 0 auto;
	background: #390066;
	border: none;
	color: #FFF;
}

button:active{
	background: #280048;
	color: rgba(255, 255, 255, 0.8);
}

div[class^="ack"]{
	padding: 20px;
	font-size: 18px;
	text-align: center;
	border-radius: 5px;
}

.ack-ok{
	background: #dfffdf;
	border: 1px solid #007800;
}
.ack-ko{
	background: #ffdfdf;
	border: 1px solid #780000;
}

.map, .map iframe{
	display: block;
	margin: 50px auto;
}

.googlemaps{
	margin: 0 auto;
	display: block;
	max-width: 100%;
}

footer{
	background: #390066;
	padding: 10px;
	text-align: center;
	font-size: 22px;
	color: #FFF;
}

/*	Media Queries	*/
@media (max-width: 1280px){
	header div:first-child{
		margin-top: 50px;
	}
	#comp div[class^="progress"]{
		width: 85%;
	}

	header h1{
		top: auto;
		bottom: 20%;
	}
}
@media (max-width: 920px){
	nav, .menu{
		display: none;
	}
	header h1{
		width: 80vw;
		font-size: 18vw;
	}
	h2{
		width: 100%;
		max-width: 100%;
	}

	h2:after{
		display: none;
		content: "";
	}
	#exp h2 {
		position: static;
	}
	.box{
		width: calc(100% / 2);
		height: calc(100vw / 2);
	}
	.box aside, .box:hover aside{
		opacity: 1;
		margin: 0;
		height: calc(100vw / 2);
		color: #FFF;
	}
	.box aside h3{
		margin-top: 10vw;
		font-size: 5vw;
	}
	.box aside p{
		font-size: 5vw;
	}

	form{
		width: 90%;
		margin: 0 auto;
	}

	div.map {
		display: none;
	}
	#comp .container {
		left: 0;
		max-width: 90%;
	}
}

/*	Animations 	*/
@keyframes clignot{
	0%{
		opacity: 1;
	}
	50%{
		opacity: 0;
	}
	100%{
		opacity: 1;
	}
}

@keyframes appear{
	0%{
		opacity: 0;
	}

	25%{
		opacity: 0;
	}

	100%{
		opacity: 1;
	}
}