/**********
HEADER
**********/
.header {
  width: 100%;
  background-image: url('../assets/img/8330@2x.png');
  background-position: center center;
  background-size: cover;
  padding-top: 20vh;
  padding-bottom: 10vh;
  color: #fff;
  position: relative;
  text-align: center;
}
.header::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.3) 80%,
    rgba(0, 0, 0, 0.1) 90%,
    rgba(0, 0, 0, 0.05)
  );
}
.header__title {
  font-size: 1.6em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 300;
  position: relative;
  z-index: 100;
}

/****************
FORMATIONS HEAD
****************/
.formations__head {
  width: 100%;
  text-align: center;
  padding: 10vh 15vw;
  padding-bottom: 0;
  background-color: #fff;
}
.formations__text {
  font-size: 1.2em;
}

/************
HIGHLIGHTED
************/
.highlighted {
  padding: 10vh 0;
  padding-bottom: 0;
  background-color: #fff;
}
.highlighted--mobile {
  display: none;
}
.highlighted__title {
  font-size: 1.5em;
  color: #d29723;
  width: max-content;
  margin: 0 auto;
  margin-bottom: 4vh;
}
.highlighted__carousel {
  width: 70vw;
  height: 60vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.highlighted__container {
  width: 61vw;
  height: 100%;
}
.highlighted__inner {
  width: 100%;
  height: 100%;
}
.highlighted__arrow {
  width: 4.5vw;
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 500ms ease;
}
.highlighted__arrow.carousel__arrow--prev {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
.highlighted__arrow.carousel__arrow--next {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.highlighted__arrow:hover {
  background-color: rgba(210, 151, 35, 0.2);
}
.highlighted__arrow img {
  width: 1.5vw;
  height: auto;
}
.highlighted__slide {
  width: 61vw;
  height: 60vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1vw;
  padding: 7.5vh 2vw;
}
.highlighted__card {
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  height: 100%;
  transition: transform 700ms ease;
  position: relative;
  z-index: 50;
}
.highlighted__card--hoverred {
  transform: scale(1.2);
  z-index: 100;
}
.highlighted__card--hoverred.highlighted__card--first {
  transform: scale(1.2) translateX(5%);
}
.highlighted__card--hoverred.highlighted__card--last {
  transform: scale(1.2) translateX(-5%);
}
.highlighted__cover {
  width: 100%;
  height: 50%;
  background-position: center center;
  background-size: cover;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}
.highlighted__body {
  width: 100%;
  height: 50%;
  padding: 1.5vh 1vw;
  padding-bottom: 3vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.highlighted__name {
  font-size: 1.1em;
  font-weight: 500;
  color: #d29723;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.highlighted__price {
  font-size: 1.1em;
  font-weight: 500;
  color: #111;
}
.highlighted__duration,
.highlighted__level {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  font-weight: 300;
}
.highlighted__duration > img,
.highlighted__level > img {
  width: 2vw;
  height: auto;
}
.highlighted__link {
  width: 2vw;
  height: 2vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d29723;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 200;
}
.highlighted__link img {
  width: 40%;
  height: auto;
}

/******
POLES
******/
.poles {
  width: 100%;
  padding-top: 15vh;
  padding-bottom: 5vh;
  background-color: #fff;
}
.poles__title {
  font-size: 2.3em;
  font-weight: 700;
  width: max-content;
  margin: 0 auto;
  margin-bottom: 10vh;
}
.poles__row {
  width: 59vw;
  height: 30vh;
  margin: 0 auto;
  position: relative;
  opacity: 0;
  animation: fadeIn 1000ms ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.poles__card {
  width: 22%;
  height: max-content;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  background-color: #fff;
  transition: width 700ms ease, transform 700ms ease;
  position: absolute;
  top: 0;
  z-index: 50;
}
.poles__row > .poles__card:nth-child(1) {
  left: 0;
}
.poles__row > .poles__card:nth-child(2) {
  left: 26%;
}
.poles__row > .poles__card:nth-child(3) {
  left: 52%;
}
.poles__row > .poles__card:nth-child(4) {
  left: 78%;
}
.poles__cover {
  position: relative;
  width: 100%;
  height: 15vh;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1vh 1vw;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  overflow: hidden;
  text-align: center;
}
.poles__cover::after {
  width: 100%;
  height: 100%;
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.7) 20%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.5) 60%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.1) 80%,
    rgba(0, 0, 0, 0.05)
  );
  transition: background 700ms ease;
}
.poles__name {
  position: relative;
  z-index: 100;
  color: #fff;
  font-size: 1.3em;
  font-weight: 500;
}
.poles__body {
  width: 100%;
  height: auto;
  padding: 3vh 1vw;
  position: relative;
}
.poles__count {
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 1.3em;
  font-weight: 300;
  transition: font-size 700ms ease;
}
.poles__count > img {
  width: 1.5vw;
  height: auto;
  margin-right: 0.5vw;
  transition: width 700ms ease;
}
.poles__content {
  width: 100%;
  max-height: 0;
  overflow-y: hidden;
  transition: max-height 700ms ease, margin-bottom 700ms ease;
  transition-delay: 200ms;
}
.poles__summary {
  font-size: 1.3em;
  font-weight: 500;
  margin-bottom: 2vh;
}
.poles__link {
  width: 2vw;
  height: 2vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d29723;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0);
  transition: transform 700ms ease;
  transition-delay: 200ms;
}
.poles__link > img {
  width: 40%;
  height: auto;
}
.poles__card--hoverred {
  width: calc(22% * 1.3);
  z-index: 100;
  transform: translate3d(calc((22% * 1.3) * -0.4), -3vh, 0);
}
.poles__card--hoverred .poles__cover::after {
  background: rgb(210, 151, 35, 0.8);
}
.poles__card--hoverred .poles__content {
  max-height: 100vh;
  margin-bottom: 2vh;
  transition: max-height 700ms ease;
  transition-delay: 200ms;
}
.poles__card--hoverred .poles__count {
  font-size: 1.1em;
}
.poles__card--hoverred .poles__count > img {
  width: 1vw;
}
.poles__card--hoverred .poles__link {
  transform: translate3d(-50%, -50%, 0) scale(1);
}
.poles__view-more {
  width: max-content;
  margin: 0 auto;
  margin-top: 8vh;
  cursor: pointer;
  text-align: center;
}
.poles__view-more > p {
  font-weight: 500;
  font-size: 1.3em;
  margin-bottom: 1vh;
}
.poles__view-more > img {
  width: 1.5vw;
  height: auto;
}

@media only screen and (max-width: 1024px) {
  .poles__row {
    width: 70vw;
  }
  .highlighted__card--hoverred {
    transform: scale(1);
  }
  .highlighted__card--hoverred.highlighted__card--first,
  .highlighted__card--hoverred.highlighted__card--last {
    transform: scale(1) translateX(0);
  }
  .highlighted__link,
  .poles__link {
    width: 3vw;
    height: 3vw;
  }
}

@media only screen and (max-width: 768px) {
  .formations__head {
    padding: 5vh 8vw;
    padding-top: 10vh;
  }
  .highlighted {
    padding: 5vh 0;
    padding-top: 0;
    display: none;
  }
  .highlighted--mobile {
    display: block !important;
  }
  .highlighted__carousel {
    width: 95vw;
  }
  .highlighted__container {
    width: 85vw;
  }
  .highlighted__slide {
    width: 85vw;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3vw;
  }
  .highlighted__arrow {
    width: 6vw;
  }
  .highlighted__arrow img {
    width: 3vw;
  }
  .highlighted__body {
    font-size: 1.1em;
  }
  .highlighted__name {
    font-size: 0.9em;
  }
  .highlighted__duration > img,
  .highlighted__level > img {
    width: 3vw;
  }
  .highlighted__link {
    width: 5vw;
    height: 5vw;
  }
  .highlighted__arrow {
    height: 50vh;
  }
  .highlighted__arrow:hover {
    background-color: rgba(0, 0, 0, 0);
  }
  .poles {
    padding-top: 0vh;
  }
  .poles__row {
    height: 60vh;
  }
  .poles__card {
    width: 47%;
  }
  .poles__row > .poles__card:nth-child(1) {
    left: 0;
    top: 0;
  }
  .poles__row > .poles__card:nth-child(2) {
    left: 53%;
    top: 0;
  }
  .poles__row > .poles__card:nth-child(3) {
    left: 0;
    top: 30vh;
  }
  .poles__row > .poles__card:nth-child(4) {
    left: 53%;
    top: 30vh;
  }
  .poles__card--hoverred {
    width: calc(47% * 1.3);
    transform: translate3d(calc((47% * 1.3) * -0.25), -3vh, 0);
  }
  .poles__link {
    width: 5vw;
    height: 5vw;
  }
  .poles__view-more > img {
    width: 3vw;
  }
  .poles__count > img {
    width: 3vw !important;
    margin-right: 1vw;
  }
}

@media only screen and (max-width: 420px) {
  .highlighted__carousel {
    height: 50vh;
  }
  .highlighted__slide {
    height: 50vh;
  }
  .highlighted__arrow {
    height: 55vh;
  }
}
