/* ==================================================
   BASE
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin-top: 0;
}

h2 {
    font-size: 21px;
}

h3 {
    font-size: 18px;
}

p {
    line-height: 1.5;
}


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

header {
    padding: 18px;

    background: #111827;

    border-bottom: 1px solid #334155;

    position: sticky;
    top: 0;

    z-index: 10;
}

.header-content {
    max-width: 1000px;

    margin: auto;

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

    gap: 10px;
}

header h1 {
    margin: 0;

    font-size: 24px;
}

.header-team {
    color: #94a3b8;

    margin-top: 4px;

    font-size: 14px;
}


/* ==================================================
   CONTAINER
================================================== */

.container {
    max-width: 1000px;

    margin: auto;

    padding: 16px;
}

.card {
    background: #1e293b;

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

    padding: 18px;

    margin-bottom: 16px;
}


/* ==================================================
   FORMULAIRES
================================================== */

input,
select,
textarea {
    width: 100%;

    padding: 13px;

    border-radius: 9px;
    border: 1px solid #475569;

    background: #0f172a;
    color: white;

    font-size: 16px;

    margin-bottom: 10px;
}

textarea {
    resize: vertical;
}

label {
    display: block;

    margin-bottom: 6px;

    color: #cbd5e1;

    font-size: 14px;
}


/* ==================================================
   BOUTONS
================================================== */

button {
    border: 0;
    border-radius: 9px;

    padding: 12px 15px;

    cursor: pointer;

    font-weight: bold;
    font-size: 15px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-success {
    background: #16a34a;
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-secondary {
    background: #475569;
    color: white;
}

.btn-link {
    display: inline-block;

    padding: 11px 14px;

    border-radius: 9px;

    background: #2563eb;
    color: white;

    text-decoration: none;
    text-align: center;

    font-weight: bold;
}

.nav-link {
    color: #93c5fd;

    text-decoration: none;

    font-weight: bold;
}


/* ==================================================
   NAVIGATION PRINCIPALE
================================================== */

.main-nav {
    display: flex;

    gap: 8px;

    overflow-x: auto;

    padding: 10px 16px;

    background: #111827;

    border-bottom: 1px solid #334155;
}

.main-nav a {
    white-space: nowrap;

    padding: 9px 12px;

    border-radius: 8px;

    background: #1e293b;
    color: #f8fafc;

    text-decoration: none;

    font-size: 14px;
}


/* ==================================================
   ÉQUIPE
================================================== */

.team-row {
    display: flex;

    gap: 10px;
}

.team-row input {
    margin-bottom: 0;
}

.team-row button {
    white-space: nowrap;
}

.player-card {
    background: #0f172a;

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

    padding: 14px;

    margin-bottom: 12px;
}

.player-top {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 12px;
}

.player-number {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #2563eb;

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

    font-size: 20px;
    font-weight: bold;

    flex-shrink: 0;
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: bold;

    font-size: 17px;
}

.player-position {
    color: #94a3b8;

    margin-top: 3px;

    font-size: 14px;
}

.inactive {
    opacity: 0.55;
}

.player-form-grid {
    display: grid;

    grid-template-columns: 110px 1fr 1fr;

    gap: 10px;
}

.player-actions {
    display: flex;

    gap: 8px;

    margin-top: 8px;
}

.player-actions button {
    flex: 1;
}

.active-line {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 5px;
    margin-bottom: 10px;
}

.active-line input {
    width: auto;

    margin: 0;
}

.empty,
.empty-match {
    color: #94a3b8;

    text-align: center;

    padding: 20px;
}

.count {
    color: #94a3b8;

    font-size: 14px;
}


/* ==================================================
   DASHBOARD
================================================== */

.dashboard-header {
    border-bottom: 1px solid #334155;
    margin-bottom: 16px;
}

.dashboard-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;

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

    gap: 15px;
}

.dashboard-logo {
    margin: 0;

    font-size: 25px;
}

.dashboard-team-name {
    margin-top: 4px;

    color: #93c5fd;
    font-size: 14px;
}

.dashboard-change-team {
    padding: 9px 12px;

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

    background: #1e293b;
    color: white;

    text-decoration: none;
    font-size: 12px;
}

.dashboard-change-team:hover {
    background: #334155;
}


/* COMPTEURS */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin-bottom: 26px;
}

.dashboard-stat-card {
    padding: 18px;

    text-align: center;

    background: #1e293b;

    border: 1px solid #334155;
    border-radius: 14px;
}

.dashboard-stat-value {
    font-size: 30px;
    font-weight: 800;
}

.dashboard-stat-label {
    margin-top: 5px;

    color: #93c5fd;
    font-size: 12px;
}


/* SECTIONS */

.dashboard-section {
    margin-bottom: 26px;
}

.dashboard-section-title {
    margin: 0 0 12px;

    font-size: 17px;
    letter-spacing: .4px;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


/* CARTES */

.dashboard-card {
    min-height: 98px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 18px;

    background: #1e293b;

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

    color: white;

    text-decoration: none;

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

.dashboard-card:hover {
    transform: translateY(-1px);

    background: #263449;

    border-color: #475569;
}

.dashboard-card-primary {
    border-color: #22c55e;
}

.dashboard-icon {
    min-width: 52px;
    width: 52px;
    height: 52px;

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

    background: #0f172a;

    border-radius: 12px;

    font-size: 25px;
}

.dashboard-card-title {
    font-size: 17px;
    font-weight: 800;
}

.dashboard-card-description {
    margin-top: 4px;

    color: #93c5fd;

    font-size: 12px;
}


/* BAS DASHBOARD */

.dashboard-bottom-card {
    margin-top: 15px;
    padding: 18px;

    background: #1e293b;

    border: 1px solid #334155;
    border-radius: 14px;
}

.dashboard-small-label {
    margin-bottom: 5px;

    color: #93c5fd;

    font-size: 11px;
}

.dashboard-bottom-title {
    font-size: 17px;
    font-weight: 800;
}

.dashboard-bottom-info {
    margin-top: 5px;

    color: #cbd5e1;

    font-size: 12px;
}

.dashboard-bottom-actions {
    margin-top: 14px;
}

.dashboard-summary {
    margin: 20px 0 30px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px 20px;

    color: #64748b;

    font-size: 11px;
}


/* MOBILE */

@media (max-width: 650px) {

    .dashboard-header-inner {
        align-items: flex-start;
    }

    .dashboard-logo {
        font-size: 20px;
    }

    .dashboard-change-team {
        font-size: 10px;
        padding: 8px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 85px;
        padding: 14px;
    }

    .dashboard-icon {
        min-width: 46px;
        width: 46px;
        height: 46px;

        font-size: 21px;
    }

    .dashboard-card-title {
        font-size: 15px;
    }

    .dashboard-stats {
        gap: 8px;
    }

    .dashboard-stat-card {
        padding: 14px 8px;
    }

}

/* ==================================================
   PRÉPARATION MATCH
================================================== */

.match-info {
    color: #94a3b8;

    line-height: 1.6;
}

.player-select-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;
}

.player-select {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px;

    background: #0f172a;

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

    cursor: pointer;
}

.player-select:hover {
    border-color: #64748b;
}

.player-select input {
    width: 22px;
    height: 22px;

    margin: 0;

    flex-shrink: 0;
}

.player-select-number {
    min-width: 42px;

    color: #60a5fa;

    font-size: 18px;

    font-weight: bold;
}

.preparation-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.preparation-actions .btn-success {
    grid-column: 1 / -1;

    padding: 16px;

    font-size: 17px;
}

.error-message {
    padding: 12px;

    margin-bottom: 15px;

    background: #450a0a;

    border: 1px solid #dc2626;
    border-radius: 9px;

    color: #fecaca;
}


/* ==================================================
   SCOUTING
================================================== */

.scouting-container {
    max-width: 1100px;
}


/* MATCH */

.scouting-header {
    display: flex;

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

    gap: 20px;
}

.scouting-header > div:first-child {
    display: flex;

    align-items: center;

    gap: 10px;
}

.scouting-title {
    font-size: 21px;

    font-weight: 700;
}

.scouting-vs {
    color: #64748b;

    font-size: 14px;
}

.scouting-set {
    background: #2563eb;

    color: white;

    padding: 8px 14px;

    border-radius: 8px;

    font-weight: 700;

    white-space: nowrap;
}


/* SET */

.set-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 8px;
}

.set-button {
    padding: 13px;

    border: 1px solid #475569;
    border-radius: 9px;

    background: #0f172a;
    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;
}

.set-button.active {
    background: #2563eb;

    border-color: #60a5fa;
}


/* JOUEURS */

.scouting-players {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 8px;
}

.scouting-player {
    min-height: 65px;

    display: flex;
    flex-direction: column;

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

    gap: 4px;

    padding: 8px;

    border: 2px solid #334155;
    border-radius: 10px;

    background: #0f172a;
    color: white;

    cursor: pointer;
}

.scouting-player strong {
    color: #60a5fa;

    font-size: 18px;
}

.scouting-player span {
    font-size: 13px;

    text-align: center;
}

.scouting-player.selected {
    background: #1d4ed8;

    border-color: #60a5fa;
}

.scouting-player.selected strong {
    color: white;
}


/* JOUEUR SÉLECTIONNÉ */

.selected-player-message {
    padding: 12px;

    margin-bottom: 20px;

    background: #0f172a;

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

    color: #93c5fd;

    font-weight: 600;
}


/* ACTIONS */

.action-section {
    margin-top: 24px;
}

.action-section h3 {
    margin-bottom: 10px;
}

.action-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 8px;
}

.action-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.action-button {
    min-height: 58px;

    border: none;
    border-radius: 9px;

    color: white;

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

    cursor: pointer;

    transition:
        transform 0.08s ease,
        opacity 0.08s ease;
}

.action-button:hover {
    opacity: 0.9;
}

.action-button:active {
    transform: scale(0.96);
}

.action-perfect {
    background: #16a34a;
}

.action-good {
    background: #2563eb;
}

.action-neutral {
    background: #475569;
}

.action-warning {
    background: #d97706;
}

.action-error {
    background: #dc2626;
}


/* DERNIÈRE ACTION */

.last-action {
    display: flex;

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

    gap: 10px;

    margin-bottom: 15px;

    padding: 12px;

    background: #0f172a;

    border-radius: 8px;
}

.last-action span {
    color: #94a3b8;
}

.undo-button {
    width: 100%;
}


/* FIN MATCH */

.finish-match-button {
    display: block;

    width: 100%;

    padding: 16px;

    border: none;
    border-radius: 9px;

    background: #7f1d1d;
    color: white;

    font-size: 17px;

    font-weight: 700;

    text-align: center;
    text-decoration: none;

    cursor: pointer;
}


/* ==================================================
   FIN DE MATCH
================================================== */

.final-score-grid {
    display: grid;

    grid-template-columns: 1fr 40px 1fr;

    align-items: end;

    gap: 15px;

    margin-top: 20px;
}

.final-score-team {
    text-align: center;
}

.final-score-team label {
    display: block;

    margin-bottom: 8px;

    font-size: 16px;

    font-weight: 700;
}

.final-score-team select {
    width: 100%;

    padding: 14px;

    background: #0f172a;
    color: white;

    border: 1px solid #475569;
    border-radius: 9px;

    font-size: 24px;

    font-weight: 800;

    text-align: center;
}

.final-score-vs {
    padding-bottom: 14px;

    text-align: center;

    color: #64748b;

    font-size: 30px;

    font-weight: 800;
}

.final-save-button {
    width: 100%;

    margin-top: 25px;

    padding: 16px;

    font-size: 16px;
}

.secondary-link {
    background: #475569;
}


/* ==================================================
   RÉSUMÉ MATCH
================================================== */

.match-summary-card {
    text-align: center;
}

.match-summary-date {
    color: #94a3b8;

    margin-bottom: 15px;
}

.match-final-score {
    display: grid;

    grid-template-columns: 1fr 50px 1fr;

    align-items: center;

    margin-bottom: 20px;
}

.match-final-team {
    text-align: center;
}

.match-final-name {
    color: #cbd5e1;

    font-size: 17px;

    font-weight: 700;
}

.match-final-number {
    margin-top: 5px;

    font-size: 55px;

    font-weight: 800;
}

.match-final-separator {
    color: #64748b;

    font-size: 36px;

    font-weight: 700;
}


/* ==================================================
   LISTE DES MATCHS
================================================== */

.match-filters {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;
}

.match-filter {
    padding: 9px 13px;

    border-radius: 8px;

    background: #0f172a;

    border: 1px solid #334155;

    color: #cbd5e1;

    text-decoration: none;

    font-size: 14px;

    font-weight: bold;
}

.match-filter.active {
    background: #2563eb;

    border-color: #60a5fa;

    color: white;
}

.matches-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.match-list-card {
    display: flex;

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

    gap: 15px;

    padding: 15px;

    background: #0f172a;

    border: 1px solid #334155;
    border-radius: 12px;
}

.match-list-main {
    flex: 1;
}

.match-list-date {
    color: #94a3b8;

    font-size: 13px;

    margin-bottom: 6px;
}

.match-list-title {
    font-size: 17px;

    margin-bottom: 6px;
}

.match-vs {
    color: #64748b;

    margin: 0 5px;
}

.match-list-info {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    color: #94a3b8;

    font-size: 13px;

    margin-bottom: 9px;
}

.status-badge {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;
}

.status-prepare {
    background: #422006;

    color: #facc15;
}

.status-live {
    background: #450a0a;

    color: #fca5a5;
}

.status-finished {
    background: #052e16;

    color: #86efac;
}

.match-action-button {
    display: inline-block;

    padding: 10px 13px;

    border-radius: 9px;

    color: white;

    text-decoration: none;

    font-weight: bold;

    white-space: nowrap;
}

.match-action-button.prepare {
    background: #d97706;
}

.match-action-button.live {
    background: #dc2626;
}

.match-action-button.finished {
    background: #2563eb;
}

.empty-match-icon {
    font-size: 42px;

    margin-bottom: 10px;
}


/* ==================================================
   TABLES
================================================== */

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;
}

th,
td {
    padding: 10px;

    border-bottom: 1px solid #334155;

    text-align: left;
}

th {
    color: #94a3b8;

    font-size: 13px;
}


/* ==================================================
   TABLETTE
================================================== */

@media (max-width: 900px) {

    .scouting-players {
        grid-template-columns: repeat(3, 1fr);
    }

}


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

@media (max-width: 700px) {

    header {
        padding: 14px;
    }

    header h1 {
        font-size: 20px;
    }

    .container {
        padding: 10px;
    }

    .card {
        padding: 14px;

        margin-bottom: 10px;
    }


    /* ÉQUIPE */

    .player-form-grid {
        grid-template-columns: 1fr;
    }

    .team-row {
        flex-direction: column;
    }

    .team-row button {
        width: 100%;
    }

    .player-actions {
        flex-direction: column;
    }


    /* DASHBOARD */

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-item {
        min-height: 88px;

        padding: 15px;
    }

    .dashboard-icon {
        width: 48px;
        height: 48px;

        font-size: 24px;
    }

    .dashboard-item-title {
        font-size: 16px;
    }

    .dashboard-item-description {
        font-size: 12px;
    }


    /* PRÉPARATION */

    .player-select-grid {
        grid-template-columns: 1fr;
    }


    /* MATCHS */

    .match-list-card {
        flex-direction: column;

        align-items: stretch;
    }

    .match-list-action {
        width: 100%;
    }

    .match-action-button {
        display: block;

        width: 100%;

        text-align: center;
    }

}


/* ==================================================
   GSM SCOUTING
================================================== */

@media (max-width: 600px) {

    .scouting-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .scouting-container .card {
        padding: 12px;

        margin-bottom: 8px;
    }


    /* Match */

    .scouting-header {
        gap: 8px;
    }

    .scouting-header > div:first-child {
        display: block;
    }

    .scouting-title {
        font-size: 16px;
    }

    .scouting-vs {
        display: inline;
    }

    .scouting-set {
        padding: 7px 10px;

        font-size: 13px;
    }


    /* Sets */

    .set-grid {
        gap: 5px;
    }

    .set-button {
        padding: 11px 4px;

        font-size: 14px;
    }


    /* Joueurs */

    .scouting-players {
        grid-template-columns: repeat(3, 1fr);

        gap: 5px;
    }

    .scouting-player {
        min-height: 62px;

        padding: 5px;
    }

    .scouting-player strong {
        font-size: 16px;
    }

    .scouting-player span {
        font-size: 11px;
    }


    /* Actions */

    .action-section {
        margin-top: 18px;
    }

    .action-grid {
        grid-template-columns: repeat(4, 1fr);

        gap: 5px;
    }

    .action-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .action-button {
        min-height: 54px;

        padding: 5px;

        font-size: 12px;
    }


    /* Dernière action */

    .last-action {
        flex-direction: column;

        align-items: flex-start;
    }


    /* Fin match */

    .final-score-grid {
        gap: 8px;
    }

    .final-score-team label {
        font-size: 13px;
    }

    .match-final-name {
        font-size: 14px;
    }

    .match-final-number {
        font-size: 46px;
    }

}
/* ==================================================
   HISTORIQUE
================================================== */

.history-match-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 15px;

    margin: 10px 0 12px;
}

.history-team {
    font-size: 17px;
}

.history-team-right {
    text-align: right;
}

.history-score {
    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 28px;

    font-weight: 800;
}

.history-score-separator {
    color: #64748b;
}

.history-winner {
    color: #4ade80;
}

.history-result {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;
}

.history-victory {
    background: #052e16;

    color: #86efac;
}

.history-defeat {
    background: #450a0a;

    color: #fca5a5;
}


@media (max-width: 600px) {

    .history-match-line {
        grid-template-columns: 1fr auto 1fr;

        gap: 7px;
    }

    .history-team {
        font-size: 13px;
    }

    .history-score {
        font-size: 23px;
    }

}
/* ==================================================
   JOUEURS / STATISTIQUES
================================================== */

.players-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.player-stat-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 16px;
}

.player-stat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.player-stat-info {
    flex: 1;
}

.player-stat-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.player-stat-numbers div {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 9px;
    padding: 10px 5px;
    text-align: center;
}

.player-stat-numbers strong {
    display: block;
    font-size: 21px;
}

.player-stat-numbers span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}

.player-detail-button {
    display: block;
    width: 100%;
    padding: 11px;
    border-radius: 9px;
    background: #2563eb;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 700px) {

    .players-stats-grid {
        grid-template-columns: 1fr;
    }

}
/* ==================================================
   FICHE JOUEUR
================================================== */

.player-profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.player-profile-number {
    width: 75px;
    height: 75px;

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

    flex-shrink: 0;

    border-radius: 50%;

    background: #2563eb;
    color: white;

    font-size: 30px;
    font-weight: 800;
}

.player-profile-name {
    margin-bottom: 4px;
}


/* STATS GLOBALES */

.player-global-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.player-global-stat {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;

    padding: 14px 8px;

    text-align: center;
}

.player-global-stat strong {
    display: block;

    font-size: 25px;
}

.player-global-stat span {
    display: block;

    margin-top: 5px;

    color: #94a3b8;

    font-size: 11px;
}


/* RENDEMENT */

.performance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.performance-card {
    padding: 16px;

    background: #0f172a;

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

    text-align: center;
}

.performance-title {
    color: #cbd5e1;

    font-weight: bold;
}

.performance-value {
    margin: 10px 0;

    color: #60a5fa;

    font-size: 34px;
    font-weight: 800;
}

.performance-description {
    color: #94a3b8;

    font-size: 12px;
}


/* HISTORIQUE JOUEUR */

.player-match-history {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-match-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;

    gap: 15px;

    padding: 13px;

    background: #0f172a;

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

    color: white;

    text-decoration: none;
}

.player-match-row:hover {
    border-color: #64748b;
}

.player-match-date {
    margin-bottom: 3px;

    color: #94a3b8;

    font-size: 12px;
}

.player-match-small-stats {
    display: flex;
    gap: 10px;

    color: #cbd5e1;

    font-size: 12px;
}

.player-match-score {
    min-width: 60px;

    text-align: right;

    font-size: 20px;
    font-weight: 800;
}


@media (max-width: 800px) {

    .player-global-stats {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 600px) {

    .player-profile-number {
        width: 60px;
        height: 60px;

        font-size: 24px;
    }

    .performance-grid {
        grid-template-columns: 1fr;
    }

    .player-match-row {
        grid-template-columns: 1fr auto;
    }

    .player-match-small-stats {
        grid-column: 1 / -1;

        flex-wrap: wrap;
    }

}
/* ==================================================
   STATISTIQUES ÉQUIPE
================================================== */

.stats-main-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stats-main-card {
    padding: 15px 8px;

    background: #1e293b;

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

    text-align: center;
}

.stats-main-card strong {
    display: block;

    font-size: 27px;
}

.stats-main-card span {
    display: block;

    margin-top: 5px;

    color: #94a3b8;

    font-size: 11px;
}

.stats-player-link {
    color: #93c5fd;

    text-decoration: none;

    font-weight: bold;
}

.stats-player-link:hover {
    text-decoration: underline;
}


@media (max-width: 800px) {

    .stats-main-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 500px) {

    .stats-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}
/* ==================================================
   CLASSEMENT JOUEURS
================================================== */

.ranking-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ranking-filters a {
    padding: 9px 12px;

    background: #0f172a;
    color: #cbd5e1;

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

    text-decoration: none;

    font-size: 13px;
    font-weight: bold;
}

.ranking-filters a.active {
    background: #2563eb;
    border-color: #60a5fa;
    color: white;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-card {
    display: grid;

    grid-template-columns:
        55px
        minmax(160px, 1fr)
        minmax(400px, 2fr)
        35px;

    align-items: center;

    gap: 12px;

    padding: 14px;

    background: #1e293b;

    border: 1px solid #334155;
    border-radius: 12px;
}

.ranking-position {
    text-align: center;

    font-size: 25px;
    font-weight: 800;
}

.ranking-player-name {
    font-size: 16px;
    font-weight: 700;
}

.ranking-stats {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 6px;
}

.ranking-stats div {
    padding: 7px 3px;

    background: #0f172a;

    border-radius: 7px;

    text-align: center;
}

.ranking-stats strong {
    display: block;

    font-size: 16px;
}

.ranking-stats span {
    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 9px;
}

.ranking-detail {
    color: #60a5fa;

    text-decoration: none;

    text-align: center;

    font-size: 30px;
}


@media (max-width: 800px) {

    .ranking-card {
        grid-template-columns: 45px 1fr 30px;
    }

    .ranking-stats {
        grid-column: 1 / -1;

        grid-row: 2;

        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 500px) {

    .ranking-filters {
        display: grid;

        grid-template-columns: repeat(2, 1fr);
    }

    .ranking-filters a {
        text-align: center;
    }

}
/* ==================================================
   ÉVOLUTION JOUEUR
================================================== */

.evolution-player-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.evolution-player-header h2 {
    margin: 0 0 4px;
}


/* CARTES MATCHS */

.evolution-cards {
    display: none;
}

.evolution-match-card {
    display: block;

    padding: 14px;

    background: #1e293b;

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

    color: white;

    text-decoration: none;
}

.evolution-match-date {
    color: #94a3b8;

    font-size: 12px;
}

.evolution-match-title {
    margin-top: 3px;
    margin-bottom: 12px;

    font-size: 17px;
    font-weight: bold;
}

.evolution-match-stats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 7px;
}

.evolution-match-stats div {
    padding: 8px 3px;

    background: #0f172a;

    border-radius: 7px;

    text-align: center;
}

.evolution-match-stats strong {
    display: block;

    font-size: 16px;
}

.evolution-match-stats span {
    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 9px;
}


/* MOBILE */

@media (max-width: 650px) {

    .evolution-cards {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    .evolution-cards + .card {
        margin-top: 16px;
    }

}
/* ==================================================
   EXPORTS
================================================== */

.export-match-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.export-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 13px;

    background: #0f172a;

    border: 1px solid #334155;
    border-radius: 10px;
}

.export-match-date {
    margin-bottom: 3px;

    color: #94a3b8;

    font-size: 12px;
}

.export-match-score {
    margin-top: 5px;

    font-size: 18px;
    font-weight: 800;
}

.export-button {
    flex-shrink: 0;

    padding: 9px 13px;

    background: #2563eb;

    border-radius: 8px;

    color: white;

    text-decoration: none;

    font-weight: bold;
}

.export-button:hover {
    background: #1d4ed8;
}
/* ==================================================
   PARAMÈTRES
================================================== */

.settings-message {
    margin-bottom: 15px;
    padding: 12px 14px;

    border-radius: 10px;

    font-weight: bold;
}

.settings-message.success {
    background: #052e16;
    border: 1px solid #166534;
    color: #86efac;
}

.settings-message.error {
    background: #450a0a;
    border: 1px solid #991b1b;
    color: #fca5a5;
}

.settings-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 10px 0;

    border-bottom: 1px solid #334155;
}

.settings-info-row:last-child {
    border-bottom: 0;
}

.settings-info-row span {
    color: #94a3b8;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
/* ==================================================
   GESTION ÉQUIPE
================================================== */

.team-player-form {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.team-active-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 5px 0 15px;

    cursor: pointer;
}

.team-active-checkbox input {
    width: auto;
}

.team-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* EFFECTIF */

.team-roster {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-player-row {
    display: grid;
    grid-template-columns: 55px 1fr auto auto;
    align-items: center;
    gap: 12px;

    padding: 12px;

    background: #0f172a;

    border: 1px solid #334155;
    border-radius: 11px;
}

.team-player-row.inactive {
    opacity: .55;
}

.team-player-number {
    width: 45px;
    height: 45px;

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

    background: #2563eb;

    border-radius: 50%;

    color: white;

    font-size: 18px;
    font-weight: 800;
}

.team-player-name {
    font-size: 15px;
    font-weight: 700;
}

.team-player-position {
    margin-top: 2px;

    color: #94a3b8;

    font-size: 12px;
}

.team-player-history {
    margin-top: 4px;

    color: #64748b;

    font-size: 10px;
}


/* STATUT */

.team-status {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: bold;
}

.team-status.active {
    background: #052e16;
    color: #86efac;
}

.team-status.inactive {
    background: #450a0a;
    color: #fca5a5;
}


/* BOUTONS */

.team-player-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.team-inline-form {
    margin: 0;
}

.team-icon-button {
    width: 36px;
    height: 36px;

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

    padding: 0;

    background: #1e293b;

    border: 1px solid #475569;
    border-radius: 7px;

    color: white;

    text-decoration: none;

    cursor: pointer;

    font-size: 15px;
}

.team-icon-button:hover {
    background: #334155;
}


/* MOBILE */

@media (max-width: 700px) {

    .team-player-form {
        grid-template-columns: 90px 1fr;
    }

    .team-player-form .form-group:last-child {
        grid-column: 1 / -1;
    }

    .team-player-row {
        grid-template-columns: 48px 1fr auto;
    }

    .team-player-row > .team-status {
        display: none;
    }

    .team-player-actions {
        grid-column: 2 / -1;

        justify-content: flex-end;
    }

}


@media (max-width: 450px) {

    .team-player-form {
        grid-template-columns: 1fr;
    }

    .team-player-form .form-group:last-child {
        grid-column: auto;
    }

}
/* ==================================================
   SÉLECTION ÉQUIPE
================================================== */

.team-choice-container {
    max-width: 900px;
    padding-top: 45px;
}

.team-choice-header {
    text-align: center;
    margin-bottom: 30px;
}

.team-choice-ball {
    font-size: 52px;
    margin-bottom: 8px;
}

.team-choice-header h1 {
    margin: 0;

    font-size: 32px;
}

.team-choice-header p {
    margin-top: 7px;

    color: #94a3b8;
}


/* GRILLE */

.team-choice-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}

.team-choice-form {
    margin: 0;
}

.team-choice-card {
    width: 100%;
    min-height: 180px;

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

    padding: 20px;

    background: #1e293b;

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

    color: white;

    cursor: pointer;

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

.team-choice-card:hover {
    transform: translateY(-2px);

    background: #263449;

    border-color: #60a5fa;
}

.team-choice-icon {
    font-size: 30px;
    margin-bottom: 9px;
}

.team-choice-name {
    font-size: 20px;
    font-weight: 800;
}

.team-choice-info {
    display: flex;
    gap: 14px;

    margin-top: 10px;

    color: #94a3b8;

    font-size: 12px;
}

.team-choice-enter {
    margin-top: 16px;

    color: #60a5fa;

    font-weight: bold;
    font-size: 12px;
}

.team-choice-footer {
    margin-top: 20px;

    text-align: center;
}


@media (max-width: 600px) {

    .team-choice-container {
        padding-top: 20px;
    }

    .team-choice-grid {
        grid-template-columns: 1fr;
    }

}
/* ==================================================
   GESTION DES ÉQUIPES
================================================== */

.team-manage-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.manage-teams-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manage-team-row {
    display: grid;

    grid-template-columns:
        50px
        1fr
        auto
        auto;

    align-items: center;

    gap: 12px;

    padding: 13px;

    background: #0f172a;

    border: 1px solid #334155;
    border-radius: 12px;
}

.manage-team-row.inactive {
    opacity: .55;
}

.manage-team-icon {
    width: 44px;
    height: 44px;

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

    background: #1e293b;

    border-radius: 10px;

    font-size: 21px;
}

.manage-team-name {
    font-size: 16px;
    font-weight: 800;
}

.manage-team-stats {
    margin-top: 4px;

    color: #94a3b8;

    font-size: 11px;
}

.manage-team-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* MOBILE */

@media (max-width: 600px) {

    .team-manage-form {
        grid-template-columns: 1fr;
    }

    .manage-team-row {
        grid-template-columns:
            45px
            1fr
            auto;
    }

    .manage-team-actions {
        grid-column: 2 / -1;
        justify-content: flex-end;
    }

}