/*
 * David Web
 * www.yonelabs.com
 * Version 1.0
 */


/* Typography
==============================================*/

html>body {
	font-size: 14px;
	font-family: 'Droid Serif', serif;
	font-weight: 400;
	line-height: 28px;
	color: rgb(90,90,90);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: #000000 !important;
	margin: 20px 0;
	font-family: 'Roboto', sans-serif;
	font-weight: 700;
	color: inherit;
}

h1.tera {
	font-size: 60px;
	line-height: 81px;
}

h2.tera {
	font-size: 46px;
	line-height: 63px;
}

h3.tera {
	font-size: 36px;
	line-height: 51px;
}

h4.tera {
	font-size: 30px;
	line-height: 44px;
}

h5.tera {
	font-size: 24px;
	line-height: 37px;
}

h6.tera {
	font-size: 18px;
	line-height: 31px;
}

h1 {
	font-size: 36px;
	line-height: 48px;	
}

h2 {
	font-size: 30px;
	line-height: 44px;
}

h3 {
	font-size: 24px;
	line-height: 37px;
}

h4 {
	font-size: 18px;
	line-height: 31px;
}

h5 {
	font-size: 14px;
	line-height: 28px;
}

h6 {
	font-size: 12px;
	line-height: 27px;
}

p {
	font-size: 14px;
	margin: 0 0 20px 0;
	line-height: 28px;
}

/* Global
==============================================*/

/* reset bootstrap */
input, 
select,
textarea {
	border: 1px solid #eeeeee !important;
	border-radius: 0 !important;
	background: #fbfbfb !important;
	box-shadow: none !important; 
}

input:focus,
textarea:focus {
	border: 1px solid #F1C40F !important;
}

label {
	display: block;
	font-weight: 400;
	letter-spacing: 1px;
}

button,
input[type="submit"] {
	border-radius: 0 !important;
	background: #e30513;
	color: white !important;
	border: 1px solid #f39c12;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;		
}

button:hover,
input[type="submit"]:hover {
	background: #0096ff;
}

button.btn-link {
	color: #000 !important;
}

.input-control {
	margin-bottom: 20px;
}

legend {
	border-bottom: 1px solid #eeeeee;
	letter-spacing: 1px;
}

a:hover,
a:focus {
	text-decoration: none;
	outline: none;
}


/* stripe */
.stripe {
	background: url("../img/stripe.png");
	background-color: rgba(0, 0, 0, .21);
}

/* section */
.section {
	padding-top: 60px;
	padding-bottom: 120px;
}

/* line */
hr {
	margin: 30px 0;
}

hr.none {
	opacity: 0;
	margin: 30px 0;
}

/* box white */
.box-white {
	background: white;
	padding: 20px;
	max-width: 1170px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

/* text rotator */
.rotating {
	display: inline-block;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	-ms-transform-style: preserve-3d;
	-o-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform: rotateX(0) rotateY(0) rotateZ(0);
	-moz-transform: rotateX(0) rotateY(0) rotateZ(0);
	-ms-transform: rotateX(0) rotateY(0) rotateZ(0);
	-o-transform: rotateX(0) rotateY(0) rotateZ(0);
	transform: rotateX(0) rotateY(0) rotateZ(0);
	-webkit-transition: 0.5s;
	-moz-transition: 0.5s;
	-ms-transition: 0.5s;
	-o-transition: 0.5s;
	transition: 0.5s;
	-webkit-transform-origin-x: 50%;
}

.rotating.flip {
	position: relative;
}

.rotating .front, .rotating .back {
	left: 0;
	top: 0;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-ms-backface-visibility: hidden;
	-o-backface-visibility: hidden;
	backface-visibility: hidden;
}

.rotating .front {
	position: absolute;
	display: inline-block;
	-webkit-transform: translate3d(0,0,1px);
	-moz-transform: translate3d(0,0,1px);
	-ms-transform: translate3d(0,0,1px);
	-o-transform: translate3d(0,0,1px);
	transform: translate3d(0,0,1px);
}

.rotating.flip .front {
	z-index: 1;
}

.rotating .back {
	display: block;
	opacity: 0;
}

.rotating.spin {
	-webkit-transform: rotate(360deg) scale(0);
	-moz-transform: rotate(360deg) scale(0);
	-ms-transform: rotate(360deg) scale(0);
	-o-transform: rotate(360deg) scale(0);
	transform: rotate(360deg) scale(0);
}

.rotating.flip .back {
	z-index: 2;
	display: block;
	opacity: 1;

	-webkit-transform: rotateY(180deg) translate3d(0,0,0);
	-moz-transform: rotateY(180deg) translate3d(0,0,0);
	-ms-transform: rotateY(180deg) translate3d(0,0,0);
	-o-transform: rotateY(180deg) translate3d(0,0,0);
	transform: rotateY(180deg) translate3d(0,0,0);
}

.rotating.flip.up .back {
	-webkit-transform: rotateX(180deg) translate3d(0,0,0);
	-moz-transform: rotateX(180deg) translate3d(0,0,0);
	-ms-transform: rotateX(180deg) translate3d(0,0,0);
	-o-transform: rotateX(180deg) translate3d(0,0,0);
	transform: rotateX(180deg) translate3d(0,0,0);
}

.rotating.flip.cube .front {
	-webkit-transform: translate3d(0,0,100px) scale(0.9,0.9);
	-moz-transform: translate3d(0,0,100px) scale(0.85,0.85);
	-ms-transform: translate3d(0,0,100px) scale(0.85,0.85);
	-o-transform: translate3d(0,0,100px) scale(0.85,0.85);
	transform: translate3d(0,0,100px) scale(0.85,0.85);
}

.rotating.flip.cube .back {
	-webkit-transform: rotateY(180deg) translate3d(0,0,100px) scale(0.9,0.9);
	-moz-transform: rotateY(180deg) translate3d(0,0,100px) scale(0.85,0.85);
	-ms-transform: rotateY(180deg) translate3d(0,0,100px) scale(0.85,0.85);
	-o-transform: rotateY(180deg) translate3d(0,0,100px) scale(0.85,0.85);
	transform: rotateY(180deg) translate3d(0,0,100px) scale(0.85,0.85);
}

.rotating.flip.cube.up .back {
	-webkit-transform: rotateX(180deg) translate3d(0,0,100px) scale(0.9,0.9);
	-moz-transform: rotateX(180deg) translate3d(0,0,100px) scale(0.85,0.85);
	-ms-transform: rotateX(180deg) translate3d(0,0,100px) scale(0.85,0.85);
	-o-transform: rotateX(180deg) translate3d(0,0,100px) scale(0.85,0.85);
	transform: rotateX(180deg) translate3d(0,0,100px) scale(0.85,0.85);
}

/* tab */
.ditab {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ditab li {
	display: inline-block;
}

.ditab li a {
	display: inline-block;
	background: #eeeeee;
	padding: 10px 20px;
}

.ditab li.active a {
	color: white;
	background: #F1C40F;
}

.tab-content {
	width: 100%;
	background: #eeeeee;
}

.tab-content .active {
	border-top: 2px solid #F1C40F;
}

.tab-content .tab-pane {
	padding: 20px;
}

/* pie chart */
.chart {
	display: inline-block;
	text-align: center;
}

.chart .percentage {
	position: relative;
}

.chart .percentage span {
	display: block;
	font-size: 18px;
	position: absolute;
	left: 0;
	right: 0;
	top: 39%;
}

.chart .desc {
	color: #000000;
	font-size: 14px;
	font-weight: 700;
	margin-top: 1em;
}

/* loader */
.loader {
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background: url('../img/ajax-loader.gif') 50% 50% no-repeat #ffffff;
}

/* opacity */
.xfade {
	opacity: 100;
}

/* stripe layer */
#intro {
	background: url('../img/stripe.png');
	background-color: rgba(0,0,0,.61);
}

#contact, #testimonials, #services, #fun-facts {
	background: url('../img/stripe.png');
}


/* Navbar
==============================================*/

.navbar-brand {
	margin: 0;
	padding-top: 5px;
}

.navbar {
	background: white;
	border: 0;
	height: 57px;
	padding-top: 0px;
	box-shadow: 0 1px 10px rgba(0,0,0,0.1);
}

.nav {
	float: left;
}

.nav li a {
	color: #bfbfbf !important;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.nav li.current a {
	color: #0096ff !important;
}


/* Heading
==============================================*/

.heading {
	text-align: center;
	padding: 125px 0 30px 0;
	overflow: hidden;
	background: #f5f5f5;
}

.heading h1 {
	display: inline-block;
	position: relative;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: #f5f5f5;
	border: 1px solid #f5f5f5;
	color: #000000 !important;
}

.heading h1 .st {
	display: inline-block;
	color: white;
	background: #0096ff;
	padding: 0 10px 0 10px;
	height: 100%;
}

.heading h1 .nd {
	color: #000000;
	background: white;
	padding: 0 10px;
}

.heading .desc {
	font-size: 18px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	color: #444444;
}

/**/

.heading2 {
	text-align: center;
	padding: 100px 0 30px 0;
	overflow: hidden;
}

.heading2 h1 {
	display: inline-block;
	position: relative;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background: #f5f5f5;
	border: 1px solid #f5f5f5;
	color: #000000 !important;
}

.heading2 h1 .st {
	display: inline-block;
	color: white;
	background: #0096ff;
	padding: 0 10px 0 10px;
	height: 100%;
}

.heading2 h1 .nd {
	color: #000000;
	background: white;
	padding: 0 10px;
}

.heading2 .desc {
	font-size: 18px;
	font-family: 'Roboto', sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	color: white;
}

/**/

.headline {
	margin-bottom: 30px;
}

.headline h1 {
	display: inline-block;
	padding: 0 20px;
	margin: 0;
	font-size: 18px;
	line-height: 37px;
	background: url("../img/stripe.png");
	opacity: .7;
	text-transform: uppercase;
}


/* Intro
==============================================*/

#intro {
	content: " ";
	position: relative;
	text-align: center;
	height: 100%;
}

#intro h1 {
	position: absolute;
	top: 40%;
	left: 0;
	right: 0;
	color: white !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

#intro h1 .rotate {
	color: #0096ff;
}


/* About
==============================================*/

#about {
	background: white;
}

/* timeline */
.timeline {
	position: relative;
	overflow: hidden;
	height: auto;
	padding: 0px;
	list-style: none;
}

.timeline:after {
	content: " ";
	height: 100%;
	background: #F1C40F;
	width: 10px;
	position: absolute;
	left: 49.6%;
	top: 0;
	border: 1px solid #F1C40F;
	z-index: 0;
}

.timeline .year {
	display: block;
	position: relative;
	background: #F1C40F;
	font-size: 2em;
	max-width: 4em;
	clear: both;
	color: white;
	text-align: center;
	margin: 0 auto 28px auto;
	z-index: 1;
	padding: 10px;
}

.timeline .year:first-of-type {
	margin-top: 0 !important;
}

.timeline .event {
	position: relative;
	border: 1px solid #eeeeee;
	float: right;
	clear: right;
	width: 45%;
	margin: 0 2.5% 28px 2.5%;
	display: block;
	padding: 20px;
	background: white;
	list-style-type: none;
	z-index: 15;
	border-radius: 3px;
	-webkit-transition: background .15s linear;
	-moz-transition: background .15s linear;
	-ms-transition: background .15s linear;
	-o-transition: background .15s linear;
	transition: background .15s linear;
}

.timeline .event img {
	margin-bottom: 20px;
}

.timeline .event h1,
.timeline .event h2,
.timeline .event h3,
.timeline .event h4,
.timeline .event h5,
.timeline .event h6 {
	margin-top: 0;
}

.timeline .event:hover {
	background: #f5f5f5;
}

.timeline .event:nth-of-type(2n) {
	float: left;
	clear: left;
}

.timeline .event:nth-of-type(2n):after {
	right: -5%;
	left: auto;
}

.timeline .event:after {
	display: block;
	content: ' ';
	background: #F1C40F;
	position: absolute;
	left: -5%;
	top: 1.5em;
	width: 25px;
	height: 1px;
}


/* Team
==============================================*/

#team {
	background: white;
}

#team-slide .item {
	background: #fbfbfb;
	border: 1px solid #eeeeee;
	overflow: hidden;
}

#team-slide .carousel-indicators {
	position: relative;
	display: block;
	padding: 0 0 80px 0;
	margin: 0;
	left: 0;
	top: 30px;
	height: 60px;
	width: 100%;
}

#team-slide .carousel-indicators li {
	border: none;
	background: none;
	height: auto;
	width: auto;
	overflow: hidden;
	opacity: 0.5;
}

#team-slide .carousel-indicators li.active {
	opacity: 1;
}

#team-slide .carousel-control {
	color: white;
	height: 50px;
	width: 50px;
	border-radius: 5px;
	background: #0096FF;
}

#team-slide .carousel-control:focus {
	outline: none;
}

#team-slide .content {
	padding: 20px 20px 20px 0;
}

#team-slide .name {
	margin-bottom: 20px;
}

#team-slide .name h1 {
	margin: 0;
	text-transform: uppercase;
}

#team-slide .name em {
	font-size: 18px;
}

.socials a {
	display: inline-block;
	font-size: 24px;
	line-height: 37px;
	margin-right: 16px;
}

.socials a:hover {
	text-decoration: none;
}


/* produits
==============================================*/

#services {
	background: white;
}

#services .section {
	padding-bottom: 100px;
}

.service {
	text-align: center;
	background: #FBFBFB;
	margin-bottom: 30px;
	border: 1px solid #eeeeee;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
	margin-left: auto;
	padding: 20px;
}

.service:hover {
	
	background: white;
	border: 1px solid #0096ff;
}

.service .circle {
	background: #0096ff;
	height: 120px;
	width: 120px;
	line-height: 120px;
	border-radius: 50%;
	text-align: center;
	margin: 0 auto;
}

.service .circle span {
	background: white;
	height: 100px;
	width: 100px;
	line-height: 80px;
	display: block;
	border-radius: 50%;
	margin: auto;
	font-size: 36px;
	color: #0096ff;
}

/* partenaires
==============================================*/

#work {
	background: white;
}

.filters {
	text-align: center;
	margin-bottom: 30px;
}

.filters a {
	display: inline-block;
	padding: 10px 20px;
	background: #f5f5f5;
	margin-right: 6px;
	cursor: pointer;
	text-transform: uppercase;
}

.filters a.active {
	background: #0096ff;
	color: white;
}

.filters a:hover {
	text-decoration: none;
}

.portfolio {
	list-style: none;
	margin: -15px;
	padding: 0;
}

.portfolio .mix {
	display: none;
	margin: 15px;
	float: left;
	width: 262.5px;
}

.portfolio figure {
	position: relative;	
}

.portfolio figcaption {
	opacity: 0;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	color: white;
	border-radius: 5px;
	background: #000000;
	text-align: center;
	padding: 20px;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
}

.portfolio figcaption a {
	display: inline-block;
	height: 30px;
	width: 30px;
	line-height: 30px;
	margin: 0 auto;
	color: white;
}

.portfolio figcaption a:hover {
	text-decoration: none;
}

.portfolio figcaption h3 {
	color: white !important;
	font-weight: 400;
	margin: 0;
}

.portfolio figcaption p {
	font-size: 12px;
}

.portfolio .mix:hover figcaption {
	opacity: .9;
	background: #0096ff;
	cursor: pointer;
}

.main-post {
	border-bottom: 5px solid #eeeeee;
	background: white;
}

.main-post .entry-content {
	padding: 20px 0;
}

.main-post .entry-title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
}

.main-post .entry-meta {
	list-style: none;
	display: block;
	margin: 0 0 20px 0;
	padding: 0;
	font-size: 12px;
}

/* Testimonial
==============================================*/

#contact em {
	color: red;
}

#contact .alert {
	margin-top: 20px;
	margin-bottom: 0;
}

.address span {
	float: left;
	display: block;
	height: 50px;
	width: 50px;
	line-height: 50px;
	text-align: center;
	color: white;
	background: #0096ff;
	margin-right: 20px;
}

.address li {
	background: #f5f5f5;
	clear: both;
	line-height: 50px;
	margin-bottom: 20px;
}

#googlemap {
	width: 100%;
	height: 382px;
}

/* Connect
==============================================*/

#connect {
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

.social-button {
	text-align: center;
}

.social-button a {
	display: inline-block;
	height: 80px;
	width: 80px;
	line-height: 80px;
	text-align: center;
	background: #e30513;
	font-size: 45px;
	color: white;
	margin: 0 auto;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
	border-radius: 10px;
}

.social-button a:focus,
.social-button a:hover {
	text-decoration: none;
	outline: none;
	background: #0096ff;
}


/* Info
==============================================*/

#info {
	background: rgba(0,0,0,.81);
	padding: 30px 0;
	text-align: center;
}


/* Page
==============================================*/

#page-title {
	margin-top: 70px;
}

#page-title .heading {
	background: rgba(0,0,0,.81);
}

#page-title .heading h1 {
	background: none;
	border: none;
	color: white !important;
}

#page-title .heading .desc {
	color: white;
}

#site-content {
	background: white;
}


/* Media Query
==============================================*/

@media (min-width: 768px) and (max-width: 1169px) { 

	.navbar {
		height: auto;
		text-align: center !important;	
	}

	.nav {
		float: none;
		text-align: center;
	}

	.nav li {
		float: none;
		display: inline-block;
	}

	.navbar-brand {
		float: none;
	}

	/* portfolio */
	.filters {
		margin-bottom: 50px;
	}

	.portfolio .mix {
		width: 50%;
		margin: 0;
	}

	.portfolio figcaption {
		padding: 40px;
	}

	.portfolio figcaption h3 {
		font-size: 36px;
		margin-bottom: 20px;
	}

	.portfolio figcaption p {
		font-size: 14px;
	}	

	.portfolio figcaption a {
		height: 60px;
		width: 60px;
		line-height: 60px;
	}

	/* column margin */
	section .row {
		margin-bottom: -60px;
	}
	section [class*="col-md"] {
		margin-bottom: 60px;
	}	
}

@media (max-width: 767px) {

	/* navigation */
	.navbar {
		height: auto;	
	}

	.navbar-toggle {
		border: none;
		background: #000000;
	}

	.navbar-collapse {
		border: 0;
	}

	.nav {
		float: none;
	}	

	/* heading */
	.heading h1,
	.heading2 h1 {
		background: white;
	}

	/* timeline */
	.timeline .event {
		width: 85%;
	}

	.timeline .event:after {
		opacity: 0;
	}

	/* team slide */
	#team-slide .content {
		padding-left: 20px;
	}

	/* column margin */
	section .row {
		margin-bottom: -60px;
	}
	section [class*="col-md"] {
		margin-bottom: 60px;
	}

	/* testimonials */
	#testimonials-slide .carousel-inner {
		margin-right: 0;
		margin-left: 0;
	}

	/* contact */
	#btn-contact {
		margin: 0 !important;
	}

	/* social buttons */
	.social-button a {
		margin-bottom: 4px;
	}

	/* portfolio */
	.filters a {
		width: 50%;
		margin: 0;
		float: left;
	}

	.portfolio .mix {
		width: 100%;
		margin: 0;
	}

	.portfolio figcaption {
		padding: 40px;
	}

	.portfolio figcaption h3 {
		font-size: 42px;
		margin-bottom: 20px;
	}

	.portfolio figcaption p {
		font-size: 14px;
	}

	/* team */
	#team-slide .col-md-6 {
		margin: 0;
	}

	/* intro */
	#intro h1 {
		font-size: 30px;
		line-height: 44px;
	}
}
