/* Théobald — rendu verre repris du menu YOOtheme d’origine. */
@font-face {
  font-family: "THB Overpass";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("overpass-regular.woff2") format("woff2");
}
.thb-menu {
  --thb-ink: #0c1626;
  --thb-accent: #8dd4ff;
  --thb-height: 90px;
  --thb-admin-offset: 0px;
  width: 100%;
  position: relative;
  z-index: 1000;
  color: #fff;
  font-family: "THB Overpass", Overpass, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  --thb-background: linear-gradient(180deg, rgba(10,18,32,.80) 0%, rgba(12,22,38,.75) 40%, rgba(18,30,50,.70) 70%, rgba(22,36,61,.65) 100%);
  box-shadow: 0 8px 25px rgba(0,0,0,.45);
  transition: box-shadow .45s ease;
}
.thb-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--thb-background);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
}
.thb-menu *, .thb-menu *::before, .thb-menu *::after { box-sizing: border-box; }
.thb-menu [hidden] { display: none !important; }
.thb-menu[data-enhanced] { position: fixed; inset: var(--thb-admin-offset) 0 auto; }
/* Le défilement ne remplace plus le verre par un fond presque opaque. */
.thb-menu__bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  width: min(100%, 1140px);
  min-height: var(--thb-height);
  margin: 0;
  padding: 0;
}
.thb-menu a { color: #fff; text-decoration: none; border: 0; box-shadow: none; }
.thb-menu a:hover, .thb-menu a:focus { color: var(--thb-accent); text-decoration: none; }
.thb-menu :is(a,button):focus-visible { outline: 2px solid var(--thb-accent); outline-offset: 4px; border-radius: 4px; }
.thb-menu button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font: inherit;
  cursor: pointer;
}
.thb-menu button:hover, .thb-menu button:focus { background: rgba(141,212,255,.10); color: var(--thb-accent); }
.thb-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.thb-menu .thb-menu__brand { flex: 0 0 260px; display: block; padding: 0; }
.thb-menu .thb-menu__brand img { display: block; width: 260px; height: auto; max-width: 100%; }
.thb-menu .thb-menu__brand:hover { opacity: .85; }
.thb-menu__panel { min-width: 0; flex: 1; }
.thb-menu :is(ul,li) { list-style: none; padding: 0; margin: 0; }
.thb-menu .thb-menu__list { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.thb-menu .menu-item { position: relative; }
.thb-menu .thb-menu__list > .menu-item { display: flex; align-items: center; }
.thb-menu .thb-menu__list > .menu-item > :is(a,.thb-menu__parent-toggle) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--thb-height);
  padding: 0 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s ease, transform .25s ease;
}
.thb-menu .thb-menu__list > .menu-item > :is(a,.thb-menu__parent-toggle):hover { transform: translateY(-3px); }
.thb-menu .thb-menu__list > :is(.current-menu-item,.current-menu-parent,.current-menu-ancestor) > :is(a,.thb-menu__parent-toggle) { color: var(--thb-accent); }
.thb-menu .thb-menu__parent-toggle { min-width: 0; justify-content: flex-start; text-align: left; border-radius: 0; }
.thb-menu .thb-menu__parent-toggle:is(:hover,:focus) { background: transparent; color: var(--thb-accent); }
.thb-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  max-height: calc(100dvh - var(--thb-height) - var(--thb-admin-offset) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px;
  background: linear-gradient(180deg, rgba(18,30,50,.65) 0%, rgba(22,36,61,.60) 45%, rgba(30,48,75,.55) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  backdrop-filter: blur(16px) saturate(2.8);
  border: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
}
.thb-menu:not([data-enhanced]) .menu-item:is(:hover,:focus-within) > .sub-menu,
.thb-menu[data-enhanced] .menu-item.is-expanded > .sub-menu { display: block; }
.thb-menu .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 24px;
  padding: 2px 0;
  color: #eaf7ff;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 0;
  transition: color .2s ease, background .2s ease;
}
.thb-menu .sub-menu :is(a:hover,a:focus-visible,a[aria-current="page"]) { color: var(--thb-accent); }
.thb-menu .thb-menu__badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 4px 7px 3px;
  border: 1px solid rgba(255,88,65,.65);
  border-radius: 999px;
  background: rgba(255,88,65,.10);
  color: #ff5841;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.thb-menu a:hover .thb-menu__badge { background: #ff5841; border-color: #ff5841; color: #fff; }
/* « Occasions » garde le même traitement que les liens du menu d’origine. */
.thb-menu .thb-menu__opener, .thb-menu .thb-menu__panel-top,
.thb-menu .thb-menu__signature, .thb-menu .thb-menu__backdrop { display: none; }
.thb-menu__spacer { display: none; }
.thb-menu[data-enhanced] + .thb-menu__spacer:not([data-overlay="true"]) { display: block; height: 90px; }
.thb-menu .thb-menu__empty { padding: 8px; color: #fff; }
body.thb-menu-lock { overflow: hidden; }
.thb-menu-host { position: relative; z-index: 1000; }
/* Un en-tête Elementor dédié au menu ne doit pas réserver un bloc blanc. */
.thb-menu-host--overlay,
.thb-menu-overlay-shell {
  height: 0 !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  background: transparent !important;
}
@keyframes thb-menu-cascade {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 1320px) {
  .thb-menu .thb-menu__list > .menu-item > :is(a,.thb-menu__parent-toggle) { font-size: 14px; }
}

@media (max-width: 1179px) {
  .thb-menu { --thb-height: 76px; }
  .thb-menu__bar { width: 100%; min-height: var(--thb-height); padding: 0 20px; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
  .thb-menu .thb-menu__brand { flex-basis: 205px; }
  .thb-menu .thb-menu__brand img { width: 205px; }
  .thb-menu:not([data-enhanced]) .thb-menu__panel { width: 100%; }
  .thb-menu .thb-menu__list { display: block; padding: 18px 0; }
  .thb-menu .thb-menu__list > .menu-item { display: block; }
  .thb-menu .thb-menu__list > .menu-item > :is(a,.thb-menu__parent-toggle) { display: flex; width: 100%; min-height: 69px; padding: 14px 0; white-space: normal; font-size: 20.48px; text-transform: uppercase; letter-spacing: 0; color: #d8ecff; }
  .thb-menu .thb-menu__list > .menu-item > :is(a,.thb-menu__parent-toggle):hover { transform: none; }
  .thb-menu .thb-menu__list > .menu-item + .menu-item { border-top: 0; }
  .thb-menu .sub-menu {
    display: block;
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0 0 14px 10px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .thb-menu .sub-menu a { font-size: 17.28px; min-height: 44px; padding: 10px 4px; text-transform: uppercase; color: #eff7ff; }
  .thb-menu[data-enhanced] .is-expanded > .sub-menu > li { animation: thb-menu-cascade .5s ease both; animation-delay: calc(var(--thb-order, 0) * 50ms); }
  .thb-menu[data-enhanced] .thb-menu__opener { display: inline-flex; gap: 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; padding: 0 11px; font-size: 13px; }
  .thb-menu[data-enhanced] .thb-menu__backdrop { display: block; position: fixed; inset: 0; width: 100%; height: 100dvh; background: rgba(255,255,255,.40); cursor: default; z-index: 1; }
  .thb-menu[data-enhanced] .thb-menu__panel {
    position: fixed;
    top: var(--thb-admin-offset);
    left: 0;
    width: min(270px, calc(100vw - 24px));
    height: calc(100dvh - var(--thb-admin-offset));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 30px 20px max(24px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(10,18,32,.98), rgba(14,24,40,.95), rgba(20,32,52,.92));
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    backdrop-filter: blur(16px) saturate(1.8);
    border-radius: 0 18px 18px 0;
    box-shadow: 0 8px 28px rgba(0,0,0,.45);
    z-index: 2;
  }
  .thb-menu[data-enhanced] .thb-menu__panel-top { display: flex; align-items: center; padding-bottom: 10px; }
  .thb-menu .thb-menu__drawer-brand { display: flex; align-items: center; min-height: 60px; margin-top: 10px; }
  .thb-menu .thb-menu__drawer-brand img { display: block; width: 180px; max-width: 100%; height: auto; }
  .thb-menu .thb-menu__close { position: absolute; right: 10px; top: 10px; border: 0; border-radius: 0; }
  .thb-menu[data-enhanced] + .thb-menu__spacer:not([data-overlay="true"]) { height: 76px; }
}
@media (max-width: 359px) {
  .thb-menu__bar { padding: 0 14px; gap: 10px; }
  .thb-menu .thb-menu__brand { flex-basis: 178px; }
  .thb-menu .thb-menu__opener > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .thb-menu *, .thb-menu *::before, .thb-menu *::after { animation: none !important; transition: none !important; }
}
