/* ==========================================================================
   GUIDE DU JOUEUR (guide.html) — le style du centre d'aide de la console
   (css/admin.css, .gd- et .gf-), repris tel quel pour la page publique.
   ========================================================================== */

:root {
    --ad-rail: #0b0817;
    --ad-panel: #100b1e;
    --ad-panel-2: #150f27;
    --ad-line: rgba(255, 255, 255, .07);
    --ad-line-strong: rgba(168, 85, 247, .28);
    --ad-rail-w: 248px;
    --ad-topbar-h: 62px;
    --ad-gap: 18px;
}

/* --------------------------------------------------------------------------
   CENTRE D'AIDE — la vue « Tutoriels »

   Deux colonnes : le sommaire (collant) et la page. Tout est préfixé .gd- ;
   les maquettes de l'interface (figures) sont préfixées .gf-.
   -------------------------------------------------------------------------- */

.gd {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

/* ----- Sommaire ----- */

.gd-toc {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100dvh - var(--ad-topbar-h) - var(--ad-gap) * 2);
    padding: 14px 10px 14px 12px;
    overflow-y: auto;
    border: 1px solid var(--ad-line);
    border-radius: var(--nw-radius);
    background: linear-gradient(180deg, var(--ad-panel), var(--ad-rail));
    scrollbar-width: thin;
}
.gd-toc[hidden], .gd-toc [hidden] { display: none !important; }

.gd-toc-home {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--nw-radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--nw-text-dim);
    text-decoration: none;
}
.gd-toc-home svg { width: 17px; height: 17px; }
.gd-toc-home:hover, .gd-toc-home.is-on { background: rgba(168, 85, 247, .12); color: var(--nw-text); }

.gd-toc-filter { align-self: stretch; }
.gd-toc-filter button { flex: 1; justify-content: center; padding: 5px 8px; font-size: 12px; }

.gd-toc-head {
    margin: 2px 0 6px 10px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--nw-text-faint);
}
.gd-toc-cat + .gd-toc-cat { margin-top: 8px; }
.gd-toc-cat > p {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--nw-text);
}
.gd-toc-cat > p i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--tint) 22%, transparent);
    color: var(--tint);
}
.gd-toc-cat > p svg { width: 13px; height: 13px; }

.gd-toc-link {
    display: block;
    margin-left: 20px;
    padding: 5px 10px 5px 12px;
    border-left: 1px solid var(--ad-line);
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--nw-text-dim);
    text-decoration: none;
    transition: color var(--nw-fast) var(--nw-ease), border-color var(--nw-fast) var(--nw-ease);
}
.gd-toc-link:hover { color: var(--nw-text); border-left-color: var(--nw-text-faint); }
.gd-toc-link.is-on { border-left: 2px solid var(--tint); padding-left: 11px; color: var(--nw-text); font-weight: 600; }
.gd-toc-none { padding: 20px 10px; font-size: 12px; }

.gd-main { min-width: 0; }

/* ----- Accueil ----- */

.gd-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 30px 32px;
    overflow: hidden;
    border: 1px solid var(--ad-line-strong);
    border-radius: 20px;
    background:
        radial-gradient(520px 300px at 100% 0%, rgba(168, 85, 247, .28), transparent 70%),
        radial-gradient(420px 260px at 0% 100%, rgba(59, 130, 246, .14), transparent 70%),
        linear-gradient(160deg, var(--ad-panel), var(--ad-panel-2));
}
.gd-kicker {
    font-family: var(--nw-font-mono);
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--nw-primary-light);
}
.gd-hero h2 {
    margin: 8px 0 10px;
    font-family: var(--nw-font-display);
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.05;
    letter-spacing: -.5px;
}
.gd-hero-text > p:not(.gd-kicker) { max-width: 520px; font-size: 14px; line-height: 1.65; color: var(--nw-text-dim); }
.gd-hero-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gd-hero-stats { display: flex; gap: 26px; margin-top: 22px; }
.gd-hero-stats dt { font-size: 11px; color: var(--nw-text-faint); }
.gd-hero-stats dd { font-family: var(--nw-font-display); font-size: 26px; font-weight: 800; }
.gd-hero-art { display: flex; align-items: center; justify-content: center; gap: 16px; }
.gd-hero-art .gf--phone { transform: rotate(-4deg); }
.gd-hero-art .gf--tiles { width: 230px; transform: rotate(3deg) translateY(18px); }
.gd-hero-art .gf-tiles { grid-template-columns: 1fr 1fr; }

.gd-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; margin-top: 18px; }
.gd-path, .gd-cat {
    padding: 18px 20px;
    border: 1px solid var(--ad-line);
    border-radius: var(--nw-radius);
    background: linear-gradient(160deg, var(--ad-panel), var(--ad-panel-2));
}
.gd-path header, .gd-cat header { display: flex; gap: 12px; margin-bottom: 12px; }
.gd-path header i, .gd-cat header i {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--tint, #a855f7) 20%, transparent);
    color: var(--tint, var(--nw-primary-light));
}
.gd-path header svg, .gd-cat header svg { width: 20px; height: 20px; }
.gd-path h3, .gd-cat h3 { font-family: var(--nw-font-display); font-size: 15px; }
.gd-path header p, .gd-cat header p { margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--nw-text-faint); }

.gd-path ol { counter-reset: gd; display: flex; flex-direction: column; gap: 4px; list-style: none; }
.gd-path li { counter-increment: gd; }
.gd-path li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--nw-radius-sm);
    font-size: 13px;
    color: var(--nw-text-dim);
    text-decoration: none;
}
.gd-path li a::before {
    content: counter(gd);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(168, 85, 247, .16);
    font-size: 11px;
    font-weight: 700;
    color: var(--nw-primary-light);
}
.gd-path li a:hover { background: var(--nw-glass); color: var(--nw-text); }

.gd-band {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin: 34px 0 14px;
    font-family: var(--nw-font-display);
    font-size: 20px;
}
.gd-band em { font-family: var(--nw-font-body); font-size: 12.5px; font-style: normal; font-weight: 400; color: var(--nw-text-faint); }

.gd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.gd-cat { border-top: 2px solid var(--tint); }
.gd-cat ul { display: flex; flex-direction: column; list-style: none; }
.gd-cat li a {
    display: flex;
    justify-content: space-between;
    padding: 6px 2px;
    border-top: 1px solid var(--ad-line);
    font-size: 13px;
    color: var(--nw-text-dim);
    text-decoration: none;
}
.gd-cat li a::after { content: '→'; color: var(--nw-text-faint); transition: transform var(--nw-fast) var(--nw-ease); }
.gd-cat li a:hover { color: var(--nw-text); }
.gd-cat li a:hover::after { transform: translateX(3px); color: var(--tint); }

/* ----- Page d'un tuto ----- */

.gd-page { max-width: 940px; padding-bottom: 40px; }

.gd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 12px; color: var(--nw-text-faint); }
.gd-crumbs a { color: var(--nw-text-dim); text-decoration: none; }
.gd-crumbs a:hover { color: var(--nw-text); }

.gd-head {
    display: flex;
    gap: 18px;
    padding: 24px 26px;
    border: 1px solid color-mix(in srgb, var(--tint) 35%, transparent);
    border-radius: 20px;
    background:
        radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%),
        linear-gradient(160deg, var(--ad-panel), var(--ad-panel-2));
}
.gd-head-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    background: linear-gradient(145deg, var(--tint), color-mix(in srgb, var(--tint) 45%, #000));
    box-shadow: 0 10px 28px color-mix(in srgb, var(--tint) 35%, transparent);
    color: #fff;
}
.gd-head-icon svg { width: 28px; height: 28px; }
.gd-head h2 { font-family: var(--nw-font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; }
.gd-head > div > p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--nw-text-dim); }

.gd-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.gd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--ad-line);
    border-radius: var(--nw-radius-pill);
    background: var(--nw-glass);
    font-size: 11.5px;
    color: var(--nw-text-dim);
}
.gd-chip svg { width: 13px; height: 13px; }
.gd-chip.is-player { border-color: rgba(168, 85, 247, .4); color: var(--nw-primary-light); }
.gd-chip.is-staff { border-color: rgba(245, 158, 11, .4); color: #fbbf24; }

.gd-hero-fig { margin-top: 16px; }
.gd-intro { margin: 20px 0 0; font-size: 15px; line-height: 1.7; color: var(--nw-text); }

.gd-needs {
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(34, 197, 94, .3);
    border-radius: var(--nw-radius);
    background: rgba(34, 197, 94, .06);
}
.gd-needs > b { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4ade80; }
.gd-needs > b svg { width: 16px; height: 16px; }
.gd-needs ul { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; padding-left: 24px; font-size: 13px; line-height: 1.55; color: var(--nw-text-dim); }

.gd-onpage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ad-line);
}
.gd-onpage > b { margin-right: 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--nw-text-faint); }
.gd-onpage button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px 5px 5px;
    border: 1px solid var(--ad-line);
    border-radius: var(--nw-radius-pill);
    background: var(--nw-glass);
    font: inherit;
    font-size: 12px;
    color: var(--nw-text-dim);
    cursor: pointer;
}
.gd-onpage button span {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--tint) 25%, transparent);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--nw-text);
}
.gd-onpage button:hover { border-color: color-mix(in srgb, var(--tint) 50%, transparent); color: var(--nw-text); }

.gd-sec { margin-top: 34px; scroll-margin-top: 10px; }
.gd-sec > h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-family: var(--nw-font-display);
    font-size: 19px;
}
.gd-sec > h3 span {
    font-family: var(--nw-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--tint);
}
.gd-text { margin-bottom: 12px; font-size: 14px; line-height: 1.7; color: var(--nw-text-dim); }
.gd-page b { color: var(--nw-text); }
.gd-page code {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(168, 85, 247, .12);
    font-family: var(--nw-font-mono);
    font-size: .88em;
    color: var(--nw-primary-light);
}

.gd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 22px; align-items: start; }
.gd-figs { display: flex; flex-direction: column; gap: 12px; }
.gd-figs.is-wide { margin-top: 4px; }

.gd-steps { display: flex; flex-direction: column; list-style: none; }
.gd-step { position: relative; display: flex; gap: 14px; padding-bottom: 16px; }
.gd-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 2px;
    left: 14px;
    width: 1px;
    background: linear-gradient(var(--ad-line-strong), var(--ad-line));
}
.gd-step-n {
    display: grid;
    place-items: center;
    flex: none;
    width: 29px;
    height: 29px;
    border: 1px solid color-mix(in srgb, var(--tint) 55%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--tint) 18%, var(--ad-panel));
    font-size: 12.5px;
    font-weight: 800;
    color: var(--nw-text);
}
.gd-step > div { flex: 1; min-width: 0; padding-top: 4px; }
.gd-step > div > b { display: block; font-size: 14px; line-height: 1.45; }
.gd-step > div > p:first-child { margin-top: 2px; color: var(--nw-text); }
.gd-step > div > p { margin-top: 3px; font-size: 13px; line-height: 1.6; color: var(--nw-text-dim); }
.gd-step .gf { margin-top: 10px; max-width: 460px; }

.gd-list { display: flex; flex-direction: column; gap: 7px; list-style: none; }
.gd-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--nw-text-dim);
}
.gd-list li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--tint);
    transform: rotate(45deg);
}

.gd-table { margin-top: 12px; overflow-x: auto; border: 1px solid var(--ad-line); border-radius: var(--nw-radius-sm); }
.gd-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gd-table th {
    padding: 9px 12px;
    background: rgba(255, 255, 255, .03);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-align: left;
    text-transform: uppercase;
    color: var(--nw-text-faint);
}
.gd-table td { padding: 9px 12px; border-top: 1px solid var(--ad-line); line-height: 1.5; color: var(--nw-text-dim); vertical-align: top; }
.gd-table td:first-child { color: var(--nw-text); font-weight: 600; white-space: nowrap; }

.gd-box {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: var(--nw-radius-sm);
}
.gd-box > i { flex: none; margin-top: 1px; }
.gd-box svg { width: 18px; height: 18px; }
.gd-box b { font-size: 12.5px; }
.gd-box p { margin-top: 2px; font-size: 13px; line-height: 1.6; color: var(--nw-text-dim); }
.gd-box.is-tip { border-color: rgba(168, 85, 247, .3); background: rgba(168, 85, 247, .07); color: var(--nw-primary-light); }
.gd-box.is-note { border-color: rgba(59, 130, 246, .3); background: rgba(59, 130, 246, .07); color: #60a5fa; }
.gd-box.is-warn { border-color: rgba(245, 158, 11, .38); background: rgba(245, 158, 11, .07); color: #fbbf24; }

.gd-faq, .gd-related { margin-top: 40px; }
.gd-faq h3, .gd-related h3 { margin-bottom: 12px; font-family: var(--nw-font-display); font-size: 17px; }
.gd-faq details {
    border: 1px solid var(--ad-line);
    border-radius: var(--nw-radius-sm);
    background: var(--nw-glass);
}
.gd-faq details + details { margin-top: 6px; }
.gd-faq summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after { content: '+'; color: var(--tint); font-weight: 400; font-size: 18px; line-height: 1; }
.gd-faq details[open] summary::after { content: '−'; }
.gd-faq details p { padding: 0 14px 12px; font-size: 13px; line-height: 1.65; color: var(--nw-text-dim); }

.gd-related > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.gd-related a {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--ad-line);
    border-radius: var(--nw-radius-sm);
    background: var(--nw-glass);
    text-decoration: none;
    transition: border-color var(--nw-fast) var(--nw-ease);
}
.gd-related a:hover { border-color: var(--ad-line-strong); }
.gd-related i { flex: none; color: var(--nw-primary-light); }
.gd-related svg { width: 20px; height: 20px; }
.gd-related b { display: block; font-size: 13px; }
.gd-related em { display: block; margin-top: 2px; font-size: 11.5px; font-style: normal; line-height: 1.45; color: var(--nw-text-faint); }

.gd-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ad-line); }
.gd-pager a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 16px;
    border: 1px solid var(--ad-line);
    border-radius: var(--nw-radius-sm);
    text-decoration: none;
}
.gd-pager a.is-next { text-align: right; }
.gd-pager a:hover { border-color: var(--ad-line-strong); background: var(--nw-glass); }
.gd-pager em { font-size: 11.5px; font-style: normal; color: var(--nw-text-faint); }
.gd-pager b { font-size: 13.5px; color: var(--nw-text); }

/* --------------------------------------------------------------------------
   FIGURES — les mini-maquettes de l'interface
   -------------------------------------------------------------------------- */

.gf { margin: 0; }
.gf > figcaption, .gf-cap {
    margin-top: 7px;
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
    color: var(--nw-text-faint);
}
.gf svg { width: 100%; height: 100%; }

.gf-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gf-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: var(--nw-radius-pill);
    background: var(--nw-primary);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 6px 18px rgba(168, 85, 247, .3);
}
.gf-btn.is-outline { border-color: rgba(168, 85, 247, .5); background: none; color: var(--nw-primary-light); box-shadow: none; }
.gf-btn.is-ghost { background: var(--nw-glass); color: var(--nw-text-dim); box-shadow: none; }
.gf-btn.is-danger { background: #dc2626; box-shadow: 0 6px 18px rgba(220, 38, 38, .28); }
.gf-btn.is-success { background: #16a34a; box-shadow: 0 6px 18px rgba(22, 163, 74, .28); }
.gf-btn.is-off { background: rgba(255, 255, 255, .06); color: var(--nw-text-faint); box-shadow: none; }

.gf-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--nw-radius-pill);
    background: rgba(168, 85, 247, .16);
    font-size: 11px;
    font-weight: 600;
    color: var(--nw-primary-light);
}
.gf-badge.is-success { background: rgba(34, 197, 94, .15); color: #4ade80; }
.gf-badge.is-warning { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.gf-badge.is-danger { background: rgba(239, 68, 68, .15); color: #f87171; }
.gf-badge.is-neutral { background: rgba(255, 255, 255, .07); color: var(--nw-text-dim); }
.gf-badge.is-info { background: rgba(59, 130, 246, .15); color: #60a5fa; }

/* Images du site */
.gf-img { display: block; width: 100%; height: 180px; object-fit: cover; border: 1px solid var(--ad-line); border-radius: var(--nw-radius); }
.gf-img.is-contain { object-fit: contain; background: var(--ad-panel); padding: 10px; }
.gf-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.gf-gallery span { position: relative; display: block; overflow: hidden; border: 1px solid var(--ad-line); border-radius: var(--nw-radius-sm); }
.gf-gallery img { display: block; width: 100%; height: 110px; object-fit: cover; }
.gf-gallery em {
    position: absolute;
    inset: auto 0 0;
    padding: 18px 8px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8));
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    color: #fff;
}

/* Tuiles du hub */
.gf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 7px; }
.gf-tile {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--ad-line);
    border-radius: 12px;
    background: linear-gradient(160deg, #1a1230, #120c22);
}
.gf-tile i { width: 22px; height: 22px; margin-bottom: 4px; color: var(--nw-primary-light); }
.gf-tile b { font-size: 11.5px; }
.gf-tile em { font-size: 10.5px; font-style: normal; color: var(--nw-text-faint); }
.gf-tile.is-hot { border-color: rgba(168, 85, 247, .6); box-shadow: 0 0 0 3px rgba(168, 85, 247, .15); }
.gf-tile.is-hot em { color: var(--nw-primary-light); }
.gf-tile.is-off { opacity: .45; }

/* Téléphone */
.gf--phone { display: flex; flex-direction: column; align-items: center; }
.gf-phone {
    position: relative;
    width: 176px;
    height: 330px;
    padding: 10px 9px;
    border: 3px solid #2a2340;
    border-radius: 30px;
    background: radial-gradient(160px 200px at 30% 10%, #3b1f6e, transparent 70%), linear-gradient(170deg, #1b1033, #0a0714);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06);
    overflow: hidden;
}
.gf-notch { position: absolute; top: 8px; left: 50%; width: 52px; height: 14px; border-radius: 10px; background: #000; transform: translateX(-50%); }
.gf-status { display: flex; justify-content: space-between; padding: 0 10px; font-size: 9.5px; color: #fff; }
.gf-status span { font-size: 8px; opacity: .8; }
.gf-home { display: flex; flex-direction: column; justify-content: space-between; height: calc(100% - 16px); padding-top: 18px; }
.gf-apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 2px; }
.gf-dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 7px 4px 5px; border-radius: 18px; background: rgba(255, 255, 255, .1); }
.gf-dock .gf-app em { display: none; }
.gf-app { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.gf-app i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 9px;
    background: linear-gradient(150deg, var(--tint), color-mix(in srgb, var(--tint) 60%, #000));
    color: #fff;
}
.gf-app em { max-width: 40px; overflow: hidden; font-size: 7.5px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; color: #fff; }
.gf-app.is-big i { width: 40px; height: 40px; padding: 9px; border-radius: 11px; }

.gf-lock { display: flex; flex-direction: column; align-items: center; gap: 6px; height: calc(100% - 16px); padding-top: 26px; color: #fff; }
.gf-lock > b { font-size: 40px; font-weight: 300; line-height: 1; }
.gf-lock > em { font-size: 9.5px; font-style: normal; opacity: .75; margin-bottom: 8px; }
.gf-lock small { margin-top: auto; font-size: 8px; opacity: .6; }
.gf-notif { display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .12); }
.gf-notif .gf-app i { width: 20px; height: 20px; padding: 4px; border-radius: 6px; }
.gf-notif .gf-app em { display: none; }
.gf-notif p { font-size: 8.5px; line-height: 1.35; }

.gf-appscreen { display: flex; flex-direction: column; gap: 5px; height: calc(100% - 16px); margin: 8px -9px -10px; padding: 8px 10px; background: #0f0b1a; }
.gf-apphead { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: #fff; }
.gf-apphead span { color: var(--tint); font-size: 16px; line-height: 1; }
.gf-approw { display: flex; align-items: center; gap: 7px; padding: 6px 7px; border-radius: 9px; background: rgba(255, 255, 255, .05); }
.gf-approw i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--tint) 55%, #222); }
.gf-approw span { flex: 1; min-width: 0; }
.gf-approw b { display: block; overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; color: #fff; }
.gf-approw em { display: block; overflow: hidden; font-size: 8px; font-style: normal; white-space: nowrap; text-overflow: ellipsis; color: #9e97b3; }
.gf-approw small { font-size: 8.5px; font-weight: 700; color: var(--tint); }
.gf-approw.is-hot { box-shadow: inset 0 0 0 1px var(--tint); }
.gf-approw.is-danger small { color: #ff453a; }
.gf-bubble { max-width: 78%; padding: 5px 8px; border-radius: 11px 11px 11px 3px; background: #2a2440; font-size: 8.5px; line-height: 1.35; color: #fff; }
.gf-bubble.is-me { align-self: flex-end; border-radius: 11px 11px 3px 11px; background: var(--tint); }
.gf-appcta { margin-top: auto; padding: 7px; border-radius: 10px; background: var(--tint); font-size: 9.5px; font-weight: 700; text-align: center; color: #fff; }

/* Distributeur */
.gf-atm { width: 100%; max-width: 250px; margin: 0 auto; padding: 12px; border: 1px solid #2c2a36; border-radius: 16px; background: linear-gradient(180deg, #23212c, #15141b); }
.gf-atm-screen { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 8px; background: linear-gradient(160deg, #0b3a5c, #062236); font-family: var(--nw-font-mono); color: #7dd3fc; }
.gf-atm-screen em { font-size: 9.5px; font-style: normal; letter-spacing: 1px; }
.gf-atm-screen b { font-size: 17px; letter-spacing: 4px; color: #e0f2fe; }
.gf-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.gf-keys span { padding: 7px 0; border-radius: 6px; background: linear-gradient(180deg, #3a3846, #2a2833); font-family: var(--nw-font-mono); font-size: 12px; text-align: center; color: #e5e7eb; box-shadow: 0 2px 0 #111; }
.gf-keys .is-ok { background: #15803d; }
.gf-keys .is-no { background: #b91c1c; }

/* Cartes */
.gf--card { display: flex; justify-content: center; }
.gf-bankcard {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    width: 250px;
    aspect-ratio: 1.586;
    padding: 16px 18px;
    border-radius: 14px;
    background: radial-gradient(200px 140px at 90% 0%, rgba(255, 255, 255, .25), transparent 70%), linear-gradient(135deg, #0a84ff, #5e2bd8 70%, #2a0f5c);
    box-shadow: 0 16px 34px rgba(10, 132, 255, .25);
    font-family: var(--nw-font-mono);
    color: #fff;
}
.gf-chip { position: absolute; top: 18px; left: 18px; width: 34px; height: 25px; border-radius: 5px; background: linear-gradient(135deg, #fde68a, #b45309); }
.gf-bankcard > b { font-size: 14.5px; letter-spacing: 1.5px; }
.gf-bankcard > p { display: flex; justify-content: space-between; font-size: 10px; opacity: .85; }
.gf-bankcard.is-back { justify-content: center; }
.gf-stripe { position: absolute; top: 18px; left: 0; right: 0; height: 32px; background: #111; }
.gf-bankcard.is-back p { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin-top: 28px; padding: 8px 12px; border-radius: 6px; background: rgba(255, 255, 255, .9); color: #111; opacity: 1; }
.gf-bankcard.is-back em { font-size: 9px; font-style: normal; color: #555; }
.gf-bankcard.is-back b { font-size: 13px; }

.gf-idcard { width: 270px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #e8eef8, #c9d6ea); color: #1e293b; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
.gf-idcard > p { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid #1d4ed8; }
.gf-idcard > p b { font-size: 11px; letter-spacing: 1px; color: #1d4ed8; }
.gf-idcard > p em { font-size: 9.5px; font-style: normal; }
.gf-idcard > div { display: flex; gap: 12px; }
.gf-idphoto { display: grid; place-items: center; flex: none; width: 58px; height: 72px; padding: 12px; border-radius: 6px; background: #94a3b8; color: #e2e8f0; }
.gf-idcard dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 10.5px; }
.gf-idcard dt { color: #64748b; }
.gf-idcard dd { font-weight: 700; }

/* Jauges */
.gf-gauges { display: flex; justify-content: center; gap: 16px; }
.gf-gauges > span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gf-gauges i {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(var(--tint) calc(var(--v) * 1%), rgba(255, 255, 255, .07) 0);
    -webkit-mask: radial-gradient(circle, transparent 26px, #000 27px);
            mask: radial-gradient(circle, transparent 26px, #000 27px);
}
.gf-gauges > span { position: relative; }
.gf-gauges b { position: absolute; top: 25px; font-size: 13px; }
.gf-gauges em { font-size: 11.5px; font-style: normal; color: var(--nw-text-dim); }

/* Message privé Discord */
.gf-dm { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #313338; font-family: 'gg sans', var(--nw-font-body); }
.gf-dm-bot { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #5865f2; color: #fff; }
.gf-dm > div { min-width: 0; flex: 1; }
.gf-dm-who { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.gf-dm-who b { color: #f2f3f5; }
.gf-dm-who span { padding: 0 4px; border-radius: 3px; background: #5865f2; font-size: 9px; font-weight: 700; color: #fff; }
.gf-dm-who em { font-size: 10.5px; font-style: normal; color: #949ba4; }
.gf-dm-embed { margin-top: 6px; padding: 9px 12px; border-left: 4px solid #a855f7; border-radius: 4px; background: #2b2d31; }
.gf-dm.is-success .gf-dm-embed { border-left-color: #22c55e; }
.gf-dm.is-danger .gf-dm-embed { border-left-color: #ef4444; }
.gf-dm-embed > b { font-size: 12.5px; color: #f2f3f5; }
.gf-dm-embed > p { margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: #dbdee1; }
.gf-dm-embed dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 8px; }
.gf-dm-embed dt { font-size: 10.5px; font-weight: 700; color: #f2f3f5; }
.gf-dm-embed dd { font-size: 11px; color: #dbdee1; }

/* Formulaire */
.gf-form { padding: 14px; border: 1px solid var(--ad-line); border-radius: var(--nw-radius); background: linear-gradient(160deg, var(--ad-panel), var(--ad-panel-2)); }
.gf-form-title { margin-bottom: 10px; font-size: 12.5px; font-weight: 700; }
.gf-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.gf-fields label { display: flex; flex-direction: column; gap: 4px; }
.gf-fields label.is-wide { grid-column: 1 / -1; }
.gf-fields em { font-size: 10.5px; font-style: normal; color: var(--nw-text-faint); }
.gf-fields span { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; background: rgba(255, 255, 255, .04); font-size: 12px; color: var(--nw-text); }
.gf-fields span.is-empty { color: var(--nw-text-faint); }
.gf-fields span.is-select::after { content: ' ▾'; float: right; color: var(--nw-text-faint); }

/* Enchaînement d'étapes */
.gf-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px; border: 1px dashed var(--ad-line-strong); border-radius: var(--nw-radius); }
.gf-flow > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--ad-line);
    border-radius: var(--nw-radius-pill);
    background: var(--ad-panel);
    font-size: 12px;
    color: var(--nw-text);
}
.gf-flow > span svg { width: 14px; height: 14px; color: var(--nw-primary-light); }
.gf-flow > span.is-on { border-color: var(--nw-primary); background: rgba(168, 85, 247, .18); }
.gf-flow > i { width: 14px; height: 14px; color: var(--nw-text-faint); }

/* Fil de la fiche */
.gf-stepper { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border: 1px solid var(--ad-line); border-radius: var(--nw-radius); background: var(--ad-panel); }
.gf-stepper span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: var(--nw-radius-pill); font-size: 11.5px; color: var(--nw-text-faint); }
.gf-stepper i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .07); font-size: 10.5px; font-style: normal; font-weight: 700; }
.gf-stepper .is-done { color: var(--nw-text-dim); }
.gf-stepper .is-done i { background: #16a34a; color: #fff; }
.gf-stepper .is-on { background: rgba(168, 85, 247, .16); color: var(--nw-text); }
.gf-stepper .is-on i { background: var(--nw-primary); color: #fff; }

/* Rail de la console */
.gf-rail { display: flex; flex-direction: column; gap: 1px; width: 100%; max-width: 210px; margin: 0 auto; padding: 10px; border: 1px solid var(--ad-line); border-radius: var(--nw-radius); background: var(--ad-rail); }
.gf-rail p { margin: 6px 0 2px 8px; font-size: 8.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--nw-text-faint); }
.gf-rail p:first-child { margin-top: 0; }
.gf-rail span { display: flex; justify-content: space-between; padding: 4px 8px; border-radius: 7px; font-size: 11px; color: var(--nw-text-faint); }
.gf-rail span.is-on { background: rgba(168, 85, 247, .2); color: var(--nw-text); font-weight: 600; box-shadow: inset 2px 0 0 var(--nw-primary); }
.gf-rail span i { padding: 0 6px; border-radius: 99px; background: #ef4444; font-size: 9.5px; font-style: normal; color: #fff; }

/* Carte */
.gf-map { position: relative; height: 190px; overflow: hidden; border: 1px solid var(--ad-line); border-radius: var(--nw-radius); background: #0d1b12 url("../assets/img/erlc-map.webp") no-repeat; }
.gf-pin { position: absolute; display: flex; align-items: center; gap: 5px; transform: translate(-50%, -50%); }
.gf-pin i { width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; background: var(--tint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 35%, transparent); }
.gf-pin em { padding: 2px 6px; border-radius: 5px; background: rgba(8, 6, 16, .85); font-size: 10px; font-style: normal; white-space: nowrap; color: #fff; }
.gf-zone { position: absolute; border: 2px dashed #fbbf24; border-radius: 50%; background: rgba(251, 191, 36, .12); transform: translate(-50%, -50%); }

/* Chat */
.gf-chat { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .55); font-family: var(--nw-font-mono); font-size: 11.5px; }
.gf-chat p { line-height: 1.5; color: #e5e7eb; }
.gf-chat b { margin-right: 6px; color: #93c5fd; }
.gf-chat .is-me b { color: #fde68a; }
.gf-chat .is-pm { color: #f0abfc; }
.gf-chat .is-pm b { color: #f0abfc; }

/* Table de console */
.gf-table { overflow-x: auto; border: 1px solid var(--ad-line); border-radius: var(--nw-radius); background: var(--ad-panel); }
.gf-table table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.gf-table th { padding: 7px 10px; font-size: 9.5px; letter-spacing: .6px; text-align: left; text-transform: uppercase; color: var(--nw-text-faint); }
.gf-table td { padding: 7px 10px; border-top: 1px solid var(--ad-line); white-space: nowrap; color: var(--nw-text-dim); }
.gf-table tr.is-hot td { background: rgba(168, 85, 247, .1); color: var(--nw-text); }
.gf-table .gf-btn { padding: 3px 10px; font-size: 10.5px; }

/* Écran générique */
.gf-screen { padding: 14px; border: 1px solid var(--ad-line); border-radius: var(--nw-radius); background: linear-gradient(160deg, var(--ad-panel), var(--ad-panel-2)); }
.gf-screen-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gf-screen-head > i { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--tint, #a855f7) 22%, transparent); color: var(--tint, var(--nw-primary-light)); }
.gf-screen-head > span:not(.gf-badge) { flex: 1; min-width: 0; }
.gf-screen-head em { display: block; font-size: 10px; font-style: normal; letter-spacing: .8px; text-transform: uppercase; color: var(--nw-text-faint); }
.gf-screen-head b { font-size: 13.5px; }
.gf-screen dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-bottom: 10px; }
.gf-screen dl div { padding: 7px 9px; border-radius: 8px; background: rgba(255, 255, 255, .035); }
.gf-screen dt { font-size: 10px; color: var(--nw-text-faint); }
.gf-screen dd { font-size: 12.5px; font-weight: 600; }
.gf-screen-text { margin-bottom: 10px; font-size: 11.5px; line-height: 1.5; color: var(--nw-text-dim); }

/* Barres */
.gf-bars { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--ad-line); border-radius: var(--nw-radius); background: var(--ad-panel); }
.gf-bars p { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px; font-size: 11.5px; color: var(--nw-text-dim); }
.gf-bars i { height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--tint) var(--v), rgba(255, 255, 255, .07) var(--v)); }
.gf-bars b { font-size: 11px; font-variant-numeric: tabular-nums; }

/* Sac */
.gf-slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 10px; border: 1px solid var(--ad-line); border-radius: var(--nw-radius); background: var(--ad-panel); }
.gf-slots span { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; aspect-ratio: 1; padding: 3px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 8px; background: rgba(255, 255, 255, .03); }
.gf-slots b { font-size: 9px; line-height: 1.15; text-align: center; color: var(--nw-text); }
.gf-slots em { position: absolute; right: 4px; bottom: 2px; font-size: 8.5px; font-style: normal; color: var(--nw-text-faint); }
.gf-slots .is-hot { border-color: var(--nw-primary); background: rgba(168, 85, 247, .14); }
.gf-slots .is-danger { border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); }

.gf-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: center; }

/* ----- Petits écrans ----- */

@media (max-width: 1180px) {
    .gd-split { grid-template-columns: minmax(0, 1fr); }
    .gd-hero { grid-template-columns: minmax(0, 1fr); }
    .gd-hero-art { display: none; }
}

@media (max-width: 900px) {
    .gd { grid-template-columns: minmax(0, 1fr); }
    .gd-toc { position: static; max-height: 340px; }
    .gd-hero, .gd-head { padding: 20px 18px; }
    .gd-head { flex-direction: column; }
    .gd-pager { grid-template-columns: minmax(0, 1fr); }
}

