/* --- Variables & Thème Sombre/Or --- */
:root {
    --bg-dark: #0b0f12;
    --bg-card: #141b22;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --gold: #d4af37;
    --gold-hover: #f3ce56;
    --danger: #ef4444;
    --success: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- HEADER / NAVIGATION --- */
.main-header {
    background-color: var(--bg-card);
    border-bottom: 2px solid var(--gold);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.logo .gold {
    color: var(--gold);
}

.navbar a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar a:hover {
    color: var(--gold);
}

/* --- CONTENT GENERAL --- */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(180deg, var(--bg-card) 0%, transparent 100%);
    padding: 2.5rem 1rem;
    border-radius: 8px;
}

.page-header h1 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
}

/* --- HERO BANNER (ACCUEIL) --- */
.hero {
    text-align: center;
    padding: 5rem 1rem;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- MATCH CARDS --- */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.btn-filter {
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter.active, .btn-filter:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
    font-weight: bold;
}

.matches-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.match-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.2s;
}

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

.match-status {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.match-card.live .match-status {
    color: var(--danger);
    animation: pulse 1.5s infinite;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.team {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
}

.team:last-child {
    text-align: right;
}

.match-score {
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    letter-spacing: 5px;
}

.match-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.5rem;
}

/* --- TABLES (CLASSEMENTS) --- */
.table-responsive {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.ranking-table th, .ranking-table td {
    padding: 1rem;
    text-align: center;
}

.ranking-table th {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.ranking-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ranking-table tbody tr:hover {
    background-color: rgba(255,255,255,0.02);
}

.team-cell {
    text-align: left;
}

.pts-cell {
    font-weight: bold;
    color: var(--gold);
}

/* --- STAFF / A PROPOS --- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.staff-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.staff-card:hover {
    border-bottom-color: var(--gold);
}

.staff-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.staff-card h3 {
    margin-bottom: 0.25rem;
}

.staff-card .role {
    color: var(--gold);
    font-size: 0.9rem;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--bg-card);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}