/***** FIXES *****/
/* Offcanvas */
.nav-pills > li {
    float: initial;
}
/* conflit entre RSform/template sur class .nav (footer page contact) */
.sp-module ul {
    display: inherit;
}
/** Calendrier sélection date édition d'article **/
/* agrandissement sélection heure, dans champs de date de l'edition article */
select.time.time-hours, select.time.time-minutes {
	max-width: 110%;
    width: 110% !important;
}
/* noms jours plus grd */
.calendar-container .day-name {
    font-size: 1.2rem;
}

/* agrandi sélection nombre d'articles/page sur liste d'articles */
.input-mini {
    width: 80px;
}

/* agrandi fenêtre envoi image d'intro */
#sbox-window.shadow { height: 575px !important; }


/* ALEXANDRIA */
/* FIX images livre */
div.img-intro-left.cover a.modal {
  display: unset;
  position: unset;
}
/* hide link */
a[href="http://www.alexandriabooklibrary.org"] { display: none; }
/* hide filre catégorie quand dans caté ! */
div.category.blog label[for="filter-category_id"],
div.category.blog div#filter_category_id_chzn {
  display:none;
}


/***** HIDDING *****/
/*Cache l'onglet "langage" pour la créa d'article */
.nav-tabs > li > a[href="#language"] {
	display: none;
}

/***** ARTLCE *****/
/*Titres DANS l'article */
div[itemprop="articleBody"] h3, 
div.jev_evdt_desc h3 { 
  margin-bottom: 30px;
}
div[itemprop="articleBody"] h4,
div.jev_evdt_desc h4 { 
  margin-bottom: 20px;
}

div[itemprop="articleBody"] h3:not(:first-child),
div.jev_evdt_desc h3:not(:first-child) { 
  margin-top: 45px;
}
div[itemprop="articleBody"] div.pagenavcounter + h3 { margin-top: unset; }

div[itemprop="articleBody"] h4:not(:first-child),
div.jev_evdt_desc h4:not(:first-child) { 
  margin-top:30px;
}
div[itemprop="articleBody"] div.pagenavcounter + h4 { margin-top: unset; }

div[itemprop="articleBody"] h5:not(:first-child),
div.jev_evdt_desc h5:not(:first-child){ 
  margin-top:20px;
}
div[itemprop="articleBody"] div.pagenavcounter + h5 { margin-top: unset; }



/* Images de l'article */
div.entry-image img {
  object-fit: cover;
  object-position: center top;
  width: 330px;
  height: 220px
}

div[itemprop="articleBody"] img:not(.libre),
div.jev_evdt_desc img:not(.libre) { 
  max-width: 270px;
  float: right;
  margin: 0 0 5px 20px;
}

p.img_caption {
  font-style: italic;
  text-align: center;
  margin-bottom: 0;
  padding : 5px;
  color: #325361;
  font-weight: 400;
  line-height: 20px;
  font-size: 13px;
  font-family: Open Sans, sans-serif;
}

div[itemprop="articleBody"] img[style*="float: right"],
div[itemprop="articleBody"] img[style*="float:right"],
div.jev_evdt_desc img[style*="float: right"],
div.jev_evdt_desc img[style*="float:right"],
div.pull-right.entry-image, 
div.img_caption.right, 
a.wfpopup[style*="float: right"],
a.wfpopup[style*="float:right"] {
  margin: 0 0 5px 20px;
}
div[itemprop="articleBody"] img[style*="float: left"],
div[itemprop="articleBody"] img[style*="float:left"],
div.jev_evdt_desc img[style*="float: left"],
div.jev_evdt_desc img[style*="float:left"],
div.pull-left.entry-image, 
div.img_caption.left, 
a.wfpopup[style*="float: left"],
a.wfpopup[style*="float:left"] {
  margin: 0px 20px 5px 0px;
}

/* Compteur de page de l'article (haut) */
div.pagenavcounter {
 margin-bottom: 25px;
}

/* ligne de séparation */
hr { border-top: 4px solid #eee; }

/* décalage des ancres */
div[itemprop="articleBody"] .anchor{
  display: block;
  height: 107px; /*same height as header*/
  margin-top: -107px; /*same height as header*/
  visibility: hidden;
}

/*Box-Shadow - Utiliser sur l'agenda, l'image de l'article "complet", et les images d'article avec caption*/
.box-shadow, 
div.entry-image, 
article > div[itemprop="articleBody"] div.img_caption,
article > div[itemprop="articleBody"] img:not(.caption) {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}







/***** Classes originales du template/extensions */
body { font-weight:400 !important; }

/* Titres */
h1, h2, .entry-header h2 a, h3, h4, /*h5, h6, */.bt-title, div.pagenavcounter {
  /*margin: 15px 0;*/
  color: #325361 !important;
  text-shadow: 3px 3px 3px rgba(0,0,0,0.3);
}
h3 { font-size: 22px; }
h5, h6 {
  font-weight: 500;/*400 !important;*/
  color: #325361 !important;
}
/* Titre des modules */
.sp-module-title {
  margin: 0 0 10px !important;
  background: #A5C5D2;	/* pour les navi qui ne supportent pas le gradient */
  background: linear-gradient(to right, rgba(165,197,210,1), rgba(165,197,210,0.6), rgba(165,197,210,0));
  padding : 10px;
}



/* drop-down Main menu -> transparence */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
    /*#ebebeb;*/
 	background: rgba(235,235,235,0.85);
}


/* spacing/structure */

.sp-megamenu-parent { /* Alignement centre du menu */
  width: 100%;
  text-align: center;
}
/* padding/margin divers */
#sp-main-body {
  margin: 30px 0;
  padding: 0;
}
/* Contenu de l'article */
/*article > div[itemprop="articleBody"] { padding: 0 15px; } */
#sp-top-content-2 {
  margin-top: 5px;
}
.sp-module {
  margin-top: 20px;
}
/* harmonise les champs de date avec le reste dans l'éditeur d'article */
div.input-append { margin-bottom: 0; }




/* BT content */

/* page publications 
.bt-cs h3 {
 border: none; 
}
.slides_container {
 border: none !important;
}
*/
.bt-row {
 padding: 0 !important;
}
a.bt-title {
 display: block;
}
div.bt-inner > br {display: none;}
div.bt-inner {margin: 0 33px 0 33px !important;}




/* Article Good Search */
.GSearchBlock .acounter {
    margin-top: 0px !important;
}
.GSearchBlock h3 {
    margin-top: 0px !important;
}
.gsearch-buttons {
    margin-top: 0px !important;
}
/* bootstrap.min.css pour Article GS */
.page-header {
  margin: 0px 0 0px;
}

/* ToolTips - pas de soulignement dans les menus */
ul.nav.menu .rl_tooltips-link, li.sp-menu-item .rl_tooltips-link {
  border-bottom: none;
}

/* JCE - séparateur barre d'outil */
span.mceSeparator {
 width: 15px !important;
  margin: 0 !important;
}



/***** Classes custom *****/

/* Background articles/modules -> layout : Main Body\Component & Content Top\Position1 */
.article-back, .article-back-small, ul.nav.menu:not(.nav-pills) {			
  background: #FFFFFF;	/* pour les navi qui ne supportent pas le gradient */
  background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,1), rgba(255,255,255,0.1));
  padding-left: 15px;
}
.article-back {
  padding: 20px;
}
/* phrase prez ALI accueil -> s'applique à toutes Position3 */
.article-back-small {
  padding: 5px 15px;
}

/* Encadrement, border épais à gauche, gradient vers la droite. Ex : voir agenda "Résumé/remarques" */
.gradient-bleu, ul.nav.menu:not(.nav-pills) > li.current.active {
  background: #DCE8ED;	/* pour les navi qui ne supportent pas le gradient */
  background: linear-gradient(to right, rgba(220,232,237,1), rgba(220,232,237,0.2), rgba(220,232,237,0));
}
.gradient-bleu {
  border-left: 6px solid #a5c5d2 !important;
  padding: 5px 0 5px 10px;
  margin-bottom: 10px;
}
.gradient-gris {
  background: #DCDCDC;	/* pour les navi qui ne supportent pas le gradient */
  background: linear-gradient(to right, rgba(220,220,220,1), rgba(220,220,220,0.2), rgba(220,220,220,0));
  border-left: 6px solid #969696 !important;
  padding: 5px 0 5px 10px;
  margin-bottom: 10px;
}
/*Force le Highlight des résulats de recherche (non avancées  
.highlight {
   background: rgba(80,00,00,.7);
   color: #fff;
   padding:0 5px;
   font-weight:bold;
} */

/***** Spoiler *****/
input[id^="spoiler"]{
 display: none;
}
input[id^="spoiler"] + label {
  display: block;
  width: 200px;
  margin: 10px auto 0;
  padding: 5px 20px;
  background: #a5c5d2;
  color: #fff;
  text-align: center;
  font-size: 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .6s;
}
input[id^="spoiler"]:checked + label {
  margin: 10px auto 0; 
  padding: 10px;
  color: #200;
  background: #ccc;
}
input[id^="spoiler"] ~ .spoiler {
  width: 90%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0 auto 0; 
  padding: 0; 
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: all .6s;
}
input[id^="spoiler"]:checked + label + .spoiler{
  height: auto;
  opacity: 1;
  padding: 10px;
}



/***** Structure responsive type tableau pour DIV */
.table-layout {
  display: table; 
  width: 100%;
}
/* ligne de tableau, pas de contenu, contient les cellules */
.table-row {
  display: table-row;
  width: 100%;
}
/* Cellules enfant pour le contenu */
.table-row > div, .table-row > a {
  display: table-cell;
  padding: 10px;
}
/* rend le tableau responsive à 768px (comme le template) */
@media screen and (max-width: 768px) {
    .table, .table-row {
        display: block;
    }
    .table-row > div, .table-row > a {
        display:inline-block;
		width: 100%;
    }
}