/** CONTENT **/

.midscreen_container_head {
  width: 100%;
  min-height: 50vh;
  position: relative;
  overflow: hidden; /* Pour masquer tout contenu qui dépasse */
  margin-bottom: 30px;
  padding: 0 20px;
  background-color: var(--main-color-champagne);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.text_content_head {
  width: 70%;
  height: auto;
  opacity: 0.8;
  background-color: var(
    --main-color-white
  ); /* Pour empêcher le texte de se fondre dans l'image */
  box-shadow: var(--main-shadow);
  text-align: center;
}

.midscreen_container {
  width: 100%;
  position: relative;
  margin-bottom: 30px;
}

.text_content {
  height: auto;
  position: absolute;
  top: 50%;
  background-color: var(
    --main-color-white
  ); /* Pour empêcher le texte de se fondre dans l'image */
  box-shadow: var(--main-shadow);
  text-align: center;
  transform: translateY(-50%);
  opacity: 0.9;
}

.img_left {
  display: flex;
  justify-content: left;
}

.img_right {
  display: flex;
  justify-content: right;
}

.left {
  left: 40%;
}

.right {
  right: 40%;
}

.categorie img {
  width: 50%;
  height: auto;
  min-height: 300px;
  border-radius: 10px;
}

.categorie h2,
.categorie h1 {
  color: var(--main-color-green);
}

.reass_cat-row {
  gap: 30px;
}

.reass_cat img {
  width: 150px;
  height: auto;
}

.reass_cat_items {
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  min-width: 280px;
}

.img_cat_display_while_on_phone {
  display: none;
}

@media screen and (max-width: 1200px) {
  .midscreen_container_head {
    height: auto;
  }
  .text_content_head {
    width: 100%;
  }
  .text_content {
    transform: none;
    position: relative;
    width: 100%;
  }
  .categorie .img_left {
    display: none;
  }

  .categorie .img_right {
    display: none;
  }
  .left {
    left: 0%;
  }

  .right {
    right: 0%;
  }

  .categorie img {
    width: 100%;
    min-height: auto;
  }
  .img_cat_display_while_on_phone {
    display: flex;
    width: 70%;
  }
}

@media screen and (max-width: 900px) {
  .img_cat_display_while_on_phone {
    display: flex;
    width: 100%;
  }
}
