/*
 Theme Name:   Glass Bead child
 Theme URI:    http://example.com/twenty-fifteen-child/
 Description:  Extension du thème Glass Bead pour gérer l'impression
 Author:       Cédric Scandella
 Author URI:   http://scandella.fr
 Template:     GlassBead
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         
 Text Domain:  GlassBead-child
*/
@media print {

/* Reset */
    * {
	float: none !important;
	margin: 0mm !important;
	width: auto !important;
	border: 0px solid !important;
	padding: 0 !important; 
	position: static !important; 
	overflow: visible !important;
	color: #000 !important;
	background-color: #FFF !important;
	opacity: 1 !important;
	}
    
    body {
	  width: auto!important;
	  margin: auto!important;
	  background-color: #fff!important;
	  color: #000!important;
	  text-align: left!important;
	  font-size: 14px;
	}
	
	img {
	page-break-inside: avoid !important;
	}

	p, h1, h2, h3, h4, h5, h6, blockquote, ul, ol {
	  color: #000!important;
	  margin: auto !important;
	}

	.print {
	  display: block; /* affichage des éléments de classe print */
	}
	
	.page-break	
	{ page-break-before:always !important; }

	p, blockquote {
	  orphans: 3; /* pas de ligne seule en bas */
	  widows: 3; /* pas de ligne seule en haut */
	}

	blockquote {
	  page-break-inside: avoid; /* pas de coupure dans ces élements */
	}

	h1, h2, h3, caption {
	  page-break-after: avoid; /* pas de saut après ces éléments */
	}

	a:link, a:visited  {
	text-decoration: none !important;
	color: #000000 !important;
	}
	
	a[href]:after {
    content: none !important;
  }
      
/* No Print */

	#progressbar,
	#subnavigation,
	.prev-post,
	.next-post,
	.bawpvc-ajax-counter,
	.ipadimage,
	.tags,
	.header_right,
	.footer,
	.social-post-foot
	 {
        display: none!important;
    }

/* Styles */
  	
	#header-wrapper img.imghead {
	width:20%!important;
	left:40% !important;
	right:40% !important;
	height:auto !important;
	display: block !important;
	position:absolute !important;
}
	
	.masthead-wrapper {
    display: block !important;

}

	/* rubrique */
	.header_left h6 {
	font-size: 16px!important;
	margin-top:120px !important;
	}
	
	.header_left h6:before {
	content: "JOURNAL > "!important;
	}

	/* titre de l'article */
	.entry-title {
	margin-top:25px !important;
	padding-bottom:15px!important;
	color:black!important;
	text-align:left !important;
	}
	
	/* auteur */
	.article_author {
	margin-left: 30px!important;
	margin-bottom: 30px!important;
	display:block!important;
	}
	
	/* citations */
	blockquote {
	margin-top: 20px!important;
	margin-left: 30px!important;
	margin-right: 30px!important;
	color: #000 !important;
	}

	/* intertitres */
	.entry-content h3, .entry-content .h3_start {
	text-align: center!important;
	margin-top:25px!important;
	margin-bottom:10px!important;	
	font-size:16px!important;
	}
	
	.entry-content h4 { 
	text-align: left!important;
	margin-top:20px!important;
	margin-bottom:0px!important;	
	font-size:16px!important;
	}
	
	.entry-content strong, .entry-content b {
	text-align: left!important;
	margin-top:10px!important;
	margin-bottom:0px!important;	
	}
	
	/* texte courant */
	.entry-content p {
	orphans: 3!important; 
	widows: 3!important;
	}

	.entry-content h5 {
	font-size:14px;
	}
	
	.entry-content h5 a {
	text-decoration: none !important;
	color: #000000 !important;
	}
	
	.entry-content h5 a:after {
	content:" (" attr(href) ") " !important;
	font-size:14px;
	}

	img {
	margin-top:20px;
	max-width: 150mm;
	max-height: 130mm;
    width: auto;
    height: auto;
    margin-top:15px !important;
	}
	
	/* légendes */
	.wp-caption-text {
	text-align: left!important;
	margin-top:5px!important;
	margin-bottom:10px!important;	
	font-size:12px!important;
	}
	
	/* appels de notes*/
	.footnote_number {
	font-size: 12px !important;
	vertical-align: baseline !important;
	position: relative !important;
	top: -0.4em !important; 
	}
	
	/*notes */
	.foot ol, .foot ul, .foot li {
	list-style-type: none!important;
	margin-bottom:5px!important;
	}

	.foot h3 {
	font-size: 16px!important;
	padding-top:8px!important;
	margin-top: 40px!important;
	margin-bottom: 15px!important;
	border-top: 1px solid black!important;
	width: auto!important;
	}
	
	.foot .fnside {
	display:inline!important;
	}
	
	.foot .fnside a:after {
	content:".\00a0"!important;
	}
	
	/* numéro de notes en pied */	
	.foot .fnside a {
	font-size: 12px!important;
	vertical-align: baseline !important;
	position: relative !important;
	top: 0.15em !important; 
	}
	
	.foot p {
	display:inline!important;
	font-size:14px!important;
	}

/* bio */
	.author_bio { 
	font-size: 16px!important;
	padding-top:8px!important;
	margin-top: 40px!important;
	border-top: 1px solid black!important;
	}
	
	p {
	-moz-hyphens: none;
	-ms-hyphens: none;
	-webkit-hyphens: none;
 	 hyphens: none;
   }

/* For Prince */	
 	@page {
    height:297mm !important;
    width:210mm !important;
    margin-top: 25mm !important;
    margin-bottom: 25mm !important;
    margin-left: 25mm !important;
    margin-right: 25mm !important;

    counter-increment: page;
    counter-reset: page 1;
   
    @top-left {
    content: string(doctitle) " | "  string(myauthor) ;
    font-family: "Substance W00 Regular" !important;
	font-size:11px !important;
    }
    
   
    @bottom-center {
        content: counter(page) " / " counter(pages);
        font-family: "Substance W00 Regular" !important;
		font-size:14px !important;
    	}
	}
	
	.entry-title { string-set: doctitle content() }
	.article_author { string-set: myauthor content()} 
	
	@page:first {
	@top-left { content: normal;}
	@bottom-center { content: normal; }
	}	

}



