.next-event {}


.next-event.position-carrousel {
  aspect-ratio: 1;
  display: inline-block;
  width: 320px;
  position: relative;
  padding: 15px 15px 15px 40px;
  color: black;

}


.next-event svg {
  width: 40px;
  height: 40px;
  fill: var(--medium-orange);

}


.next-event .inner {
  position: absolute;
  bottom: 0;
  right: 0px;
  width: 100%;
  z-index: 10002;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: end;
  border: 1px solid black;
  border-right: none;
  border-radius: 50px 0 0 0;
  overflow: hidden;
  background-color: #F5F5F5;
  box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.5);

}

@keyframes next-event-shake {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }

  100% {
    transform: translateX(0);
  }
}

.next-event.position-carrousel .inner {
  transition: all 500ms ease-in-out 200ms;
  right: -330px;
}

.in-viewport .next-event.position-carrousel .inner {
  right: -10px;
  animation: next-event-shake 0.3s ease-in-out 500ms;
  /* Ajout du tremblement */
}



.next-event .header {
  text-align: center;
  white-space: nowrap;
  width: 100%;
  background-color: black;
  color: white;
  line-height: 1;

}

.next-event .picto {
  width: 48px;
  height: 40px;
  display: inline-block;
}

.next-event .picto svg {
  top: 0;
  right: 0;
}

.next-event .event {
  width: 100%;
  text-align: center;
  border-radius: 15px 0 0 15px;
  font-size: 0.9rem;
}

.next-event .event a {
  color: inherit;
  text-decoration: none !important;

}




.next-event .event-date,
.next-event .event-place {
  opacity: 0.7;
}

.next-event .event-title {
  max-width: 80%;
  margin: auto;
}

.next-event .event-date {
  line-height: 1.2;


}


article#next-event .sides {
  display: flex;
}

article#next-event .wordings {
  flex: 1;
  margin-right: 45px;
}

article#next-event .side {
  flex: 0 0 33%;
}

article#next-event .meta {
  background-color: var(--dark-blue);
  color: white;
  padding: 25px;
  border-radius: 7px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 2px 2px 4px #999;

}

article#next-event .meta h3 {
  text-align: center;
  color: white;
  text-transform: none;
  padding: 0 0 0 0 !important;
  margin: 0 0 0 0;
}

article#next-event .meta p {

  margin-bottom: 0 !important;
}

article#next-event .attachments {
  width: 100% !important;
  margin: 0 !important;
}

article#next-event .futurs_events {
  background-color: #f0f0f0;
}



@media screen and (max-width: 767px) {
  article#next-event .sides {

    flex-direction: column-reverse !important;
  }

  article#next-event .side {
    margin-bottom: 3rem;
  }
}