/* ==========================================================================
   Elipcee — vitrine
   Thème sombre, verre dépoli et halos animés, aligné sur le loading screen.
   ========================================================================== */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Outfit";
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url("../fonts/outfit-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #05060a;
    --bg-soft: #090b12;

    --panel: rgba(15, 18, 28, 0.62);
    --panel-strong: rgba(10, 13, 21, 0.86);
    --panel-border: rgba(255, 255, 255, 0.07);
    --panel-border-hover: rgba(120, 170, 255, 0.28);

    --text: #f2f4f9;
    --text-dim: #b3b9c9;
    --text-muted: #8b93a5;

    --accent: #3b8cff;
    --accent-light: #7db4ff;
    --accent-deep: #1b52c9;
    --accent-glow: rgba(59, 140, 255, 0.35);

    --violet: #8b5cf6;
    --discord: #7289da;
    --success: #35d07f;
    --danger: #ff5a5a;
    --warn: #ffb340;

    --radius-lg: 26px;
    --radius: 20px;
    --radius-sm: 14px;
    --radius-pill: 999px;

    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 10px 40px var(--accent-glow);
    --inner-line: inset 0 1px 0 rgba(255, 255, 255, 0.06);

    --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Outfit", "Inter", "Segoe UI", system-ui, sans-serif;

    --nav-h: 68px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Plusieurs blocs utilisent display:flex ; sans cela l'attribut hidden est ignoré */
[hidden] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.skip-link {
    position: absolute;
    left: 0.85rem;
    top: 0.85rem;
    z-index: 400;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus {
    transform: none;
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Halos colorés fixes derrière tout le contenu */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(38% 38% at 12% 8%, rgba(59, 140, 255, 0.20), transparent 65%),
        radial-gradient(32% 32% at 88% 22%, rgba(139, 92, 246, 0.17), transparent 65%),
        radial-gradient(40% 40% at 50% 96%, rgba(27, 82, 201, 0.16), transparent 68%);
    filter: blur(10px);
    transform-origin: 50% 50%;
    animation: aurora 24s ease-in-out infinite alternate;
}

/* Grille fine, très discrète */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 68px 68px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
}

@keyframes aurora {
    0%   { transform: translate3d(0, 0, 0) scale(1.12); }
    50%  { transform: translate3d(2%, -2%, 0) scale(1.2); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1.16); }
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a8ccff; }

::selection { background: rgba(59, 140, 255, 0.35); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #05060a; }
::-webkit-scrollbar-thumb {
    background: rgba(120, 140, 180, 0.28);
    border-radius: var(--radius-pill);
    border: 3px solid #05060a;
}
::-webkit-scrollbar-thumb:hover { background: rgba(140, 175, 235, 0.45); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--nav-h);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
    padding: 0 clamp(0.85rem, 3vw, 2.5rem);
    padding-left: max(clamp(0.85rem, 3vw, 2.5rem), env(safe-area-inset-left));
    padding-right: max(clamp(0.85rem, 3vw, 2.5rem), env(safe-area-inset-right));
    background: transparent;
    overflow: visible;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}

.nav::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(5, 6, 10, 0.55);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav__brand,
.nav__cta,
.nav__toggle,
.nav__end,
.nav__links { position: relative; z-index: 1; }

.nav.is-scrolled::before {
    background: rgba(5, 6, 10, 0.86);
    border-bottom-color: var(--panel-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.nav.is-open::before {
    background: #05060a;
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    flex-shrink: 0;
    justify-self: start;
}

.nav__brand:hover { color: var(--text); }

.nav__brand picture {
    display: flex;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.nav__logo {
    height: 38px;
    width: 38px;
    object-fit: cover;
    border-radius: 12px;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.nav__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.nav__cart-count {
    display: none;
    min-width: 1.15rem;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.35;
    vertical-align: middle;
}

.nav__cart-count.is-on { display: inline-block; }

.nav__links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
    justify-self: center;
}

.nav__links a {
    display: block;
    position: relative;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill);
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}

.nav__links a:hover,
.nav__links a.is-active,
.nav__drop-btn:hover,
.nav__item--drop.is-current .nav__drop-btn,
.nav__item--drop.is-open .nav__drop-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav__item--drop {
    position: relative;
}

.nav__drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-dim);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.nav__drop-btn::after {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    margin-top: -0.12rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
}

.nav__drop {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: rgba(8, 10, 16, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 220;
}

.nav__item--drop::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
}

.nav__drop a {
    display: block;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    white-space: nowrap;
}

.nav__item--drop:hover .nav__drop,
.nav__item--drop:focus-within .nav__drop,
.nav__item--drop.is-open .nav__drop {
    display: block;
}

.nav__end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 0.55rem;
    flex-shrink: 0;
    z-index: 2;
}

.nav__lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 3.15rem;
    height: 2.15rem;
    padding: 0 0.75rem 0 0.45rem;
    border: 1px solid rgba(180, 200, 235, 0.32);
    border-radius: 999px;
    background: rgba(12, 14, 22, 0.72);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.nav__lang-flag {
    display: inline-flex;
    width: 1.15rem;
    height: 0.8rem;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.nav__lang-flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

.nav__lang:hover,
.nav__lang:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 18px var(--accent-glow);
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
    flex-shrink: 0;
}

.nav__cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 26px var(--accent-glow);
}

.nav__links-play,
.nav__links-extra { display: none; }

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(180, 200, 235, 0.35);
    border-radius: 12px;
    background: #141824;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    appearance: none;
}

.nav__toggle span {
    display: block;
    height: 2.5px;
    width: 18px;
    background: #f4f7ff;
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__bg picture {
    position: absolute;
    inset: 0;
    display: block;
}

.hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: slow-pan 40s ease-in-out infinite alternate;
    will-change: transform;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 6, 10, 0.55) 0%, rgba(5, 6, 10, 0.75) 45%, var(--bg) 92%);
}

@keyframes slow-pan {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.12) translate3d(0, -1.5%, 0); }
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    width: 100%;
}

.hero__inner > picture {
    display: block;
}

.hero__logo {
    /* Bloc : sinon l'image et la pastille de statut partagent la même ligne */
    display: block;
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: min(280px, 64vw);
    max-height: 148px;
    object-fit: contain;
    border-radius: 28px;
    filter: drop-shadow(0 0 34px var(--accent-glow));
    margin: 0 auto 1.1rem;
    animation: float-in 0.9s var(--ease) both;
}

.hero__tag {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.6rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #ffffff 25%, #a9bfe0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__desc {
    color: var(--text-dim);
    font-size: clamp(0.98rem, 1.6vw, 1.12rem);
    max-width: 620px;
    margin: 0 auto 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2.75rem;
}

/* Bandeau de chiffres sous le hero */
.hero__stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.55fr);
    gap: 1px;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    background: var(--panel-border);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.hero__stat {
    background: rgba(10, 13, 21, 0.72);
    padding: 1rem 0.85rem;
    min-width: 0;
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.hero__stat--map .hero__stat-value {
    font-size: clamp(0.78rem, 1.6vw, 1.05rem);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero__stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
    50%      { transform: translate(-50%, 6px); opacity: 1; }
}

@keyframes float-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Badge de statut serveur
   -------------------------------------------------------------------------- */

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.05rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    background: rgba(10, 13, 21, 0.7);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(12px);
    transition: border-color 0.3s, color 0.3s;
}

.server-status__dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.server-status--online {
    color: #b6f5d2;
    border-color: rgba(53, 208, 127, 0.35);
}

.server-status--online .server-status__dot {
    background: var(--success);
    box-shadow: 0 0 10px rgba(53, 208, 127, 0.7);
}

/* Onde de propagation quand le serveur est en ligne */
.server-status--online .server-status__dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(53, 208, 127, 0.6);
    animation: ripple 1.8s ease-out infinite;
}

@keyframes ripple {
    from { transform: scale(0.6); opacity: 0.9; }
    to   { transform: scale(1.7); opacity: 0; }
}

.server-status--offline {
    color: #ffc2c2;
    border-color: rgba(255, 90, 90, 0.32);
}

.server-status--offline .server-status__dot {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(255, 90, 90, 0.55);
}

.server-status--loading .server-status__dot { animation: pulse-dot 1.2s ease-in-out infinite; }

@keyframes pulse-dot {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.94rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn:hover { transform: none; }
@media (hover: hover) and (pointer: fine) {
    .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn--primary {
    position: relative;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent) 60%, #55a0ff);
    color: #fff;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}

.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.32) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease);
}

.btn--primary:hover { color: #fff; box-shadow: 0 14px 44px var(--accent-glow); }
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--panel-border);
    backdrop-filter: blur(10px);
}

.btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--panel-border-hover);
}

.btn--discord {
    background: rgba(114, 137, 218, 0.16);
    border-color: rgba(114, 137, 218, 0.4);
    color: #c3cffb;
}

.btn--discord:hover { background: rgba(114, 137, 218, 0.26); color: #e2e8ff; }

.btn--steam {
    background: rgba(27, 40, 56, 0.55);
    border: 1px solid rgba(102, 192, 244, 0.35);
    color: #c7e8ff;
}
.btn--steam:hover {
    background: rgba(27, 40, 56, 0.82);
    border-color: rgba(102, 192, 244, 0.55);
    color: #fff;
}

.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 3vw, 2rem);
}

.section--alt::before {
    content: "";
    position: absolute;
    inset: 0 -50vw;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.022) 18%, rgba(255, 255, 255, 0.022) 82%, transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.045);
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.section__head {
    text-align: center;
    margin-bottom: 2.75rem;
}

.section__label {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-pill);
    background: rgba(59, 140, 255, 0.1);
    border: 1px solid rgba(59, 140, 255, 0.22);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.85rem;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
}

.section__sub {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 0.6rem;
}

/* Apparition au défilement */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    body::before, .hero__bg-img, .hero__scroll, .server-status__dot::after { animation: none; }
}

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.15rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.15rem;
}

.card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.65rem;
    box-shadow: var(--shadow-sm), var(--inner-line);
    backdrop-filter: blur(16px) saturate(130%);
    transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

/* Liseré lumineux qui suit le curseur */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
        260px circle at var(--mx, 50%) var(--my, 0%),
        rgba(125, 180, 255, 0.55),
        transparent 70%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.card:hover {
    border-color: var(--panel-border);
    box-shadow: var(--shadow-sm), var(--inner-line);
}
@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-4px);
        border-color: var(--panel-border-hover);
        box-shadow: var(--shadow), var(--inner-line);
    }
}

.card:hover::before { opacity: 1; }

.card--wide { grid-column: 1 / -1; }

.card__title {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.card__text { color: var(--text-dim); font-size: 0.94rem; }

.card__value {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 4vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.2rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.card__hint { font-size: 0.84rem; color: var(--text-muted); }
.card__hint--sync { margin-bottom: 0.85rem; }

.card--online {
    border-color: rgba(53, 208, 127, 0.28);
    box-shadow: var(--shadow-sm), var(--inner-line), inset 0 0 40px rgba(53, 208, 127, 0.05);
}

.card--online .card__value { color: #b6f5d2; }

.card--offline {
    border-color: rgba(255, 90, 90, 0.28);
    box-shadow: var(--shadow-sm), var(--inner-line), inset 0 0 40px rgba(255, 90, 90, 0.05);
}

.card--offline .card__value { color: #ffc2c2; }

/* --------------------------------------------------------------------------
   Classement live
   -------------------------------------------------------------------------- */

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.15rem;
}

.live-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.live-list li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 0.92rem;
    transition: background 0.2s;
}

.live-list li:hover { background: rgba(255, 255, 255, 0.035); }

.live-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.live-list li:nth-child(1) .live-rank { background: rgba(255, 195, 60, 0.18); color: #ffd679; }
.live-list li:nth-child(2) .live-rank { background: rgba(200, 210, 225, 0.16); color: #dde3ee; }
.live-list li:nth-child(3) .live-rank { background: rgba(205, 127, 50, 0.18); color: #eaa972; }

.live-name { color: var(--text); font-weight: 600; }

.live-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.live-list__empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 0.5rem 0.6rem;
}

/* --------------------------------------------------------------------------
   Podium — 3 meilleurs joueurs (global)
   -------------------------------------------------------------------------- */

.podium-card {
    margin-bottom: 1.35rem;
    overflow: hidden;
}

.podium-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.podium-card__head .card__title { margin-bottom: 0.2rem; }

.podium-card__head .btn { flex-shrink: 0; }

.vote-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.podium {
    display: grid;
    grid-template-columns: 1fr 1.22fr 1fr;
    align-items: end;
    gap: 0.7rem;
    min-height: 280px;
    padding: 0.4rem 0.2rem 0;
}

.podium__slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 0;
}

.podium__slot--1 { order: 2; }
.podium__slot--2 { order: 1; }
.podium__slot--3 { order: 3; }

.podium__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 0.55rem;
    border-radius: 50%;
    overflow: hidden;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.podium__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.podium__slot--1 .podium__avatar {
    width: 72px;
    height: 72px;
    font-size: 1.65rem;
    color: #1a1406;
    background: linear-gradient(160deg, #ffe38a, #e6b23a);
    border-color: rgba(255, 220, 120, 0.7);
    box-shadow: 0 8px 28px rgba(255, 195, 60, 0.28);
}

.podium__slot--2 .podium__avatar {
    color: #10141c;
    background: linear-gradient(160deg, #eef3fb, #b7c3d6);
    border-color: rgba(220, 230, 245, 0.55);
}

.podium__slot--3 .podium__avatar {
    color: #1c1208;
    background: linear-gradient(160deg, #f0c49a, #c07838);
    border-color: rgba(234, 169, 114, 0.55);
}

.podium__place {
    display: none;
}

.podium__name {
    font-weight: 700;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.25;
    margin-bottom: 0.2rem;
}

.podium__slot--1 .podium__name { font-size: 1.08rem; }

.podium__votes {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.podium__stand {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    border-radius: 16px 16px 8px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.podium__stand::after {
    content: "3";
    margin-top: 0.7rem;
    font-size: 1.05rem;
}

.podium__slot--1 .podium__stand {
    height: 118px;
    border-color: rgba(255, 195, 60, 0.4);
    background:
        linear-gradient(180deg, rgba(255, 210, 80, 0.22), rgba(255, 195, 60, 0.04));
    box-shadow: 0 12px 36px rgba(255, 195, 60, 0.12);
    color: #ffd679;
}

.podium__slot--1 .podium__stand::after { content: "1"; font-size: 1.45rem; }

.podium__slot--2 .podium__stand {
    height: 88px;
    border-color: rgba(200, 210, 225, 0.32);
    background: linear-gradient(180deg, rgba(200, 210, 225, 0.16), rgba(200, 210, 225, 0.03));
    color: #e8eef8;
}

.podium__slot--2 .podium__stand::after { content: "2"; }

.podium__slot--3 .podium__stand {
    height: 68px;
    border-color: rgba(205, 127, 50, 0.32);
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.16), rgba(205, 127, 50, 0.03));
    color: #eaa972;
}

.podium__slot.is-empty {
    opacity: 0.45;
}

.podium-card .live-list {
    margin-top: 0.4rem;
}

.player-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.player-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(59, 140, 255, 0.1);
    border: 1px solid rgba(59, 140, 255, 0.24);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.player-tag:hover {
    background: rgba(59, 140, 255, 0.18);
    border-color: rgba(59, 140, 255, 0.45);
    transform: translateY(-1px);
}

.player-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(53, 208, 127, 0.8);
}

.player-tags__empty { color: var(--text-muted); font-style: italic; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Chat inter-plateformes
   -------------------------------------------------------------------------- */

.chat {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    gap: 1.15rem;
    align-items: start;
}

.chat__panel {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    min-height: 480px;
}

.chat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.3rem;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.022);
}

.chat__head-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.98rem;
}

.chat__live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: rgba(53, 208, 127, 0.12);
    border: 1px solid rgba(53, 208, 127, 0.28);
    color: #b6f5d2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.chat__live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 1.6s ease-in-out infinite;
}

.chat__live[data-state="off"] {
    background: rgba(255, 90, 90, 0.12);
    border-color: rgba(255, 90, 90, 0.28);
    color: #ffc2c2;
}

.chat__live[data-state="off"]::before { background: var(--danger); }

.chat__log {
    flex: 1;
    min-height: 300px;
    max-height: 46vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    contain: layout;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    scrollbar-width: thin;
}

.chat__empty {
    margin: auto;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.92rem;
    text-align: center;
}

.chat-msg {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--src-color, var(--accent));
    background: rgba(255, 255, 255, 0.028);
    animation: msg-in 0.35s var(--ease) both;
}

@keyframes msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.chat-msg__badge {
    align-self: start;
    padding: 0.1rem 0.45rem;
    border-radius: 7px;
    background: color-mix(in srgb, var(--src-color) 18%, transparent);
    color: var(--src-color);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.7;
}

.chat-msg__body { min-width: 0; }

.chat-msg__meta {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chat-msg__author {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
}

.chat-msg__time { font-size: 0.72rem; color: var(--text-muted); }

.chat-msg__text {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.chat-msg--gmod    { --src-color: #35d07f; }
.chat-msg--discord { --src-color: #7289da; }
.chat-msg--web     { --src-color: #3b8cff; }
.chat-msg--system  { --src-color: #ffb340; }
.chat-msg--joinleave { --src-color: #3dd68c; }

.chat-msg--system { border-left-style: dashed; }
.chat-msg--system .chat-msg__text { font-style: italic; }
.chat-msg--joinleave { border-left-style: dashed; }
.chat-msg--joinleave .chat-msg__text { font-style: italic; color: var(--text-dim); }

.chat__form {
    display: flex;
    gap: 0.6rem;
    padding: 0.9rem 1.15rem;
    border-top: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.022);
}

.chat__input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--panel-border);
    background: rgba(0, 0, 0, 0.32);
    color: var(--text);
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat__input::placeholder { color: var(--text-muted); }

.chat__input:focus {
    outline: none;
    border-color: rgba(59, 140, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 140, 255, 0.12);
}

.chat__input:disabled { opacity: 0.55; cursor: not-allowed; }

.chat__notice {
    padding: 0 1.15rem 0.9rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    min-height: 1.4em;
}

.chat__notice[data-kind="error"] { color: #ffb0b0; }
.chat__notice[data-kind="ok"] { color: #a9f0c9; }

/* Colonne latérale : compte lié et légende */
.chat__side { display: flex; flex-direction: column; gap: 1.15rem; }

.chat__account {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    background: rgba(53, 208, 127, 0.08);
    border: 1px solid rgba(53, 208, 127, 0.24);
    margin-bottom: 0.9rem;
}

.chat__account-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-deep), var(--violet));
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.chat__account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   Équipe de modération
   -------------------------------------------------------------------------- */

.staff-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.15rem;
    max-width: 1100px;
    margin: 0 auto;
}

.staff-grid__empty {
    flex: 1 1 100%;
    margin: 0;
    text-align: center;
    color: var(--text-muted);
}

.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.55rem 1.2rem 1.35rem;
    flex: 0 1 200px;
    width: 200px;
    max-width: 240px;
}

.staff-card__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    overflow: hidden;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.7rem;
    color: #fff;
    background: linear-gradient(160deg, #3a4a68, #1c2434);
    border: 2px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.staff-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.staff-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--text);
    overflow-wrap: anywhere;
    margin: 0 0 0.45rem;
}

.staff-card__role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #dbe7ff;
    background: rgba(90, 140, 220, 0.16);
    border: 1px solid rgba(120, 170, 255, 0.28);
}

.staff-card--superadmin .staff-card__photo {
    border-color: rgba(255, 90, 90, 0.55);
    box-shadow: 0 10px 28px rgba(255, 70, 80, 0.22);
}
.staff-card--superadmin .staff-card__role {
    color: #ffd0d4;
    background: rgba(255, 62, 78, 0.16);
    border-color: rgba(255, 90, 100, 0.35);
}
.staff-card--admin .staff-card__photo {
    border-color: rgba(255, 170, 80, 0.5);
}
.staff-card--admin .staff-card__role {
    color: #ffe0c0;
    background: rgba(255, 148, 52, 0.16);
    border-color: rgba(255, 160, 70, 0.35);
}
.staff-card--administrateur .staff-card__photo {
    border-color: rgba(255, 190, 110, 0.55);
}
.staff-card--administrateur .staff-card__role {
    color: #ffe8cc;
    background: rgba(255, 170, 80, 0.14);
    border-color: rgba(255, 180, 90, 0.32);
}
.staff-card--modo .staff-card__photo {
    border-color: rgba(90, 170, 255, 0.5);
}
.staff-card--modotest .staff-card__photo {
    border-color: rgba(110, 210, 230, 0.5);
}
.staff-card--modotest .staff-card__role {
    color: #c8f4ff;
    background: rgba(110, 210, 230, 0.14);
    border-color: rgba(110, 210, 230, 0.32);
}

.chat__account-name { font-weight: 600; font-size: 0.92rem; }
.chat__account-id { font-size: 0.75rem; color: var(--text-muted); }

.link-steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 0.85rem 0 1.1rem;
}

.link-steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.5;
}

.link-steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(59, 140, 255, 0.16);
    border: 1px solid rgba(59, 140, 255, 0.32);
    color: var(--accent-light);
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.link-form { display: flex; flex-direction: column; gap: 0.6rem; }

.link-form__row { display: flex; gap: 0.5rem; }

.link-input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--panel-border);
    background: rgba(0, 0, 0, 0.32);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.link-input:focus {
    outline: none;
    border-color: rgba(59, 140, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 140, 255, 0.12);
}

.link-input--code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 1.25rem;
    letter-spacing: 0.42em;
    text-align: center;
    padding-left: 1.1rem;
}

.link-notice {
    font-size: 0.82rem;
    color: var(--text-muted);
    min-height: 1.3em;
    line-height: 1.45;
}

.link-notice[data-kind="error"] { color: #ffb0b0; }
.link-notice[data-kind="ok"] { color: #a9f0c9; }
.link-notice[data-kind="info"] { color: var(--accent-light); }

.legend { display: flex; flex-direction: column; gap: 0.55rem; }

.legend__row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.86rem;
    color: var(--text-dim);
}

.legend__dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--src-color, var(--accent));
    flex-shrink: 0;
}

.legend__row--gmod    { --src-color: #35d07f; }
.legend__row--discord { --src-color: #7289da; }
.legend__row--web     { --src-color: #3b8cff; }

.rule-note {
    margin-top: 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 179, 64, 0.08);
    border: 1px solid rgba(255, 179, 64, 0.22);
    color: #ffd9a3;
    font-size: 0.82rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Listes, rangs, FAQ
   -------------------------------------------------------------------------- */

.list-check {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.list-check li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: var(--text-dim);
    font-size: 0.93rem;
}

.list-check li::before {
    content: "";
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 0.32em;
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(59, 140, 255, 0.22), rgba(139, 92, 246, 0.22));
    border: 1px solid rgba(125, 180, 255, 0.35);
    box-shadow: inset 0 0 0 2px rgba(5, 6, 10, 0.9);
}

.rank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-row:last-child { border-bottom: none; }
.rank-row__name { font-weight: 600; color: var(--text); }

.rank-row__perms {
    font-size: 0.86rem;
    color: var(--text-muted);
    text-align: right;
}

.faq-item {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 1.15rem 1.4rem;
    box-shadow: var(--shadow-sm), var(--inner-line);
    margin-bottom: 0.75rem;
    backdrop-filter: blur(14px);
    transition: border-color 0.3s, transform 0.3s var(--ease);
}

.faq-item:hover { border-color: var(--panel-border-hover); transform: translateX(3px); }
.faq-item__q { font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }
.faq-item__a { color: var(--text-dim); font-size: 0.93rem; }

/* --------------------------------------------------------------------------
   Bloc « rejoindre »
   -------------------------------------------------------------------------- */

.join-box {
    position: relative;
    background: var(--panel-strong);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow), var(--inner-line);
    text-align: center;
    max-width: 660px;
    margin: 0 auto;
    overflow: hidden;
}

.join-box__listings {
    margin: 1.1rem 0 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.join-box__listings a {
    color: var(--accent-light);
    text-decoration: none;
}

.join-box__listings a:hover { text-decoration: underline; }

.join-box::before {
    content: "";
    position: absolute;
    top: -60%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translateX(-50%);
    background: radial-gradient(50% 50% at 50% 50%, var(--accent-glow), transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.join-box > * { position: relative; }
.join-box .btn { margin-top: 1.1rem; }

.copy-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.copy-field code {
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid var(--panel-border);
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 0.9rem;
    color: var(--accent-light);
}

.copy-btn {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.copy-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: var(--panel-border-hover); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.footer {
    position: relative;
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.footer__links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.footer__links a,
.footer__cookies {
    font-size: 0.88rem;
    color: var(--text-dim);
}
.footer__cookies {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.section__cta {
    margin-top: 1.6rem;
    text-align: center;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cookie {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    pointer-events: none;
}
.cookie__card {
    pointer-events: auto;
    max-width: 720px;
    margin: 0 auto;
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
    background: rgba(10, 12, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.cookie__title {
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
}
.cookie__text {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0 0 0.9rem;
}
.cookie__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 2.4rem) 1.2rem 4rem;
}
.legal h1 {
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0.2rem 0 0.6rem;
}
.legal h2 {
    font-size: 1.15rem;
    margin: 1.6rem 0 0.5rem;
}
.legal p, .legal li {
    color: var(--text-dim);
    line-height: 1.6;
}
.legal ul, .legal ol { padding-left: 1.2rem; margin: 0.4rem 0 0.8rem; }
.legal a { color: var(--accent); }
.legal__updated { font-size: 0.88rem; opacity: 0.7; }
.legal__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.9rem;
    margin: 0.9rem 0 1.5rem;
}
.legal__nav a {
    font-size: 0.86rem;
    color: var(--text-dim);
    border-bottom: 1px solid transparent;
}
.legal__nav a[aria-current="page"] {
    color: var(--text);
    border-bottom-color: var(--accent);
}
.legal--404 { min-height: 60vh; }

.legal--policies {
    max-width: 820px;
}

.legal__toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    margin: 0.4rem 0 2rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(180, 200, 235, 0.18);
    border-radius: 12px;
    background: rgba(12, 14, 22, 0.35);
}

.legal__toc a {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
}

.legal-block {
    margin: 2.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(180, 200, 235, 0.14);
    scroll-margin-top: calc(var(--nav-h) + 1.2rem);
}

.legal-block__title {
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin: 0.15rem 0 1rem;
}

/* --------------------------------------------------------------------------
   Guide du joueur (/guide)
   -------------------------------------------------------------------------- */

.guide {
    max-width: 1020px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 2.6rem) 1.3rem 4rem;
}

.guide__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
    margin: 0.35rem 0 0.8rem;
}

.guide__lead {
    max-width: 68ch;
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0;
}

.guide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.6rem;
}

/* Les deux moitiés du serveur, côte à côte */
.guide-philo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 3rem 0 0;
}

.guide-philo__card {
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius-lg, 18px);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(12px);
}

.guide-philo__card h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 0.6rem;
}

.guide-philo__card p {
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0 0 0.7rem;
}

.guide-philo__cmd {
    display: inline-block;
    font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
    font-size: 0.85rem;
    color: var(--accent-light);
    background: rgba(59, 140, 255, 0.1);
    border: 1px solid rgba(59, 140, 255, 0.22);
    border-radius: var(--radius-pill);
    padding: 0.2rem 0.8rem;
    margin: 0 !important;
}

.guide-philo__rule {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1rem 1.3rem;
    border-radius: var(--radius-lg, 18px);
    border: 1px solid rgba(139, 92, 246, 0.24);
    background: rgba(139, 92, 246, 0.07);
    color: var(--text-dim);
    line-height: 1.6;
}

.guide-search { margin: 2.8rem 0 1.4rem; }

.guide-search__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.guide-search__input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
}

.guide-search__input:focus {
    outline: none;
    border-color: var(--panel-border-hover);
    background: rgba(255, 255, 255, 0.06);
}

.guide-search__empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.8rem 0 0;
}

.guide-group { margin-top: 2.2rem; }

.guide-group__title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin: 0 0 0.9rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.9rem;
}

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem 1.3rem;
    border-radius: var(--radius-lg, 18px);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.guide-card:hover {
    border-color: var(--panel-border-hover);
    background: var(--panel-strong);
    transform: translateY(-2px);
}

.guide-card__title {
    font-weight: 600;
    color: var(--text);
}

.guide-card__sum {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-dim);
}

.guide-cta {
    margin-top: 3.2rem;
    padding: 1.8rem;
    border-radius: var(--radius-lg, 18px);
    background: var(--panel);
    border: 1px solid var(--panel-border);
}

.guide-cta h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 0.6rem;
}

.guide-cta p {
    max-width: 62ch;
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0;
}

.guide-cta b { color: var(--text); }

/* --- Page de guide : sommaire à gauche, contenu à droite --- */

.guide-doc {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 2.6rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 2.2rem) 1.3rem 4rem;
    align-items: start;
}

.guide-side {
    position: sticky;
    top: calc(var(--nav-h) + 1.4rem);
}

.guide-side__home {
    display: block;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 1.2rem;
}

.guide-side__home:hover { color: var(--accent-light); }

.guide-side__group {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 1.1rem 0 0.4rem;
}

.guide-side__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.guide-side__list a {
    display: block;
    padding: 0.32rem 0.6rem;
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--text-dim);
    text-decoration: none;
}

.guide-side__list a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.guide-side__list a.is-active {
    color: var(--accent-light);
    background: rgba(59, 140, 255, 0.1);
}

.guide-crumbs {
    display: flex;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.guide-crumbs a { color: var(--text-dim); text-decoration: none; }
.guide-crumbs a:hover { color: var(--accent-light); }

.guide-article { min-width: 0; }

.guide-article__title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.guide-article__sum {
    color: var(--text-dim);
    font-size: 1.02rem;
    margin: 0;
}

.guide-toc {
    margin: 1.8rem 0 0;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
}

.guide-toc__label {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.guide-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.guide-toc a {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: none;
}

.guide-toc a:hover { color: var(--accent-light); }

.guide-section { margin-top: 2.4rem; scroll-margin-top: calc(var(--nav-h) + 1.4rem); }

.guide-section h2 {
    font-family: var(--font-display);
    font-size: 1.22rem;
    margin: 0 0 0.7rem;
}

.guide-section p {
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0 0 0.85rem;
    max-width: 72ch;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0.2rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-width: 72ch;
}

.guide-list li {
    position: relative;
    padding-left: 1.1rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.guide-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.guide-pairs {
    margin: 0.4rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    max-width: 78ch;
}

.guide-pairs__row {
    display: grid;
    grid-template-columns: minmax(130px, 210px) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
}

.guide-pairs__row:nth-child(odd) { background: rgba(255, 255, 255, 0.025); }

.guide-pairs dt {
    font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace);
    font-size: 0.88rem;
    color: var(--accent-light);
}

.guide-pairs dd {
    margin: 0;
    color: var(--text-dim);
    line-height: 1.55;
}

.guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.guide-nextprev {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--panel-border);
}

.guide-nextprev__link {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    text-decoration: none;
}

.guide-nextprev__link:hover { border-color: var(--panel-border-hover); }

.guide-nextprev__link--next { text-align: right; }

.guide-nextprev__link span {
    font-size: 0.68rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.guide-nextprev__link b { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
    .guide-philo { grid-template-columns: 1fr; }

    .guide-doc {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    /* Le sommaire devient une rangée de pastilles défilantes */
    .guide-side {
        position: static;
        display: flex;
        gap: 0.4rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .guide-side__home,
    .guide-side__group { display: none; }

    .guide-side__list {
        flex-direction: row;
        gap: 0.4rem;
    }

    .guide-side__list a {
        white-space: nowrap;
        border: 1px solid var(--panel-border);
        border-radius: var(--radius-pill);
        padding: 0.3rem 0.8rem;
        font-size: 0.85rem;
    }

    .guide-pairs__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

html.nav-open,
body.nav-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    html { scroll-padding-top: 76px; }

    .nav,
    .nav.is-scrolled,
    .nav.is-open {
        height: 58px;
        overflow: visible;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom-color: transparent;
    }

    .nav::before,
    .nav.is-scrolled::before,
    .nav.is-open::before {
        background: #05060a;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }

    .nav {
        display: flex;
        justify-content: space-between;
    }
    .nav__brand { margin-right: 0; }
    .nav__end { margin-left: auto; }
    .nav__cta { display: none; }
    .nav__toggle {
        display: flex !important;
        margin-left: 0.15rem;
    }

    .nav__links {
        display: flex !important;
        position: absolute !important;
        top: 100%;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: calc(100dvh - 58px);
        height: calc(100svh - 58px);
        z-index: 199;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch !important;
        align-self: stretch !important;
        justify-self: stretch !important;
        justify-content: flex-start;
        gap: 0.65rem;
        margin: 0 !important;
        padding: 0.85rem 0.85rem max(1.3rem, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: #0b0e16;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        transform: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s var(--ease), visibility 0.18s;
    }

    .nav.is-open .nav__links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav__links > li {
        width: 100% !important;
        max-width: none !important;
    }

    .nav__links a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 3.65rem;
        padding: 0.95rem 1.15rem;
        font-size: 1.2rem;
        font-weight: 600;
        color: #f2f4f9;
        background: #151821;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        box-sizing: border-box;
    }

    .nav__links a:hover,
    .nav__links a.is-active {
        color: #fff;
        background: #1e2a44;
        border-color: rgba(59, 140, 255, 0.45);
    }

    .nav__links-play { display: list-item; }

    .nav__links-play a {
        text-align: center;
        background: linear-gradient(135deg, var(--accent-deep), var(--accent));
        border-color: transparent;
        font-weight: 600;
    }

    .nav__item--drop {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .nav__item--drop::after {
        display: none;
    }

    .nav__drop-btn {
        display: flex;
        width: 100%;
        min-height: 3.65rem;
        justify-content: space-between;
        padding: 0.95rem 1.15rem;
        font-size: 1.2rem;
        font-weight: 600;
        color: #f2f4f9;
        background: #151821;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        box-sizing: border-box;
    }

    .nav__item--drop.is-current .nav__drop-btn,
    .nav__item--drop.is-open .nav__drop-btn,
    .nav__drop-btn:hover {
        color: #fff;
        background: #1e2a44;
        border-color: rgba(59, 140, 255, 0.45);
    }

    .nav__drop {
        position: static;
        display: none;
        min-width: 0;
        margin: 0.15rem 0 0.15rem 0.65rem;
        padding: 0;
        background: transparent;
        border: 0;
        border-left: 2px solid rgba(59, 140, 255, 0.45);
        border-radius: 0;
        box-shadow: none;
    }

    .nav__item--drop:hover .nav__drop,
    .nav__item--drop:focus-within .nav__drop {
        display: none;
    }

    .nav__item--drop.is-open .nav__drop {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .nav__drop a {
        min-height: 3.35rem;
        padding: 0.85rem 1.1rem;
        font-size: 1.12rem;
    }
}

@media (max-width: 520px) {
    .nav__title { display: none; }
}

@media (max-width: 980px), (max-device-width: 980px) {
    .chat {
        grid-template-columns: 1fr;
    }
    .chat__log { max-height: 55vh; }
    .chat__panel { min-height: 0; }
}

@media (max-width: 820px), (max-device-width: 820px) {
    .hero {
        min-height: auto;
        padding: calc(var(--nav-h) + 1.1rem) 1rem 2.4rem;
        align-items: flex-start;
    }

    .hero__scroll { display: none; }

    .hero__logo {
        max-width: min(210px, 58vw);
        max-height: 108px;
        margin-bottom: 0.85rem;
        border-radius: 20px;
    }

    .hero__title {
        font-size: clamp(1.4rem, 7.4vw, 2.15rem);
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero__desc { margin-bottom: 1.35rem; }

    .hero__actions {
        flex-direction: column;
        width: 100%;
        margin-bottom: 1.6rem;
    }

    .hero__actions .btn { width: 100%; }

    .hero__stats {
        grid-template-columns: 1fr 1fr;
    }

    .hero__stat--map { grid-column: 1 / -1; }

    .section {
        padding: 2.6rem 1rem;
    }

    .section__head { margin-bottom: 1.6rem; }

    .grid-2,
    .grid-3,
    .live-grid {
        grid-template-columns: 1fr;
    }

    .podium {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 1.1rem;
    }

    .podium__slot--1,
    .podium__slot--2,
    .podium__slot--3 {
        order: 0;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 0.9rem;
        row-gap: 0.15rem;
        text-align: left;
        align-items: center;
    }

    .podium__slot--1 .podium__avatar {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
        margin-bottom: 0;
    }

    .podium__avatar { margin-bottom: 0; }

    .podium__name { margin-bottom: 0; }

    .podium__votes { margin-bottom: 0; }

    .podium__stand {
        display: none;
    }

    .podium__avatar {
        grid-row: 1 / span 2;
    }

    .podium__name,
    .podium__votes {
        grid-column: 2;
    }

    .podium-card__head {
        flex-direction: column;
        align-items: stretch;
    }

    .vote-links {
        justify-content: flex-start;
    }

    .rank-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .rank-row__perms { text-align: left; }

    .faq-item { padding: 1rem 1.05rem; }
    .faq-item:hover { transform: none; }
}

@media (max-width: 520px), (max-device-width: 520px) {
    .nav__title { display: none; }
    .hero__stats { grid-template-columns: 1fr; }
    .hero__stat--map { grid-column: auto; }
    .card { padding: 1.15rem 1rem; }
    .join-box { padding: 1.4rem 1rem; }
    .copy-field { flex-direction: column; }
    .copy-field code {
        width: 100%;
        overflow-wrap: anywhere;
        word-break: break-all;
        font-size: 0.82rem;
    }
    .chat__form { flex-direction: column; }
    .chat__form .btn { width: 100%; }
    .link-form__row { flex-direction: column; }
    .link-form__row .btn { width: 100%; }
    .footer__links { gap: 0.75rem 1rem; }
}

/* --------------------------------------------------------------------------
   Espace membre (compte + recherche)
   -------------------------------------------------------------------------- */

.espace {
    max-width: 1120px;
    margin: 0 auto;
    padding: 6.5rem 1.4rem 4rem;
}

.espace__hero { margin-bottom: 2rem; }

.espace__title {
    font-family: Outfit, Inter, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin: 0.35rem 0 0.55rem;
}

.espace__sub {
    color: var(--text-dim);
    margin: 0 0 1rem;
}

.espace__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.espace__block { margin-top: 1.5rem; }

.espace__block-title {
    font-size: 1.15rem;
    margin: 0 0 1rem;
}

.espace__search { margin-bottom: 1.5rem; }

.espace__accuracy { margin-top: 1.5rem; }

.espace__acc-global {
    font-family: Outfit, Inter, sans-serif;
    font-size: 2.4rem;
    margin: 0.35rem 0 0.25rem;
    color: #ffd56a;
}

.espace__acc-modes {
    margin: 1rem 0 0.35rem;
    gap: 0.85rem;
}

.acc-mode {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.espace__acc-mode {
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.45rem;
    margin: 0.15rem 0;
    color: #fff;
}

.acc-zone { margin-top: 0.85rem; }

.acc-mode .acc-zone { margin-top: 0.55rem; }

.acc-zone__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
}

.acc-zone__track {
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.acc-zone__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffbe50, #ff6b6b);
}

.acc-zone--head .acc-zone__track span {
    background: linear-gradient(90deg, #ff8a80, #ff5252);
}

.acc-zone--torso .acc-zone__track span {
    background: linear-gradient(90deg, #ffc46b, #ff9800);
}

.acc-zone--arms .acc-zone__track span {
    background: linear-gradient(90deg, #7ec8ff, #3d8bfd);
}

.acc-zone--legs .acc-zone__track span {
    background: linear-gradient(90deg, #b7e07a, #6bbf4e);
}

.espace-result {
    cursor: pointer;
}

#linkFlow .btn--steam {
    display: inline-flex;
    margin-top: 0.85rem;
}

.espace__weapons { margin-top: 1.5rem; }

.espace-weapon {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.45rem 0;
}

.espace__weapon-pick { margin-top: 1.5rem; }

.weapon-pick__label {
    display: block;
    margin: 0.85rem 0 0.4rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.weapon-pick {
    width: 100%;
    max-width: 420px;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #141824;
    color: #f2f4f9;
    font: inherit;
}

#weaponPickDetail { margin-top: 1rem; }

.faction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.15rem;
}

.faction-card { position: relative; overflow: hidden; padding-top: 1.35rem; }

.faction-card__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.faction-card__name {
    font-family: Outfit, Inter, sans-serif;
    font-size: 1.35rem;
    margin: 0 0 0.2rem;
}

.faction-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 0.9rem 0 1.1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.faction-card__sub {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0.9rem 0 0.4rem;
}

.faction-roster,
.faction-upgrades {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faction-member,
.faction-upg {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.92rem;
}

.faction-member.is-online .faction-member__name { color: #9dffc1; }
