/*
Theme Name:  Elecsol
Template:    Divi
*/


/* TYPOS */

.centrer-v {
  display: flex;
  flex-direction: column;
  justify-content: center;

/* Et les déclinaisons avec préfixes pour obtenir un résultat homogène sur les divers navigateurs  */
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
      -ms-flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
      -ms-flex-pack: center;
}

.align-bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
      -ms-flex-direction: column;
  -webkit-box-pack: flex-end;
  -webkit-justify-content: flex-end;
     -moz-box-pack: flex-end;
      -ms-flex-pack: flex-end;
}

.vertical-align-center-child {
  display: flex;
  align-items:center;
}


/*set the defautl background color of the header section*/
.pa-header {
	background: transparent;
	-webkit-transition: background-color 0.3s ease-out;
	-moz-transition: background-color 0.3s ease-out;
	-o-transition: background-color 0.3s ease-out;
	transition: background-color 0.3s ease-out;
}


/*set the background color of the fixed header when scrolling*/
.pa-fixed-header {
	background-color: #4d8396!important;
	-webkit-transition: background-color 0.3s ease-out;
	-moz-transition: background-color 0.3s ease-out;
	-o-transition: background-color 0.3s ease-out;
	transition: background-color 0.3s ease-out;
}

.home .pa-fixed-header .et_pb_menu__menu>nav>ul>li a {
	color:#fff!important;
}
.home .pa-fixed-header .et_pb_menu__menu>nav>ul>li.current-menu-item a {
	color:#fff48a!important;
}


.et_mobile_menu .first-level > a {
background-color: transparent;
position: relative;
}
.et_mobile_menu .first-level > a:after,
.et_mobile_menu .sub-menu > .first-level > a:after {
font-family: 'ETmodules';
content: '\4c';
font-weight: normal;
position: absolute;
font-size: 16px;
top: 13px;
right: 10px;
transition: 0.2s;
transform-origin: center;
}
.et_mobile_menu .first-level > .icon-switch:after{
content: '\4c';
    transform: rotateZ(135deg);
    right: 8px;
}
.second-level {
/* display: none; */
}
.reveal-items {
display: block;
}
.et_mobile_menu {
margin-top: 20px;
}

.et_pb_menu__menu>nav>ul>li.current-menu-item:before {
	content: '';
    width: 40px;
    border-top: solid 3px #fff;
    margin-left: 0px;
    position: absolute;
    margin-top: 10px;
    border-top-color: #fff48a;
}
.home .et_pb_menu__menu>nav>ul>li.current-menu-item:before {
	border-top-color: #8a5b4d;
}
.home .pa-fixed-header .et_pb_menu__menu>nav>ul>li.current-menu-item:before {
	border-top-color: #fff48a;
}

html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}


/* PERSONNALISATION DU MENU DE NAVIGATION */
/* Change the width of the dropdown container */
.tdf-menu ul.sub-menu,
ul.sub-menu {
    width: 300px!important;
}

/* Change the width of the links inside the dropdown */
.tdf-menu ul.sub-menu li,
.tdf-menu ul.sub-menu li a,
ul.sub-menu li,
ul.sub-menu li a {
    width: 100%!important;
}

/* Position the second level dropdown correctly */
.tdf-menu .nav li li ul {
    left: 300px;
}
.tdf-menu .nav li.et-reverse-direction-nav li ul {
    left:auto;
    right:300px;
}

/* Extend dropdown links full-width */
.tdf-menu .nav li li {
    padding: 0;
    min-width: 100%;
}
.tdf-menu .nav li li a {
    min-width: 100%;
	padding:10px 0;
	line-height:16px!important;
	color:#4d8396;
}

/* Change the dropdown links hover effect */
.tdf-menu.et_pb_module.et_pb_menu .nav li li a {
    transition: all .3s ease-in-out;
}
.tdf-menu.et_pb_module.et_pb_menu .nav li li a:hover {
    background:#fffce4;
    opacity:1;
    padding-left:28px;
}

/* Remove the dropdown border and inner spacing */
.tdf-menu.et_pb_menu .et-menu-nav ul.sub-menu {
    padding: 0;
    border-top: 0;
}

/* Move the first-level dropdown to the left */
.tdf-menu ul.nav > li > ul.sub-menu {
    transform: translateX(-9px);
}

/* Add rounded corners to the dropdown container */
.tdf-menu.et_pb_menu .et-menu-nav ul.sub-menu {
    border-radius:10px;
}

/* Add rounded corners to the first dropdown item */
.tdf-menu ul.sub-menu li:first-child a {
    border-radius: 10px 10px 0 0;
	padding:20px 0 10px 0;
}

/* Add rounded corners to the last dropdown item */
.tdf-menu ul.sub-menu li:last-child a {
    border-radius: 0 0 10px 10px;
	padding:10px 0 20px 0;
}

/* Remove the dropdown shadow */
.tdf-menu.et_pb_menu .et-menu-nav ul.sub-menu {
    box-shadow: none;
}

/* Add triangle arrow to the dropdown */
.tdf-menu ul.nav > li > ul.sub-menu:before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #FFF48A transparent;
    position: absolute;
    top: -10px;
    left: 30px;
}

/* Move the arrow to the center */
.tdf-menu ul.nav > li > ul.sub-menu:before {
    left: 50%;
    transform: translateX(-50%);
}

/* Center-align the dropdown */
.tdf-menu ul.nav > li > ul.sub-menu {
    transform:translateX(-50%);
    left:50%;
    transition: all .3s ease-in-out;
}

/* Center-align the dropdown text */
.tdf-menu .sub-menu a {
    text-align: center;
}

/* Change the default dropdown animation */
.tdf-menu ul.nav > li > ul.sub-menu {
    transform:translateY(10px);
    transition: all .3s ease-in-out;
}
.tdf-menu ul.nav > li:hover > ul.sub-menu {
    transform:translateY(0);
}

/* Change the default animation for the center-aligned dropdown*/
.tdf-menu ul.nav > li > ul.sub-menu {
    transform:translate(-50%, 10px);
}
.tdf-menu ul.nav > li:hover > ul.sub-menu {
    transform:translate(-50%, 0);
}

/* Change the vertical dropdown offset */
.tdf-menu.et_pb_menu--without-logo .et_pb_menu__menu>nav>ul>li>a {
    padding-bottom: 15px;
}


/*set the defautl background color of the header section*/
.stickyHeader {
	background: transparent;
	-webkit-transition: background-color .4s ease-out;
	-moz-transition: background-color .4s ease-out;
	-o-transition: background-color .4s ease-out;
	transition: background-color .4s ease-out;
}


/*set the background color of the fixed header when scrolling*/
.stickyHeaderFixed {
	background-color: #fff!important;
	-webkit-transition: background-color .4s ease-out;
	-moz-transition: background-color .4s ease-out;
	-o-transition: background-color .4s ease-out;
	transition: background-color .4s ease-out;
	box-shadow: 1px 4px 9px 0px rgba(0, 0, 0, .03);
}
.stickyHeaderFixed a {
	color:#ee655c;
}
/* Modifications pour Mega-Menu */
.et-menu-nav li.mega-menu>ul {
    padding: 30px 20px;
    position: absolute!important;
    width: 30%;
    left: inherit!important;
	border-radius:0 20px;
	box-shadow: 0 0 10px 6px rgba(0,0,0,.15);
}
.et-menu-nav li.mega-menu.mega-menu-parent-2>ul>li {
    width: 100%;
}
.et-menu-nav li.mega-menu>ul>li.first-level:first-child {
    margin-bottom:30px
}
.et-menu-nav li.mega-menu>ul>li>a:first-child {
    color: #000!important;
    /* font-size: 16px!important */
}





/*this sets the height of the image module*/
.image-pleine-hauteur-colonne {
	height: 100%;
}
/*this sets the height of the image container*/

.image-pleine-hauteur-colonne .et_pb_image_wrap {
	height: 100%;
}
/*this sets the height and fit of the actual image*/
.image-pleine-hauteur-colonne img {
	object-fit: cover;
	height: 100%;
}


/*image gallery item aspect ratio landscape 16:6*/
.pa-image-gallery-16-6 .wrap,
.pa-image-gallery-16-6 .grid-item .wrap,
.pa-image-gallery-16-6 .et_portfolio_image,
.pa-image-gallery-16-6 .et_pb_image_wrap,
.pa-image-gallery-16-6 .et_pb_gallery_image   {
  padding-top: 42%;
  display: block;
  position:relative;
  overflow:hidden;
}

/*image gallery item aspect ratio landscape 16:9*/
.pa-image-gallery-16-9 .wrap,
.pa-image-gallery-16-9 .grid-item .wrap,
.pa-image-gallery-16-9 .et_portfolio_image,
.pa-image-gallery-16-9 .et_pb_image_wrap,
.pa-image-gallery-16-9 .et_pb_gallery_image   {
  padding-top: 56.25%;
  display: block;
  position:relative;
  overflow:hidden;
}

/*image gallery item aspect ratio landscape 4:3*/
.pa-image-gallery-4-3 .wrap,
.pa-image-gallery-4-3 .grid-item .wrap,
.pa-image-gallery-4-3 .et_portfolio_image,
.pa-image-gallery-4-3 .et_pb_image_wrap,
.pa-image-gallery-4-3 .et_pb_gallery_image,
.pa-image-gallery-4-3 .entry-featured-image-url  {
  padding-top: 75%;
  display: block;
  overflow:hidden;
  position:relative;
}


/*image gallery item aspect ratio portrait 3:4*/
.pa-image-gallery-3-4 .wrap,
.pa-image-gallery-3-4 .grid-item .wrap,
.pa-image-gallery-3-4 .et_portfolio_image,
.pa-image-gallery-3-4 .et_pb_image_wrap,
.pa-image-gallery-3-4 .et_pb_gallery_image,
.pa-image-gallery-3-4 .entry-featured-image-url {
  padding-top: 133.33%;
  display: block;
  overflow:hidden;
  position:relative;
}

/*image gallery item aspect ratio portrait 3:4*/
.pa-image-gallery-3-5 .wrap,
.pa-image-gallery-3-5 .grid-item .wrap,
.pa-image-gallery-3-5 .et_portfolio_image,
.pa-image-gallery-3-5 .et_pb_image_wrap,
.pa-image-gallery-3-5 .et_pb_gallery_image,
.pa-image-gallery-3-5 .entry-featured-image-url {
  padding-top: 175%;
  display: block;
  overflow:hidden;
  position:relative;
}

/*image gallery item aspect ratio portrait 1:1*/
.pa-image-gallery-1-1 .wrap,
.pa-image-gallery-1-1 .grid-item .wrap,
.pa-image-gallery-1-1 .et_portfolio_image,
.pa-image-gallery-1-1 .et_pb_image_wrap,
.pa-image-gallery-1-1 .et_pb_gallery_image  {
  padding-top: 100%;
  display: block;
  overflow:hidden;
  position:relative;
}

.pa-image-gallery-16-6 .wrap img,
.pa-image-gallery-16-6 .grid-item .wrap img,
.pa-image-gallery-16-6 .et_portfolio_image img,
.pa-image-gallery-16-6 .et_pb_image_wrap img,
.pa-image-gallery-16-6 .et_pb_gallery_item img,
.pa-image-gallery-16-9 .wrap img,
.pa-image-gallery-16-9 .grid-item .wrap img,
.pa-image-gallery-16-9 .et_portfolio_image img,
.pa-image-gallery-16-9 .et_pb_image_wrap img,
.pa-image-gallery-16-9 .et_pb_gallery_item img,
.pa-image-gallery-4-3 .wrap img,
.pa-image-gallery-4-3 .grid-item .wrap img,
.pa-image-gallery-4-3 .et_pb_image_wrap img,
.pa-image-gallery-4-3 .et_pb_gallery_item img,
.pa-image-gallery-4-3 .entry-featured-image-url img,
.pa-image-gallery-3-4 .wrap img,
.pa-image-gallery-3-4 .grid-item .wrap img,
.pa-image-gallery-3-4 .et_pb_image_wrap img,
.pa-image-gallery-3-4 .et_pb_gallery_item img,
.pa-image-gallery-3-4 .entry-featured-image-url img,
.pa-image-gallery-3-5 .grid-item .wrap img,
.pa-image-gallery-3-5 .et_pb_image_wrap img,
.pa-image-gallery-3-5 .et_pb_gallery_item img,
.pa-image-gallery-3-5 .entry-featured-image-url img,
.pa-image-gallery-1-1 .wrap img,
.pa-image-gallery-1-1 .grid-item .wrap img,
.pa-image-gallery-1-1 .et_pb_image_wrap img,
.pa-image-gallery-1-1 .et_pb_gallery_item img {
  position: absolute;
  height: 100%;
  width: 100%!important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
  -webkit-transition: all 0.6s ease;
    transition: all 0.6s ease;
}


.pa-image-gallery-16-9 .grid-item:hover .wrap img,
.pa-image-gallery-4-3 .et_pb_image_wrap:hover img,
.pa-image-gallery-3-4 .et_pb_image_wrap:hover img {
	-webkit-transition: all 0.6s ease;
    transition: all 0.6s ease;
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}


/* Personnalisation module Toggle Divi */
.et_pb_toggle_title:before {
    content: "\4c";
		transition: transform 0.3s;
    transform: rotate(0deg);
}
.et_pb_toggle_open .et_pb_toggle_title:before {
	content: "\4c";
    transform: rotate(135deg);
}
.et_pb_toggle:hover {
	background:transparent!important;
}



.mfp-wrap.mfp-close-btn-in.mfp-auto-cursor.mfp-fade.mfp-ready {
    top: 0!important;
    position: fixed!important
}

.mfp-iframe-holder .mfp-content {
    max-width: 70%
}

.mfp-iframe-scaler button.mfp-close {
    top: -50px
}

.mfp-iframe-holder .mfp-close,.mfp-image-holder .mfp-close,.mfp-wrap .mfp-close:active {
    top: -50px!important
}

.video_popup_lightbox .mfp-iframe-holder .mfp-close {
    top: -50px
}

.video_popup {
    position: relative;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1)
}

.video_popup a:after {
    content: 'E';
    cursor: pointer;
    font-family: ETmodules;
    position: absolute;
    padding: 65px 37px;
    left: calc(50% - 64.5px);
    top: calc(50% - 65px);
    font-size: 56.5px;
    z-index: 20;
    background-color: #fff48a;
    border-radius: 50%;
    text-transform: uppercase;
    color: #0a2a3b;
    border: solid 5px transparent;
    opacity: 1;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out
}

.video_popup.no_icon:after {
    display: none!important
}

.video_popup:hover a:after {
    opacity: 1;
    padding: 75px 47px;
    left: calc(50% - 76.5px);
    top: calc(50% - 77px);
    font-size: 60.5px;
    background-color: transparent;
    border-color: #fff48a;
    color: #fff48a;
}

@media all and (max-width: 980px) {
    .video_popup a:after {
        top:calc(50% - 32.5px);
        left: calc(50% - 33px);
        padding: 33px 17px;
        font-size: 32px
    }

    .video_popup:hover a:after {
        opacity: 1;
        padding: 40px 22px;
        left: calc(50% - 43px);
        top: calc(50% - 42.5px);
        font-size: 42px
    }
}



