:root {
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --accent: #6366f1; /* Violet Zapper */
    --accent-soft: rgba(99, 102, 241, 0.1);
    --text-main: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-soft: #f1f5f9;
    --font-main: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
}

/* Centrage Global */
.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Type "Zapper" */
.admin-header {
    width: 100%;
    background: transparent;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.admin-nav {
    background: white;
    padding: 0.6rem 2rem; /* Plus d'espace sur les côtés pour compenser le rond */
    border-radius: 100px; /* TOTALEMENT ROND */
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-pill {
    padding: 0.7rem 1.6rem;
    border-radius: 100px;
    text-decoration: none !important;
    color: var(--text-secondary);
    font-weight: 850;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    white-space: nowrap; /* FORCE UNE SEULE LIGNE */
}

.nav-pill:hover:not(.active) {
    background: var(--bg-main);
    color: var(--accent);
}

.nav-pill.active {
    background: var(--accent);
    color: white !important;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
}

/* Sub-Navigation Centrée */
.nav-pill-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.sub-nav-pill {
    background: white;
    padding: 0.4rem;
    border-radius: 100px; /* TOTALEMENT ROND */
    border: 1px solid var(--border-soft);
    display: flex;
    gap: 0.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.subnav-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 100px; /* TOTALEMENT ROND */
    text-decoration: none !important;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--text-secondary);
    text-transform: uppercase;
    white-space: nowrap; /* TOUT SUR UNE LIGNE */
    transition: all 0.2s;
}

.subnav-btn.active {
    background: var(--accent-soft);
    color: var(--accent) !important;
}

/* Match Rows */
.match-row {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 1.2rem 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.01);
    transition: all 0.3s ease;
}

.match-row:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

/* Bulles de Score GROS & GRAS */
.bracket-input {
    width: 48px;
    height: 48px;
    border-radius: 50% !important; /* ROND PARFAIT */
    background: #f1f5f9;
    border: 2px solid transparent;
    text-align: center;
    font-weight: 950;
    font-size: 1.3rem;
    color: var(--text-main);
    transition: all 0.2s;
    appearance: none;
    -moz-appearance: textfield;
}

.bracket-input::-webkit-inner-spin-button, 
.bracket-input::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

.bracket-input:focus {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    outline: none;
}

/* Boutons d'Action */
.btn-validate {
    background: #10b981; /* VERT SUCCÈS */
    color: white !important;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-validate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-edit {
    background: #ef4444; /* ROUGE CARDINAL */
    color: white !important;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.team-name {
    width: 280px;
    font-weight: 950;
    color: #0f172a;
    font-size: 1rem;
    letter-spacing: -0.5px;
}

.team-left {
    text-align: right; /* FINIT AU SCORE */
    padding-right: 2.5rem;
}

.team-right {
    text-align: left; /* COMMENCE AU SCORE */
    padding-left: 2.5rem;
}

/* Version Vue Générale (Sans bords au repos mais avec Hover) */
.match-row-global {
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    margin: 0.1rem 0;
    transition: all 0.3s ease;
}

.match-row-global:hover {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
    z-index: 10;
}

.time-range {
    width: 120px;
    font-weight: 950;
    color: var(--text-main);
    font-size: 0.85rem;
}