/* =====================================================
   SUSTT CORE – LAYOUT
   Structure (header, nav, containers, responsive)
   ===================================================== */

/* =========================
   LAYOUT GLOBAL
========================= */

.sustt-app {
    background: var(--sustt-bg-main);
    min-height: 100vh;
    padding: 0px 20px;
}

.sustt-container {
    width: 100%;
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.sustt-nav {
    display: flex;
    gap: 18px;
}

.sustt-main {
    margin-top: 20px;
}

.sustt-header a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--sustt-text-main);
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 200ms ease;
}

.sustt-header a:hover {
    background: linear-gradient(
        135deg,
        var(--sustt-primary),
        var(--sustt-primary-strong)
    );
    color: var(--sustt-primary-contrast);
    box-shadow: 0 0 12px var(--sustt-glow-primary-color);
}

.sustt-header a.is-active {
    background: linear-gradient(
        135deg,
        var(--sustt-primary),
        var(--sustt-primary-strong)
    );
    color: var(--sustt-primary-contrast);
}

.sustt-header a.is-active {
    background: linear-gradient(
        135deg,
        var(--sustt-primary),
        var(--sustt-primary-strong)
    );
    color: white;
}

.sustt-header a {
    text-decoration: none !important;
}

.sustt-header a:hover,
.sustt-header a:focus,
.sustt-header a:active {
    text-decoration: none !important;
}

/* ===============================
   MOBILE
================================ */

.sustt-mobile .sustt-card {
    background: var(--sustt-bg-soft);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;

    border: 1px solid var(--sustt-card-border-soft);
    box-shadow: 0 4px 10px var(--sustt-shadow-strong-color);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sustt-mobile .sustt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--sustt-shadow-strong-color);
}

.sustt-mobile .sustt-card.is-favorite {
    border: 1px solid var(--sustt-accent);

    box-shadow:
        0 0 0 1px var(--sustt-accent),
        0 0 24px var(--sustt-glow-accent-color),
        0 8px 26px var(--sustt-shadow-strong-color);
}

.sustt-card-header {
    display: grid;
    grid-template-columns: 40px 1fr 60px;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.sustt-points {
    width: 44px;
    height: 34px;

    display: flex;
    align-self: start;
    justify-content: center;

    font-weight: 800;
    font-size: 16px;

    border-radius: 999px;

    background: var(--sustt-accent-soft);
    color: var(--sustt-accent);
}

/* Label PTS discret mais présent */
.sustt-points .label {
    display: inline;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
}

.sustt-card-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.sustt-card-stats .stat {
    background: transparent;
    border: none;
    padding: 6px 4px;
}

.sustt-card-stats .label {
    font-size: 9px;
    opacity: 0.6;
}

.sustt-card-stats span:last-child {
    font-size: 13px;
    font-weight: 700;
}

.sustt-desktop {
    display: block;
}
.sustt-mobile {
    display: none;
}

/* ACTIONS */

.sustt-actions-mobile {
    display: none;
    justify-content: flex-end;
    gap: 12px;
}

.sustt-nav-right {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.sustt-bottom-nav {
    display: none;
}

.sustt-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    padding: 20px 24px;
    margin-bottom: 40px;

    background: var(--sustt-bg-soft);
    border-radius: 20px;

    box-shadow:
        var(--sustt-shadow-soft),
        0 0 0 1px var(--sustt-border-main);
}

.sustt-mobile-header {
    display: none;
}

.flash-focus {
    box-shadow:
        0 0 0 2px var(--sustt-accent),
        0 0 40px var(--sustt-accent-glow);
}

html {
    scroll-behavior: smooth;
}

.sk {
    display: inline-block;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        var(--sustt-skeleton-a) 25%,
        var(--sustt-skeleton-b) 50%,
        var(--sustt-skeleton-a) 75%
    );
    background-size: 200% 100%;
    animation: sustt-shimmer 1.6s linear infinite;
}

.sk-date {
    width: 70px;
}
.sk-match {
    width: 180px;
}
.sk-prono {
    width: 90px;
}

/* ================================
   MOBILE APP RENDER 2.0
================================ */

.sustt-card {
    background: var(--sustt-bg-soft);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--sustt-border-main);
    transition: all 0.3s ease;
}

/* Scroll reveal */
.sustt-reveal {
    opacity: 0;
    transform: translateY(12px);
}

.sustt-reveal.is-visible {
    animation: revealUp 0.5s ease forwards;
}

/* Top row */
.sustt-card-top {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: start;
    column-gap: 12px;
    margin-bottom: 14px;
}

.sustt-rank {
    width: 34px;
    height: 34px;
    border-radius: 8px;

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

    font-weight: 800;
    font-size: 14px;

    background: var(--sustt-primary);
    color: white;
}

.sustt-team {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
    align-items: start;
}

/* Bottom stats */
.sustt-card-bottom {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    text-align: center;
}

.sustt-card-bottom span {
    font-size: 9px;
    opacity: 0.6;
    display: block;
}

.sustt-card-bottom strong {
    font-size: 14px;
    font-weight: 700;
}

/* Top 3 styling */
.top-1 .sustt-rank {
    background: var(--sustt-rank-gold);
    color: var(--sustt-primary-contrast);
}

.top-2 .sustt-rank {
    background: var(--sustt-rank-silver);
    color: var(--sustt-primary-contrast);
}

.top-3 .sustt-rank {
    background: var(--sustt-rank-bronze);
    color: var(--sustt-primary-contrast);
}

.sustt-pronos-ranking tbody tr.top-1 {
    background: rgba(255, 215, 0, 0.08);
}

.sustt-pronos-ranking tbody tr.top-2 {
    background: rgba(192, 192, 192, 0.08);
}

.sustt-pronos-ranking tbody tr.top-3 {
    background: rgba(205, 127, 50, 0.08);
}

.sustt-rank-wrapper {
    position: relative;
    width: 34px;
    height: 34px;
}

.sustt-delta-pill {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* IMPORTANT : on garde translateX(-50%) dans les keyframes */

.sustt-delta-pill.sustt-up {
    background: none;
    color: var(--sustt-success-border);
    animation: pulseUp 1s ease;
}

.sustt-delta-pill.sustt-down {
    background: none;
    color: var(--sustt-error-border);
}

/* Favorite micro badge */
.sustt-fav-dot {
    width: 8px;
    height: 8px;
    background: var(--sustt-accent);
    border-radius: 50%;
    display: inline-block;
    margin-left: 6px;
    box-shadow: 0 0 8px var(--sustt-accent-glow);
}

/* Skeleton progress */
.sk-progress {
    height: 6px;
    border-radius: 999px;
}

.sustt-desktop-only {
    display: block;
}
.sustt-mobile-only {
    display: none;
}

.sustt-pronos-table {
    width: 100%;
    border-collapse: collapse;
}

.sustt-pronos-table td {
    padding: 16px;
    border-bottom: 1px solid var(--sustt-card-border-soft);
}

.sustt-pronos-table tbody tr:hover {
    background: var(--sustt-primary-soft);
    transform: scale(1.003);
    transition: 0.2s ease;
}

.sustt-pronos-table tbody tr.sustt-desktop-row:nth-of-type(even) {
    background: var(--sustt-bg-table-alt);
}

.sustt-pronos-table tbody tr.sustt-desktop-row:nth-of-type(odd) {
    background: var(--sustt-bg-soft);
}

.sustt-col-date {
    width: 140px;
}

/* Focus propre */
.sustt-prono-inputs input:focus {
    outline: none;
    border-color: var(--sustt-focus);
    box-shadow: 0 0 0 2px var(--sustt-focus-ring);
}

.sustt-prono-card {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.04),
        rgba(255, 255, 255, 0.01)
    );

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

    backdrop-filter: blur(4px);
}

.sustt-move {
    font-size: 11px;
    margin-left: 6px;
    font-weight: 600;
}

.sustt-up {
    color: var(--sustt-success, #22c55e);
}

.sustt-down {
    color: var(--sustt-danger, #ef4444);
}

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

.sustt-wrapper {
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.sustt-wrapper.is-transitioning {
    opacity: 0.85;
    transform: translateY(4px);
}

/* ===============================
   PRECISION – COMPETITIVE MODE
=============================== */

.precision-cell {
    width: 120px;
}

.resultat_correct {
    width: 120px;
}

.score_correct {
    width: 120px;
}

.rank {
    width: 120px;
}

.sustt-precision-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sustt-precision-bar {
    width: 70px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.sustt-precision-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--precision);
    background: var(--precision-color);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Glow elite */
.sustt-precision-wrapper.is-elite .sustt-precision-bar::after {
    box-shadow:
        0 0 8px var(--sustt-precision-glow),
        0 0 16px var(--sustt-precision-glow);
}

.sustt-precision-value {
    font-weight: 800;
    font-size: 13px;
}

.sustt-precision-ratio {
    font-size: 10px;
    opacity: 0.6;
}

/* =====================================================
   MATCHES – CHAMPIONS THEME
===================================================== */

/* Container */
.sustt-matches-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Card */
.sustt-match-card {
    background: var(--sustt-bg-soft);
    border: 1px solid var(--sustt-border-main);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: var(--sustt-shadow-soft);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sustt-match-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sustt-shadow-hover);
}

/* Header */
.sustt-match-card-header {
    margin-bottom: 18px;
}

.sustt-date-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sustt-date-day {
    font-size: 11px;
    color: var(--sustt-text-muted);
}

.sustt-date-full {
    font-size: 14px;
    color: var(--sustt-text-main);
}

.sustt-time-header {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--sustt-primary-soft);
    color: var(--sustt-primary);
    margin-bottom: 16px;
}

/* Match line */
.sustt-match-line {
    display: grid;
    grid-template-columns: 60px 1fr 90px 1fr;
    align-items: center;
    padding: 16px 0;
    transition: background 0.25s ease;
}

.sustt-match-line:hover {
    background: var(--sustt-primary-soft);
}

/* Separator */
.sustt-match-line + .sustt-match-line {
    border-top: 1px solid var(--sustt-border-main);
}

.sustt-time-group + .sustt-time-group {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* Sides */
.sustt-side {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sustt-side--home {
    justify-content: flex-end;
    text-align: right;
    padding-right: 16px;
}

.sustt-side--away {
    justify-content: flex-start;
    text-align: left;
    padding-left: 16px;
}

.sustt-team {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--sustt-text-main);
}

/* Location badges */
.sustt-location-badge {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sustt-location-badge.is-home {
    background: var(--sustt-badge-home-bck);
    color: var(--sustt-badge-home);
}

.sustt-location-badge.is-away {
    background: var(--sustt-badge-away-bck);
    color: var(--sustt-badge-away);
}

/* Center */
.sustt-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sustt-score,
.sustt-vs {
    width: 80px;
    text-align: center;
}

.sustt-score {
    font-weight: 800;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    padding: 6px 12px;
    border-radius: 10px;
    background: var(--sustt-bg-control);
    color: var(--sustt-text-main);
}

.sustt-vs {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--sustt-text-muted);
}

/* Results */
.sustt-score.is-win {
    color: var(--sustt-score-txt-win);
    background: var(--sustt-score-bck-win);
    box-shadow:
        0 0 0 1px var(--sustt-score-shadow-win),
        0 0 18px var(--sustt-score-shadow-win);
}

.sustt-score.is-lose {
    color: var(--sustt-score-txt-lose);
    background: var(--sustt-score-bck-lose);
    box-shadow:
        0 0 0 1px var(--sustt-score-shadow-lose-primary),
        0 0 18px var(--sustt-score-shadow-lose-soft);
}

.sustt-score.is-draw {
    color: var(--sustt-score-txt-draw);
    background: var(--sustt-score-bck-draw);
    box-shadow:
        0 0 0 1px var(--sustt-score-shadow-draw-primary),
        0 0 18px var(--sustt-score-shadow-draw-soft);
}

.sustt-league-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
    width: fit-content;

    background: linear-gradient(
        135deg,
        var(--sustt-league-badge-bck-primary),
        var(--sustt-league-badge-bck-soft)
    );
    backdrop-filter: blur(4px);
    color: var(--sustt-league-badge);
    border: 1px solid var(--sustt-league-badge-border);
}

@media (max-width: 640px) {
    .sustt-team {
        font-size: 14px;
    }

    .sustt-score {
        font-size: 18px;
        font-weight: 600;
    }

    .sustt-match-line {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }

    /* HOME à gauche */
    .sustt-side--home {
        justify-content: flex-start;
        text-align: left;
    }

    /* AWAY à droite */
    .sustt-side--away {
        justify-content: flex-end;
        text-align: right;
    }

    /* Centre toujours centré */
    .sustt-center {
        justify-content: center;
        text-align: center;
        padding: 4px 0;
    }

    /* Badge division discret au-dessus */
    .sustt-badge-col {
        justify-content: flex-start;
        margin-bottom: 4px;
    }

    .sustt-time-group + .sustt-time-group {
        margin-top: 32px;
        padding-top: 24px;
    }
}


/* =========================
   TEAM MATCHES
========================= */

.sustt-team-sofa {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto;
}

.sustt-sofa-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 12px 12px;
    border-radius: 16px;

    background: var(--sustt-card-bg);
    border: 1px solid var(--sustt-card-border);
    box-shadow:
        0 10px 26px var(--sustt-shadow-strong-color),
        inset 0 1px 0 var(--sustt-card-border-soft);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.sustt-sofa-card:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 30px var(--sustt-shadow-strong-color),
        inset 0 1px 0 var(--sustt-card-border-soft);

    border-color: var(--sustt-card-border-hover);
}

/* Colonne gauche (heure + jour) */
.sustt-sofa-left {
    display: grid;
    align-content: center;
    gap: 6px;
}

.sustt-sofa-time {
    font-weight: 800;
    font-size: 14px;
    color: var(--sustt-text-main, --sustt-primary-contrast);
    letter-spacing: 0.2px;
}

.sustt-sofa-day {
    display: flex;
    gap: 8px;
    align-items: baseline;
    opacity: 0.85;
}

.sustt-sofa-daycode {
    font-weight: 800;
    font-size: 12px;
    color: var(--sustt-primary, --sustt-badge-away);
    letter-spacing: 0.8px;
}

.sustt-sofa-date {
    font-weight: 650;
    font-size: 12px;
    color: var(--sustt-text-muted, --sustt-sofa-date-muted);
}

/* Rangée centrale */
.sustt-sofa-row {
    display: grid;
    grid-template-columns: 1fr 86px 1fr;
    align-items: center;
    gap: 12px;
}

/* Team blocks */
.sustt-sofa-team {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sustt-sofa-team.is-right {
    justify-content: flex-end;
}

.sustt-sofa-name {
    font-weight: 750;
    font-size: 14px;
    color: var(--sustt-text-main, --sustt-white);

    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sustt-sofa-name.is-fav {
    color: var(--sustt-text-strong, var(--sustt-text-main, --sustt-white));
}

/* Score / VS */
.sustt-sofa-score {
    display: flex;
    justify-content: center;
}

.sustt-sofa-scorebox {
    min-width: 76px;
    text-align: center;
    font-weight: 900;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    padding: 6px 10px;
    border-radius: 12px;

    background: var(--sustt-pill-bg);
    color: var(--sustt-text-main);

    box-shadow:
        0 0 0 1px var(--sustt-card-border-soft),
        0 10px 20px var(--sustt-shadow-strong-color);
}

.sustt-sofa-scorebox .sep {
    opacity: 0.55;
    margin: 0 6px;
}

.sustt-sofa-vs {
    opacity: 0.35;
    font-weight: 800;
}

/* Badges domicile/extérieur */
.sustt-sofa-badge {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.sustt-sofa-badge.is-home {
    background: var(--sustt-badge-home-bck);
    color: var(--sustt-badge-home);
}

.sustt-sofa-badge.is-away {
    background: var(--sustt-badge-away-bck);
    color: var(--sustt-badge-away);
}

/* Outcome effect (léger, premium) */
.sustt-sofa-card.is-win .sustt-sofa-scorebox {
    color: var(--sustt-score-txt-win);
    background: var(--sustt-score-bck-win);
    box-shadow:
        0 0 0 1px var(--sustt-score-shadow-win),
        0 10px 22px var(--sustt-shadow-strong-color);
}

.sustt-sofa-card.is-lose .sustt-sofa-scorebox {
    color: var(--sustt-score-txt-lose);
    background: var(--sustt-score-bck-lose);
    box-shadow:
        0 0 0 1px var(--sustt-score-shadow-lose-primary),
        0 10px 22px var(--sustt-shadow-strong-color);
}

.sustt-sofa-card.is-draw .sustt-sofa-scorebox {
    color: var(--sustt-score-txt-draw);
    background: var(--sustt-score-bck-draw);
    box-shadow:
        0 0 0 1px var(--sustt-score-shadow-draw-primary),
        0 10px 22px var(--sustt-shadow-strong-color);
}

/* Mobile */
@media (max-width: 520px) {
    .sustt-sofa-card {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    /* Header */
    .sustt-sofa-left {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }

    /* Teams block */
    .sustt-sofa-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .sustt-sofa-team {
        display: flex;
        align-items: center;
        width: 100%;
    }

    /* DOMICILE */
    .sustt-sofa-team:first-child {
        justify-content: flex-start;
        text-align: left;
    }

    /* EXTERIEUR */
    .sustt-sofa-team:last-child {
        justify-content: flex-end;
        text-align: right;
    }

    .sustt-sofa-name {
        font-size: 15px;
        font-weight: 650;

        white-space: normal;
        overflow: visible;
        text-overflow: unset;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

        max-height: 2.6em;
        line-height: 1.25;
    }

    /* Score */
    .sustt-sofa-score {
        justify-content: center;
        margin-top: 6px;
    }

    .sustt-sofa-scorebox {
        min-width: 100px;
        font-size: 18px;
        font-weight: 900;
        padding: 10px 18px;
        border-radius: 16px;
    }

    .sustt-sofa-card.is-win .sustt-sofa-scorebox {
        box-shadow:
            0 0 0 1px var(--sustt-score-shadow-win),
            0 0 18px var(--sustt-score-shadow-win),
            0 6px 18px var(--sustt-shadow-strong-color);
    }
}

/* =========================
   TEAM MATCHES – SKELETON
========================= */

.sustt-team-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

.sustt-team-skeleton-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;

    background: var(--sustt-card-bg);
    border: 1px solid var(--sustt-card-border);
    opacity: 0.85;
}

.sustt-team-skeleton-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.sustt-team-skeleton-mid {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    gap: 12px;
}

/* Skeleton sizes */
.sk-time {
    width: 60px;
    height: 14px;
}

.sk-date {
    width: 80px;
    height: 12px;
}

.sk-team {
    width: 80%;
    height: 14px;
}

.sk-team.short {
    width: 60%;
}

.sk-score {
    width: 70px;
    height: 22px;
    border-radius: 10px;
}

@media (max-width: 520px) {
    .sustt-team-skeleton-card {
        grid-template-columns: 70px 1fr;
        padding: 12px;
    }

    .sustt-team-skeleton-mid {
        grid-template-columns: 1fr 60px 1fr;
        gap: 8px;
    }

    .sk-score {
        width: 60px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    body {
        background: var(--sustt-bg-main);
    }

    .sustt-header {
        display: none;
    }

    /* On masque nav texte */
    .sustt-nav,
    .sustt-nav-right {
        display: none !important;
    }

    /* Logo centré */
    .sustt-logo {
        position: relative;
        z-index: 1;
    }

    /* Icônes collées à droite */
    .sustt-actions-mobile {
        display: flex !important;
        gap: 12px;
        position: absolute;
        right: 16px;
    }

    /* Bottom nav propre */
    .sustt-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;

        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;

        height: 60px;
        background: var(--sustt-mobile-nav-bg);
        border-top: 1px solid var(--sustt-mobile-nav-border);

        z-index: 999;
    }

    .sustt-bottom-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .sustt-desktop {
        display: none !important;
    }

    .sustt-mobile {
        display: block !important;
    }

    .sustt-slide-layer > .sustt-wrapper {
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
    }

    .sustt-slide-layer {
        background: transparent !important;
    }

    .sustt-mobile .sustt-card.is-favorite {
        border: 1px solid var(--sustt-accent);

        box-shadow:
            0 0 0 1px var(--sustt-accent),
            0 2px 4px var(--sustt-shadow-soft-light);
    }

    .sustt-points {
        border-radius: 999px;
        padding: 6px 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sustt-bottom-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        text-decoration: none;

        color: var(--sustt-text-muted);

        font-size: 10px;
        font-weight: 600;

        transition: all 200ms ease;
    }

    .sustt-bottom-item svg {
        width: 22px;
        height: 22px;
        margin-bottom: 4px;
    }

    .sustt-bottom-item:hover {
        color: var(--sustt-mobile-nav-active);
    }

    .sustt-bottom-item.is-active {
        color: var(--sustt-mobile-nav-active);
        transform: translateY(-2px);
    }

    .sustt-bottom-item.is-active::after {
        content: '';
        position: absolute;
        bottom: 6px;
        width: 28px;
        height: 3px;
        border-radius: 3px;
        background: var(--sustt-mobile-nav-active);
        box-shadow: 0 0 12px var(--sustt-mobile-nav-active);
    }

    /* Desktop : on cache les mini labels */
    .sustt-wrapper td.stat .k {
        display: none !important;
    }

    /* On remet un affichage inline normal */
    .sustt-wrapper td.stat {
        display: table-cell !important;
        text-align: center;
    }

    .sustt-wrapper {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .sustt-main {
        margin-top: 0px;
    }

    .sustt-mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;

        height: 60px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 12px 12px;

        background: #0b1220;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);

        z-index: 1000;
    }

    .sustt-mobile-left {
        display: flex;
        align-items: center;
    }

    .sustt-mobile-right {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    /*******/

    .sustt-mobile-right a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
    }

    .sustt-mobile-right svg {
        width: 22px;
        height: 22px;
    }

    .sustt-mobile-right .label {
        font-size: 9px;
        font-weight: 600;
        opacity: 0.45;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        transition: opacity 0.2s ease;
    }

    .sustt-mobile-right a:hover .label {
        opacity: 0.8;
    }

    /*******/

    .sustt-header .sustt-logo img {
        display: none;
    }
    .sustt-mobile-header .sustt-logo img {
        display: block;
    }

    .sustt-filters-row {
        margin: 14px auto 18px;
        gap: 10px;
    }

    /* Header mobile : l’icône devient un bloc vertical (svg + label) */
    .sustt-mobile-header .sustt-mobile-right a {
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .sustt-mobile-header .sustt-mobile-right .sustt-icon {
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        box-shadow: none;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;

        color: rgba(255, 255, 255, 0.85);
    }

    .sustt-mobile-header .sustt-mobile-right .sustt-icon svg {
        width: 22px;
        height: 22px;
        display: block;
    }

    .sustt-mobile-header .sustt-mobile-right .sustt-icon .label {
        display: block;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        opacity: 0.45;
        line-height: 1;
    }

    .sustt-filters-row .sustt-dropdown-trigger {
        padding: 0 28px !important;
        font-size: 13px;
    }

    .sustt-desktop-only {
        display: none;
    }
    .sustt-mobile-only {
        display: block;
    }

    .sustt-mobile-card {
        display: block;
        background: var(--sustt-mobile-surface);
        border: 1px solid var(--sustt-mobile-border-soft);
        box-shadow: 0 6px 16px var(--sustt-shadow-strong-color);
        border-radius: 16px;
        padding: 18px;
        margin-bottom: 16px;
    }

    .mobile-date {
        font-size: 0.85rem;
        opacity: 0.7;
        margin-bottom: 10px;
    }

    .mobile-teams {
        text-align: center;
        margin-bottom: 12px;
    }

    .mobile-teams .team {
        font-weight: 700;
    }

    /* Centre proprement les inputs en mobile */
    .mobile-inputs {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    /* Sécurité : s'assure que le groupe ne s'étire pas */
    .mobile-inputs .sustt-prono-inputs {
        justify-content: center;
    }

    .mobile-inputs input {
        width: 52px;
        height: 40px;
        font-size: 1.1rem;
        text-align: center;
        font-weight: 700;
    }

    .sustt-mobile-card .sustt-prono-badge-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 14px;
    }

    .sustt-mobile-card .sustt-prono-badge {
        width: fit-content;
    }

    /* =========================
   MOBILE APP FEEL
========================= */

    .sustt-mobile-card {
        border-radius: 18px;
        padding: 18px 16px;
        margin-bottom: 16px;
        backdrop-filter: blur(6px);
        transition: transform 0.2s ease;
    }

    .sustt-mobile-card:active {
        transform: scale(0.98);
    }

    /* DATE */
    .mobile-date {
        font-size: 13px;
        opacity: 0.7;
        margin-bottom: 12px;
    }

    /* TEAMS */
    .mobile-teams {
        text-align: center;
        margin-bottom: 18px;
    }

    .mobile-teams .team {
        font-weight: 600;
        font-size: 16px;
    }

    .mobile-teams .vs {
        opacity: 0.5;
        font-size: 14px;
        margin: 6px 0;
    }

    /* RESULTS */
    .mobile-results-row {
        display: flex;
        justify-content: space-between;
        gap: 0px;
    }

    .mobile-result-block {
        flex: 1;
        text-align: center;
    }

    .mobile-result-block .label {
        display: block;
        font-size: 11px;
        opacity: 0.6;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .real-score {
        font-size: 16px;
        font-weight: 600;
    }

    .user-score {
        font-size: 18px;
        font-weight: 700;
    }

    /* BADGE */
    .mobile-badge-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 16px;
    }

    .sustt-mobile-card .sustt-prono-badge {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 30px;
    }

    .sustt-prono-badge.exact {
        box-shadow: 0 0 12px rgba(0, 255, 120, 0.4);
    }

    .mobile-result-block:last-child {
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }

    .skeleton-line {
        height: 10px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 6px;
        margin-bottom: 12px;

        background: linear-gradient(
            90deg,
            var(--sustt-skeleton-a) 25%,
            var(--sustt-skeleton-b) 50%,
            var(--sustt-skeleton-a) 75%
        );
        background-size: 200% 100%;

        animation: sustt-shimmer 1.6s linear infinite;
    }

    .skeleton-date {
        width: 40%;
    }

    .skeleton-team {
        width: 80%;
    }

    .skeleton-team.short {
        width: 60%;
    }

    .skeleton-score {
        width: 50%;
        margin-top: 16px;
    }

    /* =========================
   RANKING MOBILE – EXPERT MODE
========================= */

    .sustt-card-stats-dual.expert {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 14px;
    }

    .sustt-stat-block {
        padding: 14px 10px;
        border-radius: 14px;
        text-align: center;
        background: rgba(255, 255, 255, 0.03);
    }

    .sustt-stat-block .label {
        display: block;
        font-size: 10px;
        opacity: 0.65;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .sustt-stat-block strong {
        font-size: 18px;
        font-weight: 800;
    }

    /* Exact = vert */
    .sustt-stat-block.exact {
        background: rgba(34, 197, 94, 0.14);
    }

    /* Résultat = bleu */
    .sustt-stat-block.result {
        background: rgba(56, 189, 248, 0.14);
    }

    /* Précision = neutre premium */
    .sustt-stat-block.precision {
        background: rgba(255, 255, 255, 0.06);
    }

    .sustt-stat-block .label {
        white-space: nowrap;
    }

    .sustt-stat-block.precision.high strong {
        color: #22c55e;
    }

    .sustt-stat-block.precision.medium strong {
        color: #facc15;
    }

    .sustt-stat-block.precision.low strong {
        color: #ef4444;
    }

    .sustt-stat-block.precision.competitive {
        background: rgba(255, 255, 255, 0.04);
    }

    .sustt-precision-bar {
        width: 70px;
        height: 6px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        overflow: hidden;
        position: relative;
    }

    .sustt-precision-bar::after {
        content: '';
        position: absolute;
        inset: 0;
        width: var(--precision);
        background: var(--precision-color);
        border-radius: 999px;
        transition: width 0.4s ease;
    }

    .sustt-stat-block.precision .ratio {
        font-size: 11px;
        opacity: 0.65;
        margin-top: 4px;
    }
}
