/* ==========================================================================
   Feuille de style unique du site. Theme sombre, mobile d'abord.
   ========================================================================== */

:root {
    --bg: #0b0e13;
    --surface: #141922;
    --surface-2: #1b2029;
    --surface-3: #222836;
    --line: #2a3140;
    --line-soft: #1f2634;

    --text: #e9edf3;
    --text-muted: #94a1b4;
    --text-dim: #6c7a8d;

    /* Couleurs du logo du club. Les valeurs derivees sont recalculees par PHP
       dans le gabarit, celles-ci servent de repli. */
    --accent: #18e618;
    --accent-ink: #0a0d12;
    --accent-dark: #0c730c;
    --accent-soft: rgba(24, 230, 24, .13);
    --accent-soft-strong: rgba(24, 230, 24, .2);
    --accent-line: rgba(24, 230, 24, .5);
    --accent-glow: rgba(24, 230, 24, .18);

    --accent-2: #fd7e04;
    --accent-2-ink: #0a0d12;
    --accent-2-soft: rgba(253, 126, 4, .16);
    --accent-2-line: rgba(253, 126, 4, .45);
    --accent-2-glow: rgba(253, 126, 4, .2);

    --win: #18e618;
    --win-soft: rgba(24, 230, 24, .18);
    --loss: #ff4d4d;
    --loss-soft: rgba(255, 77, 77, .18);
    --draw: #ffb020;
    --draw-soft: rgba(255, 176, 32, .2);

    --radius: 14px;
    --radius-sm: 9px;
    --gutter: 16px;
    --maxw: 1140px;

    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Halo reprenant le vert et l'orange du logo, pour eviter un aplat trop plat. */
body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 460px;
    background:
        radial-gradient(900px 400px at 12% -140px, var(--accent-glow), transparent 70%),
        radial-gradient(800px 380px at 88% -160px, var(--accent-2-glow), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -.02em;
}

p {
    margin: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Utilitaires
   -------------------------------------------------------------------------- */

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.main {
    position: relative;
    z-index: 1;
    padding-top: 28px;
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--accent);
    color: var(--accent-ink);
    padding: 10px 16px;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip:focus {
    left: 0;
}

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

.small {
    font-size: .8rem;
}

.strong {
    font-weight: 700;
}

.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .45;
    vertical-align: middle;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .68rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.link {
    color: var(--text);
    border-bottom: 1px solid var(--accent-line);
    padding-bottom: 1px;
    font-weight: 600;
    font-size: .9rem;
    transition: color .15s ease, border-color .15s ease;
}

.link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.hint {
    color: var(--text-dim);
    font-size: .82rem;
    margin-top: 14px;
}

.breadcrumb {
    font-size: .85rem;
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

:where(a, button, [tabindex]):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   En-tete
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 14, 19, .9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    min-width: 0;
}

.brand__logo {
    width: 46px;
    height: 46px;
    object-fit: cover;
    flex: none;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 0 0 1px var(--line);
}

.brand__mark {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent);
    background: linear-gradient(140deg, var(--accent), var(--accent-dark));
    color: var(--accent-ink);
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .02em;
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand__name {
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand__season {
    font-size: .72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 10px;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav__link {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color .15s ease, background .15s ease;
}

.nav__link:hover {
    color: var(--text);
    background: var(--surface);
}

.nav__link.is-active {
    color: var(--accent-ink);
    background: var(--accent);
}

@media (min-width: 720px) {
    .site-header__inner {
        flex-wrap: nowrap;
        min-height: 72px;
    }

    .nav {
        margin: 0;
        padding: 0;
        overflow: visible;
    }
}

/* --------------------------------------------------------------------------
   Hero et statistiques
   -------------------------------------------------------------------------- */

.intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero__title {
    font-size: clamp(1.9rem, 6vw, 3rem);
    font-weight: 800;
}

/* Le visuel du club sert de fond, assombri pour garder le texte lisible. */
.hero--banner {
    position: relative;
    padding: 30px 22px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background-color: #000;
    background-image:
        linear-gradient(180deg, rgba(8, 10, 14, .78) 0%, rgba(8, 10, 14, .93) 70%),
        var(--banner);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero--banner .hero__title {
    text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}

@media (min-width: 720px) {
    .hero--banner {
        padding: 44px 32px;
        min-height: 210px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-image:
            linear-gradient(100deg, rgba(8, 10, 14, .97) 0%, rgba(8, 10, 14, .9) 40%, rgba(8, 10, 14, .5) 72%, rgba(8, 10, 14, .3) 100%),
            var(--banner);
        background-position: center right;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.stats--compact {
    margin-top: 0;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.stat__value {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.stat__of {
    font-size: .95rem;
    color: var(--text-dim);
    font-weight: 600;
}

.stat__label {
    display: block;
    margin-top: 2px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
    font-weight: 600;
}

.stat--win .stat__value {
    color: var(--win);
}

.stat--loss .stat__value {
    color: var(--loss);
}

/* --------------------------------------------------------------------------
   Titres de page et de section
   -------------------------------------------------------------------------- */

.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.page-title {
    font-size: clamp(1.5rem, 4.5vw, 2.1rem);
    font-weight: 800;
}

.page-sub {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: .92rem;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section__title {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-soft);
}

.section__title--spaced {
    margin-top: 28px;
}

.columns {
    display: grid;
    gap: 40px;
}

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

/* --------------------------------------------------------------------------
   Selecteur d'equipe
   -------------------------------------------------------------------------- */

.switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}

.switcher__group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.switcher__label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: var(--text-dim);
    white-space: nowrap;
}

.switcher__items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: .85rem;
    color: var(--text-muted);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.pill:hover {
    color: var(--text);
    border-color: var(--accent);
}

.pill.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   Cartes d'equipe
   -------------------------------------------------------------------------- */

.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.card__title {
    font-size: 1.15rem;
    font-weight: 800;
}

.card__sub {
    color: var(--text-dim);
    font-size: .82rem;
    margin-top: 2px;
}

.card__record {
    font-size: .82rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.card__fixtures {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card__legend {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-dim);
    font-weight: 700;
    margin-top: 6px;
}

.card__foot {
    display: flex;
    gap: 18px;
    margin-top: auto;
    padding-top: 6px;
}

/* --------------------------------------------------------------------------
   Lignes de calendrier
   -------------------------------------------------------------------------- */

.fixtures {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fixture {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
        "meta meta meta"
        "home score away";
    align-items: center;
    gap: 6px 10px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, background .15s ease;
}

.fixture--link:hover {
    border-color: var(--accent);
    background: var(--surface-2);
}

.fixture__meta {
    grid-area: meta;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    color: var(--text-dim);
    font-weight: 600;
}

.fixture__week {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--accent-2-soft);
    color: var(--accent-2);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fixture__context {
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent-2);
}

.fixture__team {
    grid-area: home;
    font-size: .92rem;
    color: var(--text-muted);
    min-width: 0;
    overflow-wrap: anywhere;
}

.fixture__team--away {
    grid-area: away;
    text-align: right;
}

.fixture__team.is-club {
    color: var(--text);
    font-weight: 700;
}

.fixture__score {
    grid-area: score;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 1rem;
    padding: 3px 10px;
    border-radius: 7px;
    background: var(--surface-3);
    white-space: nowrap;
}

.fixture__score--pending {
    color: var(--text-dim);
    font-weight: 600;
    font-size: .8rem;
}

.fixture--win .fixture__score {
    background: var(--win-soft);
    color: var(--win);
}

.fixture--loss .fixture__score {
    background: var(--loss-soft);
    color: var(--loss);
}

.fixture--draw .fixture__score {
    background: var(--draw-soft);
    color: var(--draw);
}

.fixture--bye {
    grid-template-columns: auto 1fr;
    grid-template-areas: "meta bye";
    color: var(--text-dim);
}

.fixture__bye {
    grid-area: bye;
    font-size: .85rem;
    font-style: italic;
}

@media (min-width: 720px) {
    .fixtures--full .fixture {
        grid-template-columns: auto 1fr auto 1fr;
        grid-template-areas: "meta home score away";
        gap: 14px;
        padding: 11px 16px;
    }

    .fixtures--full .fixture__meta {
        min-width: 116px;
    }

    .fixtures--full .fixture__team {
        text-align: right;
    }

    .fixtures--full .fixture__team--away {
        text-align: left;
    }

    /* Le nombre de colonnes change, la journee de repos doit suivre. */
    .fixtures--full .fixture--bye {
        grid-template-columns: auto 1fr;
        grid-template-areas: "meta bye";
    }
}

/* --------------------------------------------------------------------------
   Tableaux
   -------------------------------------------------------------------------- */

.table-wrap {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
}

.table {
    font-size: .9rem;
}

.table thead th {
    padding: 11px 14px;
    text-align: left;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
    font-weight: 700;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.table thead th.num {
    text-align: right;
}

.table tbody td,
.table tbody th {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-soft);
    font-weight: 400;
    text-align: left;
    vertical-align: middle;
}

.table tbody th {
    font-weight: 600;
}

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

.table tbody tr:hover {
    background: var(--surface-2);
}

.table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.table--ranking tr.is-team {
    background: var(--accent-soft);
}

.table--ranking tr.is-team:hover {
    background: var(--accent-soft-strong);
}

.table--ranking tr.is-team .team-cell {
    font-weight: 800;
    color: var(--text);
}

.table--ranking tr.is-club .team-cell {
    color: var(--text);
    font-weight: 700;
}

.table--ranking tr.is-club .team-cell::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 7px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
}

/* Nom renvoyant vers la fiche d'un membre du club. */
.player-link {
    border-bottom: 1px solid var(--line);
    transition: color .15s ease, border-color .15s ease;
}

.player-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.player-cell a {
    font-weight: 700;
}

.player-cell a:hover {
    color: var(--accent);
}

.player-cell__id {
    display: block;
    font-size: .72rem;
    color: var(--text-dim);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.opponent-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.win-text {
    color: var(--win);
    font-weight: 700;
}

.loss-text {
    color: var(--loss);
    font-weight: 700;
}

.row-link {
    cursor: pointer;
}

.table--results tr.is-win td:first-child a:hover,
.table--results tr.is-loss td:first-child a:hover {
    color: var(--accent);
}

/* Sous 720px les tableaux deviennent des blocs empiles. */
@media (max-width: 719px) {
    .table-wrap {
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td,
    .table th {
        display: block;
        width: 100%;
    }

    .table tbody tr {
        background: var(--surface);
        border: 1px solid var(--line-soft);
        border-radius: var(--radius-sm);
        margin-bottom: 8px;
        padding: 12px 14px;
    }

    .table tbody tr:hover {
        background: var(--surface);
    }

    .table tbody td,
    .table tbody th {
        border: 0;
        padding: 3px 0;
        text-align: left;
    }

    .table tbody th {
        font-size: 1rem;
        padding-bottom: 8px;
    }

    .table tbody td[data-label] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .table tbody td[data-label]::before {
        content: attr(data-label);
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .09em;
        color: var(--text-dim);
        font-weight: 700;
    }

    .table tbody td:empty {
        display: none;
    }

    .table--ranking tr.is-team {
        border-color: var(--accent);
    }

    .player-cell__id {
        display: inline;
        margin-left: 8px;
    }
}

@media (max-width: 519px) {
    .col-wide {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   Effectif adverse
   -------------------------------------------------------------------------- */

.th-short {
    display: none;
}

/* Points gagnes ou perdus sur un match. */
.delta {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.delta--up {
    color: var(--win);
}

.delta--down {
    color: var(--loss);
}

/* Match deja chiffre mais pas encore integre au classement. */
.delta--pending {
    opacity: .5;
    font-style: italic;
}

/* Les points mixtes ne sont pas un classement en lettres : la teinte les en distingue. */
.chip--points {
    border-color: var(--accent-2-line);
    background: var(--accent-2-soft);
}

.chip--points strong {
    color: var(--accent-2);
}

.chip__note {
    color: var(--text-dim);
    font-weight: 400;
    font-size: .74rem;
}

.pending-note {
    background: var(--surface);
    border-left: 3px solid var(--accent-2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 16px;
    margin-top: 18px;
    font-size: .88rem;
    color: var(--text-muted);
}

.pending-note strong {
    color: var(--text);
}

/* Quatre colonnes courtes tiennent sur un telephone en portrait, et le tableau
   garde alors tout son interet : comparer les joueurs d'un coup d'oeil. Cette
   table echappe donc a l'empilement applique aux autres. */
@media (max-width: 719px) {
    .table-wrap--keep {
        background: var(--surface);
        border: 1px solid var(--line-soft);
        border-radius: var(--radius);
        overflow: hidden;
    }

    .table--lineup {
        display: table;
        width: 100%;
        font-size: .82rem;
    }

    .table--lineup thead {
        display: table-header-group;
    }

    .table--lineup tbody {
        display: table-row-group;
    }

    .table--lineup tr,
    .table--lineup tbody tr {
        display: table-row;
        background: transparent;
        border: 0;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }

    .table--lineup thead th {
        display: table-cell;
        padding: 9px 6px;
    }

    .table--lineup tbody td,
    .table--lineup tbody th {
        display: table-cell;
        border-bottom: 1px solid var(--line-soft);
        padding: 9px 6px;
        font-size: .82rem;
    }

    .table--lineup tbody td[data-label]::before {
        content: none;
    }

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

    /* Les intitules longs cedent la place a leur abreviation. */
    .table--lineup .th-long {
        display: none;
    }

    .table--lineup .th-short {
        display: inline;
    }

    /* Les colonnes chiffrees restent etroites pour laisser la place aux noms. */
    .table--lineup .num {
        width: 1%;
        white-space: nowrap;
    }

    .table--lineup tbody th {
        font-weight: 600;
        overflow-wrap: anywhere;
    }
}

/* --------------------------------------------------------------------------
   Pastilles, badges, etiquettes
   -------------------------------------------------------------------------- */

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--surface-3);
    color: var(--text);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .02em;
}

/* Une joueuse possede deux classements : celui des dames est distingue par sa teinte. */
.badge--women {
    background: var(--accent-2-soft);
    color: var(--accent-2);
}

.ranks {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ranks__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ranks__label {
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
    font-weight: 600;
}

.chip--women {
    border-color: var(--accent-2-line);
}

.chip--women strong {
    color: var(--accent-2);
}

.badge--soft {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-muted);
    font-weight: 600;
}

.badge--large {
    font-size: 1rem;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--accent-ink);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: .78rem;
    color: var(--text-muted);
}

.chip strong {
    color: var(--text);
}

.chip--rank {
    flex: none;
    font-size: .95rem;
    padding: 4px 12px;
}

.chip--rank strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-2);
}

.tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tag--win {
    background: var(--win-soft);
    color: var(--win);
}

.tag--loss {
    background: var(--loss-soft);
    color: var(--loss);
}

.tag--wo {
    background: var(--draw-soft);
    color: var(--draw);
    margin-left: 6px;
}

.standing-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    transition: border-color .15s ease;
}

.standing-box:hover {
    border-color: var(--accent);
}

.standing-box__pos {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-2);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.standing-box__pos sup {
    font-size: .9rem;
    top: -.7em;
}

.standing-box__meta {
    display: flex;
    flex-direction: column;
    font-size: .78rem;
    color: var(--text-dim);
}

.standing-box__meta strong {
    color: var(--text);
    font-size: .95rem;
}

/* --------------------------------------------------------------------------
   Feuille de match
   -------------------------------------------------------------------------- */

.scoreboard {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
}

.scoreboard__meta {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
    font-weight: 600;
}

.scoreboard__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.scoreboard__side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
}

.scoreboard__side--away {
    align-items: flex-end;
    text-align: right;
}

.scoreboard__team {
    font-size: clamp(.95rem, 3.2vw, 1.35rem);
    font-weight: 700;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.scoreboard__side.is-club .scoreboard__team {
    color: var(--text);
    font-weight: 800;
}

.scoreboard__score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1.8rem, 8vw, 3rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    color: var(--text-dim);
    line-height: 1;
}

.scoreboard__score .is-winner {
    color: var(--accent);
}

.scoreboard__dash {
    color: var(--line);
    font-weight: 400;
}

.scoreboard__note {
    margin-top: 14px;
    font-size: .78rem;
    color: var(--draw);
}

/* Rencontre a venir : le score cede la place a un simple separateur. */
.scoreboard__score--pending {
    font-size: clamp(1rem, 4vw, 1.4rem);
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.scoreboard__where {
    margin-top: 16px;
}

.tag--where {
    background: var(--accent-2-soft);
    color: var(--accent-2);
    font-size: .74rem;
    padding: 4px 12px;
}

.venue {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.venue__name {
    font-weight: 700;
    margin-top: 6px;
}

.venue__address,
.venue__phone {
    color: var(--text-muted);
    font-size: .9rem;
}

.venue__phone a:hover {
    color: var(--accent);
}

.venue__map {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 10px;
    border-radius: 5px;
    background: var(--accent-2-soft);
    border: 1px solid var(--accent-2-line);
    color: var(--accent-2);
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s ease;
}

.venue__map:hover {
    background: var(--accent-2);
    color: var(--accent-2-ink);
}

.venue__comment {
    margin-top: 8px;
    font-size: .84rem;
    color: var(--draw);
}

.lineups {
    display: grid;
    gap: 14px;
}

@media (min-width: 760px) {
    .lineups {
        grid-template-columns: 1fr 1fr;
    }
}

.lineup {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.lineup--club {
    border-color: var(--accent-line);
}

.lineup__title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.lineup__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lineup__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .9rem;
}

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

.lineup__pos {
    flex: none;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--surface-3);
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-dim);
}

.lineup__name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.lineup__wins {
    flex: none;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.games {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    grid-template-areas:
        "pos home sets away"
        "detail detail detail detail";
    align-items: center;
    gap: 6px 10px;
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
}

.game__pos {
    grid-area: pos;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--surface-3);
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-dim);
}

.game__player {
    grid-area: home;
    font-size: .88rem;
    color: var(--text-muted);
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
}

.game__player--away {
    grid-area: away;
    text-align: left;
}

.game__player.is-winner {
    color: var(--text);
    font-weight: 700;
}

/* Un double n'est pas nominatif : la mention remplace les noms des deux cotes. */
.game--double .game__player,
.game--double .game__player.is-winner {
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent-2);
}

.game__sets {
    grid-area: sets;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-dim);
}

.game__sets .is-winner {
    color: var(--accent);
}

.game__dash {
    color: var(--line);
}

.game__detail {
    grid-area: detail;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    padding-top: 4px;
    border-top: 1px solid var(--line-soft);
    margin-top: 2px;
}

.set {
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--text-dim);
}

.set--won {
    color: var(--win);
}

.comment {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 16px;
    font-size: .9rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Fiche joueur
   -------------------------------------------------------------------------- */

.profile {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.profile__mark {
    flex: none;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--accent);
    background: linear-gradient(140deg, var(--accent), var(--accent-dark));
    color: var(--accent-ink);
    font-size: 1.4rem;
    font-weight: 800;
}

.profile__body {
    min-width: 0;
}

.profile__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Messages
   -------------------------------------------------------------------------- */

.notice {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-muted);
}

.notice__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text);
    font-size: .9rem;
}

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

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line-soft);
    padding: 24px 0 40px;
    color: var(--text-dim);
    font-size: .82rem;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer__club {
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Preferences d'affichage
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }

    .site-header,
    .site-footer,
    .switcher,
    .hint,
    .skip {
        display: none;
    }
}
