/* 
Theme Name:     Kadence-child
Description:    C'est un thème qui hérite du thème Kadence.
Author:         Alawek & Adam
Template:       kadence
Version:        0.1.0 */


/* Cibler les éléments ayant .kadence-column1566 dans une div parent avec "id1566_af0e1c-42" */
.wp-block-kadence-column[class*="prix"] {
  /* Styles spécifiques */
  position: relative;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, z-index 0.3s linear;
}

/* Effet au hover pour .kadence-column1566 */
.wp-block-kadence-column[class*="prix"]:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 2;
  filter: none;
}






/* ____animation element__________________________________________________________________________________________________________________________________________________________________________________ */
.animate-on-scroll {
  /* Initialement invisible avec une opacité de 0 */
  opacity: 0;
  /* Translation initiale de 50 pixels vers le bas */
  transform: translateX(50px);
  /* Animation pour la transparence et la translation */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.animate-on-scroll.is-visible {
  /* Devenir visible avec une opacité de 1 */
  opacity: 1;
  /* Translation initiale de 0 pixels */
  transform: translateX(0);
}

.animate-on-scrolll {
  /* Initialement invisible avec une opacité de 0 */
  opacity: 0;
  /* Translation initiale de 50 pixels vers le bas */
  transform: translateX(-50px);
  /* Animation pour la transparence et la translation */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.animate-on-scrolll.is-visible {
  /* Devenir visible avec une opacité de 1 */
  opacity: 1;
  /* Translation initiale de 0 pixels */
  transform: translateX(0);
}

/* ____DIV FORMULAIRE QUESTION__________________________________________________________________________________________________________________________________________________________________________________ */


#contact-toggle {
  position: fixed;
  z-index: 100;
  bottom: 0;
  right: 2%;
  width: 20%;
  background-color: #FFDE59;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 15px 15px 0px 0px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease;
}

.contact-header p {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  color: #342F4B;
}


#contact-form {
  display: none;
  /* Masqué au départ */



}

#contact-form form {
  display: flex;
  flex-direction: column;
}

#contact-form input,
#contact-form textarea {
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;

}

#contact-form button {
  padding: 10px;
  background-color: #342F4B;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#contact-toggle.open {
  bottom: 0;
  /* Se déplace vers le haut */
}

/*______________MODAL________________*/

/* Style de la modale */
#dynamic-modal {
  width: 100%;
  /* Prend toute la largeur de l'écran */
  height: 100%;
  /* Prend toute la hauteur de l'écran */
  display: flex;
  justify-content: center;

  background: rgba(0, 0, 0, 0.2);

  padding: 20px;
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  opacity: 0;
  /* Rendre invisible */
  visibility: hidden;
  /* Retirer visuellement de la page */
  transition: opacity 0.3s ease, visibility 0.3s ease;

}



.modal-content {
  box-sizing: content-box;
  width: 80%;
  max-height: 75%;
  margin-top: 8%;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: rgba(6, 0, 20, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 6;
}

#dynamic-modal.active {
  opacity: 1;
  /* Rendre visible */
  visibility: visible;
  /* Rendre visuellement présent */
}

.close-btn {
  display: none;
}

*[class*="info-service-"] {
  cursor: pointer;
}

/*______Spinner/loader_______________*/
/* Style du spinner */
/* Style pour la modale pendant le chargement */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Pour que le spinner soit au-dessus de tout autre contenu */
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}





/* _____RESPONSIVE STYLES_____ */

@media screen and (max-width: 768px) {
  #contact-toggle {
    width: 60%;
    /* Augmente la largeur sur les petits écrans */
    right: 10%;
    bottom: 0;
    /* Maintient la position en bas */
  }

  #contact-form {
    width: 100%;
    /* Le formulaire occupe toute la largeur disponible */
    padding: 15px;
  }

  #contact-form input,
  #contact-form textarea {
    padding: 10px;
    /* Augmente le padding pour plus de confort sur les petits écrans */
  }

  #contact-toggle.open {
    bottom: 0%;
    /* Ajuste la position lorsque le formulaire est ouvert */

  }

  .contact-header p {
    font-size: 16px;
    /* Réduit légèrement la taille du texte pour les petits écrans */
  }
}

@media screen and (max-width: 480px) {
  #contact-toggle {
    width: 80%;
    /* Augmente encore la largeur sur les écrans très petits */
    right: 10%;
    bottom: 0;
    /* Garder le bas de la page */
  }

  #contact-form {
    width: 100%;
    padding: 10px;
    /* Réduit légèrement le padding sur les très petits écrans */
  }

  #contact-form input,
  #contact-form textarea {
    padding: 12px;
    /* Augmente légèrement le padding */
    font-size: 14px;
    /* Réduit la taille des polices pour s'adapter aux petits écrans */
  }

  #contact-toggle.open {
    bottom: 15%;
    border-radius: 15px;

    /* Plus d'espace entre la div et le bas de la page */
  }

  .contact-header p {
    font-size: 14px;
    /* Réduit la taille du texte de l'en-tête */
  }
}

/* __Boutton call to action__________________________________________________________________________ */

.Action {
  display: inline-block;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background: linear-gradient(45deg, #007BFF, #00D4FF);
  /* Dégradé bleu */
  border: none;
  border-radius: 12px;
  /* Coins arrondis */
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}



/* Taille spécifique pour les écrans d'ordinateur */
@media screen and (min-width: 1024px) {
  .Action {
    width: 150px;
    min-height: 50px;
    font-size: 18px;
    padding: 12px 20px;
  }
}



/* __Boutton call to action__________________________________________________________________________ */

/* _____bug/menu______________________________________________________________________________________________ */
.dropdown-nav-special-toggle {
  display: none;
}

/* ______bug/menu_____________________________________________________________________________________________ */

/* ____Calendly___________________________________________________________________________________________________ */
.calendly-badge-widget,
.calendly-badge-widget *,
.calendly-inline-widget,
.calendly-inline-widget *,
.calendly-overlay,
.calendly-overlay * {
  font-size: 16px;
  line-height: 1.2em
}

.calendly-badge-widget iframe,
.calendly-inline-widget iframe,
.calendly-overlay iframe {
  display: inline;
  height: 100%;
  width: 100%
}

.calendly-popup-content {
  position: relative
}

.calendly-popup-content.calendly-mobile {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto
}

.calendly-overlay {
  background-color: #a5a5a5;
  background-color: rgba(31, 31, 31, .4);
  bottom: 0;
  left: 0;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999
}

.calendly-overlay .calendly-close-overlay {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0
}

.calendly-overlay .calendly-popup {
  box-sizing: border-box;
  height: 90%;
  left: 50%;
  max-height: 700px !important;
  max-width: 1000px;
  min-width: 900px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  width: 80%
}

@media screen and (max-width:450px) {

  .calendly-badge-widget {
    display: none;
    position: fixed;
    top: 10px;
    /* Position initiale en haut */
    left: 5%;
    width: 90%;
    background: rgba(61, 61, 61, 0.78);
    color: white;
    padding: 10px 20px;
    border-radius: 0px 0px 25px 25px !important; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
    /* Animation plus fluide */
  }

  .calendly-badge-widget.visible {
    display: flex;
    opacity: 1;
    top: 148px; 
    /* Position ajustée pour le mobile */
  }

  .calendly-badge-widget.hidden {
    opacity: 0;
    top: -30px;
    /* Cache complètement et reste fixé en haut */
    pointer-events: none;
    /* Empêche les interactions une fois caché */
  }
}



@media (max-width:975px) {
  .calendly-overlay .calendly-popup {
    bottom: 0;
    height: auto;
    left: 0;
    max-height: none;
    min-width: 0;
    position: fixed;
    right: 0;
    top: 50px;
    transform: none;
    width: 100%
  }
}

.calendly-overlay .calendly-popup .calendly-popup-content {
  height: 100%
}

.calendly-overlay .calendly-popup-close {
  background: url(/assets/external/close-icon.svg) no-repeat;
  background-size: contain;
  color: #fff;
  cursor: pointer;
  height: 19px;
  position: absolute;
  right: 25px;
  top: 25px;
  width: 19px
}

@media (max-width:975px) {
  .calendly-overlay .calendly-popup-close {
    right: 15px;
    top: 15px
  }
}

.calendly-badge-widget {
  position: fixed;
  z-index: 9998
}

.calendly-badge-widget .calendly-badge-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 5px;
  border-radius: 50px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
  color: #fff;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 45px;
  opacity: 1;
  /* Garde le texte et le contenu à 100% */
  position: relative;
  z-index: 1;
  /* Assure que le texte reste bien visible */




}

.calendly-badge-content {
  background-color: #FFDE59;
}



.calendly-badge-widget .calendly-badge-content.calendly-white {
  color: #666a73
}

.calendly-badge-widget .calendly-badge-content span {
  margin-top: 2px;
  /* Ajuste selon besoin */
  font-size: 14px;
}

.calendly-spinner {
  left: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1
}

.calendly-spinner>div {
  animation: calendly-bouncedelay 1.4s ease-in-out infinite;
  animation-fill-mode: both;
  background-color: #e1e1e1;
  border-radius: 50%;
  display: inline-block;
  height: 18px;
  vertical-align: middle;
  width: 18px
}

.calendly-spinner .calendly-bounce1 {
  animation-delay: -.32s
}

.calendly-spinner .calendly-bounce2 {
  animation-delay: -.16s
}

@keyframes calendly-bouncedelay {

  0%,
  80%,
  to {
    transform: scale(0)
  }

  40% {
    transform: scale(1)
  }
}

.calendly-badge-widget {
  position: fixed;
  top: 24.7%;
  left: 5%;
  width: 90%;
  background: rgba(61, 61, 61, 0.78);
  /* Couleur de fond avec opacité */
  color: white;
  padding: 10px 20px;
  border-radius: 0px 0px 25px 25px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* Aligne le contenu en haut */
  text-align: center;
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;

}


.calendly-badge-widget.visible {
  opacity: 1;
  transform: translateY(0);
}

.calendly-badge-widget.hidden {
  opacity: 0;
  transform: translateY(-10px);
  /* Optionnel : donne un léger effet de disparition vers le haut */
  pointer-events: none;
  /* Empêche les interactions une fois caché */
}

/* ____Calendly___________________________________________________________________________________________________ */

/* SLIDE */
/* Conteneur du slider */
.slider-container {
  width: 100%;
  height: 70vh; /* Hauteur de la fenêtre du navigateur */
  overflow: visible;
  position: relative;
  display: block;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  margin-left: -2%;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 75%;
  padding: 20px;
  margin-right: 2%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.5s ease;
  color: #342F4B;
  border-radius: 30px;
  border: black solid 1px;
}

.slide h2 {
  font-size: 36px;
  margin: 10px 0;
  color: #342F4B;
}

.slide h3 {
  font-size: 28px;
  margin: 10px 0;
  color: #342F4B;
}

.slide p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.slide .btn {
  padding: 10px 20px;
  background-color: #FFDE59;
  color: #342F4B;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.slide .btn:hover {
  background-color: #342F4B;
}

.active {
  background-color: #342F4B;
  color: white;
}
.active h3{
  color: white;
}
.active h2{
  color: white;
}

.slide:not(.active) {
  opacity: 0.6;
}

/* Styles de l'animation de transition */
.slider-container {
  display: flex;
  justify-content: center;
  align-items: center;
}




/* SLIDE */