/* BetPro - Styles CSS Complets */
/* =====================================================*/
/* VARIABLES CSS ET THÈME */
/* =====================================================*/

:root {
    /* Couleurs principales */
    --primary-color: #256ff8;
    --primary-dark: #1e5bc6;
    --primary-light: #4d8bfa;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --info-color: #17a2b8;

    /* Couleurs de fond */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a3a;
    --bg-tertiary: #252545;
    --bg-surface: #2d2d4d;
    --bg-card: rgba(45, 45, 77, 0.8);
    --bg-overlay: rgba(0, 0, 0, 0.8);

    /* Couleurs de texte */
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --text-muted: #8888aa;
    --text-inverse: #1a1a3a;

    /* Bordures et ombres */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(37, 111, 248, 0.3);

    /* Espacements */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-tooltip: 1070;
}

/* =====================================================*/
/* RESET ET BASE STYLES */
/* =====================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =====================================================*/
/* ÉCRAN DE CHARGEMENT */
/* =====================================================*/

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(37, 111, 248, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-lg);
}

.loading-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* =====================================================*/
/* HEADER */
/* =====================================================*/

.header {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 58, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-sticky);
    transition: all var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(37, 111, 248, 0.1);
    border-color: rgba(37, 111, 248, 0.3);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-glow);
}

.nav-item i {
    font-size: 1.1rem;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.header-center {
    flex: 1;
    max-width: 400px;
    margin: 0 var(--spacing-lg);
}

.search-container {
    position: relative;
    width: 100%;
}

.search-container i {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

#search-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 111, 248, 0.1);
    background: var(--bg-tertiary);
}

#search-input::placeholder {
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.balance-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.balance-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: var(--bg-surface);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.balance-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.balance-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
}

.balance-currency {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.deposit-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--success-color);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.deposit-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-avatar:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

#username {
    font-weight: 500;
    margin: 0 var(--spacing-sm);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
    margin-top: var(--spacing-xs);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(37, 111, 248, 0.1);
    color: var(--primary-light);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-xs) 0;
}

/* =====================================================*/
/* CONTENU PRINCIPAL */
/* =====================================================*/

.main-content {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
}

/* =====================================================*/
/* SIDEBAR */
/* =====================================================*/

.sidebar {
    width: 280px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    height: fit-content;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: var(--spacing-xl);
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.category-item:hover {
    background: rgba(37, 111, 248, 0.1);
    border-color: rgba(37, 111, 248, 0.3);
    color: var(--text-primary);
}

.category-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-item span:first-child {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-item.active .category-count {
    background: rgba(255, 255, 255, 0.3);
}

.active-bets {
    max-height: 300px;
    overflow-y: auto;
}

.active-bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--bg-surface);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.active-bet-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.bet-info {
    flex: 1;
}

.bet-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.bet-option {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.bet-amount {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
}

.bet-potential {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 600;
}

.see-more-bets {
    width: 100%;
    padding: var(--spacing-sm);
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.see-more-bets:hover {
    border-color: var(--primary-color);
    color: var(--primary-light);
}

.leaderboard-mini {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.leaderboard-mini-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-surface);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.leaderboard-mini-item:hover {
    border-color: var(--primary-color);
}

.leaderboard-mini-item.current-user {
    background: rgba(37, 111, 248, 0.1);
    border-color: var(--primary-color);
}

.rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: var(--text-muted);
}

.rank.gold {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #1a1a3a;
}

.rank.silver {
    background: linear-gradient(45deg, #c0c0c0, #e8e8e8);
    color: #1a1a3a;
}

.rank.bronze {
    background: linear-gradient(45deg, #cd7f32, #e6a85c);
    color: white;
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.player-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.player-points {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =====================================================*/
/* ZONE DE CONTENU */
/* =====================================================*/

.content-area {
    flex: 1;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.view-toggle {
    display: flex;
    background: var(--bg-surface);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.view-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: rgba(37, 111, 248, 0.1);
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

.sort-dropdown {
    position: relative;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sort-btn:hover {
    border-color: var(--primary-color);
}

.sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: var(--z-dropdown);
    margin-top: var(--spacing-xs);
}

.sort-menu[style*="block"] {
    display: block;
}

.sort-option {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sort-option:hover {
    background: rgba(37, 111, 248, 0.1);
    color: var(--primary-light);
}

.sort-option.active {
    background: var(--primary-color);
    color: white;
}

/* =====================================================*/
/* ÉVÉNEMENTS */
/* =====================================================*/

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.events-container.list-view {
    grid-template-columns: 1fr;
}

.event-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.event-card.featured {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

.event-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #ffed4e);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.2);
}

.event-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-live {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

.status-upcoming {
    background: rgba(255, 193, 7, 0.2);
    color: var(--accent-color);
}

.status-finished {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.featured-badge {
    padding: 4px 8px;
    background: var(--accent-color);
    color: var(--text-inverse);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-content {
    padding: var(--spacing-lg);
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.event-question {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.event-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.event-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-options {
    display: grid;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.option-btn:hover:not(.disabled) {
    background: rgba(37, 111, 248, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.option-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.option-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.option-name {
    font-weight: 600;
}

.option-trend {
    font-size: 0.8rem;
    font-weight: 700;
}

.option-trend.up {
    color: var(--success-color);
}

.option-trend.down {
    color: var(--danger-color);
}

.option-trend.stable {
    color: var(--text-muted);
}

.option-odds {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(255, 193, 7, 0.1);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
}

.event-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--primary-color);
    color: var(--primary-light);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* =====================================================*/
/* ÉVÉNEMENTS EN DIRECT */
/* =====================================================*/

.live-events {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.live-event-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--danger-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.live-event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--danger-color), #ff6b6b);
    animation: pulse 2s infinite;
}

.live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: rgba(220, 53, 69, 0.1);
}

.live-indicator {
    width: 12px;
    height: 12px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    margin-right: var(--spacing-xs);
}

.live-status {
    display: flex;
    align-items: center;
    color: var(--danger-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.live-viewers {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.live-content {
    padding: var(--spacing-lg);
}

.live-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.live-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.live-options {
    display: grid;
    gap: var(--spacing-sm);
}

.live-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.live-option:hover {
    background: rgba(37, 111, 248, 0.1);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.option-details {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.live-odds {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    animation: pulse 3s infinite;
}

/* =====================================================*/
/* QUIZ */
/* =====================================================*/

.quiz-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.quiz-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.quiz-category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-xl);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.quiz-category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 111, 248, 0.1), transparent);
    transition: left 0.5s ease;
}

.quiz-category-btn:hover::before {
    left: 100%;
}

.quiz-category-btn:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.quiz-category-btn i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.quiz-info {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.quiz-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.quiz-reward {
    background: var(--success-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =====================================================*/
/* TICKET DE PARIS */
/* =====================================================*/

.bet-slip {
    position: fixed;
    right: 0;
    top: 80px;
    width: 400px;
    height: calc(100vh - 80px);
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    z-index: var(--z-fixed);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.bet-slip.open {
    transform: translateX(0);
}

.bet-slip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.bet-slip-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bet-slip-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.bet-slip-close:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.bet-slip-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bet-slip-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
}

.bet-slip-empty i {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.bet-selections {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.bet-selection {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.bet-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.2);
}

.bet-event-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.remove-bet {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.remove-bet:hover {
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

.bet-selection-content {
    padding: var(--spacing-md);
}

.bet-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.option-name {
    font-weight: 600;
    color: var(--text-primary);
}

.option-odds {
    color: var(--accent-color);
    font-weight: 700;
    background: rgba(255, 193, 7, 0.1);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
}

.bet-stake {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.bet-stake input {
    flex: 1;
    padding: var(--spacing-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.bet-stake input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.currency {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bet-potential {
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 600;
    text-align: center;
}

.bet-slip-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.stake-input {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.stake-input label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stake-input input {
    flex: 1;
    padding: var(--spacing-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.potential-return {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.return-amount {
    color: var(--success-color);
    font-size: 1.1rem;
}

.place-bet-btn {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.place-bet-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.place-bet-btn:active {
    transform: translateY(0);
}

/* =====================================================*/
/* MODALS */
/* =====================================================*/

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal[style*="block"] {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-normal);
}

.modal[style*="block"] .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

.modal-body {
    padding: var(--spacing-lg);
    max-height: 60vh;
    overflow-y: auto;
}

/* =====================================================*/
/* QUIZ MODAL */
/* =====================================================*/

.quiz-modal .modal-content {
    max-width: 700px;
}

.quiz-content {
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.quiz-progress {
    flex: 1;
    margin-right: var(--spacing-lg);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
    transition: width var(--transition-normal);
    width: 0;
}

.question-counter {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.quiz-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(255, 193, 7, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    min-width: 60px;
    text-align: center;
}

.quiz-body {
    flex: 1;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    line-height: 1.5;
}

.quiz-answers {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.quiz-answer-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
}

.quiz-answer-btn:hover:not(:disabled) {
    background: rgba(37, 111, 248, 0.1);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.quiz-answer-btn:disabled {
    cursor: not-allowed;
}

.quiz-answer-btn.correct {
    background: rgba(40, 167, 69, 0.2);
    border-color: var(--success-color);
    color: var(--success-color);
}

.quiz-answer-btn.incorrect {
    background: rgba(220, 53, 69, 0.2);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.quiz-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    text-align: center;
}

.quiz-score {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Résultats du quiz */
.quiz-results {
    text-align: center;
    padding: var(--spacing-2xl);
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.results-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.results-percentage {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.results-body {
    margin-bottom: var(--spacing-xl);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
}

.results-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* =====================================================*/
/* HISTORIQUE DES PARIS */
/* =====================================================*/

.bet-history-tabs {
    display: flex;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    padding: 4px;
    margin-bottom: var(--spacing-lg);
}

.tab-btn {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.bet-history-content {
    max-height: 400px;
    overflow-y: auto;
}

.bet-history-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.bet-history-item:hover {
    border-color: var(--primary-color);
}

.bet-history-item.status-win {
    border-left: 4px solid var(--success-color);
}

.bet-history-item.status-loss {
    border-left: 4px solid var(--danger-color);
}

.bet-history-item.status-pending {
    border-left: 4px solid var(--accent-color);
}

.bet-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(0, 0, 0, 0.2);
}

.bet-status {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.bet-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bet-item-content {
    padding: var(--spacing-md);
}

.bet-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.bet-details {
    display: grid;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
}

.bet-option {
    color: var(--text-secondary);
}

.bet-odds {
    color: var(--accent-color);
}

.bet-stake {
    color: var(--text-primary);
    font-weight: 600;
}

.bet-win {
    color: var(--success-color);
    font-weight: 600;
}

.bet-loss {
    color: var(--danger-color);
    font-weight: 600;
}

.bet-potential {
    color: var(--info-color);
    font-weight: 600;
}

/* =====================================================*/
/* NOTIFICATIONS */
/* =====================================================*/

.notification-container {
    position: fixed;
    top: 100px;
    right: var(--spacing-lg);
    z-index: var(--z-tooltip);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.notification {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all var(--transition-normal);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: rgba(40, 167, 69, 0.1);
    border-color: var(--success-color);
}

.notification.error {
    background: rgba(220, 53, 69, 0.1);
    border-color: var(--danger-color);
}

.notification.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--warning-color);
}

.notification.info {
    background: rgba(23, 162, 184, 0.1);
    border-color: var(--info-color);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-text {
    color: var(--text-primary);
    font-weight: 500;
}

.notification-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    margin-left: var(--spacing-sm);
}

.notification-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* =====================================================*/
/* NAVIGATION MOBILE */
/* =====================================================*/

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    z-index: var(--z-fixed);
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    min-width: 60px;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item.active {
    color: var(--primary-color);
    background: rgba(37, 111, 248, 0.1);
}

.bottom-nav .nav-item img {
    width: 24px;
    height: 24px;
    filter: grayscale(1);
    transition: filter var(--transition-fast);
}

.bottom-nav .nav-item:hover img,
.bottom-nav .nav-item.active img {
    filter: none;
}

.bottom-nav .nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* =====================================================*/
/* STATISTIQUES */
/* =====================================================*/

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--bg-surface);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.stat-card h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.recent-activity {
    margin-top: var(--spacing-xl);
}

.recent-activity h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--bg-surface);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-xs);
}

.activity-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.activity-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.activity-status.status-win {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.activity-status.status-loss {
    background: rgba(220, 53, 69, 0.2);
    color: var(--danger-color);
}

.activity-status.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.activity-amount {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =====================================================*/
/* FONCTIONNALITÉS IA */
/* =====================================================*/

.ai-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.feature-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.feature-btn:hover {
    background: rgba(37, 111, 248, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-light);
}

/* =====================================================*/
/* DÉPÔT ET PAIEMENTS */
/* =====================================================*/

.deposit-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.deposit-amounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

.deposit-amounts .deposit-btn {
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.deposit-amounts .deposit-btn:hover {
    border-color: var(--primary-color);
    background: rgba(37, 111, 248, 0.1);
    color: var(--primary-light);
}

.custom-amount {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.custom-amount label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.custom-amount input {
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.custom-amount input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 111, 248, 0.1);
}

.payment-info {
    background: rgba(255, 193, 7, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.payment-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.payment-info p:first-child {
    font-weight: 600;
    color: var(--accent-color);
}

/* =====================================================*/
/* DÉTAILS D'ÉVÉNEMENT */
/* =====================================================*/

.event-details-modal .modal-content {
    max-width: 800px;
}

.event-full-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.event-full-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.event-question p,
.event-description p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.option-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.option-detail:hover {
    border-color: var(--primary-color);
}

.option-info {
    flex: 1;
}

.option-info .option-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.option-info .option-trend {
    font-size: 0.85rem;
    font-weight: 500;
}

.option-odds-detail {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.odds-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(255, 193, 7, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
}

/* =====================================================*/
/* SKELETON LOADING */
/* =====================================================*/

.loading-events,
.loading-placeholder {
    animation: pulse 1.5s ease-in-out infinite;
}

.event-skeleton {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    height: 300px;
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.event-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 2s infinite;
}

/* =====================================================*/
/* ANIMATIONS */
/* =====================================================*/

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.02);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* =====================================================*/
/* ÉTATS SPÉCIAUX */
/* =====================================================*/

.featured {
    position: relative;
}

.featured::after {
    content: '⭐';
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

.trending {
    position: relative;
    overflow: hidden;
}

.trending::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 111, 248, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.hot {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}

.new-item {
    position: relative;
}

.new-item::after {
    content: 'NOUVEAU';
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================*/
/* RESPONSIVE DESIGN */
/* =====================================================*/

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .events-container {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .header-left {
        order: 1;
        gap: var(--spacing-md);
    }
    
    .header-center {
        order: 3;
        width: 100%;
        margin: var(--spacing-md) 0 0 0;
        max-width: none;
    }
    
    .header-right {
        order: 2;
        gap: var(--spacing-sm);
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .main-content {
        padding-bottom: 80px;
    }
    
    .events-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    
    .bet-slip {
        width: 100%;
        top: 0;
        height: 100vh;
    }
    
    .section-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .section-controls {
        justify-content: space-between;
    }
    
    .balance-item {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    #username {
        display: none;
    }
    
    .user-dropdown {
        right: auto;
        left: 0;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: var(--spacing-sm);
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .header-center {
        margin-top: var(--spacing-sm);
    }
    
    .event-card {
        margin-bottom: var(--spacing-sm);
    }
    
    .event-content {
        padding: var(--spacing-md);
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: var(--spacing-sm);
    }
    
    .quiz-answers {
        gap: var(--spacing-sm);
    }
    
    .quiz-answer-btn {
        padding: var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .notification {
        min-width: auto;
        max-width: calc(100vw - 2 * var(--spacing-md));
        margin: 0 var(--spacing-md);
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 320px) {
    :root {
        font-size: 14px;
    }
    
    .header-container {
        padding: var(--spacing-xs);
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
        padding: var(--spacing-sm);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-nav .nav-item {
        min-width: 50px;
        font-size: 0.7rem;
    }
    
    .bottom-nav .nav-item img {
        width: 20px;
        height: 20px;
    }
}

/* =====================================================*/
/* THÈME SOMBRE AVANCÉ */
/* =====================================================*/

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a1a;
        --bg-secondary: #1a1a2e;
        --bg-tertiary: #16213e;
        --bg-surface: #16213e;
        --bg-card: rgba(22, 33, 62, 0.9);
    }
}

/* =====================================================*/
/* PERFORMANCE ET OPTIMISATIONS */
/* =====================================================*/

/* Améliorer les performances pour les éléments animés */
.event-card,
.option-btn,
.notification,
.bet-slip,
.modal-content {
    will-change: transform;
}

/* Optimiser le rendu des listes longues */
.bet-selections,
.bet-history-content,
.events-container {
    contain: layout style paint;
}

/* Réduire les repaints pour les éléments fixes */
.header,
.bet-slip,
.mobile-nav {
    contain: layout style;
}

/* =====================================================*/
/* ACCESSIBILITÉ */
/* =====================================================*/

/* Focus visible pour la navigation au clavier */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Améliorer la lisibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Contraste élevé pour les utilisateurs ayant des difficultés visuelles */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
        --text-secondary: #e0e0e0;
        --text-muted: #cccccc;
    }
}

/* =====================================================*/
/* UTILITAIRES */
/* =====================================================*/

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.m-0 { margin: 0; }
.p-0 { padding: 0; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-info { background-color: var(--info-color); }

/* =====================================================*/
/* PRINT STYLES */
/* =====================================================*/

@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .header,
    .sidebar,
    .bet-slip,
    .mobile-nav,
    .modal {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .event-card {
        break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
}

/* =====================================================*/
/* FIN DU FICHIER CSS */
/* =====================================================*/