:root {
    --bg: #000;
    --panel: #0C1020;
    --line: rgba(255, 255, 255, .08);
    --txt: #E8EEFF;
    --muted: rgba(232, 238, 255, .65);
    --r: 16px;
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    --texture: url("/static/tracker/design_images/texture-test.png");
}

@font-face {
    font-family: 'Eger';
    src: url('./font/eger-regular-webfont.woff2') format('woff2'),
        url('./font/eger-regular-webfont.woff') format('woff');
    font-display: swap;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

/* ===== FIX BACKGROUND ===== */

body {
    margin: 0;
    font-family: var(--font);
    color: var(--txt);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background fixe avec pseudo-element */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(#000, #233b5e),
        url("/static/tracker/design_images/texture-test.png"),
        linear-gradient(to bottom,
            #2d4466 0px,
            #253a5a 250px,
            #1b2b45 350px,
            #101828 500px,
            #05070f 600px,
            #000 700px);
    background-position: top right, top right, top;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: cover, 100%, cover;
    background-blend-mode: overlay, multiply, multiply;
}

.wrap,
.sc-topnav {
    position: relative;
    z-index: 2;
}

.wrap {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 18px;
}

/* ===== HERO (texte + twitch + podium) ===== */
.sc-hero {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 22px;
    align-items: stretch;
    margin: 24px auto 18px;
}

@media (max-width: 1200px) {
    .sc-hero {
        grid-template-columns: 1fr;
    }
}

.sc-hero-left {
    padding: 18px 14px;
}

.sc-hero-kicker {
    font-weight: 1000;
    letter-spacing: .9px;
    text-transform: uppercase;
    font-size: 13px;
    color: rgba(232, 238, 255, .75);
}

.sc-hero-title {
    font-weight: 1000;
    letter-spacing: .4px;
    text-transform: uppercase;
    font-size: 38px;
    line-height: 1.02;
    margin-top: 6px;
}

.sc-hero-sub {
    margin-top: 10px;
    font-weight: 950;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(232, 238, 255, .88);
}

.sc-hero-dates {
    margin-top: 10px;
    color: rgba(245, 214, 138, .95);
    font-weight: 950;
    letter-spacing: .6px;
}

.sc-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 10px 22px;
    border: 2px solid rgba(245, 214, 138, 0.95);
    color: rgba(245, 214, 138, 0.95);
    text-decoration: none;
    font-weight: 1000;
    letter-spacing: .7px;
    text-transform: uppercase;
    background: rgba(8, 21, 51, .55);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.sc-hero-btn:hover {
    background: rgba(245, 214, 138, .92);
    color: #111;
}

.sc-hero-center {
    display: flex;
    align-items: stretch;
}

.twitch-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .35);
    box-shadow: 0 18px 70px rgba(0, 0, 0, .45);
}

.twitch-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.sc-hero-right {
    padding: 18px 14px;
}

.podium-title {
    font-weight: 1000;
    letter-spacing: .7px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.podium-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.podium-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border: 2px solid rgba(255, 255, 255, .2);
    background: rgba(0, 0, 0, .22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.podium-item .podium-line1 {
    font-weight: 1000;
    letter-spacing: .6px;
    text-transform: uppercase;
    font-size: 13px;
}

.podium-item .podium-line2 {
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    color: rgba(232, 238, 255, .75);
}

.podium-item.podium-rayane {
    border-color: rgba(255, 213, 106, .55);
}

.podium-item.podium-rayane .podium-line1 {
    color: #ffd56a;
}

.podium-item.podium-erwan {
    border-color: rgba(183, 199, 255, .55);
}

.podium-item.podium-erwan .podium-line1 {
    color: #b7c7ff;
}

.podium-item.podium-neff {
    border-color: rgba(255, 95, 167, .55);
}

.podium-item.podium-neff .podium-line1 {
    color: #ff5fa7;
}

.podium-item.podium-zizou {
    border-color: rgba(79, 230, 193, .55);
}

.podium-item.podium-zizou .podium-line1 {
    color: #4fe6c1;
}

/* ===== TOP NAV ===== */
.sc-topnav {
    top: 0;
    z-index: 50;
}

/* ✅ la barre dorée horizontale derrière le logo + boutons */
.sc-topnav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: linear-gradient(90deg,
            rgba(245, 214, 138, 0.0) 0%,
            rgba(245, 214, 138, 0.95) 8%,
            rgba(245, 214, 138, 0.95) 92%,
            rgba(245, 214, 138, 0) 100%);
    pointer-events: none;
    z-index: -1000;
}

/* contenu au-dessus de la barre */
.sc-topnav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 2;
}

/* Logo image */
.sc-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    flex: 0 0 auto;
}

.sc-logo-img {
    height: 165px;
    width: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45));
}

/* Nav */
.sc-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* ===== BOUTONS ===== */
.sc-navbtn {
    border: none;
    display: block;
    position: relative;
    padding: 0.7em 2.4em;
    font-size: 17px;
    background: rgba(8, 21, 51);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    color: #fff;
    z-index: 1;
    font-family: var(--font);
    font-weight: 700;
    border-radius: 2px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255, 255, 255, .08),
        inset 0 -1px 0 rgba(0, 0, 0, .35);
    text-decoration: none;
}

.sc-navbtn::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 55%),
        repeating-linear-gradient(-45deg,
            rgba(255, 255, 255, .03) 0px,
            rgba(255, 255, 255, .03) 2px,
            rgba(0, 0, 0, 0) 2px,
            rgba(0, 0, 0, 0) 6px);
    opacity: .55;
}

.sc-navbtn span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    border: 2px solid #f5d68ae6;
}

.sc-navbtn span::before {
    content: "";
    display: block;
    position: absolute;
    width: 8%;
    height: 500%;
    background: var(--lightgray);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-60deg);
    transition: all 0.5s;
}

.sc-navbtn:hover span::before {
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 100%;
    background: #f5d78a;
}

.sc-navbtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(255, 255, 255, .10),
        inset 0 -1px 0 rgba(0, 0, 0, .35);
}

.sc-navbtn.is-active {
    background: radial-gradient(circle at 100%, #dbdbdb, #9b7844), linear-gradient(to top, #6c5017, #b09d7e 20px);
    background-size: contain, 100%, contain;
    background-blend-mode: overlay, multiply, normal;
    color: #111;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(255, 255, 255, .35),
        inset 0 -1px 0 rgba(0, 0, 0, .25);
}

/* ===== MENU HAMBURGER (mobile) ===== */
.sc-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(8, 21, 51, 0.9);
    border: 2px solid rgba(245, 214, 138, 0.95);
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: auto;
    z-index: 100;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .45);
}

.sc-hamburger span {
    width: 24px;
    height: 3px;
    background: rgba(245, 214, 138, 0.95);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation hamburger -> X */
.sc-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.sc-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.sc-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation mobile */
@media (max-width: 900px) {
    .sc-hamburger {
        display: flex;
    }

    .sc-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 40vh;
        background: rgba(6, 9, 18, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 20px;
        margin: 0;
        z-index: 99;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 2px solid rgba(245, 214, 138, 0.95);
        box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
    }

    .sc-nav.active {
        transform: translateY(0);
    }

    .sc-navbtn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        font-size: 18px;
        padding: 12px 24px;
    }

    /* Logo plus petit sur mobile */
    .sc-logo-img {
        height: 120px;
    }

    /* Ajuste la barre dorée */
    .sc-topnav::before {
        display: none;
    }
}

/* Très petits écrans */
@media (max-width: 500px) {
    .sc-logo-img {
        height: 90px;
    }

    .sc-topnav-inner {
        padding: 10px 12px;
    }

    .sc-navbtn {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* ===== FILTERS ===== */
.sc-filters {
    margin: 14px auto 14px;
    padding: 0 18px;
    display: grid;
    gap: 12px;
}

.sc-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sc-filter-label {
    font-weight: 1000;
    letter-spacing: .6px;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(244, 231, 198, .75);
    border-left: 3px solid rgba(245, 214, 138, 0.902);
    padding-left: 10px;
}

/* ===== TEAM TABS ===== */
.tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: center;
}

.tab {
    --team-color: #d9deee;
    border: 2px solid var(--team-color);
    background: transparent;
    color: var(--team-color);
    padding: 10px 18px;
    border-radius: 2px;
    cursor: pointer;
    user-select: none;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
    font-size: 16px;
    transition: background .15s ease, color .15s ease;
}

.tab-classement {
    --team-color: #d9deee;
}

.tab-rayane {
    --team-color: #ffd56a;
}

.tab-erwan {
    --team-color: #b7c7ff;
}

.tab-neff {
    --team-color: #ff5fa7;
}

.tab-zizou {
    --team-color: #4fe6c1;
}

.sc-teams .tab {
    border-radius: 3px;
    padding: 8px 12px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .6px;
    background: transparent;
    transition: background-color .18s ease,
        box-shadow .18s ease,
        transform .12s ease;
}

/* Hover générique */
.sc-teams .tab:hover {
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px currentColor;
    transform: translateY(-3px);
}

/* État actif encore un peu plus marqué */
.sc-teams .tab.active {
    background-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 20px currentColor;
}

/* ===== ROLE DROPDOWN ===== */
.tab-role {
    --team-color: #f5d28a;
    position: relative;
    padding: 0;
    overflow: visible;
    flex: 0 0 auto;
    border: 2px solid var(--team-color);
    color: var(--team-color);
    border-radius: 10px;
}

.role-dd-btn {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--team-color);
    font: inherit;
    padding: 10px 18px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: .4px;
    text-transform: uppercase;
    font-size: 16px;
}

.tab-role:hover {
    background: var(--team-color);
}

.tab-role:hover .role-dd-btn,
.tab-role:hover .role-dd-caret {
    color: #fff;
}

.tab-role.open {
    background: var(--team-color);
}

.tab-role.open .role-dd-btn,
.tab-role.open .role-dd-caret {
    color: #fff;
}

.role-dd-caret {
    margin-left: 6px;
    font-size: 12px;
    opacity: .9;
}

.role-dd-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 190px;
    background: rgba(8, 10, 16, .98);
    border: 2px solid var(--team-color);
    border-radius: 2px;
    padding: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
    display: none;
    z-index: 50;
}

.tab-role.open .role-dd-menu {
    display: block;
}

.role-dd-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    color: #e9ecff;
    font-weight: 800;
    padding: 10px 10px;
    border-radius: 2px;
    font-size: 15px;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}

.role-dd-item:hover {
    background: rgba(245, 210, 138, .16);
    color: #fff;
}

.role-dd-item.active {
    background: rgba(245, 210, 138, .28);
    color: #fff;
}

.sc-role.tab-role {
    border-radius: 3px;
}

.sc-role .role-dd-btn {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 1000;
}

/* ===== PANELS ===== */
.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 0 12px 70px rgba(0, 0, 0, .35);
}

.panel-head {
    padding: 18px 18px 10px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.title {
    font-size: 20px;
    font-weight: 900;
}

.sub {
    color: var(--muted);
    font-size: 13px;
}

.table {
    width: 100%;
}

/* ===== TABLE ===== */
.row,
.row.head {
    display: grid;
    grid-template-columns: 52px 1.45fr 1.2fr 1.35fr 160px 90px 220px 190px;
    gap: 12px;
    padding: 12px 16px;
    font-size: 15px;
    align-items: center;
}

.row {
    border-bottom: 1px solid var(--line);
}

.row:last-child {
    border-bottom: 0;
}

.row.head {
    position: sticky;
    top: 0;
    background: rgba(6, 9, 18, .82);
    backdrop-filter: blur(10px);
    font-size: 14px;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--muted);
    z-index: 2;
}

/* ===== CELLS ===== */
.player {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.summoner-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
    flex: 0 0 auto;
}

.player>div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    opacity: .9;
}

.role-icon.unknown {
    opacity: .35;
    filter: none;
}

.teamcell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.team-role {
    width: 30px;
    height: 30px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-image: var(--icon);
    mask-image: var(--icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    opacity: .95;
}

.team-name {
    font-weight: 900;
    letter-spacing: .6px;
    text-transform: uppercase;
    font-size: 14px;
    white-space: nowrap;
}

.team-rayane {
    color: #ffd56a;
}

.team-erwan {
    color: #b7c7ff;
}

.team-neff {
    color: #ff5fa7;
}

.team-zizou {
    color: #4fe6c1;
}

.team-unknown {
    color: rgba(232, 238, 255, .55);
}

.elo-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1;
}

.elo-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transform: translateY(-1px);
}

.elo-text {
    font-size: 16px;
    text-transform: uppercase;
}

.wr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 25px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.wr-wl {
    color: rgba(232, 238, 255, .78);
    font-weight: 800;
}

.wr-pct {
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(120, 160, 255, .18);
    border: 1px solid rgba(120, 160, 255, .25);
    font-weight: 900;
}

.last10 {
    display: flex;
    gap: 4px;
    align-items: center;
}

.last10 span {
    width: 7px;
    height: 16px;
    border-radius: 1px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .05);
}

.last10 span.win {
    background: rgba(255, 210, 80, .90);
}

.last10 span.loss {
    background: rgba(255, 80, 120, .90);
}

.cell-rank {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ingame-left {
    width: 25px;
    height: 25px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 60, 80, .35);
    background: rgba(255, 60, 80, .12);
}

.ingame-left-off {
    border-color: transparent;
    background: transparent;
}

.rank-num {
    min-width: 18px;
}

.rec-dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: rgb(255, 60, 80);
    box-shadow: 0 0 10px rgba(255, 60, 80, .55);
    animation: recPulse 1.1s infinite ease-in-out;
}

@keyframes recPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .9;
    }

    50% {
        transform: scale(1.35);
        opacity: 1;
    }
}

/* ===== RESPONSIVE PAGE CLASSEMENT ===== */

@media (max-width: 900px) {
    #roleDropdown {
        position: relative;
    }

    #roleMenu {
        position: fixed;
        width: auto !important;
        z-index: 9999;
    }
}


/* Tablette (< 1200px) */
@media (max-width: 1200px) {

    /* Hero en colonne */
    .sc-hero {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sc-hero-left,
    .sc-hero-right {
        text-align: center;
    }

    .sc-hero-btn {
        display: inline-flex;
    }

    /* Podium horizontal sur tablette */
    .podium-list {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .podium-item {
        min-width: 200px;
        flex: 1 1 auto;
    }
}

/* Mobile (< 900px) */
@media (max-width: 900px) {

    /* Titre hero plus petit */
    .sc-hero-title {
        font-size: 32px;
    }

    /* Filters en colonne */
    .sc-filters {
        gap: 16px;
    }

    .sc-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .sc-filter-label {
        border-left: none;
        border-top: 3px solid rgba(245, 214, 138, 0.902);
        padding-left: 0;
        padding-top: 8px;
    }

    /* Tabs en scroll horizontal */
    .tabs {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(245, 214, 138, 0.5) transparent;
        padding-bottom: 8px;
    }

    .tabs::-webkit-scrollbar {
        height: 4px;
    }

    .tabs::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 2px;
    }

    .tabs::-webkit-scrollbar-thumb {
        background: rgba(245, 214, 138, 0.5);
        border-radius: 2px;
    }

    .sc-teams .tab {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Role dropdown pleine largeur */
    .tab-role {
        width: 100%;
    }

    .role-dd-menu {
        width: 100%;
        left: 0;
        right: 0;
    }

    /* TABLE MOBILE : Format carte horizontal comme l'image */
    .row.head {
        display: none !important;
    }

    .row:not(.head) {
        display: grid;
        grid-template-columns: 0px 65px 1fr auto;
        grid-template-rows: auto auto auto;
        gap: 8px 12px;
        padding: 14px;
        background: rgba(0, 0, 0, 0.35);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        margin-bottom: 10px;
        align-items: center;
        position: relative;
    }

    /* RANK - col 1, row 1 */
    .row:not(.head)> :nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        font-size: 20px;
        font-weight: 900;
    }

    /* SUMMONER ICON - col 2, row 1-2 */
    .row:not(.head)> :nth-child(2) {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: start;
    }

    .row:not(.head) .player {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
    }

    .row:not(.head) .player>div {
        flex-direction: column;
        gap: 4px;
    }

    .summoner-icon {
        width: 56px;
        height: 56px;
    }

    .role-icon {
        width: 20px;
        height: 20px;
        margin: 0 auto;
    }

    /* TEAM BADGE - col 3, row 1 */
    .row:not(.head)> :nth-child(3) {
        grid-column: 3;
        grid-row: 1;
        justify-self: start;
    }

    .teamcell {
        flex-direction: row;
        gap: 8px;
    }

    .team-role {
        width: 24px;
        height: 24px;
    }

    .team-name {
        font-size: 13px;
    }

    /* RIOT ID - col 3, row 2 (en dessous du team) */
    .row:not(.head)> :nth-child(4) {
        grid-column: 3;
        grid-row: 2;
        justify-self: start;
        font-size: 12px;
        color: rgba(232, 238, 255, 0.6);
    }

    /* ELO - col 4, row 1 */
    .row:not(.head)> :nth-child(5) {
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
    }

    .elo-cell {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .elo-icon {
        width: 40px;
        height: 40px;
    }

    .elo-text {
        font-size: 15px;
    }

    /* MATCHS - col 1-2, row 3 */
    .row:not(.head)> :nth-child(6) {
        grid-column: 1 / 3;
        grid-row: 3;
        font-size: 13px;
        font-weight: 900;
        color: rgba(232, 238, 255, 0.7);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* WINRATE - col 3, row 3 */
    .row:not(.head)> :nth-child(7) {
        grid-column: 3;
        grid-row: 3;
    }

    .wr {
        padding: 6px 10px;
        gap: 8px;
    }

    .wr-wl {
        font-size: 12px;
    }

    .wr-pct {
        font-size: 12px;
        padding: 4px 8px;
    }

    /* LAST 10 - col 4, row 3 */
    .row:not(.head)> :nth-child(8) {
        grid-column: 4;
        grid-row: 3;
        justify-self: end;
    }

    .last10 {
        gap: 3px;
    }

    .last10 span {
        width: 9px;
        height: 18px;
    }

    /* Indicateur en partie (si présent) */
    .cell-rank .ingame-left {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
    }

    .rec-dot {
        width: 11px;
        height: 11px;
    }
}

/* Très petits écrans (< 500px) */
@media (max-width: 500px) {
    .wrap {
        padding: 0 12px;
    }

    .sc-hero-title {
        font-size: 28px;
    }

    .sc-hero-sub {
        font-size: 14px;
    }

    .panel-head {
        padding: 14px 14px 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .title {
        font-size: 18px;
    }

    .sub {
        font-size: 12px;
    }

    /* Table encore plus compacte */
    .row:not(.head) {
        padding: 12px;
        gap: 6px 10px;
    }

    .summoner-icon {
        width: 50px;
        height: 50px;
    }

    .wr {
        padding: 5px 8px;
        gap: 6px;
    }

    .wr-wl,
    .wr-pct {
        font-size: 11px;
    }

    .last10 span {
        width: 8px;
        height: 16px;
    }

    .team-role {
        width: 20px;
        height: 20px;
    }

    .team-name {
        font-size: 12px;
    }

    /* Podium en colonne sur très petits écrans */
    .podium-list {
        flex-direction: column;
    }

    .podium-item {
        min-width: auto;
    }
}

/* Mode paysage mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .sc-hero {
        grid-template-columns: 1fr 1fr;
    }

    .sc-hero-center {
        grid-column: 1 / -1;
    }

    .twitch-embed {
        aspect-ratio: 21 / 9;
    }
}

/* ===== BOUTON FILTRES MOBILE ===== */
.sc-filters-toggle {
    display: none;
    width: 100%;
    padding: 12px 20px;
    background: rgba(8, 21, 51, 0.9);
    border: 2px solid rgba(245, 214, 138, 0.95);
    color: rgba(245, 214, 138, 0.95);
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .45);
    transition: all 0.2s ease;
    position: relative;
}

.sc-filters-toggle::after {
    content: "▼";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 14px;
}

.sc-filters-toggle.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.sc-filters-toggle:hover {
    background: rgba(245, 214, 138, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .55);
}

/* Mobile: cacher les filtres par défaut */
@media (max-width: 900px) {
    .sc-filters-toggle {
        display: block;
    }

    /* Wrapper pour les filtres avec clip-path au lieu d'overflow */
    .sc-filters {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
        margin-top: 0;
        margin-bottom: 0;
        overflow: visible !important;
        clip-path: inset(0 0 100% 0);
    }

    .sc-filters.active {
        max-height: 1000px;
        opacity: 1;
        transform: translateY(0);
        margin-top: 0;
        margin-bottom: 14px;
        clip-path: none;
        transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease, clip-path 0.4s ease;
    }

    /* Panel des filtres */
    .sc-filters.active {
        background: rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(245, 214, 138, 0.3);
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        position: relative;
        transform: none !important;
        clip-path: none !important;
        overflow: visible !important;
    }

    .sc-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        position: static;
    }

    .sc-filter-label {
        border-left: none;
        border-top: 3px solid rgba(245, 214, 138, 0.902);
        padding-left: 0;
        padding-top: 8px;
        padding-bottom: 4px;
    }

    /* Tabs en grille */
    .tabs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 8px;
    }

    .sc-teams .tab {
        white-space: nowrap;
        font-size: 14px;
        padding: 10px 12px;
        text-align: center;
    }

    /* Role dropdown */
    .tab-role {
        width: auto;
        min-width: 200px;
        max-width: 100%;
        position: relative;
    }

    .role-dd-btn {
        width: 100%;
        justify-content: space-between;
        padding: 10px 16px;
    }

    /* Menu en fixed pour sortir du flux */
    .role-dd-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        z-index: 9999;
        max-height: 280px;
        overflow-y: auto;
    }

    .tab-role.open .role-dd-menu {
        display: block;
    }
}

/* Très petits écrans */
@media (max-width: 500px) {
    .tabs {
        grid-template-columns: 1fr 1fr;
    }

    .sc-teams .tab {
        font-size: 13px;
        padding: 8px 10px;
    }

    .tab-role {
        min-width: 180px;
    }

    .role-dd-menu {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

/* ===== TEAMS GRID ===== */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1050px) {
    .teams-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    display: grid;
    grid-template-columns: 30% 70%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .35);
    box-shadow: 0 18px 70px rgba(0, 0, 0, .45);
    min-height: 320px;
}

/* Couleurs team */
.team-card.team-rayane {
    --accent: #ffd56a;
}

.team-card.team-erwan {
    --accent: #b7c7ff;
}

.team-card.team-neff {
    --accent: #ff5fa7;
}

.team-card.team-zizou {
    --accent: #4fe6c1;
}

.team-banner {
    position: relative;
    background: rgba(0, 0, 0, .35);
    border-right: 1px solid rgba(255, 255, 255, .10);
}

.team-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.95) contrast(1.05);
}

/* voile */
.team-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .20) 0%, rgba(0, 0, 0, .72) 70%, rgba(0, 0, 0, .85) 100%);
}

.team-banner-label {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 3em;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .65);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    font-family: 'Eger', sans-serif;
}

.team-banner-label::after {
    content: "";
    display: block;
    height: 4px;
    width: 46px;
    margin-top: 10px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 18px rgba(0, 0, 0, .35);
}

.team-board {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
    position: relative;
}

/* ✅ CHANGÉ : 2 colonnes (PLAYER + ELO) */
.team-board-row {
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.85fr;
    gap: 12px;
    padding: 12px 16px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 14px;
}

.team-board-row.head {
    position: sticky;
    top: 0;
    background: rgba(6, 9, 18, .82);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(232, 238, 255, .65);
    font-size: 12px;
    z-index: 1;
    justify-content: space-between;
    display: flex;
}

.team-board-rows .team-board-row:last-child {
    border-bottom: 0;
}

.team-board-rows {
    flex: 1 1 auto;
    overflow: auto;
    /* place pour le footer positionné */
    padding-bottom: 54px;
}

.team-card {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04),
        0 18px 70px rgba(0, 0, 0, .45);
}

.team-player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.team-rank-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: rgba(232, 238, 255, .65);
    font-weight: 900;
}

.team-player-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
}

.team-rank-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 28px;
    font-weight: 900;
    opacity: 0.9;
}

/* positions grid dynamiques */
.teams-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.team-pos-1 {
    grid-area: 1 / 1;
}

.team-pos-2 {
    grid-area: 1 / 2;
}

.team-pos-3 {
    grid-area: 2 / 1;
}

.team-pos-4 {
    grid-area: 2 / 2;
}

/* ===== TEAM: JOUEURS + POINTS ===== */
.team-player-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.team-board-row> :nth-child(3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

/* footer totals */
.team-board-footer {
    /* ✅ ancré en bas à droite: plus de décalage entre cards */
    position: absolute;
    right: 16px;
    bottom: 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.team-footer-line {
    font-variant-numeric: tabular-nums;
}

.team-footer-line.muted {
    color: rgba(232, 238, 255, .55);
    font-weight: 800;
}

/* rank badge like corner */
.team-card {
    position: relative;
}

.team-rank-badge {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 0 0 12px;
    font-size: 2.4em;
    margin: 0;
    font-weight: 1000;
    color: #fff;
    background: radial-gradient(circle at 100%, var(--panel), var(--accent)), url('./design_images/texture.png'), var(--accent);
    background-blend-mode: overlay, normal, multiply;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    text-shadow: 0 10px 25px rgba(0, 0, 0, .55);
    border-right: 1px solid rgba(255, 255, 255, .18);
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

/* ===== RESPONSIVE PAGE TEAMS ===== */

/* Tablette (< 1050px) - déjà géré dans le CSS de base */

/* Mobile (< 900px) */
@media (max-width: 900px) {
    .muted {
        display: none;
    }

    .teams-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        display: flex;
        flex-direction: column;
    }

    /* Cards restent en 2 colonnes (30% / 70%) mais en mode vertical */
    .team-card {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    /* Banner compacte en haut */
    .team-banner {
        height: 140px;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .10);
        position: relative;
    }

    .team-banner-img {
        object-position: center 30%;
    }

    .team-banner-label {
        font-size: 2.2em;
        bottom: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        text-align: center;
    }

    .team-banner-label::after {
        margin: 8px auto 0;
    }

    /* Board prend tout l'espace restant */
    .team-board {
        width: 100%;
        padding-bottom: 60px;
    }

    /* Tableau plus compact */
    .team-board-row {
        grid-template-columns: 1fr auto auto;
        gap: 10px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .team-board-row.head {
        padding: 10px 14px;
        font-size: 12px;
        display: grid;
        grid-template-columns: 1fr auto auto;
    }

    .team-board-row.head>* {
        display: block;
    }

    /* Player cell */
    .team-player-cell {
        gap: 10px;
    }

    .summoner-icon {
        width: 36px;
        height: 36px;
    }

    .team-player-name {
        font-size: 14px;
    }

    /* Rank numéro */
    .team-rank-num {
        font-size: 13px;
        min-width: 24px;
        text-align: center;
    }

    /* Elo plus compact */
    .team-board-row .elo-cell {
        flex-direction: row;
        gap: 6px;
    }

    /* Points à droite */
    .team-board-row> :nth-child(3) {
        font-size: 15px;
        min-width: 40px;
        text-align: right;
    }

    /* Footer en bas à droite */
    .team-board-footer {
        position: absolute;
        right: 14px;
        bottom: 12px;
    }

    .team-footer-line {
        font-size: 20px;
    }

    .team-footer-line.muted {
        font-size: 12px;
    }

    /* Rank badge */
    .team-rank-badge {
        width: 56px;
        height: 56px;
        font-size: 1.9em;
        padding: 0 0 0 9px;
    }

    /* Ajuster les rows container */
    .team-board-rows {
        padding-bottom: 54px;
        max-height: none;
    }
}

/* Très petits écrans (< 500px) */
@media (max-width: 500px) {
    .teams-grid {
        gap: 20px;
    }

    .team-banner {
        height: 120px;
    }

    .team-banner-label {
        font-size: 1.8em;
        bottom: 8px;
    }

    .team-banner-label::after {
        width: 32px;
        height: 3px;
        margin-top: 6px;
    }

    .team-board-row {
        grid-template-columns: 1fr auto auto;
        padding: 8px 12px;
        font-size: 13px;
        gap: 8px;
    }

    .team-board-row.head {
        padding: 8px 12px;
        font-size: 11px;
    }

    .team-player-cell {
        gap: 8px;
    }

    .summoner-icon {
        width: 32px;
        height: 32px;
    }

    .team-player-name {
        font-size: 13px;
    }

    .team-rank-num {
        font-size: 12px;
        min-width: 20px;
    }

    .team-board-row> :nth-child(3) {
        font-size: 14px;
        min-width: 35px;
    }

    .team-board-footer {
        right: 12px;
        bottom: 10px;
        font-size: 13px;
    }

    .team-footer-line.muted {
        font-size: 11px;
    }

    .team-rank-badge {
        width: 50px;
        height: 50px;
        font-size: 1.7em;
        padding: 0 0 0 8px;
    }
}

/* =========================
   RULES v2 — plus visuel
   ========================= */

.rules2 {
    padding: 18px 0 30px;
}

.rules2-hero {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: radial-gradient(120% 120% at 50% 0%, rgba(216, 180, 92, .10), rgba(0, 0, 0, .18));
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    overflow: hidden;
    position: relative;
}

.rules2-hero::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(60% 60% at 50% 0%, rgba(216, 180, 92, .18), rgba(0, 0, 0, 0));
    pointer-events: none;
    opacity: .65;
}

.rules2-hero-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.rules2-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .94);
}

.rules2-dates {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
}

.rules2-sep {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 12px 0 12px;
}

.rules2-sep span {
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(216, 180, 92, .65), rgba(0, 0, 0, 0));
}

.rules2-sep b {
    font-size: 4em;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(216, 180, 92, .95);
    font-family: 'Eger', 'Corbel', sans-serif;
}

.rules2-block {
    margin-top: 16px;
}

.rules2-block-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.rules2-block-title span {
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(216, 180, 92, .55), rgba(0, 0, 0, 0));
}

.rules2-block-title b {
    font-size: 15px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 900;
    color: rgba(216, 180, 92, .98);
}

/* ===== Captain Cards (style portrait) ===== */

.rules2-cap-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cap-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .16);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
    aspect-ratio: 10 / 16;
}

.cap-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* vrai style “affiche” */
    object-position: center top;
    /* évite de couper la tête */
    filter: saturate(1.06) contrast(1.05);
    transform: scale(1.02);
}

.cap-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 50% 0%, rgba(216, 180, 92, .10), rgba(0, 0, 0, 0) 55%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55) 72%, rgba(0, 0, 0, .88) 100%);
    pointer-events: none;
}

.cap-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 16px;
    z-index: 2;
}

.cap-title {
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-size: 16px;
    color: rgba(255, 255, 255, .95);
    text-shadow: 0 6px 24px rgba(0, 0, 0, .55);
}

.cap-underline {
    width: 46px;
    height: 3px;
    border-radius: 999px;
    margin-top: 10px;
    background: rgba(216, 180, 92, .95);
    box-shadow: 0 0 0 1px rgba(216, 180, 92, .25);
}

/* Hover (optionnel mais ça “vit” direct) */
.cap-card:hover .cap-img {
    transform: scale(1.06);
    transition: transform .25s ease;
}

.cap-card .cap-img {
    transition: transform .25s ease;
}

/* Responsive */
@media (max-width: 1100px) {
    .rules2-cap-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .rules2-cap-grid {
        grid-template-columns: 1fr;
    }

    .cap-card {
        aspect-ratio: 12 / 16;
    }
}

.stats-card-title {
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: 3em;
    font-family: 'Eger', 'Corbel', sans-serif;
    color: rgba(245, 214, 138, .95);
    white-space: nowrap;
}

.stats-top-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.stats-avatar {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    border: 2px solid rgba(245, 214, 138, .55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    background: rgba(255, 255, 255, .06);
    object-fit: cover;
}

.stats-meta {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.stats-list {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
}

.stats-meta2 {
    min-width: 0;
    flex: 1 1 auto;
}

.stats-list2 {
    padding: 8px 0;
}

.stats-name {
    font-weight: 950;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-subline {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(232, 238, 255, .70);
}

.stats-bignum {
    font-weight: 1000;
    font-variant-numeric: tabular-nums;
    font-size: 26px;
    color: #fff;
    text-shadow: 0 10px 25px rgba(0, 0, 0, .55);
}

.stats-list.compact .stats-row {
    padding: 10px 16px;
}

.stats-row {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 12px;
    align-items: center;
}

.stats-rank {
    font-weight: 1000;
    color: rgba(232, 238, 255, .80);
    font-variant-numeric: tabular-nums;
}

.stats-right {
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    font-size: 1.8em;
    margin: 0;
    color: #e3c18c;
}

.stats-right small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(232, 238, 255, .65);
}

/* ===== STATS v3 (KDA bandeau + LE TOP en 4 colonnes) ===== */
.stats2 {
    padding: 18px;
    display: grid;
    gap: 18px;
}

/* KDA full width */
.stats-card--kda {
    grid-column: 1 / -1;
}

/* Séparateur "LE TOP" */
.stats2-sep {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 6px 0 0;
}

.stats-card-head-KDA {
    display: grid;
    grid-template-columns: 2em auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 6px 0 0;
}

.stats-card-head {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats2-sep span,
.stats-card-head span,
.stats-card-head-KDA span {
    height: 2px;
    background-color: #f5d68af2;
}

b {
    font-weight: 100;
}

.stats2-sep b {
    font-family: 'Eger', 'Corbel', sans-serif;
    font-size: 4em;
    letter-spacing: .18em;
    color: #f5d68af2;
}

/* Colonnes */
.stats2-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}

@media (max-width: 1100px) {
    .stats2-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .stats2-cols {
        grid-template-columns: 1fr;
    }
}

/* Option : un peu plus aéré pour les colonnes */
.stats-card--col .stats-card-title {
    font-size: 2.4em;
}

.meta10 {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.meta10-item {
    text-align: center;
    width: 78px;
}

.meta10-icon {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    border: 1px solid rgba(245, 214, 138, .35);
}

.meta10-name {
    font-weight: 800;
    margin-top: 6px;
}

.meta10-games {
    color: rgba(255, 255, 255, .75);
    font-size: .9em;
}

.pool-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.pool-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(245, 214, 138, .25);
}

/* =========================
   TEAMS W/L (style image1)
========================= */

.teams-wl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
    align-items: start;
    width: 100%;
}

@media (max-width: 1200px) {
    .teams-wl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .teams-wl {
        grid-template-columns: 1fr;
    }
}

.teams-wl-card {
    --team: #d6b25e;
    text-align: center;
    padding: 18px 8px 14px;
}

.teams-wl-top {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
}

.teams-wl-rank {
    font-weight: 900;
    font-size: 14px;
    opacity: .9;
}

.teams-wl-record {
    font-weight: 900;
    font-size: 30px;
    letter-spacing: .5px;
    color: var(--team);
    text-shadow: 0 0 14px rgba(0, 0, 0, .65);
}

.teams-wl-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    background: radial-gradient(circle at 100%, var(--team), var(--team)), var(--team);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(0, 0, 0, 0.15), inset 0 0 0.75rem var(--team), 0 0 0.75rem var(--team);
    border: 1px solid var(--team);
}

.teams-wl-winrate {
    margin-top: 12px;
    font-weight: 900;
    font-size: 22px;
    color: var(--team);
}

.teams-wl-foot {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 18px;
    font-weight: 700;
    font-size: 12px;
    opacity: .85;
}

.teams-wl-record .wl-sep {
    color: rgba(255, 255, 255, .75);
    margin: 0 2px;
}

/* Losses = blanc */
.teams-wl-record .wl-losses {
    color: #ffffff;
}

/* =========================
   STATS GLOBALES (full width, style capture)
========================= */
.global-stats {
    padding: 8px 12px 18px;
}

.global-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    justify-content: center;
    /* 🔑 rapproche les blocs */
    column-gap: 48px;
    /* ajuste ici (32–56px selon goût) */
    row-gap: 0;
    align-items: end;
    text-align: center;
}

.global-stat-value {
    font-weight: 900;
    font-size: 48px;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .95);
    line-height: 1;
}

.global-stat-label {
    margin-top: 8px;
    letter-spacing: .22em;
    text-transform: uppercase;
    font-weight: 900;
    color: rgba(245, 214, 138, .9);
    font-size: 14px;
}

/* temps de jeu plus long */
.global-stat--wide .global-stat-value {
    font-size: 42px;
    white-space: nowrap;
}

/* responsive */
@media (max-width: 1100px) {
    .global-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 22px;
    }

    .global-stat--wide .global-stat-value {
        white-space: normal;
        font-size: 36px;
    }
}

/* ===== RESPONSIVE PAGE STATS ===== */

/* Tablette (< 1100px) */
@media (max-width: 1100px) {

    /* 2 colonnes pour "LE TOP" */
    .stats2-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px;
    }

    .stats-card-title {
        font-size: 4em;
    }
}

/* Mobile (< 900px) */
@media (max-width: 900px) {
    .stats2 {
        padding: 12px;
        gap: 16px;
    }

    /* Cards */
    .stats-card {
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.3);
    }

    .stats-card-head {
        padding: 12px 14px 8px;
    }

    .stats-card-title {
        text-align: center;
    }

    /* KDA en colonne sur mobile */
    .stats-list--kda {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .stats-list--kda .stats-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stats-list--kda .stats-avatar {
        width: 50px;
        height: 50px;
    }

    .stats-list--kda .stats-meta {
        flex: 1;
        min-width: 0;
    }

    .stats-list--kda .stats-name {
        font-size: 15px;
    }

    .stats-list--kda .stats-subline {
        font-size: 11px;
    }

    .stats-list--kda .stats-bignum {
        font-size: 22px;
    }

    /* Colonnes en 1 colonne */
    .stats2-cols {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Stats rows plus compacts */
    .stats-list2 .stats-row {
        padding: 10px 12px;
        gap: 10px;
    }

    .stats-rank {
        font-size: 13px;
    }

    .stats-meta .stats-name {
        font-size: 14px;
    }

    .stats-right {
        font-size: 1.4em;
    }

    .stats-right small {
        font-size: 11px;
    }

    /* Stats top */
    .stats-top {
        padding: 14px 12px;
    }

    .stats-top-row {
        gap: 10px;
    }

    .stats-avatar {
        width: 50px;
        height: 50px;
    }

    .stats-bignum {
        font-size: 20px;
    }

    /* Teams W/L en colonne */
    .teams-wl {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px;
    }

    .teams-wl-card {
        padding: 14px 8px 12px;
    }

    .teams-wl-rank {
        font-size: 13px;
    }

    .teams-wl-record {
        font-size: 24px;
    }

    .teams-wl-badge {
        padding: 5px 14px;
        font-size: 13px;
    }

    .teams-wl-winrate {
        font-size: 18px;
    }

    .teams-wl-foot {
        gap: 14px;
        font-size: 11px;
    }

    /* Meta du challenge */
    .meta10 {
        gap: 10px;
    }

    .meta10-item {
        width: 70px;
    }

    .meta10-icon {
        width: 48px;
        height: 48px;
    }

    .meta10-name {
        font-size: 12px;
    }

    .meta10-games {
        font-size: 11px;
    }

    /* Champ pool */
    .pool-grid {
        gap: 8px;
    }

    .pool-icon {
        width: 40px;
        height: 40px;
    }

    /* Stats globales */
    .global-stats {
        padding: 6px 10px 16px;
    }

    .global-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 24px;
        row-gap: 20px;
    }

    .global-stat-value {
        font-size: 36px;
    }

    .global-stat-label {
        font-size: 12px;
        letter-spacing: 0.18em;
    }

    .global-stat--wide .global-stat-value {
        font-size: 32px;
    }
}

/* Très petits écrans (< 500px) */
@media (max-width: 500px) {
    .stats2 {
        padding: 10px;
        gap: 14px;
    }

    .stats-card-title {
        font-size: 3em;
    }

    .stats-card-head {
        padding: 10px 12px 6px;
    }

    /* KDA encore plus compact */
    .stats-list--kda .stats-row {
        padding: 10px;
        gap: 10px;
    }

    .stats-list--kda .stats-avatar {
        width: 44px;
        height: 44px;
    }

    .stats-list--kda .stats-name {
        font-size: 14px;
    }

    .stats-list--kda .stats-bignum {
        font-size: 20px;
    }

    /* Stats rows */
    .stats-list2 .stats-row {
        padding: 8px 10px;
        gap: 8px;
    }

    .stats-rank {
        font-size: 12px;
    }

    .stats-meta .stats-name {
        font-size: 13px;
    }

    .stats-right {
        font-size: 1.2em;
    }

    /* Teams W/L en 1 colonne */
    .teams-wl {
        grid-template-columns: 1fr !important;
    }

    .teams-wl-record {
        font-size: 22px;
    }

    .teams-wl-winrate {
        font-size: 16px;
    }

    /* Meta */
    .meta10-item {
        width: 65px;
    }

    .meta10-icon {
        width: 42px;
        height: 42px;
    }

    .meta10-name {
        font-size: 11px;
    }

    /* Pool */
    .pool-icon {
        width: 36px;
        height: 36px;
    }

    /* Stats globales */
    .global-stats-grid {
        column-gap: 16px;
        row-gap: 16px;
    }

    .global-stat-value {
        font-size: 32px;
    }

    .global-stat-label {
        font-size: 11px;
    }

    .global-stat--wide .global-stat-value {
        font-size: 28px;
    }
}

/* =========================
   RULES – INTRO VIDEO
========================= */

.rules-video {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 60px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 255, 255, .08);
}

.rules-video-el {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}