/* FILE: /shop/assets/css/nav_help.css */

/* conteneur */
.nav-help{ position:relative; }

/* menu fermé par défaut */
.help-menu{
  position:absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  max-width: min(320px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
  padding: 8px;
  display: none;
  z-index: 2100;
}

.dark .help-menu{
  background:#0b0d0f;
  border-color: rgba(255,255,255,.12);
}

.nav-help.is-open .help-menu{ display:block; }

.help-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration:none;
  color: inherit;
  font-size: .92rem;
}
.help-item:hover{ background: rgba(84,185,77,.10); }
.help-item span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.help-sep{
  height:1px;
  margin:6px 6px;
  background: rgba(15,23,42,.10);
}
.dark .help-sep{ background: rgba(255,255,255,.10); }

/* IMPORTANT : on supprime TOUT comportement hover automatique (sinon conflits) */
/* Donc : pas de .nav-help:hover .help-menu {display:block;} */


/* ===== Aide : même comportement visuel que les .nav-link ===== */

/* base */
.nav-primary .nav-help > .nav-link{
  position:relative;
  padding:8px 2px;
  font-size:.95rem;
  border-bottom:2px solid transparent;
  transition:border-color .15s, color .15s;
  color: inherit;
}

/* hover */
.nav-primary .nav-help > .nav-link:hover{
  color:#34b14d;
  border-color:#34b14d;
}

/* ouvert (aria-expanded=true) */
.nav-primary .nav-help > .nav-link[aria-expanded="true"]{
  color:#34b14d;
  border-color:#34b14d;
}

.nav-help.is-open > .nav-link{
  color:#34b14d;
  border-color:#34b14d;
}

/* Pont invisible anti-gap (CRITIQUE pour Chrome) */
.nav-help::after{
  content:"";
  position:absolute;
  left:-8px; right:-8px; /* un peu plus large que le bouton */
  top:100%;
  height: 16px;          /* couvre le gap (10px) + marge */
  background: transparent;
  pointer-events: auto;  /* <-- important sur Chrome */
  display:none;
  z-index: 2099;         /* juste sous le menu (2100) */
}

.nav-help.is-open::after{ display:block; }


