/*
Theme Name: christian
Author: christian couette
Author URI: http://lililamouette.com
Description: theme personnel pour nos sites (lililamouette et recettes)
Version: 1.0
*/
* {
  box-sizing: border-box;
}

/*** pour l'affichage de l'image d'entête du site */
.logo_recette {
  background-color: #797979;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  padding: 1em;
  text-align: center;
  text-shadow:
    1px 1px 2px black,
    0 0 1em #303030,
    0 0 0.2em #303030;
  color: white;
  font:
    1.0em Georgia,
    serif;
}
.logo_recette h1 {
  text-align: left !important;
  width: 100%;
}
.logo_recette a {
  text-decoration:none;
}

/*** affichage des pages et des articles ***/

body {
    background-color: #797979;
	color: white;
    font-family: Helvetica;
}
/*** pour le menu principal, on retire les soulignés des liens */
ul a {
	background-color: #797979;
	color: white;
    font-family: Helvetica;
	text-decoration: none;
}

li a {
	background-color: #797979;
	color: white;
    font-family: Helvetica;
	text-decoration: none;
}

/*** affichage des images sur fond en relief ***/
.post_thumbnail {
	padding:0px!important;
	box-shadow:5px 5px 5px #303030;
	display: block;
	max-width:240px;
	max-height:160px;
	width: auto;
	height: auto;
}
.ngg-singlepic {
	background-color:#FFFFFF;
	display:block;
	padding:0px!important;
	box-shadow:5px 5px 5px #303030;
	
}
.ngg-thumbnail {
	padding:0px!important;
	box-shadow:5px 5px 5px #303030;
	display: block;
	max-width:240px;
	max-height:160px;
	width: auto;
	height: auto;
}

/**** affichage du texte des titres des catégories avec une ombre portée ***/
.cat_title {
	text-shadow:
    1px 1px 2px black,
    0 0 1em #303030,
    0 0 0.2em #303030;
  color: white;
  font:
    2.5em Georgia,
    serif;
}
.cat_description {
	text-shadow:
    1px 1px 2px black,
    0 0 1em #303030,
    0 0 0.2em #303030;
  color: white;
  font:
    1em Georgia,
    serif;
}

/*** pied de page ***/

footer {
  width: 100%;
  padding-left: 1%;
  margin-bottom: 2px;
  background-color: #797979;
  border: 1px solid #797979;
  text-align:center;
  font:
    0.8em Georgia,
    serif;
}


body > header > h1 > a {
color: #white;
font-weight: 200;
}

article > header > h1 > a {
color: white;
font-weight: 200;
}
article > header > h2 {
	text-shadow:
    1px 1px 2px black,
    0 0 1em #303030,
    0 0 0.2em #303030;
  color: white;
  font:
    2.5em Georgia,
    serif;
	
}
footer {
  margin-top: 4px;
}


/* menu-item du haut */
.menu-item {
  width: auto;
  color: white;
font-weight: 200;
}

.menu-item li {
  position: relative;
}

.menu-item > li {
  display: inline-block;
  list-style: none;
  	color: white;
}

.menu-item li a {
  color: white;
  display: block;
  position: relative;
  padding: 0 16px;
  margin-left: 5px;
}



.menu-item > li > a {
  display: block;
  text-decoration: none;
}



.menu-item ul ul {
  top: 0;
  left: 100%;
}

a {
  /*text-decoration: none;*/
}


.wrap {
  width: 99%;
  margin: 0 auto;
}

/*--------------------------------------------------------------
Page Header
--------------------------------------------------------------*/

.entry-header {
  position: relative;
  overflow: hidden;
}

.site-description {
  display: inline-block;
  margin-top: 15px;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.1;
}

.content-area {
  display: inline-block;
  background-color: #797979;
  color: white;
}

a:visited {
	color: white;
}



.content-thin {
    width: 70%;
}

.content-full-width {
    width: 100%;
}

.content-area,
.primary-sidebar {
  display: inline-block;
}

.primary-sidebar {
  border-inline-start: solid;
  width: 25%;
  padding: 1%;
  vertical-align: top;
  background-color: #797979;
  color: white;
}

.primary-sidebar a {
color: white;
font-weight: 200;
}

.article-loop {
    width: 45%;
    text-align: left;
    margin: 5px;
    padding: 10px;
}

.article-full {
  width: 99%;
  padding: 1%;
}

.article-loop,
.article-full {
  display: inline-block;
  vertical-align: top;
  background-color: #797979;
  color: white;
  border-radius: 4px;
  margin-bottom: 4px;
}


.blog-post .slide-caption {
  display: none;
}

.span inline {
  display: inline-block;
  width: 240px;
  height: 120px;
  padding: 5px;
  border: none;    
  background-color: #797979; 
}


/* Positionnement */
.list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-gap: 12px;
    margin: 0;
    padding: 0;
}

.picture {
    list-style-type: none;
}

.sample-block {
    background-color: #797979;
    
}

.sample-block .sample-block {
    background-color: #797979;
}

table {
  border:none;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
}

table caption {
  font-size: 1.5em;
  margin: .5em 0 .75em;
}

table tr {
  background-color: ##797979;
  border:none;
  padding: .35em;
}

table th,
table td {
  padding: .625em;
  text-align: center;
}

table th {
  font-size: .85em;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media screen and (max-width: 600px) {
	.logo_recette {
	width: 99%;
	height:50px;
	position: relative;
	
  }
  .logo_recette h1 {
	  position: absolute;
	  top: 0;
	  font:
    1.1em Georgia,
    serif;
  }
  table {
    border: 0;
  }

  table caption {
    font-size: 1.3em;
  }
  
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table tr {
    border:none;
    display: block;
    margin-bottom: .625em;
  }
  
  table td {
    border:none;
    display: block;
    font-size: .8em;
    text-align: right;
  }
  
  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table td:last-child {
    border-bottom: 0;
  }
}





@media screen and (max-width: 800px) {
  .article-loop {
    width: 99%;
  }

  .logo_recette {
	width: 99%;
	height:50px;
	position: relative;
  }
  .logo_recette h1 {
	  position: absolute;
	  top: 0;
	  font:
    1.1em Georgia,
    serif;
  }

  table {
    border: 0;
  }

  table caption {
    font-size: 1.3em;
  }
  
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table tr {
    border:none;
    display: block;
    margin-bottom: .625em;
  }
  
  table td {
    border:none;
    display: block;
    font-size: .8em;
    text-align: right;
  }
  
  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table td:last-child {
    border-bottom: 0;
  }
}

@media screen and (max-width: 400px) {
  .content-area,
  .primary-sidebar {
    width: 100%;
  }
  .logo_recette {
	width: 99%;
	height:50px;
	position: relative;
  }
  .logo_recette h1 {
	  position: absolute;
	  top: 0;
	  font:
    1.1em Georgia,
    serif;
  }
    table {
    border: 0;
  }

  table caption {
    font-size: 1.3em;
  }
  
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table tr {
    border:none;
    display: block;
    margin-bottom: .625em;
  }
  
  table td {
    border:none;
    display: block;
    font-size: .8em;
    text-align: right;
  }
  
  table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table td:last-child {
    border-bottom: 0;
  }
}
/*** pour faire défiler la page vers le haut. La flèche est définie dans scroll_top au dessus ***/
#toTop {
 position:fixed;
 bottom:15px;
 right:15px;
 cursor:pointer;
 background: #797979;
 width:50px;
 font-size:25px;
 line-height:45px;
 color:#fff;
 text-align:center;
 border-radius:50px;
 height:50px;
}
.scroll_to_top {
  position: fixed;
  width: 25px;
  height: 25px;
  bottom: 50px;
  right: 30px;
}
.scroll_to_top img {
  width: 25px;
}
