/* Font Awesome 6 auto-hébergé (assets/fontawesome) : icônes fas/far saisies dans les blocs du menu (BO ets_megamenu).
   Doit rester avant toute autre règle (contrainte @import). */
@import url('../fontawesome/css/solid.min.css');
@import url('../fontawesome/css/regular.min.css');

/**
 * Naturabox — en-tête modernisé (templates/_partials/header.tpl, ets_megamenu nb-menu.tpl, assets/js/nb-header.js).
 * Barre fine + barre principale sur une ligne ; seule la barre principale reste collée (top négatif du #header).
 * --nb-hdr-h : hauteur de la barre collée, utilisée par les éléments collants des pages (onglets, carte d'achat…).
 */
:root {
  --nb-topbar-h: 0px;
  --nb-hdr-h: 60px;
}

@media (min-width: 1200px) {
  :root {
    --nb-topbar-h: 36px;
    --nb-hdr-h: 72px;
  }
}

/* ---------- Conteneur collant ---------- */
#header.header {
  position: sticky;
  top: calc(-1 * var(--nb-topbar-h));
  z-index: 1030;
  background: #fff;
  box-shadow: none;
  transition: box-shadow .2s ease;
}

/* séparation nette avec le contenu (hors accueil, où la barre est posée sur le visuel) : filet + ombre douce,
   renforcée une fois collée */
body:not(#index) #header.header {
  border-bottom: 1px solid var(--nb-line);
  box-shadow: 0 4px 14px -10px rgba(25, 45, 23, .3);
}

html.nb-is-stuck #header.header {
  box-shadow: 0 6px 20px -12px rgba(25, 45, 23, .35);
}

/* fil d'Ariane sur un bandeau clair pleine largeur, sous l'en-tête */
body:not(#index) .breadcrumb__wrapper {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--nb-line);
  background: #f5f6f3;
}

body:not(#index) .breadcrumb__wrapper .breadcrumb {
  margin: 0;
  padding: .7rem 0;
}

/* ---------- Barre fine ---------- */
.nb-topbar {
  display: none;
  height: var(--nb-topbar-h);
  font-size: .8125rem;
  background: var(--nb-green-dark);
}

@media (min-width: 1200px) {
  .nb-topbar {
    display: block;
  }
}

.nb-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.nb-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.nb-topbar__link .material-icons {
  font-size: 17px;
  color: var(--nb-yellow);
}

.nb-topbar__link:hover {
  color: var(--nb-yellow);
}

.nb-topbar__tagline {
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}

.nb-topbar__link--box {
  padding: .25rem .9rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--nb-green-dark);
  background: var(--nb-yellow);
}

.nb-topbar__link--box .material-icons {
  color: var(--nb-green-dark);
}

.nb-topbar__link--box:hover,
.nb-topbar__link--box:focus-visible {
  color: var(--nb-green-dark);
  background: #fff;
}

/* ---------- Barre principale ---------- */
.nb-hdr {
  position: relative;
  background: #fff;
}

.nb-hdr__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--nb-hdr-h);
  gap: 1rem;
}

@media (min-width: 1200px) {
  .nb-hdr__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.25rem;
  }
}

.nb-hdr__logo {
  justify-self: center;
}

.nb-hdr__logo .logo {
  display: block;
  width: auto;
  max-height: 40px;
}

@media (min-width: 1200px) {
  .nb-hdr__logo {
    grid-column: 1;
    justify-self: start;
  }

  .nb-hdr__logo .logo {
    max-height: 42px;
  }
}

@media (min-width: 1600px) {
  .nb-hdr__logo .logo {
    max-height: 48px;
  }
}

.nb-hdr__nav {
  display: none;
  min-width: 0;
}

@media (min-width: 1200px) {
  .nb-hdr__nav {
    display: flex;
    justify-content: center;
    height: 100%;
  }
}

.nb-hdr__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .15rem;
}

/* bouton menu (mobile) */
.nb-hdr__burger {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.nb-hdr__burger:hover {
  background: var(--nb-soft);
}

@media (min-width: 1200px) {
  .nb-hdr__burger {
    display: none;
  }
}

.nb-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.nb-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--nb-ink);
}

.nb-burger span:nth-child(2) {
  width: 70%;
}

/* actions : boutons ronds à pictogramme */
.nb-hdr__actions .header-block {
  margin: 0;
}

.nb-hdr__actions .header-block__action-btn,
.nb-hdr__actions .nb-search__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 44px;
  height: 44px;
  padding: 0 .6rem !important;
  border: 0;
  border-radius: 999px;
  color: var(--nb-ink);
  background: none;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.nb-hdr__actions .header-block__action-btn:hover,
.nb-hdr__actions .nb-search__toggle:hover,
.nb-hdr__actions .header-block__action-btn:focus-visible {
  color: var(--nb-primary);
  background: var(--nb-soft);
}

.nb-hdr__actions .nb-ico,
.nb-hdr__actions .header-block__icon {
  width: 24px;
  height: 24px;
  margin: 0;
  font-size: 24px;
}

.nb-hdr__actions .header-block__title {
  font-size: .875rem;
  font-weight: 600;
}

.nb-hdr__actions .header-block__badge {
  position: absolute;
  top: 4px;
  right: auto;
  left: calc(.6rem + 14px); /* coin haut droit du pictogramme, avec ou sans libellé */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1;
}

.nb-hdr__actions .dropdown-toggle::after {
  display: none;
}

/* compte : dans le tiroir sur mobile */
@media (max-width: 1199.98px) {
  .nb-hdr__account {
    display: none;
  }
}

/* voile sous l'en-tête quand un panneau est ouvert */
.nb-hdr__scrim {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: -1;
  height: 100vh;
  background: rgba(20, 30, 22, .28);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}

html.nb-mega-open .nb-hdr__scrim {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease;
}

/* ---------- Navigation (bureau) ---------- */
.nb-nav {
  height: 100%;
}

.nb-nav__list {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb-nav__item {
  display: flex;
}

.nb-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0 .5rem;
  border: 0;
  font-family: var(--nb-font-title); /* police des boutons (maquette) */
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--nb-ink);
  background: none;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 1360px) {
  .nb-nav__link {
    padding: 0 .75rem;
    font-size: .9375rem;
  }
}

@media (min-width: 1600px) {
  .nb-nav__link {
    padding: 0 1rem;
    font-size: 1rem;
  }
}

.nb-nav__link::after {
  position: absolute;
  right: .5rem;
  bottom: 0;
  left: .5rem;
  height: 3px;
  border-radius: 3px 3px 0 0;
  content: "";
  background: var(--nb-primary);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.nb-nav__link:hover,
.nb-nav__link[aria-expanded="true"] {
  color: var(--nb-primary);
}

.nb-nav__link[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.nb-nav__chev {
  margin-right: -.2rem;
  font-size: 18px;
  transition: transform .2s ease;
}

.nb-nav__link[aria-expanded="true"] .nb-nav__chev {
  transform: rotate(180deg);
}

.nb-nav__link:focus-visible {
  outline: 2px solid var(--nb-primary);
  outline-offset: -4px;
  border-radius: 6px;
}

/* ---------- Méga-panneau ---------- */
.nb-mega {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 2;
  border-top: 1px solid var(--nb-line);
  background: #fff;
  box-shadow: 0 24px 40px -24px rgba(25, 45, 23, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

html.nb-mega-open .nb-mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .18s ease, transform .18s ease;
}

.nb-panel[hidden] {
  display: none;
}

.nb-panel__inner {
  position: relative;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.nb-panel__grid {
  display: grid;
  grid-template-columns: repeat(var(--nb-cols, 4), minmax(0, 1fr));
  gap: 2rem;
}

.nb-panel__grid--promo {
  grid-template-columns: repeat(var(--nb-cols, 3), minmax(0, 1fr)) minmax(260px, 320px);
}

.nb-panel__col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.nb-panel__col:not(.nb-panel__col--promo) + .nb-panel__col:not(.nb-panel__col--promo) {
  padding-left: 2rem;
  border-left: 1px solid var(--nb-line);
}

.nb-panel__all {
  position: absolute;
  top: 1.75rem;
  right: calc(var(--bs-gutter-x, 1.5rem) * .5 + 2rem);
  display: none;
}

/* bloc de liens */
.nb-mblock__head {
  display: block;
  margin: 0 0 .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nb-primary);
  text-decoration: none;
}

.nb-mblock--orange .nb-mblock__head {
  color: #d9822b;
}

a.nb-mblock__head:hover {
  text-decoration: underline;
}

.nb-mblock__list {
  display: grid;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb-mitem {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 -.5rem;
  padding: .45rem .5rem;
  border-radius: 10px;
  color: var(--nb-ink);
  text-decoration: none;
  transition: background-color .15s ease;
}

a.nb-mitem:hover {
  background: var(--nb-soft);
}

a.nb-mitem:hover .nb-mitem__title {
  color: var(--nb-primary);
}

.nb-mitem__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--nb-primary);
  background: #eef5f0;
}

.nb-mblock--orange .nb-mitem__ic {
  color: #d9822b;
  background: #fbf0e3;
}

.nb-mitem__ic--num {
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  background: var(--nb-primary);
}

.nb-mblock--compact .nb-mitem__ic,
.nb-mblock--links .nb-mitem__ic {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
  font-size: 13px;
  background: none;
}

.nb-mitem__thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--nb-soft);
}

.nb-mitem__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nb-mitem__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.nb-mitem__title {
  font-size: .9375rem;
  font-weight: 600;
  transition: color .15s ease;
}

.nb-mitem__sub {
  margin-top: .1rem;
  font-size: .8125rem;
  color: var(--nb-muted);
}

.nb-mblock--compact .nb-mitem {
  padding-block: .3rem;
}

.nb-mblock__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.nb-mblock__logo img {
  display: block;
  width: auto;
  max-width: 130px;
  max-height: 48px;
  object-fit: contain;
}

.nb-mblock__more {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .75rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--nb-primary);
  text-decoration: none;
}

.nb-mblock__more .material-icons {
  font-size: 18px;
  transition: transform .2s ease;
}

.nb-mblock__more:hover .material-icons {
  transform: translateX(3px);
}

/* méga-panneau : liens « Tous les coffrets… » alignés en bas des colonnes, à la même hauteur (recette 2026-11-11) */
.nb-mega .nb-panel__col > .nb-mblock:last-child {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: flex-start;
}

.nb-mega .nb-panel__col > .nb-mblock:last-child > .nb-mblock__list {
  align-self: stretch;
}

.nb-mega .nb-panel__col > .nb-mblock:last-child > .nb-mblock__more {
  margin-top: auto;
  padding-top: .75rem;
}

/* carte promo */
.nb-promo {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  background: var(--nb-green);
  text-decoration: none;
  isolation: isolate;
}

.nb-promo__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.nb-promo::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(10, 20, 12, .75));
}

.nb-promo:hover .nb-promo__img {
  transform: scale(1.04);
}

.nb-promo__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  padding: 1.25rem;
}

.nb-promo__badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: .25rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--nb-ink);
  background: var(--nb-yellow);
}

.nb-promo__badge .material-icons {
  font-size: 13px;
}

.nb-promo__title {
  font-family: var(--nb-font-title);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.15;
}

.nb-promo__sub {
  font-size: .875rem;
  opacity: .9;
}

.nb-promo__btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .5rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--nb-ink);
  background: #fff;
}

.nb-promo__btn .material-icons {
  font-size: 16px;
}

/* ---------- Tiroir mobile ---------- */
.nb-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.nb-drawer[hidden] {
  display: none;
}

.nb-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 22, .45);
  opacity: 0;
  transition: opacity .25s ease;
}

.nb-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 92vw);
  background: #fff;
  box-shadow: 10px 0 40px rgba(0, 0, 0, .15);
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.nb-drawer.is-open .nb-drawer__scrim {
  opacity: 1;
}

.nb-drawer.is-open .nb-drawer__panel {
  transform: none;
}

html.nb-drawer-lock,
html.nb-drawer-lock body {
  overflow: hidden;
}

.nb-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  height: 60px;
  padding: 0 .75rem 0 1.25rem;
  border-bottom: 1px solid var(--nb-line);
}

.nb-drawer__logo img {
  width: auto;
  height: 34px;
}

.nb-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--nb-ink);
  background: none;
}

.nb-drawer__close:hover {
  background: var(--nb-soft);
}

.nb-drawer__views {
  position: relative;
  flex: 1;
  overflow: hidden;
  overflow: clip; /* pas de défilement horizontal programmatique (focus dans une vue en cours de glissement) */
}

.nb-drawer__view {
  position: absolute;
  inset: 0;
  padding: 1rem 1.25rem 2rem;
  overflow-y: auto;
  background: #fff;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s;
}

.nb-drawer__view.is-active {
  transform: none;
  visibility: visible;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.nb-drawer__view.is-behind {
  transform: translateX(-30%);
  visibility: hidden;
}

.nb-drawer__search {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border: 0;
  border-radius: 999px;
  font-size: .9375rem;
  color: var(--nb-muted);
  background: var(--nb-soft);
  text-align: left;
}

.nb-drawer__list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.nb-drawer__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem .25rem;
  border: 0;
  border-bottom: 1px solid var(--nb-line);
  font-family: var(--nb-font-title);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nb-ink);
  background: none;
  text-align: left;
  text-decoration: none;
}

.nb-drawer__item .material-icons {
  color: var(--nb-muted);
}

.nb-drawer__extra {
  display: grid;
  gap: .15rem;
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
  list-style: none;
  background: var(--nb-cream-2);
}

.nb-drawer__extra a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 0;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--nb-ink);
  text-decoration: none;
}

.nb-drawer__extra .material-icons {
  font-size: 20px;
  color: var(--nb-primary);
}

.nb-drawer__extra small {
  font-weight: 400;
  color: var(--nb-muted);
}

.nb-drawer__sub-head {
  position: sticky;
  top: -1rem;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .5rem;
  margin: -1rem -1.25rem 1rem;
  padding: .5rem 1.25rem;
  border-bottom: 1px solid var(--nb-line);
  background: #fff;
}

.nb-drawer__back {
  display: inline-flex;
  align-items: center;
  margin-left: -.5rem;
  padding: .5rem .25rem;
  border: 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--nb-muted);
  background: none;
}

.nb-drawer__sub-title {
  margin: 0;
  font-family: var(--nb-font-title);
  font-size: 1.0625rem;
  font-weight: 800;
  text-align: center;
  color: var(--nb-title);
}

.nb-drawer__all {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--nb-primary);
  text-decoration: none;
  white-space: nowrap;
}

.nb-drawer__all .material-icons {
  font-size: 16px;
}

.nb-drawer__view .nb-mblock {
  padding: 1rem 0;
  border-bottom: 1px solid var(--nb-line);
}

.nb-drawer__view .nb-mblock:last-of-type {
  border-bottom: 0;
}

.nb-drawer__view .nb-promo {
  min-height: 200px;
  margin-top: 1rem;
}

.nb-drawer__view .nb-mitem {
  padding-block: .55rem;
}

/* 1200–1279 px : menu resserré pour tenir entre le logo et les actions */
@media (min-width: 1200px) and (max-width: 1279.98px) {
  .nb-hdr__row {
    gap: .75rem;
  }

  .nb-hdr__logo .logo {
    max-height: 36px;
  }

  .nb-nav__link {
    padding: 0 .4rem;
    font-size: .8125rem;
  }

  .nb-nav__chev {
    font-size: 16px;
  }

  .nb-hdr__actions .header-block__action-btn,
  .nb-hdr__actions .nb-search__toggle {
    min-width: 40px;
    padding: 0 .4rem !important;
  }
}

/* ---------- Accueil : barre principale transparente posée sur le visuel d'ouverture ----------
   (le hero remonte sous la barre ; fond blanc dès que la barre est collée ou qu'un menu est ouvert) */
body#index #header.header {
  background: transparent;
}

/* verre dépoli : blanc translucide + flou de la photo (sur un pseudo-élément, pour ne pas faire de la barre le repère
   des éléments positionnés qu'elle contient) ; blanc plein une fois collée ou menu ouvert */
body#index .nb-hdr {
  isolation: isolate;
  background: transparent;
}

body#index .nb-hdr::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  /* aucun voile à gauche (logo, menu sur la partie claire de la photo), voile progressif vers la droite, où la photo
     est plus sombre (recherche, compte, panier) : le masque estompe aussi le flou */
  background: rgba(255, 255, 255, .78);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, #000 82%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 40%, #000 82%);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  transition: background-color .2s ease;
}

html.nb-is-stuck body#index .nb-hdr::before,
html.nb-mega-open body#index .nb-hdr::before {
  border-bottom-color: var(--nb-line);
  background: #fff;
  -webkit-mask-image: none;
  mask-image: none;
}

body#index #content.home-natura {
  overflow: visible;
  overflow-x: clip; /* le hero dépasse vers le haut sous la barre ; débordement horizontal toujours coupé */
}

body#index .nb-hero {
  margin-top: calc(-1 * var(--nb-hdr-h));
  padding-top: var(--nb-hdr-h);
}

body#index .nb-hero__inner {
  z-index: 2;
}

/* panier : la pastille déborde du pictogramme à droite — espace avant le libellé « Panier » seulement quand elle est
   affichée (panier vide : pas de pastille, écart normal) */
.nb-hdr__actions .ps-shoppingcart .header-block--active .header-block__action-btn {
  gap: 1.05rem;
}

/* ---------- Menu déroulant du compte (ps_customersignin.tpl, connecté) ---------- */
.nb-hdr__actions #userMenuButton::after {
  margin-left: .35rem;
  border: 0;
  font-family: "Material Icons";
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
  content: "expand_more";
  transition: transform .2s ease;
}

.nb-hdr__actions #userMenuButton[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.nb-umenu.dropdown-menu {
  width: 290px;
  margin-top: .65rem !important;
  padding: .5rem;
  border: 1px solid var(--nb-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px -18px rgba(25, 45, 23, .35);
}

.nb-umenu__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .4rem;
  padding: .75rem .75rem .9rem;
  border-radius: 12px;
  background: #f5f6f3;
}

.nb-umenu__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: var(--nb-font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--nb-green-dark);
  background: var(--nb-yellow);
}

.nb-umenu__who {
  display: grid;
  min-width: 0;
}

.nb-umenu__hello {
  font-family: var(--nb-font-title);
  font-size: 1rem;
  font-weight: 800;
  color: var(--nb-title);
}

.nb-umenu__mail {
  overflow: hidden;
  font-size: .75rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--nb-muted);
}

.nb-umenu__list {
  display: grid;
  gap: .1rem;
}

.nb-umenu .nb-umenu__item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .75rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--nb-text);
  white-space: normal;
}

.nb-umenu .nb-umenu__item .material-icons {
  font-size: 20px;
  color: var(--nb-primary);
}

.nb-umenu .nb-umenu__item:hover,
.nb-umenu .nb-umenu__item:focus-visible {
  color: var(--nb-green-dark);
  background: #eef5f0;
}

.nb-umenu .nb-umenu__item[aria-current="page"] {
  color: var(--nb-green-dark);
  background: #eef5f0;
}

/* partenaire : accès à l'espace partenaire, mis en avant (bleu du bouton « Espace partenaire » du site) */
.nb-umenu .nb-umenu__item--partner {
  margin-bottom: .35rem;
  color: #1f5866;
  background: #eaf5f8;
}

.nb-umenu .nb-umenu__item--partner .material-icons {
  color: #3d8fa3;
}

.nb-umenu .nb-umenu__item--partner .nb-umenu__go {
  margin-left: auto;
  font-size: 18px;
  transition: transform .15s;
}

.nb-umenu .nb-umenu__item--partner:hover,
.nb-umenu .nb-umenu__item--partner:focus-visible {
  color: #fff;
  background: var(--nb-blue);
}

.nb-umenu .nb-umenu__item--partner:hover .material-icons,
.nb-umenu .nb-umenu__item--partner:focus-visible .material-icons {
  color: #fff;
}

.nb-umenu .nb-umenu__item--partner:hover .nb-umenu__go {
  transform: translateX(3px);
}

.nb-umenu .nb-umenu__logout {
  margin-top: .4rem;
  padding-top: .7rem;
  border-top: 1px solid var(--nb-line);
  border-radius: 0 0 10px 10px;
  color: var(--nb-muted);
}

.nb-umenu .nb-umenu__logout .material-icons {
  color: var(--nb-muted);
}

.nb-umenu .nb-umenu__logout:hover,
.nb-umenu .nb-umenu__logout:focus-visible {
  color: #b42318;
  background: #fdecea;
}

.nb-umenu .nb-umenu__logout:hover .material-icons {
  color: #b42318;
}

/* ---------- Logo horizontal (picto à gauche, « naturabox » à droite ; assets/img/logo-naturabox-horizontal.svg) ----------
   hauteur adaptée à la place laissée par le menu (plus large que l'ancien logo empilé) */
.nb-hdr__home {
  display: block;
  line-height: 0;
}

.nb-hdr__logo .nb-hdr__logo-img {
  width: auto;
  height: 24px;
  max-height: none;
}

@media (min-width: 1200px) {
  .nb-hdr__logo .nb-hdr__logo-img {
    height: 21px;
  }
}

@media (min-width: 1440px) {
  .nb-hdr__logo .nb-hdr__logo-img {
    height: 28px;
  }
}

@media (min-width: 1600px) {
  .nb-hdr__logo .nb-hdr__logo-img {
    height: 34px;
  }
}

/* boutons de l'en-tête (compte, recherche, menu mobile, entrées du méga-menu) : curseur main */
#userMenuButton,
.nb-hdr button,
.nb-hdr [role="button"],
.nb-drawer button {
  cursor: pointer;
}
