/* Block */
.navigation {
  left: calc(50% - 31px)
}

.header {
  margin-top: 40px;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
}

.hero {
  padding: 0 8vw;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero .cta svg {
  transform: scaleX(-100%);
}

.hero_title {
  font-size: 60px;
  margin-bottom: 20px;
  margin-top: 40px;
  line-height: 110%;
}

.hero_title strong {
  font-size: 60px;
}

.hero_title svg {
  height: 50px;
  width: auto;
  transform: translateY(5px);
}

.hero_description {
  max-width: 60vw;
  margin-bottom: 50px;
}

.projets {
  margin: 0 8vw;
  display: flex;
  flex-direction: column;
  gap: 70px;
  margin-bottom: 50px;
}

.projets_list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 70px;
}

.projet a {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
  color: #616161;
}

.projet a img {
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  width: 100%;
}

.projet {
  height: fit-content;
  position: relative;
  width: calc(50% - 35px);
}

.projet:nth-child(1) a img, .projet:nth-child(8) a img, .projet:nth-child(9) a img, .projet:nth-child(14) a img {
  aspect-ratio: 0.58/1;
}

.projet:nth-child(2) a img, .projet:nth-child(3) a img, .projet:nth-child(6) a img, .projet:nth-child(7) a img, .projet:nth-child(10) a img, .projet:nth-child(11) a img {
  aspect-ratio: 1.35/1;
}

.projet:nth-child(4) a img, .projet:nth-child(5) a img, .projet:nth-child(12) a img, .projet:nth-child(13) a img {
  aspect-ratio: 0.91/1;
}

.projet:nth-child(4).toAnimate {
  transform: translateX(-5%) translateY(-82%);
}

.projet:nth-child(4).animationOn {
  transform: translateX(0%) translateY(-82%);
}

.projet:nth-child(5).toAnimate {
  transform: translateX(-5%) translateY(-30%);
}

.projet:nth-child(5).animationOn {
  transform: translateX(0%) translateY(-30%);
}

.projet:nth-child(6).toAnimate {
  transform: translateX(-5%) translateY(-116.5%);
}

.projet:nth-child(6).animationOn {
  transform: translateX(0%) translateY(-116.5%);
}

.projet:nth-child(7).toAnimate {
  transform: translateX(-5%) translateY(-41.5%);
}

.projet:nth-child(7).animationOn {
  transform: translateX(0%) translateY(-41.5%);
}

.projet:nth-child(8).toAnimate {
  transform: translateX(-5%) translateY(-73%);
}

.projet:nth-child(8).animationOn {
  transform: translateX(0%) translateY(-73%);
}

.projet:nth-child(9).toAnimate {
  transform: translateX(-5%) translateY(-73.5%);
}

.projet:nth-child(9).animationOn {
  transform: translateX(0%) translateY(-73.5%);
}

.projet:nth-child(10).toAnimate {
  transform: translateX(-5%) translateY(-159%);
}

.projet:nth-child(10).animationOn {
  transform: translateX(0%) translateY(-159%);
}

.projet:nth-child(11).toAnimate {
  transform: translateX(-5%) translateY(-159%);
}

.projet:nth-child(11).animationOn {
  transform: translateX(0%) translateY(-159%);
}

.projet:nth-child(12).toAnimate {
  transform: translateX(-5%) translateY(-193.5%);
}

.projet:nth-child(12).animationOn {
  transform: translateX(0%) translateY(-193.5%);
}

.projet:nth-child(13).toAnimate {
  transform: translateX(-5%) translateY(-141%);
}

.projet:nth-child(13).animationOn {
  transform: translateX(0%) translateY(-141%);
}

.projet:nth-child(14).toAnimate {
  transform: translateX(-5%) translateY(-127.5%);
}

.projet:nth-child(14).animationOn {
  transform: translateX(0%) translateY(-127.5%);
}

.projet_title {
  margin-top: 15px;
  margin-left: 10px;
  max-width: 50vw;
  font-size: 16px;
  font-weight: 225;
  color: #616161;
}

.projet_title strong {
  font-weight: 400;
  display: inline;
  font-size: 16px;
  color: #616161;
}

.projet_title span {
  display: inline-block;
  background-color: #616161;
  width: 30px;
  height: 1px;
  margin: 0 10px;
  transform: translateY(-4px);
}

.projet:hover a img {
  opacity: 0.2;
}

.projet::after {
  content: '';
  width: 80px;
  height: 80px;
  display: block;
  background-image: url(./img/Arrow3.svg);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: calc(50% - 40px);
  left: calc(50% - 40px);
  cursor: pointer;
  opacity: 0;
  transform: translateX(-5%);
  transition: 0.8s;
  pointer-events: none;
}

.projet:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  padding: 30px 4vw;
  background-color: rgba(84, 84, 84, 0.1);
}

.footer span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Responsive */
@media (width <= 1140px)  {
  .hero_title {
    font-size: 50px;
  }

  .hero_title strong {
    font-size: 50px;
  }

  .hero_title svg {
    height: 40px;
    width: auto;
  }
}

@media (width <= 1050px)  {
  .projets {
    gap: 50px;
  }

  .projets_list {
    gap: 50px;
    margin-bottom: 30px;
  }

  .projet:nth-child(1), .projet:nth-child(2), .projet:nth-child(3), .projet:nth-child(4), .projet:nth-child(5), .projet:nth-child(6), .projet:nth-child(7), .projet:nth-child(8), .projet:nth-child(9), .projet:nth-child(10), .projet:nth-child(11), .projet:nth-child(12), .projet:nth-child(13), .projet:nth-child(14) {
    width: 100%;
  }

  .projet:nth-child(1) a img, .projet:nth-child(2) a img, .projet:nth-child(3) a img, .projet:nth-child(4) a img, .projet:nth-child(5) a img, .projet:nth-child(6) a img, .projet:nth-child(7) a img, .projet:nth-child(8) a img, .projet:nth-child(9) a img, .projet:nth-child(10) a img, .projet:nth-child(11) a img, .projet:nth-child(12) a img, .projet:nth-child(13) a img, .projet:nth-child(14) a img {
    aspect-ratio: 1.8/1;
  }

  .projet:nth-child(1).toAnimate, .projet:nth-child(2).toAnimate, .projet:nth-child(3).toAnimate, .projet:nth-child(4).toAnimate, .projet:nth-child(5).toAnimate, .projet:nth-child(6).toAnimate, .projet:nth-child(7).toAnimate, .projet:nth-child(8).toAnimate, .projet:nth-child(9).toAnimate, .projet:nth-child(10).toAnimate, .projet:nth-child(11).toAnimate, .projet:nth-child(12).toAnimate, .projet:nth-child(13).toAnimate, .projet:nth-child(14).toAnimate {
    transform: translateX(-5%);
  }

  .projet:nth-child(1).animationOn, .projet:nth-child(2).animationOn, .projet:nth-child(3).animationOn, .projet:nth-child(4).animationOn, .projet:nth-child(5).animationOn, .projet:nth-child(6).animationOn, .projet:nth-child(7).animationOn, .projet:nth-child(8).animationOn, .projet:nth-child(9).animationOn, .projet:nth-child(10).animationOn, .projet:nth-child(11).animationOn, .projet:nth-child(12).animationOn, .projet:nth-child(13).animationOn, .projet:nth-child(14).animationOn {
    transform: translateX(0);
  }

  .projet_title {
    max-width: calc(100% - 15px);
  }
}

@media (width <= 965px)  {
  .hero_title {
    font-size: 40px;
  }

  .hero_title strong {
    font-size: 40px;
  }

  .hero_title svg {
    height: 35px;
    width: auto;
  }
}

@media (width <= 830px)  {
  .navigation {
    bottom: inherit;
    top: 0;
    padding-top: 20px;
    padding-bottom: 0;
    transform: scale(0.8) translateY(-50px);
  }

  .header {
    flex-direction: column;
  }

  .header a {
    position: fixed;
    bottom: 20px;
    z-index: 99;
  }
}

@media (width <= 720px)  {
  .hero {
    margin-top: 50px;
    padding: 0 6vw;
  }

  .hero_title {
    margin-bottom: 15px;
  }

  .hero_title {
    font-size: 40px;
  }

  .hero_title strong {
    font-size: 40px;
  }

  .hero_title svg {
    height: 34px;
    width: auto;
    transform: translateY(6px);
  }

  .hero_description {
    max-width: inherit;
    font-size: 14px;
  }

  .hero .cta {
    width: 100%;
  }

  .projets {
    margin: 0 6vw;
  }

  .projet a img {
    border-radius: 10px;
  }

  .projet:nth-child(1) a img, .projet:nth-child(2) a img, .projet:nth-child(3) a img, .projet:nth-child(4) a img, .projet:nth-child(5) a img, .projet:nth-child(6) a img, .projet:nth-child(7) a img, .projet:nth-child(8) a img, .projet:nth-child(9) a img, .projet:nth-child(10) a img, .projet:nth-child(11) a img, .projet:nth-child(12) a img, .projet:nth-child(13) a img, .projet:nth-child(14) a img {
    aspect-ratio: 5/3.5;
  }

  .projet_title {
    font-size: 14px;
  }

  .footer {
    flex-direction: column;
    gap: 15px;
    padding-bottom: 80px;
  }

  .footer span {
    flex-direction: column;
  }
}