/* =========================================================
   Bijoux Helene Riu — Mobile Navigation
   burger menu < 992px
   vars: --night, --gold, --amethyst, --cream
   iter49 md5: c3e8f2b7 — 5e passe polish mobile-nav
   ========================================================= */

/* ---- CSS Custom Properties ---- */
:root {
  --night:     #0E0B1A;
  --gold:      #D4B570;
  --amethyst:  #6B4A8C;
  --cream:     #E8DFC8;
}

/* ---- Burger button ---- */
.bhr-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1060;
  position: relative;
  flex-shrink: 0;
}

.bhr-burger:hover .bhr-burger-lines span {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(212, 181, 112, 0.5);
}

@media (max-width: 991.98px) {
  .bhr-burger {
    display: flex;
  }
}

/* 3 bars gold */
.bhr-burger .bhr-burger-lines {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  pointer-events: none;
}

.bhr-burger .bhr-burger-lines span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition:
    transform  0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.3s cubic-bezier(0.4, 0, 0.2, 1),
    width      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Animate to X */
.bhr-burger.is-open .bhr-burger-lines span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.bhr-burger.is-open .bhr-burger-lines span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.bhr-burger.is-open .bhr-burger-lines span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Backdrop — fade-in synchronisé 0.32s ---- */
.bhr-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity    0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bhr-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---- Panel — slide from right 0.32s cubic-bezier synchronisé ---- */
.bhr-mobile-menu,
#bhr-mobile-menu {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(max(85vw, 280px), 420px) !important;
  max-width: 420px !important;
  height: 100dvh !important;
  background: linear-gradient(180deg, var(--ink, #14102A), var(--night, #0E0B1A));
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* Safe-area: top pour notch, bottom pour home indicator */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bhr-mobile-menu.is-open,
#bhr-mobile-menu.is-open {
  transform: translateX(0) !important;
}

/* ---- Drag handle hint (swipe) — barre visuelle droite ---- */
.bhr-mobile-menu::before,
#bhr-mobile-menu::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 4px;
  height: 48px;
  background: rgba(212, 181, 112, 0.18);
  border-radius: 2px;
  pointer-events: none;
  z-index: 10;
  transition: background 0.2s ease;
}

.bhr-mobile-menu:hover::before,
#bhr-mobile-menu:hover::before {
  background: rgba(212, 181, 112, 0.35);
}

/* ---- Search box en top du panel ---- */
.bhr-mobile-search {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(212, 181, 112, 0.12);
  flex-shrink: 0;
}

.bhr-mobile-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 181, 112, 0.22);
  border-radius: 4px;
  padding: 0 12px;
  min-height: 44px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bhr-mobile-search-form:focus-within {
  border-color: var(--gold);
  background: rgba(212, 181, 112, 0.06);
}

.bhr-mobile-search-form svg {
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.7;
  width: 16px;
  height: 16px;
}

.bhr-mobile-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 8px 0;
  min-width: 0;
}

.bhr-mobile-search-input::placeholder {
  color: rgba(232, 223, 200, 0.35);
  font-style: italic;
}

/* Sub-menu toggle — grid trick pour height fluide sans JS height */
.bhr-mobile-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.bhr-mobile-sub > * {
  overflow: hidden;
}
.bhr-mobile-sub.is-open {
  grid-template-rows: 1fr;
}
.bhr-mobile-sub-toggle {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: transparent;
  border: 0;
  color: var(--cream);
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Flèche accordéon — rotation + chevron+ ---- */
.bhr-mobile-sub-toggle::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.bhr-mobile-sub-toggle.is-open::after {
  transform: rotate(45deg);
}

/* SVG chevron rotation for inline-svg toggles */
.bhr-mobile-sub-toggle svg {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.bhr-mobile-sub-toggle.is-open svg {
  transform: rotate(180deg);
}

/* Search overlay fullscreen */
.bhr-search-overlay,
#bhr-search-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  background: rgba(14,11,26,0.95) !important;
  backdrop-filter: blur(12px);
  z-index: 1100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px;
}
.bhr-search-overlay.is-open,
#bhr-search-overlay.is-open {
  display: flex !important;
}
.bhr-search-overlay input,
#bhr-search-overlay input {
  width: 100%;
  max-width: 720px;
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold);
  color: var(--cream);
  padding: 12px 0;
}
.bhr-search-overlay input:focus,
#bhr-search-overlay input:focus {
  outline: none;
  border-bottom-color: var(--cream);
}

/* Panel header */
.bhr-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(212, 181, 112, 0.15);
  flex-shrink: 0;
}

.bhr-mobile-header-title {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Close button — 44×44 touch target (WCAG 2.5.8) */
.bhr-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.bhr-mobile-close:hover {
  background: rgba(212, 181, 112, 0.1);
  color: var(--cream);
}

/* Nav content area — min-height:0 obligatoire pour que flex-child scroll */
.bhr-mobile-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 0;
}

/* Nav links */
.bhr-mobile-menu .bhr-mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bhr-mobile-menu .bhr-mobile-nav-links li {
  border-bottom: 1px solid rgba(107, 74, 140, 0.2);
  position: relative;
}

.bhr-mobile-menu .bhr-mobile-nav-links li a,
.bhr-mobile-menu .bhr-mobile-nav-links li > span {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  min-height: 56px;
  padding: 16px 24px;
  color: var(--cream);
  text-decoration: none;
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition:
    color        0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background   0.2s cubic-bezier(0.4, 0, 0.2, 1),
    padding-left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icônes SVG préfixe — nav items ---- */
.bhr-mobile-menu .bhr-mobile-nav-links li a .bhr-nav-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.bhr-mobile-menu .bhr-mobile-nav-links li a .bhr-nav-icon svg {
  width: 20px;
  height: 20px;
}

.bhr-mobile-menu .bhr-mobile-nav-links li a .bhr-nav-label {
  flex: 1;
}

.bhr-mobile-menu .bhr-mobile-nav-links li a:hover {
  color: var(--gold);
  background: rgba(212, 181, 112, 0.04);
  padding-left: 30px;
}

.bhr-mobile-menu .bhr-mobile-nav-links li a:hover .bhr-nav-icon {
  opacity: 1;
}

/* Active page highlight gold ---- */
.bhr-mobile-menu .bhr-mobile-nav-links li.current a,
.bhr-mobile-menu .bhr-mobile-nav-links li.active a,
.bhr-mobile-menu .bhr-mobile-nav-links li a[aria-current="page"] {
  color: var(--gold);
  background: rgba(212, 181, 112, 0.07);
  border-left: 3px solid var(--gold);
  padding-left: 21px;
}

.bhr-mobile-menu .bhr-mobile-nav-links li.current a .bhr-nav-icon,
.bhr-mobile-menu .bhr-mobile-nav-links li.active a .bhr-nav-icon,
.bhr-mobile-menu .bhr-mobile-nav-links li a[aria-current="page"] .bhr-nav-icon {
  opacity: 1;
  color: var(--gold);
}

/* Chevron right — category */
.bhr-mobile-menu .bhr-mobile-nav-links li.has-sub > a::after,
.bhr-mobile-menu .bhr-mobile-nav-links li.has-children > a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.bhr-mobile-menu .bhr-mobile-nav-links li.has-sub.is-open > a::after,
.bhr-mobile-menu .bhr-mobile-nav-links li.has-children.is-open > a::after {
  transform: rotate(135deg);
}

/* Sub-menu collapse — grid trick height fluide */
.bhr-mobile-menu .bhr-mobile-nav-links .bhr-sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  background: rgba(107, 74, 140, 0.04);
}

.bhr-mobile-menu .bhr-mobile-nav-links .bhr-sub-menu > li,
.bhr-mobile-menu .bhr-mobile-nav-links .bhr-sub-menu > * {
  overflow: hidden;
  min-height: 0;
}

.bhr-mobile-menu .bhr-mobile-nav-links li.is-open > .bhr-sub-menu {
  grid-template-rows: 1fr;
}

.bhr-mobile-menu .bhr-mobile-nav-links .bhr-sub-menu li a {
  padding: 12px 24px 12px 40px;
  font-size: 1.1rem;
  min-height: 48px;
  color: rgba(232, 223, 200, 0.8);
}

.bhr-mobile-menu .bhr-mobile-nav-links .bhr-sub-menu li a:hover {
  color: var(--gold);
  padding-left: 48px;
}

/* Dynamic slots (PS hooks) */
.bhr-mobile-menu #bhr-mobile-nav-content {
  padding: 4px 0;
}

.bhr-mobile-menu #bhr-mobile-nav-content [class*="hidden-"] {
  display: block !important;
}

.bhr-mobile-menu #bhr-mobile-nav-content .top-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bhr-mobile-menu #bhr-mobile-nav-content .top-menu li {
  border-bottom: 1px solid rgba(107, 74, 140, 0.2);
}

.bhr-mobile-menu #bhr-mobile-nav-content .top-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  min-height: 56px;
  padding: 16px 24px;
  color: var(--cream);
  text-decoration: none;
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition:
    color        0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background   0.2s cubic-bezier(0.4, 0, 0.2, 1),
    padding-left 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bhr-mobile-menu #bhr-mobile-nav-content .top-menu li a:hover {
  color: var(--gold);
  background: rgba(212, 181, 112, 0.04);
  padding-left: 30px;
}

/* Active dans PS nav content */
.bhr-mobile-menu #bhr-mobile-nav-content .top-menu li.current a,
.bhr-mobile-menu #bhr-mobile-nav-content .top-menu li.active a {
  color: var(--gold);
  background: rgba(212, 181, 112, 0.07);
  border-left: 3px solid var(--gold);
  padding-left: 21px;
}

.bhr-mobile-menu #bhr-mobile-nav-content .top-menu li.has-sub > a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--gold);
  border-top: 2px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Panel footer mini : compte / wishlist / lang+devise ---- */
.bhr-mobile-footer-mini {
  border-top: 1px solid rgba(212, 181, 112, 0.15);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  /* Safe-area bottom */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.bhr-footer-mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(232, 223, 200, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 6px 8px;
}

.bhr-footer-mini-item:hover {
  color: var(--gold);
  background: rgba(212, 181, 112, 0.06);
}

.bhr-footer-mini-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bhr-footer-mini-divider {
  width: 1px;
  height: 32px;
  background: rgba(212, 181, 112, 0.15);
  flex-shrink: 0;
}

/* Lang+devise selector mini */
.bhr-footer-mini-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(232, 223, 200, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 6px 8px;
  border-radius: 4px;
  border: none;
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease;
}

.bhr-footer-mini-lang:hover {
  color: var(--gold);
  background: rgba(212, 181, 112, 0.06);
}

/* Utility section */
.bhr-mobile-utils {
  padding: 16px 24px;
  border-top: 1px solid rgba(212, 181, 112, 0.15);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.bhr-mobile-utils .bhr-util-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(232, 223, 200, 0.65);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 4px;
  transition: color 0.2s ease;
}

.bhr-mobile-utils .bhr-util-item:hover {
  color: var(--gold);
}

/* Login / Register section */
.bhr-mobile-auth {
  padding: 20px 24px;
  border-top: 1px solid rgba(212, 181, 112, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.bhr-btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    color      0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bhr-btn-login:hover {
  background: rgba(212, 181, 112, 0.1);
  color: var(--cream);
  box-shadow: 0 0 16px rgba(212, 181, 112, 0.2);
}

.bhr-link-register {
  display: block;
  text-align: center;
  color: rgba(232, 223, 200, 0.55);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bhr-link-register:hover {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Body lock */
body.bhr-nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Neutralise le transform sticky du header quand le menu est ouvert.
   header#header a transform:translateY(0px) qui crée un containing block
   pour position:fixed — le menu se positionne alors relativement au header
   (800px) et non au viewport. On force transform:none pour restaurer le
   comportement viewport-relative attendu. La transition bhr-hidden n'est
   pas affectée car elle utilise translateY(-100%) sur une classe distincte. */
body.bhr-nav-open header#header {
  transform: none !important;
  will-change: auto !important;
}

/* Suppress PS native mobile menu */
#mobile_top_menu_wrapper {
  display: none !important;
}

/* ---- Responsive additions ---- */

/* Search overlay: safe padding on narrow screens */
@media (max-width: 414px) {
  .bhr-search-overlay,
  #bhr-search-overlay {
    padding: 64px 16px 24px;
  }
}

/* Sticky CTA bottom clearance — évite overlap newsletter sticky */
@media (max-width: 991.98px) {
  .bhr-sticky-cta,
  [class*="sticky-add-to-cart"],
  [class*="product-sticky"] {
    bottom: env(safe-area-inset-bottom, 0px);
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  /* Ensure newsletter sticky bar stays above CTA */
  .bhr-newsletter-sticky,
  [class*="newsletter-sticky"] {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

/* Lateral padding cohérent 16px — conteneurs principaux sur mobile */
@media (max-width: 575.98px) {
  .page-content,
  #content,
  #main .container,
  .breadcrumb {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ============================================================
   ITER 28 — 3e passe polish mobile nav
   ============================================================ */

/* ---- 1. Cascade slide-in animation — nav items ---- */
@keyframes bhr-slide-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Reset default state (hors panel ouvert) */
.bhr-mobile-menu .bhr-mobile-nav-links li,
.bhr-mobile-menu #bhr-mobile-nav-content .top-menu li {
  opacity: 0;
  transform: translateX(18px);
}

/* Quand le panel est ouvert, on anime chaque item en cascade */
.bhr-mobile-menu.is-open .bhr-mobile-nav-links li,
#bhr-mobile-menu.is-open .bhr-mobile-nav-links li,
.bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li,
#bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li {
  animation: bhr-slide-in 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Délais en cascade — jusqu'à 12 items */
.bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(1),
#bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(1),
.bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(1),
#bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(1) { animation-delay: 0.08s; }
.bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(2),
#bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(2),
.bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(2),
#bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(2) { animation-delay: 0.13s; }
.bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(3),
#bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(3),
.bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(3),
#bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(3) { animation-delay: 0.18s; }
.bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(4),
#bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(4),
.bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(4),
#bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(4) { animation-delay: 0.23s; }
.bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(5),
#bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(5),
.bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(5),
#bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(5) { animation-delay: 0.28s; }
.bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(6),
#bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(6),
.bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(6),
#bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(6) { animation-delay: 0.33s; }
.bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(7),
#bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(7),
.bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(7),
#bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(7) { animation-delay: 0.38s; }
.bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(n+8),
#bhr-mobile-menu.is-open .bhr-mobile-nav-links li:nth-child(n+8),
.bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(n+8),
#bhr-mobile-menu.is-open #bhr-mobile-nav-content .top-menu li:nth-child(n+8) { animation-delay: 0.42s; }

/* Respecter prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .bhr-mobile-menu .bhr-mobile-nav-links li,
  .bhr-mobile-menu #bhr-mobile-nav-content .top-menu li {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* ---- 2. SVG mask — iconographie cohérente ---- */
/* Usage : <span class="bhr-icon" style="--icon: url(...)"></span> */
.bhr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--gold);
  mask-image: var(--icon);
  -webkit-mask-image: var(--icon);
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  opacity: 0.75;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.bhr-icon--sm { width: 16px; height: 16px; }
.bhr-icon--lg { width: 24px; height: 24px; }

/* State actif / hover — icône plein gold */
a:hover .bhr-icon,
button:hover .bhr-icon,
.is-active .bhr-icon,
.current .bhr-icon {
  opacity: 1;
  background-color: var(--gold);
}

/* Icône amethyst pour certains accents */
.bhr-icon--amethyst {
  background-color: var(--amethyst);
}

/* ---- 3. Search bar focus state animée ---- */
.bhr-mobile-search-form {
  position: relative;
}

/* Ligne gold animée sous le champ (underline scaleX) */
.bhr-mobile-search-form::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

.bhr-mobile-search-form:focus-within::after {
  transform: scaleX(1);
}

/* Glow halo sur focus */
.bhr-mobile-search-form:focus-within {
  border-color: var(--gold);
  background: rgba(212, 181, 112, 0.06);
  box-shadow: 0 0 0 3px rgba(212, 181, 112, 0.12), 0 2px 12px rgba(212, 181, 112, 0.08);
}

/* Input placeholder animation */
.bhr-mobile-search-input:focus::placeholder {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Icône search pulse au focus */
.bhr-mobile-search-form:focus-within svg {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(212, 181, 112, 0.6));
  transition: opacity 0.2s ease, filter 0.3s ease;
}

/* ---- 4. Sub-menu sticky header dans le panel ---- */
/* Quand un sous-menu est ouvert, son label parent devient sticky en haut du scroll */
.bhr-mobile-sub-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(20,16,42,0.98) 80%, transparent);
  padding: 10px 24px 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(212, 181, 112, 0.14);
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Bouton back dans le sticky header */
.bhr-mobile-sub-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.bhr-mobile-sub-back:hover {
  opacity: 1;
}

.bhr-mobile-sub-back::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, -1px);
}

/* ---- 5. Recently viewed shortcut ---- */
.bhr-recently-viewed {
  padding: 14px 20px 10px;
  border-top: 1px solid rgba(212, 181, 112, 0.1);
  flex-shrink: 0;
}

.bhr-recently-viewed-title {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 223, 200, 0.4);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bhr-recently-viewed-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.bhr-recently-viewed-list::-webkit-scrollbar {
  display: none;
}

.bhr-recently-viewed-item {
  flex-shrink: 0;
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.bhr-recently-viewed-thumb {
  width: 52px;
  height: 52px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid rgba(212, 181, 112, 0.15);
  background: rgba(212, 181, 112, 0.05);
  transition: border-color 0.2s ease;
}

.bhr-recently-viewed-item:hover .bhr-recently-viewed-thumb {
  border-color: rgba(212, 181, 112, 0.5);
}

.bhr-recently-viewed-name {
  font-size: 0.62rem;
  color: rgba(232, 223, 200, 0.5);
  text-align: center;
  line-height: 1.2;
  max-width: 52px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.bhr-recently-viewed-item:hover .bhr-recently-viewed-name {
  color: var(--gold);
}

/* État vide */
.bhr-recently-viewed-empty {
  font-size: 0.78rem;
  color: rgba(232, 223, 200, 0.3);
  font-style: italic;
}

/* ---- 6. Wishlist count badge ---- */
/* Badge count sur les icônes wishlist mobile */
.bhr-badge {
  position: relative;
  display: inline-flex;
}

.bhr-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  background: var(--amethyst);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  border: 1.5px solid var(--night);
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

/* Animation pop quand le count change */
.bhr-badge-count.bhr-badge--pop {
  animation: bhr-badge-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bhr-badge-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); opacity: 1; }
}

/* Badge 0 : masqué */
.bhr-badge-count[data-count="0"],
.bhr-badge-count:empty {
  display: none;
}

/* Badge wishlist dans le footer mini */
.bhr-footer-mini-item .bhr-badge {
  position: relative;
}

/* ---- 7. Account login/register CTA prominent en haut panel ---- */
/* CTA auth affiché avant la nav — classe bhr-mobile-auth-top */
.bhr-mobile-auth-top {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(107, 74, 140, 0.12), rgba(212, 181, 112, 0.06));
  border-bottom: 1px solid rgba(212, 181, 112, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Avatar placeholder */
.bhr-auth-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 181, 112, 0.35);
  background: rgba(107, 74, 140, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.7;
}

.bhr-auth-avatar svg {
  width: 20px;
  height: 20px;
}

.bhr-auth-info {
  flex: 1;
  min-width: 0;
}

.bhr-auth-greeting {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 0.9rem;
  color: rgba(232, 223, 200, 0.7);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bhr-auth-cta-row {
  display: flex;
  gap: 8px;
}

.bhr-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  min-height: 32px;
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color      0.22s ease,
    box-shadow 0.22s ease;
}

/* Bouton connexion — gold filled */
.bhr-auth-btn--login {
  background: var(--gold);
  color: var(--night);
  border: none;
  font-weight: 600;
}

.bhr-auth-btn--login:hover {
  background: var(--cream);
  box-shadow: 0 2px 12px rgba(212, 181, 112, 0.3);
}

/* Bouton inscription — outline */
.bhr-auth-btn--register {
  background: transparent;
  color: rgba(232, 223, 200, 0.65);
  border: 1px solid rgba(232, 223, 200, 0.25);
}

.bhr-auth-btn--register:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* État connecté : masquer les CTA, afficher username */
.bhr-mobile-auth-top.is-logged-in .bhr-auth-cta-row {
  display: none;
}

.bhr-mobile-auth-top.is-logged-in .bhr-auth-greeting {
  color: var(--cream);
  font-size: 1rem;
}

.bhr-mobile-auth-top.is-logged-in .bhr-auth-avatar {
  border-color: var(--gold);
  opacity: 1;
}

/* ---- 8. Currency/lang switcher segmented control bottom ---- */
.bhr-segmented-control {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 181, 112, 0.18);
  border-radius: 4px;
  overflow: hidden;
  height: 34px;
  flex-shrink: 0;
}

.bhr-segmented-control__option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  height: 100%;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 223, 200, 0.5);
  cursor: pointer;
  border: none;
  background: transparent;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  min-width: 0;
}

/* Séparateur entre options */
.bhr-segmented-control__option + .bhr-segmented-control__option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(212, 181, 112, 0.2);
}

/* Option active */
.bhr-segmented-control__option.is-active,
.bhr-segmented-control__option[aria-pressed="true"],
.bhr-segmented-control__option[aria-selected="true"] {
  background: rgba(212, 181, 112, 0.12);
  color: var(--gold);
  font-weight: 600;
}

.bhr-segmented-control__option:hover:not(.is-active) {
  color: rgba(232, 223, 200, 0.8);
  background: rgba(212, 181, 112, 0.05);
}

/* Ligne de sélection gold bottom */
.bhr-segmented-control__option.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px 1px 0 0;
}

/* Conteneur en bas panel : lang + devise sur la même ligne */
.bhr-mobile-footer-switchers {
  border-top: 1px solid rgba(212, 181, 112, 0.12);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.bhr-mobile-footer-switchers .bhr-switcher-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 223, 200, 0.35);
  flex-shrink: 0;
}

/* Séparateur vertical entre les deux controls */
.bhr-switchers-divider {
  width: 1px;
  height: 28px;
  background: rgba(212, 181, 112, 0.15);
  flex-shrink: 0;
}

/* Cas où les segmented controls débordent — wrapping gracieux */
.bhr-mobile-footer-switchers .bhr-segmented-control {
  max-width: 100%;
}

/* ============================================================
   ITER 49 — 5e passe polish mobile-nav
   ============================================================ */

/* ---- 1. Bottom navigation tabs persistantes (5 items max) ---- */
.bhr-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: linear-gradient(0deg, rgba(14,11,26,0.98) 0%, rgba(20,16,42,0.96) 100%);
  border-top: 1px solid rgba(212, 181, 112, 0.15);
  display: flex;
  align-items: stretch;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 992px) {
  .bhr-bottom-nav {
    display: none !important;
  }
}

.bhr-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(232, 223, 200, 0.45);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px 4px 4px;
  min-height: 44px;
  position: relative;
  transition: color 0.2s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.bhr-bottom-nav-item:hover,
.bhr-bottom-nav-item.is-active {
  color: var(--gold);
  background: rgba(212, 181, 112, 0.05);
}

.bhr-bottom-nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bhr-bottom-nav-item.is-active svg {
  transform: translateY(-1px) scale(1.08);
}

/* Trait gold actif en haut de l'item */
.bhr-bottom-nav-item.is-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 2px 2px;
}

/* Séparateur vertical entre tabs */
.bhr-bottom-nav-item + .bhr-bottom-nav-item::after {
  content: none;
}

/* Clearance du body pour ne pas masquer le contenu */
body.bhr-has-bottom-nav {
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}

/* ---- 2. Pull-to-refresh visual hint ---- */
.bhr-pull-hint {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  z-index: 1025;
  background: linear-gradient(180deg, rgba(14,11,26,0.92) 0%, transparent 100%);
}

.bhr-pull-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Flèche rotative pull-to-refresh */
.bhr-pull-hint-arrow {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: bhr-pull-spin 0.9s linear infinite;
  opacity: 0.7;
}

@keyframes bhr-pull-spin {
  to { transform: rotate(360deg); }
}

/* ---- 3. Tab swipe gesture hint ---- */
/* Indicateur horizontal discret — visible 1.5s au 1er chargement */
.bhr-swipe-hint {
  position: absolute;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(212, 181, 112, 0.55);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1031;
  white-space: nowrap;
  animation: bhr-swipe-hint-fade 2.2s ease 1.2s forwards;
  opacity: 0;
}

@keyframes bhr-swipe-hint-fade {
  0%   { opacity: 0; transform: translateX(-50%) translateY(4px); }
  20%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

.bhr-swipe-hint-arrows {
  display: flex;
  gap: 2px;
  align-items: center;
}

.bhr-swipe-hint-arrows span {
  display: block;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.bhr-swipe-hint-arrows span:first-child {
  transform: rotate(-135deg);
}

.bhr-swipe-hint-arrows span:last-child {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .bhr-swipe-hint { animation: none !important; opacity: 0 !important; }
  .bhr-pull-hint-arrow { animation: none !important; }
}

/* ---- 4. Notification dot top burger ---- */
/* Usage: ajouter .bhr-has-notif sur .bhr-burger */
.bhr-burger.bhr-has-notif::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--amethyst);
  border-radius: 50%;
  border: 1.5px solid var(--night);
  animation: bhr-notif-pulse 2.4s ease-in-out infinite;
}

@keyframes bhr-notif-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 74, 140, 0.55); }
  50%       { box-shadow: 0 0 0 5px rgba(107, 74, 140, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bhr-burger.bhr-has-notif::after { animation: none !important; }
}

/* ---- 5. Quick actions bottom sheet (panier + wishlist) ---- */
.bhr-quick-actions-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1070;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.bhr-quick-actions-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bhr-quick-actions-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1075;
  background: linear-gradient(180deg, rgba(20,16,42,0.99) 0%, rgba(14,11,26,1) 100%);
  border-top: 1px solid rgba(212, 181, 112, 0.22);
  border-radius: 16px 16px 0 0;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bhr-quick-actions-sheet.is-open {
  transform: translateY(0);
}

/* Handle de drag */
.bhr-quick-actions-handle {
  width: 36px;
  height: 4px;
  background: rgba(212, 181, 112, 0.25);
  border-radius: 2px;
  margin: 10px auto 16px;
}

.bhr-quick-actions-title {
  padding: 0 20px 12px;
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 223, 200, 0.4);
  border-bottom: 1px solid rgba(212, 181, 112, 0.1);
}

.bhr-quick-actions-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.bhr-quick-actions-list li a,
.bhr-quick-actions-list li button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--cream);
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

.bhr-quick-actions-list li a:hover,
.bhr-quick-actions-list li button:hover {
  background: rgba(212, 181, 112, 0.05);
  color: var(--gold);
  padding-left: 30px;
}

.bhr-quick-actions-list li a svg,
.bhr-quick-actions-list li button svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.75;
  transition: opacity 0.18s ease;
}

.bhr-quick-actions-list li a:hover svg,
.bhr-quick-actions-list li button:hover svg {
  opacity: 1;
}

/* ---- 6. Theme toggle dark/light ---- */
/* Support @media (prefers-color-scheme: light) */
.bhr-theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px 8px;
  border-radius: 4px;
  min-height: 44px;
  min-width: 44px;
  color: rgba(232, 223, 200, 0.55);
  transition: color 0.2s ease, background 0.2s ease;
}

.bhr-theme-toggle:hover {
  color: var(--gold);
  background: rgba(212, 181, 112, 0.06);
}

/* Pill switch */
.bhr-theme-toggle-pill {
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(212, 181, 112, 0.15);
  border-radius: 10px;
  border: 1px solid rgba(212, 181, 112, 0.25);
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.bhr-theme-toggle-pill::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mode clair activé */
[data-theme="light"] .bhr-theme-toggle-pill,
body.bhr-light-mode .bhr-theme-toggle-pill {
  background: rgba(212, 181, 112, 0.4);
}

[data-theme="light"] .bhr-theme-toggle-pill::after,
body.bhr-light-mode .bhr-theme-toggle-pill::after {
  transform: translateX(16px);
  background: var(--night);
}

/* Adaptation light-mode minimale des composants mobile-nav */
@media (prefers-color-scheme: light) {
  body:not([data-theme="dark"]) .bhr-mobile-menu,
  body:not([data-theme="dark"]) #bhr-mobile-menu {
    background: linear-gradient(180deg, #f5f0e8, #ede6d4);
    color: var(--night);
  }

  body:not([data-theme="dark"]) .bhr-mobile-menu .bhr-mobile-nav-links li a,
  body:not([data-theme="dark"]) .bhr-mobile-menu #bhr-mobile-nav-content .top-menu li a {
    color: var(--night);
  }

  body:not([data-theme="dark"]) .bhr-bottom-nav {
    background: linear-gradient(0deg, rgba(245,240,232,0.98) 0%, rgba(237,230,212,0.96) 100%);
    border-top-color: rgba(107, 74, 140, 0.15);
  }

  body:not([data-theme="dark"]) .bhr-bottom-nav-item {
    color: rgba(14, 11, 26, 0.45);
  }

  body:not([data-theme="dark"]) .bhr-bottom-nav-item.is-active {
    color: var(--amethyst);
  }
}

/* ---- 7. Language switcher inline drapeaux ---- */
.bhr-lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 20px;
  border-top: 1px solid rgba(212, 181, 112, 0.1);
  flex-shrink: 0;
}

.bhr-lang-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid rgba(212, 181, 112, 0.15);
  background: transparent;
  color: rgba(232, 223, 200, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  min-height: 36px;
}

.bhr-lang-item:hover {
  color: var(--gold);
  background: rgba(212, 181, 112, 0.06);
  border-color: rgba(212, 181, 112, 0.35);
}

.bhr-lang-item.is-active {
  color: var(--gold);
  background: rgba(212, 181, 112, 0.1);
  border-color: var(--gold);
}

/* Drapeau emoji ou image */
.bhr-lang-flag {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Image drapeau (fallback si emoji non supporté) */
.bhr-lang-flag-img {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.bhr-lang-item.is-active .bhr-lang-flag-img,
.bhr-lang-item:hover .bhr-lang-flag-img {
  opacity: 1;
}

.bhr-lang-label {
  line-height: 1;
}

/* Compact mode : drapeaux seuls sans label texte */
.bhr-lang-switcher--compact .bhr-lang-label {
  display: none;
}

.bhr-lang-switcher--compact .bhr-lang-item {
  padding: 5px 8px;
  min-width: 36px;
  justify-content: center;
}
