/*
Theme Name: Divi Child (version SIGI)
Theme URI: http://www.elegantthemes.com/gallery/divi/
Version: 1.0
Description: Theme DIVI pour les communes
Template: Divi
Author: SIGI
Author URI: http://www.elegantthemes.com
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* BEGIN MEGA MENU */
#header-container .et-menu li.mega-menu > ul > li:nth-of-type(5n) {
	clear: none;
}
#header-container .et-menu li.mega-menu > ul > li {
	width: 16.6%;
	margin: 0;
}
#header-container .et-menu li.mega-menu:hover > ul {
  border-top: solid #005c73 4px;
	padding: 15px 30px;
}
body.orange-theme #header-container .et-menu li.mega-menu:hover > ul {
  border-top: solid #f44f0e 4px;
}
.et-menu-nav li.mega-menu li > a {
    width:100%!important;
}
.et-menu li li a {
    padding:6px 10px;
}
.et-menu-nav li.mega-menu li > ul, .nav li ul {
    width:100%;
}
.et-menu-nav li.mega-menu li > ul {
    width:auto!important;
}
/* END MEGA MENU */

/*4 level*/
.et-menu-nav li.mega-menu:hover li ul li.menu-item-has-children > ul li,
.et-menu-nav li.mega-menu:focus li ul li.menu-item-has-children > ul li{
  display: none !important;
}

.et-menu-nav li.mega-menu:hover li ul li.menu-item-has-children:hover > ul li,
.et-menu-nav li.mega-menu:focus li ul li.menu-item-has-children:hover > ul li {
	padding-left:15px !important;
 	display: block !important;
}
.et-menu-nav li.mega-menu ul li ul li {
    float:none!important;
}



.et-menu-nav li.mega-menu:hover li ul li.menu-item-has-children > a::after,
.et-menu-nav li.mega-menu:focus li ul li.menu-item-has-children > a::after{
  display:block;
	font-family: ETmodules;
  content: "3";
  font-size: 16px;
  position: absolute;
  right: 0;
  top: 5px;
  font-weight: 800;
}

/* BEGIN MENU */
#header-container .et_pb_menu_0_tb_header.et_pb_menu .et_pb_menu__logo {
    background: white !important;
    padding: 15px 25px;
    margin-right: 15px;
}
.et_pb_fullwidth_menu--with-logo .et_pb_menu__menu > nav > ul > li > a,
.et_pb_menu--with-logo .et_pb_menu__menu > nav > ul > li > a {
    padding: 20px 0;
}
#header-container .et-menu li.mega-menu > ul > li > a:first-child {
	border-bottom: none;
	color: #1F776E;
	text-transform: uppercase;
  font-weight: normal;
}
#header-container .et-menu li.mega-menu > ul > li {
    width: 14.2%;
}
#header-container .et-menu > li {
	margin-right: 15px;
}

.nav li li {
    line-height: 1.5em;
}

#header-container .et-menu li.mega-menu > ul > li.column-without-title > a {
    display: none;
}
#header-container .et-menu li.mega-menu > ul > li.column-without-title > ul > li > a {
    font-size: 1.3em;
    line-height: 1.3em;
}

/* END MENU */

/* Page Header */
.page-header:before { /* Adds a white line on the left side of the breadcrumb title */
	content: " ";
	width: 6px;
	height: calc(100% - 50px);
	bottom: 0;
	top: 50px;
	background-color: #fff;
	position: absolute;
	border-radius: 6px 6px 0 0;
	display: block;
}
div.breadcrumb-title span > span:first-child, div.breadcrumb-title span > span:last-child, div.breadcrumb-title span.separator  {
	display:none;
}
div.breadcrumb-title span > span {
	display:block;
}
div.breadcrumb-title span > span > a {
	color:inherit;
	text-transform:uppercase;
}
div.breadcrumb-title span > span:nth-child(3n) > a {
	font-weight:bold;
}

.page-header h1 { /* Styles for current page */
	font-weight: 800;
}


/* liste custom annimée (ex: Randonnée...) */
html:not([class*="et-fb-preview"]) .items-finder-custom {
	opacity: 0;
	max-height: 1100px;
	transition: 0.5s ease;
	overflow: hidden;
}

html:not([class*="et-fb-preview"])  .items-finder-custom.init {
	opacity: 1;
	max-height: inherit;
}

html:not([class*="et-fb-preview"]) #page-container .items-finder-custom .btn-item.btn-active {
	background-color: #005c73 !important;
	color: #FFF !important;
}
html:not([class*="et-fb-preview"]) body.orange-theme #page-container .items-finder-custom .btn-item.btn-active {
	background-color: #1F776E !important;
	color: #FFF !important;
}

html:not([class*="et-fb-preview"]) .items-finder-custom .item-full:not(.item-active) {
	position: absolute;
	top: 0px;
	transform: translatex(50%);
	opacity: 0;
	pointer-events: none;
}

html:not([class*="et-fb-preview"]) .items-finder-custom .item-full {
	transition: 0.5s ease;
}



/* BEGIN MENU RIGHT */
#header-container .et_pb_menu__menu,
#header-container .et-menu-nav,
#header-container .et-menu {
  width: 100%;
}

#header-container .et_pb_menu__wrap {
  margin: 0;
}

#header-container .et-menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/*#header-container .et-menu li:nth-child(5) {
    margin-left: auto;
}*/

#header-container .et-menu li.menu-icon-right > ul.sub-menu,
#header-container .menu-item.wpml-ls-item ul.sub-menu {
  right: 0;
  left: auto;
}

#header-container .et-menu .menu-icon-right > a {
  color: #33bfb1;
}
body.orange-theme #header-container .et-menu .menu-icon-right > a {
  color: #f44f0e;
}

/*
#header-container .et-menu .menu-icon-right > a {
  font-size:0.01px;
  padding-right: 0;
}

#header-container .et-menu .menu-icon-right > a:after {
  display: none;
}

#header-container .et-menu .menu-icon-right > a:before {
  font-family: 'ETModules';
	margin-right: 0px;
  font-size: 20px;
  font-size: 1.3rem;
  color: #1F776E;
}

#header-container .et-menu .menu-icon-right.et-show-dropdown > a:before {
  color: #a8a6ad;
}

#header-container .et-menu .contact-icon > a:before {
  content : "e087";
}

#header-container .et-menu .media-icon > a:before {
  content : "e075";
}

#header-container .et-menu .news-icon > a:before {
  content : "e059";
}
*/
 /* END MENU RIGHT */

/* BEGIN MENU MOBILE */
#header-container ul.et_mobile_menu {
  height: 500px;
  overflow: auto;
}

/* END MENU MOBILE */

/* Coller le sous-menu de "Contactez-nous" à droite afin de ne pas cacher du contenu et éviter une scrollbar horizontale */
#header-container .et-menu li:last-child > ul {
    right: 0;
    left: auto;
}


/* Rendre le menu pliable en version mobile */ 

/********* Mobile Menu Collapse ********/
/**** This hides the sub menu items on mobile ****/
.et_mobile_menu li ul.hide {
	display: none !important;
}
/**** This adjusts the positioning and the background transparency of the parent menu item on mobile ****/
.et_mobile_menu .menu-item-has-children {
	position: relative;
}
.et_mobile_menu .menu-item-has-children > a {
	background: transparent;
}
/**** This styles the icon and moves it to the right ****/
.et_mobile_menu .menu-item-has-children > a + span {
	position: absolute;
	right: 0;
	top: 0;
	padding: 10px 20px;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	z-index: 3;
}
/**** Here you can swap out the actual icons ****/
span.menu-closed:before {
	content: "\4c";
	display: block;
	color: #000;
	font-size: 16px;
	font-family: ETmodules;
}
span.menu-closed.menu-open:before {
	content: "\4d";
}

/* Hide the category container on articles */ 
/*.single-post .et_pb_title_container .et_pb_title_meta_container {
	display:none;
}*/

/*** Changes to mobile post view ***/
@media only screen and (max-width: 980px) {

	/* Meta and Post Container Width */
	.et_pb_row_0_tb_body, body #page-container .et-db #et-boc .et-l .et_pb_row_0_tb_body.et_pb_row, body.et_pb_pagebuilder_layout.single #page-container #et-boc .et-l .et_pb_row_0_tb_body.et_pb_row, body.et_pb_pagebuilder_layout.single.et_full_width_page #page-container #et-boc .et-l .et_pb_row_0_tb_body.et_pb_row {
	    width: 100%;
	}
	.et_pb_row_1_tb_body, body #page-container .et-db #et-boc .et-l .et_pb_row_1_tb_body.et_pb_row, body.et_pb_pagebuilder_layout.single #page-container #et-boc .et-l .et_pb_row_1_tb_body.et_pb_row, body.et_pb_pagebuilder_layout.single.et_full_width_page #page-container #et-boc .et-l .et_pb_row_1_tb_body.et_pb_row {
	    width: 100%;
	}

	/* Post Content Width */
	/* Don't forget the first class .single-post so that this fix only applies to "actualités" */
	.single-post .et_pb_post_content_0_tb_body {
	    margin-right: -50px;
	    margin-left: -50px;
	}

	/* Post title font size */
	.et_pb_post_title_1_tb_body .et_pb_title_container h1.entry-title, .et_pb_post_title_1_tb_body .et_pb_title_container h2.entry-title, .et_pb_post_title_1_tb_body .et_pb_title_container h3.entry-title, .et_pb_post_title_1_tb_body .et_pb_title_container h4.entry-title, .et_pb_post_title_1_tb_body .et_pb_title_container h5.entry-title, .et_pb_post_title_1_tb_body .et_pb_title_container h6.entry-title {
	    font-size: 30px;
	}

	.single-post .et_pb_row_2_tb_body.et_pb_row{
		padding:0 !important;
	}
	.single-post h1, .single-post  h1.et_pb_contact_main_title, .single-post .et_pb_title_container h1{
		font-size:34px;
	}
	.single-post h2 {
		font-size:28px;
	}
	.single-post h3{
		font-size:24px;
	}

	.single-post .et_pb_column{
		margin-bottom:0px;
	}

	.single-post .et_pb_title_featured_container img{
		max-width: 100%; 
    	margin-left: 0%;
	}
}

/* allow "mobile" view to extend from 980px to 1400px viewport width */
@media (min-width: 981px) and (max-width: 1400px) {
.et_pb_row.et_pb_equal_columns>.et_pb_column, .et_pb_section.et_pb_equal_columns>.et_pb_row>.et_pb_column {
    width: 47.25%;
    margin-right: 5.5%;
 }

.et_pb_gutters2 .et_pb_column_1_5, .et_pb_gutters2.et_pb_row .et_pb_column_1_5 {
    width: 47%;
    margin-bottom: 30px;
 }

.et-l--footer .et_pb_gutters2 .et_pb_column_1_5, .et-l--footer .et_pb_gutters2.et_pb_row .et_pb_column_1_5 {
    width: 17.6% !important;
 }
  .et_pb_menu__logo {
    padding: 10px !important;
    width: 100px;
  }
}

/* font size changes to avoid in-word line breaks */
@media (min-width: 1400px) and (max-width: 1600px) {
  .quick-links h2 {
    font-size: 18px;
  }
  .quick-links .et_pb_blurb_description {
    font-size: 16px;
  }
}

/* Fix the width of the :focus on the ul > li of the header menu 
(when the user clicked on the meni item, the right border was hidden before the fix ) */
nav .et-menu-nav li.mega-menu.mega-menu-parent li>a:focus, nav .et-menu-nav li.mega-menu.mega-menu-parent li li:focus,
.et-menu-nav li.mega-menu.mega-menu-parent li>a, .et-menu-nav li.mega-menu.mega-menu-parent li li{
	width:99% !important;
}

/* Fix the width of the mobile menu to 103%. It needs to be 103% wide so that the menu takes the full width of the screen */
.et_mobile_menu{
	width:103%;
}

/* Limit the heights of the div where the logo is located in the header menu */
/* This is a fix that prevents the content of the page to be hidden behind a fixed header menu */
.et_pb_menu__logo img{
	max-height:50px !important;
} 


.media-modal .attachments-browser .media-toolbar-secondary .attachment-filters {
	display:inline-block!important;
}


.nav li.et-touch-hover>ul,
.nav li:hover>ul {
	opacity: 0;
	visibility: hidden;
}
ul.sub-menu.hide.visible {
	opacity: 1;
	visibility: visible;
}