/* Navigation Jopic mobile — panneau Avada 507. */
@media (max-width: 800px) {
  html:has(#awb-oc-507.awb-show),
  body:has(#awb-oc-507.awb-show) {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  /* Déclencheur compact dans l'en-tête. */
  a.awb-oc-menu-item-link[href="#awb-oc__507"] {
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
    transition: background-color 180ms ease, border-color 180ms ease, scale 180ms ease !important;
    -webkit-tap-highlight-color: transparent;
  }

  a.awb-oc-menu-item-link[href="#awb-oc__507"]:active { scale: 0.93; }

  a.awb-oc-menu-item-link[href="#awb-oc__507"]:focus-visible {
    outline: 2px solid #ff8a20;
    outline-offset: 3px;
  }

  a.awb-oc-menu-item-link[href="#awb-oc__507"] .awb-menu__i {
    margin: 0 !important;
    color: #fff !important;
    font-size: 23px !important;
    line-height: 1 !important;
  }

  a.awb-oc-menu-item-link[href="#awb-oc__507"].awb-oc-active {
    border-color: rgba(255, 132, 25, 0.7) !important;
    background: rgba(241, 112, 0, 0.12) !important;
  }

  /* Le fond plein écran empêche le site blanc de ressortir lors d'un geste tactile. */
  #awb-oc-507.awb-off-canvas-wrap {
    inset: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden;
    background: #090705 !important;
    transition: opacity 240ms ease, visibility 240ms ease !important;
  }

  #awb-oc-507 .awb-off-canvas {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    opacity: 0;
    scale: 0.988;
    transition: opacity 260ms ease, scale 360ms cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  #awb-oc-507.awb-show .awb-off-canvas {
    opacity: 1;
    scale: 1;
  }

  #awb-oc-507 .awb-off-canvas-inner {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    background:
      radial-gradient(circle at 90% 5%, rgba(224, 91, 0, 0.11), transparent 31%),
      linear-gradient(155deg, #15100c 0%, #080605 55%, #030303 100%) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #awb-oc-507 .off-canvas-content {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding-bottom: env(safe-area-inset-bottom) !important;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: #8f3b07 transparent;
    -webkit-overflow-scrolling: touch;
  }

  #awb-oc-507 .off-canvas-content > .fusion-fullwidth:first-child {
    position: relative;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    border-top-width: 2px !important;
    border-top-color: #e9650b !important;
    background: transparent !important;
  }

  #awb-oc-507 .off-canvas-content > .fusion-fullwidth:first-child::before {
    content: "JOPIC  /  MENU";
    position: absolute;
    top: calc(25px + env(safe-area-inset-top));
    left: 22px;
    z-index: 12;
    color: rgba(255, 255, 255, 0.72);
    font-family: Inter, Arial, sans-serif;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.17em;
  }

  #awb-oc-507 .off-canvas-content > .fusion-fullwidth:first-child .fusion-layout-column {
    --awb-padding-top: 20px !important;
    --awb-padding-right: 22px !important;
    --awb-padding-bottom: 22px !important;
    --awb-padding-left: 22px !important;
  }

  #awb-oc-507 .fusion-column-wrapper > .fusion-separator:first-child { margin-top: 52px !important; }

  #awb-oc-507 .off-canvas-close {
    top: calc(13px + env(safe-area-inset-top)) !important;
    right: 14px !important;
    width: 40px;
    height: 40px;
    margin: 0 !important;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 17px !important;
    line-height: 1 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.065) !important;
    box-shadow: none;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, scale 180ms ease !important;
    -webkit-tap-highlight-color: transparent;
  }

  #awb-oc-507 .off-canvas-close:active {
    color: #fff !important;
    border-color: rgba(255, 132, 25, 0.72) !important;
    background: rgba(241, 112, 0, 0.14) !important;
    scale: 0.91;
  }

  #awb-oc-507 .off-canvas-close:focus-visible {
    outline: 2px solid #ff8a20;
    outline-offset: 3px;
  }

  #awb-oc-507 nav[aria-label="Menu sidebar"],
  #awb-oc-507 #menu-menu-sidebar { width: 100%; }

  #awb-oc-507 nav[aria-label="Menu sidebar"] { margin-bottom: 22px !important; }
  #awb-oc-507 #menu-menu-sidebar { gap: 0; }

  #awb-oc-507 #menu-menu-sidebar > li {
    width: 100%;
    margin: 0 !important;
    opacity: 0;
    translate: 0 10px;
    transition: opacity 260ms ease, translate 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  #awb-oc-507.awb-show #menu-menu-sidebar > li {
    opacity: 1;
    translate: 0 0;
  }

  #awb-oc-507.awb-show #menu-menu-sidebar > li:nth-child(1) { transition-delay: 65ms; }
  #awb-oc-507.awb-show #menu-menu-sidebar > li:nth-child(2) { transition-delay: 95ms; }
  #awb-oc-507.awb-show #menu-menu-sidebar > li:nth-child(3) { transition-delay: 125ms; }
  #awb-oc-507.awb-show #menu-menu-sidebar > li:nth-child(4) { transition-delay: 155ms; }
  #awb-oc-507.awb-show #menu-menu-sidebar > li:nth-child(5) { transition-delay: 185ms; }

  #awb-oc-507 #menu-menu-sidebar .awb-menu__main-background-default,
  #awb-oc-507 #menu-menu-sidebar .awb-menu__main-background-active { display: none !important; }

  #awb-oc-507 #menu-menu-sidebar > li > a {
    width: 100%;
    min-height: 57px;
    padding: 8px 5px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: Inter, Arial, sans-serif !important;
    font-size: clamp(18px, 5vw, 20px) !important;
    font-weight: 680 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.018em;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.095) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: color 160ms ease, padding-left 180ms ease, background-color 180ms ease !important;
    -webkit-tap-highlight-color: transparent;
  }

  #awb-oc-507 #menu-menu-sidebar > li > a::after {
    content: "›";
    margin-left: auto;
    color: rgba(255, 132, 25, 0.78);
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
  }

  #awb-oc-507 #menu-menu-sidebar > li > a:active {
    padding-left: 10px !important;
    color: #fff !important;
    background: linear-gradient(90deg, rgba(241, 112, 0, 0.1), transparent 78%) !important;
  }

  #awb-oc-507 #menu-menu-sidebar > li.current-menu-item > a {
    color: #fff !important;
    background: linear-gradient(90deg, rgba(241, 112, 0, 0.13), transparent 75%) !important;
    box-shadow: inset 2px 0 #ef6d0b !important;
  }

  #awb-oc-507 #menu-menu-sidebar .awb-menu__i {
    width: 29px;
    min-width: 29px;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #ec7118 !important;
    font-size: 17px !important;
  }

  #awb-oc-507 #menu-item-59355 > a::before {
    content: "\f46d";
    width: 29px;
    min-width: 29px;
    color: #ec7118;
    font-family: "Font Awesome 5 Free";
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
    text-align: center;
  }

  #awb-oc-507 .fusion-social-networks-wrapper a {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.74) !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  #awb-oc-507,
  #awb-oc-507 .awb-off-canvas,
  #awb-oc-507 #menu-menu-sidebar > li,
  #awb-oc-507 #menu-menu-sidebar > li > a,
  a.awb-oc-menu-item-link[href="#awb-oc__507"] {
    transition: none !important;
  }
}
