/*
Theme Name: premier Thème WP
Theme URI: 

structure du thème 
div page
	header
	main
		div primary class content-area
			div content
		div secondary class widget-area
		div tertiary class widget-area
	main
	nav
	footer
		div class site-info
	/footer
/div

test modif avec flex order 26122018
* menu en fin de code mais affiché grace à flex order...

*/

/* Bases */

* {
  box-sizing: border-box;
}
html {
	height:101%;	/* on a toujours une barre de défilement verticale */
}
body {
	text-align: left;
	margin:0;
}
#page {
	background: #990031;
	max-width: 980px;
	margin: 0 auto;

	display:flex;
	flex-direction:column;
}

a {
	text-decoration: none;
	color: #c9ccea;
}

img {
	max-width: 100%;
	height: auto;
}


/* header */ 

header {
	order:1;
	color: white;
}
header hgroup{
	background:url('img/bandeau-1024.jpg') no-repeat right bottom;
	width:100%;
	height:172px;
}
header p, header h1 {
	text-align:center;
	font-size: 26px;
	color:#FFF;
	font-weight:bold;
    }
header p span, header h1 span {
	font-size: 48px;
	height:1em;
	margin: 15px;
	padding:10px;
	color:#FFF;
	font-weight:bold;

	background: rgba(143, 2, 48, 0.71);
	border: #ffffff 1px solid;
	box-shadow: #545454 0px 3px 3px 0px;
	-moz-box-shadow: #545454 0px 3px 3px 0px;
	-webkit-box-shadow: #545454 0px 3px 3px 0px;
	border-radius: 15px;
}
header h1 {
	border-bottom:0;
}
header .logo, header h1.logo {
	margin: 5px 0;
	display: block;
	width: 100%;
}
header .logo img {
	display: block;
/*	height: 35px;*/
}
nav.main-navigation {
	float: left;
	width:100%;
	background-color: #990031;

	order:2;
}
nav.main-navigation ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
nav.main-navigation li {
	display: inline-block;
}
nav.main-navigation a {
	display: block;
/*	color: white;*/
	padding: 20px;
	line-height: 35px;
	transition: color .2s;
}

h1 {
  border-bottom: 1px solid #DFDFDF;
  text-align:center;
}


/* main */ 
main {
	display: flex;
	order:3;
	flex-direction:row;
	width: 100%;
}
main section {
	flex: 5;
	padding: 20px;
}
main aside {
	flex: 2;
	padding: 20px;
	min-width:300px;
}

/* articles */
.blog .post {
	margin-bottom: 60px;
	padding-bottom: 20px;
	border-bottom: 1px solid #DFDFDF;
}
.post h2 a{
	font-weight: normal;
}

.post__metas {
	font-size: .8em;
	color: #888;
} 
.post__link {
	text-align: right;
	margin-bottom: 0;
/*	text-transform: uppercase;*/
}

.post__categories ul {
	display: inline-block; 
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.post__categories li {
	display: inline-block; 
	margin: 0;
}

/* WP Content */
.wp-content p{
	margin: 0.5em 0;
}
.wp-content figure {
/*	width: auto !important;*/
}
.wp-content .wp-caption-text {
	text-align: center;
	color: #d7d7d7;
	font-size: 1rem;
}

/* sidebar */
aside > ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
aside > ul > li {
	margin-bottom: 40px;
}
aside h2 {
	margin-top: 0;
}

/* single */
.thumbnail {
	overflow: hidden;
}
.posts-nav {
  display: flex;
  margin-top: 40px;
  color: #666;
  padding-top: 20px;
  border-top: 1px solid #DFDFDF;
}
.posts-nav div {
  flex: 1;
}
.posts-nav div:last-child {
  text-align: right; 
}

/* footer */
footer {
  order:4;
  font-size: .9em;
  margin: 30px 0 10px 0;
  padding: 35px;
  border-top: 1px solid #ccc;
}
footer .credits {
  float: left;
  color: #999;
  margin: 0;
}
footer nav {
  float: right;
}
footer nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
footer nav li {
  display: inline-block;
}
footer nav a {
  display: block;
  color: #888;
  padding: 0 0 0 10px;
  line-height: 35px;
  transition: color .2s;
}
footer nav a:hover {
  color: #45bbe6;
}

img.alignright { margin: 0 0 1em 1em; }
img.alignleft { margin: 0 1em 1em 0; }
img.aligncenter { margin-left: auto; margin-right: auto; }
.alignright { float: right; }
.alignleft { float: left; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.screen-reader-text {display:none;} 	/* ne pas afficher le texte devant le form de recherche */

/*--------------------------------------------------------------
5.0 Typography
--------------------------------------------------------------*/

html {
	font-size: .625em; /* fallback IE8+ */
	font-size: calc(1em * .625); /* IE9-IE11 math fixing. */
}
body,
button,
input,
select,
textarea {
	color: #FFF;
	font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
	font-size: 16px;
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.66;
	font-family: 'helvetica', sans-serif;
}
button,
input,
select,
textarea {
	color: #111;	/* couleur des boutons : le blanc du reste du site s'affiche mal */
	}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	line-height: 1.4;
	margin: 0 0 0.75em;
	padding: 1em 0 0;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
	padding-top: 0;
}

h1 {
	font-size: 24px;
	font-size: 2.4rem;
	font-weight: bold;
	letter-spacing: -1px;
}

h2, .home.blog .entry-title, p.widget-title {
	font-size: 20px;
	font-size: 2rem;
	font-weight: bold;
	margin-bottom:10px; 
}

h3 {
	font-size: 18px;
	font-size: 1.8rem;
	font-weight: 300;
}

h4 {
	font-size: 16px;
	font-size: 1.6rem;
	font-weight: 800;
}

h5, h6 {
	font-size: 16px;
	font-size: 1.6rem;
	font-weight: normal;
}

h6 {
	text-decoration: underline;
}

p {
	padding: 0;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	color: #666;
	font-size: 18px;
	font-size: 1.125rem;
	font-style: italic;
	line-height: 1.7;
	margin: 0;
	overflow: hidden;
	padding: 0;
}

blockquote cite {
	display: block;
	font-style: normal;
	font-weight: 600;
	margin-top: 0.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 15px;
	font-size: 0.9375rem;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #eee;
	text-decoration: none;
}

big {
	font-size: 125%;
}

blockquote {
	quotes: "" "";
}

q {
	quotes: "“" "”" "‘" "’";
}

blockquote:before,
blockquote:after {
	content: "";
}

:focus {
	outline: none;
}


/*--------------------------------------------------------------
5.1 gallerie photos
--------------------------------------------------------------*/
#gallerie {
	width:620px;
}
#container {
	margin:0;
	padding:0;
	overflow:auto;
	height:330px;
}
#container ul {
	margin:0;
	padding:0;
	list-style:none;
	display: table-row;
	white-space: nowrap;
}
#container ul li {
	display: table-cell;
	padding:0 10px;
	vertical-align: top;
}
#container img {
/*	max-height:280px;*/
	max-width:280px;
}

/*--------------------------------------------------------------
5.2 fil d'Ariane
--------------------------------------------------------------*/

p#breadcrumbs{margin-top:10px;;font-family:inherit;color:rgb(160, 160, 160);font-size: 80%;}

/*--------------------------------------------------------------
5.25 menu
--------------------------------------------------------------*/
, #menu-entest { 
	display:inline;
}
#menu-principal, #menu-principal ul, #menu-entest, #menu-entest ul { /* supprimer puces et marges pour les listes du menu et les sous-menus */
    list-style-type: none; 
    margin: 0px;
    padding: 0px;
	float:left;
}
#menu-entest, #menu-entest ul { /* le menu supp est à droite */
    float:right;
}
#menu-principal ul, #menu-entest ul {	/* masquer les sous-menus  */
    display: none;
}
#menu-principal li, #menu-entest li {	/* positionner les éléments de premier niveau du menu pour qu’ils se positionnent horizontalement */
    display: inline-block;
    position: relative;
}

#menu-principal a, #menu-entest a {		/* mise en forme des liens du menu */
    display: block;
    width: auto;
    line-height: 30px;
    padding: 3px 10px;
    text-align: center;
    font-size:120%;
}
#menu-principal li:hover ul, #menu-entest li:hover ul {	/* forme des sous-menu lorsque une ligne du menu principal est survolée */
    display: block ;
    position: absolute;
    top: 36px; 
    left: 0px; 
    z-index: 100; 
}
#menu-principal ul a, #menu-entest ul a {
    display: block;
}
#menu-principal li, #menu-entest li {
    background-color: #990031; /* Couleur d'arriere-plan du menu */
}
#menu-principal li a, #menu-entest li a {
    color: #FFF; /* Couleur du texte du menu */
}
#menu-entest li a {
    color: #F99; /* Couleur du texte du menu de test */
}
#menu-principal li:hover, #menu-entest li:hover {
    background-color: #FFF; /* Couleur d'arriere-plan du menu au survol */
}
#menu-principal li:hover a, #menu-entest li:hover a {
    color: #990031; /* Couleur du texte du menu au survol */
}
#menu-principal ul li, #menu-entest ul li {
    background-color: #FFF; /* Couleur d'arriere-plan des sous-menu */
/*    white-space:nowrap;*/
    width:100%;
}
#menu-principal ul li:hover, #menu-entest ul li:hover {
    background-color: #FFF; /* Couleur d'arriere-plan des sous-menu au survol */
}
#menu-principal ul li a, #menu-entest ul li a {
    color: #990031; /* Couleur du texte des sous-menu */
	text-align: left;
}
#menu-principal ul li:hover a, #menu-entest ul li:hover a {
    color: #AD2 ; /* Couleur du texte des sous-menu au survol */
}
/*--------------------------------------------------------------
5.3 Amazon
--------------------------------------------------------------*/
.promoAmzn {
    background-color: red;
    color: #fff;
    position: relative;
    top: 0;
    width: 980px;
    margin: 0 auto;
    height: auto;
    font-size: 18px;
    text-align: center;
    z-index: 1000;
    padding: 10px;
}
.promoAmzn a {
    color: #fff;
}
.promoAmzn p {
    margin: 10px;
}
.promoAmzn-button {
    background-color: #06569d;
    padding: 1px 5px;
}
/*--------------------------------------------------------------
6.0 Responsive
--------------------------------------------------------------*/
@media screen and (max-width: 50em) {	/* 800 à 1000px */
	/* layout */
	#page {
		max-width: 100%;
	}
	main section {
		display: block;
		width: 100%;
	}
	/* typo */
    h1 {
        font-size:2em;
    }
	header p span{
		font-size: 6vw;
    }
	header hgroup{
		background:url('img/bandeau.jpg') no-repeat right bottom;
		height:172px;
	}
	#gallerie {
		width:100%;
	}
	#container img {
	/*	max-height:280px;*/
		max-width:200px;
	}
	.promoAmzn {
		width: 98%;
	}
}

@media screen and (max-width: 40em) {  /* 640 px */
	/* layout */
	#page {
		max-width: 100%;
	}
	main {
		display: block;
		width: 100%;
	}
	/* typo */
    h1 {
        font-size:1.5em;
    }
	header p span, header h1 span{
		font-size: 6vw;
    }
	header hgroup{
		background:url('img/bandeau-640.jpg') no-repeat right bottom;
		height:112px;
	}
}

@media screen and (max-width: 30em) {  /* 480 px */
	/* layout */
	#page {
		max-width: 100%;
	}
	main {
		display: block;
		width: 100%;
	}
	header hgroup{
		height:16vh;	/* hauteur proportionnelle à la largeur de la page */
	}
	header hgroup{
		background:url('img/bandeau-480.jpg') no-repeat right bottom;
		height:84px;
	}
	header hgroup p {
		margin:10px;	/*  page */
	}
	/* typo */
    h1 {
        font-size:1.2em;
    }
	header p {
		font-size: 5.4vw;
    }
}

/* insertion de wpr inline */
@media only screen and ( max-width: 768px ) {
	#wprmenu_bar {
		background-color: #0D0D0D;
	}

	html body div#mg-wprm-wrap .wpr_submit .icon.icon-search {
		color: #FFFFFF;
	}
	#wprmenu_bar .menu_title, #wprmenu_bar .wprmenu_icon_menu {
		color: #F2F2F2;
	}
	#wprmenu_bar .menu_title {
		font-size: 16px;
		font-weight: normal;
	}
	#mg-wprm-wrap li.menu-item a {
		font-size: 15px;
		text-transform: none;
		font-weight: normal;
	}
	#mg-wprm-wrap li.menu-item-has-children ul.sub-menu a {
		font-size: 15px;
		text-transform: none;
		font-weight: normal;
	}
	#mg-wprm-wrap li.current-menu-item > a {
		background: #d53f3f;
	}
	#mg-wprm-wrap li.current-menu-item > a,
	#mg-wprm-wrap li.current-menu-item span.wprmenu_icon{
		color: #FFFFFF !important;
	}
	#mg-wprm-wrap {
		background-color: #2E2E2E;
	}
	.cbp-spmenu-push-toright {
		left: 80% ;
	}
	.cbp-spmenu-push-toright .mm-slideout {
		left:80% ;
	}
	.cbp-spmenu-push-toleft {
		left: -80% ;
	}
	#mg-wprm-wrap.cbp-spmenu-right,
	#mg-wprm-wrap.cbp-spmenu-left,
	#mg-wprm-wrap.cbp-spmenu-right.custom,
	#mg-wprm-wrap.cbp-spmenu-left.custom,
	.cbp-spmenu-vertical {
		width: 80%;
		max-width: 400px;
	}
	#mg-wprm-wrap ul#wprmenu_menu_ul li.menu-item a,
	div#mg-wprm-wrap ul li span.wprmenu_icon {
		color: #CFCFCF !important;
	}
	#mg-wprm-wrap ul#wprmenu_menu_ul li.menu-item a:hover {
		background: #d53f3f;
		color: #606060 !important;
	}
	div#mg-wprm-wrap ul>li:hover>span.wprmenu_icon {
		color: #606060 !important;
	}
	.wprmenu_bar .hamburger-inner, .wprmenu_bar .hamburger-inner::before, .wprmenu_bar .hamburger-inner::after {
		background: #FFFFFF;
	}
	.wprmenu_bar .hamburger:hover .hamburger-inner, .wprmenu_bar .hamburger:hover .hamburger-inner::before,
 .wprmenu_bar .hamburger:hover .hamburger-inner::after {
	background: #FFFFFF;
	}

	#wprmenu_menu, #wprmenu_menu ul, #wprmenu_menu li, .wprmenu_no_border_bottom {
		border-bottom:none;
	}
	#wprmenu_menu.wprmenu_levels ul li ul {
		border-top:none;
	}

	#wprmenu_menu.left {
		width:80%;
		left: -80%;
		right: auto;
	}
	#wprmenu_menu.right {
		width:80%;
		right: -80%;
		left: auto;
	}

	.wprmenu_bar .hamburger {
		float: right;
	}
	.wprmenu_bar #custom_menu_icon.hamburger {
		top: 15pxpx;
		right: 0px;
		float: right;
		background-color: #CCCCCC;
	}
	.main-navigation{ display: none !important; }.custMenu #custom_menu_icon {
		display: block;
	}
	html { padding-top: 42px !important; }
	#wprmenu_bar,#mg-wprm-wrap { display: block; }
	div#wpadminbar { position: fixed; }
}
.obf:hover {
    text-decoration: underline;
    cursor: pointer;
}
