/*
 Theme Name:   Eliophot Base Theme Child
 Theme URI:    https://www.eliophot.com
 Description:  Thème enfant de Eliophot Base Theme
 Author:       Eliophot
 Author URI:   https://www.eliophot.com
 Template:     eliophot-base-theme
 Version:      2.5.0
*/

/* global */
#salle,
#cafe,
#brasserie,
#partenaires,
#programmation {
  scroll-margin-top: 110px;
}

@media screen and (max-width: 767px) {
  #salle,
  #cafe,
  #brasserie,
  #partenaires,
  #programmation {
    scroll-margin-top: 80px;
  }
}

/* Introduction */
.introduction {
  max-width: 1600px !important;
}

.introduction .elementor-widget-image {
  height: 100%;
}

/* marquee */
.marquee {
  overflow: hidden !important;
}

.marquee {
  flex-shrink: 0 !important;
}

.marquee .marquee-elt p {
  margin-bottom: 0 !important;
}

.marquee .marquee-1,
.marquee .marquee-2 {
  white-space: nowrap;
  flex-shrink: 0 !important;
}

.marquee .marquee-elt {
  white-space: nowrap;
  width: fit-content;
  display: inline-block;
  flex-shrink: 0 !important;
}

@keyframes marquee {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes marquee-bis {
  0% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(0%);
  }
}

.marquee .marquee-1 {
  animation: marquee 32s linear infinite;
}

.marquee .marquee-2 {
  animation: marquee-bis 32s -16s linear infinite;
}

/* sliders cafe theatre + brasserie */
.slider-main .swiper:before {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 462px;
  aspect-ratio: 462 / 629 !important;
  z-index: 20;
  pointer-events: none;
  background-image: url("/wp-content/uploads/2025/08/cadre-slider-1.svg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.slider-main .swiper-slide img {
  aspect-ratio: 412 / 560 !important;
}

.slider-main .elementor-widget-image {
  width: 100%;
  max-width: 412px;
  transition: filter 0.1s;
}

@media screen and (min-width: 1201px) {
  .slider-main .swiper-slide:not(.swiper-slide-active) .elementor-widget-image {
    filter: brightness(0.7);
  }
}

@media screen and (max-width: 1200px) {
  .slider-main .swiper:before {
    right: 50% !important;
    transform: translateX(50%) !important;
  }

  .slider-main.slider-brasserie .swiper:before {
    left: unset !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
  .slider-main .swiper-slide:not(.swiper-slide-next) .elementor-widget-image {
    filter: brightness(0.7);
  }
}

@media screen and (max-width: 767px) {
  .slider-main .swiper:before {
    width: 100% !important;
  }
}

/* slider cafe theatre */
.slider-main.slider-cafe .swiper:before {
  right: 0;
}

.slider-cafe:after {
  content: "" !important;
  position: absolute;
  top: -25px;
  z-index: 20;
  left: 50%;
  transform: translateX(-100%) rotate(-15deg);
  width: 183px;
  height: 68px;
  background-image: url("/wp-content/uploads/2025/09/lessentiel-logo_theatre.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media screen and (min-width: 1201px) and (max-width: 1366px) {
  .slider-cafe:after {
    left: 0%;
    transform: translateX(50px) rotate(-15deg);
  }
}

@media screen and (max-width: 1200px) {
  .slider-cafe:after {
    transform: translate(-50%, -50%);
    top: 0;
  }
}

/* slider brasserie */
.slider-main.slider-brasserie .swiper:before {
  left: 0;
}

.slider-brasserie:after {
  content: "";
  position: absolute;
  bottom: 0;
  z-index: 20;
  right: 50%;
  transform: translateX(100%) rotate(15deg);
  width: 135px !important;
  height: 135px !important;
  background-image: url("/wp-content/uploads/2025/09/lessentiel-logo_brasserie.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media screen and (min-width: 1201px) and (max-width: 1366px) {
  .slider-brasserie:after {
    right: 0%;
    transform: translateX(-50px) rotate(15deg);
  }
}

@media screen and (max-width: 1200px) {
  .slider-brasserie:after {
    transform: translate(50%);
    bottom: 0;
  }
}

@media screen and (max-width: 767px) {
  .slider-brasserie:after {
    width: 110px !important;
    height: 110px !important;
  }
}

/* programmation */
.program-wrapper {
  max-width: 1319px;
}

.grid-program .event {
  aspect-ratio: 423 / 612 !important;
}

@media screen and (min-width: 1201px) {
  .programs .event {
    position: relative;
    aspect-ratio: 423 / 612 !important;
  }

  .programs .event:hover .event-content {
    opacity: 1;
  }

  .programs .event .event-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s;
    background: rgba(0, 0, 0, 0.7);
  }
}

/* slider partenaires */
.slider-partners .swiper-slide .elementor-carousel-image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  background: radial-gradient(
    55.06% 55.06% at 50% 50%,
    rgba(253, 244, 1, 0.7) 0%,
    rgba(253, 244, 1, 0.14) 100%
  );
  filter: blur(20px);
  z-index: -1;
  border-radius: 999px !important;
  aspect-ratio: 1/1 !important;
}

.slider-partners .elementor-carousel-image {
  height: 121px;
}

.slider-partners .swiper-slide {
  align-content: center;
}

/* faq */
@media screen and (max-width: 767px) {
  .faq-container {
    background-image: none !important;
  }
}
