/* Reset
---------------------------------------------------------*/
/* generic ----------- */
address,
article,
aside,
body,
dd,
details,
dl,
figcaption,
figure,
footer,
header,
h1,
h2,
h3,
nav,
p,
section,
ul {
	margin: 0;
	padding: 0;
}


/* Importing font ----------- */
@font-face {
    font-family: "QlassikMediumRegular";
    src: url('/medias/font/Qlassik_TB-webfont.eot');
    src: url('/medias/font/Qlassik_TB-webfont.eot?') format('eot'),
         url('/medias/font/Qlassik_TB-webfont.woff') format('woff'),
         url('/medias/font/Qlassik_TB-webfont.ttf') format('truetype'),
         url('/medias/font/Qlassik_TB-webfont.svg#webfontdLeQUlTY') format('svg');
    font-weight: normal;
    font-style: normal;
}


/* titles ----------- */
h1,
h2,
h3 {
	font-weight: normal;
}

h1 {
	color: #444;
}
h2,
h3 {
	color: #478902;
}

/* HTML5 elements ----------- */
figcaption,
figure,
footer,
header,
nav,
section {
	display:block;
}
 
 
/* links ----------- */

a {
	-moz-transition-property: color, opacity;
	-moz-transition-duration: .6s;
	-o-transition-property: color, opacity;
	-o-transition-duration: .6s;
	-webkit-transition-property: color, opacity;
	-webkit-transition-duration: .6s;
	color: #478902;
	transition-property: color, opacity;
	transition-duration: .6s;
}
	a:hover {
		color: #212121;
		text-decoration: none;
	}

/* lists ----------- */
ul {
	list-style-type: none;
}

/* miscelleanous ----------- */
img {
	border-width: 0;
}
abbr {
	border-bottom: 1px dotted;
	cursor: help;
}



/* // End reset */


/* clearing floats ----------- */
header:after,
header nav ul:after,
#portfolio ul:after,
#services:after {
	clear: both;
	content: ".";
	display: block;
	height: 0;
	visibility: hidden;
}


/* General styles
---------------------------------------------------------*/
body {
	background-color: #eaeaea;
	background-image: url(/medias/img/background.jpg);
	color: #212121;
	font: 1.5em/1.2em "QlassikMediumRegular", Helvetica, Arial, sans-serif;
}


header,
section,
footer {
	margin: 0 auto;
	width: 980px;
}


/* header ----------- */
header {
	padding-bottom: 45px;
}
		header h1 {
			float: left;
			padding-top: 18px;
			padding-left: 20px;
		}
		header nav {
			float: right;
			padding-right: 20px;
		}
				header nav li {
					float: left;
					padding: 52px 7px 0;
					margin-left: 14px;
				}
				header nav .section-courante {
					border-top: 41px solid #478902;
					padding-top: 11px;
				}
				
						header nav a,
						#navigation-secondaire a {
							color: #6b6b6b;
							text-decoration: none;
						}
						header nav .contact a,
						#navigation-secondaire .contact a {
							color: #478902;
						}
							header nav .section-courante a,
							header nav .contact a:hover,
							#navigation-secondaire .contact a:hover {
								color: #212121;
							}


/* #encart ----------- */
#encart {
	-moz-box-shadow: 0 -1px 0 rgba(0,0,0,.10), 0 1px 0 rgba(0,0,0,.10);
	-webkit-box-shadow: 0 -1px 0 rgba(0,0,0,.10), 0 1px 0 rgba(0,0,0,.10);
	background-color: #fff;
	border-color: #aeadad;
	border-style: solid;
	border-width: 1px 0;
	box-shadow: 0 -1px 0 rgba(0,0,0,.10), 0 1px 0 rgba(0,0,0,.10);
	color: #444;
	font-size: 1.5em;
	line-height: 1em;
	margin-bottom: 54px;
}
		#encart div {
			margin: 0 auto;
			padding-bottom: 25px;
			position: relative;
			width: 980px;
		}
				#encart p {
					padding: 25px 20px 0;
					width: 670px;
				}
				#encart p + p {
					width: 480px;
				}
						#encart b {
							color: #478902;
							font-weight: normal;
						}
				#encart svg {
					position: absolute;
					right: 0;
					top: -47px;
				}
						/* image de secours, hein Safari. */
						#encart img {
							padding-top: 17px;
						}


/* sections ----------- */
section {
	padding: 10px 20px 100px;
	width: 940px;
}
		section h1 {
			border-left: 9px solid #478902;
			font-size: 1.5em;
			line-height: .8em;
			margin: 0 0 45px -22px;
			padding: 3px 0 0 13px;
		}

/* #services ----------- */
#services {
	padding-bottom: 103px;
}
		#services p {
			padding-bottom: 22px;
		}
		#services .offre {
			float: left;
			width: 630px;
		}
		#services figure {
			float: right;
			color: #478902;
			font-size: .75em;
			line-height: 1.2em;
			margin: -10px 70px 0 0;
			text-align: center;
		}
				#services figcaption {
					width: 215px;
				}


/* #portfolio ----------- */
#portfolio {
	background: url(/medias/img/deux-cubes.png) no-repeat 100% 100%;
	padding-bottom: 75px;
}
		#portfolio p {
			line-height: 1em;
			padding-bottom: 22px;
		}
		#portfolio p + p {
			line-height: .8em;
		}
				#portfolio b {
					color: #444;
					font-size: .75em;
					font-weight: normal;
				}
		#portfolio ul {
			margin: 0 auto;
			padding: 0 1px;
		}
		
		#portfolio .autres-projets {
			padding-top: 20px;
		}
				#portfolio li {
					-moz-transition-property: opacity;
					-moz-transition-duration: .6s;
					-o-transition-property: opacity;
					-o-transition-duration: .6s;
					-webkit-transition-property: opacity;
					-webkit-transition-duration: .6s;
					float: left;
					opacity: .65;
					padding: 28px 28px 0;
					width: 254px;
					transition-property: opacity;
					transition-duration: .6s;
				}
				#portfolio .autres-projets li {
					padding-bottom: 20px;
				}
					#portfolio li:nth-child(4n) {
						clear: left;
					}
					#portfolio li:hover {
						opacity: 1;
					}
						#portfolio img {
							border: 2px solid #727272;
							display: block;
						}
						#portfolio h2 {
							font-size: 1em;
							padding-top: 22px;
						}
						#portfolio li p {
							font: .583em/1.2em Georgia, Times, "Times New Roman", serif;
							padding: 18px 0 0;
						}
						#portfolio h3 {
							font-size: .875em;
							padding: 32px 0 20px;
						}
						#portfolio li ul {
							padding: 0 0 22px;
						}
								#portfolio li li {
									float: none;
									opacity: 1;
									padding: 0;
									width: auto;
								}
										#portfolio li li p {
											padding-top: 0;
										}
						#portfolio li a {
							float: right;
							font-size: .75em;
							opacity: 0;
						}
						#portfolio .autres-projets a {
							float: none;
							font-size: 1em;
							opacity: 1;
						}
							#portfolio li:hover a {
								opacity: 1;
							}

/* #projets ----------- */
#projets section {
	padding: 5px 0 0;
}
		#projets h2 {
			font-size: 1em;
			padding: 22px 0 18px;
		}
		#projets section p {
			font-size: .75em;
			line-height: 1.2em;
			padding-bottom: 18px;
		}
		#projets .decouvrir {
			color: #444;
			padding-bottom: 45px;
		}

/* #contact ----------- */
#contact ul {
	color: #444;
	font-size: .875em;
	line-height: 1.2em;
	padding-top: 30px;
}
		#contact li {
			padding-top: 20px;
		}
				#contact strong {
					color: #478902;
					font-weight: normal;
				}
				#contact .twitter {
					background: url(/medias/img/twitter.png) no-repeat 100% 0;
					padding-right: 30px;
				}

/* footer ----------- */
footer {
	background: url(/medias/img/trois-cubes.png) no-repeat 50% 90px;
	color: #444;
	font-size: .75em;
	padding: 200px 0 5px;
	text-align: right;
}
		footer strong {
			color: #478902;
			font-weight: normal;
		}

/* #navigation-secondaire ----------- */
#navigation-secondaire {
	-moz-transition-property: opacity, right;
	-moz-transition-duration: .6s;
	-o-transition-property: opacity, right;
	-o-transition-duration: .6s;
	-webkit-transition-property: opacity, right;
	-webkit-transition-duration: .6s;
	font-size: .75em;
	line-height: 1em;
	opacity: 0;
	position: fixed;
	right: -70px;
	text-align: right;
	transition-property: opacity, right;
	transition-duration: .6s;
	top: 20px;
	z-index: 1;
}
#navigation-secondaire.active {
	opacity: 1;
	right: 20px;
}
		#navigation-secondaire li {
			padding-bottom: 2px;
		}
		#navigation-secondaire .section-courante a:before {
			background-color: #478902;
			content: " ";
			float: left;
			height: 5px;
			margin: 6px 7px 0 0;
			width: 13px;
		}
				#navigation-secondaire .section-courante a,
				#navigation-secondaire a:hover {
					color: #212121;
				}



/* Screens <= 1080px ----------- */
@media only screen 
and (max-width : 1080px) {
	#navigation-secondaire {
		background-color: rgba(255,255,255,.8);
		border: 1px solid #ccc;
		padding: 3px;
	}
	#navigation-secondaire.active {
		opacity: .4;
		right: 5px;
	}
		#navigation-secondaire.active:hover {
			opacity: 1;
		}
}



/* Screens >= 980px ----------- */
@media only screen 
and (min-width : 980px) {
	header,
	footer,
	#encart div {
		width: 980px;
	}
	section {
		width: 940px;
	}
}

/* Screens < 994px ----------- */
@media only screen 
and (max-width : 994px) {
	header,
	section,
	footer,
	#encart div {
		width: auto;
	}
	header h1,
	header nav {
		float: none;
	}
	header nav {
		padding: 0 0 0 20px;
	}
			header nav li {
				margin: 30px 14px 0 0;
				padding: 0 14px 0 7px;
			}
			header nav .section-courante {
				border-left: 6px solid #478902;
				border-top: 0;
				padding-top: 0;
			}
	
	#encart {
		font-size: 1.3em;
	}
			#encart div p {
				width: auto;
			}
			#encart svg {
				-moz-transform: translate(80px, -280px) scale(.5);
				-ms-transform: translate(80px, -280px) scale(.5);
				-o-transform: translate(80px, -280px) scale(.5);
				-webkit-transform: translate(80px, -280px) scale(.5);
				top: -17px;
				transform: translate(80px, -280px) scale(.5);
			}
					/* image de secours, hein Safari. */
					#encart img {
						padding-top: 0;
					}
	
	
	section {
		margin: 0;
		padding: 10px 20px 100px;
	}
			section h1 {
				border-left-width: 6px;
				margin-left: -16px;
				padding-left: 9px;
			}
			#services .offre {
				width: auto;
			}
	
	#portfolio > ul {
		width: 620px;
	}
			#portfolio li:nth-child(2n+1) {
				clear: left;
			}
			#portfolio li:nth-child(4n) {
				clear: none;
			}
}


/* Screens <= 740px ----------- */
@media only screen 
and (max-width : 740px) {

	#encart svg {
		visibility: hidden;
	}
	#portfolio > ul {
		width: auto;
	}
	#portfolio > ul > li {
		padding: 28px 0 0;
		width: 100%;
	}
	#portfolio > p {
		line-height: 1em;
	}
	#portfolio > p + p {
		line-height: .8em;
	}
			#portfolio > ul img {
				float: right;
				margin: 0 0 10px 15px;
				width: 125px;
			}
					#portfolio > ul h2,
					#portfolio > ul h3 {
						padding: 0 0 10px;
					}
					#portfolio > ul h3 {
						padding-top: 10px;
					}
					#portfolio > ul p {
						padding-top: 10px;
					}
}


/* Smartphones (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
	h1 img {
		max-width: 280px;
	}
}

