/* FONTS ADDS */

@font-face { font-family: 'fontAwesome';
	src: url('../fonts/fontAwesome/fontawesome-webfont.eot') format('eot'),
	url('../fonts/fontAwesome/fontawesome-webfont.woff') format('woff'),
	url('../fonts/fontAwesome/fontawesome-webfont.ttf') format('truetype'),
	url('../fonts/fontAwesome/fontawesome-webfont.otf') format('truetype'),
	url('../fonts/fontAwesome/fontawesome-webfont.svg') format('svg');
}

/* GLOBALS STYLES */
	
html, body {
	font-family: fontAwesome, sans-serif;
 	padding:0;
 	margin:0;
 	
 }

h1 {
	font-family: Roboto, serif; 
	font-size: 40px;
	margin-bottom: -12px;
}

h2 {
	font-family: Roboto, serif; 
	font-size: 40px;
}

h3 {
	font-family: Roboto, serif;
	margin: 0px;
}

h4 {
	font-family: Roboto, serif;
	font-size: 20px;
	font-weight: bold;
	margin: 2px 0px 2px 10px;
	
}

label {
	font-family: Roboto, serif;
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	line-height: 50px;
	display: inline-block;
	width: 120px;
}


p {
	line-height: 30px;
	margin : 25px 0px 25px 0px;
	
}

a {
	color: black;
	text-decoration: none;
}

strong {
	font-family: fontAwesome, sans-serif;
	font-weight: normal;
}

/* CLASSES STYLES */

/* Fonts */
.upper {
	text-transform: uppercase;
}

.blue {
	color: #5cadd3;
}

.white {
	color: white;
}

.center {
	text-align: center;
}

.bold {
	font-weight: bold;
}



/*Icons - Graphics*/
.fa-bars {
	font-size: 38px;
	padding: 6px;
	margin-top: 10px;
	background-color: white;
	border: 3px solid white;
	border-radius: 5%;
	border : 1.5px solid #d7d7d7;
}

.diapo-nav {
	font-size: 20px;
	line-height: 60px;
	height: 60px;
	width: 50px;
	position:absolute;
	top: 50%;
	margin-top: -30px;
	background-color: black;
	border-radius: 50%;
	opacity: 0.5;
	transition: opacity, 1s;
}

.diapo-nav-left {
	text-align: right;
	padding-right: 10px;
	left: -30px;
}


.diapo-nav-right {
	padding-left: 10px;
	right: -30px;
  }

.diapo-nav-left:hover, .diapo-nav-right:hover{
	opacity : 1;
}

.bullet-icon {
	text-align: center;
	border : 1.5px solid #d7d7d7;
	border-radius: 50%;
	margin : 20px;
}

#services .bullet-icon {
	font-size: 30px;
	padding: 30px;
}

.descriptProject .bullet-icon {
	font-size:15px;
	line-height: 50px;
	height: 50px;
	width: 50px;
	background-color: #5cadd3;
	border: 1.5px solid white;
	position: relative;
	left: 210px;
	bottom: 106px;
}

.fa-caret-down {
	font-size: 30px;
	color: #4494bb;
	position: relative;
	bottom: 12px;
	opacity:0;
}

.fa-chart-pie {
	font-size: 27px;
}

.fa-circle {
	font-size: 18px;
	border : 3px white solid;
	border-radius: 50%;
}

.smart-line .fa-circle {
	position: relative;
	bottom: 12px;
}

#abilities .fa-circle {
	position: absolute;
	margin-left: 46px;
}

.smart-line {
	width: 130px;
	border-top: 1px solid #ebebeb;
	position: relative;
	left: 50%;
	margin-left: -66px;
}



/*Blocks */
.box {
	height: 200px;
	width: 300px;
	margin : 20px;
}

.box img {
  width:100%;
  height:100%;
  z-index: 1;
}

.box:hover .descriptProject {
		opacity:1;
}

.descriptProject {
	height:60px;
	width:300px;
 	background-color: rgba(0,0,0,0.5);
 	padding-top:5px; 
	position: relative;
 	bottom: 67px;
  	opacity: 0;

  	transition: opacity, 1s;
}



/* Form cases */
form {
	display: flex;
	flex-direction: column;
}

textarea {
	font-family: fontAwesome, sans-serif;
	font-size: 15px;
	border : 1px solid #cccccc;
	border-radius: 3px;
	padding: 15px;
	margin-bottom: 20px;
}

.enter {
	font-size: 15px;
	border : 1px solid #cccccc;
	border-radius: 3px;
	margin-bottom: 20px;
	height : 33px;
	padding-left: 15px;
}

.button {
	text-align: center;
	border: 0px;
	border-bottom: 3px solid #4494bb;
	border-radius: 3px;
	background-color: #5cadd3;
	height: 42px;
}

#diapo .button {
	font-size: 20px;
	line-height: 42px;
	width: 140px;
} 

#bloc-form .button {
	font-size: 16px;
	width: 150px;

}

.button:hover {
	text-decoration: underline;
}

#projects input {
	position: absolute;
	margin-top : 280px;
	opacity: 0;

}




/* SPECEFICS STYLES */

/* Header */
	/* Navbar */
#logo-navbar {
	height: 82px;
	width: 100%;
	background-color: white;
	display: flex;
	position: fixed;
	z-index: 5;
	padding-left: 40px;
}

#logo {
	padding: 13px;
}

#button-mini {
	height: 82px;
	width: 90.5px;
	text-align: center;
	line-height: 82px;
	display: none;
	position: fixed;
	right: 5%;
}

nav {
	display: flex;
	position: fixed;
	right: 10%;
}

nav div {
	width: 90px;
	line-height: 81px;
}

nav div:hover {
	line-height: 79px;
	font-weight:bold;
	border-top: 2px solid #5cadd3;
}

/* Diapo */	
#diapo {
	height: 550px;
	width: 100%;
	position:relative;
	padding-top: 84px;
	margin-bottom: 90px;
}


.page {
	height: 550px;
	width: 100%;
	position:absolute;
	opacity:0;
	overflow: hidden;
}

.page1 {
	z-index: 2;
	opacity: 1;
	background-image: url(../images/slider/bg1.jpg);
	background-position: center;		
}

.page2{
	background-image: url(../images/slider/bg2.jpg);
	background-position: center;

}

#page1, #page2 {
	position: absolute;
	top: 0%;
}


#page2:target ~ .page2 {
	-webkit-animation: carouselTWO 15s infinite;
	animation: carouselTWO 15s infinite;
	
}

#page2:target ~ .page1 {
	-webkit-animation: carouselONE 15s infinite;
	animation: carouselONE 15s infinite;	


}

#page2:target ~ .filer-blue {	
	-webkit-animation: filer 7.5s linear infinite;
	animation: filer 7.5s linear infinite;
	-webkit-animation-delay: -1s;
	animation-delay: -1s;
}


#page2:not(:target) ~ .page1 {	
	-webkit-animation: carouselTWO 15s infinite;
	animation: carouselTWO 15s infinite;
	

}
 		
 #page2:not(:target) ~ .page2 {
	-webkit-animation: carouselONE 15s infinite;
	animation: carouselONE 15s infinite;	

}

#page2:not(:target) ~ .filer-blue {	
	-webkit-animation: filertwo 7.5s linear infinite;
	animation: filertwo 7.5s linear infinite;
	-webkit-animation-delay: -1s;
	animation-delay: -1s;
}

@-webkit-keyframes carouselONE {
	0% {opacity: 0;}
	0% {z-index: 1;}
	45% {opacity: 0;}
	45% {z-index: 1;}
	50% {opacity: 1;}
	50% {z-index: 1;}
	95% {opacity: 1;}
	95% {z-index: 1;}
	100% {opacity: 0;}
	100% {z-index: 1;}
}

@keyframes carouselONE {
	0% {opacity: 0;}
	0% {z-index: 1;}
	45% {opacity: 0;}
	45% {z-index: 1;}
	50% {opacity: 1;}
	50% {z-index: 1;}
	95% {opacity: 1;}
	95% {z-index: 1;}
	100% {opacity: 0;}
	100% {z-index: 1;}
}

@keyframes carouselTWO {
	0% {opacity: 1;}
	0% {z-index: 3;}
	45% {opacity: 1;}
	45% {z-index: 3;}
	50% {opacity: 0;}
	50% {z-index: 2;}
	95% {opacity: 0;}
	95% {z-index: 2;}
	100% {opacity: 1;}
	100% {z-index: 3;}
}

@-webkit-keyframes carouselTWO {
	0% {opacity: 1;}
	0% {z-index: 3;}
	45% {opacity: 1;}
	45% {z-index: 3;}
	50% {opacity: 0;}
	50% {z-index: 2;}
	95% {opacity: 0;}
	95% {z-index: 2;}
	100% {opacity: 1;}
	100% {z-index: 3;}
}

.filer-blue {
	width: 100%;
	height: 4px;
	background-color: #5cadd3;
	position: absolute;
	right:100%;
	z-index: 4;
	bottom: 0%;
}

@keyframes filer {
	0% {right: 100%;}
	100% {right: 0%;}
}

@-webkit-keyframes filer {
	0% {right: 100%;}
	100% {right: 0%;}
}

@keyframes filertwo {
	0% {right: 100%;}
	100% {right: 0%;}
}

@-webkit-keyframes filertwo {
	0% {right: 100%;}
	100% {right: 0%;}
}

.diapo-text{
	max-width: 650px;
	position: absolute;
	left: 10%;
	right: 45%;
	padding-top: 120px;
}

/* Services */
#services {
	display: flex;
	flex-direction: column;
	padding-top: 65px;
}



#prestations {
	display: flex;
	justify-content: center;
}

#abilities {
	width: 500px;
	display: flex;
	flex-direction: column;
	right: 20%;
}

#abilities div {
	display: flex;
}

.abilities-list {
	display: flex;
	flex-direction: column;
	margin-left: 20px;
}

#abilities-list h3 {
	margin: 20px 20px 0px 0px;
}

#abilities-list p {
	margin-top: 5px;
}

/* Projects */
	/* Header */
#projects {
	background-color: #f5f5f5;
	display: flex;
	flex-direction: column;
	padding: 70px 0px 70px 0px;
	margin-top: 70px;
}

#navProjects {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
}


#categories {
	height: 50px;
	width: 480px;
	display: flex;
	background-color: #e5e5e5;
	border-radius: 5px;
}


#first {
	border-radius: 5px 0px 0px 5px;
}

#lastest {
	border-radius: 0px 5px 5px 0px;
}

#categories div:hover, #allWorks:checked ~ div div #first, #creative:checked ~ div div #second,
#corporate:checked ~ div div #trird, #portfolio:checked ~ div div #lastest {
	color: white;
	background-color: #5cadd3;
	border-bottom: 3px solid #4494bb;
}

#categories div:hover .fa-caret-down, #allWorks:checked ~ div div #first .fa-caret-down,
#creative:checked ~ div div #second .fa-caret-down, 
#corporate:checked ~ div div #trird .fa-caret-down, 
#portfolio:checked ~ div div #lastest .fa-caret-down {
	opacity:1;
}

#creative:checked ~ div .nocrea, 
#portfolio:checked ~ div .noportfolio,
#corporate:checked ~ div .nocorporate {
	opacity: 0.3;
}


	/* Catalog */
#catalog {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#catalog div {
	transition: opacity 1.5s;
}

.descriptProject p {
	margin: -4px 0px 0px 10px;
}


/* Contacts */
#contacts {
	background-color: #f5f5f5;
	padding-top: 70px; 
}

iframe {
	width:100%;
	position: absolute;
	z-index: 1;
}

#cache-blue {
	position: absolute;
	height: 770px;
	width: 100%;
	background-color: rgba(68,148,187,0.3); 
	z-index: 2;
}

#bloc-form {
	width: 380px;
	background-color: rgba(255,255,255,0.7);
	position: absolute;
	right: 7%;
	border-radius: 1.5px;
	margin : 45px;
	padding: 25px;
	z-index: 3;
}

#bloc-form p {
	margin: 4px 0px 25px 0px;
	line-height: 22px;
}

#bloc-form h2 {
	font-size: 30px;
	font-weight: bold;
	margin : 2px 0px 5px 0px;
}

#bloc-form h3 {
	margin: 10px 0px 0px 0px;
}


/* MEDIA QUERIES RULES */

@media screen and (max-width: 580px) {
	#diapo, #navProjects {
		display: none;
	}
}



@media screen and (max-width: 768px) {
	iframe {
		display: none;
	}

	#button-mini {
		display: block;
	}

	nav {
		flex-direction: column;
		background-color: white;
		top: 82px;
		right: -20%;
	}

	#button-mini:hover + nav, #button-mini:active + nav, nav:hover, nav:active {
		right: 5%;
	}

	#bloc-form {
		width: 95%;
		position: absolute;
		justify-content: center;
		left: 0%;
		margin : 0px;
	}
}

@media screen and (max-width: 992px) {
	#imac {
		display:none; 
	}
}

