/* =====================================================
   SUSTT CORE – COMPONENTS
   UI (boutons, filtres, tables, cards, formulaires, etc.)
   ===================================================== */

/* =========================
   NAV BUTTON ICONS
========================= */

.sustt-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sustt-nav-btn svg {
    width: 18px !important;
    height: 18px !important;

    stroke: #ffffff !important;
    fill: none !important;

    stroke-width: 3 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;

    opacity: 1 !important;
    visibility: visible !important;
}

.sustt-filters-row .sustt-nav-btn {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border-radius: 999px;
    border: none !important;

    background: var(--sustt-primary) !important;

    transition:
        background 0.15s ease,
        transform 0.1s ease;
}

.sustt-filters-row .sustt-nav-btn:hover {
    background: var(--sustt-primary-strong) !important;
}

.sustt-filters-row .sustt-nav-btn:active {
    transform: scale(0.95);
    background: var(--sustt-primary-strong) !important;
}

/* =====================================
   FILTER BAR – CLEAN SPORT APP
===================================== */

.sustt-filters-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px auto 24px;
    max-width: 520px;
}

.sustt-filters-row .sustt-nav-btn:disabled {
    opacity: 0.35;
}

/* Dropdown pill */
.sustt-filters-row .sustt-dropdown-trigger {
    min-width: 200px;
    height: 32px;
    padding: 0 18px !important;

    border-radius: 999px;
    border: none !important;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

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

    background: var(--sustt-primary) !important;

    color: #fff;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);

    transition: transform 0.15s ease;
}

.sustt-filters-row .sustt-dropdown-trigger:hover {
    transform: translateY(-1px);
    background: var(--sustt-primary-strong) !important;
}

.sustt-dropdown-arrow {
    font-size: 12px;
    opacity: 0.8;
}

.sustt-dropdown-menu {
    pointer-events: auto;
}

.sustt-dropdown-label {
    justify-self: center;
    text-align: center;
}

/* Overlay */
.sustt-dropdown-overlay {
    position: fixed;
    inset: 0;
    background: var(--sustt-overlay-bg);
    backdrop-filter: blur(6px);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;

    z-index: 9998;
}

.sustt-dropdown.open .sustt-dropdown-overlay {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

/* Panel */
.sustt-dropdown-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    max-height: 75vh;
    overflow-y: auto;

    background: var(--sustt-bg-soft) !important;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--sustt-shadow-hover) !important;

    transform: translateY(100%);
    transition: transform 0.3s ease;

    visibility: visible;

    z-index: 9999;
}

.sustt-dropdown.open .sustt-dropdown-panel {
    transform: translateY(0);
}

/* Handle */
.sustt-dropdown-handle {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: var(--sustt-border-main) !important;
    margin: 10px auto 14px;
}

/* Items */
.sustt-dropdown-item {
    padding: 16px 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sustt-dropdown-item:hover {
    background: var(--sustt-bg-table-alt) !important;
}

.sustt-dropdown-item.active {
    background: var(--sustt-focus) !important;
    font-weight: 700;
}

/**********************************/

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

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

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

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

/* Icônes header desktop */

.sustt-icon {
    width: 40px;
    height: 40px;

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

    border-radius: 12px;

    background: var(--sustt-bg-table-alt);
    border: 1px solid var(--sustt-border-main);

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

    transition: all 200ms ease;
}

.sustt-icon svg {
    width: 20px;
    height: 20px;
}

.sustt-icon:hover {
    background: linear-gradient(
        135deg,
        var(--sustt-primary),
        var(--sustt-primary-strong)
    );
    border-color: var(--sustt-primary);
    color: #fff;

    box-shadow: 0 0 12px var(--sustt-glow-primary-color);
    transform: translateY(-2px);
}

/* LOGO */

.sustt-logo {
    display: flex;
    justify-content: center;
}

.sustt-logo img {
    height: 70px;
    display: none;
}

/* Par défaut (light mode) */
.sustt-logo .logo-dark {
    display: none;
}

.sustt-logo .logo-light {
    display: block;
}

/* Dark mode (Blogus ajoute body.dark) */
body.dark .sustt-logo .logo-light {
    display: none;
}

body.dark .sustt-logo .logo-dark {
    display: block;
}

/* =====================================================
   SUSTT AUTH – Connexion / Inscription
   ===================================================== */

.sustt-card {
    max-width: 420px;
    margin: 2rem auto;
    padding: 24px;
    background: var(--sustt-bg-soft);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: none;
    overflow: hidden;
}

/* Onglets */
.sustt-auth {
    animation: susttFade 0.3s ease;
}

.sustt-auth-tabs-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.sustt-auth .sustt-auth-tab-btn {
    flex: 1;
    padding: 10px 12px;
    background: var(--sustt-primary-soft);
    color: var(--sustt-text-main);
    border: 1px solid var(--sustt-primary-soft);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sustt-auth .sustt-auth-tab-btn:hover,
.sustt-auth .sustt-auth-tab-btn.is-active,
.sustt-auth .sustt-auth-tab-btn:focus,
.sustt-auth .sustt-auth-tab-btn:active {
    background: var(--sustt-primary);
    border-color: var(--sustt-primary);
    color: var(--sustt-text-main);
    outline: none;
}

/* =========================================
   AUTH SLIDER – VERSION FLUX PROPRE
========================================= */

.sustt-auth-panels {
    position: relative;
    width: 100%;
    padding: 10px;
}

.sustt-auth-panel {
    width: 100%;
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition:
        transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 180ms ease;
}

.sustt-auth-panel.is-active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.sustt-auth-field {
    margin-bottom: 12px;
}

.sustt-auth-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--sustt-text-soft);
}

/* ===============================
   INPUTS – PRIORITÉ SUR BLOGUS
   =============================== */

.sustt-auth.sustt-card .sustt-auth-field input,
.sustt-auth.sustt-card .sustt-auth-field select {
    background-color: var(--sustt-bg-input);
    color: var(--sustt-text-main);

    border: 1px solid var(--sustt-border-main);
    border-radius: 8px;

    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.sustt-auth.sustt-card .sustt-auth-field input:focus,
.sustt-auth.sustt-card .sustt-auth-field select:focus {
    outline: none;
    border-color: var(--sustt-focus);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.08),
        0 0 0 2px var(--sustt-focus);
}

/* ===== Wrapper ===== */

.sustt-auth .sustt-password-wrapper button.sustt-password-toggle {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--sustt-text-main);
    padding: 0;
}

.sustt-password-wrapper {
    position: relative;
    width: 100%;
}

.sustt-password-wrapper input {
    width: 100%;
    padding-right: 44px;
    box-sizing: border-box;
}

.sustt-auth .sustt-password-toggle svg {
    stroke: var(--sustt-pwd-eyes);
}

.sustt-password-toggle {
    all: unset;
    position: absolute;
    right: 14px;
    top: 0;
    bottom: 0;
    margin: auto 0;

    width: 28px;
    height: 28px;

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

    cursor: pointer;
    border-radius: 6px;
    color: var(--sustt-text-muted);
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.sustt-password-toggle:hover {
    background: var(--sustt-primary-soft);
    color: var(--sustt-primary);
}

.sustt-password-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    overflow: hidden;
}

.eye-slash {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sustt-password-toggle.is-active .eye-slash {
    opacity: 1;
}

/* ===== Strength bar ===== */

.sustt-password-feedback {
    margin-top: 8px;
}

.sustt-password-strength-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--sustt-border-main);
    overflow: hidden;
}

.sustt-password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition:
        width 0.35s ease,
        background 0.3s ease;
    background: #dc2626;
}

/* ===== Meta text ===== */

.sustt-password-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-top: 6px;
    opacity: 0.8;
}

.sustt-auth-forgot {
    text-align: center;
}

.sustt-app .sustt-auth a {
    text-decoration: none !important;
    color: var(--sustt-text-main);
    font-size: 12px;
}

.sustt-app .sustt-auth a:hover,
.sustt-app .sustt-auth a:focus,
.sustt-app .sustt-auth a:active {
    text-decoration: none;
    color: var(--sustt-primary);
}

.sustt-caps-warning {
    color: #facc15;
    display: none;
}

.sustt-caps-warning.active {
    display: inline;
}

.sustt-auth-submit {
    margin-top: 22px;
    text-align: center;
}
.sustt-auth-submit button {
    min-width: 140px;
    padding: 10px 20px;
    background: var(--sustt-primary);
    color: var(--sustt-primary-contrast);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.sustt-auth-submit button:hover {
    background: var(--sustt-primary-strong);
}

.sustt-auth-submit button:active {
    background: var(--sustt-focus);
}

/* =========================================
   TABLEAU PREMIUM – VERSION STABLE
========================================= */

.sustt-wrapper {
    background: var(--sustt-bg-soft);
    border-radius: 18px;
    margin-top: 32px;

    border: 1px solid var(--sustt-border-main);
    box-shadow: 0 10px 26px var(--sustt-box-medium);

    overflow: hidden; /* UNIQUE RESPONSABLE */
}

/* On supprime tout pseudo-élément décoratif */
.sustt-wrapper::before {
    display: none;
}

/* TABLE BASE */
/* HEADER */
.sustt-wrapper thead,
.sustt-wrapper thead tr,
.sustt-wrapper thead th {
    background: linear-gradient(
        135deg,
        var(--sustt-primary),
        var(--sustt-primary-strong)
    ) !important;
    color: #fff !important;
}

.sustt-wrapper thead th {
    padding: 10px 8px; /* plus compact */
    border: none !important;
}

/* BODY CELLS */
.sustt-wrapper tbody td {
    padding: 8px 10px;
    text-align: center;
    border: none;
}

/* LIGNES */
.sustt-wrapper tbody tr {
    background: var(--sustt-bg-soft);
    transition: background 160ms ease;
}

/* ======================================
   STANDINGS – LIGHT MODE CONTRASTE
====================================== */

body:not(.dark) .sustt-wrapper tbody td {
    color: var(--sustt-text-main);
    font-weight: 500;
}

body:not(.dark) .sustt-wrapper tbody td.team {
    font-weight: 600;
}

body:not(.dark) .sustt-wrapper tbody td.points {
    font-weight: 700;
}

/* =============================
   DISTRIBUTION STABLE DES COLONNES
============================= */

.sustt-wrapper table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Équipe prend tout l’espace restant */
.sustt-wrapper th:nth-child(2),
.sustt-wrapper td:nth-child(2) {
    width: auto;
    text-align: left;
}

/* Alternance très subtile */
.sustt-wrapper tbody tr:nth-child(even) {
    background: var(--sustt-bg-table-alt);
}

/* Hover discret premium */
.sustt-wrapper tbody tr:hover:not(.sustt-favorite-row) {
    background: var(--sustt-primary-soft);
}

/* =============================
   DIFF COLORS
============================= */

.sustt-wrapper td.sustt-diff-positive {
    color: var(--sustt-success-border);
    font-weight: 700;
}

.sustt-wrapper td.sustt-diff-negative {
    color: var(--sustt-error-border);
    font-weight: 700;
}

.sustt-wrapper td.sustt-diff-zero {
    color: var(--sustt-text-muted);
}

/* ===== BORDER CLEAN ===== */

.sustt-wrapper table {
    border: none !important;
}

.sustt-wrapper td,
.sustt-wrapper th {
    border: none !important;
}

/* =========================================
   FAVORITE ROW
========================================= */

.sustt-wrapper tbody tr.sustt-favorite-row {
    position: relative;
    font-weight: 700;

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

    box-shadow:
        0 0 0 1px var(--sustt-accent),
        0 0 18px var(--sustt-accent-glow);

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

.sustt-wrapper tbody tr.sustt-favorite-row:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px var(--sustt-accent),
        0 0 30px var(--sustt-accent-glow);
}

/* Cellules transparentes pour laisser passer le gradient */
.sustt-wrapper tbody tr.sustt-favorite-row td {
    background: var(--sustt-accent-soft) !important;
    border-left: none !important;
    border-right: none !important;
}

/* Bandeaux or */
.sustt-wrapper tbody tr.sustt-favorite-row td:first-child {
    border-left: 4px solid var(--sustt-accent);
}

.sustt-wrapper tbody tr.sustt-favorite-row td:last-child {
    border-right: 4px solid var(--sustt-accent);
}

/* Rang accentué */
.sustt-wrapper tbody tr.sustt-favorite-row td.rank {
    color: var(--sustt-accent);
    font-weight: 800;
}

/* ===============================
   SELECT GLOBAL SUSTT
   =============================== */

.sustt-pronos select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 8px 40px 8px 12px;
    border-radius: 10px;

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

    border: 1px solid var(--sustt-border-main);

    font-size: 0.95rem;
    font-weight: 500;

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

    background-image:
        linear-gradient(45deg, transparent 50%, var(--sustt-text-muted) 50%),
        linear-gradient(135deg, var(--sustt-text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 4px),
        calc(100% - 12px) calc(50% - 4px);
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
}

.sustt-pronos select:focus {
    outline: none;
    border-color: var(--sustt-focus);
    box-shadow: 0 0 0 3px
        color-mix(in srgb, var(--sustt-focus) 25%, transparent);
}

/* =====================================================
   FAUX DROPDOWN
   ===================================================== */

.sustt-auth-submit button[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* Hidden select */

.sustt-hidden-select {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    left: -9999px !important;
}

/* =====================================================
   PRONOSTICS (ex-sustt-pronos.css)
   ===================================================== */

/**
 * Styles publics – SUS-TT Pronostiques
 * Objectif :
 * - Lisibilité
 * - Accessibilité
 * - Compatible mobile
 * - Dark mode friendly
 */

/* Base messages */
.sustt-error,
.sustt-success,
.sustt-info {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 0.95rem;
}

/* Erreur */
.sustt-error {
    background-color: #2b0f12;
    color: #ffb3b3;
    border-left: 4px solid #ff4d4d;
}

/* Information */
.sustt-info {
    background-color: #0f1f2b;
    color: #b3d9ff;
    border-left: 4px solid #4da3ff;
}

/* Inputs score */
.sustt-prono-inputs input[type='number'] {
    width: 48px;
    height: 34px;

    text-align: center;
    font-weight: 600;

    background: var(--sustt-prono-input-bg);
    color: var(--sustt-prono-input-text);
    border: 1px solid var(--sustt-prono-input-border);

    border-radius: 8px;
    box-sizing: border-box;

    transition:
        border 0.15s ease,
        box-shadow 0.15s ease;
}

.sustt-prono-inputs input[type='number']:focus {
    outline: none;
    border-color: var(--sustt-focus);
    box-shadow: 0 0 0 2px var(--sustt-focus-ring);
}

/* Supprime les flèches des input number (pronostics) */

/* Chrome, Edge, Safari */
.sustt-prono-inputs input[type='number']::-webkit-inner-spin-button,
.sustt-prono-inputs input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0 !important;
}

.sustt-pronos-page .sustt-wrapper table.sustt-standings {
    table-layout: fixed;
    width: 100%;
}

/* DATE */
.sustt-pronos-page table.sustt-standings th:first-child,
.sustt-pronos-page table.sustt-standings td:first-child {
    width: 130px;
}

/* MATCH : flexible */
.sustt-pronos-page table.sustt-standings th:nth-child(2),
.sustt-pronos-page table.sustt-standings td:nth-child(2) {
    width: auto;
}

/* PRONOSTIQUE : largeur confortable */
.sustt-pronos-page table.sustt-standings th:nth-child(3),
.sustt-pronos-page table.sustt-standings td:nth-child(3) {
    width: 260px;
}

/* Aligner l’en-tête Pronostique à gauche */
.sustt-pronos-table th:last-child {
    text-align: left;
}

/* Garder les scores centrés */
.sustt-pronos-table td.sustt-col-prono {
    text-align: center;
}

.sustt-pronos-page .sustt-wrapper {
    margin-top: 30px;
}

#sustt-standings-container.is-transitioning .sustt-wrapper {
    opacity: 0.92;
    transform: translateY(3px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.sustt-pronos-page .sustt-wrapper table.sustt-standings th,
.sustt-pronos-page .sustt-wrapper table.sustt-standings td {
    text-align: left;
}

/* Ligne score réel / prono */
.sustt-prono-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.sustt-prono-row .label {
    display: block;
    font-size: 0.65rem;
    opacity: 0.6;
}

.sustt-prono-row strong {
    font-size: 1.1rem;
}

.sustt-pronos label {
    font-weight: 600;
}

.sustt-pronos input,
.sustt-pronos select {
    padding: 0.5rem;
    margin-top: 0.25rem;
    font-size: 1rem;
}

/* Placeholder / option vide */
.sustt-pronos select option[value=''] {
    color: var(--sustt-text-muted);
}

.wp-list-table th a.sortable,
.wp-list-table th a.sorted {
    position: relative;
    padding-right: 16px;
}

.wp-list-table th a.sortable span:after {
    content: '⇅';
    font-size: 11px;
    opacity: 0.4;
    position: absolute;
    right: 0;
}

.wp-list-table th a.sorted.asc span:after {
    content: '↑';
    opacity: 0.9;
}

.wp-list-table th a.sorted.desc span:after {
    content: '↓';
    opacity: 0.9;
}

/* Ligne grisée si match commencé */
.sustt-pronos-table tr.sustt-match-started {
    opacity: 0.6;
}

.sustt-pronos-table tr.sustt-match-started td {
    color: #94a3b8;
}

/* ==========================================
   OVERRIDE THEME BLOGUS – FILTRES EN LIGNE
   ========================================== */

/* Conteneur */
.content .sustt-filters-row {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}

/* Selects : on annule le width:100% du thème */
.content .sustt-filters-row select.sustt-filter {
    width: auto !important;
    min-width: 180px;

    flex: 0 0 auto !important;
    display: inline-flex !important;

    height: 38px;
    padding: 6px 10px;

    background-color: #0f172a;
    color: #f9fafb;

    border: 1px solid #334155;
    border-radius: 4px;

    font-size: 0.9rem;
}

/* Focus / hover */
.content .sustt-filters-row select.sustt-filter:hover,
.content .sustt-filters-row select.sustt-filter:focus {
    border-color: #38bdf8;
    outline: none;
}

/* Match */
.sustt-pronos-match .teams {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 500;
}

.sustt-pronos-match .vs {
    opacity: 0.6;
    font-size: 0.85rem;
}

.sustt-pronos-inputs .sep {
    margin: 0 6px;
    opacity: 0.7;
}

/* ============================
   Pronostics – cellule score
   ============================ */

.sustt-col-prono {
    text-align: center;
    vertical-align: middle;
    min-width: 220px; /* suffisant pour score final + prono */
    white-space: normal; /* autorise le retour à la ligne */
}

/* Wrapper flex = une seule ligne garantie */
.sustt-prono-inputs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Séparateur */
.sustt-sep {
    font-weight: 700;
    color: #e5e7eb;
    line-height: 1;
}

/* Désactivé */
.sustt-prono-inputs input[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================
   Colonne Pronostique plus compacte
   ============================ */

.sustt-pronos-table {
    table-layout: fixed;
}

.sustt-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
}

.sustt-prono-readonly .label {
    font-size: 0.75em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-right: 6px;
}

.sustt-match-result.muted {
    opacity: 0.5;
    font-style: italic;
}

/* ===============================
   PRONOSTIQUES – OVERRIDES FORTS
   =============================== */

/* Colonne DATE : largeur compacte */
.sustt-pronos-page .sustt-wrapper table.sustt-standings th:first-child,
.sustt-pronos-page .sustt-wrapper table.sustt-standings td:first-child {
    width: 140px;
    white-space: nowrap;
    text-align: left;
}

/* Colonne MATCH : prend l’espace restant */
.sustt-pronos-page .sustt-wrapper table.sustt-standings th:nth-child(2),
.sustt-pronos-page .sustt-wrapper table.sustt-standings td:nth-child(2) {
    text-align: left;
}

/* Colonne PRONOSTIQUE */
.sustt-pronos-page .sustt-wrapper table.sustt-standings th:nth-child(3) {
    text-align: left;
}

.sustt-pronos-page .sustt-wrapper table.sustt-standings td:nth-child(3) {
    text-align: center;
}

/* ===============================
   PRONOSTIQUES – DATE / HEURE
   =============================== */

/* Icône calendrier */
.sustt-pronos-page .sustt-col-date .sustt-date::before {
    content: '📅';
    font-size: 0.85rem;
    line-height: 1;
}

/* Icône horloge */
.sustt-pronos-page .sustt-col-date .sustt-hour::before {
    content: '⏰';
    font-size: 0.85rem;
    line-height: 1;
}

/* Notices front SUSTT */

.sustt-notice {
    padding: 12px 16px;
    margin: 16px 0;
    border-left: 4px solid #ccc;
    background: #f9f9f9;
    font-size: 14px;
}

.sustt-notice-success {
    border-color: #46b450;
    background: #ecf7ed;
    color: #1e4620;
}

.sustt-notice-error {
    border-color: #dc3232;
    background: #fbeaea;
    color: #8a1f11;
}

.sustt-notice-warning {
    border-color: #ffb900;
    background: #fff8e5;
    color: #6a4b00;
}

.sustt-prono-col {
    flex: 1;
    text-align: center;
}

.sustt-prono-col .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.sustt-prono-col strong {
    font-size: 1rem;
    font-weight: 600;
}

/* États */
.sustt-prono-badge.exact {
    background: #14532d; /* vert profond mais mat */
    color: #dcfce7; /* vert très clair */
    border: 1px solid #22c55e;
}

.sustt-prono-badge.exact::before {
    content: '🎯';
    margin-right: 6px;
}

.sustt-prono-badge.winner {
    background-color: #1e3a8a;
    color: #dbeafe;
}

.sustt-prono-badge.wrong {
    background: #7f1d1d;
    color: #fee2e2;
}

.sustt-prono-badge.muted {
    background-color: #1f2933;
    color: #9ca3af;
    font-style: italic;
}

/* ===============================
   BADGES PRONOSTIQUES
   =============================== */

.sustt-prono-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-top: 6px;
    width: fit-content;
}

.sustt-match-teams .team.home {
    font-weight: 600;
}

.sustt-match-teams .team.away {
    opacity: 0.85;
}

.sustt-match-teams .vs {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.4;
}

/* =====================================================
   PRONOS TABLE – DESKTOP PREMIUM 2.0
===================================================== */

/* Structure propre */
.sustt-pronos-page .sustt-wrapper table.sustt-pronos-table {
    table-layout: fixed;
    width: 100%;
}

/* DATE */
.sustt-pronos-page .sustt-col-date {
    width: 150px;
    padding-left: 16px;
    white-space: nowrap;
    line-height: 1.2;
}

.sustt-pronos-page .sustt-col-date .sustt-date {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sustt-text-main);
}

.sustt-pronos-page .sustt-col-date .sustt-hour {
    font-size: 0.8rem;
    opacity: 0.7;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* MATCH */
.sustt-pronos-page .sustt-col-match {
    width: auto;
    padding: 18px 10px;
}

.sustt-match-teams {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sustt-match-teams .team {
    line-height: 1.2;
    color: var(--sustt-text-main);
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.sustt-pronos-table tbody tr:hover .team.home {
    transform: translateX(4px);
}

/* PRONOSTIQUE */
.sustt-pronos-page .sustt-col-prono {
    width: 280px;
    padding-right: 20px;
    text-align: center;
}

/* Ligne hover plus moderne */
.sustt-pronos-table tbody tr {
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.sustt-pronos-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: scale(1.005);
}

/* Séparateurs horizontaux fins */
.sustt-pronos-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Carte résultat modernisée */
.sustt-prono-card {
    background: linear-gradient(145deg, #0f172a, #0b1220);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 10px;
    flex-direction: column;
    gap: 8px;
}

.sustt-skeleton-card {
    opacity: 0.7;
}

.sustt-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06) 25%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 75%
    );
    background-size: 200% 100%;
    animation: sustt-skeleton 1.2s infinite linear;
    margin-bottom: 10px;
}

.sustt-skeleton-line.small {
    width: 40%;
}

.sustt-skeleton-line.medium {
    width: 60%;
}

/* =========================================
   RANKING MODE SEGMENTED CONTROL
========================================= */

.sustt-ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;

    margin: 0 auto 14px;
    padding: 6px;

    background: var(--sustt-bg-control);
    border-radius: 999px;

    width: fit-content;

    box-shadow: inset 0 0 0 1px var(--sustt-border-main);

    position: relative;
    overflow: hidden;
}

/* Buttons */
.sustt-ranking-tabs .sustt-tab {
    padding: 8px 18px;

    border: none;
    border-radius: 999px;

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

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

    cursor: pointer;

    transition: all 0.2s ease;
}

/* Hover */
.sustt-ranking-tabs .sustt-tab:hover {
    color: var(--sustt-primary);
}

/* Active */
.sustt-ranking-tabs .sustt-tab.is-active {
    background: linear-gradient(
        135deg,
        var(--sustt-primary),
        var(--sustt-primary-strong)
    );
    color: #fff;

    box-shadow: 0 6px 16px var(--sustt-glow-primary-color);
}

/* Press effect */
.sustt-ranking-tabs .sustt-tab:active {
    transform: scale(0.96);
}

/* Desktop ranking refinements */

.sustt-pronos-ranking td.rank {
    font-weight: 800;
    font-size: 15px;
}

.sustt-pronos-ranking td.points {
    font-weight: 800;
    color: var(--sustt-primary);
}

.sk-rank {
    width: 24px;
    height: 16px;
}

.sk-team {
    width: 140px;
    height: 16px;
}

.sk-small {
    height: 14px;
    border-radius: 6px;
}

/* Mobile */
@media (max-width: 768px) {
    .sustt-wrapper {
        border: none;
        box-shadow: none;
    }

    .sustt-pronos form {
        max-width: 100%;
    }

    .sustt-prono-card {
        font-size: 0.85rem;
        padding: 6px 8px;
    }

    .sustt-prono-inputs input[type='number'] {
        width: 40px;
        height: 32px;
        font-size: 0.95rem;
    }

    .sustt-ranking-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .sustt-ranking-tabs .sustt-tab {
        flex: 1;
        text-align: center;
    }
}
