/* Réduction CLS + stabilité visuelle (navigation agentique) */

/* Réassurance accueil (acompte + sécurité pilotes) */
.nb-home-trust,
.nb-deposit-promo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 420px;
  width: 100%;
  text-align: right;
  color: #fff;
}

.nb-home-trust__item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.nb-home-trust__eyebrow,
.nb-deposit-promo__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #6b4423;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.nb-home-trust__eyebrow--safety {
  background: #1a2744;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.nb-home-trust__text,
.nb-deposit-promo__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}

.nb-home-trust__text strong,
.nb-deposit-promo__text strong {
  font-weight: 700;
}

.elementor-element-fad6766 .elementor-widget-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 767px) {
  .nb-home-trust,
  .nb-deposit-promo {
    align-items: flex-start;
    text-align: left;
    margin-top: 8px;
    max-width: 100%;
  }

  .nb-home-trust__item {
    align-items: flex-start;
  }

  .elementor-element-fad6766 .elementor-widget-container {
    justify-content: flex-start;
  }

  .nb-home-trust__text,
  .nb-deposit-promo__text {
    font-size: 13px;
  }
}

/* Accueil : jamais d’attente d’animation Elementor (LCP / CLS) */
body.home .elementor-invisible,
body.home .elementor-element.elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Contenir les décalages du wrapper Elementor accueil */
body.home .elementor-4627 {
  contain: layout style;
}

body.home .elementor-location-header,
body.home .elementor-4573 {
  min-height: 72px;
}

/* Bannière Google Translate (CLS tiers) */
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.skiptranslate,
body > .skiptranslate,
iframe.skiptranslate {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

body {
  top: 0 !important;
}

/* Bandeau trust : hauteur réservée (évite CLS) */
.nb-trust-top {
  min-height: 40px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .nb-trust-top {
    min-height: 58px;
  }

  body.home .elementor-4573 .elementor-element-ada41b1.header_sticky,
  body.home .elementor-4573 .elementor-element-ada41b1 > .elementor-container {
    min-height: 72px !important;
  }
}

/* Hero accueil (LCP mobile = image — section efc680d) */
body.home .elementor-4627 .elementor-element.elementor-element-efc680d {
  min-height: 420px;
  contain: layout style;
  background: url("/wp-content/uploads/2023/04/2.jpg") 50% 50% / cover no-repeat;
}

body.home .elementor-element-efc680d > .elementor-container {
  min-height: 240px;
}

@media (max-width: 767px) {
  body.home .elementor-4627 .elementor-element.elementor-element-efc680d {
    background-image: url("/wp-content/uploads/2023/04/2-768x432.jpg");
  }

  body.home .elementor-element-efc680d .elementor-background-video-container,
  body.home .elementor-element-efc680d .elementor-background-video-embed {
    display: none !important;
    pointer-events: none;
  }
}

/* Trustindex / avis Google — réserver l'espace avant chargement JS */
body.home .elementor-element-4f33693 {
  min-height: 280px;
  contain: layout style;
}

body.home .elementor-element-4f33693 .elementor-widget-text-editor {
  min-height: 240px;
}

/* Formulaire recherche vol (hero) — affichage immédiat, sans fade/slide */
body.home .ovabrw-search {
  min-height: 108px;
}

body.home .elementor-widget-ovabrw_search,
body.home .elementor-widget-ovabrw_search.elementor-invisible,
body.home .elementor-widget-ovabrw_search.animated,
body.home .elementor-element-cfc1f18,
body.home .elementor-element-7fd988b {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

body.home .ovabrw-search-form .ovabrw-s-field {
  min-height: 64px;
}

/* Logo mobile — dimensions fixes (évite CLS header) */
img.logo_mobile {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Vignettes vols */
.ova-product-thumbnail {
  display: block;
  aspect-ratio: 636 / 426;
  overflow: hidden;
  background: #f5ede4;
}

.ova-product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ova_head_product {
  min-height: 0;
}

/* Galerie fiche produit */
.single-product .ova-gallery-slideshow {
  min-height: 280px;
}

.single-product .ova-gallery-slideshow .item img,
.single-product .ova-gallery-slideshow .owl-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 636 / 426;
  object-fit: cover;
}

/* Header sticky — limiter le saut au chargement */
.elementor-element.header_sticky {
  min-height: 72px;
}

.menu-canvas > .container-menu {
  display: block;
}

/* Galerie accueil « Sous le soleil de Marrakech » — réduire CLS desktop */
body.home .ova-image-gallery-ft {
  min-height: 320px;
  contain: layout style;
}

body.home .ova-image-gallery-ft.four_column {
  min-height: 420px;
}

.ova-image-gallery-ft .item-fancybox-ft {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5ede4;
}

.ova-image-gallery-ft .item-fancybox-ft img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home .elementor-element-8eebe70 {
  min-height: 480px;
  contain: layout style;
}

@media (max-width: 768px) {
  body.home .elementor-element-efc680d {
    min-height: 480px;
  }

  body.home #main-content,
  body.home .inside-content {
    display: flex;
    flex-direction: column;
  }

  body.home .elementor-element-4f33693 {
    order: 2;
    min-height: 320px;
    contain: layout style;
  }

  body.home .elementor-element-63296a4 {
    order: 3;
  }
}

/* Prix cartes produit : éviter € / devise seuls sur une 2e ligne */
.ova-product-price .new-product-price,
.ova-product-price .price,
.ova-product-wrapper-price .new-product-price {
  white-space: nowrap;
}

/* SEO headings : conserver le look après démotion h2/h3 → p */
p.ova-product-title,
p.product-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

p.ova-product-title a,
p.product-title a {
  color: inherit;
  text-decoration: none;
}

.ova-title p.sub-title,
p.sub-title {
  margin: 0;
}

.ova-icon-box .iconbox p.title,
.elementor-icon-box-title,
p.elementor-icon-box-title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.ova-special-offer-2 p.title,
.ova-special-offer p.title,
p.nb-side-cart__title,
p.nb-mnav-popup__title,
p.nb-bw__title {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

body.home h1.title {
  margin: 0;
}

/* Accessibilité — contraste recherche vols + zones tactiles slider */
.ovabrw-search .ovabrw_datetimepicker,
.ovabrw-search input.ovabrw_datetimepicker,
.ovabrw-search .ovabrw-input input[type="text"] {
  color: #1a1a1a !important;
}

.ovabrw-search .ovabrw_datetimepicker::placeholder,
.ovabrw-search input.ovabrw_datetimepicker::placeholder {
  color: #4a4a4a !important;
  opacity: 1 !important;
}

.ovabrw-search .search-field label,
.ovabrw-search .ovabrw-label,
.ovabrw-search .label,
.ovabrw-search-template1 .search-field span,
.ovabrw-search-template1 .guestspicker,
.ovabrw-search-template1 .guestspicker-content {
  color: #1a1a1a !important;
}

.nb-trust-side__badge--deposit .nb-trust-side__tab {
  background: #6b4423 !important;
  background-color: #6b4423 !important;
}

.ova-product-slider .owl-dots,
.owl-carousel.ova-product-slider .owl-dots {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.ova-product-slider .owl-dots .owl-dot,
.owl-carousel.ova-product-slider .owl-dots button.owl-dot {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}

.ova-product-slider .owl-dots .owl-dot span,
.owl-carousel.ova-product-slider .owl-dots button.owl-dot span {
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #c4b5a5 !important;
  display: block !important;
}

.ova-product-slider .owl-dots .owl-dot.active span,
.ova-product-slider .owl-dots .owl-dot:hover span {
  background: #6b4423 !important;
}
