/* The Abroad Cup 2026 — tableaux statistiques */
.stats-page {
    --stats-yellow: #f2c94c;
    --stats-coral: #ff795f;
    --stats-green: #70c5a7;
    --stats-ink: #07110e;
}

.stats-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 72svh;
    padding: 150px 0 75px;
    overflow: hidden;
    isolation: isolate;
    color: #fffdf5;
    background: url("../img/abroadcup/2026/results/chart-hills-1.jpg") center 55% / cover no-repeat;
}

.stats-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 14, 11, .93) 0%, rgba(3, 14, 11, .65) 48%, rgba(3, 14, 11, .24) 100%),
        linear-gradient(0deg, rgba(3, 14, 11, .97) 0%, transparent 58%);
}

.stats-hero__content {
    position: relative;
    z-index: 1;
}

.stats-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(67px, 10vw, 145px);
    font-weight: 900;
    letter-spacing: -.075em;
    line-height: .8;
}

.stats-hero h1 span {
    color: var(--stats-yellow);
}

.stats-hero__content > p:not(.trip-kicker) {
    max-width: 690px;
    margin: 34px 0 31px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.5;
}

.stats-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.stats-hero__meta span {
    padding: 9px 14px;
    color: rgba(255, 255, 255, .83);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
}

.stats-nav {
    background: rgba(6, 17, 14, .93);
    border-color: rgba(255, 255, 255, .1);
}

.stats-nav__inner {
    display: flex;
    gap: 7px;
    align-items: center;
    min-height: 58px;
    overflow-x: auto;
    scrollbar-width: none;
}

.stats-nav__inner::-webkit-scrollbar {
    display: none;
}

.stats-nav a {
    min-width: 0;
    padding: 9px 16px;
    color: rgba(255, 255, 255, .65);
    border: 1px solid transparent;
    border-radius: 999px;
}

.stats-nav a:hover,
.stats-nav a:focus,
.stats-nav a.is-active {
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
}

.stats-intro {
    padding-bottom: clamp(80px, 9vw, 125px);
}

.stats-intro__heading,
.stats-section__heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .6fr);
    gap: clamp(40px, 7vw, 95px);
    align-items: end;
}

.stats-intro__heading h2,
.stats-section__heading h2 {
    margin: 0;
    color: var(--trip-text);
    font-size: clamp(48px, 6.6vw, 92px);
    font-weight: 900;
    letter-spacing: -.065em;
    line-height: .88;
}

.stats-intro__heading > p,
.stats-section__heading > p {
    margin: 0 0 4px;
    color: var(--trip-muted);
    font-size: 17px;
    line-height: 1.7;
}

.stats-player-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: clamp(55px, 7vw, 85px);
}

.stats-player-strip article {
    display: flex;
    gap: 17px;
    align-items: center;
    padding: 20px;
    background: var(--trip-surface-solid);
    border: 1px solid var(--trip-line);
    border-radius: 18px;
}

.stats-player-strip article > span {
    display: grid;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    place-items: center;
    color: var(--stats-ink);
    font-size: 20px;
    font-weight: 900;
    background: var(--stats-yellow);
    border-radius: 50%;
}

.stats-player-strip strong,
.stats-player-strip small {
    display: block;
}

.stats-player-strip strong {
    color: var(--trip-text);
    font-size: 18px;
}

.stats-player-strip small {
    margin-top: 4px;
    color: var(--trip-muted);
    font-size: 11px;
    line-height: 1.35;
}

.stats-section {
    padding: clamp(85px, 10vw, 145px) 0;
    border-top: 1px solid var(--trip-line);
}

.stats-section--soft {
    background: var(--trip-bg-soft);
}

.stats-section--dark {
    color: #f7f4ea;
    background:
        radial-gradient(circle at 88% 12%, rgba(112, 197, 167, .14), transparent 33%),
        #07100e;
}

.stats-section--dark .stats-section__heading h2,
.stats-section--dark .stats-table-card h3,
.stats-section--dark .stats-table-card th,
.stats-section--dark .stats-table-card td {
    color: #f7f4ea;
}

.stats-section--dark .stats-section__heading > p,
.stats-section--dark .stats-table-card__title > span,
.stats-section--dark .stats-table-card th small,
.stats-section--dark .stats-table-card td small {
    color: rgba(255, 255, 255, .58);
}

.stats-section--dark .stats-table-card {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .12);
}

.stats-section--dark .stats-table-card th,
.stats-section--dark .stats-table-card td,
.stats-section--dark .stats-table-card__title {
    border-color: rgba(255, 255, 255, .11);
}

.stats-table-card {
    margin-top: clamp(50px, 7vw, 88px);
    overflow: hidden;
    background: var(--trip-surface-solid);
    border: 1px solid var(--trip-line);
    border-radius: 28px;
    box-shadow: var(--trip-shadow);
}

.stats-table-card__title {
    display: flex;
    gap: 20px;
    align-items: end;
    justify-content: space-between;
    padding: clamp(25px, 4vw, 42px);
    border-bottom: 1px solid var(--trip-line);
}

.stats-table-card h3 {
    margin: 0;
    color: var(--trip-text);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 850;
    letter-spacing: -.04em;
}

.stats-table-card__title > span {
    color: var(--trip-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stats-table-wrap {
    overflow-x: auto;
}

.stats-table-card table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.stats-table-card th,
.stats-table-card td {
    position: relative;
    padding: 23px clamp(18px, 3vw, 34px);
    color: var(--trip-text);
    text-align: center;
    border-bottom: 1px solid var(--trip-line);
}

.stats-table-card tr:last-child th,
.stats-table-card tr:last-child td {
    border-bottom: 0;
}

.stats-table-card thead th {
    padding-top: 17px;
    padding-bottom: 17px;
    color: var(--trip-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.stats-table-card th:first-child {
    width: 36%;
    text-align: left;
}

.stats-table-card tbody th {
    font-size: 16px;
    font-weight: 800;
}

.stats-table-card th small,
.stats-table-card td small {
    display: block;
    margin-top: 5px;
    color: var(--trip-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.35;
    text-transform: none;
}

.stats-table-card td strong {
    display: inline-block;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1;
}

.stats-table-card td.is-best {
    color: var(--stats-ink);
    background: var(--stats-yellow);
}

.stats-table-card td.is-best::after {
    content: "MEILLEUR";
    position: absolute;
    top: 7px;
    right: 8px;
    color: rgba(7, 17, 14, .55);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
}

.stats-table-card td.is-best small {
    color: rgba(7, 17, 14, .6);
}

.stats-note {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 32px;
    margin-top: 30px;
    padding: 27px 30px;
    color: var(--trip-muted);
    background: var(--trip-surface);
    border: 1px solid var(--trip-line);
    border-radius: 18px;
}

.stats-note strong {
    color: var(--trip-text);
    font-size: 15px;
}

.stats-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

.stats-error {
    padding: 26px;
    color: var(--stats-ink);
    font-weight: 800;
    background: var(--stats-yellow);
    border-radius: 18px;
}

@media (max-width: 991px) {
    .stats-intro__heading,
    .stats-section__heading {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-intro__heading > p,
    .stats-section__heading > p {
        max-width: 670px;
    }

    .stats-player-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .stats-hero {
        min-height: 78svh;
        padding: 125px 0 52px;
        background-position: 58% center;
    }

    .stats-hero::before {
        background: linear-gradient(0deg, rgba(3, 14, 11, .97) 0%, rgba(3, 14, 11, .58) 75%, rgba(3, 14, 11, .24) 100%);
    }

    .stats-hero h1 {
        max-width: 100%;
        font-size: clamp(54px, 15vw, 82px);
    }

    .stats-hero__meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .stats-hero__meta span {
        text-align: center;
    }

    .stats-nav a {
        min-width: auto;
        padding-right: 13px;
        padding-left: 13px;
    }

    .stats-table-card {
        margin-right: -7px;
        margin-left: -7px;
        border-radius: 21px;
    }

    .stats-table-card__title {
        display: block;
        padding: 24px 21px;
    }

    .stats-table-card__title > span {
        display: block;
        margin-top: 7px;
    }

    .stats-table-card table {
        min-width: 650px;
    }

    .stats-table-card th,
    .stats-table-card td {
        padding: 20px 17px;
    }

    .stats-note {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .stats-note {
        padding: 23px;
    }
}
