/**********
HEADER
**********/
.header {
  width: 100%;
  background-position: center 25%;
  background-size: cover;
  padding-top: 15vh;
  padding-bottom: 3vh;
  padding-left: 8vw;
  color: #fff;
  position: relative;
}
.header::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.header__body {
  width: 35vw;
  position: relative;
  z-index: 100;
  color: #fff;
  z-index: 100;
}
.header__name {
  font-size: 2.7em;
  font-weight: 700;
}
.header__ref {
  font-size: 1.5em;
  font-weight: 300;
  letter-spacing: 0.1em;
}

/***********
FORMATION
***********/
.formation {
  width: 35vw;
  min-height: 150vh;
  margin-left: 8vw;
  padding-top: 5vh;
}
.formation__nav {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin-bottom: 3vh;
}
.formation__nav__item {
  width: 100%;
  font-size: 1.3em;
  font-weight: 700;
  color: #dfdfdf;
  border-bottom: 2px solid #dfdfdf;
  padding-bottom: 1vh;
  cursor: pointer;
}
.formation__nav__item--active {
  color: #111;
  border-bottom: 2px solid #d29723;
}
.formation__block {
  display: none;
  max-height: 120vh;
  min-height: 120vh;
  overflow-y: auto;
  padding-right: 1vw;
}
.formation__block--active {
  display: block;
  animation: fadeIn 700ms ease forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/***********
INFORMATIONS
***********/
.informations {
  position: absolute;
  width: 27vw;
  padding: 1.5vh 1.5vw;
  top: 15vh;
  right: 8vw;
  background-color: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1000;
}
.informations__inner {
  position: relative;
}
.informations__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5vh 0;
  border-bottom: 1px solid #dfdfdf;
}
.informations__item__name {
  display: flex;
  align-items: center;
}
.informations__item__name > img {
  width: 2vw;
  height: auto;
  margin-right: 0.5vw;
}
.informations__item__name > span {
  font-size: 1.2em;
  font-weight: 700;
}
.information__item__value {
  font-size: 1.1em;
  font-weight: 700;
  color: #7d7d7d;
  width: max-content;
}
.information__item__value > strong {
  color: #d29723;
  font-size: 1.25em;
}
.information__item__value > span {
  display: inline-block;
  padding: 0.5vh 0.5vw;
  text-transform: uppercase;
  border-radius: 0.25rem;
}
.information__item__value > span[data-choice='selected'] {
  color: #d29723;
  background-color: rgba(210, 152, 35, 0.2);
}
.information__item__value > span[data-choice='selected'] {
  color: #d29723;
  background-color: rgba(210, 152, 35, 0.2);
}
.information__item__value > a {
  color: #d29723;
}
.information__item__value > a:hover {
  text-decoration: underline;
}
.informations__remotely {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2vh 0;
}
.informations__remotely__item {
  font-size: 1.1em;
  text-transform: uppercase;
  padding: 0.5vh 0.75vw;
  border-radius: 0.25rem;
  border: 1px solid #d29723;
  color: #d29723;
  width: max-content;
}
.informations__remotely__item[data-choice='selected'] {
  color: #fff;
  background-color: #d29723;
}
.informations__remotely__item[data-choice='disable'] {
  border: 1px solid #f5f5f5;
  color: #dfdfdf;
  background-color: #f5f5f5;
}
.informations__location {
  padding: 1vh 0;
}
.informations__location__value {
  font-size: 1em;
  font-weight: 500;
  color: #7d7d7d;
  padding: 1vh 0;
}
.informations__sheet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid #d29723;
  border-radius: 0.25rem;
  padding: 1.5vh 0;
  color: #d29723;
  cursor: pointer;
  margin: 2vh 0;
  margin-bottom: 5vh;
}
.informations__sheet > img {
  width: 1vw;
  height: auto;
  margin-right: 1vw;
}
.informations__sheet > span {
  font-size: 1.1em;
}
.informations__button {
  font-family: inherit;
  font-size: 1em;
  width: 90%;
  height: max-content;
  margin: 0 auto;
  margin-bottom: 2vh;
  border-radius: 2rem;
  border: 1px solid #d29723;
  padding: 1.5vh 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}
.informations__button > img {
  width: 1vw;
  height: auto;
  margin-right: 1vw;
}
.informations__button > span {
  text-transform: uppercase;
  color: #d29723;
  font-size: 1.1em;
}
.informations__button:focus,
.informations__button:active {
  outline: none;
}
.informations__button--orange {
  border: 1px solid #d29723;
  background-color: #d29723;
}
.informations__button--orange > span {
  color: #fff;
}
.informations__button--cart {
  position: relative;
}
.informations__button--black {
  border: 1px solid #3b3b3b;
  background-color: #3b3b3b;
}
.informations__button--black > span {
  color: #fff;
}
.information__share {
  display: flex;
  width: max-content;
  align-items: center;
  margin: 3vh auto;
  cursor: pointer;
  position: relative;
}
.information__share:hover {
  text-decoration: underline;
}
.information__share:hover > .information__share__container {
  opacity: 1;
  visibility: visible;
}
.information__share > img {
  width: 2vw;
  height: auto;
  margin-right: 0.5vw;
}
.information__share__container {
  width: 100%;
  position: absolute;
  top: calc(100% + 2vh);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  transition-delay: 200ms;
}
.information__share__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1vh 0;
  background-color: #fff;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.15);
}
.information__share__link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111;
  width: 2vw;
  height: 2vw;
  border-radius: 0.6rem;
  margin-right: 0.5vw;
}
.information__share__link:hover {
  background-color: #d29723;
}
.information__share__link > img {
  width: 50%;
  height: auto;
}

.information__share > span {
  font-size: 1.1em;
  color: #7d7d7d;
  font-weight: 500;
}
.informations__note {
  position: absolute;
  width: 25vw;
  padding: 3vh 1.5vw;
  background-color: #111;
  top: calc(100% + 10vh);
  left: 50%;
  transform: translateX(-50%);
}
.informations__note > p {
  text-align: center;
  color: #fff;
  font-size: 1.1em;
  font-weight: 300;
}
.informations__note > p:not(:last-child) {
  margin-bottom: 1vh;
}
.informations__note > p > strong {
  color: #d29723;
  font-size: 1.1em;
  text-transform: uppercase;
  font-weight: 300;
}
.information__item__dates {
  width: max-content;
}
.information__item__dates__select {
  position: relative;
  width: max-content;
  height: max-content;
  margin-bottom: 1vh;
  margin-left: auto;
}
.information__item__dates__select select {
  width: max-content;
  height: max-content;
  border: none;
  padding: 1vh 0.5vw;
  padding-right: 1.5vw;
  font-size: 1.1em;
  font-weight: 700;
  color: #7d7d7d;
  font-family: inherit;
  cursor: pointer;
}
.information__item__dates__select select:active,
.information__item__dates__select select:focus {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  outline: none;
  color: #d29723;
}
.information__item__dates__select img {
  position: absolute;
  top: 50%;
  right: 0.5vw;
  width: 0.5vw;
  height: auto;
  transform: translateY(-50%);
}
p.information__payment {
  font-size: 1em;
  font-weight: 500;
  color: #7d7d7d;
}
ul.information__payment {
  font-size: 1em;
  font-weight: 500;
  color: #7d7d7d;
  list-style: initial;
}
ul.information__payment li {
  margin-left: 1.5vw;
}
.information__cart-recap {
  width: max-content;
  max-width: 100%;
  position: absolute;
  padding: 1vh 1vw;
  background: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  top: calc(100% + 1vh);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}
.information__cart-recap {
  width: max-content;
  max-width: 100%;
  position: absolute;
  padding: 2vh 1vw;
  background: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  top: calc(100% + 1vh);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  color: #7d7d7d;
  font-size: 1em;
  font-weight: 500;
}
.information__cart-recap .informations__button {
  transform: scale(0.85);
  margin-bottom: 0;
}
.information__cart-recap__buttons {
  border-radius: 2rem;
  background-color: #fff;
  border: 1px solid #d29723;
  color: #d29723;
  overflow: hidden;
  font-size: 1.4em;
  font-weight: 700;
  margin: 2vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: max-content;
}
.information__cart-recap__buttons span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2vw;
  height: 3vh;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
  supported by Chrome, Edge, Opera and Firefox */
}
.information__cart-recap__buttons span:hover {
  background-color: #d29723;
  color: #fff;
}
.information__cart-recap__buttons span[data-action='minus'] {
  border-right: 1px solid #d29723;
}
.information__cart-recap__buttons span[data-action='plus'] {
  border-left: 1px solid #d29723;
}
/**********
DETAIL
**********/
.formation__detail {
  padding: 3vh 0;
}
.formation__detail > h1 {
  font-size: 1.6em;
  margin-bottom: 3vh;
}
.formation__detail > p,
.formation__detail > ul,
.formation__detail > ol {
  font-size: 1.1em;
  margin-bottom: 2vh;
}
.formation__detail > ul,
.formation__detail > ol {
  margin-left: 2vw;
  list-style: initial;
}

/**********
CONTENT
**********/
.formation__content {
  width: 100%;
  height: auto;
  border: 1px solid #dfdfdf;
  border-radius: 0.25rem;
  background-color: #fff;
}
.formation__content:not(:last-child) {
  margin-bottom: 2vh;
}
.formation__content__header {
  padding: 2vh 1.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.formation__content__header > span {
  font-size: 1.1em;
  font-weight: 700;
  color: #d29723;
}
.formation__content__header > img {
  width: 0.5vw;
  height: auto;
}
.formation__content__body {
  width: 100%;
  height: 0;
  overflow-y: hidden;
  transition: height 500ms ease;
}
@keyframes reduce {
  from {
    height: 100%;
  }
  to {
    height: 0;
  }
}
@keyframes grow {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}
.formation__content__item {
  width: 100%;
  padding: 1.5vh 1.5vw;
  padding-right: 3vw;
  font-size: 1.1em;
}
.formation__content__body > .formation__content__item:nth-child(odd) {
  background-color: #f7f7f7;
}

/**********
TEACHER
**********/
.formation__teacher {
  width: 100%;
  display: flex;
}
.formation__teacher__profile {
  width: 10vw;
  text-align: center;
  margin-right: 3vw;
}
.formation__teacher__avatar {
  width: 10vw;
  height: 10vw;
  margin-bottom: 2vh;
  border-radius: 100%;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.formation__teacher__name {
  font-size: 1.2em;
  font-weight: 500;
}
.formation__teacher__job {
  font-size: 1.1em;
  font-weight: 300;
}
.formation__teacher__about {
  width: 100%;
}
.formation__teacher__title {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 1vh;
}
.formation__teacher__text {
  font-size: 1.1em;
  margin-bottom: 3vh;
}

/*********
OTHER
********/
.other {
  width: 100%;
  padding: 10vh 0;
}
.other__title {
  font-size: 2.3em;
  font-weight: 700;
  width: max-content;
  margin: 0 auto;
  margin-bottom: 5vh;
}
.other__carousel {
  width: 75vw;
  height: 60vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.other__container {
  width: 65vw;
  height: 100%;
}
.other__inner {
  width: 100%;
  height: 100%;
}
.other__arrow {
  width: 5vw;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 500ms ease;
}
.other__arrow.carousel__arrow--prev {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}
.other__arrow.carousel__arrow--next {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
.other__arrow:hover {
  background-color: rgba(210, 151, 35, 0.2);
}
.other__arrow img {
  width: 2vw;
  height: auto;
}
.other__slide {
  width: 65vw;
  height: 55vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2vw;
  padding: 2.5vh 2.5vw;
}
.other__card {
  width: 100%;
  height: 50vh;
  position: relative;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff;
  transition: transform 700ms ease;
}
.other__card:hover {
  transform: scale(1.05) translateY(-1vh);
}
.other__cover {
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 50%;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}
.other__body {
  width: 100%;
  height: 50%;
  padding: 2vh 1vw;
}
.other__name {
  font-size: 1.2em;
  font-weight: 500;
  color: #d29723;
  margin-bottom: 1vh;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.other__name--mobile {
  display: none;
}
.other__price {
  font-size: 1.2em;
  font-weight: 500;
  margin-bottom: 1vh;
}
.other__duration,
.other__level {
  display: flex;
  align-items: center;
}
.other__duration > img,
.other__level > img {
  width: 2vw;
  height: auto;
}
.other__link {
  width: 2vw;
  height: 2vw;
  background-color: #d29723;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
}
.other__link > img {
  width: 40%;
  height: auto;
}

@media only screen and (max-width: 1024px) {
  .header__body {
    width: 40vw;
  }
  .formation {
    width: 40vw;
  }
  .informations {
    width: 37vw;
  }
  .other__carousel {
    width: 85vw;
  }
  .other__container {
    width: 75vw;
  }
  .other__slide {
    width: 75vw;
  }
  .other__link {
    width: 3vw;
    height: 3vw;
  }
  .other__card:hover {
    transform: scale(1) translateY(0);
  }
  .information__share__container {
    opacity: 1;
    visibility: visible;
  }
}

@media only screen and (max-width: 768px) {
  .header {
    padding-left: 0;
  }
  .header__body {
    width: 80vw;
    margin: 0 auto;
  }
  .formation {
    width: 80vw;
    min-height: 0;
    height: auto;
    max-height: auto;
    margin: 0 auto;
    margin-bottom: 5vh;
  }
  .formation__block {
    max-height: 300vh;
    min-height: 0;
    padding-right: 0;
  }
  .formation__content__header > img {
    width: 2vw;
  }
  .informations {
    position: initial;
    width: 80vw;
    margin: 0 auto;
    margin-bottom: 30vh;
    padding: 2vh 3vw;
  }
  .informations__item__name > img {
    width: 5vw;
    margin-right: 1vw;
  }
  .information__share > img {
    width: 5vw;
    margin-right: 1vw;
  }
  .informations__button > img {
    width: 5vw;
    margin-right: 2vw;
  }
  .formation__teacher__profile {
    width: 25vw;
    margin-right: 5vw;
  }
  .formation__teacher__avatar {
    width: 25vw;
    height: 25vw;
  }
  .other__name {
    display: none;
  }
  .other__name--mobile {
    display: block;
  }
  .other__title {
    margin: 0 auto;
    width: 80vw;
    margin-bottom: 5vh;
    text-align: center;
  }
  .other__carousel {
    height: 76vh;
  }
  .other__slide {
    height: 71vh;
    grid-template-columns: 1fr;
    row-gap: 3vh;
  }
  .other__arrow img {
    width: 4vw;
  }
  .other__card {
    height: 20vh;
    display: flex;
  }
  .other__cover {
    width: 40%;
    height: 100%;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-top-right-radius: 0;
  }
  .other__body {
    width: 60%;
    height: 100%;
    padding: 2vh 2vw;
    padding-right: 4vw;
  }
  .other__link {
    width: 5vw;
    height: 5vw;
    top: 50%;
    right: 0;
    left: initial;
    transform: translate3d(0, -50%, 0);
  }
  .other__duration > img,
  .other__level > img {
    width: 5vw;
  }
  .other__price {
    margin-bottom: 0vh;
  }
  .informations__note {
    width: 75vw;
  }
  .other__arrow:hover {
    background-color: rgba(210, 151, 35, 0);
  }
  .information__share__inner {
    padding: 1vh;
  }
  .information__share__link {
    width: 6vw;
    height: 6vw;
    margin-right: 1.5vw;
    border-radius: 0.75rem;
  }
  .information__cart-recap__buttons span {
    width: 7vw;
    height: 3vh;
  }
  .information__item__dates__select select {
    padding: 1vh 2vw;
    padding-right: 4vw;
  }
  .information__item__dates__select img {
    right: 1vw;
    width: 2vw;
  }
  ul.information__payment li {
    margin-left: 5vw;
  }
}
