/*
Theme Name: Hello Elementor Child - ATF Lapé Médical
Theme URI: https://github.com/Maxime-Potier/lape
Description: Thème enfant Hello Elementor pour ATF Lapé Médical - Fabricant français de dispositifs médicaux orthopédiques
Author: Maxime Potier
Author URI: https://github.com/Maxime-Potier
Template: hello-elementor
Version: 1.4.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready, medical, multilingual
*/

/* Add your custom styles here */

input::placeholder,
textarea::placeholder {
  padding-bottom: 0px !important;
  color: #58585a !important;
  font-family: "Montserrat", Sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 23px !important;
  opacity: 1 !important;
}

.lm-language-switcher {
  position: relative;
  display: flex;
  gap: 8px;
}

.custom-select {
  position: relative;
  cursor: pointer;
  display: flex;
}

.selected-option {
  display: flex;
  align-items: center;
  user-select: none;
  font-family: "Montserrat", Sans-serif;

  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 15px;
  word-spacing: 0px;
  color: rgb(84, 89, 95);
}

.selected-option::after {
  content: "▼";
  margin-left: 10px;
  font-size: 12px;
  color: #666;
}

/* .options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
} */

/* .options li {
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  transition: background-color 0.3s;
} */

/* .options li:hover {
  background-color: #f0f0f0;
} */

/* .options li.active {
  background-color: #e0e0e0;
} */

.lm-lang-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
}

/* Transition fluide pour l'affichage des options */
.options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  z-index: 10;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.options li {
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.options li:hover {
  background-color: #f0f0f0;
}

.options li.active {
  background-color: #e0e0e0;
}

/* Afficher les options lorsque la liste est ouverte */
.lm-language-switcher.open .options {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* Language Switcher - Tablet & Mobile */
@media (max-width: 1024px) {
  /* Fix: Disable pointer events on hidden mobile nav dropdown */
  .elementor-nav-menu--dropdown {
    pointer-events: none !important;
  }

  .elementor-nav-menu--dropdown.elementor-nav-menu--dropdown-mobile--active,
  .elementor-nav-menu--dropdown[aria-hidden="false"] {
    pointer-events: auto !important;
  }

  .lm-language-switcher {
    position: relative;
    cursor: pointer;
  }

  .lm-language-switcher .custom-select {
    position: static;
    pointer-events: none;
  }

  .lm-language-switcher .lm-lang-icon,
  .lm-language-switcher .selected-option {
    pointer-events: auto;
  }

  /* Hide the selected language text */
  .lm-language-switcher .selected-option {
    font-size: 0;
    line-height: 0;
  }

  /* Keep the arrow next to the icon */
  .lm-language-switcher .selected-option::after {
    margin-left: 2px;
    font-size: 10px;
  }

  /* Make only the icon clickable */
  .lm-language-switcher .lm-lang-icon {
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin-right: 0;
  }

  /* Position dropdown relative to the icon */
  .lm-language-switcher .options {
    position: absolute;
    top: 100%;
    /*left: 50%;*/
    left: 0;
    transform: translateX(-50%);
    min-width: 120px;
    width: auto;
    margin-top: 8px;
    pointer-events: auto;
  }

  /* Show options when open */
  .lm-language-switcher.open .options {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .lm-language-switcher .options li {
    text-align: center;
    white-space: nowrap;
  }
}

.to-top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  cursor: pointer;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.to-top-btn.visible {
  display: block;
  opacity: 1;
}

/* formulaire partenaire */
textarea[name="field_ffacc20"] {
  transition: all 0.3s ease;
}

/* Timeline */

/*
.xpro-horizontal-timeline-content-inner {
  background: #fff !important;
  position: relative !important;
  border: 1px solid #c7c7c7 !important;
}
.xpro-horizontal-timeline-content-inner::after,
.xpro-horizontal-timeline-content-inner::before {
  position: absolute !important;
  bottom: 100% !important;
  left: 50% !important;
  border: solid transparent !important;
  content: " " !important;
  height: 0 !important;
  width: 0 !important;
}
.xpro-horizontal-timeline-content-inner::after {
  border-bottom-color: #fff !important;
  border-width: 11px !important;
  margin-left: -11px !important;
}
.xpro-horizontal-timeline-content-inner::before {
  border-bottom-color: #c7c7c7 !important;
  border-width: 11.5px !important;
  margin-left: -12px !important;
}
*/
/*
.xpro-horizontal-timeline-content-inner {
  background-image: url(assets/images/timeline-box.svg) !important;
  background-position: 50% 38% !important;
  background-repeat: no-repeat !important;
  background-size: 269% !important;
}
*/

.xpro-horizontal-timeline-content-inner {
  position: relative;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #46b6b4;
  max-width: 100%;
  width: 100%;
  transition: background-color 0.3s ease-in-out;
}

/* Pointe uniquement avec bordure */
.xpro-horizontal-timeline-content-inner::before {
  content: "";
  position: absolute;
  top: -6px; /* hauteur de la pointe */
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff; /* fond de la pointe = fond du bloc */
  border-left: 1px solid #46b6b4; /* bordure gauche */
  border-top: 1px solid #46b6b4; /* bordure haut */
}

/* Têtes fémorales */

/* Liste principale */
.main-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #4a4a4a;
  gap: 10px !important;
}

.main-list > li {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.5;
}

/* Puces personnalisées */
.main-list > li.bullet::before {
  content: "•";
  display: inline-block;
  width: 25px;
  margin-left: -25px;
  color: #59595a;
  font-size: 20px;
  font-weight: 900;
}

.main-list > li.bullet {
  padding-left: 25px;
}

/* Logos avec ligne de soulignement */
.logo-section {
  margin: 20px 0;
  position: relative;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

.logo-underline {
  height: 1px;
  background-color: #46b6b4;
  width: 100%;
  margin-top: 5px;
}

.logo-underline.red {
  background-color: #ab121d;
}

/* Sections de versions */
.version-title {
  font-size: 18px;
  margin: 15px 0 10px 0;
  color: #4a4a4a;
}

.version-title.with-bullet::before {
  content: "•";
  display: inline-block;
  width: 25px;
  margin-left: -25px;
  color: #46b6b4;
  font-size: 20px;
  font-weight: 900;
}

.version-title.with-bullet {
  padding-left: 25px;
}

.version-title.with-bullet-red::before {
  content: "•";
  display: inline-block;
  width: 25px;
  margin-left: -25px;
  color: #ab121d;
  font-size: 20px;
  font-weight: 900;
}

.version-title.with-bullet-red {
  padding-left: 25px;
}

/* Sous-liste avec tirets */
.dash-list {
  /*
  list-style: none;
  padding-left: 24px;
  margin: 0;
  gap: 0 !important;*/
  margin: 0;
  padding: 0 0 0 24px !important;

  color: #59595a !important;
  list-style-type: "- ";
  gap: 10px !important;
  display: flex;
  flex-direction: column;
}

.lm-list {
  margin: 0;
  padding: 0 0 0 24px !important;
  gap: 10px !important;
  color: #59595a !important;
}

body .elementor .elementor-element ul.dash-sub-list {
  list-style-type: "- ";
  padding: 0 0 0 10px !important;
  gap: 0 !important;
}

body .elementor .elementor-element ul.circle-list {
  list-style-type: circle;
  padding: 0 0 0 10px !important;
  gap: 0 !important;
  margin-top: 10px !important;
}

.none-sub-list {
  list-style-type: "";
  padding-left: 10px !important;
  gap: 0 !important;
}

.bullet-sub-list {
  padding-left: 10px !important;
  gap: 0 !important;
}

/* Ajustement global pour toutes les ancres */
/* Solution moderne avec scroll-padding */
html {
  scroll-padding-top: 142px;
}

/* Fallback pour les ancres Elementor */
.elementor-widget-menu-anchor {
  margin-top: -142px !important;
  padding-top: 142px !important;
  display: block;
}

/* Pour tous les éléments avec ID utilisés comme ancres */
[id]:target::before {
  content: "";
  display: block;
  height: 142px;
  margin-top: -142px;
  visibility: hidden;
  pointer-events: none;
}

html body .e-con-inner .elementor-element-b69e297 {
  display: block !important;
  position: absolute !important;
  right: 120px !important;
  bottom: 164px !important;
}

.bubble-bg {
  background-image: url("assets/images/lm-mobile-bulle.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%; /* remplit largeur + hauteur */
  /*padding: 24px 28px;*/
}

.bubble-9slice {
  border-style: solid;
  border-width: 30px; /* à ajuster selon l'épaisseur de ta bulle */
  border-image-source: url("assets/images/lm-mobile-bulle.svg");
  border-image-slice: 30 fill; /* même valeur que border-width */
  border-image-repeat: stretch;
  padding: 0 0 40px;
}
