/* ==========================================================================
   FANTASY LIGUE 1 - HIGH CONTRAST & MAXIMUM READABILITY THEME (2026)
   ========================================================================== */

:root {
    /* Palette Haute Lisibilité */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --emerald: #059669;
    --emerald-light: #10b981;
    --gold: #d97706;
    --gold-bright: #fbbf24;
    --purple: #7c3aed;
    --danger: #dc2626;

    /* Pitch Grass (Pelouse Réaliste & Contrastée) */
    --pitch-green-1: #166534;
    --pitch-green-2: #15803d;
    --pitch-line: rgba(255, 255, 255, 0.75);

    /* Surface & Backgrounds */
    --bg-main: #0b1120;
    --bg-card: #131c31;
    --bg-card-border: #2a3754;
    --bg-card-hover: #1a2744;

    /* Typographie & Texte Haute Visibilité */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --text-pure-white: #ffffff;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;

    /* Rayons & Ombres */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #0b1120 70%);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    background: #0f172a;
    border-bottom: 2px solid #334155;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand-logo-wrap {
    width: 52px;
    height: 52px;
    background: #1e293b;
    border: 2px solid #475569;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.lcde-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-brand h1 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-pure-white);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Badge Tags */
.badge-tag {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-tag {
    background: #064e3b;
    color: #34d399;
    border: 1px solid #059669;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.j10-tag {
    background: #2563eb;
    color: white;
    border: 1px solid #3b82f6;
}

/* Deadline Banner */
.deadline-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #1e1b4b;
    border: 2px solid #4338ca;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.deadline-icon {
    font-size: 1.75rem;
}

.deadline-details {
    display: flex;
    flex-direction: column;
}

.deadline-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #a5b4fc;
    letter-spacing: 0.08em;
}

.deadline-timer {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.deadline-match {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    border-left: 2px solid #3730a3;
    padding-left: 1rem;
}

/* ==========================================================================
   NAVIGATION TABS
   ========================================================================== */
.nav-container {
    background: #090e1a;
    border-bottom: 2px solid #1e293b;
}

.nav-tabs {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 4px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-btn:hover {
    color: var(--text-pure-white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    color: #60a5fa;
    border-bottom-color: #3b82f6;
    background: #1e293b;
}

/* ==========================================================================
   MAIN CONTENT & LAYOUT
   ========================================================================== */
.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.2s ease;
}
.tab-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header-banner h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
}

/* ==========================================================================
   METRIC OVERVIEW CARDS
   ========================================================================== */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, border-color 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    border-color: #475569;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.metric-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.metric-icon { font-size: 1.4rem; }

.metric-main-value {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--text-pure-white);
    letter-spacing: -0.02em;
}

.metric-unit {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.metric-badge-row {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.status-pill {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-pill.success { background: #064e3b; color: #6ee7b7; border: 1px solid #059669; }
.status-pill.neutral { background: #1e293b; color: #cbd5e1; border: 1px solid #334155; }
.status-pill.premium { background: #451a03; color: #fde047; border: 1px solid #ca8a04; }

.status-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* Budget Progress Bar */
.progress-track {
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: var(--radius-full);
    margin: 0.7rem 0 0.5rem;
    overflow: hidden;
    border: 1px solid #334155;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #f59e0b);
    border-radius: var(--radius-full);
}

.budget-limits-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.budget-safe-tag {
    color: #34d399;
    font-weight: 700;
}

/* Quotas Pills */
.club-quota-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quota-pill {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
}

.quota-pill.max {
    background: #450a0a;
    color: #fca5a5;
    border-color: #991b1b;
}

/* ==========================================================================
   ACTION TOOLBAR
   ========================================================================== */
.team-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.6rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.action-left, .action-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary-action {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
}

.btn-primary-action:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-primary-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary-action {
    background: #1e293b;
    color: var(--text-pure-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.4rem;
    border: 1px solid #475569;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-secondary-action:hover {
    background: #334155;
}

.btn-outline-action {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #334155;
    transition: all 0.2s;
}

.btn-outline-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* View Switch Group */
.view-switch-group {
    display: flex;
    background: #090e1a;
    padding: 4px;
    border-radius: var(--radius-md);
    border: 2px solid #334155;
}

.view-switch-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-switch-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ==========================================================================
   ROLES SPOTLIGHT (CAPITAINE & SUPERSUB)
   ========================================================================== */
.roles-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.role-spotlight-card {
    background: #111a2e;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 2px solid #334155;
}

.captain-spotlight { border-color: #b45309; background: linear-gradient(135deg, #1c1503, #111a2e); }
.supersub-spotlight { border-color: #6d28d9; background: linear-gradient(135deg, #190a2a, #111a2e); }

.role-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.role-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.role-crown { font-size: 2rem; }

.role-title-wrap h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.captain-spotlight h3 { color: #fbbf24; }
.supersub-spotlight h3 { color: #c084fc; }

.role-subtitle {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
}

.btn-role-action {
    background: #1e293b;
    border: 1px solid #475569;
    color: var(--text-pure-white);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-role-action:hover { background: #334155; }

.role-player-featured {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #090e1a;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.4rem;
    border: 2px solid #1e293b;
}

.role-player-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.role-player-avatar img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.role-badge-overlay {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.captain-badge-overlay { background: #f59e0b; color: #000; border: 1px solid #fff; }
.supersub-badge-overlay { background: #9333ea; color: #fff; border: 1px solid #fff; }

.role-player-meta h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.role-player-sub {
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.role-price-tag {
    font-weight: 800;
    color: #34d399;
}

/* ==========================================================================
   TACTICAL PITCH (TERRAIN DE FOOTBALL 4-3-3 - HAUTE LISIBILITÉ)
   ========================================================================== */
.pitch-container {
    margin-bottom: 2rem;
}

.pitch-stadium {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    background: #0f172a;
    border: 3px solid #334155;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.soccer-pitch {
    position: relative;
    width: 100%;
    min-height: 740px;
    border-radius: var(--radius-md);
    background: repeating-linear-gradient(
        180deg,
        var(--pitch-green-1) 0px,
        var(--pitch-green-1) 60px,
        var(--pitch-green-2) 60px,
        var(--pitch-green-2) 120px
    );
    border: 4px solid var(--pitch-line);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1.5rem;
}

/* Pitch Markings */
.pitch-halfway-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pitch-line);
    transform: translateY(-50%);
}

.pitch-center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border: 3px solid var(--pitch-line);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.pitch-center-spot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--pitch-line);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.pitch-penalty-area {
    position: absolute;
    left: 50%;
    width: 320px;
    height: 120px;
    border: 3px solid var(--pitch-line);
    transform: translateX(-50%);
}
.top-penalty-area { top: 0; border-top: none; }
.bottom-penalty-area { bottom: 0; border-bottom: none; }

.pitch-goal-area {
    position: absolute;
    left: 50%;
    width: 160px;
    height: 50px;
    border: 3px solid var(--pitch-line);
    transform: translateX(-50%);
}
.top-goal-area { top: 0; border-top: none; }
.bottom-goal-area { bottom: 0; border-bottom: none; }

.pitch-penalty-arc {
    position: absolute;
    top: -40px;
    left: 50%;
    width: 90px;
    height: 40px;
    border: 3px solid var(--pitch-line);
    border-bottom: none;
    border-radius: 90px 90px 0 0;
    transform: translateX(-50%);
}

/* Formation Rows */
.pitch-formation-grid {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 680px;
    gap: 1.5rem;
}

.pitch-line-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

/* Pitch Player Card (BLANC & ULTRA LISIBLE) */
.pitch-player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
    position: relative;
    width: 125px;
}

.pitch-player-card:hover {
    transform: translateY(-6px) scale(1.05);
    z-index: 25;
}

.pitch-card-inner {
    width: 100%;
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
    border: 2px solid #e2e8f0;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.2s;
}

.pitch-player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.35rem;
}

.pitch-pos-tag {
    font-size: 0.65rem;
    font-weight: 900;
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pitch-club-crest {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    padding: 1px;
}

.pitch-club-abbr {
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
}

.pitch-player-name-plate {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-main-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.player-club-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.pitch-player-price-bar {
    width: 100%;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid #f1f5f9;
}

.price-val {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    color: #047857;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* Capitaine Styling */
.pitch-player-card.is-captain .pitch-card-inner {
    border: 3px solid #f59e0b;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.8), 0 10px 20px rgba(0,0,0,0.5);
    background: #fffbeb;
}

.captain-flag-banner {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    border: 1.5px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 30;
}

/* ==========================================================================
   BENCH DUGOUT
   ========================================================================== */
.bench-dugout-container {
    max-width: 960px;
    margin: 1.5rem auto 0;
    background: #0f172a;
    border: 3px solid #334155;
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-card);
}

.bench-dugout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bench-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bench-title h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
}

.bench-count {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    background: #1e293b;
    color: #60a5fa;
    border-radius: var(--radius-full);
    border: 1px solid #3b82f6;
}

.bench-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 600;
}

.bench-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.bench-seat-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

.bench-seat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.bench-seat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.4rem;
}

.bench-club-crest {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bench-seat-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
}

.bench-seat-details {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.bench-seat-price {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    color: #047857;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Supersub Card Styling */
.bench-seat-card.is-supersub {
    border: 3px solid #9333ea;
    background: #faf5ff;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.7);
}

.supersub-flag-banner {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    border: 1.5px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 30;
}

/* Empty Seat */
.bench-seat-card.empty-seat {
    background: #1e293b;
    border: 2px dashed #475569;
    box-shadow: none;
    opacity: 0.6;
}

.empty-icon {
    font-size: 1.5rem;
    font-weight: 900;
    color: #64748b;
    margin-bottom: 0.2rem;
}

/* ==========================================================================
   LIST VIEW (ALTERNATIVE CARDS)
   ========================================================================== */
.team-section-box {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-title-row h2, .section-title-row h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.formation-grid, .bench-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.player-card {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.player-card:hover {
    background: #334155;
    transform: translateY(-2px);
}

.player-card.in-my-team-card {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(30, 41, 59, 1) 100%);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.player-position-pill {
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
}

.pos-gar { background: #b45309; color: #fef3c7; }
.pos-def { background: #1d4ed8; color: #dbeafe; }
.pos-mil { background: #047857; color: #d1fae5; }
.pos-att { background: #b91c1c; color: #fee2e2; }

.player-details h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.player-club {
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
    font-weight: 600;
}

.player-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: #34d399;
}

/* ==========================================================================
   MATCHS J10 TAB
   ========================================================================== */
.matchs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
}

.match-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    transform: translateY(-2px);
    border-color: #475569;
}

.match-card.has-my-players {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #1e293b, #111e38);
}

.match-my-players-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: #2563eb;
    color: white;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.35rem 0.9rem;
    border-bottom-left-radius: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.match-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.match-teams-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    text-align: center;
    margin-bottom: 1.4rem;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.match-team img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: #1e293b;
    padding: 4px;
    border: 1px solid #475569;
}

.match-team span {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.match-vs {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: #64748b;
}

.match-probs-bar {
    display: flex;
    height: 10px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: #1e293b;
    border: 1px solid #334155;
}

.prob-fill-home { background: #2563eb; }
.prob-fill-draw { background: #64748b; }
.prob-fill-away { background: #9333ea; }

.match-probs-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 800;
    color: #cbd5e1;
    margin-top: 0.5rem;
}

/* ==========================================================================
   MERCATO & SUGGESTIONS TAB
   ========================================================================== */
.market-controls-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #090e1a;
    border: 2px solid #334155;
    border-radius: var(--radius-md);
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.2rem;
}

.search-input-wrap input {
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    outline: none;
}

.market-filters-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #cbd5e1;
    margin-right: 0.6rem;
}

.filter-group select, .form-input {
    background: #1e293b;
    border: 1px solid #475569;
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    outline: none;
}

.suggestions-section-card, .players-list-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.suggestions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.suggestion-card {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: var(--radius-md);
    padding: 1.2rem;
}

.suggestion-card.sell { border-left: 6px solid var(--danger); }
.suggestion-card.buy { border-left: 6px solid var(--emerald-light); }

/* ==========================================================================
   SETTINGS & CARDS
   ========================================================================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.setting-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
}

.setting-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.setting-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1.2rem;
}

.rules-list {
    list-style: none;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.rules-list li strong { color: #fbbf24; }

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: #0f172a;
    border: 2px solid #475569;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.75rem;
    cursor: pointer;
    color: #94a3b8;
}
.modal-close:hover { color: white; }

/* Modal Sync & Raisonnement Playwright */
.modal-sync-reasoning {
    max-width: 650px;
    background: #0d1527;
    border: 2px solid #3b82f6;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.3);
}

.sync-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1e293b;
}

.sync-modal-icon {
    font-size: 2.2rem;
}

.sync-step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    background: #111c33;
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    animation: fadeIn 0.3s ease;
}

.sync-step-item.success {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), #111c33);
}

.sync-step-item.loading {
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), #111c33);
}

.step-icon-wrap {
    font-size: 1.25rem;
    line-height: 1;
}

.step-content-wrap h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.step-content-wrap p {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
    border-top: 2px solid #1e293b;
    background: #090e1a;
    padding: 2.5rem;
    text-align: center;
    margin-top: auto;
}

.app-footer p {
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 600;
}

.footer-sub {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.5rem;
}

/* ==========================================================================
   STATISTIQUES TAB & LIGUE MOGETTES85-31
   ========================================================================== */
.stats-league-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #1e293b 100%);
    border: 3px solid #6366f1;
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
    margin-bottom: 2rem;
}

.league-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.league-icon-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.league-big-trophy {
    font-size: 2.75rem;
}

.league-name-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.league-desc-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-top: 0.2rem;
}

.league-badge-pill {
    background: #0f172a;
    border: 2px solid #818cf8;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.rank-large-highlight {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: #fbbf24;
    line-height: 1;
}

.points-sub-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #a5b4fc;
    margin-top: 0.2rem;
}

.league-presentation-quote {
    background: rgba(0, 0, 0, 0.35);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-style: italic;
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.stats-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stats-card-box {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.stats-card-box h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.position-stat-item, .club-stat-item {
    margin-bottom: 1rem;
}

.pos-stat-header, .club-stat-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.pos-progress-track, .club-progress-track {
    width: 100%;
    height: 10px;
    background: #0f172a;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid #334155;
}

.pos-progress-fill, .club-progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   HISTORIQUE TAB
   ========================================================================== */
.history-filter-pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.filter-pill {
    background: #1e293b;
    border: 1px solid #475569;
    color: #cbd5e1;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill:hover { background: #334155; color: white; }
.filter-pill.active { background: #2563eb; color: white; border-color: #3b82f6; }

.history-table-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    overflow-x: auto;
    box-shadow: var(--shadow-card);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.history-table th {
    background: #090e1a;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.2rem;
    border-bottom: 2px solid #334155;
}

.history-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #1e293b;
    color: #e2e8f0;
    font-weight: 500;
}

.history-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.decision-type-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    display: inline-block;
}

.badge-captain { background: #451a03; color: #fde047; border: 1px solid #ca8a04; }
.badge-supersub { background: #3b0764; color: #d8b4fe; border: 1px solid #9333ea; }
.badge-transfer { background: #064e3b; color: #6ee7b7; border: 1px solid #059669; }

/* ==========================================================================
   LIGUE MOGETTES85-31 ENRICHIE (TABLEAUX, FACE-À-FACE, CAPITAINES)
   ========================================================================== */
.league-tabs-nav {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.league-tab-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.league-tab-btn:hover {
    background: #334155;
    color: #ffffff;
    border-color: #64748b;
}

.league-tab-btn.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border-color: #818cf8;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.league-view-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.league-view-panel.active {
    display: block;
}

.league-card-container {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    overflow-x: auto;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}

.league-table th {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 2px solid #334155;
    white-space: nowrap;
}

.league-table td {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #1e293b;
    vertical-align: middle;
    white-space: nowrap;
}

.league-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.08);
}

.league-table tr.my-team-row {
    background: rgba(99, 102, 241, 0.16) !important;
    border-left: 4px solid #6366f1;
}

.rank-cell-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.95rem;
}

.rank-1 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; box-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }
.rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #000; }
.rank-3 { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }
.rank-other { background: #1e293b; color: #cbd5e1; border: 1px solid #334155; }

/* Pastilles pour l'évolution J par J */
.rank-gw-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0 0.4rem;
    cursor: default;
    transition: transform 0.15s, box-shadow 0.15s;
}

.rank-gw-pill:hover {
    transform: scale(1.18);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.rank-gw-1 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; font-weight: 900; box-shadow: 0 0 8px rgba(245,158,11,0.3); }
.rank-gw-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #000; font-weight: 900; }
.rank-gw-3 { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; font-weight: 900; }
.rank-gw-mid { background: #1e293b; color: #cbd5e1; border: 1px solid #334155; }
.rank-gw-low { background: #0f172a; color: #64748b; border: 1px solid #1e293b; }

.delta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
}

.delta-up { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.delta-down { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.delta-eq { background: #1e293b; color: #94a3b8; }

.manager-title-cell {
    display: flex;
    flex-direction: column;
}

.manager-main-name {
    font-weight: 800;
    color: #ffffff;
    font-size: 0.95rem;
}

.team-sub-name {
    font-size: 0.8rem;
    color: #94a3b8;
}

.pts-highlight {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.05rem;
    color: #fbbf24;
}

.gw-cell-val {
    font-weight: 700;
    text-align: center;
}

.gw-best-score {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80 !important;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
}

/* Choix pertinents / Coups de génie */
.moves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.move-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: var(--radius-md);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.move-card:hover {
    transform: translateY(-2px);
    border-color: #6366f1;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.move-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.move-manager {
    font-weight: 800;
    color: #ffffff;
    font-size: 0.95rem;
}

.move-pts-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 900;
    font-size: 0.85rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
}

.move-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Face-à-Face Direct */
.h2h-selector-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: #0f172a;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid #334155;
    margin-bottom: 1.5rem;
}

.h2h-select {
    background: #1e293b;
    border: 1px solid #475569;
    color: #ffffff;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    outline: none;
}

.h2h-score-banner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(135deg, #1e1b4b, #1e293b);
    border: 2px solid #6366f1;
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
}

.h2h-side {
    display: flex;
    flex-direction: column;
}

.h2h-side.right {
    align-items: flex-end;
    text-align: right;
}

.h2h-manager-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
}

.h2h-team-sub {
    font-size: 0.9rem;
    color: #94a3b8;
}

.h2h-score-val {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fbbf24;
    margin-top: 0.4rem;
}

.h2h-vs-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.h2h-vs-badge {
    background: #6366f1;
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}

.h2h-bilan-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
}

.h2h-duel-item {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.h2h-duel-result-win {
    border-left: 4px solid #10b981;
}

.h2h-duel-result-loss {
    border-left: 4px solid #ef4444;
}

.h2h-duel-result-draw {
    border-left: 4px solid #f59e0b;
}

.duel-badge {
    font-weight: 900;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.duel-win { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.duel-loss { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.duel-draw { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

/* ==========================================================================
   TROPHÉES & DISTINCTIONS DE LA LIGUE (AWARDS & RIVALITÉS CROISÉES)
   ========================================================================== */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.award-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid #334155;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.award-card:hover {
    transform: translateY(-4px);
    border-color: #818cf8;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.25);
}

.award-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.award-icon-box {
    font-size: 2.2rem;
    line-height: 1;
}

.award-title-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.award-winner-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fbbf24;
    margin-top: 0.4rem;
}

.award-winner-team {
    font-size: 0.8rem;
    color: #94a3b8;
}

.award-metric-pill {
    background: #0f172a;
    border: 1px solid #334155;
    color: #38bdf8;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-top: 0.5rem;
}

.award-desc-text {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-top: 0.75rem;
    border-top: 1px solid #1e293b;
    padding-top: 0.6rem;
}

.rivalry-lead-cell {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-weight: 800;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    display: inline-block;
}

.rivalry-trail-cell {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-weight: 800;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    display: inline-block;
}

.rivalry-eq-cell {
    background: #1e293b;
    color: #94a3b8;
    font-weight: 700;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    display: inline-block;
}

/* ==========================================================================
   DREAM TEAM (11 TYPE DE LA LIGUE MOGETTES85-31)
   ========================================================================== */
.dream-team-stadium {
    background: #0f172a;
    border: 2px solid #6366f1;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}

.dream-team-pitch {
    background: repeating-linear-gradient(
        180deg,
        rgba(5, 150, 105, 0.45) 0px,
        rgba(5, 150, 105, 0.45) 40px,
        rgba(4, 120, 87, 0.45) 40px,
        rgba(4, 120, 87, 0.45) 80px
    );
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    padding: 1.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 520px;
}

.dream-team-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.5rem;
}

.dream-player-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid #e2e8f0;
    width: 96px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.dream-player-card:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: #6366f1;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.dream-player-name {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 86px;
}

.dream-player-club {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
}

.dream-player-pts {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 900;
    color: #d97706;
    background: #fef3c7;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .dream-team-pitch {
        min-height: 420px;
        padding: 0.85rem 0.25rem;
    }
    .dream-player-card {
        width: 68px;
        padding: 0.35rem 0.25rem;
    }
    .dream-player-name {
        max-width: 60px;
        font-size: 0.68rem;
    }
    .dream-player-club {
        display: none;
    }
    .dream-player-pts {
        font-size: 0.65rem;
    }
}

/* ==========================================================================
   AUTHENTIFICATION & GESTION DES MEMBRES MOGETTES
   ========================================================================== */
.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: var(--radius-full);
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.user-profile-badge:hover {
    background: #334155;
    border-color: #818cf8;
    transform: translateY(-1px);
}

.user-avatar-icon {
    font-size: 1.25rem;
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-profile-name {
    font-weight: 800;
    color: #ffffff;
    font-size: 0.85rem;
}

.user-profile-role {
    font-size: 0.75rem;
    color: #94a3b8;
}

.user-switch-icon {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-left: 0.25rem;
}

/* Masquage strict des fonctionnalités Admin pour les membres invités */
body.member-view [data-auth="admin"],
body.member-view .admin-only {
    display: none !important;
}

/* Modal de connexion */
.login-modal-card {
    background: #0f172a;
    border: 2px solid #6366f1;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.35);
}

.login-form-group {
    margin-bottom: 1.25rem;
}

.login-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.login-input {
    width: 100%;
    background: #1e293b;
    border: 1px solid #475569;
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.login-input:focus {
    border-color: #818cf8;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
/* ==========================================================================
   FICHE JOUEUR ENRICHIE (MAXIFOOT + LCDE + PRÉSENCE LIGUE)
   ========================================================================== */
.modal-player-details {
    max-width: 680px !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem 2rem;
}

.player-detail-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.player-detail-crest {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
    border: 2px solid #334155;
    flex-shrink: 0;
}

.player-detail-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}

.player-detail-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.player-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a5b4fc;
    margin: 1.25rem 0 0.6rem 0;
}

.player-stats-quad-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.player-stat-tile {
    background: #090e1a;
    border: 1px solid #1e293b;
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.5rem;
    text-align: center;
}

.player-stat-tile-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.2rem;
}

.player-stat-tile-val {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
}

.forme-badges-wrap {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.forme-badge-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.8rem;
}

.forme-titu { background: #059669; color: #fff; }
.forme-remp { background: #d97706; color: #fff; }
.forme-abs { background: #334155; color: #94a3b8; }

.recent-match-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #090e1a;
    border: 1px solid #1e293b;
    border-radius: var(--radius-sm);
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
}

@media (max-width: 640px) {
    .modal-player-details {
        padding: 1.25rem 1rem;
    }
    .player-stats-quad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.live-gw-card {
    border-color: #6366f1 !important;
    background: linear-gradient(135deg, #1e1b4b, #111a2e) !important;
}

.live-pts-val {
    font-family: var(--font-heading);
    font-weight: 900;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETTES & MOBILES HAUTE ADAPTABILITÉ)
   ========================================================================== */

/* 1. TABLETTES & PETITS ÉCRANS (MAX 1024px) */
@media (max-width: 1024px) {
    .header-container {
        padding: 1.25rem 1.5rem;
    }
    .main-content {
        padding: 1.25rem 1.5rem;
    }
    .stats-overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    .pitch-stadium {
        padding: 1.25rem;
    }
    .pitch-player-card {
        width: 100px;
    }
    .player-main-name {
        max-width: 85px;
        font-size: 0.85rem;
    }
}

/* 2. SMARTPHONES & FORMATS MOBILES (MAX 768px) */
@media (max-width: 768px) {
    /* Header & Branding */
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
    }
    .header-brand {
        justify-content: flex-start;
        gap: 0.75rem;
    }
    .brand-logo-wrap {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    .lcde-logo {
        width: 28px;
        height: 28px;
    }
    .brand-title-row h1 {
        font-size: 1.35rem;
    }
    .subtitle {
        font-size: 0.78rem;
    }

    /* Actions du Header (Countdown & Profil) */
    .header-container > div:last-child {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        width: 100%;
    }
    .deadline-banner {
        width: 100%;
        justify-content: space-between;
        padding: 0.6rem 0.9rem;
    }
    .deadline-match {
        display: none;
    }
    .deadline-timer {
        font-size: 1.15rem;
    }
    .user-profile-badge {
        width: 100%;
        justify-content: space-between;
        padding: 0.55rem 1rem;
    }

    /* Navigation Tabs défilante horizontalement */
    .nav-container {
        padding: 0;
    }
    .nav-tabs {
        padding: 0 0.75rem;
        gap: 0.35rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .nav-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 0.75rem 0.85rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    /* Contenu principal */
    .main-content {
        padding: 0.75rem;
    }

    /* Métriques Overview */
    .stats-overview-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    .metric-card {
        padding: 1rem 1.15rem;
    }
    .metric-main-value {
        font-size: 1.8rem;
    }

    /* Barre d'action d'équipe */
    .team-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
    }
    .action-left {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .btn-primary-action, .btn-secondary-action, .btn-outline-action {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    .action-right {
        width: 100%;
    }
    .view-switch-group {
        width: 100%;
    }
    .view-switch-btn {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }

    /* Terrain de Football (Haute Lisibilité Mobile) */
    .pitch-stadium {
        padding: 0.65rem 0.45rem;
        border-radius: var(--radius-md);
        border-width: 2px;
    }
    .soccer-pitch {
        min-height: 560px;
        padding: 1.25rem 0.35rem;
        border-width: 3px;
    }
    .pitch-formation-grid {
        min-height: 520px;
        gap: 0.85rem;
    }
    .pitch-line-row {
        gap: 0.3rem;
        justify-content: space-evenly;
    }
    .pitch-player-card {
        width: 78px;
    }
    .pitch-card-inner {
        padding: 0;
        border-radius: 6px;
    }
    .pitch-player-top {
        padding: 0.2rem 0.3rem;
    }
    .pitch-pos-tag {
        font-size: 0.6rem;
        padding: 1px 3px;
        border-radius: 3px;
    }
    .pitch-club-crest {
        width: 18px;
        height: 18px;
    }
    .pitch-club-abbr {
        font-size: 0.65rem;
    }
    .player-main-name {
        max-width: 66px;
        font-size: 0.72rem;
        line-height: 1.1;
    }
    .player-club-sub {
        font-size: 0.62rem;
    }
    .pitch-player-price-bar {
        margin-top: 0.2rem;
        padding: 0.2rem 0;
    }
    .price-val {
        font-size: 0.68rem;
        padding: 1px 4px;
    }
    .captain-flag-banner {
        font-size: 0.55rem;
        padding: 1px 4px;
        top: -10px;
    }

    /* Banc de touche (Dugout) */
    .bench-dugout-container {
        padding: 1rem;
        margin-top: 1rem;
    }
    .bench-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    .bench-seat-card {
        padding: 0.65rem 0.5rem;
    }
    .bench-seat-card .bench-player-name {
        font-size: 0.78rem;
    }

    /* Section Ligue MOGETTES85-31 */
    .stats-league-box {
        padding: 1.25rem 1rem;
        margin-bottom: 1.25rem;
    }
    .league-box-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }
    .league-icon-title {
        gap: 0.75rem;
    }
    .league-big-trophy {
        font-size: 2.2rem;
    }
    .league-name-text {
        font-size: 1.3rem;
    }
    .league-desc-text {
        font-size: 0.8rem;
    }
    .league-box-header > div:last-child {
        width: 100%;
        justify-content: space-between;
    }
    .rank-large-highlight {
        font-size: 1.8rem;
    }
    .league-presentation-quote {
        font-size: 0.85rem;
        padding: 0.75rem 0.9rem;
    }

    /* Sous-onglets Ligue avec scroll tactile */
    .league-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.4rem;
        margin: 1rem 0;
        padding-bottom: 0.5rem;
    }
    .league-tabs-nav::-webkit-scrollbar { display: none; }
    .league-tab-btn {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
    }

    /* Tableaux scrollables */
    .league-card-container {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }
    .league-table th, .league-table td {
        padding: 0.65rem 0.65rem;
        font-size: 0.82rem;
    }
    .manager-main-name {
        font-size: 0.85rem;
    }
    .team-sub-name {
        font-size: 0.72rem;
    }

    /* Bannière Face-à-Face (H2H) */
    .h2h-score-banner {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem 1rem;
        text-align: center;
    }
    .h2h-side {
        align-items: center;
        text-align: center;
    }
    .h2h-side.right {
        align-items: center;
        text-align: center;
    }
    .h2h-manager-name {
        font-size: 1.2rem;
    }
    .h2h-score-val {
        font-size: 1.8rem;
    }
    .h2h-duel-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
        padding: 0.75rem 0.9rem;
    }
    .h2h-duel-item > div:nth-child(2) {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    /* Modal de connexion */
    .login-modal-card {
        padding: 1.5rem 1.25rem;
        max-width: 94vw;
        border-radius: var(--radius-md);
    }
}

/* 3. ULTRA-COMPACT (SMARTPHONES < 480px, iPhone SE & Android) */
@media (max-width: 480px) {
    .header-container {
        padding: 0.65rem 0.75rem;
    }
    .brand-title-row h1 {
        font-size: 1.2rem;
    }
    .brand-title-row .badge-tag {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    /* Terrain de foot ultra compact : 5 défenseurs tiennent sans déborder */
    .soccer-pitch {
        min-height: 490px;
        padding: 1rem 0.2rem;
    }
    .pitch-formation-grid {
        min-height: 460px;
        gap: 0.65rem;
    }
    .pitch-player-card {
        width: 62px;
    }
    .pitch-pos-tag {
        font-size: 0.52rem;
        padding: 1px 2px;
    }
    .pitch-club-crest {
        width: 15px;
        height: 15px;
    }
    .player-main-name {
        max-width: 52px;
        font-size: 0.66rem;
    }
    .player-club-sub {
        display: none;
    }
    .price-val {
        font-size: 0.62rem;
        padding: 1px 3px;
    }
    .captain-flag-banner {
        font-size: 0.48rem;
        padding: 1px 3px;
        top: -8px;
    }

    /* Banc 2 colonnes compactes */
    .bench-slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
    }
    .bench-seat-card {
        padding: 0.5rem 0.35rem;
    }
    .bench-seat-card .bench-player-name {
        font-size: 0.72rem;
    }

    /* Grille des choix pertinents & cartes */
    .moves-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .move-card {
        padding: 0.9rem;
    }
}
