/*
Theme Name: atelierflorus
Template: Divi
Description: Theme atelierflorus
Author: Philippe
Author URI: https://www.cornibiscus.com
*/


/*==== add some spacing around menu items ====*/

.et_pb_menu ul>li>a {
   padding: 14px 20px!important;
}


/*==== elimitate opacitcy change on hover ====*/

.et_pb_menu ul>li>a:hover {
   opacity: 1!important;
}


/*==== Start Underline Fade ====*/

.pa-underline-fade nav ul li a {
   position: relative;
}

.pa-underline-fade nav ul li.current-menu-item a::before{
    opacity: 1;
}


.pa-underline-fade nav ul li a::before {
   content: "";
   position: absolute;
   left: 0;
   bottom: 16px;
   height: 2px;
   width: 100%;
   background-color: rgba(0,0,0,.6);
   z-index: 2;
   opacity: 0;
   display: block;
   -webkit-transition: .3s;
   -o-transition: .3s;
   transition: .3s;
   -webkit-transition-timing-function: cubic-bezier(.58, .3, .005, 1);
   -o-transition-timing-function: cubic-bezier(.58, .3, .005, 1);
   transition-timing-function: cubic-bezier(.58, .3, .005, 1);
}

.pa-underline-fade nav ul li a:hover::before {
   opacity: 1;
}



@media only screen and ( min-width: 981px ) {
.et_pb_menu__logo-wrap {
        margin-right: 50px;
 }
}



/*image gallery item aspect ratio square 1:1 pour rendre les images carrées sur la galerie de photos*/

.pa-image-gallery-1-1 .et_pb_gallery_image {
  padding-top: 100%;
  display: block;
}

.pa-image-gallery-1-1 .et_pb_gallery_item img {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}

/*custom menu mobile*/


/* Fix overlapping for the Divi Theme Builder */

.et_mobile_nav_menu {
    margin-left:50px !important;
}

/* Fix overlapping for the Divi Customizer */

#et_mobile_nav_menu {
    margin-left:25px;
}

/* Make mobile search field cover MENU text - change #fff if needed */

@media (max-width: 980px) {
#main-header .et-search-field {
}
}

/* X icon in expanded mobile menu */

.mobile_nav.opened .mobile_menu_bar:before {
content: '\4d';
}

/* Remove the top line in the mobile menu*/

.et_mobile_menu {
border-top:0;
}

/* Center-align moble menu items */

.et_mobile_menu li {
text-align:center !important;
}
  
.et_mobile_menu li li, .et_mobile_menu li ul {
padding-left:0 !important;
}

/* Make mobile menu fullwidth */

.et_mobile_menu {
min-width: 100vw;
margin-left: -10vw;
}

/* Make the mobile menu full height */

.et_mobile_menu {
min-height:100vh !important;
min-height: -webkit-fill-available;
padding-top:50px !important;
}

html {
height: -webkit-fill-available;
}

/* Remove the animation to avoid delay */

.mobile_nav.opened .et_mobile_menu {
display:block !important;
}



/* X icon in expanded mobile menu */
.mobile_nav.opened .mobile_menu_bar:before {
content: '\4d';
}

/* Remove the top line in the mobile menu*/
.et_mobile_menu {
border-top:0;
}

/* Center-align moble menu items */

.et_mobile_menu li {
text-align:center !important;
}
  
.et_mobile_menu li li, .et_mobile_menu li ul {
padding-left:0 !important;
}

/* Make mobile menu fullwidth */
.et_mobile_menu {
min-width: 100vw;
margin-left: -10vw;
}

/* Make the mobile menu full height */

.et_mobile_menu {
min-height:100vh !important;
min-height: -webkit-fill-available;
padding-top:50px !important;
}

html {
height: -webkit-fill-available;
}

/* Remove the animation to avoid delay */

.mobile_nav.opened .et_mobile_menu {
display:block !important;
}
