/* ==========================================================================
   2023-02-22 Engagements
   ========================================================================== */

.home-valeurs__text-content .ctas {
  margin-top: 4em;
}

@media screen and (max-width: 768px) {
  .home-valeurs__text-content .ctas {
    justify-content: center;
  }
}

.page-template-page-engagements .header--nous {
  padding-top: 0;
}

.reference-item__title_wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 6em;
}

.reference-item__title_wrapper .reference-item__title {
  margin-bottom: 0;
}

.reference-item:nth-child(2n) .reference-item__title_wrapper {
}

.reference-item:nth-child(2n+1) .reference-item__title_wrapper {
  flex-direction: row-reverse;
}

.reference-item__text-content__logo {
  z-index: 100;
  width: 100px !important;
  height: 100px !important;
  min-height: auto;
  background-size: contain;
}

.reference-item:nth-child(2n) .reference-item__text-content__logo {
  margin-left: 1.5em;
}

.reference-item:nth-child(2n+1) .reference-item__text-content__logo {
  margin-right: 1.5em;
}

.reference-item__text-content__chapeau p {
  font-weight: 600 !important;
}

@media screen and (max-width: 576px) {
  .reference-item:nth-child(2n) .reference-item__title_wrapper {
    flex-direction: row-reverse;
  }

  .reference-item:nth-child(2n) .reference-item__text-content__logo {
    margin-left: 0;
    margin-right: 1.5em;
  }

  .reference-item:nth-child(2n+1) .reference-item__text-content__logo {
    margin-right: 0;
    margin-left: 1.5em;
  }
}

.nav--footer li {
  margin-right: 40px;
}

.nav--footer li::after {
  right: -25px;
}

/* ==========================================================================
   2023-02-28 Correction bug affichage croix sur mobile
   ========================================================================== */

@media screen and (max-width: 992px) {
  .reference-item:not(:nth-child(2n)) .reference-item__plus {
    right: 12px;
  }
}

@media screen and (max-width: 576px) {
  .reference-item:not(:nth-child(2n)) .reference-item__plus {
    right: -18px;
  }
}

/* ==========================================================================
   2023-03-03 Correction bug affichage menu sur mobile
   ========================================================================== */

@media screen and (max-width: 576px) {
  .main-navigation {
    height: 100vh !important;
  }
}

/* ==========================================================================
   Popup style
   ========================================================================== */

.popup{
  background: rgba(0,0,0,0.6);
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  z-index: 8888;
}

.popup__inner{
  background: #FFFFFF;
  width: 600px;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  box-sizing: border-box;
  padding: 30px;
  margin: auto;
  left: 0;
  right: 0;
  top: 50%;
  position: absolute;
  transform: translateY(-50%);
}

.popup__inner img{
  width: 100%;
  height: auto;
}

.popup__inner p{
  text-align: center;
}

.popup__close{
  border: none;
  background: #9ac42f;
  position: absolute;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 600px;
  transition: all 0.3s ease-in-out;
  right: -20px;
  top: -20px;
}

.popup__close:hover{
  background: #9ac42f;
  transform: scale(1.2);
  cursor: pointer;
}

.popup__close span{
  display: inline-block;
  height: 1px;
  width: 20px;
  background: #ffffff;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
}

.popup__close span:nth-child(1){
  transform: rotate(45deg);
}
.popup__close span:nth-child(2){
  transform: rotate(-45deg);
}

@media only screen and (max-width: 675px) {
  .popup__close{
    right: 0;
    left: 0;
    top: auto;
    margin: 0 auto;
    bottom: -90px;
    width: 60px;
    height: 60px;
  }

  .popup__close span{
    width: 40px;
  }
}

@media only screen and (max-height: 600px) {
  .popup__inner{
    top: 0;
    transform: translateY(0);
  }
}
