/**
 * OpenFit - Style Futuriste Minimaliste
 * Inspiré de ClassPass et Urban Sports Club
 * Design épuré, moderne, avec animations subtiles
 */

/* ============================================
   VARIABLES CSS - COULEURS MODERNES
   ============================================ */
:root {
    --primary: #b85035;
    --primary-dark: #983920;
    --primary-light: #f6e3dc;
    --secondary: #983920;
    --accent: #d96b4d;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;
    
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* Mode sombre optionnel */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --bg-card: #1e293b;
        
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-tertiary: #94a3b8;
        
        --border-color: #334155;
    }
}

/* ============================================
   RESET & BASE
   ============================================ */
body {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   CARDS MODERNES
   ============================================ */
.futuristic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.futuristic-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ============================================
   BOUTONS MINIMALISTES
   ============================================ */
.btn-futuristic {
    background: var(--primary);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    color: var(--text-inverse);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-futuristic:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-futuristic:active {
    transform: translateY(0);
}

.btn-futuristic-secondary {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-futuristic-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-futuristic:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   INPUTS MODERNES
   ============================================ */
.input-futuristic {
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
    width: 100%;
}

.input-futuristic:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-futuristic::placeholder {
    color: var(--text-tertiary);
}

/* ============================================
   STATISTICS CARDS
   ============================================ */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   NAVIGATION ÉPURÉE
   ============================================ */
.futuristic-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.futuristic-nav-link {
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin: 4px 0;
    font-size: 15px;
    font-weight: 500;
}

.futuristic-nav-link:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.futuristic-nav-link.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    font-weight: 600;
}

.futuristic-nav-link i {
    width: 20px;
    text-align: center;
}

/* ============================================
   HEADER MODERNE
   ============================================ */
.futuristic-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
}

.futuristic-header h1 {
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.futuristic-header h1 i {
    color: var(--primary);
}

/* ============================================
   TABLEAUX MODERNES
   ============================================ */
.futuristic-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.futuristic-table thead {
    background: var(--bg-tertiary);
}

.futuristic-table th {
    padding: 16px;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.futuristic-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

.futuristic-table tbody tr {
    transition: var(--transition);
}

.futuristic-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.futuristic-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge-futuristic {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: none;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ============================================
   GRID LAYOUT
   ============================================ */
.futuristic-grid {
    display: grid;
    gap: 20px;
}

.grid-2 { 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
}

.grid-3 { 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
}

.grid-4 { 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

/* ============================================
   ANIMATIONS SUBTILES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-in {
    animation: fadeIn 0.4s ease-out;
}

/* ============================================
   TEXTES SPÉCIAUX
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neon-text {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   SCROLLBAR MINIMALISTE
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .futuristic-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .futuristic-header h1 {
        font-size: 24px;
    }
    
    .futuristic-grid {
        gap: 16px;
    }
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-card { background: var(--bg-card); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }
