/*
* www.KNACSS.com V2.5c @author: Raphael Goetter, Alsacreations
* Adapté par KaySix (http://www.kaysix.fr)
* Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/
*/


/* ----------------------------- */
/* summary */
/* ----------------------------- */
/*
1- reset
2- layout and modules
3- header
4- sidebar
5- footer
6- forms
7- main
8- iefix
9- print
10- desktop medias
11- mobile
*/

/* ----------------------------- */
/* ==reset */
/* ----------------------------- */

/* base font-size corresponds to 10px and is adapted to rem unit */
html {
	font-size: 62.5%;
}
body {
	background-color: #444;
	color: #555;
	font-family: Roboto, helvetica, arial, sans-serif;
	font-size: 1.5em;
	line-height: 1.5; 
}

/* font-sizing for content */
/* preserve vertical-rythm, thanks to http://soqr.fr/vertical-rhythm/ */
p,
ul,
ol,
dl,
blockquote,
pre,
td,
th,
label,
textarea,
caption,
details, 
figure, 
hgroup {
	font-size: 1em; /* equiv 14px */
	line-height: 1.5;
	margin: .75em 0 0;
}
h1, .h1-like {
	font-size: 1.8571em; /* equiv 26px */
	font-weight: normal;
	line-height: 1.1em;
	margin: .8077em 0 0 0;
}
h2, .h2-like {
	font-size: 1.7143em; /* equiv 24px */
	font-weight: normal;
	line-height: 1.1em;
	margin: .875em 0 0 0;
}
h3, .h3-like {
	font-size: 1.5714em; /* equiv 22px */
	font-weight: normal;
	line-height: 1.1em;
	margin: .9545em 0 0 0;
}
h4, .h4-like {
	font-size: 1.4286em; /* equiv 20px */
	font-weight: normal;
	line-height: 1.1em;
	margin:  1.05em 0 0 0;
}
h5, .h5-like {
	font-size: 1.2857em; /* equiv 18px */
	font-weight: normal;
	line-height: 1.1em;
	margin:  1.1667em 0 0 0;
}
h6, .h6-like {
	font-size: 1.1429em; /* equiv 16px */
	font-weight: normal;
	line-height: 1.1em;
	margin:  1.3125em 0 0 0;
}

/* soft reset */
html,
body,
textarea,
figure,
label {
	margin: 0;
	padding: 0;
}
ul,
ol {
	padding-left: 2em;
}
code, 
pre,
samp {
	white-space: pre-wrap;
	font-family: consolas, 'DejaVu Sans Mono', courier, monospace;
}
code { line-height: 1em; }
table { margin-bottom: 1.5em; }

/* avoid top margins on first content element */
p:first-child,
ul:first-child,
ol:first-child,
dl:first-child,
blockquote:first-child,
pre:first-child,
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
	margin-top: 0;
}

/* avoid margins on nested elements */
li p,
li ul,
li ol {
	margin-top: 0;
	margin-bottom: 0;
}

li {
list-style-type: none;
}

/* max values */
img, table, td, blockquote, code, pre, textarea, input, video {
	max-width: 100%;
}

/* you shall not pass */
div, textarea, table, td, th, code, pre, samp {
	word-wrap: break-word;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	-o-hyphens: auto;
	hyphens: auto;
}

/* pictures */
img {
	width: auto;
	height: auto;
	vertical-align: middle;
}
a img { border: 0; }

/* scripts */
body > script {display: none !important;}

/* links */
a { color:#AD3525;text-decoration: none;}
a:hover { color:#861C0E;text-decoration: none;}
::selection { background: #AD3525; color: #FFFFFF; text-shadow: none; }

/* skip-links */
.skip-links {
	position: absolute;
}
.skip-links a {
	position: absolute;
	left: -9999px;
	padding: 0.5em;
	background: #000;
	color:#fff;
	text-decoration: none;
}
.skip-links a:focus {
	position: static;
}

/* ----------------------------- */
/* ==layout and modules */
/* ----------------------------- */

/* switching box model for all elements */
* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

/* float layout */
/* ----------- */

/* tutorial : http://knacss.com/demos/tutoriel.html */

/* module, contains floats (.item is the same) */
.mod, .item { 
	overflow: hidden;
}

/* table layout */
/* ------------------ */
.row {
	display: table;
	table-layout: fixed;
	width: 100%;
}
.row > *,
.col {
	display: table-cell;
	vertical-align: top;
}

/* blocks that needs to be placed under floats */
.clear,
.line,
.row {
	clear: both;
}

/* blocks that must contain floats */
.clearfix:after,
.line:after,
.mod:after {
	content: "";
	display: table;
	clear: both;
}

/* alignments (blocks and inline) */
/* ------------------------------ */

/* left elements */
.left {
	float: left;
}
img.left {
	margin-right: 1em;
}

/* right elements */
.right {
	float: right;
}
img.right {
	margin-left: 1em;
}

.center    { margin-left: auto; margin-right: auto; }
.txtleft   { text-align: left; }
.txtright  { text-align: right; }
.txtcenter { text-align: center; }


/* blocks widths (percentage and pixels) */

.w40    { width: 37%; margin-left: 3%}
.w60    { width: 60%; }
.w100 {width: 100%}


/* ----------------------------- */
/* ==header */
/* ----------------------------- */

.header {
margin-bottom: 3%;
padding: 3% 4% 0;
background: #FFFFFF;
clear: both;
}

.title {
margin-bottom: 2em;
}

nav {
list-style: none;
display: block;
}

nav ul {
margin: 0;
padding: 0;
}

nav li {
	display: inline;
}
nav li a {
display: block;
float: left;
font-size: 1em;
-webkit-transition: background-color .3s linear;
-moz-transition: background-color .3s linear;
-o-transition: background-color .3s linear;
transition: background-color .3s linear;
padding: 0.4em 1em;
font-weight: 700;
text-transform: uppercase;
}

nav li a:hover, nav li a.active {
background-color: rgb(173, 53, 37);
color: #FFF;
}

.nav-open, .nav-close {
display: none !important;
}


/* ----------------------------- */
/* ==sidebar */
/* ----------------------------- */

.sidebar {
background: #FFF;
padding: 3% 4%;
float: left;
}

.aside-title {
margin-bottom: 0.6em;
line-height: 1.1;
font-size: 1.6em;
}

.aside-content {
margin-bottom: 2em;
}

.tag {
margin-right: .5em;
}

/** Bouton haut de page **/
#scrollToTop {font-size: 0.9em;}
#scrollToTop a, #scrollToTop a:visited, #scrollToTop a:link, #scrollToTop a:focus, #scrollToTop a:active {
    display:block;
    position: fixed;
    right: 10px;
    bottom: 16px;
    height:30px;
    font-family: Times, Serif; /* Pour une compatibilité maximale de l'affichage de la flèche, ne pas modifier la police */
    font-size:230%;
    line-height:0;
    opacity:0.6;
    text-decoration: none;
    outline:0;
}

#scrollToTop a:hover {
    opacity:1;
}

/* ----------------------------- */
/* ==footer */
/* ----------------------------- */

.footer {
float: left;
clear: both;
text-align: center;
background: #FFF;
margin-top: 3%;
padding: 3% 4%;
}

.footer p {
font-size: 0.85em;
line-height: 1.5em;
margin: 0 auto;
}

/* ----------------------------- */
/* ==forms */
/* ----------------------------- */
form,
fieldset {
	border: none;
}
input,
button,
select,
label {
	vertical-align: middle; /* @bugfix alignment */
}
textarea {
	resize: vertical;
	font-family: inherit;
}

 label{ 
display: block;
margin: 5px 0;
font: 0.9 'Roboto', arial, helvetica, sans-serif;
}

textarea {
vertical-align: text-top;
overflow: auto;
height: 9em;
resize: none;
}

input, textarea {
width: 100%;
padding: 10px 10px;
font: 0.9em 'Roboto', arial, helvetica, sans-serif;
border: 1px solid #DDD;
}

input:focus, textarea:focus {
outline: 2px solid rgb(173, 53, 37);
}

input[type="submit"] {
margin-top: 10px;
background-color: rgb(173, 53, 37);
border: 0;
color: white;
font-size: 0.9em;
font-weight: 700;
text-transform: uppercase;
cursor:pointer
}

input[type="submit"]:hover {
background-color: #FF9A8C;
color: white;
}

input[type="submit"]:active {
position: relative;
top: 1px;
border: 0;
}

.searchform {
margin-bottom: 2em;
 }

input.searchfield {
width: auto;
}

input.searchbutton {
width: auto;
margin: 0;
}

.comment {
overflow: hidden;
padding: 0;
margin: 3% 0;
}

#comments {
margin-top: 3em;
}


/* ----------------------------- */
/* ==main */
/* ----------------------------- */

.wrap {
position: relative;
width: 96%;
margin: 2em auto;
max-width: 2000px;
}

.content {
background: #FFF;
padding: 3% 4%;
float: left;
}

.art-home {
margin-bottom: 5em;
}

.art-home:first-child {
background: #FFF;
}

.more a{
background-color: #AD3525;
color: white;
font-weight: 700;
text-transform: uppercase;
padding: 6px 10px;
float: right;
}

.more a:hover {
background-color: #FF9A8C;
color: white;
}

.more a:active {
position: relative;
top: 1px;
border: 0;
}

.article img, .art-home img{
vertical-align: middle;
display: block;
margin: 0 auto;
max-width: 100%;
max-height: 100%;
padding: 3% 0;
}

.author-infos {
margin: 2em 0;
background: #DDD;
}

.rss {
padding: 1.4em 0;
}

/* ----------------------------- */
/* ==iefix */
/* ----------------------------- */

/* haslayout for IE6/IE7 */
.ie67 .clearfix,
.ie67 .line,
.ie67 .mod,
.ie67 .row,
.ie67 .col {
	zoom: 1;
}

/* inline-block and table-cell for IE6/IE7 */
/* warning: .col needs width on IE6/IE7 */
.ie67 .btn,
.ie67 .col,
.ie67 .inbl {
	display: inline;
	zoom: 1;
}
.ie8 img {
	width: auto; /* @bugfix for IE8 */
}

/* Active box-sizing for IE6/IE7 */
/* @source https://github.com/Schepp/box-sizing-polyfill */
/*
.ie67 * {
	behavior: url(/js/boxsizing.htc);
}
*/

/* ----------------------------- */
/* ==print */
/* ----------------------------- */

/* quick print reset */
@media print {
	p,
	blockquote {
		orphans: 2;
		widows: 2;
	}
	blockquote,
	ul,
	ol {
		page-break-inside: avoid;
	}
	h1,
	h2,
	h3,
	caption {
		page-break-after: avoid;
	}
}

/* ----------------------------- */
/* ==desktop medias */
/* ----------------------------- */

@media (min-width: 641px) {
	/* here go rules for big resources and big screens like: background-images, font-faces, etc. */
}

/* ----------------------------- */
/* ==mobile */
/* ----------------------------- */

/* quick tablet reset */
@media (max-width: 768px) {
	.tablet-hidden { display: none; }
	.w60, .w40 { width: auto;}
        .sidebar {margin-top: 1em; margin-left: 0;}
        .content, .sidebar, .header, .footer {width: 100%}
}

/* quick smartphone reset */
@media (max-width: 640px) {
	.phone-hidden { display: none; }
      	.mod, 	.item, 	.col, 	label, 	fieldset {
		display: block !important;
		float: none;
		clear: none !important;
		width: auto !important;
		margin-left: 0 !important;
		margin-right: 0;
		border: 0;
	}
   .comment img {
float : left;
margin-right: 1em;
}

nav {
margin-bottom: 3%
}
nav li a {
display: block !important;
margin: 0 !important;
border: 0 !important;
float: none !important;
width: auto !important;
}


}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
/* Style adjustments for retina devices */
}

/* orientation iOS font-size fix */
@media (orientation: landscape) and (max-device-width: 768px) {
	html,
	body {
		-webkit-text-size-adjust: 100%;
	}
}