/*
Theme Name: Wpex magtastico Enfant
Description: Theme enfant du theme Wpex magtastico.
Author: Guillaume
Author URI: https://lesdocs.fr
Template: wpex-magtastico
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css?family=Parisienne');
@import url('https://fonts.googleapis.com/css?family=Open+Sans|Karla|PT+Sans+Caption|Cantarell|Roboto+Slab|Merriweather+Sans|Roboto|Nunito');

@font-face {
    font-family: 'cac_champagneregular';
    src: url('https://lesdocs.fr/polices/cac_champagne-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face { 
	font-family:'seg'; 
	src: url('https://lesdocs.fr/polices/seg2.eot'); 
	src: url('https://lesdocs.fr/polices/seg2.eot?#iefix') format('embedded-opentype'), 
		url('https://lesdocs.fr/polices/seg2.ttf') format('truetype'); 
	font-weight:normal;
	font-style:normal;
}

@font-face {
    font-family: 'lucida_sans_unicoderegular';
    src: url('https://lesdocs.fr/polices/lucida-sans-unicode.woff2') format('woff2'),
         url('https://lesdocs.fr/polices/lucida-sans-unicode.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html {
    -webkit-text-size-adjust: 100%; /* Désactive le zoom des polices sur les iPhone en paysage */
}

body {
    color: #585858;
	font-size: 15px;
	font-family: 'lucida_sans_unicoderegular', 'Helvetica', 'Arial', serif;
	counter-set: h2 h3;
	counter-reset: h2;
}

body a {
    color: rgb(46, 50, 84);
}

/* Couleur de fond */
.content-area {
	background: #fff;
	padding-left: 40px;
    padding-top: 40px;
    padding-right: 30px;
}

/* Boites des articles sur la page d'accueil */

#blog-wrap .col {
    padding-left: 30px;
    padding-right: 30px;
}

.loop-entry-content {
    padding: 0;
    padding-top: 20px;
}

.loop-entry-inner {
   box-shadow: none;
}

/* Widget */
#secondary-sidebar .widget-box {
    padding: 0;
	margin-bottom: 40px;
}

.textwidget p {
	margin: 0;
}


/* Largeur du sidebar bleu */
#main-sidebar {
	width: 280px;
}

.boxed-content {
    padding: 0;
    box-shadow: none;
}

.loop-entry-content {
    color: #585858;
	line-height: 1.3;
}

.loop-entry-readmore, .social-share-toggle {
    padding: 6px 14px;
    font-size: 0.9em;
}

.social-share-toggle {
	background-color: #6A6C7F;
}

.social-share-toggle:hover {
	background-color: #2b303b;
}

#single-post-wrap {
    width: calc(70% - 80px);
	margin-left: 20px;
}

#secondary-sidebar {
    width: 30%;
	margin-left: 60px;
	margin-top: 10px;
	padding-left: 0;
}

#secondary-sidebar a {
    color: #2e3254;
}


/* articles connexes */
.single-post-article h2.connexes::before {
  	content: "";
	margin-right: 0;
}


/* Réglages bouton PDF */

header .pdfprnt-buttons {
	float: right;
	width: 0;
    height: 0;
    line-height: 0;
}

.pdfprnt-top-right, .pdfprnt-bottom-right, .pdfprnt-top-bottom-right, .pdfprnt-right {
    padding: 0;
}

.pdfprnt-button-print, .entry .pdfprnt-buttons {
	display: none;
}

.pdfprnt-button {
	position: relative;
}

.pdfprnt-button::after {
    content: "";
    width: 50px;
    height: 49px;
    background-image: url('https://lesdocs.fr/polices/pdf-icon-gris.png');
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 2;
    position: absolute;
    top: 0;
    right: 0;
}

/* Centrage des légendes sous les images et les vidéos */
.wp-block-image, .wp-block-video {
    display: inline-grid;
}

.wp-block-image figcaption, .wp-block-video figcaption {
    text-align: center;
}

/* Taille du paragraphe dans l'article */
.single-post-article p, .single-post-article li {
    font-size: 1rem !important;
	line-height: 1.8em;
}

.single-post-article p {
	margin-bottom: 18px;
	margin-top: 18px;
	/* text-align: justify; */
}

.single-post-article p + ul {
	margin-top: -10px;
}

.single-post-article ul {
    margin-top: 0;
}

.single-post-article h2 {
	counter-reset: h3;
	line-height: 1.2em !important;
	margin-top: 3em !important;
	font-size: 1.3em;
	letter-spacing: 0.4px;
}

.single-post-article h2::before {
	counter-increment: h2;
  content: counter(h2) ".   ";
  margin-right: 0.5em;
}


.single-post-article h3 {
 	line-height: 1.4em !important;
	margin-top: 3em !important;
  	margin-left: 2.5em !important;
  	font-weight: bold;
    text-transform: none;
    font-size: 1.2em;
	letter-spacing: 0.4px;
}

.single-post-article h3:before {
  content: counter(h2) "." counter(h3) ".   ";
  counter-increment: h3;
  margin-right: 0.5em;
}

.single-post-article h4 {
 	line-height: 1em !important;
	margin-top: 3.5em !important;
  	margin-bottom: 0.5em !important;
	font-size:1.2em !important;
  	background-color: #eeefee !important;
  	padding: 3px !important;
	letter-spacing: 0.4px;
}

.single-post-article h2.relation:before {
	content:"";
}

.single-post-article h2.relation {
    text-transform: uppercase;
}

.site-logo {
  font-family: 'Roboto Slab';
  font-size: 2em;
}

.single-post-article pre {
  padding-top: 2px;
  padding-bottom: 2px;
  border-width:0 0 0 4px;
  border-style:solid;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.single-post-article a {
  color: rgb(107, 107, 107) !important;
  font-weight:bold;
}

.entry table {
    font-size: 1rem;
}

.entry th {
    text-align: left;
}

/* Image mise en avant et vidéo dans l'article seul */
.single-post-media {
    margin: 0;
}

.single-post-media .post-video {
    margin-bottom: 50px;
}


.single-post-media .social-share-toggle {
  	display: none;
}

/* Arrondi des vidéos mises en avant */
.wpex-video-embed iframe {
    border-radius: 3px;
}


/* Description catégorie */

.archive-header-title {
    padding-left: 34px;
}

.archive-description {
    margin: -20px 0 20px 0;
    width: calc(50% - 75px);
	padding: 30px 30px 0 30px;
    background-color: #fff;
    border-radius: 3px;
	border-left: 4px solid #464c7f;
	border-right: 4px solid #464c7f;
}

.archive-description p {
  	color: #777;
    font-size: 1.1em;
    line-height: 1.3;
}

/* Décalage liste à puces */
.entry ul {
    margin-left: 50px;
}

.blocks-gallery-grid, .wp-block-gallery {
	margin-left: 0 !important;	
}

/* compteur yuzo */
.yzp-views {
    display: none;
}

/* Largeur des boutons de partage */
.social-share-buttons {
    width: 160px;
}


/* Media queries */
@media only screen and (max-width: 1300px) {
	
	.archive-description {
    	width: initial;
	}
	
	#single-post-wrap {
    	width: 100%;
	}
		
	#secondary-sidebar {
		width: calc( 100% - 40px);
		margin-left: 20px;
		margin-right: 20px;
		margin-top: 30px;
	}
	
	#single-post-wrap {
		margin-left: 0;
	}
}

@media only screen and (max-width: 959px) {
	
	#main-sidebar {   
    	width: 100%;
	}

}

/* Vue sur téléphone */
@media only screen and (max-width: 767px) {
	
	.content-area {
    	padding-left: 0px;
		padding-right: 0px;
	}
	
	.boxed-content {
    	padding: 20px;
	}

	.archive-header {
    	margin-left: 15px;
		margin-right: 15px;
	}
	
	.pdfprnt-buttons {
		display: none;
	}
}

