/* -------------------------------- */
/* --- Timeline horizontale --- */
/* -------------------------------- */
.custom-timeline {
  display: flex;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-left: 0;
  padding: 0;
  margin-top: 3rem;
}

.custom-timeline-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 180px;
  display: flex;
  align-items: flex-start;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

.custom-timeline:not(.custom-timeline-vertical) {
  align-items: stretch;
}

.custom-timeline:not(.custom-timeline-vertical) .custom-timeline-item {
  height: auto;
}

.custom-timeline-item-1 {
  z-index: 8;
}

.custom-timeline-item-2 {
  z-index: 7;
}

.custom-timeline-item-1,
.custom-timeline-item-5 {
  background-color: #BB2826;
  color: #fff;
}

.custom-timeline-item-2,
.custom-timeline-item-6 {
  background-color: #E62D31;
  color: #fff;
}

.custom-timeline-item-3 {
  background-color: #F39698;
  color: #121317;
  z-index: 6;
}

.custom-timeline-item-4 {
  background-color: #FAD5D6;
  color: #121317;
  z-index: 5;
}

.custom-timeline-item-5 {
  z-index: 4;
}

.custom-timeline-item-6 {
  z-index: 3;
}

.custom-timeline-item:not(:last-child) {
  margin-right: -1px;
  clip-path: polygon(0 0, 95% 0, 95% 8%, 100% 50%, 95% 92%, 95% 100%, 0 100%);
}

.custom-timeline-item:not(:first-child) {
  margin-left: -2rem;
}

.custom-timeline-item:only-child {
  clip-path: none;
}

.custom-timeline-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
}

.custom-timeline-icon img {
  height: 56px;
  width: 56px;
}

.custom-timeline-item h5 {
  letter-spacing: 2%;
  font-size: 1rem;
  font-weight: 400;
  line-height: 120%;
  text-align: center;
  font-family: 'Blogger Sans', 'Ubuntu', sans-serif;
  margin-bottom: .5rem;
}

.custom-timeline-text,
.custom-timeline-text p {
  text-align: center;
  line-height: 150%;
}

/* -------------------------------- */
/* --- Timeline verticale --- */
/* -------------------------------- */

.timeline-wrapper {
  div:first-child {
    flex: 1;
  }

  div:nth-child(2) {
    flex: 2;
  }
}

.custom-timeline-vertical {
  flex-direction: column;
  overflow: visible;
  padding-right: 0;
  gap: 0;
}

.custom-timeline-vertical .custom-timeline-item {
  position: relative;
  flex: none;
  width: 100%;
  margin: 0 0 -1.2rem 0 !important;
  padding: 2rem 1.5rem 2rem;
  min-height: 100px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon( 0 0, 100% 0, 100% 85%, 85% 85%, 50% 100%, 15% 85%, 0 85%);
}

.custom-timeline-vertical .custom-timeline-content {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 2rem;
  gap: 1rem;
}

.custom-timeline-vertical .custom-timeline-item:nth-child(1) {
  z-index: 6;
}

.custom-timeline-vertical .custom-timeline-item:nth-child(2) {
  z-index: 5;
}

.custom-timeline-vertical .custom-timeline-item:nth-child(3) {
  z-index: 4;
}

.custom-timeline-vertical .custom-timeline-item:nth-child(4) {
  z-index: 3;
}

.custom-timeline-vertical .custom-timeline-item:nth-child(5) {
  z-index: 2;
}

.custom-timeline-vertical .custom-timeline-item:nth-child(6) {
  z-index: 1;
}

.custom-timeline-vertical .custom-timeline-item:last-child {
  margin-bottom: 0 !important;
  clip-path: none;
}

.custom-timeline-vertical .custom-timeline-item:only-child {
  margin: 0 !important;
  clip-path: none;
}


@media (max-width: 767px) {
  .custom-timeline:not(.custom-timeline-vertical) {
    flex-direction: column;
    overflow: visible;
    isolation: isolate;
  }

  .custom-timeline:not(.custom-timeline-vertical) .custom-timeline-item {
    position: relative;
    flex: none;
    width: 100%;
    min-height: 150px;
    padding: 2rem;
    box-sizing: border-box;
    margin: 0 0 -2rem 0 !important;
  }

  .custom-timeline:not(.custom-timeline-vertical) .custom-timeline-item:not(:last-child) {
    margin-right: -1px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), 50% 100%, 0 calc(100% - 25px));
  }
}
