/*

Theme:    Foliox
Demo URL: http://kirby.dsply.fr/foliox

---

Author:   Christopher Boutille
URL:      http://www.dsply.fr
Twitter:  @bydsply

*/


/* Reset
-------------------------------------------------- */
*, *:before, *:after {
	margin: 0;
	padding: 0;
	border: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, nav, section, summary {
	display: block;
}

figcaption {
	font-size: 0.8em;
}


/* Media
-------------------------------------------------- */
img {
	display: block;
	max-width: 100%;
	height: auto;
	border-width: 0;
	outline: 0;
}


/* Links
-------------------------------------------------- */
a {
	color: #4f4f4f;
	text-decoration: none;
}
a:hover {
	color: #8f8f8f;
}


/* Clearfix
-------------------------------------------------- */
.cf:after {
	content: "";
	display: table;
	clear: both;
}


/* Site
-------------------------------------------------- */
html {
	height: 101%;
	font-family: "Roboto", sans-serif;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	font-smoothing: antialiased;
}
body {
	margin: 0 auto;
	font-size: 1.25em;
	line-height: 1.25em;
	padding: 0 1.5em;
	max-width: 31em;
	background: #EFEFEF;
	color: #444;
}


/* Header
-------------------------------------------------- */
.header {
	line-height: 1.5em;
	margin-top: 2.5em;
	text-align: center;
}
.logo {
	font-size: 1.4em;
	font-weight: 700;
	margin-bottom: .5em;
	display: block;
	color: #4f4f4f;
}

@media screen and (min-width: 30em) {
	.header {
		text-align: inherit;
	}
	.logo {
		float: left;
		margin-bottom: 0;
	}
}


/* Navigation
-------------------------------------------------- */
div.toggle {
	margin-top: 1em;
	display: inline-block;
}
.menu {
	display: none;
}
.menu li {
	list-style: none;
	position: relative;
}
.menu li.span, .menu li:last-child.span {
	display: none;
	font-weight: 700;
	color: silver;
}
.menu li a {
	color: #4f4f4f;
	padding: .5em .5em;
	border-top: 1px solid #ddd;
	font-weight: 700;
	display: block;
}
.menu li a:hover {
	color: #8f8f8f;
	text-decoration: none;
}
.menu li a.active,
.menu li a.active:hover {
	color: #5050C0;
}
.menu.active {
	display: block;
	border: 1px solid #ddd;
	margin-top: 1em;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
.menu.active li:first-child a {
	border-top: none;
}

@media screen and (min-width: 30em) {
  div.toggle {
  	display: none;
  }
	.menu {
		display: block;
		float: right;
		margin-right: -.5em;
	}
	.menu li {
		float: left;
	}
	.menu li a {
		padding: 0 .5em;
		border: 0;
	}
	.menu li.span {
		display: inherit;
	}
}


/* Headings
-------------------------------------------------- */
h1 {
	font-size: 2em;
	line-height: 1em;
	font-weight: 300;
	margin-bottom: .5em;
	color: #202020;
}
.title {
	text-align: center;
}
h2 {
	font-size: 2em;
	line-height: 1.25em;
	font-weight: 300;
	margin-bottom: .5em;
	color: #4f4f4f;
}
h3 {
	font-size: 1.4em;
	line-height: 1.5em;
	font-weight: 400;
	margin-bottom: .5em;
	color: #202020;
}
h4 {
	font-size: 1.125em;
	font-weight: 700;
	line-height: 1.5em;
	margin-bottom: .5em;
	color: #4f4f4f;
}
h1 a, h2 a, h3 a, h4 a {
	color: inherit;
	border: 0 !important;
}



/* Main
-------------------------------------------------- */
.main {
	margin-top: 2.5em;
	margin-bottom: 1em;
}
.main hr {
	margin: 3em 0;
	height: 2px;
	background: #205080;
}
.main p,
.main figure,
.main ul,
.main ol {
	margin-bottom: 1.5em;
}
.main a {
	border-bottom: 2px solid #ddd;
}
.main a:hover {
	border-color: #202020;
}

/* Text blocks */
.text ul,
.text ol {
	margin-left: 1em;
}

.text {
	font-size: 0.8em;
}

/* adding iframe */
div.vid-container {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
}
.video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Button
-------------------------------------------------- */
button, .button, a.button {
	font-family: inherit;
	font-size: .9em;
	font-weight: 400;
	color: #4f4f4f;
	background-color: transparent;
	border: 1px solid #4f4f4f;
	padding: .5em 1em;
	display: inline-block;
	cursor: pointer;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
button:hover, .button:hover, button:focus, .button:focus {
	color: #FFF;
	background-color: #4f4f4f;
	outline: none;
}
button:active, .button:active, div.toggle.active {
	color: #FFF;
	background-color: #222;
	border-color: #222;
}


/* Notifications
-------------------------------------------------- */
.alert {
	width: 100%;
	display: block;
	background-color: #333;
	color: white;
	margin-bottom: 1.5em;
	position: relative;
	overflow: hidden;
	text-align: center;
	font-weight: 400;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
.alert p {
	font-size: 1.125em;
	line-height: 1.5em;
	padding: .5em 1em;
	margin-bottom: 0em;
}
.alert p:last-of-type {
	margin-bottom: 0;
}
.alert.success {
	background: #2fdab8;
}
.alert.error {
	background: #D52C2C;
}


/* Footer
-------------------------------------------------- */
.footer {
	padding-bottom: 3em;
}
.footer {
	color: silver;
	font-size: .8em;
}
.footer a {
	color: #4f4f4f;
}
.footer a:hover {
	color: #4f4f4f;
	border-bottom: 2px solid #ddd;
}
.copyright {
	float: left;
}
.colophon {
	display: none;
	float: right;
	font-size: .6em;
}
.colophon .heart-icon {
	background: url("../images/heart.svg") no-repeat;
	display: inline-block;
	height: 12px;
	margin: 0 .1rem;
	width: 14px;
}

.footer .sitemap {
	font-size: .8em;
	text-align: right;
}

.footer .sitemap span:last-child.span {
	display: none;
}

@media screen and (min-width: 30em) {
	.colophon {
		display: block;
	}
}


/* Page Home
-------------------------------------------------- */
ul.teaser {
	list-style: none;
	margin-top: 2.5em;
	margin-bottom: 1em;
}
ul.teaser li {
	width: 100%;
	float: left;
	display: block;
	position: relative;
	vertical-align: top;
	margin-bottom: 1.5em;
	line-height: 0;
	overflow: hidden;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
ul.teaser li a {
	border: none;
	display: block;
}
ul.teaser li a:hover img {
	opacity: 0.5;
}
ul.teaser li a img {
	width: 100%;
}

@media screen and (min-width: 20em) and (max-width: 29.99em) {
	ul.teaser li {
		width: 47.5%;
		margin-right: 5% !important;
	}
	ul.teaser li:nth-child(2n+2) {
		margin-right: 0 !important;
	}
}

@media screen and (min-width: 30em) {
	ul.teaser li {
		width: 30%;
		margin-right: 5% !important;
	}
	ul.teaser li:nth-child(3n+3) {
		margin-right: 0 !important;
	}
}


/* Page Folio
-------------------------------------------------- */
article.aucun {
	text-align: center;
	margin-top: 2.5em;
	margin-bottom: 1.5em;
}
article.aucun p {
	padding: 1em 1.5em;
	background-color: #333;
	border: 1px solid #333;
	color: white;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

ul.folio {
	list-style: none;
	margin-top: 2.0em;
	margin-bottom: 1em;
}
ul.folio li {
	width: 100%;
	float: left;
	display: block;
	position: relative;
	vertical-align: top;
	margin-bottom: 1.5em;
	line-height: 0;
	overflow: hidden;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
ul.folio li a {
	border: none;
	display: block;
}
ul.folio li a:hover img {
	opacity: 0.5;
}
ul.folio li a img {
	width: 100%;
}
.pagination {
	text-align: center;
	margin-bottom: 1.5em;
	clear: both;
}
a.next {
	font-size: .9em;
	font-weight: 700;
	display: inline-block;
	text-align: center;
	padding: .5em 1em;
	background-color: white;
	border: 1px solid #4f4f4f;
	color: #4f4f4f;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
}
a.next:hover {
	color: white;
	background-color: #4f4f4f;
	border-color: #4f4f4f;
}
.end {
	width: 100%;
	display: block;
	text-align: center;
	margin-top: -1em;
	padding: 1em 1.5em;
	background-color: #333;
	border: 1px solid #333;
	color: white;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

@media screen and (min-width: 20em) and (max-width: 29.99em) {
	ul.folio li {
		width: 47.5%;
		margin-right: 5% !important;
	}
	ul.folio li:nth-child(2n+2) {
		margin-right: 0 !important;
	}
}

@media screen and (min-width: 30em) and (max-width: 39.99em) {
	ul.folio li {
		width: 30%;
		margin-right: 5% !important;
	}
	ul.folio li:nth-child(3n+3) {
		margin-right: 0 !important;
	}
}

@media screen and (min-width: 40em) {
	ul.folio li {
		width: 21.25%;
		margin-right: 5% !important;
	}
	ul.folio li:nth-child(4n+4) {
		margin-right: 0 !important;
	}
}


/* Page Work
-------------------------------------------------- */
.meta {
	text-align: center;
	margin-bottom: 1.5em;
}
.meta li {
	display: inline-block;
	list-style: none;
	margin: 0 .3em;
	color: silver;
}
a.tweet {
	color: #FFF;
	background: #55acee;
	font-weight: 400;
	font-size: .85em;
	margin-top: 1.5em;
	padding: .5em 1em;
	border: none;
	display: inline-block;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
.tweet:hover {
	color: #FFF;
	background: #2174D9;
}
.tweet:active {
	color: #FFF;
	background: #222;
}

.tags {
	font-size: 1.1em;
	color: #8f8f8f;
}

.tags span.display {
	font-style: italic;
}

.tags span:last-child.span {
	display: none;
}


/* Page About
-------------------------------------------------- */
.cover img {
	width: 100%;
	height: auto;
	margin-bottom: 1.5em;
	display: block;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}


/* Page Contact
-------------------------------------------------- */
form label {
	font-family: "Roboto", sans-serif;
	color: #333;
	font-size: 1.125em;
	line-height: 1.5em;
	padding-bottom: .5em;
	display: block;
}
form label span {
	font-weight: 400;
	cursor: pointer;
	color: #D52C2C;
}
form div {
	margin-bottom: 1.5em;
}
form div:last-of-type {
	margin-bottom: 0;
}
form input[type="text"],
form input[type="email"],
form textarea {
	-webkit-appearance: none;
	-moz-appearance: none;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	width: 100%;
	font-size: 1em;
	line-height: 1.5em;
	padding: .5em;
	margin: 0;
	font-family: "Roboto", sans-serif;
	color: #333;
	background: transparent;
	border: 1px solid #333;
	position: relative;
	display: block;
	appearance: none;
	outline: none;
}
form textarea {
	min-height: 150px;
	resize: vertical;
	display: block;
}
form input[type="text"]:hover,
form input[type="email"]:hover,
form textarea:hover {
	border-color: #DDD;
}
form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
	border-color: #4f4f4f;
}
form .error input[type="text"],
form .error input[type="email"],
form .error textarea,
form .error select {
	border-color: #D52C2C;
}
form button {
	margin-top: .5em;
}
form button:active {
	color: #FFF;
	background-color: #333;
	border-color: #333;
}
form .help {
	font-family: "Roboto", sans-serif;
	color: #333;
	font-weight: 300;
	margin: 1.5em 0;
}

@media screen and (min-width: 40em) {
	form .help {
		line-height: 1em;
	}
}
.duff {
	position: absolute;
	top: -9999px;
	left: -9999px;
}
form .inpt {
	list-style: none;
	margin-bottom: 0;
}
form .inpt:first-child {
	margin-bottom: 1.5em;
}

@media screen and (min-width: 50em) {
	form .inpt {
		float: left;
		width: 47.5%;
		margin-left: 5%;
	}
	form .inpt:first-child {
		margin-left: 0;
		margin-bottom: 0;
	}
}


/* Page Contact success
-------------------------------------------------- */
article.ok {
	text-align: center;
	margin-top: 2.5em;
	margin-bottom: 2.5em;
}
article.ok p { color: silver }


/* Page Error
-------------------------------------------------- */
#error article {
	text-align: center;
	margin-top: 2.5em;
	margin-bottom: 2.5em;
}
#error article p { color: silver }