/* Barre orange et menu mobile de blog.html, partagés par les articles de blog/ (navbar-blog).
   Règles reprises de blog.html ; variables et resets limités à la barre. */

#topbar, #drawer {
  --orange: #FE9100;
  --orange-dark: #E07800;
  --orange-light: #FFF3E0;
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:where(#topbar) *, :where(#drawer) * { box-sizing: border-box; margin: 0; padding: 0; }
:where(#topbar) a, :where(#drawer) a { text-decoration: none; color: inherit; }
:where(#topbar) svg, :where(#drawer) svg { vertical-align: middle; flex-shrink: 0; }

/* Bootstrap (a:hover) changerait la couleur du bouton du menu au survol. */
#drawer .drawer-dl:hover { color: var(--orange-dark); }

/* La barre est fixe (60 px) : le contenu commence dessous. */
body { padding-top: 60px; }

/* ── TOPBAR ── */
#topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: var(--orange); box-shadow: 0 2px 16px rgba(224,120,0,.4); height: 60px; overflow: hidden; }
#topbar-inner { height: 60px; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
#topbar-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#burger { width: 32px; height: 32px; background: rgba(255,255,255,.22); border: none; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#topbar-name { color: #fff; font-weight: 800; font-size: 1.05rem; white-space: nowrap; letter-spacing: -.01em; }
#topbar-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; flex-wrap: nowrap; overflow: hidden; }
#topbar-links a { color: rgba(255,255,255,.92); font-size: .82rem; font-weight: 600; padding: 6px 10px; border-radius: 99px; white-space: nowrap; transition: background .15s; }
#topbar-links a:hover { background: rgba(255,255,255,.2); }
#topbar-links a.active { background: rgba(255,255,255,.25); }
#topbar-links a.nav-promo { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 99px; padding: 5px 11px; }
.nav-promo-badge { background: #fff; color: var(--orange-dark); font-size: .6rem; font-weight: 800; padding: 1px 6px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
#topbar-cta { background: #fff; color: var(--orange-dark); font-weight: 700; font-size: .82rem; padding: 8px 16px; border-radius: 99px; white-space: nowrap; flex-shrink: 0; transition: background .15s; }
#topbar-cta:hover { background: var(--orange-light); }
@media (max-width: 760px) { #topbar-links { display: none; } }

/* ── DRAWER ── */
#drawer-overlay { display: none; position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.5); }
#drawer-overlay.on { display: block; }
#drawer { position: fixed; top: 0; left: -300px; bottom: 0; width: 280px; background: var(--orange-dark); z-index: 950; transition: left .32s cubic-bezier(.22,1,.36,1); display: flex; flex-direction: column; overflow-y: auto; }
#drawer.on { left: 0; }
.drawer-head { background: rgba(0,0,0,.18); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.15); }
.drawer-head span { color: #fff; font-weight: 800; font-size: 1rem; }
.drawer-head button { background: rgba(255,255,255,.15); border: none; cursor: pointer; color: #fff; font-size: 1.2rem; width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.drawer-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.drawer-body a { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); padding: 13px 14px; border-radius: 10px; font-size: .93rem; font-weight: 500; transition: background .15s; }
.drawer-body a:hover, .drawer-body a.active { background: rgba(255,255,255,.18); color: #fff; }
.drawer-dl { margin: 12px 16px 16px; background: #fff; color: var(--orange-dark); text-align: center; padding: 13px; border-radius: 12px; font-weight: 700; display: block; transition: background .15s; }
.drawer-dl:hover { background: var(--orange-light); }
.drawer-promo { display: flex !important; align-items: center; gap: 9px; }
.drawer-promo-badge { margin-left: auto; background: var(--orange); color: #fff; font-size: .6rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
