/* 
 * PLATEFORME SPORT GABON - DESIGN PROFESSIONNEL PREMIUM
 * Version optimisée avec animations et composants modernes
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs du Gabon */
    --primary-color: #009639;
    --primary-dark: #007a2d;
    --primary-light: #00b547;
    --secondary-color: #fcd116;
    --accent-color: #0066cc;
    
    /* Couleurs système */
    --dark-color: #1a1f2e;
    --dark-light: #2d3748;
    --light-color: #f7fafc;
    --white: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    
    /* Couleurs statut */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--light-color);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   ANIMATIONS
================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-in {
    animation: slideInRight 0.5s ease-out forwards;
}

/* ================================
   HEADER - VERSION COMPACTE
================================ */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 6px 0;
    font-size: 11px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-left, .header-top-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-top a {
    color: var(--white);
    text-decoration: none;
    font-size: 11px;
    transition: opacity 0.3s;
}

.header-top a:hover {
    opacity: 0.8;
}

.header-main {
    padding: 12px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 150, 57, 0.25);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 9px 45px 9px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    transition: all 0.3s;
    background: var(--light-color);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 150, 57, 0.08);
}

.search-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.02);
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-action {
    position: relative;
    cursor: pointer;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.header-action:hover {
    background: var(--light-color);
    transform: translateY(-1px);
}

.header-action.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.header-action.primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

/* ================================
   NAVIGATION - VERSION CORRIGÉE
================================ */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

/* FIX: Utiliser flexbox pour aligner icône + texte + chevron */
.navbar-menu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    position: relative;
    white-space: nowrap;
}

/* Supprimer l'ancien ::after qui causait le problème */
.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.navbar-menu li a:hover::after,
.navbar-menu li a.active::after {
    width: 100%;
}

.navbar-menu li a:hover,
.navbar-menu li a.active {
    color: var(--primary-color);
    background: rgba(0, 150, 57, 0.05);
}

/* ================================
   DROPDOWN MENU - VERSION CORRIGÉE
================================ */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 1000;
    margin-top: 2px;
    padding: 8px 0;
}

.navbar-menu li:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: none;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--light-color);
    color: var(--primary-color);
    padding-left: 20px;
}

/* Supprimer le ::after des liens dropdown */
.dropdown-menu a::after {
    display: none;
}

/* ================================
   NAVBAR USER - ALIGNEMENT CORRIGÉ
================================ */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-info:hover {
    background: var(--light-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-role {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1;
}

.btn-logout {
    padding: 7px 14px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-logout:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ================================
   RESPONSIVE - MENU
================================ */
@media (max-width: 1024px) {
    .navbar-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    
    .navbar-menu::-webkit-scrollbar {
        height: 4px;
    }
    
    .navbar-menu::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
}

@media (max-width: 768px) {
    .navbar-menu li a {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
    
    .user-name,
    .user-role {
        display: none;
    }
}

/* ================================
   CONTAINER
================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ================================
   HERO SECTION - MODERNE
================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 0;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 34px;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeIn 0.6s ease-out;
}

.hero p {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
    animation: fadeIn 0.8s ease-out;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
    animation: fadeIn 1s ease-out;
}

.stat-item {
    text-align: center;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* ================================
   STATS GRID - MODERNE
================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
    border-left: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0,150,57,0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-left-width: 4px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.stat-details {
    flex: 1;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-change {
    font-size: 11px;
    margin-top: 6px;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--error);
}

/* ================================
   CARDS - DESIGN PREMIUM
================================ */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--white), var(--light-color));
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--light-color);
}

/* ================================
   ATHLETE CARDS - DESIGN PRO
================================ */
.athletes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.athlete-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.athlete-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.athlete-card-header {
    position: relative;
    height: 140px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    overflow: hidden;
}

.athlete-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.athlete-sport-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
}

.athlete-photo-container {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.athlete-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid var(--white);
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    background: var(--white);
}

.athlete-photo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid var(--white);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.athlete-card-body {
    padding: 50px 20px 20px;
    text-align: center;
}

.athlete-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.athlete-code {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--light-color);
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 12px;
}

.athlete-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.athlete-info-item {
    background: var(--light-color);
    padding: 10px;
    border-radius: var(--radius-md);
    text-align: center;
}

.athlete-info-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.athlete-info-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

.athlete-club {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.athlete-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 16px;
}

.athlete-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* ================================
   LICENSE CARDS - DESIGN PRO
================================ */
.license-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    position: relative;
}

.license-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.license-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.license-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.license-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.license-logo {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.license-number {
    text-align: right;
}

.license-number-label {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.license-number-value {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.license-athlete-info {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.license-photo {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
    background: rgba(255,255,255,0.1);
}

.license-athlete-details h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.license-athlete-details p {
    font-size: 12px;
    opacity: 0.9;
}

.license-body {
    padding: 20px;
}

.license-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.license-info-item {
    background: var(--light-color);
    padding: 12px;
    border-radius: var(--radius-md);
}

.license-info-label {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.license-info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.license-qr-code {
    text-align: center;
    padding: 16px;
    background: var(--light-color);
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.license-qr-code img {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    background: white;
    padding: 8px;
}

.license-footer {
    padding: 16px 20px;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.license-validity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.license-validity.valid {
    color: var(--success);
}

.license-validity.expired {
    color: var(--error);
}

/* ================================
   SPORT ICONS & ANIMATIONS
================================ */
.sport-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.sport-icon.football {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.sport-icon.basketball {
    background: linear-gradient(135deg, #fd7e14, #ff922b);
    box-shadow: 0 8px 20px rgba(253, 126, 20, 0.3);
}

.sport-icon.athletics {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.sport-icon.swimming {
    background: linear-gradient(135deg, #0dcaf0, #0d6efd);
    box-shadow: 0 8px 20px rgba(13, 202, 240, 0.3);
}

.sport-icon.volleyball {
    background: linear-gradient(135deg, #6f42c1, #6610f2);
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.3);
}

.sport-icon.tennis {
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.sport-icon.handball {
    background: linear-gradient(135deg, #198754, #20c997);
    box-shadow: 0 8px 20px rgba(25, 135, 84, 0.3);
}

/* ================================
   TABLES - MODERNE
================================ */
.table-container {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--white), var(--light-color));
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--light-color);
}

thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

tbody tr:hover {
    background: linear-gradient(to right, var(--light-color), transparent);
    transform: scale(1.001);
}

tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-primary);
}

/* ================================
   BADGES - MODERNE
================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-secondary {
    background: var(--light-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ================================
   BUTTONS - MODERNE
================================ */
.btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 150, 57, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 150, 57, 0.3);
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--error);
    color: white;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 11px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ================================
   FORMS - MODERNE
================================ */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    transition: all 0.3s;
    font-family: inherit;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 150, 57, 0.08);
    background: var(--white);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.form-error {
    color: var(--error);
    font-size: 11px;
    margin-top: 4px;
}

.form-help {
    color: var(--text-secondary);
    font-size: 11px;
    margin-top: 4px;
}

/* ================================
   ALERTS - MODERNE
================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    border-left: 3px solid;
    animation: slideInRight 0.4s ease-out;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: #065f46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: #92400e;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--info);
    color: #1e40af;
}

/* ================================
   FOOTER - COMPACT
================================ */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* ================================
   LOADING STATES
================================ */
.loading-skeleton {
    background: linear-gradient(90deg, var(--light-color) 25%, #e0e0e0 50%, var(--light-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

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

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

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        flex-basis: 100%;
        margin-top: 12px;
    }

    .navbar-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .athletes-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .license-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   HERO SECTION - VERSION AVEC STATS & FILTRES
================================ */
.hero-with-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 0 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-with-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.hero-title-section h1 {
    font-size: 28px;
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-title-section p {
    font-size: 13px;
    opacity: 0.9;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Stats compacts dans le hero */
.hero-stats-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-stat-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.hero-stat-details {
    flex: 1;
}

.hero-stat-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
}

.hero-stat-label {
    font-size: 11px;
    opacity: 0.9;
    font-weight: 500;
}

/* Filtres compacts dans le hero */
.hero-filters-compact {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.hero-filters-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.95;
}

.hero-filters-compact .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.hero-filters-compact .form-row:last-child {
    grid-template-columns: 1fr 1fr auto auto;
    margin-bottom: 0;
}

.hero-filters-compact .form-control {
    padding: 8px 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.hero-filters-compact .form-control:focus {
    background: white;
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.hero-filters-compact .form-control::placeholder {
    color: var(--text-secondary);
}

.hero-filters-compact .btn {
    padding: 8px 16px;
    font-size: 12px;
}

.hero-filters-compact .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
}

.hero-filters-compact .btn-primary:hover {
    background: var(--light-color);
    color: var(--primary-dark);
}

.hero-filters-compact .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-filters-compact .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive pour le hero avec contenu */
@media (max-width: 1024px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-filters-compact .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .hero-stats-compact {
        grid-template-columns: 1fr;
    }
    
    .hero-filters-compact .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-filters-compact .form-row:last-child {
        grid-template-columns: 1fr;
    }
}

/* ================================
   UTILITIES
================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }

.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-10 { gap: 10px; }
.gap-20 { gap: 20px; }

.hover-scale {
    transition: transform 0.3s;
}

.hover-scale:hover {
    transform: scale(1.05);
}

