/* AuGré France — Header compact v1.1.0.
   Ne jamais définir le fond, la position sticky/fixed ou le statut du compte.
   Les styles B2B/B2C d'origine restent la source de vérité. */
.ag-hc-header { --ag-hc-gap: clamp(9px, 1.05vw, 19px); }
.ag-hc-header .ag-hc-hidden-menu-item { display:none !important; }
.ag-hc-header .ag-hc-pro-nav,
.ag-hc-header .ag-hc-account-nav {
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  min-width:0;
  margin-block:0 !important;
  gap:0 !important;
}
.ag-hc-header .ag-hc-account-nav { align-items:center !important; }
.ag-hc-header .ag-hc-pro-nav { align-items:flex-start !important; }
.ag-hc-header .ag-hc-account-nav > a,
.ag-hc-header .ag-hc-pro-nav > a { margin:0 !important; white-space:nowrap; }
.ag-hc-header .ag-hc-account-detail,
.ag-hc-header .ag-hc-pro-detail {
  display:block !important;
  position:static !important;
  inset:auto !important;
  box-sizing:border-box;
  width:auto !important;
  min-height:0 !important;
  height:auto !important;
  max-width:175px;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:inherit !important;
  font-size:11px !important;
  line-height:1.2 !important;
  font-weight:600 !important;
  letter-spacing:.025em;
  opacity:.75;
  text-transform:none !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  pointer-events:none;
}
.ag-hc-header .ag-hc-pro-detail { margin-left:12px !important; }
.ag-hc-header .ag-hc-account-detail { margin-top:-1px !important; }
@media (min-width:1000px) {
  .ag-hc-header .ag-hc-toprow {
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:space-between !important;
    column-gap:clamp(10px,1.4vw,20px) !important;
    row-gap:0 !important;
    min-height:0 !important;
    padding-top:6px !important;
    padding-bottom:6px !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
  }
  .ag-hc-header .ag-hc-toprow > * { min-width:0; }
  .ag-hc-header .ag-hc-toprow > .wp-block-group {
    flex:1 1 auto !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-end !important;
    align-items:center !important;
    gap:var(--ag-hc-gap) !important;
    min-width:0;
  }
  .ag-hc-header .ag-hc-toprow .wp-block-navigation { flex:0 1 auto; min-width:0; }
  .ag-hc-header .ag-hc-toprow .wp-block-navigation__container,
  .ag-hc-header .ag-hc-toprow .wp-block-page-list {
    gap:var(--ag-hc-gap) !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
  }
  .ag-hc-header .ag-hc-toprow .wp-block-navigation-item__content,
  .ag-hc-header .ag-hc-toprow .wp-block-pages-list__item__link {
    white-space:nowrap;
    font-size:clamp(13.5px,1.1vw,16px) !important;
  }
  .ag-hc-header .ag-hc-toprow .wp-block-site-logo img,
  .ag-hc-header .ag-hc-toprow img.custom-logo {
    max-height:70px !important;
    width:auto !important;
    object-fit:contain !important;
  }
  .ag-hc-header .ag-hc-toprow .wc-block-mini-cart,
  .ag-hc-header .ag-hc-toprow .wc-block-mini-cart__button {white-space:nowrap;}
  .ag-hc-header .ag-hc-toprow .wp-block-navigation-item,
  .ag-hc-header .ag-hc-toprow .wp-block-pages-list__item { margin-block:0 !important; }
  .ag-hc-header .ag-hc-pro-nav { transform:translateX(-4px); }
}
@media (min-width:1000px) and (max-width:1250px) {
  .ag-hc-header { --ag-hc-gap:8px; }
  .ag-hc-header .ag-hc-toprow { column-gap:9px !important; }
  .ag-hc-header .ag-hc-toprow .wp-block-navigation-item__content,
  .ag-hc-header .ag-hc-toprow .wp-block-pages-list__item__link {font-size:13px !important;}
  .ag-hc-header .ag-hc-toprow .wp-block-site-logo img,
  .ag-hc-header .ag-hc-toprow img.custom-logo {max-height:65px !important;}
}
@media (max-width:999px) {
  .ag-hc-header .ag-hc-toprow {padding-top:7px !important;padding-bottom:7px !important;}
  .ag-hc-header .ag-hc-pro-detail,.ag-hc-header .ag-hc-account-detail {max-width:150px;font-size:10px !important;}
}
