
.ksh-hd {
  --bg: #0b0e0f; --s1: #12181a; --s2: #161e21; --line: #243034; --line2: #2f3d42;
  --tx: #eaf2f0; --mu: #93a3a0; --teal: #21b4a6; --glow: #2fe0cf;
  position: sticky; top: 0; z-index: 1000; padding: 14px 16px 0;
  font-family: "Archivo", "Montserrat", system-ui, sans-serif; font-size: 16px; line-height: 1.4; color: var(--tx);
  -webkit-font-smoothing: antialiased; pointer-events: none;
}
.ksh-hd *, .ksh-hd *::before, .ksh-hd *::after { box-sizing: border-box; }
.ksh-hd a { color: inherit; text-decoration: none; }
.ksh-hd :focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 8px; }
.ksh-hd .bar { position: relative; pointer-events: auto; max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 18px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(14,19,21,.72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); transition: box-shadow .25s, background .25s; }
.ksh-hd.scrolled .bar { background: rgba(14,19,21,.9); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); }
.ksh-hd .brand { display: flex; align-items: center; gap: 10px; flex: none; }
.ksh-hd .brand img { width: 34px; height: 34px; display: block; }
.ksh-hd .brand b { font-weight: 800; font-size: 1.12rem; font-variation-settings: "wdth" 118; letter-spacing: -.01em; }
.ksh-hd .brand span { color: var(--mu); font-weight: 600; font-size: .85rem; margin-left: 2px; }
.ksh-hd nav { flex: 1; display: flex; justify-content: center; }
.ksh-hd .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.ksh-hd .menu > li { position: relative; }
.ksh-hd .menu > li.has-mega { position: static; }
.ksh-hd .menu > li > a, .ksh-hd .menu > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; border: 0; background: none; color: var(--tx); font: inherit; font-weight: 600; cursor: pointer; transition: background .15s; }
.ksh-hd .menu > li > a:hover, .ksh-hd .menu > li > button:hover, .ksh-hd .menu > li > button[aria-expanded="true"] { background: rgba(255,255,255,.06); }
.ksh-hd .menu svg.chev { width: 12px; height: 12px; transition: transform .2s; }
.ksh-hd .menu button[aria-expanded="true"] svg.chev { transform: rotate(180deg); }
.ksh-hd .actions { display: flex; gap: 8px; flex: none; }
.ksh-hd .btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; transition: background .15s, border-color .15s, box-shadow .2s; white-space: nowrap; }
.ksh-hd .btn-ghost { border-color: var(--line2); color: var(--tx); }
.ksh-hd .btn-ghost:hover { border-color: var(--mu); background: rgba(255,255,255,.05); }
.ksh-hd .btn-main { background: var(--teal); color: #03201d; box-shadow: 0 0 0 4px rgba(33,180,166,.15); }
.ksh-hd .btn-main:hover { box-shadow: 0 0 0 6px rgba(33,180,166,.22), 0 8px 26px -8px rgba(47,224,207,.6); }
.ksh-hd .btn svg { width: 16px; height: 16px; }

/* Panneaux déroulants */
.ksh-hd .panel { position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; border-radius: 22px; border: 1px solid var(--line2); background: rgba(14,19,21,.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 30px 70px -25px rgba(0,0,0,.9); padding: 14px; }
.ksh-hd .panel.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ksh-hd .panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.ksh-hd .mega { width: 760px; display: grid; grid-template-columns: 1fr 1fr 220px; gap: 10px; }
.ksh-hd .mega h4 { margin: 6px 10px 6px; font-size: .78rem; font-weight: 700; color: var(--mu); }
.ksh-hd .game { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; transition: background .15s; }
.ksh-hd .game:hover, .ksh-hd .game:focus-visible { background: var(--s2); }
.ksh-hd .game img, .ksh-hd .game canvas { width: 34px; height: 34px; object-fit: contain; flex: none; }
.ksh-hd .game b { display: block; font-weight: 700; font-size: .95rem; }
.ksh-hd .game small { color: var(--mu); font-size: .8rem; }
.ksh-hd .promo { border-radius: 16px; padding: 18px; background: radial-gradient(240px 160px at 20% 0%, rgba(33,180,166,.35), transparent 70%), var(--s1); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.ksh-hd .promo b { font-size: 1.05rem; font-variation-settings: "wdth" 112; }
.ksh-hd .promo p { margin: 6px 0 0; color: var(--mu); font-size: .85rem; }
.ksh-hd .promo .btn { justify-content: center; padding: 9px 14px; font-size: .9rem; }
.ksh-hd .list { width: 300px; display: grid; gap: 2px; }
.ksh-hd .list a { display: block; padding: 10px 12px; border-radius: 12px; }
.ksh-hd .list a:hover, .ksh-hd .list a:focus-visible { background: var(--s2); }
.ksh-hd .list a b { display: block; font-size: .95rem; }
.ksh-hd .list a small { color: var(--mu); font-size: .8rem; }

/* Mobile */
.ksh-hd .burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--tx); cursor: pointer; align-items: center; justify-content: center; }
.ksh-hd .burger svg { width: 20px; height: 20px; }
.ksh-hd .drawer { pointer-events: auto; display: none; max-width: 1240px; margin: 10px auto 0; border-radius: 22px; border: 1px solid var(--line2); background: rgba(14,19,21,.98); padding: 10px; max-height: calc(100vh - 100px); overflow-y: auto; }
.ksh-hd .drawer.open { display: block; }
.ksh-hd .drawer details { border-bottom: 1px solid var(--line); }
.ksh-hd .drawer summary { list-style: none; cursor: pointer; padding: 14px 12px; font-weight: 700; display: flex; justify-content: space-between; }
.ksh-hd .drawer summary::-webkit-details-marker { display: none; }
.ksh-hd .drawer summary::after { content: "+"; color: var(--glow); font-size: 1.2rem; line-height: 1; }
.ksh-hd .drawer details[open] summary::after { content: "\2212"; }
.ksh-hd .drawer .dl { display: grid; gap: 2px; padding: 0 4px 10px; }
.ksh-hd .drawer > a { display: block; padding: 14px 12px; font-weight: 700; border-bottom: 1px solid var(--line); }
.ksh-hd .drawer .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 4px 4px; }
.ksh-hd .drawer .acts .btn { justify-content: center; }
@media (max-width: 1080px) {
  .ksh-hd nav, .ksh-hd .actions .btn-ghost { display: none; }
  .ksh-hd .burger { display: inline-flex; }
  .ksh-hd .bar { justify-content: space-between; }
}
@media (max-width: 480px) { .ksh-hd .actions { display: none; } .ksh-hd .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { .ksh-hd .panel, .ksh-hd .bar { transition: none; } }

/* ks-2211 : nom sur deux lignes */
.ksh-hd .brand span.ks-bt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-left:0;color:inherit;font-size:inherit;font-weight:inherit;line-height:1.05}
.ksh-hd .brand span.ks-bt span{margin-left:0;font-size:.72rem;line-height:1}

/* ks-2411-nav : Blog et Documentation dans la barre (ordinateur) */
@media (min-width:1081px){header.ksh-hd .menu>li>a,header.ksh-hd .menu>li>button{padding-left:9px;padding-right:9px}}
@media (min-width:1081px) and (max-width:1180px){header.ksh-hd .menu>li>a,header.ksh-hd .menu>li>button{padding-left:7px;padding-right:7px}header.ksh-hd .bar{gap:12px}}

/* ks-2411-ct : Contact en menu déroulant (Tickets, Discord), Espace client à droite en bouton principal */
.ksh-hd .ks-ct{position:relative;display:flex}
.ksh-hd .ks-ct>button.btn{background:none;font:inherit;font-weight:700;cursor:pointer}
.ksh-hd .ks-ct>button.btn[aria-expanded="true"]{border-color:var(--mu);background:rgba(255,255,255,.05)}
.ksh-hd .ks-ct svg.chev{width:12px;height:12px;transition:transform .2s}
.ksh-hd .ks-ct button[aria-expanded="true"] svg.chev{transform:rotate(180deg)}
.ksh-hd .ks-ct .panel{left:auto;right:0;transform:translate(0,6px);width:280px}
.ksh-hd .ks-ct .panel.open{transform:translate(0,0)}
@media (max-width:1080px){.ksh-hd .actions .ks-ct{display:none}}
