.wrapper-etudes-de-cas {
    padding: 57px 0 50px;
    background-color: #F3F5F7;
    background-image: url(https://radiustheme.com/demo/wordpress/themes/finbuzz/wp-content/uploads/2022/01/shape15.png);
    background-position: top right;
    background-repeat: no-repeat;
    position: relative;
    z-index: 0;
}

.wrap-etudes-de-cas {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.parent-etudes-de-cas {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.parent-etudes-de-cas::after {
  content: "";
  height: 50%;
  width: 100%;
  background-image: linear-gradient(to top,#000,transparent);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  transition: all 0.3s ease-in-out;
}

.img-etudes-de-cas {
  display: flex;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.parent-etudes-de-cas .content-item-etudes-de-cas {
  position: absolute;
  bottom: 102px;
  left: 0;
  right: 0;
  padding: 0 11px 15px 35px;
  transform: translateY(160px);
  z-index: 2;
  transition: all 0.3s ease-in-out;
}

.cat-list {
  position: relative;
  align-items: center;
  padding-right: 30px;
  display: inline-block;
  color: rgba(255,255,255,.8);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  margin-bottom: 0;
}

.cat-list::before {
  content: "";
  height: 4px;
  width: 15px;
  background-color: var(--second-color);
  position: absolute;
  top: 50%;
  right: 0;
  border-radius: 10px;
  border: none;
  transform: translateY(-50%);
}

.cat-list::after {
  content: "";
  height: 4px;
  width: 30px;
  background-color: var(--second-color);
  position: absolute;
  top: 50%;
  right: -40px;
  border-radius: 10px;
  border: none;
  transform: translateY(-50%);
}

.content-item-etudes-de-cas h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  color: white;
  line-height: 1.2;
  min-height: 80px;
}

.content-item-etudes-de-cas p {
  visibility: hidden;
  opacity: 0;
  color: #d4d4d4;
  line-height: 30px;
  margin-bottom: 58px;
  transition: all 0.3s ease-in-out;
  height: 0;
}

.parent-etudes-de-cas:hover .content-item-etudes-de-cas {
    transform: translateY(75px);
}

.parent-etudes-de-cas:hover .content-item-etudes-de-cas p {
    visibility: visible;
    opacity: 1;
    height: auto;
}

.wrapper-parent-etudes-de-cas:hover  .portfolio-btn .btn-style2   
 span {
    visibility: visible;
    opacity: 1;
}

.wrapper-parent-etudes-de-cas:hover .portfolio-btn .btn-style2::after {
    opacity: 1;
    visibility: visible;
    width: 100%;
}

.wrapper-parent-etudes-de-cas:hover  .portfolio-btn .btn-style2 {
    opacity: 1;
}

.btn-style2 {
  position: relative;
  display: inline-flex;
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  padding: 7px 17px 7px 17px;
  border: none;
  width: max-content;
  opacity: 0;
  border-radius: 30px;
  transition: all 0.5s ease-in-out;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-style2 span {
  color: #fff;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  visibility: hidden;
  opacity: 0;
  margin-left: 10px;
  transition: all 0.5s ease-in-out;
}

.parent-etudes-de-cas:hover::after {
    height: 100%;
}

.wrapper-parent-etudes-de-cas   .portfolio-btn .btn-style2::after {
  content: "";
  width: 55px !important;
  height: 55px;
  background-color: var(--second-color);
  border-radius: 30px;
  position: absolute;
  top: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  z-index: -1;
  transition: all 0.8s ease;
}

.wrapper-parent-etudes-de-cas {
    width: 33.33%;
    padding: 0 15px 50px;
    position: relative;
}

.wrapper-parent-etudes-de-cas .parent-etudes-de-cas::before {
    content: "";
    background: var(--second-color);
    position: absolute;
    width: 100%;
    height: 7px;
    bottom: 0px;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
}

.portfolio-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 32px;
    z-index: 3;
    cursor: pointer;
}
.wrapper-parent-etudes-de-cas:hover .parent-etudes-de-cas::before {
    visibility: visible;
    opacity: 1;
}

.img-etudes-de-cas img {
    object-fit: cover;
    height: 469px;
}

.date-agenda {
  position: absolute;
  width: 60px;
  background: var(--primary-color);
  top: 0;
  right: 0;
  padding-bottom: 5px;
  padding-top: 18px;
  border-radius: 0 0 50px 50px;
  text-align: center;
  text-transform: uppercase;
}

.date-agenda span {
  display: block;
  font-size: 14px;
  font-family: 'League Spartan';
  font-weight: 500;
  line-height: 20px;
  color: #fff;
}

span.date_in_number {
  position: relative;
  width: 50px;
  background: #fff;
  font-size: 16px;
  line-height: 58px;
  height: 50px;
  color: #4a4e56;
  font-weight: 700;
  text-align: center;
  border-radius: 50%;
  margin: 10px auto 0px;
  -webkit-transition: .9s ease-in-out;
  transition: .9s ease-in-out;
  text-transform: none;
}
