@font-face {
  font-family: "maax";
  src: url("../font/MaaxRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "maax";
  src: url("../font/MaaxRegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "maax";
  src: url("../font/MaaxBlack.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "maax";
  src: url("../font/MaaxBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "maax";
  src: url("../font/MaaxBoldItalic.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: "maax";
  src: url("../font/MaaxMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "maax";
  src: url("../font/MaaxMediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
}

.programmation_container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#programmation_container.loading {
  opacity: 0.5;
}

.programmation_mois h2 {
  font-size: 5rem !important;
  line-height: 1.2;
  margin: 120px 0 60px 0;
  font-family: "maax", sans-serif;
  text-align: center;
}

.mois_container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px 30px;
  margin-bottom: 50px;
}
@media (min-width: 768px) {
  .mois_container {
    grid-template-columns: repeat(3, 1fr);
    gap: 100px 30px;
  }
}
.mois_container .card__event {
  position: relative;
}

.card__event:hover .card__event__thumbnail img {
  transform: scale(1.1);
  transition-duration: 1s;
}

.mois_container .card__event a {
  display: block;
  height: 100%;
  text-decoration: none;
}

.mois_container .card__event .wrapper__alert {
  background-color: #ff0d3d;
  padding: 8px 15px;
  font-weight: bold;
  text-transform: uppercase;
  top: 0;
  color: #fff;
}

.mois_container .card__event__thumbnail {
  width: 100%;
  aspect-ratio: 1/1;
  margin: 0;
  max-height: 350px;
  overflow: hidden;
}

.mois_container .card__event__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transform: scale(1);
  transition-duration: 1s;
}

.mois_container .card__event .card__event__info {
  position: relative;
  padding: 0 35px 16px 16px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 350px);
  justify-content: space-between;
}

.mois_container .card__event .card__event__date {
  position: absolute;
  bottom: calc(100% - 12px);
  display: flex;
  flex-direction: column;
  color: #000;
  font-size: 1.4rem;
  font-weight: 500;
  padding: 2px 6px;
}

.mois_container .card__event .card__event__date span {
  color: #ff0d3d;
}

.mois_container .card__event .card__event__title {
  padding: 8px 0;
  padding-top: 35px;
}

.mois_container .card__event .card__event__subtitle {
  padding-bottom: 8px;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.mois_container .card__event .card__event__cat {
  border-top: 1px solid #fff;
  margin-bottom: 0 !important;
  margin-top: 60px !important;
  padding-top: 14px;
  /* padding-top: 5px; */
}

.card__event__info:after {
  content: "+";
  font-size: 3.5rem;
  color: #fff;
  font-weight: bold;
  bottom: 11px;
  right: 10px;
  line-height: 1;
  position: absolute;
}

#select_mois_programmation {
  width: 200px;
  border: 1px solid #000;
  padding: 10px 15px;
  appearance: none;
  background: url(../images/icons/angle_down.svg) no-repeat 92%;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto;
  display: flex;
}

.no_events {
  text-align: center;
  font-weight: bold;
  font-size: 2rem;
}

#events_widget_new {
  width: 80%;
  position: relative;
}

@media (min-width: 992px) {
  .module_agenda_wrapper .slick-prev:before,
  .block__calendar .slick-next:before {
    content: url(../images/icons/angle_slider.svg);
  }

  .module_agenda_wrapper .slick-next {
    -webkit-transform: rotate(180deg) !important;
    transform: rotate(180deg) !important;
    top: 50%;
  }
}

.day-name {
  text-align: center;
  font-size: 18px;
  position: relative;
  padding: 20px 0;
}

#events_widget_new .slick-prev:before,
#events_widget_new .slick-next:before {
  content: url(../images/icons/angle_slider.svg);
}

.day.has-event {
  position: relative;
}

.day.has-event .block__calendar__date__event {
  position: absolute;
}

.day.has-event .day-name {
  font-weight: bold;
}

.day.has-event .day-name:before {
  content: "";
  display: flex;
  width: 20px;
  height: 30px;
  background: url(../images/icons/angle_down.svg) no-repeat 0 2px;
  background-size: contain;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translate(-50%, 0px);
}

#Events_by_Day .link_Display_Event {
  text-decoration: none;
  color: #000;
  display: block;
  padding: 30px 20px;
  position: relative;
  border-top: 1px solid #000;
}

#Events_by_Day .link_Display_Event::after {
  content: "+";
  font-size: 3.5rem;
  color: #fff;
  font-weight: bold;
  right: 20px;
  line-height: 1;
  position: absolute;
  color: #ff0d3d;
  bottom: calc(50% - 20px);
}

.module_agenda_wrapper .slick-track {
  margin-left: 0;
}

/* ARCHIVES */

#filtre_archive {
  display: flex;
  justify-content: center;
  position: relative;
  border: 1px solid #000;
  width: fit-content;
  margin: 0 auto;
}

#select_filtre_archive {
  appearance: none;
  /* border: 1px solid #000; */
  padding: 10px 65px 10px 15px;
  font: 800 2rem / 2rem "maax", sans-serif;
}

#filtre_archive:after {
  content: "";
  background: url(../images/icons/angle_down.svg) no-repeat;
  background-size: contain;
  width: 15px;
  height: 8px;
  position: absolute;
  right: 4%;
  top: 40%;
}

#backToTop {
  border-radius: 50%;
  background: #ff0d3d;
  color: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  z-index: 9;
  opacity: 0;
  bottom: -100%;
  right: 20px;
  transition-duration: 0.5s;
  transform: rotate(0);
  position: fixed;
}

#backToTop.show {
  position: fixed;
  bottom: 80px;
  right: 20px;
  opacity: 1;
  transition-duration: 0.5s;
}

#backToTop.show:hover {
  transform: rotate(360deg);
  cursor: pointer;
}

@media (min-width: 1280px) {
  #backToTop.show {
    bottom: 50px;
    right: 50px;
  }
}

.event_du_jour {
  display: none;
}

#events_widget_new .date button {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  position: relative;
  padding: 20px 10px 30px 10px;
  min-width: 130px;
}

#events_widget_new .date button:after {
  content: "";
  display: flex;
  background: url(/wp-content/themes/theme-lecarre/dist/images/icons/angle_down.svg)
    no-repeat center center;
  width: 15px;
  height: 15px;
  background-size: contain;
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translate(-50%, 0%);
  transition-duration: 0.5s;
}

#events_widget_new .date button:hover {
  cursor: pointer;
}

#events_widget_new .date button:hover:after {
  transform: translate(-50%, 30%);
  transition-duration: 0.5s;
}

.link_Display_Event:hover {
  background-color: #ff0d3d;
  transition-duration: 0.5s;
}

.link_Display_Event:hover p,
#Events_by_Day .link_Display_Event:hover::after {
  color: #fff;
  transition-duration: 0.5s;
}

.loading_title {
  font-size: 4rem;
  font-weight: 800;
  -webkit-font-feature-settings: "ss01";
  font-feature-settings: "ss01";
  line-height: 1.2;
  margin: 0;
}

.loading {
  opacity: 0.5;
}

.wp-block-embed.is-type-video.is-provider-youtube iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  .block__slider__item {
    aspect-ratio: 1/1 !important;
  }
}

.front a.lienRezo {
  color: #000;
  text-decoration: none !important;
}

.front a.lienRezo i {
  text-decoration: none;
}
