/**
 * CONTENTS............You’re reading it!
 * BLOCK ACTUS...........................
 * LIGNES ACTU...........................
 * ARROW.................................
 * DATES.................................
 * MEDIA QUERIES.........................
 */

/* ------------------------------------ *\
  ==BLOCK ACTUS
\* ------------------------------------ */

.actus {
  position: relative;
  padding: 0;
  margin: 2rem 0;
}

/* ------------------------------------ *\
  ==LIGNES ACTU
\* ------------------------------------ */

.views-timeline > li {
  box-shadow: 0 3px 6px #00000029;
  width: 47%;
  padding: 0;
  border-radius: 5px;
  background-color: #fff;
}

.views-timeline > li::after {
  background: #47bb8e;
  left: 105.6%;
  top: 50%;
}

.views-timeline > li:nth-child(even) {
  margin-left: 54%;
}

.actus .views-timeline {
  border-left: 0;
  margin: 0;
  padding: 0;
  position: relative;
}

.views-timeline .actutimeline__content {
  padding: 1rem;
  border-left: 0;
  border-right: 1px solid #00000029;
  min-height: 5rem;
}

.views-timeline > li:nth-child(even) .actutimeline__content {
  border-left: 1px solid #00000029;
}

/* ------------------------------------ *\
  ==ARROW
\* ------------------------------------ */

.views-timeline::before {
  position: absolute;
  height: 100%;
  left: 50%;
  border-color: #d3d3d3;
  border-width: 0 0 0 0.15rem;
  border-style: solid;
  content: '';
}

.views-timeline > li:nth-child(even)::after {
  left: -9.5%;
}

/* ------------------------------------ *\
  ==DATE
\* ------------------------------------ */

.views-timeline .actutimeline__date {
  padding: 1rem;
  position: absolute;
  right: 0;
  font-family: Poppins, sans-serif;
  text-align: center;
  align-self: center;
}

.views-timeline .actutimeline__date span {
  display: block;
  line-height: 1.3rem;
}

.views-timeline > li:nth-child(even) .actutimeline__date {
  position: relative;
}

.actutimeline__month,
.actutimeline__year {
  font-size: 0.875rem;
  color: #535353;
}

.actutimeline__day {
  font-size: 1.375rem;
  color: #101227;
}

.views-timeline > li:nth-child(odd) .actutimeline__date::after {
  position: absolute;
  display: inline-block;
  content: '';
  height: 0;
  width: 0;
  border-top: 13px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 15px solid #00558b;
  top: 44%;
  left: 100%;
}

.views-timeline > li:nth-child(even) .actutimeline__date::after {
  position: absolute;
  display: inline-block;
  content: '';
  height: 0;
  width: 0;
  border-top: 13px solid transparent;
  border-right: 15px solid #00558b;
  border-bottom: 17px solid transparent;
  top: 44%;
  right: 100%;
}

/* ------------------------------------ *\
  ==MEDIA QUERIES
\* ------------------------------------ */

@media screen and (width <= 63.9375em) {
  .actus {
    padding: 0 3rem;
  }

  .views-timeline > li:nth-child(even) {
    margin-left: 0;
  }

  .views-timeline > li {
    box-shadow: 0 3px 6px #00000029;
    width: 100%;
    margin-bottom: 2rem;
  }

  .views-timeline > li .actutimeline__date {
    position: relative;
    padding: 0;
  }

  .views-timeline > li:nth-child(even) .actutimeline__date::after,
  .views-timeline > li:nth-child(odd) .actutimeline__date::after {
    display: none;
  }

  .views-timeline > li:nth-child(even)::after,
  .views-timeline > li::after {
    left: -1.3rem;
  }

  .views-timeline::before {
    left: -1rem;
  }

  .views-timeline > li:nth-child(even) .actutimeline__content,
  .views-timeline .actutimeline__content {
    border-right: 0;
    border-left: 1px solid #00000029;
  }
}
