﻿/* -- Oui je sais, c'est pas minifié ... -- */

html { margin: 0; padding: 0; }
body { margin: 0; padding: 0; font-family: Trebuchet MS, Arial,serif; font-size: 12px;  }
section { display: block; }
div.clearer { height:1px; line-height:1px; margin-bottom: -1px; clear:both; }

/* -- Fontes -- */

@font-face {
    font-family: 'GeosansLight';
    src: url('/fonts/GeosansLight.ttf');
}

/* -- Sprites -- */

.sprite_photo {
	background-image: url(http://img.mgilles.fr/i/sprite_photo.png);
	background-repeat: no-repeat;
}

/* -- Header -- */
header {
	position:fixed;
	left: 0;
	top: 0;
	padding:20px 20px 0;
	margin-bottom: -50px;
	background-color: #FFFFFF;
	color:#777;
	width:260px;
	height:100%;
	border-right: 1px solid #ddd;
}

header .logo_img {
	background-position: 0 -36px;
	height: 76px;
	margin: 30px auto 50px;
	width: 168px;
}

header .logo_txt {
	font-family: GeosansLight;
	font-size: 18px;
	margin: 30px auto;
	text-align: center;
	width: 175px;
}
header .logo_txt strong {
	display: block; 
	font-weight: normal;
}

@media only screen and (min-width: 600px) {
    header #menu {
        display: none;
    }
}

@media only screen and (max-width: 600px) {
    header #menu {
        background: rgba(24,21,22,0.8);
        color: #fff;
        font-family: GeosansLight;
        border: none;
        display: block;
        text-align: center;
        font-size: 20px;
        width: 100%;
        line-height: 35px;
    }
    body.b_index header #menu {
        display: none;
    }
    body.b_theme header .themes, body.b_content header .themes, body.b_blog header .themes {
        display: none;
    }
    body.b_theme header .liens, body.b_content header .liens , body.b_blog header .liens {
        display: none;
    }
}

header .themes {
	margin: 0;
}

header .themes dd {
	margin: 0;
	border-top: 1px solid #CCC;
	height: 50px;
}
header .themes dd.last {
	border-bottom: 1px solid #CCC;
}
header .themes dd:hover {
	background-color: rgba(24,21,22,0.3);
}

header .themes dd a {
	color: #777;
	text-decoration: none;
	line-height: 50px;
	display:block;
	text-transform: uppercase;
	font-size: 25px;
	font-family: GeosansLight;
}

header .liens {
	position:absolute;
	bottom: 40px;
	width: 260px;
	height: 35px;
	margin: 0;
}

header .liens dd {
	float: left;
	height: 35px;
	margin: 0;
}

header .liens dd a {
	display:block;
	height: 35px;
	text-decoration:none;
}

header .liens .link_500px {
	background-position: 0 0;
	width: 71px;
}

header .liens .link_flickr {
	background-position: -71px 0;
	width: 121px;
	margin-left: 17px;
}

header .liens .link_facebook {
	background-position: -192px 0;
	width: 35px;
	margin-left: 90px;
}

header .liens .link_instagram {
	margin-left: 16px;
}
header .liens .link_instagram a{
	margin-top: 3px;
}

.b_index header {
	border-right: none;
	margin: 0 -130px;
	left: 50%;
}

@media only screen and (max-width: 600px) {
    .b_index header {
        margin: 0;
        left: auto;
    }
}

/* -- Overlay -- */

#overlay {
	display: none;
	z-index: 100000;
	background-color: #FFFFFF;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
}

#overlay .container {
	z-index: 100010;
	background: #FFF;
	position: fixed;
	top: 50%;
	left: 0px;
	padding: 7px;
	border: 1px solid #FFF;
	border-left: none;
}

#overlay .close {
    z-index: 100020;
	display:block;
	background: rgba(24,21,22,0.5);
	height: 40px;
	width: 100px;
	text-align: center;
	margin: 20px 0 0 20px;
    padding-right:5px;
	line-height: 40px;
	color: #FFF;
	text-decoration: none;
	font-size: 18px;
	border-radius: 5px;
    position: relative;
}

#overlay .o_galerie {
    z-index: 100011;
	height: 622px;
	margin: -311px 0 0;
	height: 622px;
	overflow: auto;
}
#overlay .o_galerie ul {
	width: 100000px;
	margin: 0 auto;
	padding:0;
	height: 600px;
	overflow: hidden;
}
#overlay .o_galerie ul li {
	float:left;
	padding:0 7px 0 0;
	list-style: none;
	white-space: nowrap;
	display: inline-block;
}
#overlay .o_galerie ul li.last {
	padding:0;
}
@media only screen and (max-height: 600px) {
	#overlay .o_galerie ul li img {
		/*max-height: calc(100vh);*/
		/*width: auto;*/
	}
}

/* -- Body -- */

/* -- Main frame -- */
section#main {
	margin: 50px 50px 20px 350px;
}

h1 {
	border-bottom: 1px solid #ddd;
	margin: 0 0 20px 301px;
	font-weight: normal;
}

h1 span {
	display: block;
	padding: 0 20px;
	color: #777;
	line-height: 50px;
	text-transform: uppercase;
	font-size: 25px;
	font-family: GeosansLight;
	background-color: #FFF;
}

h2 {
    font-family: GeosansLight;
    color: #777;
    font-size: 22px;
    border-bottom: 1px solid #bbb;
    padding-bottom: 9px;
    font-weight: normal;
}

h3 {
    color: #777;
}

section#main a.theme, section#main a.galerie {
	display:block;
	float:left;
	padding: 0 5px 5px 0;
	width: 240px;
	text-decoration: none;
}

@media only screen and (max-width: 600px) {
	section.s_theme {
		padding: 0 10px;
	}
}

@media only screen and (max-width: 500px) {
	section#main a.theme, section#main a.galerie {
		margin: 10px auto;
		width: 100%;
	}
	section#main a.theme *, section#main a.galerie * {
		margin: 0 auto;
	}
}

section#main a.theme img, section#main a.galerie img {
	display: block;
	width: 240px;
	height: 160px;
	transition: transform .2s;
	overflow: hidden;
}

section#main a.theme img:hover, section#main a.galerie img:hover {
	transform: scale(1.05);
}

section#main a.theme span, section#main a.galerie span {
	display: block;
	font-family: GeosansLight;
	background-color: rgba(24,21,22,0.8);
	width: 230px;
	height: 48px;
	padding: 0 5px;
	color: #FFF;
    font-size:12px;
	line-height: 18px;
}
section#main a.theme span em, section#main a.galerie span em {
	font-size: 20px;
	line-height: 30px;
    font-style: normal;
}

@media only screen and (max-width: 600px) {
	header {
		width: auto;
		height: auto;
		position: relative;
		border: none;
		margin-bottom: 15px;
	}

	section#main {
		margin: 0px 0px 20px 0px;
	}

	body.b_index h1 {
        display: none;
	}

	header .liens {
		position: relative;
		bottom: auto;
		width: auto;
		margin: 10px auto;
	}

	h1 {
		background-color: rgba(24,21,22,0.8);
		clear: both;
		position: relative;
		margin: 20px 0;
	}

	h1 span {
		background: none;
		color: #FFF;
	}

	h1 span::before {
		color: #FFF;
		content: "\00BB";
		margin-right: 10px;
	}
}

/* -- Content -- */
section.s_content #aboutme {
}
section.s_content #aboutme li {
	float: left;
	list-style-type: none;
	margin: 0 20px 20px 0;
}
section.s_content #aboutme li a {
	background-color: rgba(24,21,22,0.1);
	display: block;
	width: 200px;
	height: 200px;
	line-height: 200px;
	text-align: center;
	font-family: GeosansLight;
	font-size: 20px;
	text-decoration: none;
	color: #777;
}
section.s_content #aboutme li a:hover {
	background-color: rgba(24,21,22,0.3);
}

contact {
    max-width: 1000px;
	display: block;
}

contact p {
    text-align: justify;
}

@media only screen and (max-width: 600px) {
    contact {
        padding: 0 15px;
    }
}

/* -- Themes -- */
section.s_theme p.description {
    background: rgba(24,21,22,0.8);
    color: #FFF;
    padding: 10px 15px;
    border-left: 7px solid #5186cc;
    border-right: 7px solid #5186cc;
    margin: 0 0 5px;
    line-height: 18px;
	font-family: GeosansLight;
    font-size: 15px;
}

/* -- Blog -- */

blogpost {
    max-width: 1000px;
	display: block;
}

blogpost p {
    text-align: justify;
}

blogpost p a {
    color: #777;
}

bloglist {
	display: block;
}

bloglist .blogitem {
	display: flex;
	background-color: rgba(24,21,22,0.8);
	margin-bottom: 20px;
	clear: both;
	text-decoration: none;
	color: #FFF;
}

bloglist .blogitem h5 {
	width: 170px;
	min-width: 170px;
	max-width: 170px;
	text-align: left;
	padding: 10px;
	margin: 0;
	font-size: 16px;
	font-weight: bold;
	font-family: GeosansLight;
}

bloglist .blogitem h5 em {
	font-weight: normal;
	font-size: 14px;
	line-height: 20px;
}

bloglist .blogitem p {
	padding: 0 25px;
	vertical-align: top;
	text-align: left;
	font-size: 13px;
	line-height: 20px;
}

bloglist .blogitem img {
	margin: auto 0 auto auto;
	padding: 10px 10px 10px 25px;
}

bloglist pagination {
	margin-top: 40px;
	padding-top: 15px;
	display: block;
	text-align: center;
	border-top: 1px solid #ddd;
}

bloglist pagination ul {
	display: inline-block;
}

bloglist pagination ul li {
	display: inline-block;
	margin: 5px;
	height: 40px;
	width: 40px;
	text-align: center;
	line-height: 40px;
	font-size: 16px;
	font-weight: bold;
}

bloglist pagination ul li a {
	display: inline-block;
	text-decoration: none;
	background: rgba(24,21,22,0.8);
	height: 40px;
	width: 40px;
	color: #FFF;
}

bloglist pagination ul li.current, bloglist pagination ul li a:hover {
	background: #dddddd;
	color: #333;
}

@media only screen and (max-width: 600px) {
	bloglist .blogitem {
		display: block;
		width: auto;
	}

	bloglist .blogitem h5 {
		width: auto;
	}

	bloglist pagination ul {
		padding: 0;
	}
}

/* -- External -- */

.ig-b- { display: inline-block; }
.ig-b- img { visibility: hidden; }
.ig-b-:hover { background-position: 0 -60px; } .ig-b-:active { background-position: 0 -120px; }
.ig-b-32 { width: 32px; height: 32px; background: url(//badges.instagram.com/static/images/ig-badge-sprite-32.png) no-repeat 0 0; }
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.ig-b-32 { background-image: url(//badges.instagram.com/static/images/ig-badge-sprite-32@2x.png); background-size: 60px 178px; } }
