/* Alivi — chrome, popups, sticky, forms, lightbox (vanilla). */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100000;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}
.skip-link:focus {
  left: 8px;
}

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  margin-top: 16px;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.form-status[hidden] { display: none !important; }
.form-status:not([hidden]) { display: block; }
.form-status.is-ok { color: #2e7d32; }
.form-status.is-err { color: #c62828; }

/* Devis fields — source is underline + black text; force readable ink
   (vendor concat + autofill can otherwise paint white-on-white). */
.elementor-form .elementor-field-textual,
.elementor-form input.elementor-field,
.elementor-form textarea.elementor-field,
.elementor-form select.elementor-field {
  color: #111;
  -webkit-text-fill-color: #111;
  caret-color: #111;
  background-color: #fff;
}
.elementor-form input.elementor-field:-webkit-autofill,
.elementor-form textarea.elementor-field:-webkit-autofill {
  -webkit-text-fill-color: #111;
  box-shadow: 0 0 0 1000px #fff inset;
}
.elementor-17 .elementor-element-4da64230 .elementor-button[type="submit"] {
  color: #111;
  background-color: #fff;
  border: 1px solid #111;
}

.alivi-simpay-vitrine {
  border: 1px solid #111;
  padding: 28px 24px;
  font-family: Poppins, sans-serif;
}
.alivi-simpay-vitrine p { margin: 0 0 16px; color: #111; }
.alivi-simpay-vitrine .elementor-button {
  display: inline-block;
  border: 1px solid #111;
  border-radius: 50px;
  padding: 12px 28px;
  color: #111;
  background: #fff;
  text-transform: uppercase;
  font-size: 14px;
}

/* Sticky nav (Elementor sticky:top on header bar). */
.elementor-element-21f90b67.elementor-sticky--active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.elementor-sticky__spacer {
  display: none;
}
.elementor-sticky__spacer.is-on {
  display: block;
}

/* Popups — Elementor dialog chrome. */
.elementor-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  pointer-events: none;
  background: transparent;
}
.elementor-popup-modal[hidden] { display: none !important; }
.elementor-popup-modal .dialog-widget-content {
  pointer-events: all;
  background: transparent;
  max-width: 100%;
}
.elementor-popup-modal .dialog-message {
  display: flex;
  padding: 0;
  max-width: 100vw;
}
.elementor-popup-modal [data-elementor-type="popup"] {
  display: block !important;
}

#elementor-popup-modal-1228 {
  justify-content: flex-end;
  align-items: flex-end;
}
#elementor-popup-modal-1228 .dialog-message { width: 500px; }
@media (max-width: 1024px) {
  #elementor-popup-modal-1228 .dialog-message { width: 90vw; }
}
@media (max-width: 767px) {
  #elementor-popup-modal-1228 .dialog-message { width: 93vw; }
}

#elementor-popup-modal-996 {
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: all;
}
#elementor-popup-modal-996 .dialog-message {
  width: min(960px, 94vw);
  background: #fff;
}

/* Hero slideshow. */
.elementor-background-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.elementor-background-slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.elementor-background-slideshow__slide.is-active {
  opacity: 1;
  transform: translateY(0);
}
.elementor-background-slideshow__slide__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
}
.elementor-element-29b32d6d {
  position: relative;
}
.elementor-element-29b32d6d > .elementor-container,
.elementor-element-29b32d6d > .elementor-background-overlay {
  position: relative;
  z-index: 1;
}

/* Animated headline rotate. */
.elementor-headline-dynamic-wrapper {
  display: inline-block;
  position: relative;
  min-width: 8ch;
}
.elementor-headline-dynamic-text {
  display: none;
}
.elementor-headline-dynamic-text.elementor-headline-text-active {
  display: inline;
}

/* Reveal on scroll (Elementor invisible + animation). */
.elementor-invisible {
  opacity: 0;
}
.elementor-invisible.is-inview,
.elementor-invisible.animated {
  opacity: 1;
}

/* Lightbox. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none !important; }
.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

/* Default Hello pages (404 / paiement / merci). */
.page-default {
  max-width: 800px;
  margin: 80px auto 100px;
  padding: 0 24px;
  font-family: Poppins, sans-serif;
}
.page-default .entry-title {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 20px;
}
.page-default .page-content {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}
.page-default a { color: #2b90cf; }

/* YouTube overlay. */
.alivi-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #111;
}
.alivi-video iframe,
.alivi-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.alivi-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 64px;
}

/* Mobile nav open state (Elementor burger). */
@media (max-width: 1024px) {
  .elementor-nav-menu--dropdown.elementor-nav-menu__container:not(.elementor-nav-menu--main) {
    display: none;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  .elementor-menu-toggle.elementor-active + .elementor-nav-menu--dropdown,
  .elementor-nav-menu--dropdown.is-open {
    display: block;
  }
  .elementor-nav-menu--dropdown .sub-menu {
    display: none;
  }
  .elementor-nav-menu--dropdown .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }
}

/* Desktop dropdowns (Elementor SmartMenus remplacé). */
@media (min-width: 1025px) {
  .elementor-nav-menu--main .menu-item-has-children {
    position: relative;
  }
  .elementor-nav-menu--main .menu-item-has-children:hover > .sub-menu,
  .elementor-nav-menu--main .menu-item-has-children:focus-within > .sub-menu {
    display: block;
    z-index: 200;
  }
}

/* Popup 1228 — slideInRight 1.2s (source). */
#elementor-popup-modal-1228 .dialog-widget-content {
  animation-duration: 1.2s;
}

/* E-gallery fallback + hover grow. */
.elementor-gallery__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 767px) {
  .elementor-gallery__container { grid-template-columns: 1fr; }
}
.elementor-gallery__container.e-gallery-grid {
  --columns: 2;
  --hgap: 10px;
  --vgap: 10px;
  --aspect-ratio: 66.66%;
}
.elementor-gallery-item__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.e-animation-grow:hover,
.elementor-gallery-item.e-animation-grow:hover .e-gallery-image,
.elementor-animated-content:hover .e-gallery-image {
  transform: scale(1.08);
}

/* YouTube wrappers (Elementor video). */
.elementor-wrapper.elementor-open-inline,
.elementor-widget-video .elementor-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #111;
}
.elementor-wrapper .elementor-video,
.elementor-wrapper iframe,
.elementor-custom-embed-image-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background-size: cover;
  background-position: center;
}
.elementor-custom-embed-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 64px;
  cursor: pointer;
}

/* EAEL réalisations — grille si le JS Essential Addons est absent. */
.eael-filter-gallery-container {
  display: flex;
  flex-wrap: wrap;
}
.eael-filterable-gallery-item-wrap { box-sizing: border-box; }
.eael-gallery-grid-item img {
  width: 100%;
  height: auto;
  display: block;
}

html { scroll-behavior: smooth; }
