/* Variables pour haut contraste mobile - reprises du dashboard principal */
:root {
    --primary-color: #3b82f6;
    --primary-color-light: #60a5fa;
    --primary-color-dark: #1d4ed8;
    --success-color: #059669;
    --success-color-light: #10b981;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --warning-color-light: #fbbf24;
    --info-color: #0ea5e9;
    --gray-light: #f8f9fa;
    --gray-medium: #6b7280;
    --gray-dark: #374151;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #E6EEFA;
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.18);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --font-family: 'IBM Plex Sans', sans-serif;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

/* Reset et base mobile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    font-size: 16px;
    font-weight: 400;
}

/* Sections */
section {
    padding: var(--spacing-lg) var(--spacing-md);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title svg {
    color: var(--primary-color);
}

/* Animations globales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }

/* Optimisations tactiles */
.trophy-card,
.ranking-item,
.stat-card {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.trophy-card:active,
.ranking-item:active,
.stat-card:active {
    transform: scale(0.98);
}

/* Accessibilité et lisibilité haute luminosité */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1d4ed8;
        --success-color: #047857;
        --danger-color: #b91c1c;
        --warning-color: #d97706;
        --text-primary: #000000;
        --border-color: #374151;
    }
}

/* Adaptations pour très petits écrans */
@media (max-width: 360px) {
    .trophies-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .performance-summary {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .agent-name {
        font-size: 20px;
    }
    
    .summary-value {
        font-size: 24px;
    }
}