﻿:root {
    --radius-lg: 1rem;
    --radius-md: 0.5rem;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    padding-bottom: 70px;
    /* Espace pour le menu bas */
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Premium Navigation */
.navbar {
    border-bottom: 3px solid var(--brand-color);
}

.navbar-brand {
    font-size: 1.3rem;
}

/* Touch-ready Buttons */
.btn {
    padding: 0.65rem 1.3rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    user-select: none;
    min-height: 44px;
}

.btn-sm {
    min-height: 38px;
    padding: 0.5rem 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-color) 0%, var(--brand-color-dark) 100%) !important;
    border: none !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:active {
    background: linear-gradient(135deg, #e67300 0%, #d66600 100%);
    transform: translateY(-1px);
}

/* Mobile-First Cards */
.card {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }
}

/* Mobile specific optimizations */
@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }

    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    h1,
    .h1 {
        font-size: 1.75rem;
    }
}

/* Badge styling */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    border-radius: 6px;
}

/* Progress bar premium */
.progress {
    background-color: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    height: 12px;
}

.progress-bar {
    background-color: var(--brand-color);
}

/* Couleurs des badges de catégories (20 catégories supportées) */
.badge-cat-1 {
    background-color: #3498db !important;
    color: white !important;
}

.badge-cat-2 {
    background-color: #2ecc71 !important;
    color: white !important;
}

.badge-cat-3 {
    background-color: #9b59b6 !important;
    color: white !important;
}

.badge-cat-4 {
    background-color: #f1c40f !important;
    color: #333 !important;
}

.badge-cat-5 {
    background-color: #e67e22 !important;
    color: white !important;
}

.badge-cat-6 {
    background-color: #e74c3c !important;
    color: white !important;
}

.badge-cat-7 {
    background-color: #16a085 !important;
    color: white !important;
}

.badge-cat-8 {
    background-color: #2980b9 !important;
    color: white !important;
}

.badge-cat-9 {
    background-color: #8e44ad !important;
    color: white !important;
}

.badge-cat-10 {
    background-color: #f39c12 !important;
    color: white !important;
}

.badge-cat-11 {
    background-color: #d35400 !important;
    color: white !important;
}

.badge-cat-12 {
    background-color: #c0392b !important;
    color: white !important;
}

.badge-cat-13 {
    background-color: #1abc9c !important;
    color: white !important;
}

.badge-cat-14 {
    background-color: #27ae60 !important;
    color: white !important;
}

.badge-cat-15 {
    background-color: #2c3e50 !important;
    color: white !important;
}

.badge-cat-16 {
    background-color: #7f8c8d !important;
    color: white !important;
}

.badge-cat-17 {
    background-color: #ff9ff3 !important;
    color: #333 !important;
}

.badge-cat-18 {
    background-color: #feca57 !important;
    color: #333 !important;
}

.badge-cat-19 {
    background-color: #ff6b6b !important;
    color: white !important;
}

.badge-cat-20 {
    background-color: #48dbfb !important;
    color: #333 !important;
}

.badge-cat-0 {
    background-color: #7f8c8d !important;
    color: white !important;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Bottom Navigation Parent (Style App - Permanent) */
.bottom-nav-parent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #eee;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item-parent {
    text-decoration: none;
    color: #adb5bd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex: 1;
}

.nav-item-parent i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.nav-item-parent.active {
    color: var(--brand-color);
}

.nav-item-parent:active {
    transform: scale(0.95);
}

@media (min-width: 992px) {
    body {
        padding-bottom: 90px;
    }
}

/* Couleurs Utilitaires Personnalisées */
.text-purple {
    color: #8e44ad !important;
}

.text-orange {
    color: var(--brand-color) !important;
}

/* Event Card Luxe Style */
.event-card-luxe {
    border-left: 6px solid #ccc;
    /* Default color, overridden by inline style */
    overflow: hidden;
    /* Ensures the left border follows the card border radius */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card-luxe:active {
    transform: scale(0.98);
}

/* Player Name Format Preferences */
html.name-format-inverse .format-prenom-nom {
    display: none !important;
}
html.name-format-inverse .format-nom-prenom {
    display: inline !important;
}
