/** END FONCTIONS **/
#engagements {
  background-color: #F2F2F2;
  position: relative;
}
#engagements .content {
  padding: 50px 0;
  width: 40%;
}
#engagements .visuel {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 60%;
  clip-path: polygon(100px 0, 100% 0, 100% 100%, 0 100%);
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}
#engagements .visuel img {
  opacity: 0;
}
#certifications {
  padding: 50px 0;
}
#certifications .titre {
  text-transform: uppercase;
  padding-top: 15px;
  position: relative;
}
#certifications .titre:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 7px;
  background-color: #F42D20;
}
#certifications .carousel__track {
  padding-top: 10px;
}
#certifications .certification {
  background-color: #F2F2F2;
  padding: 20px;
  width: 100%;
  overflow: visible;
}
#certifications .certification .nom,
#certifications .certification .texte {
  color: #000;
}
#certifications .certification img {
  width: 60px;
  margin-bottom: 20px;
}
#certifications .certification:nth-of-type(1) {
  background-color: #F42D20;
  margin-bottom: 30px;
}
#certifications .certification:nth-of-type(1) .nom,
#certifications .certification:nth-of-type(1) .texte {
  color: #fff;
}
#certifications .carousel__nav {
  display: none;
}
#respect {
  position: relative;
}
#respect .visuel {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
#respect .visuel img {
  opacity: 0;
}
#respect:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: #303030;
  z-index: 1;
  opacity: 0;
}
#respect .conteneur {
  padding: 50px 20px;
  position: relative;
  background-color: #303030;
  z-index: 2;
}
#respect .conteneur > * {
  position: relative;
}
#tri {
  background-color: #F1F1F1;
  padding: 50px 0;
}
@media (min-width: 768px) {
  #certifications .certification {
    width: 50%;
    max-width: 360px;
    margin-bottom: 0 !important;
  }
}
@media (min-width: 1024px) {
  #certifications .titre {
    font-size: 42px;
    margin-right: 80px;
  }
  #certifications .conteneur {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  #respect {
    position: relative;
    margin-top: 100px;
  }
  #respect .visuel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: calc(50% + 50px);
    transform: translateY(-100px);
  }
  #respect .visuel .barre {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #F42D20;
    background-blend-mode: multiply;
    filter: none;
    clip-path: polygon(58% 80px, 100% 80px, 100% 220px, 58% 220px);
  }
  #respect .content {
    padding-left: 50%;
  }
  #respect .conteneur {
    background-color: transparent;
  }
  #respect:before {
    width: calc(50% + 200px);
    left: initial;
    clip-path: polygon(150px 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
  }
  #tri {
    margin-top: -100px;
    padding-top: 100px;
    padding-bottom: 0;
  }
  #tri .editor-rouge {
    font-size: 52px;
  }
  #tri .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  #tri .row .col:nth-of-type(1) {
    width: 500px;
  }
}
@media (min-width: 1200px) {
  #engagements {
    min-height: 500px;
    display: flex;
    align-items: center;
  }
  #certifications {
    padding: 150px 0;
  }
  #certifications .certification {
    padding: 30px;
    padding-top: 70px;
    padding-bottom: 50px;
    position: relative;
    margin: 10px;
  }
  #certifications .certification img {
    width: 120px;
  }
  #certifications .certification:after {
    content: '';
    position: absolute;
    top: -18px;
    right: 10px;
    width: 117px;
    height: 85px;
    background-image: url(../images/languette.png);
    background-size: cover;
  }
  #respect .conteneur {
    min-height: 500px;
    display: flex;
    align-items: center;
  }
}
