/* ========================================
   PAGE PUBLIQUE D'UNE COMPÉTITION
======================================== */

.public-competition-page,
.public-competition-page * {
    box-sizing: border-box;
}

.public-competition-page {
    --competition-primary: #a3e635;
    --competition-primary-rgb: 163, 230, 53;
    --competition-secondary: #0f172a;
    --competition-secondary-rgb: 15, 23, 42;
    --competition-banner-image: none;

    width: min(92%, 1280px);
    margin: 26px auto 80px;
    color: #ffffff;
}

/* APERÇU ADMIN */

.competition-admin-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    margin-bottom: 18px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    border-radius: 15px;
    background: rgba(250, 204, 21, 0.08);
}

.competition-admin-preview-icon {
    color: #fde047;
}

.competition-admin-preview>div {
    flex: 1;
}

.competition-admin-preview strong {
    display: block;
}

.competition-admin-preview p {
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 0.86rem;
}

.competition-admin-preview a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--competition-primary);
    font-weight: 800;
    text-decoration: none;
}

/* BANDEAU */

.public-competition-hero {
    position: relative;
    min-height: 205px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background-image:
        linear-gradient(135deg,
            rgba(var(--competition-secondary-rgb), 0.88),
            rgba(2, 6, 23, 0.78)),
        var(--competition-banner-image),
        linear-gradient(135deg,
            var(--competition-secondary),
            #020617);
    background-size: auto, cover, auto;
    background-position: center;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.public-competition-hero::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -95px;
    bottom: -150px;
    border: 42px solid rgba(var(--competition-primary-rgb), 0.045);
    border-radius: 50%;
}

.public-competition-hero-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.public-competition-hero-icon {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    display: grid;
    place-items: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--competition-primary);
    font-size: 2rem;
}

.public-competition-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.public-competition-hero .section-subtitle {
    color: var(--competition-primary);
}

.public-competition-hero h1 {
    margin: 5px 0 8px;
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    line-height: 0.98;
}

.public-competition-hero-subtitle {
    color: #cbd5e1;
    font-weight: 650;
}

.public-competition-description {
    position: relative;
    z-index: 1;
    max-width: 480px;
    color: #cbd5e1;
    line-height: 1.65;
}

/* NAVIGATION EN DEUX BLOCS */

.competition-hub-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.competition-hub-group {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.86);
}

.competition-hub-group-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
}

.competition-hub-group-heading>span {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(var(--competition-primary-rgb), 0.1);
    color: var(--competition-primary);
}

.competition-hub-group-heading small,
.competition-hub-group-heading strong {
    display: block;
}

.competition-hub-group-heading small {
    color: var(--competition-primary);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.competition-hub-group-heading strong {
    margin-top: 2px;
    color: #f8fafc;
    font-size: 0.88rem;
}

.competition-hub-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.competition-hub-links a,
.competition-hub-link-disabled {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s ease;
}

.competition-hub-links a {
    background: rgba(255, 255, 255, 0.035);
}

.competition-hub-links a:hover,
.competition-hub-links a.active {
    color: var(--competition-primary);
    background: rgba(var(--competition-primary-rgb), 0.12);
}

.competition-hub-link-disabled {
    opacity: 0.48;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.025);
}

.competition-hub-link-disabled small {
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.58rem;
    text-transform: uppercase;
}

/* INFORMATIONS UTILES */

.public-competition-overview {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr 0.9fr;
    gap: 14px;
    margin: 18px 0 42px;
}

.public-overview-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 17px;
    background: linear-gradient(145deg, #0f172a, #111827);
}

.public-overview-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(var(--competition-primary-rgb), 0.1);
    color: var(--competition-primary);
}

.public-overview-content {
    min-width: 0;
    flex: 1;
}

.public-overview-content small,
.public-overview-content strong,
.public-overview-content p {
    display: block;
}

.public-overview-content small {
    color: #94a3b8;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.public-overview-content strong {
    margin-top: 4px;
    overflow: hidden;
    color: #f8fafc;
    font-size: 1.15rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-overview-content p {
    margin-top: 3px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.predictions-card>a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--competition-primary);
    color: #07111f;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.public-season-progress {
    height: 5px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.public-season-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--competition-primary);
}

/* CALENDRIER */

.public-competition-section {
    margin-top: 38px;
}

.public-calendar-section {
    scroll-margin-top: 125px;
}

.public-competition-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.public-competition-section-heading h2 {
    margin-top: 4px;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.public-competition-section-heading .section-subtitle {
    color: var(--competition-primary);
}

.public-match-count {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(var(--competition-primary-rgb), 0.1);
    color: var(--competition-primary);
    font-size: 0.84rem;
    font-weight: 800;
}

.public-matchday-tabs {
    display: flex;
    gap: 9px;
    padding: 4px 2px 14px;
    margin-bottom: 17px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.public-matchday-tabs a {
    min-width: 116px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.2s ease;
}

.public-matchday-tabs a:hover,
.public-matchday-tabs a.active {
    border-color: rgba(var(--competition-primary-rgb), 0.42);
    background: rgba(var(--competition-primary-rgb), 0.1);
    color: var(--competition-primary);
}

.public-matchday-tabs small {
    color: #94a3b8;
    font-size: 0.72rem;
}

.public-match-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.public-match-card {
    padding: 17px 21px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 17px;
    background: linear-gradient(135deg, #0f172a, #111827);
}

.public-match-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 17px;
    padding-bottom: 13px;
    margin-bottom: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    font-size: 0.78rem;
}

.public-match-meta i {
    margin-right: 5px;
}

.public-match-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    font-weight: 800;
}

.public-match-status.scheduled {
    background: rgba(var(--competition-primary-rgb), 0.1);
    color: var(--competition-primary);
}

.public-match-status.live {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
}

.public-match-status.finished {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.public-match-status.postponed,
.public-match-status.cancelled {
    background: rgba(250, 204, 21, 0.12);
    color: #fde047;
}

.public-match-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 106px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.public-match-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.public-match-team.home {
    justify-content: flex-end;
    text-align: right;
}

.public-match-team.away {
    justify-content: flex-start;
    text-align: left;
}

.public-match-team>div:not(.public-match-logo) {
    min-width: 0;
}

.public-match-team strong,
.public-match-team small {
    display: block;
}

.public-match-team strong {
    font-size: 0.98rem;
}

.public-match-team small {
    margin-top: 3px;
    color: #94a3b8;
}

.public-match-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: #ffffff;
}

.public-match-logo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.public-match-logo span {
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 900;
}

.public-match-score {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
}

.public-match-score.has-score {
    background: rgba(var(--competition-primary-rgb), 0.1);
    color: var(--competition-primary);
}

.public-match-score strong {
    font-size: 1.65rem;
}

.versus-text {
    color: #64748b;
    font-weight: 900;
    letter-spacing: 0.08em;
}

/* ÉTATS VIDES */

.public-competition-empty,
.public-competition-not-found {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 34px;
    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-radius: 19px;
    background: rgba(15, 23, 42, 0.72);
    text-align: center;
}

.public-competition-empty.compact {
    min-height: 165px;
}

.public-competition-empty i,
.public-competition-not-found i {
    color: var(--competition-primary);
    font-size: 2rem;
}

.public-competition-empty p,
.public-competition-not-found p {
    color: #94a3b8;
}

.public-competition-not-found {
    min-height: 420px;
}

.public-competition-not-found a {
    margin-top: 8px;
    padding: 11px 18px;
    border-radius: 11px;
    background: var(--competition-primary);
    color: #020617;
    font-weight: 800;
    text-decoration: none;
}

/* RESPONSIVE */

@media screen and (max-width: 1000px) {
    .competition-hub-navigation {
        grid-template-columns: 1fr;
    }

    .public-competition-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media screen and (max-width: 900px) {
    .public-competition-page {
        width: 94%;
        margin-top: 24px;
    }

    .public-competition-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px;
    }

    .public-competition-description {
        max-width: none;
    }

    .public-match-main {
        grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
        gap: 11px;
    }

    .public-match-logo {
        width: 47px;
        height: 47px;
        flex-basis: 47px;
    }

    .public-match-team {
        gap: 8px;
    }
}

@media screen and (max-width: 650px) {
    .public-competition-page {
        margin-top: 20px;
        margin-bottom: 55px;
    }

    .competition-admin-preview {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .competition-admin-preview a {
        width: 100%;
        margin-left: 29px;
    }

    .public-competition-hero {
        min-height: 180px;
        padding: 22px 18px;
        border-radius: 19px;
    }

    .public-competition-hero-content {
        align-items: flex-start;
        gap: 14px;
    }

    .public-competition-hero-icon {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .public-competition-description {
        font-size: 0.87rem;
    }

    .competition-hub-group {
        padding: 14px;
    }

    .competition-hub-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .competition-hub-links a,
    .competition-hub-link-disabled {
        justify-content: flex-start;
    }

    .public-competition-overview {
        grid-template-columns: 1fr;
    }

    .progress-card {
        grid-column: auto;
    }

    .public-overview-card {
        padding: 15px;
    }

    .public-competition-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-match-card {
        padding: 15px;
    }

    .public-match-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .public-match-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .public-match-team.home,
    .public-match-team.away {
        justify-content: space-between;
        text-align: left;
    }

    .public-match-team.home {
        flex-direction: row-reverse;
    }

    .public-match-score {
        width: 106px;
        margin: 0 auto;
    }
}

/* ========================================
   OPTIMISATION DES CARTES D'APERÇU
======================================== */

.public-competition-overview {
    grid-template-columns: 1.1fr 0.78fr 0.82fr;
    gap: 12px;
    margin: 16px 0 34px;
}

.public-overview-card {
    min-height: 142px;
    padding: 14px 16px;
}

.next-match-card {
    padding-right: 14px;
}

.public-overview-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.public-overview-content strong {
    margin-top: 3px;
}

.public-overview-content p {
    margin-top: 4px;
}

.public-next-match-teams {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
}

.public-next-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-next-team strong {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-next-team-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
}

.public-next-team-logo img {
    width: 76%;
    height: 76%;
    object-fit: contain;
}

.public-next-team-logo>span {
    color: #0f172a;
    font-size: 0.62rem;
    font-weight: 900;
}

.public-next-match-versus {
    flex: 0 0 auto;
    color: #64748b;
    font-weight: 900;
}

@media screen and (max-width: 1000px) {
    .public-competition-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media screen and (max-width: 650px) {
    .public-overview-card {
        min-height: 0;
        padding: 14px;
    }

    .public-next-match-teams {
        flex-wrap: wrap;
    }

    .public-next-team strong {
        max-width: none;
    }
}

/* ========================================
   DERNIER AJUSTEMENT DES 3 CARTES
======================================== */

.public-competition-overview {
    grid-template-columns: 1.08fr 0.82fr 0.9fr;
    align-items: stretch;
}

.public-overview-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    min-height: 124px;
    padding: 16px 18px;
}

.public-overview-icon {
    grid-column: 1;
    grid-row: 1;
}

.public-overview-content {
    grid-column: 2;
    grid-row: 1;
}

.public-overview-content p {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.35;
}

.public-overview-content strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.predictions-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.predictions-card .public-overview-content {
    grid-column: 2;
}

.predictions-card>a {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    margin-left: 8px;
    white-space: nowrap;
}

.next-match-card {
    padding-right: 18px;
}

.public-next-match-teams {
    flex-wrap: nowrap;
}

.public-next-team strong {
    max-width: 125px;
}

.progress-card .public-overview-content {
    width: 100%;
}

@media screen and (max-width: 1100px) {
    .public-competition-overview {
        grid-template-columns: 1fr 1fr;
    }

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

@media screen and (max-width: 720px) {
    .public-competition-overview {
        grid-template-columns: 1fr;
    }

    .progress-card {
        grid-column: auto;
    }

    .public-overview-card,
    .predictions-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .predictions-card>a {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        margin: 10px 0 0;
    }

    .public-next-match-teams {
        flex-wrap: wrap;
    }

    .public-next-team strong {
        max-width: none;
    }
}

@media screen and (max-width: 650px) {
    .public-match-card {
        padding: 16px 14px;
    }

    .public-match-main {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .public-match-team,
    .public-match-team.home,
    .public-match-team.away {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        align-items: center;
        justify-content: stretch;
        gap: 14px;
        text-align: left;
    }

    .public-match-team.home {
        flex-direction: initial;
    }

    .public-match-logo {
        width: 58px;
        height: 58px;
        flex: 0 0 58px;
        border-radius: 14px;
    }

    .public-match-team>div:not(.public-match-logo) {
        min-width: 0;
    }

    .public-match-team strong {
        font-size: 0.96rem;
        line-height: 1.25;
    }

    .public-match-team small {
        margin-top: 4px;
        font-size: 0.82rem;
    }

    .public-match-score {
        width: 120px;
        min-height: 56px;
        margin: 0 auto;
    }

    .public-match-score strong,
    .versus-text {
        font-size: 1.45rem;
    }
}

/* ========================================
   CORRECTION MOBILE DÉFINITIVE DES MATCHS
======================================== */

@media screen and (max-width: 650px) {

    .public-competition-page .public-match-card {
        padding: 15px 14px !important;
        border-radius: 16px;
    }

    .public-competition-page .public-match-meta {
        display: flex !important;
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 8px !important;

        padding-bottom: 14px !important;
        margin-bottom: 16px !important;

        font-size: 0.82rem;
    }

    .public-competition-page .public-match-main {
        width: 100%;

        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        align-items: stretch !important;
        gap: 14px !important;
    }

    /*
       Les deux équipes utilisent exactement la même grille,
       quel que soit l'ordre des éléments dans le HTML.
    */
    .public-competition-page .public-match-team,
    .public-competition-page .public-match-team.home,
    .public-competition-page .public-match-team.away {
        width: 100% !important;
        min-width: 0 !important;

        display: grid !important;
        grid-template-columns: 60px minmax(0, 1fr) !important;
        grid-template-rows: 60px !important;
        align-items: center !important;
        justify-content: start !important;
        column-gap: 14px !important;

        text-align: left !important;
    }

    .public-competition-page .public-match-team.home {
        grid-row: 1 !important;
        flex-direction: row !important;
    }

    .public-competition-page .public-match-score {
        grid-row: 2 !important;

        width: 104px !important;
        min-height: 52px !important;
        margin: 0 auto !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 13px;
    }

    .public-competition-page .public-match-team.away {
        grid-row: 3 !important;
    }

    .public-competition-page .public-match-team .public-match-logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;

        width: 60px !important;
        height: 60px !important;
        flex: none !important;
        margin: 0 !important;

        border-radius: 15px;
    }

    .public-competition-page .public-match-team>div:not(.public-match-logo) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: start !important;

        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;

        text-align: left !important;
    }

    .public-competition-page .public-match-team strong {
        display: block;

        margin: 0;

        font-size: 1rem;
        line-height: 1.25;

        overflow-wrap: anywhere;
    }

    .public-competition-page .public-match-team small {
        display: block;

        margin-top: 4px;

        color: #94a3b8;
        font-size: 0.82rem;
    }

    .public-competition-page .public-match-score strong,
    .public-competition-page .versus-text {
        font-size: 1.35rem;
    }
}

@media screen and (max-width: 390px) {

    .public-competition-page .public-match-team,
    .public-competition-page .public-match-team.home,
    .public-competition-page .public-match-team.away {
        grid-template-columns: 54px minmax(0, 1fr) !important;
        grid-template-rows: 54px !important;
        column-gap: 12px !important;
    }

    .public-competition-page .public-match-team .public-match-logo {
        width: 54px !important;
        height: 54px !important;
    }

    .public-competition-page .public-match-team strong {
        font-size: 0.94rem;
    }
}

/* ========================================
   CARROUSEL DES JOURNÉES — ORDINATEUR
======================================== */

.public-matchday-carousel {
    position: relative;
    margin-bottom: 17px;
}

.public-matchday-carousel .public-matchday-tabs {
    margin-bottom: 0;
    padding-right: 52px;
    padding-left: 2px;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
}

.public-matchday-carousel .public-matchday-tabs a {
    scroll-snap-align: start;
}

.public-matchday-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid rgba(var(--competition-primary-rgb), 0.28);
    border-radius: 50%;

    background: rgba(15, 23, 42, 0.97);
    color: var(--competition-primary);

    box-shadow:
        0 9px 24px rgba(0, 0, 0, 0.34),
        0 0 0 5px rgba(15, 23, 42, 0.72);

    font: inherit;
    cursor: pointer;

    transform: translateY(-62%);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.public-matchday-arrow:hover {
    border-color: rgba(var(--competition-primary-rgb), 0.55);
    background: var(--competition-primary);
    color: #07111f;

    transform: translateY(-62%) scale(1.06);
}

.public-matchday-arrow-left {
    left: -18px;
}

.public-matchday-arrow-right {
    right: -18px;
}

.public-matchday-arrow[hidden] {
    display: none !important;
}

/*
 * Les flèches ne sont utilisées que sur ordinateur.
 * Sur téléphone et tablette, le glissement tactile reste naturel.
 */
@media screen and (max-width: 900px) {
    .public-matchday-arrow {
        display: none !important;
    }

    .public-matchday-carousel .public-matchday-tabs {
        padding-right: 2px;
        padding-left: 2px;
    }
}

/* ========================================
   NAVIGATION COMPÉTITION REPLIABLE SUR MOBILE
======================================== */

.competition-hub-mobile-toggle {
    width: 100%;

    padding: 0;
    border: 0;

    background: transparent;
    color: inherit;

    font: inherit;
    text-align: left;
}

.competition-hub-group
    > .competition-hub-mobile-toggle {
    cursor: default;
}

.competition-hub-mobile-chevron {
    display: none;
}

.competition-hub-mobile-toggle:focus-visible {
    outline: 3px solid rgba(
        var(--competition-primary-rgb),
        0.22
    );

    outline-offset: -3px;
}

@media screen and (max-width: 650px) {

    .competition-hub-navigation {
        gap: 10px;
        margin: 14px 0;
    }

    .competition-hub-group {
        padding: 0 !important;
        overflow: hidden;

        border-radius: 15px;
    }

    .competition-hub-group
        > .competition-hub-mobile-toggle {
        min-height: 72px;

        display: grid;
        grid-template-columns:
            38px
            minmax(0, 1fr)
            24px;
        align-items: center;
        gap: 11px;

        padding: 12px 13px;
        margin: 0;

        cursor: pointer;
    }

    .competition-hub-group
        > .competition-hub-mobile-toggle
        > span {
        width: 38px;
        height: 38px;
        flex-basis: 38px;

        border-radius: 11px;
    }

    .competition-hub-mobile-toggle small {
        font-size: 0.62rem;
    }

    .competition-hub-mobile-toggle strong {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .competition-hub-mobile-chevron {
        display: inline-block;
        justify-self: end;

        color: var(--competition-primary);
        font-size: 0.74rem;

        transition: transform 0.2s ease;
    }

    .competition-hub-group
        > .competition-hub-links {
        display: none !important;

        grid-template-columns: 1fr;

        padding: 0 12px 12px;
    }

    .competition-hub-group.is-mobile-open
        > .competition-hub-links {
        display: grid !important;
    }

    .competition-hub-group.is-mobile-open
        .competition-hub-mobile-chevron {
        transform: rotate(180deg);
    }

    .competition-hub-group
        > .competition-hub-links
        a,
    .competition-hub-group
        > .competition-hub-links
        .competition-hub-link-disabled {
        width: 100%;
        justify-content: flex-start;
    }
}

@media screen and (min-width: 651px) {

    .competition-hub-mobile-chevron {
        display: none !important;
    }
}

/* ========================================
   LIENS VERS LES FICHES ÉQUIPES
======================================== */

.team-profile-link,
.team-profile-card-link {
    color: inherit;
    text-decoration: none;
}

.team-profile-link {
    border-radius: 12px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.team-profile-link:hover,
.team-profile-link:focus-visible {
    color: var(--competition-primary);
}

.team-profile-link:hover {
    transform: translateY(-2px);
}

.team-profile-link:focus-visible,
.team-profile-card-link:focus-visible {
    outline: 3px solid rgba(
        var(--competition-primary-rgb),
        0.24
    );

    outline-offset: 3px;
}


/* ========================================
   GRILLE DES ÉQUIPES
======================================== */

.public-teams-section {
    margin: 38px 0;
    scroll-margin-top: 125px;
}

.public-team-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.public-team-card {
    min-width: 0;
    min-height: 74px;

    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;

    padding: 11px 12px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    background: linear-gradient(145deg, #0f172a, #111827);
    color: #f8fafc;

    text-decoration: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.public-team-card:hover {
    border-color: rgba(
        var(--competition-primary-rgb),
        0.38
    );

    background: rgba(
        var(--competition-primary-rgb),
        0.07
    );

    transform: translateY(-2px);
}

.public-team-card:focus-visible {
    outline: 3px solid rgba(
        var(--competition-primary-rgb),
        0.24
    );

    outline-offset: 3px;
}

.public-team-card-logo {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;
    overflow: hidden;

    border-radius: 12px;

    background: #ffffff;
    color: #0f172a;
}

.public-team-card-logo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.public-team-card-logo strong {
    font-size: 0.66rem;
    font-weight: 900;
}

.public-team-card-name {
    min-width: 0;
}

.public-team-card-name strong,
.public-team-card-name small {
    display: block;
}

.public-team-card-name strong {
    overflow: hidden;

    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-team-card-name small {
    margin-top: 3px;

    color: #64748b;
    font-size: 0.66rem;
}

.public-team-card > i {
    color: #64748b;
    font-size: 0.66rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.public-team-card:hover > i {
    color: var(--competition-primary);
    transform: translateX(3px);
}

@media screen and (max-width: 1100px) {
    .public-team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 760px) {
    .public-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 520px) {
    .public-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-team-card {
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 68px;
        padding: 9px 10px;
    }

    .public-team-card-logo {
        width: 40px;
        height: 40px;
    }

    .public-team-card > i {
        display: none;
    }
}

