/* ==========================================================================
   STYLES DÉDIÉS - PAGE SUIVI DES JOUEURS (PROGRESSIONS)
   ========================================================================== */

/* --- CORE & STYLES GLOBAUX PARTAGÉS --- */
:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --bg-gradient: radial-gradient(ellipse at top, hsl(228, 15%, 12%), #10121B);
    --container-bg: rgba(28, 32, 44, 0.65);
    --container-border: rgba(255, 255, 255, 0.1);
    
    --accent-color: #fefc54; /* Jaune vif */
    --accent-color-hover: #ffff8c; /* Jaune plus clair */
    --accent-color-active: #e6e34b; /* Jaune légèrement plus foncé */
    --accent-glow: rgba(254, 252, 84, 0.25); /* Ombre lumineuse jaune */
    
    --text-primary: #eef2f7; /* Texte principal clair */
    --text-secondary: #9aa5b8; /* Texte secondaire gris-bleu */
    --text-placeholder: #6c788e; /* Texte placeholder gris */
    
    --interactive-bg: rgba(255, 255, 255, 0.04); /* Fond des éléments interactifs */
    --interactive-bg-hover: rgba(255, 255, 255, 0.08); /* Fond au survol */
    --interactive-border: rgba(255, 255, 255, 0.12); /* Bordure des éléments interactifs */
    
    --table-header-bg: rgba(255, 255, 255, 0.05); /* Fond des entêtes de tableau */
    --table-row-hover-bg: rgba(255, 255, 255, 0.03); /* Fond des lignes au survol */
    --table-cell-border: rgba(255, 255, 255, 0.1); /* Bordure des cellules de tableau */

    --color-win-bg: rgba(20, 160, 120, 0.1); /* Fond victoire (vert) */
    --color-win-border: #14a078; /* Bordure victoire */
    --color-loss-bg: rgba(220, 50, 80, 0.1); /* Fond défaite (rouge) */
    --color-loss-border: #dc3250; /* Bordure défaite */
    --color-draw-bg: rgba(200, 200, 210, 0.05); /* Fond nul (gris) */
    --color-draw-border: #8892a1; /* Bordure nul */
    --data-bar-bg: linear-gradient(90deg, hsla(61, 100%, 50%, 0.35), hsla(61, 100%, 50%, 0.1)); /* Fond des barres de données */
    
    --color-rating-excellent: var(--accent-color); /* Note excellente */
    --color-rating-good: #14a078; /* Note bonne (vert) */
    --color-rating-average: #ffb86c; /* Note moyenne (orange) */
    --color-rating-poor: #dc3250; /* Note mauvaise (rouge) */
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.3s ease-in-out;
}

/* --- STYLES DU LOADER --- */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(16, 18, 27, 0.9);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
.loader-overlay.active { 
    opacity: 1; 
    pointer-events: all; 
}
.loader {
    border: 5px solid rgba(243, 243, 243, 0.3);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%; width: 50px; height: 50px;
    animation: spin 1s linear infinite;
}
.loader-text { 
    color: var(--text-secondary); 
    margin-top: 15px; 
    font-size: 1em; 
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- STYLES DE BASE MODERNISÉS --- */
html {
    height: 100%;
}
body {
    font-family: var(--font-family); 
    margin: 0; 
    padding: 10px;
    background-color: #10121B;
    background-image: radial-gradient(hsla(61, 100%, 50%, 0.08) 1px, transparent 1px);
    background-size: 25px 25px;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}
.container {
    background: var(--container-bg); 
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 1px var(--container-border);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    max-width: 98%;
    margin: 0 auto;
    transition: opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 20px);
}
main, .view-progression-advanced {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* --- SYSTÈME D'ONGLETS --- */
.app-tabs-container {
    display: flex; 
    margin-bottom: 25px; 
    border-bottom: 1px solid var(--interactive-border);
    flex-shrink: 0;
}
.app-tab {
    padding: 12px 20px; 
    cursor: pointer; 
    color: var(--text-secondary);
    font-weight: 500; 
    border-bottom: 3px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    position: relative; 
    top: 1px;
    text-decoration: none;
    white-space: nowrap;
}
.app-tab.active {
    color: var(--accent-color); 
    font-weight: 600; 
    border-bottom-color: var(--accent-color);
}
.app-tab:hover:not(.active) { 
    color: var(--text-primary); 
}
.tab-content { 
    display: none; 
    flex-grow: 1;
    flex-direction: column;
    min-height: 0;
}
.tab-content.active { 
    display: flex;
    animation: fadeIn 0.5s ease-in-out; 
}
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}
.tab-name-short { 
    display: none; 
}
.tab-name-long { 
    display: block; 
}

/* --- BOUTONS ET CONTRÔLES --- */
button, .button {
    transition: all var(--transition-fast);
}
.toggle-filters-btn, #dm-fetch-button, #dm-analyze-button {
    padding: 10px 20px; 
    background: var(--accent-color); 
    color: #050a14;
    border: none; 
    border-radius: var(--radius-md); 
    cursor: pointer;
    font-size: 0.9em; 
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
    height: 42px;
    box-sizing: border-box;
    white-space: nowrap;
}
.toggle-filters-btn:hover, #dm-fetch-button:hover, #dm-analyze-button:hover {
    background-color: var(--accent-color-hover); 
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-glow), 0 4px 10px rgba(0,0,0,0.2);
}
.toggle-filters-btn:active, #dm-fetch-button:active, #dm-analyze-button:active {
    background-color: var(--accent-color-active); 
    transform: translateY(0);
    box-shadow: 0 0 5px var(--accent-glow);
}
#dm-analyze-button:disabled, .analyze-opponent-matches-btn:disabled {
    background: var(--interactive-bg-hover); 
    color: var(--text-secondary);
    cursor: not-allowed; 
    box-shadow: none; 
    transform: none;
}
.action-button-discreet, .filter-buttons-panel-top button {
    padding: 6px 12px; 
    font-size: 0.8em;
    background: var(--interactive-bg); 
    color: var(--text-secondary);
    border: 1px solid var(--interactive-border);
    border-radius: var(--radius-md); 
    font-weight: 500;
}
.action-button-discreet:hover, .filter-buttons-panel-top button:hover {
    background: var(--interactive-bg-hover); 
    color: var(--text-primary);
    border-color: var(--accent-color);
}
.filter-buttons-panel-top { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 15px; 
}

/* --- BARRE SUPÉRIEURE DES VUES --- */
.view-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--interactive-border);
    min-height: 38px;
    flex-wrap: wrap;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out, margin 0.3s ease-in-out, border 0.3s ease-in-out;
    flex-shrink: 0;
}
.view-top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    flex-wrap: wrap;
    min-width: 200px;
}
.view-top-bar-right {
    display: flex;
    align-items: center; 
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}
.ovr-tab, .perspective-selector label.perspective-button-label {
    padding: 8px 14px; 
    cursor: pointer; 
    border: 1px solid var(--interactive-border);
    margin-left: 5px;
    background-color: var(--interactive-bg); 
    color: var(--text-secondary);
    border-radius: var(--radius-md); 
    font-size: 0.9em; 
    white-space: nowrap; 
    font-weight: 500;
}
.ovr-tab:hover, .perspective-selector label.perspective-button-label:hover { 
    background-color: var(--interactive-bg-hover); 
    color: var(--text-primary); 
    border-color: var(--accent-color);
}
.ovr-tab.active, .perspective-selector input[type="radio"]:checked + label.perspective-button-label {
    background-color: var(--accent-color); 
    color: #050a14; 
    font-weight: 700; 
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}
.perspective-selector input[type="radio"] { 
    position: absolute; 
    opacity: 0; 
    width: 0; 
    height: 0; 
}
.ovr-tabs-container { 
    display: flex; 
    flex-wrap: nowrap; 
    justify-content: flex-end; 
}

/* --- LAYOUT GÉNÉRAL DE LA PAGE --- */
.main-content-area { 
    display: flex; 
    gap: 20px; 
    align-items: stretch; 
    margin-top:15px;
    position: relative;
    flex-grow: 1;
    min-height: 0;
}
.main-content-area.with-filters {
    gap: 0;
    transition: all var(--transition-smooth);
}

/* --- PANNEAU DE FILTRES LATÉRAL --- */
.filters-panel {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    background: hsl(228, 15%, 15%);
    padding: 20px; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--container-border); 
    overflow-y: auto;
    max-height: calc(100vh - 250px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}
.filters-panel.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.toggle-filters-btn.active {
    background-color: var(--accent-color-active);
    box-shadow: 0 0 10px var(--accent-glow);
}
.table-wrapper { 
    flex-grow: 1;
    overflow: auto;
    min-width: 0;
    min-height: 0;
    transition: margin-left var(--transition-smooth);
    border-radius: var(--radius-md); 
    display: flex;
    flex-direction: column;
}
.filter-panel-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: 10px; 
    margin-bottom: 12px; 
    border-bottom: 1px solid var(--interactive-border); 
}
.filters-panel h3, .filters-panel-collapsible .filters-panel-header h3 { 
    color: var(--text-primary); 
    font-size: 1em; 
    text-transform: uppercase; 
    letter-spacing: 0.8px; 
    margin: 0; 
    font-weight: 600; 
}
label.multiple-choice-label-inline { 
    align-items: center; 
    display: flex; 
    font-size: 0.9em; 
    color: var(--text-secondary); 
}
label.multiple-choice-label-inline input { 
    margin-right: 8px; 
}
.checkbox-list label, .checkbox-list-equipes-panel label {
    display: flex; 
    align-items: center; 
    margin-bottom: 2px;
    color: var(--text-secondary); 
    font-weight: 400; 
    font-size: 0.9em; 
    cursor: pointer;
    padding: 8px; 
    border-radius: var(--radius-md);
}
.checkbox-list label:hover, .checkbox-list-equipes-panel label:hover {
    background-color: var(--interactive-bg-hover); 
    color: var(--text-primary);
}
.checkbox-list input[type="checkbox"], 
.checkbox-list-equipes-panel input[type="checkbox"],
label.multiple-choice-label-inline input[type="checkbox"] { 
    margin-right: 10px;
    width: 1.2em;
    height: 1.2em;
    accent-color: var(--accent-color);
}
.placeholder-text { 
    text-align:center; 
    color: var(--text-secondary); 
    padding: 40px 20px; 
    font-style: italic; 
}

/* --- FILTRES SPÉCIFIQUES & INPUTS --- */
.recherche-filters-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--interactive-border); 
    margin-bottom: 20px;
    flex-shrink: 0;
}
.recherche-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}
.filter-item {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    min-width: 200px;
}
.filter-item.button-wrapper {
    flex-grow: 0; 
    flex-basis: auto; 
}
.filter-item h4, .dm-filter-group h4 {
    margin: 0 0 8px 0; 
    font-size: 0.8em; 
    color: var(--text-secondary); 
    font-weight: 500; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

#recherche-equipes-view input[type="text"],
#derniers-matchs-view input[type="number"],
#recherche-equipes-view input[type="number"] {
    padding: 10px 12px; 
    font-size: 0.9em; 
    border-radius: var(--radius-md);
    border: 1px solid var(--interactive-border); 
    background-color: var(--interactive-bg);
    color: var(--text-primary); 
    width: 100%; 
    box-sizing: border-box;
    height: 42px;
}
#recherche-equipes-view input[type="text"]:focus,
#derniers-matchs-view input[type="number"]:focus,
#recherche-equipes-view input[type="number"]:focus {
    outline: none; 
    border-color: var(--accent-color); 
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.dm-filter-group {
    display: flex; 
    flex-direction: column; 
    flex: 1 1 220px; 
    min-width: 180px;
}
.dm-actions-subgroup {
    display: flex; 
    gap: 10px; 
    align-items: center;
}

.radio-button-group {
    display: flex; 
    border-radius: var(--radius-md); 
    overflow: hidden;
    border: 1px solid var(--interactive-border); 
    width: 100%;
    height: 42px;
    box-sizing: border-box;
}
.radio-button-group input[type="radio"] { 
    position: absolute; 
    opacity: 0; 
}
.radio-button-group label {
    flex-grow: 1; 
    padding: 10px; 
    font-size: 0.85em; 
    text-align: center;
    cursor: pointer; 
    background-color: var(--interactive-bg);
    color: var(--text-secondary); 
    font-weight: 500; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    white-space: nowrap;
}
.radio-button-group label:not(:last-child) { 
    border-right: 1px solid var(--interactive-border); 
}
.radio-button-group input[type="radio"]:checked + label { 
    background-color: var(--accent-color); 
    color: #050a14; 
    font-weight: 700; 
}
.radio-button-group label:hover:not(input[type="radio"]:checked + label) { 
    background-color: var(--interactive-bg-hover); 
    color: var(--text-primary); 
}

#derniers-matchs-view .dm-selection-controls { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    padding: 10px 0; 
}

.input-with-stepper-container {
    display: flex; 
    align-items: center; 
    border: 1px solid var(--interactive-border);
    border-radius: var(--radius-md); 
    background-color: var(--interactive-bg);
    width: 100%; 
    box-sizing: border-box; 
    height: 42px;
}
.input-with-stepper-container:focus-within {
    border-color: var(--accent-color); 
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.input-with-stepper-container input[type="number"] {
    -moz-appearance: textfield; 
    flex-grow: 1; 
    border: none; 
    background: transparent;
    padding: 10px 12px; 
    color: var(--text-primary); 
    font-size: 0.9em; 
    width: 100%;
}
.input-with-stepper-container input[type="number"]::-webkit-outer-spin-button, 
.input-with-stepper-container input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; 
    margin: 0;
}
.input-with-stepper-container input[type="number"]:focus { 
    outline: none; 
}
.stepper-buttons { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    padding-right: 5px; 
}
.stepper-btn {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background-color: transparent;
    border: none; 
    color: var(--text-secondary); 
    cursor: pointer; 
    padding: 2px 4px; 
    height: 50%;
}
.stepper-btn:hover { 
    color: var(--text-primary); 
}

/* --- SÉLECTEURS SUPÉRIEURS (PÉRIODE, CATÉGORIE D'ÂGE) --- */
#season-selector, .season-selector-clone {
    display: flex; 
    border-radius: var(--radius-md); 
    overflow: hidden;
    background-color: var(--interactive-bg); 
    border: 1px solid var(--interactive-border);
}
#season-selector input[type="radio"], .season-selector-clone input[type="radio"] { 
    position: absolute; 
    opacity: 0; 
}
#season-selector label, .season-selector-clone label {
    padding: 10px 20px; 
    cursor: pointer; 
    color: var(--text-secondary); 
    font-size: 0.9em; 
    font-weight: 500;
}
#season-selector label:not(:last-of-type), .season-selector-clone label:not(:last-of-type) {
    border-right: 1px solid var(--interactive-border);
}
#season-selector label:hover, .season-selector-clone label:hover {
    background-color: var(--interactive-bg-hover); 
    color: var(--text-primary);
}
#season-selector input[type="radio"]:checked + label, 
.season-selector-clone input[type="radio"]:checked + label {
    background-color: var(--accent-color); 
    color: #050a14; 
    font-weight: 700;
}
.season-name-short { 
    display: none; 
}
.season-name-long { 
    display: block; 
}

/* --- TABLEAU PRINCIPAL DES JOUEURS --- */
table { 
    width: 100%; 
    border-collapse: separate;
    border-spacing: 0; 
    font-size: 0.9em; 
    table-layout: fixed;
} 
table.table-adaptive {
    table-layout: auto;
}
thead { 
    position: sticky; 
    top: 0; 
    z-index: 10; 
    background-color: #121620;
}
th { 
    background-color: var(--table-header-bg); 
    color: var(--text-secondary); 
    padding: 4px 8px;
    text-transform: uppercase; 
    font-size: 0.75em; 
    font-weight: 600; 
    letter-spacing: 0.5px; 
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--table-cell-border);
    border-left: 1px solid var(--table-cell-border);
    text-align: center;
    white-space: nowrap;
}
th:first-child {
    border-left: none;
}
th[rowspan="2"] {
    vertical-align: middle;
}
th[data-tooltip-text] { 
    cursor: help; 
}
th:first-child { 
    border-radius: var(--radius-md) 0 0 0; 
}
th:last-child { 
    border-radius: 0 var(--radius-md) 0 0; 
}
th[aria-sort]::after {
    content: ''; 
    position: absolute; 
    right: 8px; 
    top: 50%;
    transform: translateY(-50%); 
    width: 0; 
    height: 0;
    border-left: 5px solid transparent; 
    border-right: 5px solid transparent;
    opacity: 0.5; 
    transition: opacity var(--transition-fast);
}
th[aria-sort]:hover::after { 
    opacity: 1; 
}
th[aria-sort="ascending"]::after { 
    border-bottom: 5px solid var(--text-primary); 
    opacity: 1; 
}
th[aria-sort="descending"]::after { 
    border-top: 5px solid var(--text-primary); 
    opacity: 1; 
}
tbody tr:hover { 
    background-color: var(--table-row-hover-bg); 
}
td { 
    border-bottom: 1px solid var(--table-cell-border); 
    border-left: 1px solid var(--table-cell-border);
    padding: 4px 6px;
    text-align: center; 
    vertical-align: middle; 
    white-space: nowrap;
}
td:first-child {
    border-left: none;
}

.data-bar-cell { 
    padding: 0;
    position: relative; 
} 
.data-bar-cell > span { 
    position: relative; 
    z-index: 1; 
    display: block;
    padding: 4px 6px;
} 
.data-bar { 
    position: absolute; 
    left: 0; 
    top: 0; 
    height: 100%; 
    background: var(--data-bar-bg); 
    z-index: 0; 
    transition: width 0.3s ease-in-out; 
}

td > span {
    padding: 0;
}
td > a,
td > button {
    display: block;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-align: center;
    width: 100%;
    color: inherit;
}
td > a {
    color: var(--accent-color);
    font-weight: 500;
    text-decoration: none;
    padding: 4px 6px;
}
td > a:hover {
    color: var(--accent-color-hover);
    text-decoration: underline;
}
.cell-action-button {
    color: var(--text-primary);
    font-weight: 400;
    padding: 4px 6px;
}
.cell-action-button:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
td .action-button-discreet {
    display: inline-block;
    width: auto;
    padding: 6px 12px;
    font-size: 0.8em;
    background: var(--interactive-bg);
    color: var(--text-secondary);
    border: 1px solid var(--interactive-border);
    border-radius: var(--radius-md);
    font-weight: 500;
}
td .action-button-discreet:hover {
    color: var(--text-primary);
    background: var(--interactive-bg-hover);
    border-color: var(--accent-color);
    text-decoration: none;
}

/* --- STYLES SPÉCIFIQUES AUX PROGRESSIONS --- */
#progressions-content-area table th,
#progressions-24h-content-area table th {
    font-size: 0.9em; 
    font-weight: 700;
    letter-spacing: 0.6px;
}

#progressions-content-area table td,
#progressions-24h-content-area table td {
    font-size: 1.25em; 
    font-weight: 400;
}
#progressions-content-area thead tr:last-child th,
#progressions-24h-content-area thead tr:last-child th {
    font-size: 0.7em; 
    font-weight: 600;
}

.prog-up {
    color: var(--accent-color);
    font-weight: 600;
}

#progressions-content-area table,
#progressions-24h-content-area table {
    border-collapse: collapse;
}

#progressions-content-area th, #progressions-content-area td {
    border-left: none;
    border-right: none;
}

/* MODIFICATION START: Séparateurs de colonnes (version finale 3.2) */
/* Supprimer toutes les anciennes règles pour éviter les conflits */
#progressions-content-area td, #progressions-content-area th {
    border-left: none;
    border-right: none;
}

/* 1. Appliquer une bordure noire de 1.51px à DROITE des colonnes ENFANTS de l'en-tête */
#progressions-content-area thead tr:last-child th:nth-child(8),  /* Prog. P1 */
#progressions-content-area thead tr:last-child th:nth-child(9),  /* Prog. P1 */
#progressions-content-area thead tr:last-child th:nth-child(11), /* Prog. P2 */
#progressions-content-area thead tr:last-child th:nth-child(12), /* Prog. P2 */
#progressions-content-area thead tr:last-child th:nth-child(14), /* Prog. P3 */
#progressions-content-area thead tr:last-child th:nth-child(15), /* Prog. P3 */
#progressions-content-area thead tr:last-child th:nth-child(17), /* Actuel Vitesse */
#progressions-content-area thead tr:last-child th:nth-child(19), /* Actuel Tir */
#progressions-content-area thead tr:last-child th:nth-child(21), /* Actuel Passes */
#progressions-content-area thead tr:last-child th:nth-child(23), /* Actuel Dribbles */
#progressions-content-area thead tr:last-child th:nth-child(25), /* Actuel Défense */
#progressions-content-area thead tr:last-child th:nth-child(27)  /* Actuel Physique */
{
    border-right: 1.51px solid black;
}

/* 2. Remplacer cette bordure par une bordure JAUNE pour les colonnes PARENTS et UNIQUES (en-têtes ET cellules) */
#progressions-content-area th:nth-child(1), #progressions-content-area td:nth-child(1),
#progressions-content-area th:nth-child(2), #progressions-content-area td:nth-child(2),
#progressions-content-area th:nth-child(3), #progressions-content-area td:nth-child(3),
#progressions-content-area th:nth-child(4), #progressions-content-area td:nth-child(4),
#progressions-content-area th:nth-child(5), #progressions-content-area td:nth-child(5),
#progressions-content-area th:nth-child(6), #progressions-content-area td:nth-child(6),
#progressions-content-area th:nth-child(7), #progressions-content-area td:nth-child(7),
#progressions-content-area th:nth-child(10), #progressions-content-area td:nth-child(10),
#progressions-content-area th:nth-child(13), #progressions-content-area td:nth-child(13),
#progressions-content-area th:nth-child(16), #progressions-content-area td:nth-child(16),
#progressions-content-area th:nth-child(18), #progressions-content-area td:nth-child(18),
#progressions-content-area th:nth-child(20), #progressions-content-area td:nth-child(20),
#progressions-content-area th:nth-child(22), #progressions-content-area td:nth-child(22),
#progressions-content-area th:nth-child(24), #progressions-content-area td:nth-child(24),
#progressions-content-area th:nth-child(26), #progressions-content-area td:nth-child(26),
#progressions-content-area th:nth-child(28), #progressions-content-area td:nth-child(28),
#progressions-content-area th:nth-child(29), #progressions-content-area td:nth-child(29)
{
    border-right: 1.01px solid var(--accent-color) !important;
}

/* 3. Supprimer la bordure pour la toute dernière colonne */
#progressions-content-area th:last-child,
#progressions-content-area td:last-child {
    border-right: none !important;
}
/* MODIFICATION END */

#progressions-content-area thead tr:first-child th:nth-of-type(2) { width: 100px; }
#progressions-content-area thead tr:first-child th:nth-of-type(7) { width: 100px; }
#progressions-content-area thead tr:first-child th:nth-of-type(n+8):nth-of-type(-n+15) { width: 80px; }

#progressions-24h-content-area thead tr:first-child th:nth-of-type(2) { width: 100px; }
#progressions-24h-content-area thead tr:first-child th:nth-of-type(3) { width: 15%; }
#progressions-24h-content-area thead tr:first-child th:nth-of-type(7),
#progressions-24h-content-area thead tr:first-child th:nth-of-type(n+10) { width: 80px; }
#progressions-24h-content-area thead tr:first-child th:nth-of-type(8),
#progressions-24h-content-area thead tr:first-child th:nth-of-type(9) { width: 50px; }

#progressions-24h-content-area thead tr:last-child th:nth-child(1),
#progressions-24h-content-area tbody td:nth-child(7) { padding-right: 2px; }
#progressions-24h-content-area thead tr:last-child th:nth-child(2),
#progressions-24h-content-area tbody td:nth-child(8) { padding-left: 2px; }

/* --- PANNEAU DE FILTRES RÉTRACTABLE --- */
:root {
    --filters-width: 280px;
    --filters-padding: 20px;
    --filters-button-width: 30px;
}

.main-content-area.with-filters {
    position: relative;
}

/* Default styles for large screens (desktop/landscape) - positioning the button to the left of the table */
.toggle-filters-btn-collapsible {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 21;
    width: var(--filters-button-width);
    height: 42px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background-color: var(--interactive-bg);
    border: 1px solid var(--interactive-border);
    border-left: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.toggle-filters-btn-collapsible:hover {
    background-color: var(--interactive-bg-hover);
    border-color: var(--accent-color);
    transform: translateX(2px) translateY(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.toggle-filters-btn-collapsible:active {
    background-color: var(--interactive-bg-hover);
    transform: translateX(1px) translateY(-50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.toggle-filters-btn-collapsible .arrow-icon {
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    transform: rotate(45deg); /* Points right, indicating panel will open to the right */
    transition: all var(--transition-smooth);
}

.toggle-filters-btn-collapsible:hover .arrow-icon {
    border-color: var(--accent-color-hover);
    transform: rotate(45deg) scale(1.1);
}

/* When the filter panel is active, button moves to the right and arrow points left */
.filters-panel-collapsible.active + .toggle-filters-btn-collapsible {
    left: var(--filters-width);
    transform: translateY(-50%);
}

.filters-panel-collapsible.active + .toggle-filters-btn-collapsible .arrow-icon {
    transform: rotate(-135deg); /* Points left, indicating panel will close to the left */
}

/* Ensure the table wrapper properly adjusts when filter panel is active */
.main-content-area.with-filters > .table-wrapper {
    margin-left: 0; 
    transition: margin-left var(--transition-smooth), width var(--transition-smooth);
    width: 100%;
    border-radius: var(--radius-md);
    position: relative;
    z-index: 10; /* Behind the filter panel */
}

.filters-panel-collapsible.active ~ .table-wrapper {
    margin-left: calc(var(--filters-width));
    width: calc(100% - var(--filters-width));
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Ensure the filter panel overlays the table correctly */
.filters-panel-collapsible {
    flex-shrink: 0;
    width: var(--filters-width);
    background: linear-gradient(145deg, hsl(228, 15%, 16%), hsl(228, 15%, 14%));
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border: 1px solid var(--container-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 20;
    overflow-y: auto;
    transform: translateX(calc(-100% - 1px));
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    opacity: 0;
    height: 100%;
}

.filters-panel-collapsible.active {
    transform: translateX(0);
    opacity: 1;
    border-right: none;
}

.filters-panel-collapsible .filters-panel-header {
    padding: var(--filters-padding);
    padding-bottom: 20px;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, hsl(228, 15%, 16%) 0%, hsl(228, 15%, 15%) 100%);
    border-bottom: 1px solid var(--interactive-border);
    backdrop-filter: blur(8px);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters-panel-collapsible .filters-panel-header .clear-filters-btn {
    margin-left: auto;
}

.filters-panel-collapsible .filters-panel-content {
    padding: 0 var(--filters-padding) var(--filters-padding);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, hsl(228, 15%, 17%) 0%, hsl(228, 15%, 15%) 100%);
    border: 1px solid hsl(228, 15%, 20%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.filter-group:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: hsl(228, 15%, 25%);
}

.filter-group > label:not(.inline-checkbox) {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.filter-group input[type="text"],
.filter-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9em;
    border-radius: var(--radius-md);
    border: 2px solid var(--interactive-border);
    background: linear-gradient(145deg, var(--interactive-bg), hsl(228, 15%, 18%));
    color: var(--text-primary);
    box-sizing: border-box;
    transition: all var(--transition-fast);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
.filter-group input[type="text"]:focus,
.filter-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow), inset 0 1px 3px rgba(0, 0, 0, 0.1);
    background: var(--interactive-bg-hover);
    transform: translateY(-1px);
}
.min-max-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.min-max-group::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--interactive-border), transparent);
    margin: 0 8px;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.positions-grid label {
    display: block;
    padding: 8px 6px;
    font-size: 0.75em;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--interactive-bg), hsl(228, 15%, 20%));
    color: var(--text-secondary);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.positions-grid input {
    display: none;
}
.positions-grid input:checked + label {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-hover));
    color: #050a14;
    font-weight: 700;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.positions-grid label:hover:not(input:checked + label) {
    background: linear-gradient(135deg, var(--interactive-bg-hover), hsl(228, 15%, 25%));
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.positions-options, .filter-group .inline-checkbox {
    font-size: 0.85em;
    color: var(--text-secondary);
}
.positions-options label, .filter-group .inline-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.positions-options input[type="checkbox"],
.filter-group .inline-checkbox input[type="checkbox"] {
    accent-color: var(--accent-color);
}

.market-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, hsl(228, 15%, 17%) 0%, hsl(228, 15%, 15%) 100%);
    border: 1px solid hsl(228, 15%, 20%);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
}

.market-controls:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: hsl(228, 15%, 25%);
}

.market-controls h4 {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
}

.market-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.market-buttons button {
    padding: 8px 10px;
    font-size: 0.8em;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    width: 100%;
}

.action-button-primary {
    background: var(--accent-color);
    color: #050a14;
    border-color: var(--accent-color);
    grid-column: 1 / -1;
    font-weight: 600;
}
.action-button-primary:hover {
    background: var(--accent-color-hover);
}

.action-button-secondary {
    background: var(--interactive-bg-hover);
    color: var(--text-primary);
    border-color: var(--interactive-border);
}
.action-button-secondary:hover {
    border-color: var(--accent-color);
}

.market-controls .action-button-discreet {
    background: transparent;
    border-color: var(--interactive-border);
}

.market-status {
    font-size: 0.8em;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 5px;
    min-height: 1.2em;
}
.market-status .status-checking { color: var(--color-rating-average); }
.market-status .status-complete { color: var(--color-rating-good); }

/* --- MODE PLEIN ÉCRAN (IMMERSIVE MOBILE) --- */
.view-progression-advanced {
    position: relative;
}

.toggle-fullscreen-btn {
    position: absolute;
    top: calc(-25px + 1px);
    right: 10px;
    z-index: 50; 
    width: 32px;
    height: 32px;
    background-color: var(--interactive-bg);
    border: 1px solid var(--interactive-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: none; 
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    padding: 0;
}
.toggle-fullscreen-btn:hover {
    background-color: var(--interactive-bg-hover);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.arrow-icon-fullscreen {
    position: relative;
    width: 16px;
    height: 16px;
    border: none;
    color: var(--accent-color);
}

.toggle-fullscreen-btn:hover .arrow-icon-fullscreen {
    color: var(--accent-color-hover);
}

.arrow-icon-fullscreen::before,
.arrow-icon-fullscreen::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid currentColor;
    transition: all var(--transition-fast);
}

.arrow-icon-fullscreen::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.arrow-icon-fullscreen::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

body.fullscreen-active .arrow-icon-fullscreen::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-left: none;
    border-top: none;
}

body.fullscreen-active .arrow-icon-fullscreen::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(-4px, -4px);
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    border-right: none;
    border-bottom: none;
}

body.fullscreen-active .fullscreen-text::before {
    content: '';
}

/* Styles quand le mode plein écran est actif */
body.fullscreen-active {
    padding: 0;
    overflow: hidden; 
}
body.fullscreen-active .container {
    max-width: 100%;
    height: 100vh;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    background: var(--container-bg);
}
body.fullscreen-active .app-tabs-container:first-of-type,
body.fullscreen-active .view-top-bar {
    display: none;
}
body.fullscreen-active .view-progression-advanced {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}
body.fullscreen-active .main-content-area {
    flex-grow: 1;
    margin-top: 0;
    height: 100%;
}
body.fullscreen-active .table-wrapper {
    max-height: none;
    height: 100%;
    width: 100%;
}
body.fullscreen-active .toggle-fullscreen-btn {
    position: fixed;
    top: 5px;
    right: 5px;
}
body.fullscreen-active .main-content-area.with-filters > .table-wrapper {
    width: 100%;
    margin-left: 0 !important;
}
body.fullscreen-active .filters-panel-collapsible.active ~ .table-wrapper {
    width: calc(100% - var(--filters-width));
    margin-left: var(--filters-width) !important;
}

/* --- COMPOSANTS COMMUNS (Boutons, Tableaux Génériques) --- */
.custom-tooltip{
    position:fixed;background-color:var(--accent-color);color:#050a14;
    padding:6px 12px;border-radius:var(--radius-md);font-size:.85em;font-weight:500;
    line-height:1.4;max-width:250px;z-index:10001;pointer-events:none;
    opacity:0;transform:translateY(10px) scale(.95);
    transition:opacity .15s ease-out,transform .15s ease-out;
    box-shadow:0 4px 15px rgba(0,0,0,.3);
}
.custom-tooltip.visible{
    opacity:1;transform:translateY(0) scale(1)
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1200px) {
    .toggle-fullscreen-btn {
        display: flex;
    }
}

@media (max-width: 960px) {
}

@media (max-width: 768px) {
    body { padding: 10px; }
    .container { padding: 15px; }
    
    .app-tabs-container { 
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .app-tab { 
        flex-shrink: 0; 
    }

    .tab-name-long { display: none; }
    .tab-name-short { display: block; }

    .view-top-bar { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 10px;
    }
    .view-top-bar-left, .view-top-bar-right {
        justify-content: flex-start;
        width: 100%;
        gap: 10px;
    }
    .ovr-tabs-container {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .main-content-area { 
        flex-direction: column; 
        gap: 15px; 
    }
    
    .main-content-area .filters-panel {
        position: absolute;
        left: 0; right: 0; width: auto;
        top: 0; 
        max-width: none; 
        max-height: 60vh;
        transform: translateY(-10px);
    }
    .main-content-area .filters-panel.active {
        transform: translateY(0);
    }

    .table-wrapper {
        flex: 1; /* Use flex to take available space properly */
        overflow-x: auto;
        overflow-y: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        min-height: 0; /* Allow proper flexbox behavior */
    }
    
    #progressions-content-area table,
    #progressions-24h-content-area table {
        table-layout: auto;
    }

    #progressions-content-area table td, #progressions-content-area table th,
    #progressions-24h-content-area table td, #progressions-24h-content-area table th {
        white-space: nowrap;
    }

    .season-name-long { display: none; }
    .season-name-short { display: block; }
    #season-selector label, .season-selector-clone label { 
        padding: 8px 12px; 
        font-size: 0.9em;
    }
    
    .recherche-filters-container {
        margin-bottom: 15px;
    }
    .recherche-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-item {
        min-width: unset;
    }
    .dm-filter-group {
        min-width: unset;
    }
    .dm-actions-subgroup {
        flex-direction: column;
        align-items: stretch;
    }
    .dm-actions-subgroup button {
        width: 100%;
    }
    
    /* MODIFICATION START: Correctif du panneau de filtres en mode portrait (normal et plein écran) */
    .filters-panel-collapsible {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        width: auto; /* Prendra la largeur du parent */
        height: auto; /* Prendra la hauteur du parent */
        max-height: none;
        overflow: hidden;
        transition: opacity var(--transition-fast), visibility var(--transition-fast);
        padding: 0;
        margin: 0;
        border: none;
        background: transparent;
        border-radius: 0;
        display: flex; 
        flex-direction: column;
        z-index: 25;
    }
    .filters-panel-collapsible.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background-color: hsl(228, 15%, 15%);
        padding: 10px;
        box-sizing: border-box;
        border-radius: var(--radius-md);
        box-shadow: 0 8px 30px rgba(0,0,0,0.4);
        margin-top: 57px; /* Espace pour les boutons */
        height: calc(100% - 57px);
    }
    .filters-panel-collapsible.active .filters-panel-header {
        padding: 10px;
        flex-shrink: 0;
        position: static;
    }
    .filters-panel-collapsible.active .filters-panel-content {
        padding: 0 10px 10px;
        overflow-y: auto;
        flex-grow: 1;
    }
    body.fullscreen-active .filters-panel-collapsible {
        position: relative;
        margin-top: 0;
        height: auto;
    }
    body.fullscreen-active .filters-panel-collapsible.active {
        max-height: calc(100vh - 80px); 
        flex-grow: 1;
        min-height: 0;
        padding: 0;
        margin-bottom: 15px;
        box-shadow: none;
    }
    .mobile-buttons-container {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
        order: -1;
        align-items: center;
        position: relative; 
        z-index: 26; 
        flex-shrink: 0;
    }
    /* MODIFICATION END */
    
    .toggle-filters-btn-collapsible {
        position: relative;
        order: unset;
        width: calc(100% - 46px);
        height: 42px;
        padding: 10px;
        transform: none !important;
        left: auto !important;
        top: auto;
        border-radius: var(--radius-md);
        border: 1px solid var(--interactive-border);
        background-color: var(--interactive-bg);
        color: var(--text-primary);
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        transition: all var(--transition-fast);
        cursor: pointer;
    }
    
    .toggle-filters-btn-collapsible:hover {
        background-color: var(--interactive-bg-hover);
        border-color: var(--accent-color);
        color: var(--text-primary);
    }
    
    .toggle-fullscreen-btn {
        position: relative;
        top: auto;
        right: auto;
        order: unset;
        margin-bottom: 0;
        width: 42px;
        height: 42px;
        background-color: var(--interactive-bg);
        border: 1px solid var(--interactive-border);
    }
    
    .toggle-fullscreen-btn:hover {
        background-color: var(--interactive-bg-hover);
        border-color: var(--accent-color);
    }
     .filters-panel-collapsible.active + .toggle-filters-btn-collapsible {
        margin-top: 0;
        margin-bottom: 0;
    }
    .toggle-filters-btn-collapsible .arrow-icon {
        border-color: var(--accent-color);
        transform: rotate(135deg);
    }
    
    .toggle-filters-btn-collapsible:hover .arrow-icon {
        border-color: var(--accent-color-hover);
        transform: rotate(135deg) scale(1.1);
    }
    
    .filters-panel-collapsible.active + .toggle-filters-btn-collapsible .arrow-icon {
        border-color: var(--accent-color);
        transform: rotate(-45deg);
    }
    
    .filters-panel-collapsible.active + .toggle-filters-btn-collapsible:hover .arrow-icon {
        border-color: var(--accent-color-hover);
        transform: rotate(-45deg) scale(1.1);
    }
    
    .main-content-area.with-filters > .table-wrapper {
        margin-left: 0 !important;
        width: 100%;
    }

    .scrollable-radio-group {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px; 
        margin-bottom: -10px;
        scrollbar-width: none;
    }
    .scrollable-radio-group::-webkit-scrollbar {
        display: none;
    }
    .scrollable-radio-group .radio-button-group {
        min-width: 500px;
        display: inline-flex;
        width: auto;
        flex-shrink: 0;
    }
    
    .filter-item {
        flex: 1 1 auto;
        min-width: 250px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body { padding: 5px; }
    .container { padding: 10px; border-radius: var(--radius-lg); }
    .app-tab { padding: 10px 15px; font-size: 0.8em; }
    .view-top-bar { padding-bottom: 10px; }
    .ovr-tab, .perspective-selector label.perspective-button-label {
        padding: 6px 10px; font-size: 0.8em; margin-left: 0;
        margin-bottom: 5px;
    }
    .ovr-tabs-container { flex-wrap: wrap; justify-content: center; }
    #season-selector label, .season-selector-clone label { padding: 6px 10px; font-size: 0.8em; }
    .filters-panel { padding: 15px; }
}

/* Additional mobile improvements for progression pages */
@media (max-width: 320px) {
    .filter-item {
        min-width: 180px;
    }
    
    .filter-item h4 {
        font-size: 0.7em;
    }
    
    .scrollable-radio-group .radio-button-group {
        min-width: 350px;
    }
    
    .radio-button-group label {
        font-size: 0.7em;
        padding: 6px 4px;
    }
    
    /* Optimisations supplémentaires pour le panneau de filtres */
    .filter-group {
        padding: 12px;
        gap: 10px;
    }
    
    .filter-group input[type="text"],
    .filter-group input[type="number"] {
        padding: 12px 14px;
        font-size: 16px;
        min-height: 48px; /* Cibles tactiles plus grandes */
    }
    
    .positions-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .positions-grid label {
        padding: 10px 6px;
        font-size: 0.7em;
        min-height: 48px;
    }
    
    .filter-group > label:not(.inline-checkbox) {
        font-size: 0.8em;
    }
}