/* CityZenZen v189 — bandeau supérieur hiérarchisé et responsive */
.topbar.topbar-v189{
  --header-height:76px;
  position:relative;
  z-index:40;
  display:flex;
  height:var(--header-height);
  align-items:center;
  gap:clamp(12px,1.4vw,24px);
  padding:9px clamp(14px,1.8vw,26px);
  border-bottom:1px solid rgba(24,49,40,.12);
  background:rgba(255,253,249,.97);
  box-shadow:0 5px 22px rgba(24,49,40,.07);
  backdrop-filter:blur(12px);
}
.topbar-v189 .brand{flex:0 0 auto;margin:0}
.topbar-v189 .brand-mark{width:44px;height:44px}
.topbar-v189 .brand-copy b{font-size:13px}
.topbar-v189 .brand-copy small{font-size:7.5px}

.primary-navigation{
  display:flex;
  flex:0 1 auto;
  align-items:center;
  gap:4px;
  padding:4px;
  border:1px solid #ded8cd;
  border-radius:14px;
  background:#f3f0e9;
}
.primary-nav-item{
  position:relative;
  display:flex;
  min-width:0;
  min-height:48px;
  align-items:center;
  gap:9px;
  padding:7px 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#50615a;
  cursor:pointer;
  font-family:inherit;
  text-align:left;
  transition:background .18s,color .18s,box-shadow .18s,transform .18s;
}
.primary-nav-item svg{width:19px;height:19px;flex:0 0 auto;color:#8b6a30}
.primary-nav-item span,.primary-nav-item b,.primary-nav-item small{display:block;white-space:nowrap}
.primary-nav-item b{font-size:10px;line-height:1.1}
.primary-nav-item small{margin-top:3px;color:#7b8781;font-size:6.5px;font-weight:650;letter-spacing:.02em}
.primary-nav-item:hover,.primary-nav-item:focus-visible{background:rgba(255,255,255,.72);color:#17352d;outline:0;transform:translateY(-1px)}
.primary-nav-item.is-current{
  background:#fff;
  color:#17352d;
  box-shadow:0 5px 15px rgba(24,49,40,.11),inset 0 0 0 1px rgba(200,150,69,.22);
}
.primary-nav-item.is-current::after{
  position:absolute;
  right:11px;
  bottom:5px;
  left:40px;
  height:2px;
  border-radius:999px;
  background:#c89645;
  content:"";
}

.topbar-utilities{display:flex;min-width:0;align-items:center;gap:9px;margin-left:auto}
.topbar-v189 .utility-actions{display:flex;align-items:center;gap:6px}
.topbar-v189 .utility-actions>button,
.topbar-v189 .utility-actions>.questionnaire-link{
  position:relative;
  display:grid;
  width:42px;
  height:42px;
  min-height:42px;
  padding:0;
  place-items:center;
  overflow:visible;
  border:1px solid #ded8cd;
  border-radius:11px;
  background:#fff;
  color:#17352d;
  box-shadow:none;
  animation:none;
  transform:none;
}
.topbar-v189 .utility-actions>button::after{display:none}
.topbar-v189 .utility-actions>button:hover,
.topbar-v189 .utility-actions>button:focus-visible,
.topbar-v189 .utility-actions>.questionnaire-link:hover,
.topbar-v189 .utility-actions>.questionnaire-link:focus-visible{
  border-color:#c89645;
  box-shadow:0 7px 18px rgba(24,49,40,.11),0 0 0 3px rgba(200,150,69,.1);
  outline:0;
  transform:translateY(-1px);
}
.topbar-v189 .utility-actions>button.loan-open{border-color:#d9bd86;background:#fff8eb}
.topbar-v189 .utility-actions>.questionnaire-link{border-color:#b8d7cd;background:#e9f5f0}
.topbar-v189 .utility-actions svg{width:19px;height:19px;color:#9d6d25;transform:none}
.topbar-v189 .utility-actions>.questionnaire-link svg{color:#2f6e5e}
.topbar-v189 .utility-actions span{display:none}

.topbar-more{position:relative;flex:0 0 auto}
.topbar-more summary{
  display:grid;
  width:36px;
  height:42px;
  place-items:center;
  border:1px solid transparent;
  border-radius:10px;
  color:#68766f;
  cursor:pointer;
  font-size:20px;
  font-weight:800;
  letter-spacing:2px;
  list-style:none;
}
.topbar-more summary::-webkit-details-marker{display:none}
.topbar-more summary:hover,.topbar-more summary:focus-visible{border-color:#ded8cd;background:#f5f2ec;color:#17352d;outline:0}
.topbar-more[open] summary{border-color:#c89645;background:#fff8eb;color:#17352d}
.topbar-more-menu{
  position:absolute;
  z-index:100;
  top:calc(100% + 9px);
  right:0;
  display:grid;
  width:200px;
  gap:3px;
  padding:8px;
  border:1px solid #ded8cd;
  border-radius:12px;
  background:#fffdf9;
  box-shadow:0 18px 45px rgba(24,49,40,.18);
}
.topbar-more-menu a{padding:9px 10px;border-radius:8px;color:#526159;font-size:9px;font-weight:700}
.topbar-more-menu a:hover,.topbar-more-menu a:focus-visible{background:#eef3ef;color:#17352d;outline:0}
.topbar-more-menu a:first-child{color:#8a621f}

.topbar-v189 .agent{
  min-width:0;
  gap:8px;
  padding-left:10px;
  border-left:1px solid #e6e0d5;
}
.topbar-v189 .agent span b{font-size:9.5px}
.topbar-v189 .agent span small{font-size:6.8px}
.topbar-v189 .agent>.open-lead{
  margin-left:2px;
  padding:10px 12px;
  border-radius:9px;
  white-space:nowrap;
  font-size:8px;
}

/* Les anciens liens juridiques verticaux sont désormais dans le menu secondaire. */
.topbar-v189>.topbar-legal{display:none!important}

body:not(.fuel-map-page) .app-main{height:calc(100svh - 76px)}
body.fuel-map-page .fuel-map-shell{height:calc(100svh - 76px)}

@media(min-width:1450px){
  .topbar-v189 .utility-actions>button,
  .topbar-v189 .utility-actions>.questionnaire-link{
    display:flex;
    width:auto;
    min-width:42px;
    gap:7px;
    padding:0 10px;
  }
  .topbar-v189 .utility-actions span{display:block;text-align:left}
  .topbar-v189 .utility-actions b{font-size:8px}
  .topbar-v189 .utility-actions small{display:none}
}

@media(max-width:1220px){
  .topbar-v189 .agent span{display:none}
  .topbar-v189 .agent>.open-lead{padding-right:10px;padding-left:10px}
  .primary-nav-item{padding-right:10px;padding-left:10px}
}

@media(max-width:1040px){
  .topbar.topbar-v189{gap:10px;padding-right:13px;padding-left:13px}
  .topbar-v189 .brand-copy small{display:none}
  .primary-nav-item small{display:none}
  .primary-nav-item{min-height:44px}
  .topbar-v189 .agent>.open-lead{display:none}
  .topbar-v189 .agent{padding-left:7px}
}

@media(max-width:820px){
  .topbar.topbar-v189{--header-height:64px;height:64px;gap:7px;padding:7px 10px}
  .topbar-v189 .brand-mark{width:38px;height:38px}
  .topbar-v189 .brand-copy{display:none}
  .primary-navigation{gap:2px;padding:3px;border-radius:11px}
  .primary-nav-item{min-height:40px;gap:6px;padding:6px 8px;border-radius:8px}
  .primary-nav-item svg{width:16px;height:16px}
  .primary-nav-item b{font-size:8px}
  .primary-nav-item small{display:none}
  .primary-nav-item.is-current::after{right:8px;bottom:4px;left:30px}
  .topbar-v189 .utility-actions{gap:4px}
  .topbar-v189 .utility-actions>button,
  .topbar-v189 .utility-actions>.questionnaire-link{width:36px;height:36px;min-height:36px;border-radius:9px}
  .topbar-v189 .utility-actions svg{width:17px;height:17px}
  .topbar-v189 .utility-actions>.questionnaire-link{display:grid}
  .topbar-more,.topbar-v189 .agent{display:none}
  body:not(.fuel-map-page) .app-main{height:auto}
  body.fuel-map-page .fuel-map-shell{height:auto;min-height:calc(100svh - 64px)}
}

@media(max-width:480px){
  .topbar.topbar-v189{padding-right:7px;padding-left:7px}
  .primary-nav-item{gap:4px;padding-right:6px;padding-left:6px}
  .primary-nav-item b{font-size:7.5px}
  .topbar-v189 .utility-actions>button,
  .topbar-v189 .utility-actions>.questionnaire-link{width:34px;height:34px;min-height:34px}
}

@media(max-width:380px){
  .primary-nav-item svg{display:none}
  .primary-nav-item.is-current::after{left:7px}
}

@media (min-width:821px) and (max-width:980px){
  body:not(.fuel-map-page) .search-sidebar,
  body:not(.fuel-map-page) .price-map-card{height:calc(100svh - 76px)}
}
