/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

@import url("http://fonts.googleapis.com/css?family=Playfair+Display:400,700,900,400italic,700italic,900italic&subset=latin,latin-ext");


html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
    font-family: "Playfair Display", "Lucida Bright", Georgia, "Times New Roman", serif;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

a img{
	outline: 0;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

*{
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;

}

html, body{
	height: 100%;

	margin: auto;
	background: rgb(236,234,215);
}

body.dark{
	background: rgb(57,48,43);
	color: rgb(236,234,215);
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

span.prenom-nom{
	font-size:36px;
	color: rgb(182,201,216);
}

span.nom{
	color: rgb(236,234,215);
	font-weight: 700;
}

span.fonction{
	font-size: 18px;
	color: rgb(182,201,216);
}

section.main{
	height: 100%;
}

section.main div.sidebar{
	/*display: inline-block;*/
	margin: 0;
	background: rgb(57,48,43);
	color: rgb(236,234,215);
	width: 25%;
	min-height: 100%;
	-webkit-box-shadow: 0 0 3px #222;
	-moz-box-shadow: 0 0 3px #222;
	-ms-box-shadow: 0 0 3px #222;
	-o-box-shadow: 0 0 3px #222;
	box-shadow: 0 0 3px #222;
}

section.id_card{
	width: 600px;
	height: 382px;
	margin: 0 auto;
	margin-top: 20%;
	padding: 0.5em;
	background: rgb(57,48,43);
	color: rgb(236,234,215);
	position: relative;
}

.id_card .id{
	display: inline-block;
	vertical-align: top;
	width: 50%;
	text-align: right;
	padding: 0.5em;
	margin-top: 100px;
	position: relative;
}

.id_card:before{
	content: url("../img/balance_hd.png");
	position: absolute;
	display: block;
	top: -50px;
	margin: 0 auto;
	width: 100%;
	text-align: center;
}

.id_card .id span{
	display: inline-block;
	width: 100%;
	white-space: nowrap;
}

.id_card .id span.name{
	font-size: 2em;
	font-weight: 700;
}

.id_card .id span.metier{
	font-size: 1.8em;
	font-weight: 300;
	color: rgb(182,201,216);
}

.id_card .address{
	display: inline-block;
	vertical-align: middle;
	width: 50%;
	text-align: left;
	padding: 0.1em 0.5em;
	margin-top: 120px;
	font-size: 1.4em;
	color: rgb(182,201,216);
	border-left: 2px solid rgb(236,234,215)
}

.footer{
	width: 100%;
	position: absolute;
	top: auto;
	bottom: 0;
	left: 0;
	background: rgb(236,234,215);
	color: rgb(57,48,43);
}

.footer div.tel{
	clear: both;
	display: inline-block;
	vertical-align: middle;
	width: 100%;
	text-align: left;
	padding: 0.1em 0.5em;
	float: right;
	font-size: 1.8em;
	font-weight: 700;

}

.footer div.tel span.tel{
	display: inline-block;
	width: 50%;
	text-align: left;
}

.footer div.tel span.fax{
	display: inline-block;
	width: 50%;
	text-align: right;
}

.footer div.email span{
	display: inline-block;
	width: 100%;
	text-align: center;
	font-size: 1.6em;
	padding: 0.25em;
}


section.main div.sidebar header{
	padding: 40px 10px;
	text-align: right;
	background: url('../img/balance.png') 95% 90% no-repeat;
	background-clip: border-box;
}

section.main div.sidebar img.barreau{
	display: block;
	margin: 40px auto;
	max-width: 80%;
}

section.main div.sidebar header a.bouton-menu{
	display: none;
}

ul.domaines{
	padding-left: 10px;
	list-style: none;
	font-style: italic;
	text-align: left;
}

/*section.main aside{
	float: right;
	margin: 0;
	padding: 25px;
	border: none;
	background: transparent;
	width: 23.07%;
	height: 100%;
	color: rgb(57,48,43);
}*/

section.main article{
	float: right;
	/*display: inline-block;*/
	margin: 0;
	padding: 25px;
	background: transparent;
	width: 75%;
	height: 100%;
	color: rgb(57,48,43);
	-webkit-columns: 2;
	-moz-columns: 2;
	-ms-columns: 2;
	-o-columns: 2;
	columns: 2;
	-webkit-column-gap: 3em;
	-moz-column-gap: 3em;
	-o-column-gap: 3em;
	column-gap: 3em;
	overflow-y: scroll;
	text-align: justify;
}

section.main article blockquote.slogan{
	position: relative;
	font-style: italic;
	font-size: 20px;
	padding-left: 20px;
	margin-left: 0;
}

section.main article blockquote.slogan::before{
	content:"“";
	font-size: 80px;
	position: absolute;
	top: -30px;
	left: -20px;
}


section.main article img.illustration{
	float:right;
}

section.main nav a{
	padding: 18px;
	text-transform: uppercase;
	display:block;
	color: rgb(236,234,215);
	text-decoration: none;
	/*border-top: 1px dashed rgba(236,234,215,0.2);*/
	position: relative;
	-webkit-transition: all .3s ease-out;
	-moz-transition: all .3s ease-out;
	-o-transition: all .3s ease-out;
	transition: all .3s ease-out;
}

section.main nav a:hover, section.main nav a:active, section.main nav a:focus{
	background: rgba(236,234,215,0.2);
	text-indent: 5px;
}

section.main nav a.active{
	background: rgb(182,201,216);
	margin-left: 5px;
	color: rgb(42,37,35);
	width: 100%;
	-webkit-box-shadow: 0 0 3px #222;
	-moz-box-shadow: 0 0 3px #222;
	-ms-box-shadow: 0 0 3px #222;
	-o-box-shadow: 0 0 3px #222;
	box-shadow: 0 0 3px #222;
	z-index: 2;
	position: relative;
	font-weight: 700;
	-webkit-text-shadow: 1px 1px 0 #f0f0f0;
	-moz-text-shadow: 1px 1px 0 #f0f0f0;
	-ms-text-shadow: 1px 1px 0 #f0f0f0;
	-o-text-shadow: 1px 1px 0 #f0f0f0;
	text-shadow: 1px 1px 0 #f0f0f0;
	-webkit-border-radius: 2px 0 0 2px;
	-moz-border-radius: 2px 0 0 2px;
	-ms-border-radius: 2px 0 0 2px;
	-o-border-radius: 2px 0 0 2px;
	border-radius: 2px 0 0 2px;
}

section.main nav a.active:hover{
	background: rgb(182,201,216);
	color: rgb(42,37,35);
	text-indent: 5px;
}

section.main nav a.active::after{
	content: '';
	position: absolute;
	z-index: -3;
	top: 100%;
	right: 0;
	width: 0px;
	height: 0px;
	border-style: solid;
	border-width: 5px 5px 0 0;
	border-color: rgb(125,137,147) transparent transparent transparent;
	line-height: 0px;
	_border-color: rgb(125,137,147) #000000 #000000 #000000;
	_filter: progid:DXImageTransform.Microsoft.Chroma(color='#000000');
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 1280px) {
    /* Style adjustments for viewports that meet the condition */

   section.main article{
		-webkit-columns: auto;
		-moz-columns: auto;
		-ms-columns: auto;
		-o-columns: auto;
		columns: auto;
	}

	section.main div.sidebar header span.prenom-nom{
		font-size: 28px;
	}

	ul.domaines{
		font-size: 14px;
	}
}

@media only screen and (max-width: 1024px) {
    /* Style adjustments for viewports that meet the condition */

	section.main div.sidebar header span.prenom-nom{
		font-size: 28px;
	}

	ul.domaines{
		font-size: 14px;
	}
}

@media only screen and (max-width: 960px) {
    /* Style adjustments for viewports that meet the condition */

	section.main div.sidebar header span.prenom-nom{
		font-size: 26px;
	}

	ul.domaines{
		font-size: 13px;
	}

	section.main nav a{
		padding: 10px;
	}

	section.main div.sidebar header{
		padding: 20px 5px;
		background-size: 50px;
	}

}

@media only screen and (max-width: 768px) {
    /* Style adjustments for viewports that meet the condition */

   section.main div.sidebar header span.prenom-nom{
		font-size: 20px;
	}
	section.main nav a{
		font-size: 12px;
	}

   ul.domaines{
		font-size: 12px;
	}
}

@media only screen and (max-width: 480px) {

	html, body{
		height: auto;
	}

	section.main div.sidebar header{
		position: absolute;
		width: 100%;
		height: 60px;
		padding: 5px;
		background-color: rgb(57,48,43);
		background-position: 40% 20%;
		z-index: 2;
	}

	section.main div.sidebar img.barreau{
		position: absolute;
		bottom: 10px;
		display: block;
		margin: 40px auto;
		max-width: 80%;
	}

	section.main div.sidebar header a.bouton-menu{
		display: block;
		float: left;
		vertical-align: middle;
	}

	section.main div.sidebar header span.prenom-nom{
		font-size: 24px;
		line-height: 0.9;
	}

	section.main div.sidebar nav{
		margin-top: 60px;
		background-color: rgb(57,48,43);
		/*display: none;*/
		width: 75%;
		height: 100%;
		position: absolute;
		top: 0;
		left: 0;
		z-index: -1;
	}

	section.main div.sidebar nav a{
		font-size: 14px;
	}


	section.main div.sidebar nav a.active{
		background: rgb(182,201,216);
		color: rgb(42,37,35);
		width: 100%;
		margin: 0;
		-webkit-box-shadow: 0 0 3px #222;
		-moz-box-shadow: 0 0 3px #222;
		-ms-box-shadow: 0 0 3px #222;
		-o-box-shadow: 0 0 3px #222;
		box-shadow: 0 0 3px #222;
		z-index: 2;
		position: relative;
		font-weight: 700;
		-webkit-text-shadow: 1px 1px 0 #f0f0f0;
		-moz-text-shadow: 1px 1px 0 #f0f0f0;
		-ms-text-shadow: 1px 1px 0 #f0f0f0;
		-o-text-shadow: 1px 1px 0 #f0f0f0;
		text-shadow: 1px 1px 0 #f0f0f0;
		-webkit-border-radius: 0;
		-moz-border-radius: 0;
		-ms-border-radius: 0;
		-o-border-radius: 0;
		border-radius: 0;
	}

	section.main div.sidebar nav a.active:hover{
		background: rgb(182,201,216);
		color: rgb(42,37,35);
		text-indent: 5px;
	}

	section.main div.sidebar nav a.active::after{
		content: '';
		position: absolute;
		width: 0px;
		height: 0px;
		top: 0;
		right: 0;
		border-style: solid;
		border-width: 18px 12px 18px 0;
		border-color: transparent rgb(236,234,215) transparent transparent;
		line-height: 0px;
		_border-color: #000000 rgb(236,234,215) #000000 #000000;
		_filter: progid:DXImageTransform.Microsoft.Chroma(color='#000000');
	}

	section.main div.sidebar ul.domaines{
		display: none;
	}

	section.main article{
		background: rgb(236,234,215);
		width: 100%;
		margin-top: 60px;
		overflow-y: auto;
		position: relative;
		z-index: 2;
	}
}


@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
