/*
 * Module ewlazerhomeslider
 * Structure indépendante d'Elementor et de Slick.
 */

.ew-lhs {
  --ew-lhs-gradient-start: var(--bleu-secondaire, #2e579f);
  --ew-lhs-gradient-end: var(--bleu-canard, #067d93);
  --ew-lhs-divider-width: 62px;
  --ew-lhs-white: #FFFFFF;

  position: relative;
  width: 100%;
  min-height: var(--ew-lhs-height, 470px);
  overflow: hidden;
  isolation: isolate;
  background: #f4f5f5;
}

.ew-lhs *,
.ew-lhs *::before,
.ew-lhs *::after {
  box-sizing: border-box;
}

.ew-lhs__slides {
  position: relative;
  min-height: inherit;
}

.ew-lhs__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: var(--ew-lhs-left-width, 50%) 1fr;
  min-height: var(--ew-lhs-height, 470px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ew-lhs-transition, 500ms) ease, visibility 0s linear var(--ew-lhs-transition, 500ms);
}

.ew-lhs__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
  z-index: 2;
}

.ew-lhs__content-panel {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  color: var(--ew-lhs-white);
  background: linear-gradient(233deg, var(--ew-lhs-gradient-start) 26%, var(--ew-lhs-gradient-end) 100%);
}

.ew-lhs__content {
  width: min(100%, 650px);
  margin-left: auto;
  padding: 30px;
}

.ew-lhs__subtitle,
.ew-lhs__title,
.ew-lhs__description,
.ew-lhs__description p {
  margin-top: 0;
}

.ew-lhs__subtitle {
  margin-bottom: 9px;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ew-lhs__title {
  margin-bottom: 20px;
  color: inherit;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.12;
}

h2.ew-lhs__title::before{
  display:none;
}

.ew-lhs__description {
  max-width: 490px;
  margin-bottom: 30px;
  color: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.42;
}

.ew-lhs__description > :last-child {
  margin-bottom: 0;
}

.ew-lhs__description a {
  color: inherit;
  text-decoration: underline;
}

.ew-lhs__description--desktop {
  display: block;
}

.ew-lhs__description--mobile {
  display: none;
}

.ew-lhs__button {
  position: relative;
  padding-left: 50px;
  border: none;
  color: var(--blanc);
  cursor: pointer;
  width: 352px;
  padding-bottom: 22px;
  font-size: 20px;
  text-transform: none;
  font-weight: 500;
  line-height: 0.8em;
  background: transparent;
}

.ew-lhs__button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background-image: url(/img/cms/template/soulignement-plus-before.svg);
  background-size: auto;
  background-repeat: no-repeat;
}

.ew-lhs__button::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% + 5px);
  transform: translateY(-50%);
  width: 350px;
  height: 38px;
  background-image: url(/img/cms/template/soulignement-plus-after.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s;
}

.ew-lhs__button:hover::after {
  background-size: calc(100% + 120px) 100%;
}

.ew-lhs__button:hover,
.ew-lhs__button:focus {
  color: var(--ew-lhs-white);
}

.ew-lhs__button:focus-visible,
.ew-lhs__arrow:focus-visible,
.ew-lhs__dot:focus-visible {
  outline: 3px solid var(--ew-lhs-white);
  outline-offset: 4px;
}

.ew-lhs__visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  background: #f4f5f5;
  height: 470px;
}

.ew-lhs__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--ew-lhs-height, 470px);
  object-fit: cover;
}

/*
 * Séparateur décoratif, réalisé en CSS pour ne pas dépendre d'un PNG.
 * La barre et l'arc peuvent être ajustés dans ce fichier si nécessaire.
 */

.ew-lhs__divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: calc(var(--ew-lhs-left-width, 50%) - 32px);
  width: var(--ew-lhs-divider-width);
  pointer-events: none;
}

.ew-lhs__divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 49%;
  width: 70px;
  height: 470px;
  background-image: url("/img/cms/template/lune-slider.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  pointer-events: none;
}

/*
 * Navigation : reprise du visuel historique Elementor.
 * L'ancienne version ne proposait qu'une flèche "suivante" ;
 * la navigation précédente reste disponible via les points.
 */

.ew-lhs__arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ew-lhs-white);
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

/* Le slider historique affichait seulement le bouton "suivant". */

.ew-lhs__arrow--prev {
  display: none !important;
}

.ew-lhs__arrow--next {
  right: 90px;
}

/* Le caractère ‹ / › présent dans le HTML est remplacé par les SVG existants. */

.ew-lhs__arrow span {
  display: none;
}

.ew-lhs__arrow--next::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: url("/themes/lazer/assets/img/fleche-lazer.svg") no-repeat center center;
  background-size: contain;
  transition: background-image 0.3s ease;
}

.ew-lhs__arrow--next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 90px;
  height: 90px;
  background: url("/img/cms/template/lune-bleu-btn.svg") no-repeat center center;
  background-size: contain;
  pointer-events: none;
  transform: translate(30px, -50%) rotate(90deg);
  transition: width 0.3s ease, height 0.3s ease;
}

.ew-lhs__arrow--next:hover,
.ew-lhs__arrow--next:focus-visible {
  background-color: var(--bleu-secondaire, #2e579f);
}

.ew-lhs__arrow--next:hover::before,
.ew-lhs__arrow--next:focus-visible::before {
  background-image: url("/themes/lazer/assets/img/fleche-lazer-blanc.svg");
}

.ew-lhs__arrow--next:hover::after,
.ew-lhs__arrow--next:focus-visible::after {
  width: 105px;
  height: 105px;
}

.ew-lhs__dots {
  position: absolute;
  z-index: 8;
  right: 28px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.ew-lhs__dot {
  position: relative;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 2px solid var(--ew-lhs-white);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 180ms ease;
}

.ew-lhs__dot:hover,
.ew-lhs__dot.is-active {
  transform: scale(1.08);
}

.ew-lhs__dot::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  left: 2px;
  border-radius: 50%;
  background: transparent;
}

.ew-lhs__dot:hover::before,
.ew-lhs__dot.is-active::before {
  background: var(--ew-lhs-white);
}

@media (max-width: 1100px) {
  .ew-lhs__content {
    padding-right: clamp(55px, 7vw, 100px);
    padding-left: clamp(35px, 7vw, 90px);
  }

  .ew-lhs__divider {
    --ew-lhs-divider-width: 50px;
  }

  .ew-lhs__divider::before {
    width: 96px;
  }

  .ew-lhs__divider::after {
    right: 8px;
    width: 104px;
  }
}

@media (max-width: 767px) {
  .ew-lhs,
  .ew-lhs__slides,
  .ew-lhs__slide {
    min-height: 0;
  }

  .ew-lhs__slide {
    display: block;
  }

  .ew-lhs__visual,
  .ew-lhs__divider {
    display: none;
  }

  .ew-lhs__content-panel {
    display: block;
    min-height: 0;
  }

  .ew-lhs__content {
    width: 100%;
    padding: 34px 20px 50px;
  }

  .ew-lhs__subtitle {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .ew-lhs__title {
    margin-bottom: 15px;
    font-size: 1.5rem;
  }

  .ew-lhs__description {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .ew-lhs__description--desktop {
    display: none;
  }

  .ew-lhs__description--mobile {
    display: block;
  }

  .ew-lhs__button {
    min-width: min(100%, 350px);
    padding-left: 57px;
    font-size: 21px;
  }

  .ew-lhs__button::before {
    left: 7px;
  }

  .ew-lhs__button::after {
    width: 370px;
  }

  .ew-lhs__arrow--next {
    display: none !important;
  }

  .ew-lhs__dots {
    right: 18px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ew-lhs__slide,
  .ew-lhs__button,
  .ew-lhs__arrow,
  .ew-lhs__dot {
    transition: none !important;
  }
}