/* =========================================================
   Horizon Bleu — barre horizontale « Zones d'intervention » (1.9.0)
   Les villes viennent du menu WordPress : rien n'est écrit en dur.
   ========================================================= */

/* --- Ordinateur : on remplace la liste déroulante native par la barre --- */
@media (min-width: 1025px) {
  body.hb-zonebar-on .hb-zb-parent > .sub-menu { display: none !important; }
}
.hb-zb-host { position: relative; }

.hb-zonebar {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1000;
  background: linear-gradient(180deg, #FBF8F2 0%, #F6EFE3 100%);
  border-top: 1px solid rgba(201,162,77,.35);
  box-shadow: 0 26px 50px -18px rgba(20,50,92,.22);
  visibility: hidden; opacity: 0; pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, -6px, 0);
  transition: clip-path .55s cubic-bezier(.77,0,.18,1), opacity .35s ease, transform .55s cubic-bezier(.16,1,.3,1), visibility 0s linear .55s;
}
.hb-zonebar.is-open {
  visibility: visible; opacity: 1; pointer-events: auto;
  clip-path: inset(0 0 -40px 0);
  transform: none;
  transition: clip-path .6s cubic-bezier(.77,0,.18,1), opacity .3s ease, transform .6s cubic-bezier(.16,1,.3,1), visibility 0s;
}
/* fine ligne dorée qui se dessine */
.hb-zonebar::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, rgba(201,162,77,0), #C9A24D 30%, #2A8FD6 70%, rgba(42,143,214,0));
  transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.16,1,.3,1) .1s;
}
.hb-zonebar.is-open::before { transform: scaleX(1); }

.hb-zb-inner {
  max-width: 1290px; margin: 0 auto; padding: 22px clamp(20px, 3vw, 40px) 24px;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
}
.hb-zb-kicker {
  flex: 0 0 auto; margin: 0; padding-right: clamp(18px, 2.4vw, 36px);
  border-right: 1px solid #E3D6BE;
  font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #A14832;
  line-height: 1.5;
}
.hb-zb-kicker span { display: block; margin-top: 2px; font-family: "HB Lora", Georgia, serif; font-style: italic; font-weight: 400; font-size: .95rem; letter-spacing: 0; text-transform: none; color: #6C5A3E; }
.hb-zb-list { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 10px clamp(14px, 2.4vw, 34px); margin: 0; padding: 0; list-style: none; }
.hb-zb-list li { margin: 0; padding: 0; list-style: none; opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .5s ease, transform .6s cubic-bezier(.16,1,.3,1); transition-delay: calc(.12s + var(--i, 0) * 70ms); }
.hb-zonebar.is-open .hb-zb-list li { opacity: 1; transform: none; }

.hb-zb-link {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 10px 16px 10px 10px; border-radius: 16px;
  color: #14325C !important; text-decoration: none !important;
  transition: background .35s ease, box-shadow .35s ease;
}
.hb-zb-pin {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 1px solid #E8DCC6; color: #C9A24D;
  transition: background .35s ease, color .35s ease, transform .5s cubic-bezier(.16,1,.3,1), border-color .35s;
}
.hb-zb-pin svg { width: 16px; height: 16px; }
.hb-zb-text { display: flex; flex-direction: column; line-height: 1.2; }
.hb-zb-city { font-family: var(--hb-font-display, Georgia, serif); font-size: 1.12rem; font-weight: 600; }
.hb-zb-sub { margin-top: 3px; font-size: .78rem; color: #6C7A8C; }
.hb-zb-city::after {
  content: ""; display: block; height: 1px; margin-top: 3px; background: #C9A24D;
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.hb-zb-link:hover, .hb-zb-link:focus-visible { background: rgba(255,255,255,.75); box-shadow: 0 10px 26px rgba(20,50,92,.08); }
.hb-zb-link:hover .hb-zb-city::after, .hb-zb-link:focus-visible .hb-zb-city::after, .hb-zb-link[aria-current="page"] .hb-zb-city::after { transform: scaleX(1); }
.hb-zb-link:hover .hb-zb-pin, .hb-zb-link:focus-visible .hb-zb-pin { background: #14325C; border-color: #14325C; color: #E7C980; transform: translateY(-2px); }
.hb-zb-link[aria-current="page"] .hb-zb-pin { background: #C9A24D; border-color: #C9A24D; color: #fff; }
.hb-zb-link:focus-visible, .hb-zb-all:focus-visible { outline: 2px solid #C9A24D; outline-offset: 2px; }

.hb-zb-all {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid #14325C;
  color: #14325C !important; font-size: .85rem; font-weight: 700; text-decoration: none !important;
  transition: background .3s ease, color .3s ease;
}
.hb-zb-all:hover { background: #14325C; color: #fff !important; }
.hb-zb-all span { transition: transform .4s cubic-bezier(.16,1,.3,1); }
.hb-zb-all:hover span { transform: translateX(4px); }

/* lien parent : petite flèche qui pivote */
body.hb-zonebar-on .hb-zb-parent > a .dropdown-nav-toggle { transition: transform .4s cubic-bezier(.16,1,.3,1); }
body.hb-zonebar-on .hb-zb-parent.hb-zb-open > a .dropdown-nav-toggle { transform: rotate(180deg); }
body.hb-zonebar-on .hb-zb-parent.hb-zb-open > a { color: #A14832; }

@media (max-width: 1024px) { .hb-zonebar { display: none !important; } }

/* --- Mobile : tiroir de navigation, cartes adaptées au doigt --- */
@media (max-width: 1024px) {
  body.hb-zonebar-on #mobile-drawer .hb-zb-mparent > .sub-menu { padding: 6px 0 14px !important; }
  body.hb-zonebar-on #mobile-drawer .hb-zb-mparent > .sub-menu > li { border: 0 !important; margin: 0 0 8px !important; }
  body.hb-zonebar-on #mobile-drawer .hb-zb-mparent > .sub-menu > li > a {
    display: flex !important; align-items: center; gap: 14px; min-height: 64px;
    padding: 12px 16px !important; border-radius: 16px;
    background: #FBF8F2; border: 1px solid #EADFCB; color: #14325C !important;
    text-decoration: none !important;
    transition: background .25s ease, transform .2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  body.hb-zonebar-on #mobile-drawer .hb-zb-mparent > .sub-menu > li > a:active { transform: scale(.98); background: #F3EBDD; }
  body.hb-zonebar-on #mobile-drawer .hb-zb-mparent > .sub-menu > li > a[aria-current="page"] { border-color: #C9A24D; }
  #mobile-drawer .hb-zb-mparent .hb-zb-pin { width: 40px; height: 40px; }
  #mobile-drawer .hb-zb-mparent .hb-zb-city { font-size: 1.05rem; }
  #mobile-drawer .hb-zb-mparent .hb-zb-city::after { display: none; }
  #mobile-drawer .hb-zb-mparent .hb-zb-text { flex: 1 1 auto; }
  #mobile-drawer .hb-zb-mparent .hb-zb-chev { flex: 0 0 auto; color: #C9A24D; font-size: 1.2rem; }
  body.hb-zonebar-on #mobile-drawer .hb-zb-mparent .drawer-sub-toggle { min-width: 48px; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-zonebar, .hb-zonebar.is-open, .hb-zonebar::before, .hb-zb-list li, .hb-zb-link, .hb-zb-pin, .hb-zb-city::after, .hb-zb-all, .hb-zb-all span { transition: none !important; }
  .hb-zonebar { clip-path: none; transform: none; }
}

/* 1.9.1 — barre fine et directe */
.hb-zonebar { background: #FBF8F2; box-shadow: 0 14px 30px -18px rgba(20,50,92,.25); }
.hb-zb-inner { padding: 0 clamp(20px, 3vw, 40px); min-height: 50px; justify-content: center; gap: clamp(20px, 3vw, 40px); }
.hb-zb-list { flex: 0 1 auto; justify-content: center; gap: 0; }
.hb-zb-list li { display: flex; align-items: center; }
.hb-zb-list li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #C9A24D; margin: 0 clamp(14px, 2vw, 26px); }
.hb-zb-link { padding: 14px 2px; border-radius: 0; font-family: var(--hb-font-display, Georgia, serif); font-size: 1rem; font-weight: 600; letter-spacing: .01em; }
.hb-zb-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: #C9A24D; transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.hb-zb-link:hover, .hb-zb-link:focus-visible { background: none; box-shadow: none; color: #A14832 !important; }
.hb-zb-link:hover::after, .hb-zb-link:focus-visible::after, .hb-zb-link[aria-current="page"]::after { transform: scaleX(1); }
.hb-zb-link[aria-current="page"] { color: #A14832 !important; }
.hb-zb-all { padding: 0 0 0 clamp(14px, 2vw, 26px); border: 0; border-left: 1px solid #E3D6BE; border-radius: 0; font-size: .8rem; letter-spacing: .04em; color: #6C7A8C !important; }
.hb-zb-all:hover { background: none; color: #14325C !important; }
@media (prefers-reduced-motion: reduce) { .hb-zb-link::after { transition: none !important; } }

/* 1.9.2 — barre toujours visible sur les pages de zones (place réservée : aucun décalage) */
@media (min-width: 1025px) {
  body.hb-zb-pinned .hb-zb-host { margin-bottom: 50px; }
  .hb-zonebar.is-pinned { height: 50px; box-shadow: none; border-bottom: 1px solid #EFE6D6; transition: none; }
  .hb-zonebar.is-pinned .hb-zb-inner { min-height: 50px; height: 50px; }
  .hb-zonebar.is-pinned .hb-zb-list li { transition: none; }
}
.hb-zb-mstrip { display: none; }
@media (max-width: 1024px) {
  body.hb-zb-pinned .site-mobile-header-wrap { position: relative; margin-bottom: 48px; }
  .hb-zb-mstrip {
    display: block; position: absolute; left: 0; right: 0; top: 100%; height: 48px; z-index: 5;
    background: #FBF8F2; border-top: 1px solid rgba(201,162,77,.35); border-bottom: 1px solid #EFE6D6;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hb-zb-mstrip::-webkit-scrollbar { display: none; }
  .hb-zb-mstrip ul { display: flex; align-items: center; justify-content: center; min-width: max-content; height: 100%; margin: 0 auto; padding: 0 20px; list-style: none; gap: 0; }
  .hb-zb-mstrip li { display: flex; align-items: center; margin: 0; list-style: none; }
  .hb-zb-mstrip li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #C9A24D; margin: 0 16px; }
  .hb-zb-mstrip a { display: flex; align-items: center; min-height: 44px; padding: 0 4px; font-family: var(--hb-font-display, Georgia, serif); font-size: .95rem; font-weight: 600; color: #14325C !important; text-decoration: none !important; white-space: nowrap; }
  .hb-zb-mstrip a[aria-current="page"] { color: #A14832 !important; box-shadow: inset 0 -1px 0 #C9A24D; min-height: 30px; }
}
@media (max-width: 1024px) {
  .hb-zb-mstrip ul { padding: 0 14px; }
  .hb-zb-mstrip a { font-size: .84rem; padding: 0 2px; }
  .hb-zb-mstrip li + li::before { margin: 0 10px; }
}
