/* =========================================================
   QUALICONNECT — Menu burger + tiroir de navigation
   (réutilise les tokens de la page : --accent, --font-display, --ease)
   ========================================================= */
.burger {
  position: fixed; z-index: 1200;
  top: calc(env(safe-area-inset-top, 0px) + 16px); left: 16px;
  width: 46px; height: 46px; border-radius: 13px; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(10, 15, 28, .5); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.burger:hover, .burger:focus-visible { background: rgba(20, 28, 50, .7); border-color: var(--accent); outline: none; }
.burger span { width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-scrim {
  position: fixed; inset: 0; z-index: 1150; background: rgba(2, 4, 10, .55);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
body.menu-open .drawer-scrim { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; z-index: 1200; top: 0; left: 0; bottom: 0;
  width: min(360px, 86vw);
  padding: 20px 18px calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: linear-gradient(160deg, #0c1322 0%, #070b16 100%);
  border-right: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 30px 0 80px -30px rgba(0, 0, 0, .8);
  transform: translateX(-104%); transition: transform .45s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column;
}
body.menu-open .drawer { transform: none; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: calc(env(safe-area-inset-top, 0px) + 4px); margin-bottom: 18px;
}
.drawer__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.drawer__brand img { width: 30px; height: 30px; border-radius: 8px; mix-blend-mode: screen; }
.drawer__brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.drawer__brand b { color: var(--accent); }
.drawer__close {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 1.05rem; line-height: 1;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #fff;
  transition: background .2s, border-color .2s;
}
.drawer__close:hover { background: rgba(255, 255, 255, .09); }

.drawer__label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(233, 240, 255, .45); margin: 16px 8px 8px; }
.drawer__link {
  display: flex; align-items: center; gap: 13px; text-decoration: none;
  color: rgba(233, 240, 255, .86); padding: 13px 14px; border-radius: 12px;
  font-size: 1rem; font-weight: 500; transition: background .2s, color .2s, transform .2s;
}
.drawer__link:hover, .drawer__link:focus-visible { background: rgba(255, 255, 255, .05); color: #fff; transform: translateX(3px); outline: none; }
.drawer__link--home { border: 1px solid rgba(255, 255, 255, .12); margin-bottom: 4px; }
.drawer__ic { width: 22px; height: 22px; display: grid; place-items: center; flex: none; }
.drawer__ic svg { width: 20px; height: 20px; fill: none; stroke: var(--c, var(--accent)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drawer__emoji { width: 24px; display: grid; place-items: center; font-size: 1.2rem; line-height: 1; flex: none; }
.drawer__arrow { margin-left: auto; opacity: .4; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-scrim, .burger span { transition-duration: .01ms; }
}
