/* Layout
-------------------------------------------------------- */

#page {
    background: #e8e8e8;
    font-family: 'Open Sans', Arial, sans-serif;
}

#top {
	margin: 0 auto;
	width: 100%;
}

#top h1 a { text-shadow: 2px 2px 1px rgba(255, 255, 255, 0.8); }

#wrapper {
	margin: 2em auto 0;
	padding: 0;
}

#main { float: left; }
#content { padding: 0; }
#sidebar { float: right; }

html a { color: #c21414; }
html a:hover, html a:active, html a:focus { text-decoration: none; outline: none; color: #b10303; }


/* Sidebar styles
-------------------------------------------------------- */

.card {
    padding-top: 20px;
    margin: 0 0 2.2em;
    background-color: #fff;
    position: relative;
    padding-top: 0;
    overflow: hidden;
    text-align: center;
}

.card .cardheader {
    background-color: #06080b;
    background-size: cover;
    height: 135px;
}

.card .avatar {
    position: relative;
    top: -50px;
    margin-bottom: -50px;
}

.card .avatar img {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.5);
}

.card .info { padding: 4px 8px 10px; }

.card .info .title {
    margin-bottom: 4px;
    font-size: 24px;
    line-height: 1;
    color: #262626;
    vertical-align: middle;
}

.card .info .desc {
    overflow: hidden;
    font-size: 12px;
    line-height: 20px;
    color: #737373;
    text-overflow: ellipsis;
}

.card .bottom {
    padding: 0 20px;
    margin-bottom: 17px;
}

.side-search-form { margin: 0 0 2.2em; }

#sidebar h2 {
	margin: 0;
  	padding: 0 0 0 1em;
	height: 3em;
  	line-height: 3em;;
	background: #06080b;
	color: #fff;
	font-size: 1.075em;
	font-weight: 600;
}

#sidebar h2:after {
  	background: #c21414;
  	width: 3em;
  	text-align: center;
  	font-family: FontAwesome;
    content: "\f0da";
  	float: right;
  	border-left: 2px solid #fff;
}
#sidebar .categories h2:after { content: "\f07b"; }
#sidebar .lastcomments h2:after { content: "\f075"; }
#sidebar .links h2:after { content: "\f0ac"; }
#sidebar .pages h2:after { content: "\f15c"; }
#sidebar .syndicate h2:after { content: "\f09e"; }
#sidebar .tags h2:after { content: "\f02b"; }

#sidebar h3 {
	padding: 0.6em 0;
  	margin: 0;
	background: #e5e5e5;
	text-align: center;
	border-bottom: 1px solid #06080b;
	font-size: 1em;
	font-weight: 700;
}

#sidebar #blognav div,
#sidebar #blogextra div { background: #fff; margin-bottom: 2em; }

#sidebar #blognav div div,
#sidebar #blogextra div div { margin-bottom: 0; }

#sidebar .widget ul, 
#sidebar .widget p,
#sidebar .widget div,
#sidebar .widget form { padding: 1em; margin: 0; }

#sidebar .widget p { text-align: center; }

#sidebar li {
	list-style: none;
	padding: 0.4em;
	border-bottom: 1px dotted #c5c5c5;
}
#sidebar ul ul {
	margin: 0;
	padding: 0 0 0 1em !important;
}
#sidebar li li {
	margin: 0.5em 0 0 0;
	padding: 0 0;
	border: none;
}

#sidebar #search p { margin: 1em; text-align: center; }
#sidebar #search .submit {
	padding: 0.25em 1em;
	margin-top: -0.1em;
	text-transform: uppercase;
}

#topnav span { display: none; visibility: hidden; }

#sidebar li a:before {
	font-family: FontAwesome;
	content: "\f0da";
	margin: 0 0.5em;
	color: #686868; 
	text-shadow: 0 1px 1px #d5d5d5;
}

#sidebar li a:hover:before,
#sidebar li a:active:before,
#sidebar li a:focus:before { color: #202020; }

#sidebar .categories ul { list-style: none; }
#sidebar .categories li.category-current { font-weight: 700; }


/* Main content styles
-------------------------------------------------------- */

html .thumbnail { padding: 0; border-radius: 0; }

.post-title {
    text-align: center;
    padding: 0 1em;
  	/*overflow: hidden;
  	white-space: nowrap;
  	text-overflow: ellipsis;*/
}

#content-info h2, #content-info h3 { margin: 0.5em 0; font-weight: 600; }
/*
#content-info h2:before, #content-info h3:before {
	font-family: FontAwesome;
	color: #c21414;
  	margin: 0 0.5em 0 0;
	text-shadow: 0 1px 1px #d5d5d5;
}
.dc-404 #content-info h2:before { content: "\f127"; }
.dc-archive #content-info h2:before { content: "\f187"; }
.dc-category #content-info h2:before { content: "\f07b"; }
.dc-contactme #content-info h2:before {	content: "\f0e0"; }
.dc-tag #content-info h2:before { content: "\f02b"; }
.dc-tags #content-info h2:before { content: "\f02c"; }
*/

.day-date {
	font-size: 1em;
	margin: 0 0 0.5em;
	text-align: right;
	color: #279ac4;
}

.post { margin: 0 0 2em 0; position: relative; }

.post-info-co {
	clear: both;
	padding: 0 1.6em;
  	margin: 1.6em auto 0;
    background: rgba(200,200,200,0.25);
  	font-size: 0.9em;
}
.post-info-co i { padding-right: 0.25em; margin-left: 0.25em; }

.post-info { padding: 0.8em 0 0.8em; margin: 0; }

.post-tags {
  	margin: 0;
    padding: 0.8em 0;
    border-top: 1px solid rgba(255,255,255,1);
}

.read-it { margin: 1em 0 0; }
.read-it .btn { border-width: 1px 0 0; border-radius: 0; }

.post-fromthesamecategory {}
.post-fromthesamecategory .list-inline { padding: 1em 0.4em 0.5em; margin: 0; }
.post-fromthesamecategory a, .post-fromthesamecategory a img {
    height: 148px;
    width: 100%;
    display: inline-block;
}
.post-fromthesamecategory a:empty {
    background: url("img/thumb-small.png") no-repeat center center;
}

.panel .panel-heading .fa { margin-right: 0.5em; }

a.feed:before {
	font-family: FontAwesome;
	content: "\f09e";
	margin: 0 0.5em 0 0;
    color: #686868;
	text-shadow: 0 1px 1px #d5d5d5;
}


/* Carousel
-------------------------------------------------------- */

.dc-home .carousel { padding: 0 15px; }

.dc-home .carousel-inner > .item > a > img,
.dc-home .carousel-inner > .item > img { 
    width: 100%; 
    /*height: 30em !important;*/
    height: auto;
    max-height: 30em;
}

.dc-home .carousel-inner > .item > .carousel-caption {
  	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
  	padding: 1.5em 1.5em 3em;
	background: rgba(0, 0, 0, 0.75);
}

.dc-home .carousel-indicators {
    bottom: 0.25em;
}

.dc-home .carousel .carousel-control { margin: 0 15px; }


/* Post content
-------------------------------------------------------- */

.post-content { padding: 2em; }
.post-excerpt { padding: 2em 2em 0; }

.post-content blockquote, .post-excerpt blockquote,
#comment-form blockquote, #comment-form blockquote {
	background-color: #F4F8FA;
	border-color: #5BC0DE;
	font-size: 1.1em;
}

.post-content img, .post-excerpt img,
.post-content object, .post-excerpt object,
.post-content iframe, .post-excerpt iframe { max-width: 100%; }


/* Contextes
-------------------------------------------------------- */

.dc-home .post-first-image img,
.dc-category .post-first-image img,
.dc-tag .post-first-image img { width: 100%; height: auto; }

.post.col-lg-6 .post-title { font-size: 20px; } 

.post-first-image a:empty {
  	background: url("img/thumb-medium.png") no-repeat center center;
    background-size: 100% 100%;
    height: 17.5em;
    width: 100%;
    display: block;
}
.post.col-lg-12 .post-first-image img { width: 100%; height: auto; max-height: 30em; }

.dc-post .post-first-image { position: relative; }
.dc-post .post-first-image img { width: 100%; }
.dc-post .post-first-image figcaption {
  	position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.2em;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
}


/* Comments and trackbacks
-------------------------------------------------------- */

/* --- Comments.html --- */

.comment-post { margin: 1em 0; }
.comment-post img { max-width: 100%; }

.comment-content {
	margin: 0.6em 0 1em !important;
	min-height: 9.75em;
	padding: 1.4em;
	position: relative;
	word-wrap: break-word;
}
.comment-content .comment-content-header {
	margin: -1.4em -1.4em 1.4em;
	padding: 0.6em 1em;
	letter-spacing: 0.025em;
}
.comment-content .comment-content-header b { color: #222; font-weight: 600; }


/* Forms
-------------------------------------------------------- */

#comment-form fieldset p.field {
	padding: 0.4em 0;
	width: auto;
	margin: 0.8em 0;
	clear: both;
}
#comment-form p.form-help { font-style: italic; }

#comment-form .field label { width: auto; }
#comment-form .field label {
  color: #666666;
  display: block;
  font-size: 0.975em;
  font-weight: 600;
  text-indent: 0.4em;
}
#comment-form .field:hover label, 
#comment-form .field:focus label, 
#comment-form .field:active label { color: #428BCA; }

#comment-form .comment-preview {
  	background: #fff;
  	border: 1px solid #ebccd1;
  	padding: 2em;
  	margin: 1.5em auto;
}

.error, .message, .success {
	margin: 2.4em 0;
	padding: 1em;
	color: #000000;
	text-shadow: 0 1px 0 rgba(250, 250, 250, 0.5);
	font-size: 1.1em;
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
	border-radius: 0.15em;
}
.success { background-color: #BEE74B; }
.message { background-color: #a2cbe9 ; }
.error { background-color: #c44d58; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,0.5); }


/* Input / Textarea / Select
-------------------------------------------------------- */

input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="file"],
textarea, select {
  	border: 1px solid #d5d5d5;
  	border-radius: 0.2em;
}


/* Table
-------------------------------------------------------- */

#content table { width: 100%; }
#content table > thead > tr > th { border-bottom: 2px solid #DDDDDD; padding: 8px; vertical-align: middle; }
#content table > thead > tr > td, #content table > tbody > tr > td, #content table > tfoot > tr > td {
    border-top: 1px solid #DDDDDD;
    line-height: 1.42857;
    padding: 8px;
}


/* Footer
-------------------------------------------------------- */

#footer {
  	background-color: #06080b;
	margin: 1em 0 0;
	padding: 2.5em 0;
  	border-top: 2px solid #c21414;
  	color: #fff;
}
#footer p {
	margin: 0 auto;
	text-align: center;
}

#back-to-top {
	position: fixed;
	bottom: 1em;
	right: 1em;
  	font-size: 2em;
	display: none;
}
#back-to-top:hover, #back-to-top:focus, #back-to-top:active { opacity: 1; }
#back-to-top:after { font-family: FontAwesome; content: "\f077"; }


/* Utilities
-------------------------------------------------------- */

.left { float: left; }
.right { float: right; }
.no-padding { padding: 0 !important; }
.no-padding-left { padding-left: 0 !important; }
.no-padding-right { padding-right: 0 !important; }


/* Fonts
-------------------------------------------------------- */

/* --- OpenSans --- */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300;
  src: local('Open Sans Light'), local('OpenSans-Light'),
  url(lib/fonts/open-sans/OpenSans-Light.ttf) format('ttf');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans'),
  url(lib/fonts/open-sans/OpenSans-Regular.ttf) format('ttf');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: local('Open Sans Semibold'), local('OpenSans-Semibold'), 
  url(lib/fonts/open-sans/OpenSans-Semibold.ttf) format('ttf');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: local('Open Sans Bold'), local('OpenSans-Bold'), 
  url(lib/fonts/open-sans/OpenSans-Bold.ttf) format('ttf');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: local('Open Sans Extrabold'), local('OpenSans-Extrabold'), 
  url(lib/fonts/open-sans/OpenSans-ExtraBold.ttf) format('ttf');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300;
  src: local('Open Sans Light Italic'), local('OpenSansLight-Italic'), 
  url(lib/fonts/open-sans/OpenSans-LightItalic.ttf) format('ttf');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: local('Open Sans Italic'), local('OpenSans-Italic'), 
  url(lib/fonts/open-sans/OpenSans-Italic.ttf) format('ttf');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 600;
  src: local('Open Sans Semibold Italic'), local('OpenSans-SemiboldItalic'), 
  url(lib/fonts/open-sans/OpenSans-SemiboldItalic.ttf) format('ttf');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'), 
  url(lib/fonts/open-sans/OpenSans-BoldItalic.ttf) format('ttf');
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 800;
  src: local('Open Sans Extrabold Italic'), local('OpenSans-ExtraboldItalic'), 
  url(lib/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf) format('ttf');
}



/* Responsive designing
-------------------------------------------------------- */

@media (max-width: 768px) {

	#top .navbar.navbar-custom {
  		left: 0;
  		position: fixed;
  		right: 0;
  		z-index: 1030;
  		border-radius: 0;
	}
		
	#wrapper { margin-top: 5em; border: 0; box-shadow: none; }
	
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {

	#top .navbar.navbar-custom {
  		background: none transparent;
        margin: 2em 0 0;
  		padding: 0;
  		border: 0;
  		box-shadow: none;
    }
	#top .navbar.navbar-custom .navbar-collapse { padding: 0; }
	#top .navbar.navbar-custom .nav { width: 100%; }
	#top .navbar.navbar-custom .nav > li { float: none; display: table-cell; width: 1%; }
	#top .navbar.navbar-custom li a {
  		height: 5em;
  		line-height: 5em;
  		padding: 0 0.5em;
  		margin-left: 0.6em;
  		background: none #06080b;
  		text-align: center;
  		text-shadow: none;
  		font-size: 1.1em;
  		color: #fff;
  		margin-bottom: 0;
  		transition: all 250ms ease-in
	}
	#top .navbar.navbar-custom li:first-child a { margin-left: 0; }
	#top .navbar.navbar-custom li.active a,
	#top .navbar.navbar-custom li a:hover,
	#top .navbar.navbar-custom li a:active,
	#top .navbar.navbar-custom li a:focus { background-color: #c21414; }

	.dc-home .post-first-image img,
	.dc-category .post-first-image img, 
	.dc-tag .post-first-image img { max-height: 17.5em; }

.comment-content .comment-content-header:before {
	border-color: rgba(0, 0, 0, 0) #dddddd;
	border-style: solid;
	border-width: 8px 15px 8px 0;
	bottom: auto;
	content: "";
	display: block;
	left: -15px;
	position: absolute;
	top: 8px;
	width: 0;
}
.comment-content .comment-content-header:after {
	border-color: rgba(0, 0, 0, 0) #f5f5f5;
	border-style: solid;
	border-width: 7px 14px 7px 0;
	bottom: auto;
	content: "";
	display: block;
	left: -14px;
	position: absolute;
	top: 9px;
	width: 0;
}

.comment-user-infos { margin-top: 1em; }
}