/**********
HEADER
**********/
.header {
  width: 100%;
  background-image: url('../assets/img/partenaire@2x.png');
  background-position: center 40%;
  background-size: cover;
  padding: 20vh 0;
  padding-bottom: 30vh;
  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: rgba(0, 0, 0, 0.6);
}
.header__title {
  font-size: 1.6em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 300;
  position: relative;
  z-index: 100;
}
/**********
LAST NEWS
**********/
.last-news {
  width: 60vw;
  height: 70vh;
  margin: 0 auto;
  margin-top: -16.5vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  column-gap: 1.5vw;
  row-gap: 3vh;
  position: relative;
  z-index: 1000;
  padding-bottom: 8vh;
  border-bottom: 1px solid #dfdfdf;
}
.last-news__item {
  background-color: #d29723;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.last-news__item::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.05) 20%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.8) 80%,
    rgba(0, 0, 0, 1)
  );
  border-radius: 0.25rem;
}
.last-news__cover {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-position: center center;
  background-size: cover;
  transition: transform 700ms ease-out;
}
.last-news__item:hover .last-news__cover {
  transform: scale(1.05);
}
.last-news__item--first {
  grid-column: 1;
  grid-row: 1 / 3;
}
.last-news__item--second {
  grid-column: 2 / 4;
  grid-row: 1;
}
.last-news__item--third {
  grid-column: 2 / 4;
  grid-row: 2;
}
.last-news__link {
  width: 2vw;
  height: 2vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d29723;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate3d(-50%, -50%, 0);
  z-index: 100;
}
.last-news__link > img {
  width: 50%;
  height: auto;
}
.last-news__item--first .last-news__link {
  left: 0;
}
.last-news__body {
  width: 100%;
  color: #fff;
  padding: 1.5vh 1vw;
  position: relative;
  z-index: 100;
}
.last-news__title {
  font-size: 1.5em;
  font-weight: 500;
  width: 60%;
}
.last-news__item--first .last-news__title {
  width: 100%;
}
.last-news__description {
  font-size: 1em;
  width: 60%;
  font-weight: 300;
  margin-bottom: 1vh;
}
.last-news__item--first .last-news__description {
  width: 100%;
}
.last-news__date {
  width: max-content;
  font-size: 0.8em;
  font-weight: 300;
}
/**********
NEWS
**********/
.news {
  width: 60vw;
  padding: 5vh 0;
  background-color: #fff;
  margin: 0 auto;
}
.news--mobile {
  display: none;
}
.news__title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 5vh;
}
.news__row {
  width: 100%;
  height: 25vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.5vw;
  margin-bottom: 5vh;
}
.news__card {
  width: 100%;
  height: 100%;
  border-radius: 0.25rem;
  color: #fff;
  perspective: 70em;
}
.news__card__inner {
  width: 100%;
  height: 100%;
  position: relative;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition: transform 1000ms ease;
  transform-style: preserve-3d;
}
.news__card:hover .news__card__inner {
  transform: rotateY(-0.5turn);
}
.news__card__front,
.news__card__back {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.news__card__back {
  transform: rotateY(0.5turn);
}
.news__card__body {
  width: 100%;
  height: 100%;
  padding: 1.5vh 1vw;
  background-position: center center;
  background-size: cover;
  position: relative;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.news__card__body::after {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
  border-radius: 0.25rem;
  z-index: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.05) 20%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 70%,
    rgba(0, 0, 0, 0.8) 80%,
    rgba(0, 0, 0, 1)
  );
}
.news__card__title {
  width: 80%;
  font-size: 1em;
  font-weight: 500;
  position: relative;
  z-index: 100;
  transform: translateZ(3rem);
}
.news__card__description {
  width: 80%;
  font-size: 0.8em;
  font-weight: 300;
  position: relative;
  z-index: 100;
  transform: translateZ(3rem);
}
.news__card__date {
  font-size: 0.7em;
  font-weight: 300;
  position: relative;
  z-index: 100;
  transform: translateZ(3rem);
}
.news__card__link {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #d29723;
  width: 3vw;
  height: 3vw;
  position: relative;
  z-index: 100;
  transform: translateZ(3rem);
}
.news__card__link > img {
  width: 40%;
  height: auto;
}
.news__card__link--mobile {
  display: none;
}
.news__card__back .news__card__body {
  justify-content: center;
  align-items: center;
}
.news__view-more {
  width: max-content;
  margin: 0 auto;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 500;
  text-align: center;
  padding: 2vh 0;
}
.news__view-more:hover {
  text-decoration: underline;
}
.news__view-more > img {
  width: 1.5vw;
  height: auto;
}
/**********
NEWS HEADER
**********/
.news-header {
  width: 100%;
  padding: 15vh 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-bottom: 5vh;
}
.news-header::after {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 100;
  content: '';
}
.news-header__cover {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-position: center center;
  background-size: cover;
  transition: transform 800ms ease;
  z-index: 0;
}
.news-header:hover .news-header__cover {
  transform: scale(1.1);
}
.news-header__title {
  width: 60vw;
  margin: 0 auto;
  font-size: 2.3em;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2vh;
  position: relative;
  z-index: 700;
}
.news-header__date {
  width: max-content;
  margin: 0 auto;
  font-size: 1.2em;
  color: #d29723;
  font-weight: 500;
  position: relative;
  z-index: 500;
}
.news-author {
  width: 60vw;
  margin: 0 auto;
  padding: 1.5vh 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  font-size: 1.2em;
  font-weight: 500;
  margin-bottom: 5vh;
}
.news-content {
  width: 60vw;
  margin: 0 auto;
  margin-bottom: 5vh;
  padding-top: 10vh;
}
.news-content > p,
.news-content > ul,
.news-content > ol {
  font-size: 1.1em;
}
.news-content > h2 {
  font-size: 1.3em;
}
.news-content > ul,
.news-content > ol {
  list-style: initial;
}
.news-content > ul > li,
.news-content > ol > li {
  margin-left: 2vw;
}
.news-content > p > a,
.news-content > ul > li > a,
.news-content > ol > li > a {
  color: #d29723;
  font-weight: 500;
}
.news-content > p > a:hover,
.news-content > ul > li > a:hover,
.news-content > ol > li > a:hover {
  text-decoration: underline;
}
.news-share {
  width: 60vw;
  margin: 0 auto;
  display: flex;
}
.news-share__link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #d29723;
  width: 3vw;
  height: 3vw;
  border-radius: 100%;
}
.news-share__link > img {
  width: 50%;
  height: auto;
}
.news-share .news-share__link:not(:last-child) {
  margin-right: 1vw;
}

@media only screen and (max-width: 1024px) {
  .last-news {
    width: 70vw;
  }
  .news {
    width: 70vw;
  }
  .news__card:hover .news__card__inner {
    transform: rotateY(0);
  }
  .news__card__back {
    display: none;
  }
  .news__card__link--mobile {
    display: flex;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate3d(-50%, 50%, 0);
  }
  .news__card__title,
  .news__card__description,
  .news__card__date {
    width: 100%;
    transform: translateZ(0);
  }
}

@media only screen and (max-width: 768px) {
  .last-news {
    width: 85vw;
    height: 80vh;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 3fr 2fr 2fr;
    column-gap: 3vw;
    row-gap: 2vh;
    padding-bottom: 5vh;
  }
  .last-news__item--first {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .last-news__item--second {
    grid-column: 1;
    grid-row: 2 / 4;
  }
  .last-news__item--third {
    grid-column: 2;
    grid-row: 2 / 4;
  }
  .last-news__body {
    padding: 2vh 3vw;
  }
  .last-news__title,
  .last-news__description {
    width: 100%;
  }
  .last-news__title {
    font-size: 1.3em;
  }
  .last-news__description {
    font-size: 1.1em;
    margin-bottom: 0.5vh;
  }
  .last-news__date {
    font-size: 0.9em;
  }
  .news {
    display: none;
  }
  .news--mobile {
    display: block;
    width: 85vw;
    padding: 3vh 0;
  }
  .news__row {
    height: 25vh;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4vw;
    margin-bottom: 3vh;
  }
  .news__card {
    font-size: 1.1em;
  }
  .news__card__body {
    padding: 1vh 2vw;
  }
  .news__card__link {
    width: 6vw;
    height: 6vw;
  }
  .news__view-more > img {
    width: 4vw;
  }
  .news-header__title {
    width: 80vw;
    font-size: 2.1em;
  }
  .news-header__date {
    font-size: 1.3em;
  }
  .news-author {
    width: 80vw;
  }
  .news-content {
    width: 80vw;
    padding-top: 5vh;
  }
  .news-content > ul > li,
  .news-content > ol > li {
    margin-left: 5vw;
  }
  .news-share {
    width: 80vw;
  }
  .news-share__link {
    width: 8vw;
    height: 8vw;
  }
  .news-share .news-share__link:not(:last-child) {
    margin-right: 3vw;
  }
}

@media only screen and (max-width: 420px) {
  .last-news {
    height: 60vh;
  }
}
