/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* Balise p vides créées par les shortcodes */
p:empty {
  display: none;
}
/* PAGE ETUDE DE CAS */
.img-elab p {
  margin: 0;
}
.img-elab img {
  object-fit: cover;
  height: 230px;
  width: 230px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-right: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  border-left: 1px solid #eaeaea;
}
.arrow-case {
  cursor: pointer;
  background: linear-gradient(90deg, #1e64ff -0.06%, #0094ff 100.06%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.5em;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: #ffffff;
  text-decoration: none;
}
.header-case-page p {
  margin: 0;
}
.etapes-box{
  height: 278px;
}
/* Loop etudes de cas */
.etude-cas-encart {
  box-shadow: 0px 7px 20px 0px #0000001a !important;
}
/* Filtres Etude de cas */
.etude-de-cas-taxonomies .domaines {
  margin-bottom: 20px;
}
.etude-de-cas-taxonomies .domaines,
.etude-de-cas-taxonomies .technos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.etude-de-cas-taxonomies .domaines a,
.etude-de-cas-taxonomies .technos a {
  padding: 5px 20px 5px 20px;
  border-radius: 30px;
  border: 1px solid #ffffff;
  /*font-family: Inter;*/
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
  color: #ffffff;
  text-transform: uppercase;
  text-decoration: none;
}
.etude-de-cas-taxonomies .domaines .active,
.etude-de-cas-taxonomies .domaines a:hover {
  background-color: var(--vert-citron);
  color: #131c24;
}
.etude-de-cas-taxonomies .technos .active,
.etude-de-cas-taxonomies .technos a:hover {
  background-color: var(--accent);
  color: #ffffff;
}
/* Lien voir la fiche */
.view-etude-modal {
  font-family: Exo 2;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #0066ff;
  cursor: pointer;
  margin: 0;
}
/* Modal */
#modal_etude_cas {
  display: none; /* Masqué par défaut */
  position: fixed;
  z-index: 150; /* Au-dessus de tout le contenu */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Permet de défiler si le contenu est trop grand */
  background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
  animation: fadeIn 0.3s ease-in-out; /* Animation d'apparition */
}
/* Contenu du modal */
#modal_etude_cas #modal_content {
  background-color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 60px;
  padding: 20px;
  border: 1px solid #888;
  animation: slideIn 0.3s ease-in-out;
}
/* Fermer */
#modal_etude_cas #close_modal {
  cursor: pointer;
}
/* Flèches */
#prev_etude,
#next_etude {
  cursor: pointer;
  background: linear-gradient(90deg, #1e64ff -0.06%, #0094ff 100.06%);
}
.link-modal-slider {
  background: linear-gradient(90deg, #1e64ff -0.06%, #0094ff 100.06%);
  padding: 16px 20px;
  margin: right;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px !important;
}
/* Solutions Répéteur */
.solution {
  display: flex;
  gap: 20px;
}
.img-sol {
  width: 48px;
  height: 48px;
  object-fit: cover;
}
.titre-sol {
  margin-bottom: 5px;
  font-size: 24px;
  font-weight: 600;
  line-height: 29px;
  color: #0e121b;
  letter-spacing: 1px;
}
.desc-sol {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 1px;
  color: #535353;
}
/* Chargement Modal */
#loading_overlay {
  position: fixed; /* Position fixe pour que l'overlay couvre tout l'écran */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Couleur grise semi-transparente */
  z-index: 9999; /* Place l'overlay au-dessus de tout */
  display: flex; /* Utilisation de Flexbox */
  justify-content: center; /* Centre horizontalement */
  align-items: center; /* Centre verticalement */
}
#loading_overlay img {
  animation: rotate 2s linear infinite; /* Applique une rotation continue */
  max-width: 100px; /* Ajuste la taille de l'image si nécessaire */
  height: auto; /* Garde les proportions */
}
/* Rotation chargement */
@keyframes rotate {
  from {
    transform: rotate(0deg); /* Départ sans rotation */
  }
  to {
    transform: rotate(720deg); /* Effectue une rotation complète */
  }
}
/* SLIDER ETUDE DE CAS LIGHT SUR TYPE POST */
.slider-light-container li {
  margin-bottom: 0;
  box-shadow: 0px 7px 20px 0px #0000001a !important;
}
/* RESPONSIVE */
@media only screen and (max-width: 768px) {
  #modal_etude_cas #modal_content {
    top: 50px; /* Centrage vertical */
    transform: none;
    margin: 0 10px; /* Centrage horizontal */
  }
  /* IMAGES SOLUTIONS DANS MODAL (AJOUT DU !IMPORTANT) */
  /* .gb-container-9a76d5d0 {
    max-width: 340px!important;
  } */
  .img-elab img {
    object-fit: cover;
    height: 230px;
    width: 290px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-right: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    border-left: 1px solid #eaeaea;
  }

  .etapes-box {
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
    }
  }
}
