/**
 * Header-5 flottant pour le modèle Premium (.tpl-premium).
 * Port ciblé de header-2 / header-5 / sticky / hamburger — sans main.css complet.
 */

/* --- Utilitaires Bootstrap minimaux (header + chrome) --- */
.tpl-premium .d-none { display: none !important; }
.tpl-premium .d-flex { display: flex !important; }
.tpl-premium .d-inline-flex { display: inline-flex !important; }
.tpl-premium .align-items-center { align-items: center !important; }
.tpl-premium .justify-content-between { justify-content: space-between !important; }

@media (min-width: 992px) {
  .tpl-premium .d-lg-none { display: none !important; }
  .tpl-premium .d-lg-block { display: block !important; }
  .tpl-premium .d-lg-inline-flex { display: inline-flex !important; }
}

/* 9 libellés FR + CTA : une seule ligne seulement à la largeur du contenu (~1320). */
@media (min-width: 992px) and (max-width: 1399px) {
  .tpl-premium .header-area .menu-area.d-lg-inline-flex {
    display: none !important;
  }
  .tpl-premium .header-area .menu_bar.menu_offcanvas {
    display: none !important;
  }
  .tpl-premium .header-area .menu_bar.mobile_menu_bar {
    display: inline-flex !important;
  }
  .tpl-premium .hamburger-area.d-lg-none {
    display: block !important;
  }
}

.tpl-premium .container-fluid {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  margin-right: auto;
  margin-left: auto;
}
.tpl-premium .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}
.tpl-premium .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.tpl-premium .section-gap-x {
  margin-inline-start: 15px;
  margin-inline-end: 15px;
}
@media (max-width: 767px) {
  .tpl-premium .section-gap-x {
    margin-inline-start: 12px;
    margin-inline-end: 12px;
  }
}

.tpl-premium.overflow-hidden,
.tpl-premium.premium-nav-open {
  overflow: hidden;
}

/* --- Bouton CTA (tj-primary-btn) --- */
.tpl-premium .tj-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  background-color: var(--brand-btn-bg, var(--brand-primary));
  font-size: 16px;
  font-weight: var(--tj-fw-sbold, 600);
  padding: 5px 5px 5px 25px;
  text-align: center;
  border-radius: var(--brand-btn-radius, 5px);
  line-height: 1;
  z-index: 2;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}
.tpl-premium .tj-primary-btn .btn-text {
  color: var(--brand-btn-text, #fff);
  overflow: hidden;
}
.tpl-premium .tj-primary-btn .btn-text span {
  display: flex;
  line-height: 1;
  color: inherit;
  text-shadow: 0 30px 0 currentColor;
  backface-visibility: hidden;
  transform: translateY(0);
  transition: 0.4s ease-in-out;
}
.tpl-premium .tj-primary-btn .btn-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  line-height: 1;
  width: 38px;
  height: 38px;
  overflow: hidden;
  background-color: var(--brand-btn-icon-bg, var(--brand-dark));
  border-radius: var(--brand-btn-icon-radius, 5px);
}
.tpl-premium .tj-primary-btn .btn-icon i {
  color: var(--brand-btn-icon-color, #fff);
  transform: rotate(-45deg);
  transition: all 0.3s ease-in-out;
}
.tpl-premium .tj-primary-btn:hover .btn-text span {
  transform: translateY(-30px);
}
.tpl-premium .tj-primary-btn:hover .btn-icon i {
  transform: rotate(0);
}

/* CTA navbar — composant isolé (évite les conflits button-style-one sur UIblocs) */
.tpl-premium .header-button .premium-nav-cta {
  display: inline-block;
  vertical-align: middle;
  max-width: min(100%, 220px);
}
.tpl-premium .premium-nav-cta__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 12px 0 14px;
  overflow: hidden;
  background-color: var(--brand-nav-btn-bg, var(--brand-btn-bg, var(--brand-primary)));
  border-radius: var(--brand-btn-radius-tl, var(--brand-btn-radius, 5px))
    var(--brand-btn-radius-tr, var(--brand-btn-radius, 5px))
    var(--brand-btn-radius-br, var(--brand-btn-radius, 5px))
    var(--brand-btn-radius-bl, var(--brand-btn-radius, 5px));
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--brand-nav-btn-text, var(--brand-btn-text, #fff));
}
.tpl-premium .premium-nav-cta__text-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  flex: 0 1 auto;
  min-width: 0;
}
.tpl-premium .premium-nav-cta__text-stack {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.tpl-premium .premium-nav-cta__text {
  display: block;
  line-height: 1;
  color: var(--brand-nav-btn-text, var(--brand-btn-text, #fff));
  white-space: nowrap;
}
.tpl-premium .premium-nav-cta__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}
.tpl-premium .premium-nav-cta__arrow {
  display: block;
  width: 8px;
  height: 9px;
  filter: var(--brand-nav-btn-icon-filter, var(--brand-btn-icon-filter, brightness(0) invert(1)));
}
.tpl-premium .premium-nav-cta__fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--brand-nav-btn-hover-fill, var(--brand-btn-hover-fill, var(--brand-dark)));
  border-radius: inherit;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.tpl-premium .premium-nav-cta__text-wrap,
.tpl-premium .premium-nav-cta__icon {
  position: relative;
  z-index: 1;
}
.tpl-premium .premium-nav-cta__link:hover .premium-nav-cta__fill,
.tpl-premium .premium-nav-cta__link:focus-visible .premium-nav-cta__fill {
  transform: scaleY(1);
}
.tpl-premium .premium-nav-cta__link:hover .premium-nav-cta__text-stack,
.tpl-premium .premium-nav-cta__link:focus-visible .premium-nav-cta__text-stack {
  transform: translateY(-50%);
}
@media (prefers-reduced-motion: reduce) {
  .tpl-premium .premium-nav-cta__text-stack,
  .tpl-premium .premium-nav-cta__fill {
    transition: none !important;
    transform: none !important;
  }
}

/* --- Header shell --- */
.tpl-premium .header-area.header-2.header-absolute {
  position: absolute;
  top: 30px;
  inset-inline-start: 15px;
  width: calc(100% - 60px);
  z-index: 999;
  background-color: transparent;
  border-radius: 0;
}
.tpl-premium .header-area.header-2.header-absolute > .container-fluid,
.tpl-premium .header-area.header-2.header-absolute > .container-fluid > .row {
  --bs-gutter-x: 0;
}
.tpl-premium .header-area.header-2.header-absolute .header-wrapper {
  background-color: var(--brand-nav-bg, rgba(255, 255, 255, 0.1));
  -webkit-backdrop-filter: blur(var(--brand-nav-bg-blur, 10px));
  backdrop-filter: blur(var(--brand-nav-bg-blur, 10px));
  padding: 0 20px;
  border-radius: 14px;
}
@media (max-width: 767px) {
  .tpl-premium .header-area.header-2.header-absolute {
    top: 24px;
    inset-inline-start: 12px;
    width: calc(100% - 48px);
  }
  .tpl-premium .header-area.header-2.header-absolute .header-wrapper {
    padding: 15px 12px;
  }
}
.tpl-premium .header-area.header-5.header-absolute {
  inset-inline-start: 0;
  inset-inline-end: 0;
  width: min(calc(100% - 30px), 1320px);
  max-width: 1320px;
  margin-inline-start: auto;
  margin-inline-end: auto;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}
@media (max-width: 767px) {
  .tpl-premium .header-area.header-5.header-absolute {
    top: 24px;
    inset-inline-start: 0;
    width: calc(100% - 48px);
  }
}
.tpl-premium .header-area.header-5.header-absolute .header-wrapper {
  max-width: none;
  width: 100%;
  margin-inline-start: 0;
  margin-inline-end: 0;
  border-radius: 8px;
  backdrop-filter: none;
}

/* Desktop : aération latérale, hauteur figée comme sur écran large (66px). */
@media (min-width: 992px) {
  .tpl-premium .header-area.header-2.header-absolute .header-wrapper,
  .tpl-premium .header-area.header-2.header-sticky .header-wrapper,
  .tpl-premium .header-area.sticky .header-wrapper {
    min-height: 66px;
    padding-block: 0;
    padding-inline: 32px;
    box-sizing: border-box;
  }
}
.tpl-premium .header-area.header-5.header-absolute .mainmenu > ul > li > a {
  padding-top: 25px;
  padding-bottom: 25px;
}
.tpl-premium .header-area.header-5.header-absolute .mainmenu > ul > li.menu-item-has-children > a::after,
.tpl-premium .header-area.header-5.header-absolute .mainmenu > ul > li.has-dropdown > a::after {
  top: 28px;
}

.tpl-premium .header-area.header-duplicate {
  display: none;
  opacity: 0;
  visibility: hidden;
}

/* Sticky pleine largeur : le rail intérieur reste à 1320px (même que le contenu). */
.tpl-premium .header-area.sticky {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  width: 100%;
  max-width: none;
  margin-inline-start: 0;
  margin-inline-end: 0;
  animation: premium-header-sticky 0.28s ease-out;
  border-bottom: none;
  z-index: 1002;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 1;
  visibility: visible;
  background-color: var(--brand-nav-solid-bg, var(--brand-bg-white, #111));
  display: block;
  box-sizing: border-box;
}
.tpl-premium .header-area.sticky.section-gap-x {
  margin-inline-start: 0;
  margin-inline-end: 0;
}
.tpl-premium .header-area.sticky .header-wrapper {
  max-width: 1320px;
  width: 100%;
  margin-inline: auto;
  min-height: 66px;
  padding-block: 0;
  padding-inline: 32px;
  box-sizing: border-box;
  background-color: transparent;
  backdrop-filter: none;
  border-radius: 0;
}
@media (max-width: 991px) {
  .tpl-premium .header-area.sticky .header-wrapper {
    min-height: 66px;
    padding-block: 12px;
    padding-inline: 20px;
  }
}

/* Tablette : même aération que le desktop, logo à gauche, EN/FR + burger à droite. */
@media (min-width: 768px) and (max-width: 991px) {
  .tpl-premium .header-area.header-2.header-absolute .header-wrapper,
  .tpl-premium .header-area.header-2.header-sticky .header-wrapper,
  .tpl-premium .header-area.sticky .header-wrapper {
    min-height: 66px;
    padding-block: 0;
    padding-inline: 32px;
    box-sizing: border-box;
  }
}
@keyframes premium-header-sticky {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.tpl-premium .header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 99;
  position: relative;
}
@media (max-width: 991px) {
  .tpl-premium .header-area.header-2 .header-wrapper {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    column-gap: 12px;
  }
  .tpl-premium .header-area.header-2 .header-wrapper > .site_logo {
    margin-inline-end: auto;
  }
  .tpl-premium .header-area.header-2 .header-wrapper > .header-right-group {
    margin-inline-start: 0;
    gap: 10px;
  }
  .tpl-premium .header-area.header-2 .header-wrapper > .mobile_menu_bar {
    margin-inline-start: 0;
    flex-shrink: 0;
  }
}
@media (min-width: 992px) {
  .tpl-premium .header-area.header-2 .header-wrapper {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr) minmax(0, max-content);
    align-items: center;
    column-gap: 16px;
    flex-wrap: nowrap;
  }
  .tpl-premium .header-area.header-2 .header-wrapper > .site_logo {
    justify-self: start;
    align-self: center;
  }
  .tpl-premium .header-area.header-2 .header-wrapper > .menu-area {
    justify-self: stretch;
    min-width: 0;
    justify-content: center;
  }
  .tpl-premium .header-area.header-2 .header-wrapper > .header-right-group {
    justify-self: end;
  }
}

.tpl-premium .header-right-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 14px;
}

.tpl-premium .site_logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.tpl-premium .site_logo .logo {
  display: flex;
  align-items: center;
  line-height: 0;
  max-width: var(--nav-logo-max-width, 136px);
  width: 100%;
}
.tpl-premium .site_logo .logo img {
  display: block;
  max-width: 100%;
  max-height: var(--nav-logo-max-height, 48px);
  width: auto;
  height: auto;
}

.tpl-premium .menu-area {
  gap: 25px;
}

.tpl-premium .mainmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  column-gap: 30px;
  flex-wrap: wrap;
}
@media (min-width: 992px) {
  .tpl-premium .mainmenu {
    width: 100%;
    min-width: 0;
  }
  .tpl-premium .mainmenu ul {
    flex-wrap: nowrap;
    justify-content: center;
    column-gap: clamp(10px, 1.15vw, 22px);
  }
  .tpl-premium .mainmenu ul > li > a {
    white-space: nowrap;
  }
}
.tpl-premium .mainmenu ul > li {
  position: relative;
  z-index: 1;
}
.tpl-premium .mainmenu ul > li > a {
  position: relative;
  font-size: 16px;
  color: var(--tj-color-heading-primary, var(--brand-text-heading));
  display: block;
  padding: 37px 0;
  font-weight: var(--tj-fw-medium, 500);
  line-height: 1;
  text-decoration: none;
}
.tpl-premium .mainmenu ul > li.menu-item-has-children > a,
.tpl-premium .mainmenu ul > li.has-dropdown > a {
  padding-inline-end: 20px;
}
.tpl-premium .mainmenu ul > li.menu-item-has-children > a::after,
.tpl-premium .mainmenu ul > li.has-dropdown > a::after {
  content: "\e929";
  font-family: "bexon-icons";
  color: inherit;
  font-size: 12px;
  position: absolute;
  top: 40px;
  inset-inline-end: 0;
  transition: all 0.3s ease-in-out 0s;
}
.tpl-premium .mainmenu ul > li.menu-item-has-children:hover > a::after,
.tpl-premium .mainmenu ul > li.has-dropdown:hover > a::after,
.tpl-premium .mainmenu ul > li.menu-item-has-children:focus-within > a::after,
.tpl-premium .mainmenu ul > li.has-dropdown:focus-within > a::after {
  transform: rotate(-180deg);
}
.tpl-premium .mainmenu ul > li.current-menu-ancestor > a,
.tpl-premium .mainmenu ul > li.current-menu-item > a,
.tpl-premium .mainmenu ul > li:hover > a {
  color: var(--tj-color-theme-primary, var(--brand-primary));
}
/* Sous-menu « dock » : panneau vitré, lignes arrondies, flèche ↳ devant chaque lien */
.tpl-premium .mainmenu ul > li > .sub-menu {
  --pdm-bg: var(--brand-nav-solid-bg, #111111);
  --pdm-text: var(--brand-nav-solid-text, #ffffff);
  --pdm-active: var(--brand-nav-solid-text-active, var(--pdm-text));
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 2px;
  position: absolute;
  top: calc(100% - 14px);
  inset-inline-start: -16px;
  width: max-content;
  min-width: 244px;
  max-width: min(340px, 90vw);
  z-index: 99;
  margin: 0;
  padding: 8px;
  list-style: none;
  text-align: start;
  color: var(--pdm-text);
  background-color: color-mix(in srgb, var(--pdm-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid color-mix(in srgb, var(--pdm-text) 10%, transparent);
  border-radius: 20px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.28s;
}
.tpl-premium .mainmenu ul > li > .sub-menu::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 100%;
  height: 14px;
}
.tpl-premium .mainmenu ul > li > .sub-menu > li {
  display: block;
  width: 100%;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.tpl-premium .mainmenu ul > li > .sub-menu > li:nth-child(2) { transition-delay: 0.03s; }
.tpl-premium .mainmenu ul > li > .sub-menu > li:nth-child(3) { transition-delay: 0.06s; }
.tpl-premium .mainmenu ul > li > .sub-menu > li:nth-child(4) { transition-delay: 0.09s; }
.tpl-premium .mainmenu ul > li > .sub-menu > li:nth-child(n + 5) { transition-delay: 0.12s; }
.tpl-premium .mainmenu ul > li > .sub-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px 10px 12px;
  border-radius: 12px;
  font-family: var(--tj-ff-body, var(--brand-font-body, Inter, Helvetica, Arial, sans-serif));
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  white-space: normal;
  color: var(--pdm-text);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tpl-premium .mainmenu ul > li > .sub-menu > li > a::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 10l5 5-5 5'/%3E%3Cpath d='M4 4v7a4 4 0 0 0 4 4h12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 10l5 5-5 5'/%3E%3Cpath d='M4 4v7a4 4 0 0 0 4 4h12'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.tpl-premium .mainmenu ul > li > .sub-menu > li > a:hover,
.tpl-premium .mainmenu ul > li > .sub-menu > li > a:focus-visible {
  background-color: color-mix(in srgb, var(--pdm-text) 10%, transparent);
  color: var(--pdm-text);
}
.tpl-premium .mainmenu ul > li > .sub-menu > li > a:hover::before,
.tpl-premium .mainmenu ul > li > .sub-menu > li > a:focus-visible::before {
  opacity: 1;
  transform: translateX(2px);
}
.tpl-premium .mainmenu ul > li > .sub-menu > li.current-menu-item > a {
  background-color: color-mix(in srgb, var(--pdm-text) 10%, transparent);
  color: var(--pdm-text);
}
.tpl-premium .mainmenu ul > li > .sub-menu > li.current-menu-item > a::before,
.tpl-premium .mainmenu ul > li > .sub-menu > li.current-menu-item > a::after {
  background-color: var(--pdm-active);
  opacity: 1;
}
.tpl-premium .mainmenu ul > li > .sub-menu > li.current-menu-item > a::after {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-inline-start: auto;
  border-radius: 50%;
}
.tpl-premium .mainmenu ul > li:hover > .sub-menu,
.tpl-premium .mainmenu ul > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
.tpl-premium .mainmenu ul > li:hover > .sub-menu > li,
.tpl-premium .mainmenu ul > li:focus-within > .sub-menu > li {
  opacity: 1;
  transform: none;
}
.tpl-premium .mainmenu ul > li.is-submenu-dismissed > .sub-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.tpl-premium .mainmenu ul > li > .sub-menu.sub-menu--cols-2,
.tpl-premium .mainmenu ul > li > .sub-menu.sub-menu--cols-3 {
  display: grid;
  max-width: min(720px, 90vw);
}
.tpl-premium .mainmenu ul > li > .sub-menu.sub-menu--cols-2 { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
.tpl-premium .mainmenu ul > li > .sub-menu.sub-menu--cols-3 { grid-template-columns: repeat(3, minmax(200px, 1fr)); }

/* Variantes « mega » : même panneau, l'icône ou la vignette remplace la flèche ↳ */
.tpl-premium .mainmenu ul > li > .sub-menu.mega-menu-service > li > a::before {
  content: none;
}
.tpl-premium .mainmenu .mega-menu-service-icon,
.tpl-premium .mainmenu .mega-menu-media-thumb {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  background-color: color-mix(in srgb, var(--pdm-text) 8%, transparent);
  font-size: 16px;
}
.tpl-premium .mainmenu .mega-menu-media-thumb {
  width: 48px;
  height: 40px;
}
.tpl-premium .mainmenu .mega-menu-service-icon img,
.tpl-premium .mainmenu .mega-menu-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tpl-premium .mainmenu .mega-menu-service-icon img { object-fit: contain; padding: 6px; }
.tpl-premium .mainmenu .mega-menu-service-icon__img--mobile { display: none; }
.tpl-premium .mainmenu .mega-menu-service-nav { display: none; }
.tpl-premium .mainmenu .mega-menu-media-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tpl-premium .mainmenu .mega-menu-media-desc {
  font-size: 13px;
  line-height: 1.35;
  color: color-mix(in srgb, var(--pdm-text) 82%, transparent);
}
.tpl-premium .mainmenu ul > li > .sub-menu.mega-menu-service > li > a.active {
  background-color: color-mix(in srgb, var(--pdm-text) 10%, transparent);
  box-shadow: inset 3px 0 0 var(--pdm-active);
}
@media (min-width: 992px) and (max-width: 1199px) {
  .tpl-premium .mainmenu ul { column-gap: 10px; }
  .tpl-premium .mainmenu ul > li > a { font-size: 14px; }
  .tpl-premium .mainmenu ul > li.menu-item-has-children > a,
  .tpl-premium .mainmenu ul > li.has-dropdown > a { padding-inline-end: 16px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .tpl-premium .mainmenu ul { column-gap: 16px; }
  .tpl-premium .mainmenu ul > li > a { font-size: 15px; }
}

.tpl-premium .header-2.header-absolute .mainmenu > ul > li > a {
  color: var(--brand-nav-text, #fff);
  padding-top: 32px;
  padding-bottom: 32px;
}
.tpl-premium .header-2.header-absolute .mainmenu > ul > li.menu-item-has-children > a::after,
.tpl-premium .header-2.header-absolute .mainmenu > ul > li.has-dropdown > a::after {
  color: currentColor;
  top: 35px;
}
.tpl-premium .header-2.header-absolute .mainmenu > ul > li:hover > a {
  color: var(--brand-nav-text-hover, var(--tj-color-theme-primary));
}
.tpl-premium .header-2.header-absolute .mainmenu > ul > li.current-menu-item > a,
.tpl-premium .header-2.header-absolute .mainmenu > ul > li.current-menu-ancestor > a {
  color: var(--brand-nav-text-active, var(--brand-nav-text-hover, var(--tj-color-theme-primary)));
}
.tpl-premium .header-2.header-absolute .menu_bar span {
  background-color: var(--brand-nav-text, #fff);
}

.tpl-premium .header-area.header-5.header-absolute .mainmenu > ul > li > a {
  padding-top: 25px;
  padding-bottom: 25px;
}
.tpl-premium .header-area.header-5.header-absolute .mainmenu > ul > li.menu-item-has-children > a::after,
.tpl-premium .header-area.header-5.header-absolute .mainmenu > ul > li.has-dropdown > a::after {
  top: 28px;
}

/* Sticky: texte / hamburger sur fond solide */
.tpl-premium .header-area.sticky .mainmenu > ul > li > a {
  color: var(--brand-nav-solid-text, #fff);
  padding-top: 25px;
  padding-bottom: 25px;
}
.tpl-premium .header-area.sticky .mainmenu > ul > li:hover > a,
.tpl-premium .header-area.sticky .mainmenu > ul > li.current-menu-item > a {
  color: var(--brand-nav-solid-text-active, var(--brand-primary));
}
.tpl-premium .header-area.sticky .menu_bar span {
  background-color: var(--brand-nav-solid-text, #fff);
}
.tpl-premium .header-area.sticky .mainmenu > ul > li.menu-item-has-children > a::after,
.tpl-premium .header-area.sticky .mainmenu > ul > li.has-dropdown > a::after {
  top: 28px;
}

.tpl-premium .header-right-item {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (min-width: 992px) and (max-width: 1199px) {
  .tpl-premium .header-right-item { gap: 12px; }
}

.tpl-premium .menu_bar {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 25px;
  height: 25px;
  position: relative;
  margin-inline-start: 5px;
  cursor: pointer;
  transition: all 0.3s ease-in-out 0s;
}
.tpl-premium .menu_bar span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--brand-nav-text, #fff);
  border-radius: 10px;
  margin-inline-end: auto;
  transition: all 0.3s;
}
.tpl-premium .menu_bar span:last-child,
.tpl-premium .menu_bar span:first-child {
  width: 25px;
}
.tpl-premium .menu_bar.mobile_menu_bar {
  width: 50px;
  height: 50px;
  padding: 12px;
  background: var(--tj-color-theme-primary, var(--brand-primary));
  border-radius: 7px;
  box-sizing: border-box;
}
.tpl-premium .menu_bar.mobile_menu_bar span {
  background-color: #fff;
}
.tpl-premium .menu_bar:hover span {
  width: 100%;
}

/* --- Overlay + panneaux --- */
.tpl-premium .body-overlay {
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 9998;
  inset-inline-start: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-out 0s;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.35);
}
.tpl-premium .body-overlay.opened {
  opacity: 1;
  visibility: visible;
}

.tpl-premium .hamburger-area,
.tpl-premium .tj-offcanvas-area {
  position: fixed;
  inset-inline-end: -490px;
  top: 15px;
  width: 450px;
  height: calc(100% - 30px);
  box-shadow: -5px 0 20px -5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  transition-duration: 0.85s;
  z-index: 9999;
  overflow-y: auto;
  border-radius: 12px;
  scrollbar-width: none;
}
.tpl-premium .tj-offcanvas-area {
  width: 470px;
  transition-duration: 0.3s;
}
.tpl-premium .hamburger-area::-webkit-scrollbar,
.tpl-premium .tj-offcanvas-area::-webkit-scrollbar {
  display: none;
}
.tpl-premium .hamburger-area.opened,
.tpl-premium .tj-offcanvas-area.opened {
  inset-inline-end: 15px;
}
@media (max-width: 767px) {
  .tpl-premium .hamburger-area {
    top: 0;
    height: 100%;
    border-radius: 0;
  }
  .tpl-premium .hamburger-area.opened {
    inset-inline-end: 0;
  }
}
@media (max-width: 575px) {
  .tpl-premium .hamburger-area { width: 320px; }
}

.tpl-premium .hamburger_bg {
  background-color: var(--tj-color-theme-dark, var(--brand-dark));
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: -1;
  border-radius: inherit;
}
.tpl-premium .hamburger_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding: 40px;
  overflow: auto;
  height: 100%;
  box-sizing: border-box;
}
@media (max-width: 575px) {
  .tpl-premium .hamburger_wrapper { padding: 40px 20px; }
}
.tpl-premium .hamburger_top { margin-bottom: 30px; }
.tpl-premium .hamburger_close_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
}
.tpl-premium .hamburger_close_btn:hover { color: var(--tj-color-theme-primary, var(--brand-primary)); }
.tpl-premium .hamburger_logo .mobile_logo {
  display: inline-block;
  max-width: var(--nav-logo-max-width, 136px);
  width: 100%;
}
.tpl-premium .hamburger_logo .mobile_logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tpl-premium .offcanvas-text { margin-bottom: 40px; }
.tpl-premium .offcanvas-text p {
  color: var(--tj-color-text-body-2, var(--brand-text-soft, #c1c1c1));
  margin-bottom: 0;
}
.tpl-premium .hamburger-title {
  color: #fff;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 25px;
}
.tpl-premium .hamburger-infos { margin-bottom: 45px; }
.tpl-premium .hamburger-infos .contact-info .contact-item {
  padding: 15px 0 10px 0;
}
.tpl-premium .hamburger-infos .contact-info .contact-item:first-child {
  padding-top: 0;
}
.tpl-premium .contact-info .contact-item .subtitle {
  display: block;
  color: var(--brand-text-muted, #b8b8b8);
  font-size: 13px;
  margin-bottom: 6px;
}
.tpl-premium .contact-info .contact-item .contact-link {
  color: #fff;
  text-decoration: none;
  font-weight: var(--tj-fw-sbold, 600);
}
.tpl-premium .contact-info .contact-item a.contact-link:hover {
  color: var(--tj-color-theme-primary, var(--brand-primary));
}

/* Les pastilles elles-mêmes sont dans premium-social.css. */
.tpl-premium .hamburger-socials { margin-top: 1rem; }
.tpl-premium .hamburger-socials .hamburger-title { margin-bottom: 16px; }

/* Menu mobile (remplace meanmenu) */
.tpl-premium .hamburger_menu { margin-bottom: 30px; }
.tpl-premium .hamburger_menu .mean-nav {
  background: transparent;
  overflow: hidden;
}
.tpl-premium .hamburger_menu .mean-nav > ul {
  display: block !important;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tpl-premium .hamburger_menu .mean-nav ul li {
  position: relative;
  list-style: none;
}
.tpl-premium .hamburger_menu .mean-nav ul li a {
  color: #fff;
  width: 100%;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.5px;
  font-family: var(--tj-ff-body, var(--brand-font-body));
  font-weight: var(--tj-fw-medium, 500);
  text-transform: capitalize;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease-in-out 0s;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
}
.tpl-premium .hamburger_menu .mean-nav ul li a:hover,
.tpl-premium .hamburger_menu .mean-nav ul li.dropdown-opened > a,
.tpl-premium .hamburger_menu .mean-nav ul li.current-menu-item > a {
  color: var(--tj-color-theme-primary, var(--brand-primary));
}
.tpl-premium .hamburger_menu .mean-nav ul li .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tpl-premium .hamburger_menu .mean-nav ul li .sub-menu li {
  padding-inline-start: 25px;
}
.tpl-premium .hamburger_menu .mean-nav ul li .sub-menu li a {
  width: 100%;
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tpl-premium .hamburger_menu .mean-nav ul li .sub-menu li a::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  opacity: 0.6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 10l5 5-5 5'/%3E%3Cpath d='M4 4v7a4 4 0 0 0 4 4h12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 10l5 5-5 5'/%3E%3Cpath d='M4 4v7a4 4 0 0 0 4 4h12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Switch langue — petit bloc discret, langue opposée seulement */
.tpl-premium .header-right-item--lang {
  align-self: center;
}

.tpl-premium .lang-switcher.header-lang-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px !important;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  vertical-align: middle;
}

.tpl-premium .lang-switcher.header-lang-switcher::before,
.tpl-premium .lang-switcher.header-lang-switcher::after {
  content: none;
  display: none;
}

.tpl-premium .lang-switcher .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tpl-premium .lang-switcher.header-lang-switcher a.lang-switcher__option.is-active {
  display: none !important;
}

.tpl-premium .lang-switcher.header-lang-switcher a.lang-switcher__option {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  font-family: Inter, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: none;
  color: rgba(255, 255, 255, 0.58) !important;
}

.tpl-premium .lang-switcher.header-lang-switcher a.lang-switcher__option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86) !important;
}

.tpl-premium .lang-switcher.header-lang-switcher a.lang-switcher__option:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

/* Navigation « Blanc » (content.nav.appearance = "light") : les deux barres et
   les sous-menus passent sur fond blanc. Les couleurs viennent du thème
   (--brand-nav-light-*, contraste 7:1 calculé à la génération). */
.tpl-premium .header-area[data-theme="light"] {
  --brand-nav-bg: var(--brand-nav-light-bg, #ffffff);
  --brand-nav-text: var(--brand-nav-light-text, #111111);
  --brand-nav-text-hover: var(--brand-nav-light-text-hover, var(--brand-nav-light-text, #111111));
  --brand-nav-text-active: var(--brand-nav-light-text-active, var(--brand-nav-light-text-hover, #111111));
  --brand-nav-solid-bg: var(--brand-nav-light-bg, #ffffff);
  --brand-nav-solid-text: var(--brand-nav-light-text, #111111);
  --brand-nav-solid-text-hover: var(--brand-nav-light-text-hover, var(--brand-nav-light-text, #111111));
  --brand-nav-solid-text-active: var(--brand-nav-light-text-active, var(--brand-nav-light-text-hover, #111111));
}
.tpl-premium .header-area.header-2.header-absolute[data-theme="light"] .header-wrapper {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px -12px rgba(0, 0, 0, 0.28);
}
.tpl-premium .header-area.sticky[data-theme="light"] {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.08);
}
.tpl-premium .header-area[data-theme="light"] .mainmenu ul > li > .sub-menu {
  background-color: color-mix(in srgb, var(--pdm-bg) 97%, transparent);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.08);
}
/* Bouton menu mobile : pastille couleur de marque, traits blancs dans les deux apparences. */
.tpl-premium .header-area[data-theme="light"] .menu_bar.mobile_menu_bar span {
  background-color: #fff;
}
.tpl-premium .header-area[data-theme="light"] .lang-switcher.header-lang-switcher a.lang-switcher__option {
  border-color: color-mix(in srgb, var(--brand-nav-text) 22%, transparent);
  background: color-mix(in srgb, var(--brand-nav-text) 4%, transparent);
  color: color-mix(in srgb, var(--brand-nav-text) 78%, #ffffff) !important;
}
.tpl-premium .header-area[data-theme="light"] .lang-switcher.header-lang-switcher a.lang-switcher__option:hover {
  background: color-mix(in srgb, var(--brand-nav-text) 8%, transparent);
  color: var(--brand-nav-text) !important;
}
.tpl-premium .header-area[data-theme="light"] .lang-switcher.header-lang-switcher a.lang-switcher__option:focus-visible {
  outline-color: color-mix(in srgb, var(--brand-nav-text) 55%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .tpl-premium .header-area.sticky { animation: none; }
  .tpl-premium .tj-primary-btn .btn-text span,
  .tpl-premium .tj-primary-btn .btn-icon i,
  .tpl-premium .mainmenu ul > li > .sub-menu,
  .tpl-premium .mainmenu ul > li > .sub-menu > li,
  .tpl-premium .mainmenu ul > li > .sub-menu > li > a::before {
    transition: none !important;
    transform: none !important;
  }
}
