/* ============================================
   SeneLutte - Styles principaux
   Mobile-first, App-like
   ============================================ */

/* ============================================
   Variables CSS (thème)
   ============================================ */
:root {
    /* Couleurs principales */
    --primary:        #e94560;
    --primary-dark:   #c73652;
    --primary-light:  #ff6b81;
    --secondary:      #0f3460;
    --secondary-light:#1a4a7a;
    
    /* Fond & surfaces */
    --bg-dark:        #0a0a1a;
    --bg-card:        #131328;
    --bg-card-hover:  #1a1a3e;
    --bg-surface:     #16213e;
    --bg-input:       #1a1a3e;
    
    /* Texte */
    --text-primary:   #f0f0f0;
    --text-secondary: #8a8aa3;
    --text-muted:     #5a5a7a;
    
    /* Accent / Succès / Erreur */
    --accent:         #ffc947;
    --success:        #27ae60;
    --error:          #e74c3c;
    --warning:        #f39c12;
    --info:           #3498db;
    
    /* Bordures */
    --border-color:   rgba(255,255,255,0.06);
    --border-radius:  12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --border-radius-full: 50%;
    
    /* Ombres */
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.5);
    
    /* Espacement */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-xxl: 48px;
    
    /* Navigation */
    --header-height: 56px;
    --bottom-nav-height: 64px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--primary-light); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ============================================
   Loader (écran de chargement)
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   App Container
   ============================================ */
.app-container {
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    background: var(--bg-dark);
}

@media (min-width: 768px) {
    .app-container {
        max-width: 480px;
        box-shadow: -1px 0 0 var(--border-color), 1px 0 0 var(--border-color);
    }
}

/* ============================================
   Header
   ============================================ */
.app-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--header-height);
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: transform var(--transition-base);
}

.app-header.hidden {
    transform: translateX(-50%) translateY(-100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-md);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.app-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.app-logo {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-full);
    transition: background var(--transition-fast);
    color: var(--text-secondary);
}

.btn-icon:hover { background: var(--bg-card); }
.btn-icon:active { transform: scale(0.92); }

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    padding-top: var(--header-height);
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
    min-height: 100vh;
}

.page-section {
    padding: var(--space-md);
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Bottom Navigation
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--bottom-nav-height);
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-xs) var(--space-sm);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast), transform var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-fast);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(233, 69, 96, 0.4));
}

.nav-item:active {
    transform: scale(0.9);
}

/* ============================================
   Cards (composant de base)
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:active {
    transform: scale(0.98);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--space-md);
}

/* ============================================
   Boutons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    border: none;
    cursor: pointer;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-accent {
    background: var(--accent);
    color: #1a1a2e;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-full { width: 100%; }

.btn-rounded { border-radius: 50px; }

/* ============================================
   Formulaires
   ============================================ */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.form-input.error { border-color: var(--error); }

.form-error {
    font-size: 0.75rem;
    color: var(--error);
    margin-top: var(--space-xs);
}

/* Select */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a8aa3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin: var(--space-md);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-success { background: rgba(39,174,96,0.15); color: var(--success); border: 1px solid rgba(39,174,96,0.3); }
.flash-error   { background: rgba(231,76,60,0.15); color: var(--error); border: 1px solid rgba(231,76,60,0.3); }
.flash-warning { background: rgba(243,156,18,0.15); color: var(--warning); border: 1px solid rgba(243,156,18,0.3); }
.flash-info    { background: rgba(52,152,219,0.15); color: var(--info); border: 1px solid rgba(52,152,219,0.3); }

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0 0 0 var(--space-sm);
}

/* ============================================
   Tags / Badges
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary  { background: rgba(233,69,96,0.15); color: var(--primary); }
.badge-accent   { background: rgba(255,201,71,0.15); color: var(--accent); }
.badge-success  { background: rgba(39,174,96,0.15); color: var(--success); }
.badge-info     { background: rgba(52,152,219,0.15); color: var(--info); }

/* ============================================
   Avatar
   ============================================ */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; border-width: 3px; }

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.section-link {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   Skeleton Loading
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

.skeleton-text {
    height: 14px;
    margin-bottom: var(--space-sm);
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: var(--space-sm);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    margin-bottom: var(--space-md);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   Scroll infini - indicateur
   ============================================ */
.loading-more {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-muted);
}

.loading-more .loader-spinner {
    width: 24px;
    height: 24px;
    margin: 0 auto;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--space-xxl) var(--space-md);
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ============================================
   Utilitaires
   ============================================ */
.text-center  { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-accent  { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.p-md  { padding: var(--space-md); }

.hidden { display: none !important; }

/* ============================================
   Scrollbar personnalisée
   ============================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ============================================
   Safe area (notch iPhone etc.)
   ============================================ */
@supports (padding: max(0px)) {
    .bottom-nav {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
        height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    }
    .main-content {
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 16px);
    }
}

/* ============================================
   Authentification (login, register, etc.)
   ============================================ */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-form {
    margin-bottom: var(--space-lg);
}

.auth-footer {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
}

.auth-link:hover {
    color: var(--primary-light);
}

/* Form row (deux colonnes) */
.form-row {
    display: flex;
    gap: var(--space-md);
}

.form-half {
    flex: 1;
}

/* Champ mot de passe avec toggle */
.input-password-wrapper {
    position: relative;
}

.input-password-wrapper .form-input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    color: var(--text-secondary);
    padding: 4px;
    transition: opacity var(--transition-fast);
}

.toggle-password:hover {
    opacity: 1;
}

/* Indicateur de force du mot de passe */
.password-strength {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Erreurs et succès des formulaires */
.form-errors {
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-bottom: var(--space-md);
    color: var(--error);
    font-size: 0.85rem;
    animation: fadeInUp 0.3s ease;
}

.form-errors p { margin: 0; }

.form-success {
    background: rgba(39,174,96,0.1);
    border: 1px solid rgba(39,174,96,0.3);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    margin-bottom: var(--space-md);
    color: var(--success);
    font-size: 0.85rem;
    animation: fadeInUp 0.3s ease;
}

/* Bouton avec loader */
.btn .btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn .btn-loader .loader-spinner {
    border-top-color: #fff;
}

/* ============================================
   Page Profil
   ============================================ */
.profil-header {
    text-align: center;
    padding: var(--space-lg) 0;
}

.profil-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.avatar-upload-btn:hover { transform: scale(1.1); }

.profil-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.profil-email {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

.profil-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 4px;
}

.profil-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.profil-tab.active {
    background: var(--primary);
    color: #fff;
}

.profil-tab:hover:not(.active) {
    color: var(--text-primary);
}

/* ============================================
   Stats Grid (accueil)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: 16px 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Combat Card
   ============================================ */
.combat-card {
    cursor: pointer;
}

.combat-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.combat-vs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.combat-fighter {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.fighter-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fighter-name.winner {
    color: var(--success);
}

.vs-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(233,69,96,0.1);
    padding: 6px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.combat-mise {
    text-align: center;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

/* ============================================
   Lutteur Card Mini (scroll horizontal)
   ============================================ */
.scroll-horizontal {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-horizontal::-webkit-scrollbar { height: 0; display: none; }

.lutteur-card-mini {
    flex: 0 0 auto;
    width: 110px;
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform var(--transition-fast);
}

.lutteur-card-mini:active { transform: scale(0.95); }

.lutteur-mini-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lutteur-mini-stats {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   Video Card
   ============================================ */
.video-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
}

.video-thumb {
    flex: 0 0 80px;
    height: 56px;
    background: var(--bg-surface);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-info { flex: 1; min-width: 0; }

.video-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.7rem;
}

/* ============================================
   Culture Banner
   ============================================ */
.culture-banner {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border: none;
}

/* ============================================
   Lutteur List Card
   ============================================ */
.lutteur-list-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
}

.lutteur-list-info { flex: 1; min-width: 0; }

.lutteur-list-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.lutteur-list-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.lutteur-list-stats {
    text-align: right;
}

.lutteur-list-record {
    font-size: 0.85rem;
    font-weight: 700;
}

.lutteur-list-ecurie {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================
   Classement Table
   ============================================ */
.classement-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px var(--space-md);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.classement-item:active { background: var(--bg-card-hover); }

.classement-rang {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    background: var(--bg-surface);
    color: var(--text-muted);
}

.classement-rang.top-1 { background: #FFD700; color: #1a1a2e; }
.classement-rang.top-2 { background: #C0C0C0; color: #1a1a2e; }
.classement-rang.top-3 { background: #CD7F32; color: #1a1a2e; }

/* ============================================
   Filter Tabs (horizontal)
   ============================================ */
.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: var(--space-md);
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.filter-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filter-tab:hover:not(.active) {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* ============================================
   Search Page
   ============================================ */
.search-input-wrapper {
    position: relative;
    margin-bottom: var(--space-md);
}

.search-input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-input:focus { border-color: var(--primary); }

.search-results-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* ============================================
   Page Title
   ============================================ */
.page-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

/* ============================================
   Lutteur Profile Header
   ============================================ */
.lutteur-profile-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.lutteur-profile-name {
    font-size: 1.3rem;
    font-weight: 800;
}

/* ============================================
   Ratio Bar
   ============================================ */
.ratio-bar {
    height: 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
}

.ratio-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Info Grid (lutteur details)
   ============================================ */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   Combat Faceoff (detail page)
   ============================================ */
.combat-faceoff {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    justify-content: center;
}

.faceoff-fighter {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.faceoff-name {
    font-size: 1rem;
    font-weight: 800;
}

.faceoff-name.winner {
    color: var(--success);
}

.faceoff-record {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.faceoff-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}

.faceoff-vs {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary);
}

.faceoff-result {
    font-size: 1.5rem;
    color: var(--success);
    font-weight: 900;
}

/* ============================================
   Prediction Bar
   ============================================ */
.prediction-bar-container {
    margin-top: 8px;
}

.prediction-bar {
    height: 10px;
    background: var(--secondary);
    border-radius: 5px;
    overflow: hidden;
}

.prediction-fill-1 {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 5px;
    transition: width 0.6s ease;
}

/* ============================================
   Comment Form
   ============================================ */
.comment-form textarea {
    resize: vertical;
    min-height: 60px;
}

/* ============================================
   Culture Card (accordion)
   ============================================ */
.culture-card {
    cursor: pointer;
}

.culture-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.culture-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.culture-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.culture-card-body p {
    white-space: pre-line;
}

/* ============================================
   Lazy Loading
   ============================================ */
img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img.lazy-loaded {
    opacity: 1;
}

/* ============================================
   PWA Install Banner
   ============================================ */
.pwa-install-banner {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 90;
    box-shadow: var(--shadow-lg);
    max-width: 440px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ============================================
   Article Detail
   ============================================ */
.article-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.article-content p {
    margin-bottom: var(--space-md);
}

/* ============================================
   Print (pour impression)
   ============================================ */
@media print {
    .bottom-nav,
    .app-header,
    .btn { display: none !important; }
    
    .main-content {
        padding: 0 !important;
    }
    
    body {
        background: #fff;
        color: #000;
    }
}

/* ============================================
   Publication Cards (Actu Feed)
   ============================================ */
.pub-card {
    margin-bottom: var(--space-md);
}

.pub-pinned {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.pub-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 10px;
}

.pub-author-info {
    flex: 1;
    min-width: 0;
}

.pub-author {
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
}

.pub-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.pub-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.pub-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.pub-image {
    width: 100%;
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    max-height: 300px;
    object-fit: cover;
}

.pub-video {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: var(--bg-surface);
    border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.pub-video:hover { background: var(--bg-card-hover); }

.pub-actions {
    display: flex;
    gap: var(--space-md);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.pub-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.pub-action-btn:hover { opacity: 0.7; }

.pub-comments {
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.pub-comment {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.pub-comment strong { font-size: 0.8rem; }

.pub-comment-form {
    padding-top: 8px;
}

/* ============================================
   Publication Composer (Admin)
   ============================================ */
.pub-composer {
    border: 1px dashed var(--primary);
    border-radius: var(--border-radius);
    background: rgba(233, 69, 96, 0.03);
}

.pub-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.pub-media-btn {
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background var(--transition-fast);
}

.pub-media-btn:hover {
    background: var(--bg-surface);
}

/* Video embed (YouTube) */
.pub-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--bg-surface);
}

.pub-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   Notification Panel
   ============================================ */
.notif-panel {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    max-height: 60vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 150;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.notif-list {
    overflow-y: auto;
    max-height: calc(60vh - 50px);
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notif-item:hover { background: var(--bg-card-hover); }

.notif-unread {
    background: rgba(233, 69, 96, 0.05);
    border-left: 3px solid var(--primary);
}

.notif-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-body { flex: 1; min-width: 0; }

.notif-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.notif-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ============================================
   Comments Module (reusable)
   ============================================ */
.cm-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.cm-item:last-child { border-bottom: none; }

.cm-reply {
    margin-left: 20px;
    padding-left: 12px;
    border-left: 2px solid var(--border-color);
}

.cm-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.cm-body { flex: 1; min-width: 0; }

.cm-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.cm-author {
    font-size: 0.8rem;
    font-weight: 700;
}

.cm-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.cm-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 4px 0;
    word-wrap: break-word;
}

.cm-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.cm-action-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 0;
    transition: color var(--transition-fast);
}

.cm-action-btn:hover { color: var(--text-primary); }

.cm-delete-btn { color: var(--error); opacity: 0.6; }
.cm-delete-btn:hover { opacity: 1; }

.cm-replies {
    margin-top: 4px;
}

.cm-form {
    margin-top: 12px;
}

.cm-reply-form {
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-surface);
    border-radius: var(--border-radius-sm);
}

.cm-textarea {
    font-size: 0.85rem;
    padding: 8px 12px;
    resize: vertical;
    min-height: 40px;
}

.cm-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 6px;
}

