@import url("https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box !important;
}

body,
html {
  font-family: "Work Sans", sans-serif !important;
  box-sizing: border-box;
  -webkit-font-smoothing: subpixel-antialiased;
  backface-visibility: hidden;
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 28px;
  color: #111;
}

::-webkit-scrollbar {
  width: 6px !important;
}

::-webkit-scrollbar-track {
  background: white !important;
}
::-webkit-scrollbar-thumb {
  background: #d69b2a !important;
}

/************************
*         HEADER
************************/
.header {
  max-width: 100vw;
  width: 100vw;
  position: relative;
  background-size: cover;
  background-position: center center;
  font-size: 1rem;
  padding-top: 15vh;
  padding-bottom: 30vh;
  background-image: url("../assets/img/partenaire@2x.png");
}

.header::after {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.8);
  content: "";
}

.header__head {
  position: relative;
  z-index: 50;
  color: #fff;
  width: 50vw;
  margin: 0 auto;
  text-align: center;
}

.header__title {
  font-size: 3.3em;
  font-weight: 500;
  margin-bottom: 4vh;
  animation: fade 1500ms forwards;
  animation-delay: 200ms;
  opacity: 0;
}

.header__subtitle {
  font-size: 1.6em;
  line-height: 1.8em;
  font-weight: 500;
  margin-bottom: 4vh;
  animation: fade 1500ms forwards;
  animation-delay: 400ms;
  opacity: 0;
}

.header__nav {
  font-size: 1.2em;
  font-weight: 300;
  animation: fade 1500ms forwards;
  animation-delay: 600ms;
  opacity: 0;
}

.header__nav a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.header__nav a:not(:last-child) {
  margin-right: 0.5em;
}

.header__nav a:hover {
  color: #111;
}

.header__nav span {
  margin-right: 0.5em;
}

@keyframes fade {
  from {
    transform: translateY(150%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/************************
*       LAST NEWS
************************/
.last-news {
  font-size: 1rem;
  height: 50vh;
  width: 71vw;
  margin: 0 auto;
  margin-top: -20vh;
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  overflow: visible;
}

.last-news--mobile {
  font-size: 1rem;
  height: 50vh;
  width: 71vw;
  margin: 0 auto;
  margin-top: -20vh;
  position: relative;
  z-index: 100;
  display: none;
  justify-content: space-between;
  overflow: visible;
}

.last-news a:hover {
  color: white;
  text-decoration: none;
}

.last-news__item {
  height: 100%;
  position: relative;
  transition: 1000ms ease;
  background-position: 0 center;
  background-size: cover;
  position: relative;
  padding: 3vh 1.5vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  text-decoration: none;
}

.last-news__item--left,
.last-news__item--right {
  width: 35.5vw;
  z-index: 100;
}

.last-news__item--left {
  order: 1;
}

.last-news__item--right {
  order: 3;
}

.last-news__item--middle {
  width: 19vw;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
  z-index: 200;
  order: 2;
  background-position: center center;
}

.last-news__item--middle::before,
.last-news__item--middle::after {
  content: "";
  height: 100%;
  width: 100%;
  background-color: #d29723;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 300;
  transition: 1000ms ease;
}

.last-news__item--middle::before {
  clip-path: polygon(0 0, 0.5vw 0, calc(15% + 0.5vw) 100%, 15% 100%);
}

.last-news__item--middle::after {
  clip-path: polygon(
    calc(100% - 0.5vw) 0,
    100% 0,
    85% 100%,
    calc(85% - 0.5vw) 100%
  );
}

.last-news__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 250;
  background-color: rgba(0, 0, 0, 0.6);
}

.last-news__title {
  position: relative;
  z-index: 300;
  width: 10vw;
  text-align: center;
  font-weight: 300;
  font-size: 1.6em;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: 1000ms ease;
}

.last-news__item--left .last-news__title {
  margin-left: 0;
  margin-right: auto;
}

.last-news__item--middle .last-news__title {
  margin-left: auto;
  margin-right: auto;
}

.last-news__item--right .last-news__title {
  margin-left: auto;
  margin-right: 0;
}

.last-news__date {
  text-align: center;
  position: relative;
  z-index: 300;
  font-size: 1em;
  font-weight: 300;
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%);
  transition: 800ms ease;
  transition-delay: 200ms;
}

.last-news__paragraph {
  text-align: center;
  position: relative;
  z-index: 300;
  width: 80%;
  margin: 0 auto;
  line-height: 1.5em;
  font-size: 1.2em;
  font-weight: 300;
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%);
  transition: 800ms ease;
  transition-delay: 200ms;
}

.last-news__button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  background-color: #d29723;
  display: none;
  justify-content: center;
  align-items: center;
  width: 4vw;
  height: 4vw;
  z-index: 500;
}

.last-news__button--mobile {
  display: none;
}
.last-news__button img {
  width: 2vw;
}

/* HIGHLIGHTED PART */

.last-news__item--highlighted {
  width: 56vw;
}

.last-news__item--left--highlighted,
.last-news__item--right--highlighted {
  z-index: 150;
  background-position: center center;
}

.last-news__item--left--highlighted ~ .last-news__item--middle {
  margin-right: -16vw;
  margin-left: -3vw;
}

.last-news__item--right--highlighted ~ .last-news__item--middle {
  margin-left: -16vw;
  margin-right: -3vw;
}

.last-news__item--middle--highlighted {
  clip-path: polygon(0 0, 100% 0, 96.5% 100%, 3.5% 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 96.5% 100%, 3.5% 100%);
  margin: 0 -15vw;
}

.last-news__item--middle--highlighted::before {
  clip-path: polygon(0 0, 0.5vw 0, calc(3.5% + 0.5vw) 100%, 3.5% 100%);
  -wbekit-clip-path: polygon(0 0, 0.5vw 0, calc(3.5% + 0.5vw) 100%, 3.5% 100%);
}

.last-news__item--middle--highlighted::after {
  clip-path: polygon(
    calc(100% - 0.5vw) 0,
    100% 0,
    96.5% 100%,
    calc(96.5% - 0.5vw) 100%
  );
  -webkit-clip-path: polygon(
    calc(100% - 0.5vw) 0,
    100% 0,
    96.5% 100%,
    calc(96.5% - 0.5vw) 100%
  );
}

.last-news__item--highlighted .last-news__overlay {
  background-color: none;
  background: linear-gradient(
    360deg,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.7) 30%,
    rgba(0, 0, 0, 0) 50%
  );
}

.last-news__item--highlighted .last-news__title {
  width: 70%;
  font-size: 2em;
  transform: translateY(0);
  margin-left: auto;
  margin-right: auto;
}

.last-news__item--highlighted .last-news__date,
.last-news__item--highlighted .last-news__paragraph {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.all-news {
  font-size: 1rem;
  width: 71vw;
  margin: 0 auto;
  border-top: 1px solid #999;
  margin-top: 7vh;
  padding-top: 7vh;
  padding-bottom: 5vh;
}

.all-news__title {
  font-size: 2.33em;
  font-weight: 700;
  margin-bottom: 7vh;
}

.all-news__row {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2vw;
  row-gap: 5vh;
  margin-bottom: 10vh;
}

.all-news__card {
  width: 100%;
  height: 25vh;
  perspective: 70em;
}

.all-news__card:hover .all-news__card__container {
  transform: rotateY(-0.5turn);
}

.all-news__card__container {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 1000ms ease;
  transform-style: preserve-3d;
}

.all-news__card__front,
.all-news__card__back {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.all-news__card__back {
  transform: rotateY(0.5turn);
}

.all-news__card__content {
  width: 100%;
  height: 100%;
  background-position: center center;
  background-size: cover;
  position: relative;
}

.all-news__card__content::after {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: "";
  background: linear-gradient(
    360deg,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0)
  );
  z-index: 10;
}

.all-news__card__body {
  width: 100%;
  height: 100%;
  z-index: 20;
  position: relative;
  padding: 2vh 1.5vw;
  display: flex;
}

.all-news__card__front .all-news__card__body {
  flex-direction: column;
  justify-content: flex-end;
}

.all-news__card__back .all-news__card__body {
  align-items: center;
  justify-content: center;
}

.all-news__card__title,
.all-news__card__date,
.all-news__card__paragraph,
.all-news__card__button {
  transform: translateZ(3em);
}

.all-news__card__title,
.all-news__card__date,
.all-news__card__paragraph {
  font-weight: 300;
  width: 80%;
  line-height: 1.5;
  color: #fff;
}

.all-news__card__title {
  font-size: 1.2em;
  margin-bottom: 0.5vh;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.all-news__card__date {
  font-size: 0.65em;
  margin-bottom: 0.5vh;
}

.all-news__card__paragraph {
  font-size: 0.85em;
}

.all-news__card__button {
  background-color: #d29723;
  width: 3vw;
  height: 3vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.all-news__card__button--mobile {
  display: none;
}

.all-news__card__button img {
  width: 60%;
}

.all-news__view-more {
  font-weight: 500;
  font-size: 1.3em;
  line-height: 1.5em;
  text-align: center;
  margin: 0 auto;
  cursor: pointer;
}

.all-news__view-more img {
  width: 2vw;
  height: auto;
  animation: bounceDown 1000ms infinite;
}

@keyframes bounceDown {
  0%,
  20%,
  53%,
  80%,
  100% {
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, -0.8em, 0);
  }
  40%,
  43% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, 1.2em, 0);
  }
  70% {
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, 0.2em, 0);
  }
  90% {
    transform: translate3d(0, -0.6em, 0);
  }
}

@media only screen and (max-width: 1366px) {
  .header {
    font-size: 0.71rem;
  }
  .last-news {
    font-size: 0.71rem;
  }
  .all-news {
    font-size: 0.71rem;
  }
}

@media only screen and (max-width: 1280px) {
  .header {
    font-size: 0.66rem;
  }
  .last-news {
    font-size: 0.66rem;
  }
  .all-news {
    font-size: 0.66rem;
  }
}

@media only screen and (max-width: 1024px) {
  .header {
    font-size: 0.53rem;
  }
  .header__title,
  .header__subtitle,
  .header__nav {
    opacity: 1;
    animation: none;
  }

  .last-news {
    display: none;
  }
  .last-news--mobile {
    display: flex;
    font-size: 0.53rem;
  }
  .last-news__item--highlighted .last-news__button {
    display: flex;
  }

  .all-news {
    font-size: 0.53rem;
  }
  .all-news__card:hover .all-news__card__container {
    transform: rotateY(0);
  }
  .all-news__card__back {
    display: none;
  }
  .all-news__card__button--mobile {
    display: flex !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
  }
  .all-news__card__title {
    width: 100%;
    font-size: 1.3em;
  }
  .all-news__card__date {
    display: none;
  }
  .all-news__view-more {
    font-size: 1.4em;
  }
}

@media only screen and (max-width: 768px) {
  .header {
    font-size: 1rem;
    padding-bottom: 15vh;
  }
  .header__head {
    width: 80vw;
  }

  .last-news--mobile {
    font-size: 1rem;
    flex-direction: column;
    height: auto;
    width: 80vw;
    margin-top: 5vh;
  }
  .last-news__item {
    padding: 3vh 5vw;
    padding-right: 20vw;
    justify-content: space-between;
  }
  .last-news__item--left,
  .last-news__item--middle,
  .last-news__item--right {
    width: 100%;
    clip-path: none;
    height: 20vh;
    margin: 0;
    transition: none;
  }
  .last-news__item--middle::after,
  .last-news__item--middle::before {
    width: 0;
    height: 0;
  }
  .last-news__overlay {
    background-color: rgba(0, 0, 0, 0.4);
  }
  .last-news__title {
    width: 100%;
    transform: translateY(0);
    transition: none;
    text-align: left;
  }
  .last-news__date,
  .last-news__paragraph {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: none;
    width: 100%;
    text-align: left;
  }
  .last-news__button--mobile {
    width: 5vw;
    height: 5vw;
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    display: block;
    z-index: 1000;
  }
  .last-news__button--mobile img {
    width: 100%;
    height: 100%;
  }

  .all-news {
    font-size: 1rem;
    width: 80vw;
    padding-bottom: 10vh;
  }
  .all-news__row {
    grid-template-columns: 1fr 1fr;
    row-gap: 3vh;
    margin-bottom: 10vh;
  }
  .all-news__card__body {
    padding: 2vh 3vw;
  }
  .all-news__card__button {
    width: 5vw;
    height: 5vw;
  }
  .all-news__card__date {
    display: none;
  }
  .all-news__card__title {
    font-size: 1.1em;
  }
  .all-news__view-more img {
    width: 5vw;
  }
}

@media only screen and (max-width: 420px) {
  .header {
    font-size: 0.53rem;
  }
  .last-news--mobile {
    font-size: 0.53rem;
  }
  .last-news__item {
    font-size: 1.1em;
  }
  .last-news__date {
    font-size: 1.1em;
  }
  .all-news {
    font-size: 0.53rem;
    padding-bottom: 7vh;
  }
  .all-news__row {
    row-gap: 2vh;
    margin-bottom: 7vh;
  }
  .all-news__card__title {
    font-size: 1.2em;
  }
}
