/*
Theme Name: IPSUMEDIA Divi Child Theme
Description: Theme enfant de Divi par IPSUMEDIA
Author: Alexandre - Raphaël
Author URI: https://ipsumedia.com
Template: Divi
Version: 1.1.2
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
	1. 	Annuaire
	2. 	HMC
	3. MENU SCROLLABLE HORIZONTAL
/* -------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------- */
/*	1. Annuaire - Plugin Business Directory
/* -------------------------------------------------------------------------- */
.wpbdp-grid {
  grid-gap: 7px min(24px, 4%);
}
.wpbdp-categories {
	display: flex;
	flex-direction: column;
}

.wpbdp-listing-excerpt {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #9F1C1B;
}

.wpbdp-listing-excerpt {
  padding: 0px;
}

.wpbdp-listing .listing-title {
  border-bottom: none;
}

.wpbdp-listing .listing-title a {
  font-size: 16px !important;
}

.wpbdp-listing .listing-details .field-value {
  margin-bottom: 0px;
}

.wpbdp-listing .wpbdp-field {
  margin: 0;
}

div .value a {
  color: #696984 !important;
}


/* -------------------------------------------------------------------------- */
/*	2. HMC
/* -------------------------------------------------------------------------- */

/* Définition de la transition */
#pmr,
.tribe-events-l-container {
  transition: transform 0.5s ease-out;
  /* On peut aussi utiliser ease-in-out pour un effet plus doux */
}

/* Classe pour l'état déplacé */
.slide-down {
  transform: translateY(50vh);
}

#wp-bottom-menu,
.raphQR,
#bouton-pmr,
#bouton-retour {
  display: none !important;
}

.et_pb_search_0_tb_body input.et_pb_searchsubmit,
.et_pb_search_0 input.et_pb_searchsubmit {
  color: #FFFFFF !important;
  text-indent: -9999px;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns%3D"http%3A//www.w3.org/2000/svg" viewBox%3D"0 0 64 64"%3E%3Cpath fill%3D"%23ffffff" d%3D"M55%2C51.6l-9.9-9.8c1.5-2.4%2C2.3-5.2%2C2.3-8.1c0-7.7-6.3-14-14-14s-14%2C6.3-14%2C14c0%2C7.7%2C6.3%2C14%2C14%2C14c2.9%2C0%2C5.7-0.8%2C8.1-2.3l9.9%2C9.9c0.6%2C0.6%2C1.4%2C0.9%2C2.2%2C0.9s1.6-0.3%2C2.2-0.9C55.6%2C54.1%2C55.6%2C52.8%2C55%2C51.6zM33.4%2C42.7c-5.1%2C0-9.3-4.1-9.3-9.3s4.1-9.3%2C9.3-9.3c5.1%2C0%2C9.3%2C4.1%2C9.3%2C9.3S38.5%2C42.7%2C33.4%2C42.7z"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position-x: -5px;
  background-position-y: -5px;
  width: 50px;
  height: 50px;
  background-color: #9F1C1B !important;
  border-color: #9F1C1B !important;
}

ul.et_pb_tabs_controls {
  background-color: rgba(0, 0, 0, 0);
}

ul.et_pb_tabs_controls:after {
  border-top: 1px solid #d9d9d9;
  display: none;
}

.et_pb_tabs_controls li {
  display: flex;
  justify-content: center;
  border-radius: 20px;
  background-color: #0053bd;
}

@media only screen and (max-width: 981px) {
  .et_pb_salvattore_content[data-columns]::before {
    content: "1 .column.size-1of1" !important;
  }

  .et_pb_post {
    margin: 0 auto;
    margin-bottom: 8px !important;
  }

  .et_pb_tabs_controls li a {
    font-size: 16px;
    padding: 4px;
    padding: 4px 4px;
  }

  .et_pb_tabs_0.et_pb_tabs .et_pb_tabs_controls li {
    margin-bottom: 3px;
  }

  .blog-modifie .et_pb_salvattore_content[data-columns]::before {
    content: "2 .column.size-1of2" !important;
  }

  .et_pb_salvattore_content {
    display: flex;
    justify-content: center;
  }
}

@media only screen and (min-width: 1079px) and (max-width: 1082px) {
  html {
    touch-action: pan-y !important;
  }

  .pdfjs-viewer {
    height: 1470px !important;
  }

  .raphQR,
  #bouton-retour,
  #bouton-pmr {
    display: block !important;
  }

  .pas-borne,
  #webpushr-prompt-wrapper,
  #pwaforwp-add-to-home-click,
  #_prompt_overlay,
  #onesignal-slidedown-container,
  .et_pb_files_container {
    display: none !important;
  }

  /* Onglets */

  /* Désactiver les liens des modules onglets */
  .et_pb_toggle a,
  .lien-interdit,
  .et_pb_blurb_container a,
  figcaption a,
  #logo-ipsumedia,
  .et_pb_tab_content a:not(.et_pb_post a, #ect-events-list-content a, .et_pb_button, .rttpg-block-postgrid a, .et_pb_image a, .wplightbox, .et_pb_button a) {
    pointer-events: none;
    cursor: default;
  }
}

/* -------------------------------------------------------------------------- */
/*	3. MENU SCROLLABLE HORIZONTAL
/* -------------------------------------------------------------------------- */

@media (max-width: 999px) {
  #menu-scrollable .et_pb_menu__menu {
    display: block !important;
    overflow-x: hidden;
  }

  #menu-scrollable nav.et-menu-nav.fullwidth-menu-nav::-webkit-scrollbar {}

  #menu-scrollable .mobile_menu_bar {
    display: none;
  }

  #menu-scrollable nav {
    display: flex;
    overflow-x: scroll;
  }

  #menu-scrollable .et_pb_menu__menu>nav>ul {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
  }

  #menu-scrollable .et_pb_row {
    width: 100%;
    padding-left: 20px !important
  }

  .et-menu-nav::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #ffffff;
  }

  .et-menu-nav::-webkit-scrollbar {
    padding-right: 5px;
    padding-left: 5px;
    height: 4px;
    background-color: transparent;
  }

  .et-menu-nav::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #7A985C;
  }
}