/* SecureBox — perf + mobile UX overrides (all pages) */

.sb-skip {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 100000;
  transform: translateY(-150%);
  background: #111729;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.sb-skip:focus {
  transform: none;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
  max-width: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

/* Kill WP/Smush huge intrinsic-size placeholder that inflates CLS */
img:is([sizes="auto" i], [sizes^="auto," i]),
img.lazyload,
img.lazyloading {
  contain-intrinsic-size: auto 300px !important;
}

iframe {
  max-width: 100%;
}

.elementor-button {
  transition: transform 0.2s ease;
}

.elementor-button:hover {
  transform: translateY(-2px);
}

:focus-visible {
  outline: 3px solid #0057ff;
  outline-offset: 2px;
}

@supports (content-visibility: auto) {
  [data-elementor-type="wp-page"] > .e-parent:nth-child(n + 3),
  [data-elementor-type="wp-post"] > .e-parent:nth-child(n + 3) {
    content-visibility: auto;
    contain-intrinsic-size: auto 640px;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-elementor-type="wp-page"] > .e-parent:nth-child(n + 2) .elementor-heading-title,
    [data-elementor-type="wp-post"] > .e-parent:nth-child(n + 2) .elementor-heading-title,
    [data-elementor-type="wp-page"] > .e-parent:nth-child(n + 2) .elementor-widget-image img,
    [data-elementor-type="wp-post"] > .e-parent:nth-child(n + 2) .elementor-widget-image img {
      animation: sb-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
    }
  }
}

@keyframes sb-rise {
  from {
    opacity: 0.4;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .elementor-button {
    transition: none;
  }

  .elementor-button:hover {
    transform: none;
  }
}

/* ——— Mobile / tablet ——— */
@media (max-width: 1024px) {
  .elementor-absolute {
    max-width: min(100%, 100vw);
  }

  .elementor-widget-image img,
  .elementor-image-carousel img,
  .swiper-slide-image {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  /* Compact sticky-feeling header: logo + actions + burger on one row */
  .elementor-844 .elementor-element-b3f8592 {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
  }

  .elementor-844 .elementor-element-b3f8592 > .e-con-inner {
    position: relative;
    padding-inline: 12px !important;
  }

  .elementor-844 .elementor-element-6517299 {
    --e-con-grid-template-columns: minmax(110px, 1fr) auto !important;
    --gap: 6px 6px !important;
    --row-gap: 6px !important;
    --column-gap: 6px !important;
    align-items: center !important;
    padding-right: 56px !important;
    min-height: 56px;
  }

  .elementor-844 .elementor-element-fc72078 {
    min-width: 0;
  }

  .elementor-844 .elementor-element-fc72078 img {
    width: auto !important;
    max-width: min(140px, 36vw) !important;
    max-height: 34px !important;
    height: auto !important;
  }

  .elementor-844 .elementor-element-213607c {
    --gap: 0 6px !important;
    --column-gap: 6px !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
  }

  /* Phone: icon only on mobile to free space for logo */
  .elementor-844 .elementor-element-af2f25e .elementor-button .elementor-button-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .elementor-844 .elementor-element-af2f25e .elementor-button {
    min-height: 44px;
    min-width: 44px;
    width: 44px;
    padding: 0 !important;
    font-size: 12px !important;
    justify-content: center !important;
  }

  .elementor-844 .elementor-element-af2f25e .elementor-button .elementor-button-icon {
    margin: 0 !important;
  }

  .elementor-844 .elementor-element-27e1f9d .elementor-button {
    min-height: 40px;
    padding: 8px 10px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    white-space: nowrap;
  }

  /* Burger overlays the top row (right), frees a full row of height */
  .elementor-844 .elementor-element-bb2ab47 {
    position: absolute !important;
    top: 0 !important;
    left: auto !important;
    right: 6px !important;
    width: 52px !important;
    max-width: 52px !important;
    min-height: 56px;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 20;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    --width: 52px !important;
  }

  .elementor-844 .elementor-element-bb2ab47 .elementor-widget-container,
  .elementor-844 .elementor-element-bb2ab47 .hfe-nav-menu {
    margin: 0 !important;
    width: 52px !important;
    max-width: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
  }

  /* Closed: hide panel; open handled below */
  .elementor-844 .elementor-element-bb2ab47 nav.hfe-nav-menu__layout-horizontal:not(.menu-is-active) {
    display: none !important;
  }

  /* Full-width mobile dropdown under header */
  .elementor-844 .elementor-element-bb2ab47 nav.hfe-nav-menu__layout-horizontal.menu-is-active,
  .elementor-844 nav.hfe-dropdown.menu-is-active,
  .elementor-844 .hfe-nav-menu__layout-horizontal.hfe-dropdown.menu-is-active {
    display: block !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    max-height: calc(100vh - 56px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 8px 0 24px !important;
    background: #fff !important;
    box-shadow: 0 16px 40px rgba(17, 23, 41, 0.18) !important;
    z-index: 1001 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Parent wrap stays 52px for the burger — force menu list full-bleed when open */
  .elementor-844 nav.menu-is-active ul.hfe-nav-menu,
  .elementor-844 nav.menu-is-active > ul,
  .elementor-844 nav.menu-is-active ul.sub-menu {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
    float: none !important;
    flex-direction: column !important;
  }

  .elementor-844 nav.menu-is-active li.menu-item {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
  }

  .elementor-844 nav.menu-is-active li.menu-item > a,
  .elementor-844 nav.menu-is-active li.menu-item > .hfe-menu-item,
  .elementor-844 nav.menu-is-active .hfe-sub-menu-item,
  .elementor-844 nav.menu-is-active .hfe-has-submenu-container {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    padding: 14px 20px !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    color: #111729 !important;
    box-sizing: border-box !important;
  }

  .elementor-844 nav.menu-is-active li.menu-item + li.menu-item {
    border-top: 1px solid #e8edf5;
  }

  .elementor-844 .hfe-nav-menu__toggle {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    pointer-events: auto !important;
  }

  html.sb-menu-open {
    overflow: hidden;
  }

  .elementor-844 .hfe-nav-menu-icon svg {
    width: 26px;
    height: 26px;
  }

  /* Hero: safer padding + mobile background (absolute path — works from any CSS URL) */
  .elementor-454 .elementor-element-18f0dc1 {
    --padding-top: 24px !important;
    --padding-bottom: 28px !important;
    --padding-left: 16px !important;
    --padding-right: 16px !important;
    padding: 24px 16px 28px !important;
    overflow: hidden !important;
  }

  .elementor-454 .elementor-element-18f0dc1 .e-con-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  /* Desktop-only overlays (blue shapes + cursor sticker) — hide on mobile */
  .elementor-454 .elementor-element-aa72d7d,
  .elementor-454 .elementor-element-51cf0a7,
  .elementor-element-aa72d7d,
  .elementor-element-51cf0a7 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .elementor-454 .elementor-element-18f0dc1:not(.elementor-motion-effects-element-type-background),
  .elementor-454 .elementor-element-18f0dc1 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: url("/assets/uploads/2025/07/hero-background-securebox-480.webp") !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  /* Sticker contrast if deferred CSS is slow */
  .elementor-454 .elementor-element-70fb7ea .elementor-heading-title,
  .elementor-454 .elementor-element-70fb7ea .elementor-widget-text-editor,
  .elementor-454 .elementor-element-70fb7ea .elementor-widget-text-editor p {
    color: #fff !important;
  }

  .elementor-454 .elementor-element-18f0dc1 .elementor-heading-title,
  .elementor .elementor-widget-heading .elementor-heading-title.elementor-size-default,
  h1.elementor-heading-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.02em;
    word-break: break-word;
  }

  .elementor-454 .elementor-element-18f0dc1 .elementor-element-9f4a6c0 .elementor-widget-text-editor,
  .elementor-454 .elementor-element-18f0dc1 .elementor-element-9f4a6c0 .elementor-widget-text-editor p {
    font-size: 16.5px !important;
    line-height: 1.5 !important;
  }

  h2.elementor-heading-title {
    font-size: clamp(1.35rem, 5.4vw, 1.75rem) !important;
    line-height: 1.25 !important;
  }

  h3.elementor-heading-title {
    font-size: clamp(1.15rem, 4.6vw, 1.4rem) !important;
    line-height: 1.3 !important;
  }

  .elementor-widget-text-editor,
  .elementor-widget-text-editor p {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  /* Touch-friendly CTAs */
  .elementor-button.elementor-size-sm,
  .elementor-button.elementor-size-md,
  .elementor-button.elementor-size-lg,
  a.elementor-button {
    min-height: 44px;
    padding-block: 12px !important;
    padding-inline: 16px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .elementor-button-wrapper {
    width: 100%;
  }

  .elementor-button-wrapper .elementor-button {
    width: auto;
    max-width: 100%;
  }

  /* Stack dense grids / prevent horizontal squeeze */
  .e-con.e-grid {
    --e-con-grid-template-columns: 1fr !important;
  }

  .elementor-844 .elementor-element-6517299 {
    --e-con-grid-template-columns: minmax(0, 1fr) auto !important;
  }

  /* Cards / sections breathing room */
  .e-con-inner {
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }

  [data-elementor-type="wp-page"] > .e-parent,
  [data-elementor-type="wp-post"] > .e-parent {
    --padding-left: 0px;
    --padding-right: 0px;
  }

  /* Decorative absolutes shouldn't steal taps or cause layout jump */
  .elementor-absolute {
    pointer-events: none;
  }

  .elementor-absolute a,
  .elementor-absolute button {
    pointer-events: auto;
  }

  /* Forms: 16px avoids iOS focus zoom; large tap areas */
  input,
  select,
  textarea,
  .forminator-input,
  .forminator-textarea,
  .forminator-select--field {
    font-size: 16px !important;
    line-height: 1.4 !important;
    max-width: 100%;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="search"],
  select,
  textarea,
  .forminator-input,
  .forminator-textarea,
  button[type="submit"],
  .forminator-button-submit {
    min-height: 48px;
    border-radius: 10px;
  }

  .forminator-radio-image,
  label.forminator-radio {
    min-height: 48px;
  }

  /* Carousels: keep inside viewport */
  .swiper,
  .elementor-image-carousel-wrapper,
  .elementor-swiper {
    overflow: hidden;
    max-width: 100%;
  }

  /* CookieScript / Cookiebot — fully suppressed */
  #cookiescript_injected_wrapper,
  #cookiescript_injected,
  #CookiebotWidget,
  #CookieBot,
  .cookiescript_badge,
  div[id*="cookiescript"],
  div[class*="cookiescript"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
  }

  /* Footer links more tappable */
  footer a,
  .elementor-location-footer a {
    display: inline-block;
    padding: 6px 0;
    min-height: 44px;
    line-height: 1.4;
  }

  /* Contrast boost for muted body copy */
  .elementor-widget-text-editor,
  .elementor-icon-list-text {
    color: #3a4458;
  }

  /* Reservation form: stack box choice cards */
  .forminator-radio-inline,
  .forminator-field-radio .forminator-radio-image,
  ul.forminator-radio {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .forminator-radio,
  .forminator-radio-inline .forminator-radio,
  label.forminator-radio {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .forminator-radio-image,
  .forminator-radio-image span,
  .forminator-radio-image img {
    width: 100% !important;
    max-width: 100% !important;
  }

  .forminator-pagination--content,
  .forminator-pagination {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .forminator-button,
  .forminator-button-next,
  .forminator-button-back,
  .forminator-button-submit {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Custom reservation form (demande-de-reservation) */
  .cyqf05dtn {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .cvkm2npft {
    min-height: 44px;
  }

  .cvkm2npft .csu3c8cyr img {
    width: 100% !important;
    height: auto !important;
  }

  .c85myciws,
  .cxeotn1vu {
    grid-template-columns: 1fr !important;
  }

  input,
  select,
  textarea,
  .select-trigger,
  button.select-trigger {
    font-size: 16px !important;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .elementor-844 .elementor-element-27e1f9d .elementor-button {
    font-size: 10px !important;
    padding-inline: 8px !important;
  }

  .elementor-844 .elementor-element-fc72078 img {
    max-width: 112px !important;
  }
}

/* Safe areas (notched phones) */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* CookieScript / Cookiebot — fully suppressed (all viewports) */
#cookiescript_injected_wrapper,
#cookiescript_injected,
#CookiebotWidget,
#CookieBot,
.cookiescript_badge,
div[id*="cookiescript"],
div[class*="cookiescript"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* ——— Sticky offer bar (replaces hero price stickers on small screens) ——— */
.sb-offer-bar {
  display: none;
}

@media (max-width: 1024px) {
  /* Hide circular hero stickers — replaced by sticky bar */
  .elementor-454 .elementor-element-96b577e,
  .elementor-454 .elementor-element-70fb7ea,
  .elementor-454 .elementor-element-0a5743e,
  .elementor-454 .elementor-element-aa511ee,
  .elementor-454 .elementor-element-8d39a2f {
    display: none !important;
  }

  body.sb-has-offer-bar {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .sb-offer-bar {
    --sb-offer-slant: 18px;
    display: grid;
    grid-template-columns: minmax(132px, 1.05fr) minmax(120px, 1.15fr) 56px;
    align-items: stretch;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    height: 60px;
    padding: 0;
    text-decoration: none !important;
    color: inherit;
    border-radius: 999px;
    overflow: hidden;
    background: #0a1633;
    box-shadow: 0 12px 32px rgba(10, 22, 51, 0.38);
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    animation: sb-offer-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .sb-offer-bar__shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
      115deg,
      transparent 0%,
      transparent 42%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 58%,
      transparent 100%
    );
    background-size: 220% 100%;
    animation: sb-offer-shine 3.2s ease-in-out infinite;
    pointer-events: none;
  }

  .sb-offer-bar__price {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    padding: 0 calc(var(--sb-offer-slant) + 10px) 0 20px;
    background: #0057ff;
    color: #fff;
    clip-path: polygon(
      0 0,
      100% 0,
      calc(100% - var(--sb-offer-slant)) 100%,
      0 100%
    );
  }

  .sb-offer-bar__price em {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.92;
    line-height: 1;
  }

  .sb-offer-bar__price strong {
    font-size: clamp(1.05rem, 4.4vw, 1.22rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
  }

  .sb-offer-bar__gift {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: calc(var(--sb-offer-slant) * -1);
    padding: 0 calc(var(--sb-offer-slant) + 8px);
    font-size: clamp(0.84rem, 3.5vw, 0.98rem);
    font-weight: 800;
    color: #0a1633;
    background: #b9f27f;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    clip-path: polygon(
      var(--sb-offer-slant) 0,
      100% 0,
      calc(100% - var(--sb-offer-slant)) 100%,
      0 100%
    );
  }

  .sb-offer-bar__cta {
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: center;
    width: 44px;
    height: 44px;
    margin-right: 8px;
    border-radius: 999px;
    background: #fff;
    color: #0057ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 87, 255, 0.22);
    transition: transform 0.2s ease;
  }

  .sb-offer-bar__cta svg {
    width: 20px;
    height: 20px;
  }

  .sb-offer-bar:active .sb-offer-bar__cta,
  .sb-offer-bar:hover .sb-offer-bar__cta {
    transform: translateX(3px);
  }

  @media (max-width: 360px) {
    .sb-offer-bar {
      --sb-offer-slant: 14px;
      grid-template-columns: minmax(118px, 1fr) minmax(108px, 1.05fr) 50px;
      height: 56px;
    }

    .sb-offer-bar__price {
      padding-left: 16px;
    }

    .sb-offer-bar__gift {
      font-size: 0.78rem;
      white-space: normal;
    }

    .sb-offer-bar__cta {
      width: 40px;
      height: 40px;
      margin-right: 6px;
    }
  }

  @keyframes sb-offer-in {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes sb-offer-shine {
    0%,
    100% {
      background-position: 120% 0;
    }
    50% {
      background-position: -20% 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .sb-offer-bar,
    .sb-offer-bar__shine {
      animation: none;
    }
  }
}
