@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700&subset=latin,latin-ext);
@import url(https://fonts.googleapis.com/css?family=Montserrat|Libre+Baskerville);

/* surcharge de materialize */
@media only screen and (min-width: 993px){
.container {
    width: 94%;
}
}
@media only screen and (min-width: 601px) {
.container {
    width: 94%;
}
}

.container {
    width: 94%;
}

/***************************************************************************
Colors and font
****************************************************************************/

/********** Couleurs de base *********************/
/* surcharge materialize */
input:not([type]):focus:not([readonly]),
input[type=text]:not(.browser-default):focus:not([readonly]),
input[type=password]:not(.browser-default):focus:not([readonly]),
input[type=email]:not(.browser-default):focus:not([readonly]),
input[type=url]:not(.browser-default):focus:not([readonly]),
input[type=time]:not(.browser-default):focus:not([readonly]),
input[type=date]:not(.browser-default):focus:not([readonly]),
input[type=datetime]:not(.browser-default):focus:not([readonly]),
input[type=datetime-local]:not(.browser-default):focus:not([readonly]),
input[type=tel]:not(.browser-default):focus:not([readonly]),
input[type=number]:not(.browser-default):focus:not([readonly]),
input[type=search]:not(.browser-default):focus:not([readonly]),
textarea.materialize-textarea:focus:not([readonly]) {
    border-bottom: 1px solid #757575;
    -webkit-box-shadow: 0 1px 0 0 #757575;
    box-shadow: 0 1px 0 0 #757575;
}
input:not([type]):focus:not([readonly])+label,
input[type=text]:not(.browser-default):focus:not([readonly])+label,
input[type=password]:not(.browser-default):focus:not([readonly])+label,
input[type=email]:not(.browser-default):focus:not([readonly])+label,
input[type=url]:not(.browser-default):focus:not([readonly])+label,
input[type=time]:not(.browser-default):focus:not([readonly])+label,
input[type=date]:not(.browser-default):focus:not([readonly])+label,
input[type=datetime]:not(.browser-default):focus:not([readonly])+label,
input[type=datetime-local]:not(.browser-default):focus:not([readonly])+label,
input[type=tel]:not(.browser-default):focus:not([readonly])+label,
input[type=number]:not(.browser-default):focus:not([readonly])+label,
input[type=search]:not(.browser-default):focus:not([readonly])+label,
textarea.materialize-textarea:focus:not([readonly])+label {
    color: #757575;
}
div.input-field i.prefix.active {
	color: #757575;
}

/********** Fonts **********/
/* Font for the generic titles */
h1, h2, h3, h4, h5, h6 {
	font-family: "Libre Baskerville", serif;
}

body {
	font-family:
		"Open Sans",
		-apple-system,
		sans-serif;
}

.text-muted { color: rgba(0,0,0, 0.3);}
.text-italic { font-style: italic;}
.small {
	font-size: small;
}

/* Change selection color */
::selection {
	background-color: #343a40;
	color: #fff;
}

.flip-horizontal {
	-moz-transform: scale(-1, 1);
	-webkit-transform: scale(-1, 1);
	-o-transform: scale(-1, 1);
	-ms-transform: scale(-1, 1);
	transform: scale(-1, 1);
}

/* Font for the website title */
.container nav .brand-logo h1 {
	font-family: "Libre Baskerville", serif;
	font-size: 2.25rem;
	margin-top: 0.5rem;
}

/* Font for the text of an article */
div.article-content {
	font-family: "Montserrat", sans-serif;
	font-weight: 300;
	font-size: medium;
}

/* Font for the title of sections inside an article */
div.article-content h1,
div.article-content h2,
div.article-content h3,
div.article-content h4,
div.article-content h5,
div.article-content h6 {
	font-weight: normal;
}

div.article-content h1,
div.article-content h2 {
	font-size: 36px;
}

div.article-content h3 {
	font-size: 32px;
}

div.article-content h4 {
	font-size: 28px;
}

div.post-content h6,
div.article-content h5,
div.article-content h6 {
	font-size: 26px;
}

div.article-content h3,
div.article-content h4,
div.article-content h5,
div.article-content h6 {
	font-weight: 300;
}

/* Font for the placeholder on the article thumbnails */
.placeholder__text {
	font-family: "Libre Baskerville";
	font-size: 200%;
}

@media screen and (min-width: 40.063em) {
	.placeholder__text {
		font-size: 150%;
	}
}

@media screen and (min-width: 64.063em) {
	.placeholder__text {
		font-size: 200%;
	}
}

/***************************************************************************
Header and navigation
****************************************************************************/
.site-header {
	line-height: 1;
	border-bottom: 1px solid #e5e5e5;
}

.site-header-logo:hover {
	text-decoration: none;
}

/***************************************************************************
Home page
****************************************************************************/
.banner {
	width: 100%;
	height: 100px;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
}

@media screen and (min-width: 40.063em) {
	.banner {
		height: 200px;
	}
}

@media screen and (min-width: 64.063em) {
	.banner {
		height: 250px;
	}
}

/***************************************************************************
  Metadata
****************************************************************************/
img.metadata__category__logo {
	max-width: 36px;
	max-height: 36px;
	border-radius: 3px;
	display: inline-block;
	vertical-align: middle;
	margin-right: 10px;
}

img.metadata__category__logo--sm {
	max-width: 30px;
	max-height: 30px;
	margin-right: 4px;
	border-radius: 3px;
	display: inline-block;
	vertical-align: middle;
}

div.card div.metadata {
	font-size: x-small;
}

div.article__metadata div.metadata {
	font-size: small;
}

.category {
	text-decoration: underline;
	font-weight: 700 !important;
	color: #343a40 !important;
}

/***************************************************************************
		CARDS
****************************************************************************/
/* surcharge de materialize */
div.card.card-paint div.row{
	margin-bottom: 3px;
}
div.card.card-paint div.card-content {
	padding: 12px;
}
div.card.card-paint div.card-action {
	padding: 0px 24px;
	border-top: none;
}
div.card.card-paint div.card-action .btn-small{
	bottom: 0px;
} 

div.card.card-paint div.card-action .btn-small{
	bottom: -15px;
} 
/* FIN surcharge de materialize */

.card img {
	max-width: 100%;
}

.card img.metadata__category__logo--sm{
	max-width: 30px;
	min-width: 20px;

}

.card-image {
	overflow: hidden;
	position: relative;
}
div.card.card-paint.medium div.card-image {
	max-height: 45%;
}

.card-image .card__img {
	max-width: 100%;
	height: 200px;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	-moz-transition: all 0.3s;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}

div.card.card-paint.horizontal div.card-image {
	width: 40%;
	height: 100%;
	max-height: 100%;
}
div.card.card-paint.horizontal div.card-image div.card__img {
	width: 100%;
	height: 100%;
}

.card__img:before {
	content: "";
	display: none;
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.card-image:hover .card__img:before,
.card-image:focus .card__img:before {
	display: block;
}

.card-image:hover .card__img,
.card-image:focus .card__img {
	-ms-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-o-transform: scale(1.1);
	transform: scale(1.1);
}

.card__img--sm {
	height: 175px;
}

@media screen and (min-width: 40.063em) {
	.card__img--sm {
		height: 130px;
	}
}

@media screen and (min-width: 64.063em) {
	.card__img {
		height: 300px;
	}

	.card__img--sm {
		height: 200px;
	}
}

div.card.card-paint div.card-image .card__img--sm {
	background-size: 146%;
    background-position-x: center;
    background-repeat: no-repeat;
    background-position-y: top;
}
div.card-paint.card.horizontal div.card-image {
	overflow:hidden;
}

div.card-paint.card div.card-content .card-title{
	line-height: 24px;
	margin-bottom: 4px;
	font-size: 20px;
}

.remove-text-style p {
	padding: inherit;
	margin: inherit;
}

.card-content h1,
.card-content h2,
.card-content h3 {
	text-decoration: underline !important;
}

div.card-paint.card.small .card-image+.card-content {
    max-height: 28.5%;
}

/***************************************************************************
Category page
****************************************************************************/
div.container__category div.category-logo {
	text-align: center;
	margin-bottom: 2.1rem;
}

div.container__category div.category-logo img {
	max-width: 80px;
}

div.container__category div.category-logo h1 {
	font-weight: bold;
	word-break: break-word;
	word-wrap: break-word;
}

div.container__category div.category-logo h1 a {
	color: rgba(0, 0, 0, 0.8);
	text-decoration: none;
}

/***************************************************************************
Article page
****************************************************************************/
div.page-container {
	text-align: center;
	margin-top: 0;
}

@media screen and (min-width: 40.063em) {
	div.page-container {
		margin-top: 10px;
	}
}

div.article-content {
	margin: 0 auto;
	padding: 1em;
	max-width: 37em;
	text-align: left;
	line-height: 1.5;
}

@media screen and (min-width: 40.063em) {
	div.article-content {
		line-height: 1.6;
	}
}

div.article-content div.wrapper {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
}

div.article-content p {
	padding: 0;
	clear: both;
}

div.article-content a {
	color: rgba(0, 0, 0, 0.8);
	text-decoration: underline;
}

div.article-content img {
	max-width: 100%;
	margin: auto;
}

div.article-content hr {
	margin: 40px auto;
	width: 80%;
	border: 0;
	text-align: center;
	height: 1px;
	background-color: rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 40.063em) {

	div.post-content hr,
	div.article-content hr {
		width: 50%;
	}
}

.background-image-small {
	margin-bottom: 4rem;
	margin-top: 4rem;
}

/* tags */
div.tags a span.badge{
	float: none;
}
div.tags a .badge:after {
	content: ''; /* empecher materialize d'ajouter "new" */
}
div.tags a{
	clear: both;
}

/***************************************************************************
Sommaire
****************************************************************************/
#toc {
	padding: 1em;
}

#toc ul {
	list-style-type: disclosure-closed;
	color: #89c8d7;
	margin: 0;
}

#toc li a {
	display: block;
	color: #fff;
	padding: 8px 16px;
	text-decoration: none;
}

/* Change the link color on hover */
#toc li a:hover {
	color: #c9bd9a;
}

/***************************************************************************
Footer of article page (neighbors and author + category)
****************************************************************************/
div.page-container footer {
	margin: 0 auto;
	text-align: left;
	max-width: 700px;
}

div.page-container footer div.article__author__category div.post-category-info {
	margin-top: 20px;
}

div.page-container footer div.article__author__category div.post-category-info img {
	max-width: 60px;
	border-radius: 3px;
	margin-right: 10px;
}

/* Neighbors of an article: */
.neighbors {
	margin-top: 1em;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding-top: 1em;
}

.neighbors a {
	color: black;
}

.neighbors a:hover {
	color: #3f9bc6;
}

.right-neighbor {
	text-align: right;
}

div.page-container footer div.article__author__category {
	padding: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	margin: 30px 0 40px 0;
}

@media screen and (min-width: 64.063em) {
	div.page-container footer div.article__author__category {
		padding: 40px 0;
	}
}

div.page-container footer div.article__author__category h3 {
	font-size: 18px;
	line-height: 1.1;
	margin: 0;
	padding: 0;
}

div.page-container footer div.article__author__category h3 a {
	color: rgba(0, 0, 0, 0.8);
	text-decoration: none;
}

div.page-container footer div.article__author__category h3 a:hover {
	color: #3f9bc6;
}

div.page-container footer div.article__author__category p.author-description {
	font-size: 14px;
	line-height: 1.3;
	color: rgba(0, 0, 0, 0.6);
	margin: 4px 0;
}

div.page-container footer div.article__author__category div.poster-info {
	margin-top: 20px;
}

div.page-container footer div.article__author__category div.poster-info img {
	max-width: 60px;
	border-radius: 100%;
	margin-right: 10px;
}

div.page-container footer div.article__author__category div.post-category-info {
	margin-top: 20px;
}

div.page-container footer div.article__author__category div.post-category-info img {
	max-width: 60px;
	border-radius: 3px;
	margin-right: 10px;
}

/***************************************************************************
Cover image for the article page
****************************************************************************/
div.article-header-container div.background-image-container div.background-image {
	background-position: 50% 50%;
	background-size: cover;
	background-repeat: no-repeat;
	width: 100%;
	height: 320px;
	position: relative;
	overflow-x: hidden;
	margin: 20px 0 40px 0;
	overflow-y: hidden;
}

div.article-header-container div.background-image-container div.background-image div.title {
	color: white;
	margin: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 95%;
}

@media screen and (min-width: 40.063em) {
	div.article-header-container div.background-image-container div.background-image div.title {
		width: 80%;
	}
}

@media screen and (min-width: 64.063em) {
	div.article-header-container div.background-image-container div.background-image div.title {
		width: 90%;
	}
}

div.article-header-container div.background-image-container div.background-image h1 {
	font-size: 36px;
	line-height: 36px;
	margin: 0;
}

@media screen and (min-width: 40.063em) {
	div.article-header-container div.background-image-container div.background-image h1 {
		font-size: 60px;
		line-height: 60px;
	}
}

div.article-header-container div.background-image-container div.background-image h2 {
	font-size: 24px;
	line-height: 24px;
	margin: 10px 0;
	font-weight: 300;
}

@media screen and (min-width: 40.063em) {
	div.article-header-container div.background-image-container div.background-image h2 {
		font-size: 36px;
		line-height: 36px;
	}
}

div.article-header-container div.background-image-container div.background-image img {
	width: 100%;
	height: 270px;
	visibility: hidden;
}

@media screen and (min-width: 40.063em) {
	div.article-header-container div.background-image-container div.background-image img {
		height: 100%;
	}
}

div.article-header-container div.background-image-container div.background-image-small img {
	max-width: 90%;
}

@media screen and (min-width: 64.063em) {
	div.article-header-container div.background-image-container div.background-image-small img {
		max-width: 80%;
	}
}

div.article-header-container div.background-image-container div.background-image-small div.title-container {
	width: 100%;
	margin: 20px auto;
	margin-bottom: 40px;
}

@media screen and (min-width: 64.063em) {
	div.article-header-container div.background-image-container div.background-image-small div.title-container {
		width: 700px;
		margin: 0 auto;
	}
}

div.article-header-container div.background-image-container div.background-image-small div.title-container h1 {
	font-size: 36px;
	line-height: 1;
	margin: 0 20px 10px 20px;
	padding-top: 20px;
}

@media screen and (min-width: 40.063em) {
	div.article-header-container div.background-image-container div.background-image-small div.title-container h1 {
		font-size: 60px;
	}
}

div.article-header-container div.background-image-container div.background-image-small div.title-container h4 {
	font-size: 24px;
	font-weight: 300;
	color: rgba(0, 0, 0, 0.44);
	line-height: 1.2;
	margin: 0;
}

@media screen and (min-width: 40.063em) {
	div.article-header-container div.background-image-container div.background-image-small div.title-container h4 {
		font-size: 32px;
	}
}

/***************************************************************************
   Gallery image for the article plage
****************************************************************************/

div.article-content .material-placeholder img {
	max-width: 100%;
    margin-bottom: 15px;
    padding: 5px;
    border: 1px solid rgb(127, 127, 127);
    border-radius: 15px;
}
div.article-content .material-placeholder img.left {
	margin-left: 0;
	margin-right: 15px;
}
div.article-content .material-placeholder img.right {
	margin-left: 15px;
	margin-right: 0;
}

.masonryRef {
	height: 0 !important;
	min-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	visibility: hidden;
	pointer-events: none;
}

.gallery .image {
	margin-bottom: 20px;
}

.gallery .image img {
	max-width: 100%;
	-moz-transition: all 0.3s;
	-webkit-transition: all 0.3s;
	transition: all 0.3s;
}

.gallery .image:hover img {
	-moz-transform: scale(1.1);
	-webkit-transform: scale(1.1);
	transform: scale(1.1);
}

body .materialbox-caption {
    z-index: 1003;
    background-color: rgba(0,0,0, 0.3);
	top: 0;
	bottom: initial;
    left: 45px;
    width: calc(100% - 90px);
}

/* bouton précédent suivant */
body #btn-prev ,
body #btn-next {
    position: fixed;
    width: 45px;
    background-color: rgba(0,0,0, 0.8) !important;
    height: 100%;
    z-index: 1001;
    top: 0;
	opacity: 0.3;
}
body #btn-prev {
    left: 0;
	border-right: 1px solid rgba(255,255,255,0.4);
}
body #btn-next {
    right: 0;
	border-left: 1px solid rgba(255,255,255,0.4);
}

body #btn-prev i.material-icons ,
body #btn-next i.material-icons {
    position: relative;
    top: 50%;
    font-size: 6em;
    left: -50%;
}
/* FIN bouton précédent suivant */

/***************************************************************************
Author page
****************************************************************************/
div.author-page-header div.cover {
	height: 175px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: 50% 50%;
}

@media screen and (min-width: 40.063em) {
	div.author-page-header div.cover {
		height: 300px;
	}
}

@media screen and (min-width: 64.063em) {
	div.author-page-header div.cover {
		height: 400px;
	}
}

div.author-page-header div.avatar,
div.author-page-header div.avatar-no-cover {
	display: inline-block;
	width: 120px;
	height: 120px;
}

div.author-page-header div.avatar img,
div.author-page-header div.avatar-no-cover img {
	border-radius: 100%;
	width: 120px;
	height: 120px;
}

div.author-page-header div.avatar {
	margin-top: -60px;
}

div.author-page-header div.avatar-no-cover {
	margin-top: 60px;
}

div.author-page-header div.author-profile {
	width: 95%;
	margin: 0 auto;
	margin-bottom: 60px;
}

@media screen and (min-width: 64.063em) {
	div.author-page-header div.author-profile {
		width: 700px;
	}
}

div.author-page-header div.author-profile h1 {
	font-weight: bold;
	font-size: 36px;
	letter-spacing: -2px;
	margin: 16px 0;
}

@media screen and (min-width: 40.063em) {
	div.author-page-header div.author-profile h1 {
		font-size: 50px;
	}
}

div.author-page-header div.author-profile p.author-description {
	font-size: 18px;
	color: rgba(0, 0, 0, 0.6);
	outline: 0;
	word-break: break-word;
	word-wrap: break-word;
	letter-spacing: -0.02em;
}

div.author-page-header div.author-profile ul.author-links {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

div.author-page-header div.author-profile ul.author-links li {
	display: inline;
}

div.author-page-header div.author-profile ul.author-links li a {
	color: rgba(0, 0, 0, 0.8);
	font-size: 36px;
	border-right: 1px solid rgba(0, 0, 0, 0.05);
	padding: 0 10px;
	transition:
		100ms background-color,
		100ms border-color,
		100ms color,
		100ms fill;
}

@media screen and (min-width: 40.063em) {
	div.author-page-header div.author-profile ul.author-links li a {
		font-size: 48px;
		padding: 0 15px;
	}
}

div.author-page-header div.author-profile ul.author-links li a:hover {
	color: rgba(0, 0, 0, 0.6);
}

div.author-page-header div.author-profile ul.author-links li:last-child a {
	border-right: none;
}

div.author-page-divider:before {
	content: "";
	display: block;
	position: absolute;
	top: 14px;
	width: 100%;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
}

div.author-page-divider {
	position: relative;
	top: 11px;
	width: 100%;
	margin-bottom: 20px;
}

div.author-page-divider span {
	text-decoration: none;
	display: inline-block;
	border: 1px solid rgba(0, 0, 0, 0.44);
	background: #fff;
	text-transform: uppercase;
	font-size: 12px;
	line-height: 1.4;
	padding: 4px 8px 3px 12px;
	letter-spacing: 0.3em;
	color: rgba(0, 0, 0, 0.6);
	position: relative;
}

div.author-page-divider span:hover {
	border-color: rgba(0, 0, 0, 0.6);
	color: rgba(0, 0, 0, 0.8);
}

/***************************************************************************
Footer
****************************************************************************/

footer.index-footer {
	width: 100%;
	margin: 0 auto;
	text-align: center;
	padding: 10px 0 25px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

footer.index-footer a,
footer.index-footer p {
	display: inline-block;
	color: rgba(0, 0, 0, 0.3);
	font-size: 12px;
	margin-right: 16px;
	text-decoration: none;
}

footer.index-footer a:hover {
	text-decoration: underline;
	color: rgba(0, 0, 0, 0.6);
}

