.oim_grid_projects {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: flex-start;
}

.oim_project_item {
  aspect-ratio: 1 / 1;
  width: calc(25% - 20px);
  background-size: cover;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.bg-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  transition: 0.4s;
  opacity: 0;
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.15);
}

.oim_project_item:hover > .bg-blur {
  opacity: 1;
}

.overflow-hidden {
  overflow: hidden;
}

@media not all and (min-resolution: 0.001dpcm) {
  .overflow-hidden {
    position: fixed;
    width: 100%;
  }
}

/* Styles pour masquer les modales par défaut */
.oim_project_modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999999999;
  cursor: auto;
}

.modale_content_corp_desc {
  line-height: 24px;
  font-size: 0.9em;
  margin-bottom: 45px;
  flex: 1;
}

.title-bold {
  font-family: "Poppins";
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: normal;
  margin-top: 30px;
  display: block;
}

.modal_secteur_associe {
  background-color: #03fbcd;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8125em;
  line-height: 19.5px;
  height: max-content;
  padding: 5px 15px;
  text-transform: uppercase;
  font-family: "Poppins";
  font-weight: 700;
  letter-spacing: 0.05rem;
  margin-top: 20px;
}

.oim_project_modal_content {
  background-color: #fff;
  border-radius: 15px;
  max-width: 1000px;
  width: 95%;
  margin: 0 auto;
  position: relative;
  overflow: auto;
  height: 65vh;
  display: flex;
  flex-direction: column;
  margin-top: 60px;
}

@media screen and (max-width: 1300px) {
  .oim_project_modal_content {
    margin-top: 40px;
    height: 80vh;
  }
}

.close {
  position: absolute;
  top: 20px;
  right: 50px;
  cursor: pointer;
  font-size: 3em;
  background-image: url("/wp-content/uploads/2023/11/close.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: transparent;
  z-index: 1000;
}

/* Styles supplémentaires pour les modales (ajustez selon vos besoins) */

.oim_project_item_name {
  font-family: "Poppins";
  color: white;
  font-weight: 800;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
  font-size: 1.8rem;
  text-align: center;
  padding: 20px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  letter-spacing: 0.05rem;
  z-index: 1;
  position: relative;
}

.oim_project_btn {
  position: absolute;
  width: 100%;
  text-align: center;
  justify-content: center !important;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background-color: transparent;
  color: var(--color_secondary);
  padding: 0 0 50px 0 !important;
  transform: translate(0, 10px);
  opacity: 0;
  transition: 0.3s;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}

@media screen and (max-width: 480px) {
  .oim_project_btn {
    font-size: 0.8rem;
    padding: 0 0 30px 0 !important;
  }
}

.oim_project_item:hover .oim_project_btn {
  transform: translate(0, 0px);
  opacity: 1;
}

.oim_project_btn::before {
  display: none;
}

.oim_project_btn::after {
  background-color: var(--color_secondary);
  animation: none;
  right: 50%;
  transform: translate(50%);
  top: 23px;
}

.oim_projet_title_item {
  width: calc(25% - 20px);
  display: flex;
  flex-direction: column;
}
.oim_projet_title_item h2 {
  flex: 1;
  padding-left: 60px;
  padding-top: 80px;
  position: relative;
}
.oim_projet_title_item h2::before {
  content: "";
  display: block;
  width: 200px;
  height: 50px;
  background-image: url("/wp-content/uploads/2023/10/deco-line-title.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 50% 100%;
  transform: rotate(90deg) translate(30%, 153%);
  position: absolute;
  top: 0;
  left: 0;
}

.modale_content_head {
  display: flex;
}

.image_coin_gauche,
.video_coin_gauche {
  width: 100%;
  border-top-left-radius: 15px;
}

.image_coin_gauche {
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

.video_coin_gauche > .plyr {
  height: 100%;
}

.oim_project_modal_nav_prev,
.oim_project_modal_nav_next {
  cursor: pointer;
  background-image: url("/wp-content/uploads/2023/11/arrow-slider.svg");
  width: 48px;
  height: 32px;
  background-size: contain;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 20px;
}

.oim_project_modal_nav_prev {
  transform: rotate(180deg);
}

.oim_project_modal_nav {
  position: relative;
  color: #03fbcd;
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 30px;
}

@media screen and (min-height: 730px) {
  .oim_project_modal_nav_prev,
  .oim_project_modal_nav_next {
    height: 25px;
  }
}

@media screen and (max-width: 800px) {
  .oim_project_modal_nav {
    margin-top: 15px;
  }
}

@media screen and (max-width: 1150px) {
  .oim_project_modal_content {
    margin-top: 60px;
  }

  .oim_project_modal_nav {
    max-width: 100%;
  }

  .oim_project_modal_nav_prev,
  .oim_project_modal_nav_next {
    width: 25px;
    height: 25px;
  }
}

.infos_projet_head {
  width: 100%;
  padding: 10px 50px 50px;
  position: relative;
}

.infos_projet_head:after {
  content: "";
  position: absolute;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 251, 205, 1) 0%,
    rgba(3, 204, 248, 1) 96%
  );
  height: 2px;
  width: 80%;
  left: 10%;
}

.container_logo_secteur {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.container_logo {
  height: 130px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  width: 130px;
}

.oim_project_tags {
  display: flex;
  column-gap: 25px;
  flex-wrap: wrap;
}

.infos_projet_head h3 {
  line-height: 37px;
  font-weight: 600;
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 1.625em;
}

.hastag_single {
  display: flex;
  gap: 5px;
  align-items: center;
}

.bouton_to_secteurs {
  cursor: pointer;
}

.hastag_single .txt_primary {
  font-weight: 300;
  font-size: 1.125em;
  text-transform: uppercase;
  font-size: 1rem;
  font-family: "Poppins";
}

.hastag_single .txt_secondary_darker {
  font-weight: 700;
  font-size: 1.5em;
  font-family: "Montserrat Alternates";
  line-height: 1.3;
}

.modale_content_corp {
  padding: 25px 50px 50px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.show-full-content {
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-weight: 600;
  color: black;
}

.modale_btn {
  margin: auto;
  margin-top: 25px;
  cursor: pointer;
}

@media screen and (max-width: 1200px) {
  .oim_projet_title_item,
  .oim_grid_projects:not(.oim_grid_project_no_title) .oim_project_item {
    width: calc(33.3333% - 20px);
  }

  .image_coin_gauche {
    width: 40%;
  }
}

@media screen and (max-width: 991px) {
  .oim_projet_title_item {
    width: 100%;
  }

  .grid_actu_hp {
    display: block;
  }

  .grid_actu_hp .grid_actu.grid_actu_item {
    display: block;
    margin-bottom: 20px;
  }

  .oim_project_modal_nav_prev,
  .oim_project_modal_nav_next {
    height: 25px;
  }

  .oim_grid_project_no_title {
    display: flex;
    overflow: auto;
    margin-right: -20px;
    padding-top: 30px;
    padding-bottom: 30px;
    flex-wrap: unset;
    margin-left: -20px;
    padding-left: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .oim_grid_project_no_title::-webkit-scrollbar {
    display: none;
  }

  .oim_grid_project_no_title .oim_project_item {
    width: 35%;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
}

@media screen and (max-width: 768px) {
  .oim_project_item,
  .oim_grid_projects:not(.oim_grid_project_no_title) .oim_project_item {
    width: calc(50% - 13px);
  }

  .modale_content_head {
    flex-wrap: wrap;
  }

  .image_coin_gauche {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .infos_projet_head {
    padding: 10px 30px 50px;
  }

  .modale_content_corp {
    padding: 25px 30px 50px;
  }

  .container_logo {
    margin-top: -65px;
    background-color: white;
    background-size: 80%;
    background-position: 50% 20%;
  }

  .modal_secteur_associe {
    margin-top: -24px;
  }

  .infos_projet_head:after {
    width: calc(100% - 60px);
    left: 30px;
  }

  .close {
    top: -14px;
    right: 20px;
  }

  .oim_grid_project_no_title .oim_project_item {
    width: 42%;
  }
}

@media screen and (max-width: 480px) {
  .oim_project_modal_nav {
    max-width: 95%;
  }

  .oim_project_item,
  .oim_grid_projects:not(.oim_grid_project_no_title) .oim_project_item {
    width: 100%;
  }

  .close {
    top: -10px;
    right: 15px;
  }

  .infos_projet_head h2 {
    margin-top: 0px;
  }

  .oim_project_modal_content {
    max-height: calc(100vh - 180px);
  }

  .oim_project_item_name {
    font-size: 1.6rem;
    line-height: 1.1;
  }

  .home .oim_project_item_name {
    font-size: 2rem;
  }

  .container_logo {
    margin-left: -20px;
    width: 95px;
    height: 95px;
    background-color: white;
    margin-top: -47px;
  }

  .modal_secteur_associe {
    font-size: 0.7rem;
    margin-left: 10px;
    margin-right: -20px;
  }

  .oim_grid_project_no_title .oim_project_item {
    width: 60%;
  }
}
