/* =============================================
   SHARD CUP — Style esport sombre & professionnel
   ============================================= */

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-input: #1a1a25;
    --border: #2a2a3a;

    --text: #e0e0e8;
    --text-muted: #888899;

    --accent: #00d4ff;
    --accent-dark: #0099bb;

    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;

    --radius: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, .4);
}


/* =============================================
   RESET
   ============================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =============================================
   BODY
   ============================================= */

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Oxygen,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    line-height: 1.6;
    min-height: 100vh;
}


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

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity .2s;
}

a:hover {
    opacity: .85;
}

img {
    max-width: 100%;
}


/* =============================================
   LOGOS
   ============================================= */

.brand-logo {
    width: 58px;
    height: 58px;

    object-fit: contain;
    display: block;

    margin: 0;
}

.mid-logo {
    width: 200px;
    height: 200px;

    object-fit: contain;
    vertical-align: middle;

    margin-right: 8px;
}


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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container-sm {
    max-width: 500px;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mt-1 {
    margin-top: 16px;
}

.mt-2 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 16px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
    font-size: .9em;
}


/* =============================================
   NAVBAR
   ============================================= */

.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;

    padding: 0 20px;
    gap: 12px;
}


/* =============================================
   NAV BRAND
   ============================================= */

.nav-brand {
    display: flex;
    align-items: center;

    gap: 8px;

    font-weight: 700;
    font-size: 1.15em;

    color: var(--text);

    padding: 14px 0;

    white-space: nowrap;
}

.nav-brand:hover {
    opacity: 1;
}

.brand-icon {
    color: var(--accent);
    font-size: 1.2em;
}


/* =============================================
   NAV MENU
   ============================================= */

.nav-menu {
    display: flex;
    align-items: center;

    gap: 4px;

    flex-wrap: wrap;
    flex: 1;
}


/* =============================================
   NAV LINKS
   ============================================= */

.nav-link {
    color: var(--text-muted);

    padding: 8px 12px;

    border-radius: var(--radius);

    font-size: .9em;

    transition:
        background .2s,
        color .2s;

    white-space: nowrap;
}

.nav-link:hover {
    background: var(--bg-card-hover);
    color: var(--text);

    opacity: 1;
}


/* =============================================
   ADMIN
   ============================================= */

.nav-admin {
    color: var(--accent);
}


/* =============================================
   SEARCH
   ============================================= */

.nav-search {
    margin-left: auto;
}

.nav-search input {
    background: var(--bg-input);

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

    color: var(--text);

    padding: 6px 12px;

    border-radius: var(--radius);

    width: 160px;

    font-size: .85em;
}


/* =============================================
   MOBILE MENU BUTTON
   ============================================= */

.nav-toggle {
    display: none;

    background: none;
    border: none;

    color: var(--text);

    font-size: 1.5em;

    cursor: pointer;
}


/* =============================================
   ZONE UTILISATEUR
   ============================================= */

/*
   IMPORTANT :

   Hall of Fame
          ?
       70px
          ?
     [ USER ] [ DÉCONNEXION ]

   Le gap entre User et Déconnexion
   est seulement de 8px.
*/

.nav-user-section {
    display: flex;
    align-items: center;

    margin-left: 70px;

    gap: 8px;

    flex-shrink: 0;
}


/* =============================================
   USERNAME
   ============================================= */

.nav-username {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 13px !important;

    background: #2563eb;

    color: #ffffff !important;

    border: 1px solid #2563eb;

    border-radius: 5px;

    font-weight: 400;

    text-decoration: none;

    white-space: nowrap;

    margin: 0 !important;

    transition:
        background .2s,
        border-color .2s;
}

.nav-username:hover {
    background: #1d4ed8;

    border-color: #1d4ed8;

    color: #ffffff !important;

    opacity: 1;
}


/* =============================================
   DÉCONNEXION
   ============================================= */

.nav-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 13px !important;

    background: transparent;

    color: #ef4444 !important;

    border: 1px solid #ef4444;

    border-radius: 5px;

    font-weight: 300;

    text-decoration: none;

    white-space: nowrap;

    margin: 0 !important;

    transition:
        background .2s,
        color .2s;
}

.nav-logout:hover {
    background: #ef4444;

    color: #ffffff !important;

    opacity: 1;
}


/* =============================================
   CONNEXION
   ============================================= */

.nav-login {
    white-space: nowrap;
}


/* =============================================
   HERO
   ============================================= */

.hero {
    text-align: center;

    padding: 60px 20px 40px;

    background:
        linear-gradient(
            180deg,
            var(--bg-card) 0%,
            var(--bg) 100%
        );

    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.5em;

    margin-bottom: 8px;

    letter-spacing: -1px;
}

.hero-sub {
    color: var(--text-muted);

    font-size: 1.1em;

    margin-bottom: 16px;
}

.hero-stats {
    display: flex;

    justify-content: center;

    gap: 24px;

    flex-wrap: wrap;

    margin: 24px 0;
}

.hero-actions {
    display: flex;

    justify-content: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 20px;
}


/* =============================================
   STAT BOXES
   ============================================= */

.stat-box {
    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 12px 20px;

    background: var(--bg-card);

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

    border-radius: var(--radius);
}

.stat-value {
    font-size: 1.8em;

    font-weight: 700;

    color: var(--accent);

    line-height: 1.2;
}

.stat-label {
    font-size: .8em;

    color: var(--text-muted);

    text-transform: uppercase;

    letter-spacing: 1px;
}

.stats-grid {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.stats-grid .stat-box {
    flex: 1;

    min-width: 100px;
}


/* =============================================
   CARDS
   ============================================= */

.card {
    background: var(--bg-card);

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

    border-radius: var(--radius);

    padding: 24px;

    margin-bottom: 20px;

    box-shadow: var(--shadow);

    transition: border-color .2s;
}

.card-link {
    display: block;

    text-align: center;

    cursor: pointer;
}

.card-link:hover {
    border-color: var(--accent);

    opacity: 1;
}

.card-compact {
    padding: 16px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;
}

.card-title {
    font-size: 1.2em;

    margin-bottom: 16px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--border);

    color: var(--text);
}


/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-block;

    padding: 10px 20px;

    border-radius: var(--radius);

    font-size: .9em;

    font-weight: 600;

    border: none;

    cursor: pointer;

    text-align: center;

    transition: all .2s;

    line-height: 1.4;
}

.btn-sm {
    padding: 6px 14px;

    font-size: .8em;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--accent);

    color: #000;
}

.btn-primary:hover {
    background: var(--accent-dark);

    color: #000;
}

.btn-secondary {
    background: var(--bg-input);

    color: var(--text);

    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

.btn-accent {
    background:
        linear-gradient(
            135deg,
            var(--accent),
            #a855f7
        );

    color: #000;
}

.btn-danger {
    background: var(--danger);

    color: #fff;
}

.btn-danger:hover {
    opacity: .85;
}


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

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

table {
    width: 100%;

    border-collapse: collapse;
}

th,
td {
    padding: 10px 14px;

    text-align: left;

    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);

    font-size: .85em;

    text-transform: uppercase;

    letter-spacing: .5px;

    font-weight: 600;
}

tr:hover {
    background: var(--bg-card-hover);
}

tr.highlight {
    background: rgba(0, 212, 255, .06);
}


/* =============================================
   FORMS
   ============================================= */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;

    margin-bottom: 4px;

    font-size: .9em;

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

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;

    padding: 10px 14px;

    background: var(--bg-input);

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

    border-radius: var(--radius);

    color: var(--text);

    font-size: .95em;

    font-family: inherit;

    transition: border-color .2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;

    border-color: var(--accent);
}

textarea {
    resize: vertical;
}

.input-sm {
    width: 70px;

    padding: 4px 6px;

    text-align: center;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(200px, 1fr)
        );

    gap: 12px;
}

.filters {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    align-items: flex-end;
}

.filters input,
.filters select {
    width: auto;

    flex: 1;

    min-width: 140px;
}


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

.badge {
    display: inline-block;

    padding: 4px 10px;

    border-radius: 50px;

    font-size: .75em;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.badge-sm {
    font-size: .7em;

    padding: 2px 8px;
}

.badge-accent {
    background: var(--accent);

    color: #000;
}

.badge-success,
.badge-published,
.badge-active,
.badge-open,
.badge-completed,
.badge-approved {
    background: rgba(34, 197, 94, .15);

    color: var(--success);
}

.badge-danger,
.badge-inactive,
.badge-cancelled,
.badge-rejected,
.badge-hidden,
.badge-disbanded {
    background: rgba(239, 68, 68, .15);

    color: var(--danger);
}

.badge-warning,
.badge-pending,
.badge-draft,
.badge-upcoming {
    background: rgba(245, 158, 11, .15);

    color: var(--warning);
}

.badge-secondary,
.badge-closed {
    background: var(--bg-input);

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

.badge-lft {
    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #ef4444
        );

    color: #000;
}

.badge-finished {
    background: rgba(0, 212, 255, .1);

    color: var(--accent);
}

.badge-scheduled {
    background: rgba(168, 85, 247, .1);

    color: #a855f7;
}

.badge-live {
    background: rgba(239, 68, 68, .2);

    color: var(--danger);

    animation: pulse 1.5s infinite;
}

.badge-retired {
    background: rgba(136, 136, 153, .2);

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

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .6;
    }
}


/* =============================================
   MATCH ROWS
   ============================================= */

.match-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 10px 0;

    border-bottom: 1px solid var(--border);

    gap: 8px;
}

a.match-row {
    transition: background .2s;

    padding: 10px;

    border-radius: var(--radius);
}

a.match-row:hover {
    background: var(--bg-card-hover);

    opacity: 1;
}

.match-team {
    font-weight: 600;

    min-width: 60px;
}

.match-team.winner {
    color: var(--accent);
}

.match-score {
    font-size: 1.1em;

    font-weight: 700;

    color: var(--text);
}

.match-date {
    color: var(--text-muted);

    font-size: .85em;
}

.match-score-cell {
    font-weight: 700;
}

.match-header-big {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 30px;

    flex-wrap: wrap;
}

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

.match-team-big h2 {
    font-size: 1em;

    margin-top: 8px;
}

.match-score-big {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    flex-direction: row;
}

.score-num {
    font-size: 3em;

    font-weight: 800;

    color: var(--accent);
}

.score-sep {
    font-size: 2em;

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

.match-meta {
    display: flex;

    gap: 20px;

    justify-content: center;

    margin-top: 16px;

    color: var(--text-muted);

    flex-wrap: wrap;
}


/* =============================================
   STAT ROWS
   ============================================= */

.stat-row {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 8px 0;

    border-bottom: 1px solid var(--border);
}

.rank {
    font-weight: 700;

    color: var(--accent);

    min-width: 30px;
}

.stat-name {
    flex: 1;
}

.stat-team {
    color: var(--text-muted);

    font-size: .85em;
}

.stat-val {
    font-weight: 700;

    min-width: 50px;

    text-align: right;
}


/* =============================================
   PLAYER
   ============================================= */

.player-header {
    display: flex;

    gap: 24px;

    align-items: flex-start;
}

.player-avatar,
.player-avatar-lg {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #a855f7
        );

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    color: #000;

    flex-shrink: 0;

    font-size: .9em;
}

.player-avatar-lg {
    width: 80px;
    height: 80px;

    font-size: 1.4em;
}

.player-info {
    flex: 1;
}

.player-realname {
    color: var(--text-muted);
}

.player-meta {
    display: flex;

    gap: 16px;

    flex-wrap: wrap;

    margin-top: 8px;

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


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

.team-logo-lg {
    width: 64px;
    height: 64px;

    border-radius: var(--radius);

    background: var(--bg-input);

    border: 2px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

    font-size: 1.1em;

    color: var(--accent);

    flex-shrink: 0;
}

.team-header {
    display: flex;

    gap: 20px;

    align-items: flex-start;
}

.team-card {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;
}


/* =============================================
   TIMELINE
   ============================================= */

.timeline {
    position: relative;

    padding-left: 24px;
}

.timeline::before {
    content: '';

    position: absolute;

    left: 6px;

    top: 0;

    bottom: 0;

    width: 2px;

    background: var(--border);
}

.timeline-item {
    position: relative;

    padding: 8px 0 16px;
}

.timeline-item::before {
    content: '';

    position: absolute;

    left: -22px;

    top: 12px;

    width: 10px;

    height: 10px;

    border-radius: 50%;

    background: var(--accent);

    border: 2px solid var(--bg-card);
}

.timeline-date {
    font-weight: 700;

    color: var(--accent);

    font-size: .9em;
}

.timeline-content {
    color: var(--text);

    margin-top: 4px;
}


/* =============================================
   TRANSFER
   ============================================= */

.transfer-row {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px 0;

    border-bottom: 1px solid var(--border);

    flex-wrap: wrap;
}

.transfer-arrow {
    color: var(--accent);

    font-weight: 700;
}


/* =============================================
   MERCATO
   ============================================= */

.mercato-status {
    padding: 16px;

    border-radius: var(--radius);

    margin-bottom: 16px;
}

.mercato-open {
    background: rgba(34, 197, 94, .08);

    border: 1px solid rgba(34, 197, 94, .3);
}

.mercato-closed {
    background: rgba(239, 68, 68, .06);

    border: 1px solid rgba(239, 68, 68, .2);
}

.status-dot {
    display: inline-block;

    width: 8px;

    height: 8px;

    border-radius: 50%;

    margin-right: 8px;
}

.mercato-open .status-dot {
    background: var(--success);
}

.mercato-closed .status-dot {
    background: var(--danger);
}

.lft-list {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;
}


/* =============================================
   HALL OF FAME
   ============================================= */

.hof-header {
    text-align: center;

    padding: 40px 0 20px;
}

.hof-header h1 {
    font-size: 2.2em;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #a855f7,
            #f59e0b
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hof-category-title {
    font-size: 1.4em;

    margin: 30px 0 16px;

    padding-bottom: 8px;

    border-bottom: 2px solid var(--accent);

    color: var(--text);
}

.hof-grid,
.hof-grid-full {
    display: grid;

    gap: 20px;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(200px, 1fr)
        );
}

.hof-grid-full {
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(260px, 1fr)
        );
}

.hof-mini-card {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    padding: 16px;

    background: var(--bg-card);

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

    border-radius: var(--radius);

    transition: all .3s;
}

.hof-mini-card:hover {
    border-color: var(--accent);

    transform: translateY(-2px);

    opacity: 1;
}

.hof-avatar {
    width: 56px;
    height: 56px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #a855f7
        );

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

    color: #000;

    font-size: 1.1em;
}

.hof-name {
    font-weight: 600;
}

.hof-year {
    font-size: .8em;

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

.hof-card {
    background: var(--bg-card);

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

    border-radius: var(--radius);

    overflow: hidden;

    transition: all .3s;
}

.hof-card:hover {
    border-color: var(--accent);

    transform: translateY(-4px);

    box-shadow:
        0 8px 32px
        rgba(0, 212, 255, .1);

    opacity: 1;
}

.hof-card-inner {
    padding: 28px;

    text-align: center;
}

.hof-card-avatar {
    width: 80px;
    height: 80px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #a855f7
        );

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

    font-size: 1.6em;

    color: #000;

    margin: 0 auto 16px;

    border: 3px solid rgba(255, 255, 255, .1);
}

.hof-card-category {
    font-size: .75em;

    text-transform: uppercase;

    letter-spacing: 2px;

    color: var(--accent);

    margin-bottom: 8px;
}

.hof-card-name {
    font-size: 1.3em;

    margin-bottom: 4px;

    color: var(--text);
}

.hof-card-realname {
    color: var(--text-muted);

    font-size: .9em;
}

.hof-card-year {
    font-size: .8em;

    color: var(--text-muted);

    margin: 8px 0;
}

.hof-card-team {
    font-size: .85em;

    color: var(--accent);

    margin-bottom: 8px;
}

.hof-card-desc {
    color: var(--text-muted);

    font-size: .85em;

    line-height: 1.5;
}

.hof-detail-header {
    display: flex;

    gap: 24px;

    align-items: flex-start;

    flex-wrap: wrap;
}

.hof-avatar-lg {
    width: 100px;
    height: 100px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #a855f7
        );

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;

    font-size: 2em;

    color: #000;

    flex-shrink: 0;

    border: 3px solid rgba(255, 255, 255, .1);
}

.hof-detail-info {
    flex: 1;
}

.hof-year-badge {
    display: inline-block;

    padding: 4px 12px;

    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #a855f7
        );

    color: #000;

    font-size: .8em;

    font-weight: 600;

    margin-top: 4px;
}

.hof-description {
    margin-top: 20px;

    line-height: 1.8;
}

.hof-section {
    border-top: 3px solid;

    border-image:
        linear-gradient(
            135deg,
            var(--accent),
            #a855f7,
            #f59e0b
        ) 1;
}


/* =============================================
   ANNOUNCEMENTS
   ============================================= */

.announcement-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 8px 0;

    border-bottom: 1px solid var(--border);
}

.announcement-card {
}

.announcement-meta {
    color: var(--text-muted);

    font-size: .85em;

    margin: 8px 0;
}

.announcement-content {
    line-height: 1.8;

    margin-top: 16px;
}

.announcement-content h3,
.announcement-content h4 {
    margin: 20px 0 8px;

    color: var(--text);
}

.announcement-content ul {
    margin: 8px 0;

    padding-left: 24px;
}

.announcement-content li {
    margin: 4px 0;
}


/* =============================================
   SEARCH
   ============================================= */

.search-result {
    display: block;

    padding: 10px;

    border-bottom: 1px solid var(--border);

    transition: background .2s;
}

.search-result:hover {
    background: var(--bg-card-hover);
}


/* =============================================
   DIAGNOSTIC
   ============================================= */

.diag-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 10px 0;

    border-bottom: 1px solid var(--border);

    gap: 12px;
}

.diag-name {
    font-weight: 600;
}


/* =============================================
   ALERTS
   ============================================= */

.alert {
    padding: 12px 20px;

    border-radius: var(--radius);

    margin: 12px 0;

    font-size: .9em;
}

.alert-success {
    background: rgba(34, 197, 94, .1);

    color: var(--success);

    border: 1px solid rgba(34, 197, 94, .2);
}

.alert-error {
    background: rgba(239, 68, 68, .1);

    color: var(--danger);

    border: 1px solid rgba(239, 68, 68, .2);
}

.alert-info {
    background: rgba(0, 212, 255, .1);

    color: var(--accent);

    border: 1px solid rgba(0, 212, 255, .2);
}


/* =============================================
   PAGINATION
   ============================================= */

.pagination {
    display: flex;

    gap: 6px;

    margin: 20px 0;

    flex-wrap: wrap;
}


/* =============================================
   FOOTER
   ============================================= */

.footer {
    margin-top: 40px;

    padding: 40px 0 20px;

    border-top: 1px solid var(--border);

    background: var(--bg-card);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px, 1fr)
        );

    gap: 24px;
}

.footer-col h4 {
    margin-bottom: 12px;

    font-size: 1em;
}

.footer-col a {
    display: block;

    color: var(--text-muted);

    padding: 4px 0;

    font-size: .9em;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;

    margin-top: 30px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: .85em;
}


/* =============================================
   ADMIN LAYOUT
   ============================================= */

.admin-body {
    background: var(--bg);
}

.admin-layout {
    display: flex;

    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;

    background: var(--bg-card);

    border-right: 1px solid var(--border);

    padding: 0;

    flex-shrink: 0;

    position: sticky;

    top: 0;

    height: 100vh;

    overflow-y: auto;
}

.admin-brand {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 16px;

    font-weight: 700;

    color: var(--text);

    border-bottom: 1px solid var(--border);
}

.sidebar-link {
    display: block;

    padding: 10px 16px;

    color: var(--text-muted);

    font-size: .9em;

    transition:
        background .2s,
        color .2s;

    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: var(--bg-card-hover);

    color: var(--text);

    border-left-color: var(--accent);

    opacity: 1;
}

.admin-main {
    flex: 1;

    display: flex;

    flex-direction: column;

    min-width: 0;
}

.admin-topbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    padding: 14px 24px;

    border-bottom: 1px solid var(--border);

    background: var(--bg-card);
}

.admin-topbar h2 {
    font-size: 1.1em;

    flex: 1;
}

.admin-content {
    padding: 24px;

    flex: 1;
}

.admin-toolbar {
    margin-bottom: 16px;
}

.admin-stats-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(150px, 1fr)
        );

    gap: 14px;
}

.admin-stat {
    background: var(--bg-card);

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

    border-radius: var(--radius);

    padding: 20px;

    text-align: center;
}

.admin-stat .stat-value {
    display: block;

    font-size: 2em;

    font-weight: 800;

    color: var(--accent);
}

.admin-stat span:last-child {
    font-size: .85em;

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


/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {

    /* Navigation mobile */

    .nav-menu {
        display: none;

        position: absolute;

        top: 100%;

        left: 0;

        right: 0;

        background: var(--bg-card);

        padding: 12px;

        border-bottom: 1px solid var(--border);

        flex-direction: column;

        gap: 0;

        align-items: stretch;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;

        margin-left: auto;
    }

    .nav-search {
        margin: 8px 0;

        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }


    /* Zone utilisateur mobile */

    .nav-user-section {
        margin-left: 0;

        margin-top: 12px;

        padding-top: 12px;

        border-top: 1px solid var(--border);

        width: 100%;

        gap: 8px;

        flex-wrap: wrap;
    }

    .nav-username,
    .nav-logout,
    .nav-login {
        width: auto;
    }


    /* Hero */

    .hero h1 {
        font-size: 1.8em;
    }

    .hero-stats {
        gap: 12px;
    }


    /* Grids */

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }


    /* Player */

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


    /* Match */

    .match-header-big {
        gap: 16px;
    }

    .score-num {
        font-size: 2em;
    }


    /* Team */

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


    /* Hall of Fame */

    .hof-detail-header {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }


    /* Admin */

    .admin-sidebar {
        position: fixed;

        left: -220px;

        z-index: 200;

        transition: left .3s;
    }

    .admin-sidebar.active {
        left: 0;
    }

    .admin-topbar .nav-toggle {
        display: block;
    }

    .admin-content {
        padding: 16px;
    }

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

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

    .filters {
        flex-direction: column;
    }

    .filters input,
    .filters select {
        width: 100%;
    }
}


/* =============================================
   PRINT
   ============================================= */

@media print {

    .navbar,
    .footer,
    .nav-toggle,
    .btn,
    .filters {
        display: none;
    }

    body {
        background: #fff;

        color: #000;
    }

    .card {
        border: 1px solid #ddd;

        box-shadow: none;
    }
}