/* =============================================
   dashboard.css — Dashboard Analytics Bokonzi
   Design v2 — Modern, elegant, performant
   ============================================= */

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    /* Colors — Brand */
    --brand: #7c6cf7;
    --brand-light: #a99ffe;
    --brand-glow: #7c6cf730;
    --brand-subtle: #7c6cf710;

    /* Colors — Background */
    --bg-body: #070a12;
    --bg-card: #0e1325;
    --bg-card-hover: #131a33;
    --bg-surface: #0a0f1c;
    --bg-input: #080c16;
    --bg-nav: #0a0f1cee;

    /* Colors — Borders */
    --border: #1a2240;
    --border-light: #232e50;
    --border-focus: var(--brand);

    /* Colors — Text */
    --text-primary: #e0e6f0;
    --text-secondary: #6b7794;
    --text-muted: #3e4b68;
    --text-white: #f4f6fb;
    --text-link: var(--brand-light);

    /* Colors — Accents */
    --green: #34d399;
    --green-bg: #34d39912;
    --cyan: #22d3ee;
    --cyan-bg: #22d3ee12;
    --amber: #fbbf24;
    --amber-bg: #fbbf2412;
    --rose: #fb7185;
    --rose-bg: #fb718512;
    --red: #ef4444;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.4);
    --shadow-brand: 0 4px 20px var(--brand-glow);

    /* Transitions */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --duration: .25s;

    /* Typography */
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
}

/* =============================================
   RESET & BASE
   ============================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection { background: var(--brand); color: #fff; }

/* =============================================
   TEST BLOCKS (dev)
   ============================================= */
.test-block {
    background: #dc2626;
    border: 3px solid #fff;
    border-radius: var(--radius-md);
    padding: 30px 32px;
    margin: 20px 0;
    color: #fff;
    text-align: center;
}
.test-block-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.test-block-value { font-size: 36px; font-weight: 800; }
.test-block-item {
    font-size: 28px;
    font-weight: 700;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.3);
}
.test-block-item:last-child { border-bottom: none; }
.test-block--yellow { background: #ca8a04; }

/* =============================================
   NAVIGATION
   ============================================= */
nav {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    gap: 0;
    position: sticky;
    top: 50px;
    z-index: 100;
}
nav .logo {
    color: var(--brand);
    font-weight: 800;
    font-size: 22px;
    padding: 16px 24px 16px 0;
    border-right: 1px solid var(--border);
    margin-right: var(--space-sm);
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
nav .logo:hover { color: var(--brand-light); }
nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 16px 18px;
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all var(--duration) var(--ease);
    position: relative;
}
nav a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,.03);
}
nav a.active {
    color: var(--brand-light);
    border-bottom-color: var(--brand);
    background: var(--brand-subtle);
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
}

h1 {
    color: var(--text-white);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.8px;
    line-height: 1.2;
}
h2 {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 600;
    margin: var(--space-xl) 0 var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
h2::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--brand);
    border-radius: 2px;
    flex-shrink: 0;
}
h3 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin: var(--space-md) 0 var(--space-sm);
}
.subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 14px;
}

/* =============================================
   STAT CARDS
   ============================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: all .3s var(--ease);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--rose));
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.card:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.card:hover::before { opacity: 1; }
.card .num {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -1px;
}
.card .label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    margin-top: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.card-link { text-decoration: none; color: inherit; display: block; }

/* Card accent colors */
.card.accent-green .num { background: linear-gradient(135deg, var(--green), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.card.accent-green::before { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.card.accent-purple .num { background: linear-gradient(135deg, var(--brand), var(--brand-light)); -webkit-background-clip: text; background-clip: text; }
.card.accent-purple::before { background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.card.accent-amber .num { background: linear-gradient(135deg, var(--amber), #fde68a); -webkit-background-clip: text; background-clip: text; }
.card.accent-amber::before { background: linear-gradient(90deg, var(--amber), #fde68a); }
.card.accent-rose .num { background: linear-gradient(135deg, var(--rose), #f472b6); -webkit-background-clip: text; background-clip: text; }
.card.accent-rose::before { background: linear-gradient(90deg, var(--rose), #f472b6); }

/* =============================================
   CHARTS
   ============================================= */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: border-color var(--duration) var(--ease);
}
.chart-card:hover { border-color: var(--border-light); }
.chart-card h3 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.chart-card h3 .chart-icon {
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.chart-card canvas { max-height: 280px; }
.charts-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

/* =============================================
   TABLES
   ============================================= */
.bk-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}
.table-wrap .bk-table,
.table-wrap .perf-table { margin: 0; border-radius: 0; }
.table-wrap .bk-table + .bk-table,
.table-wrap .perf-table + .perf-table { border-top: none; }
.table-wrap .bk-table:first-child,
.table-wrap .perf-table:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.table-wrap .bk-table:last-child,
.table-wrap .perf-table:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.bk-table th {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: sticky;
    top: 102px;
    border-bottom: 1px solid var(--border);
}
.bk-table td {
    padding: 14px 20px;
    border-top: 1px solid rgba(26,34,64,.5);
    font-size: 13px;
    color: var(--text-primary);
    transition: background var(--duration) var(--ease);
}
.bk-table tr:hover td { background: var(--bg-card); }
.bk-table td a {
    color: var(--text-link);
    text-decoration: none;
    transition: color .15s var(--ease);
}
.bk-table td a:hover { color: #d0ccff; text-decoration: underline; }
.bk-table .perf-val {
    color: var(--green);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* =============================================
   BADGES
   ============================================= */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-or { background: #ffd70015; color: #fde68a; border: 1px solid #ffd70025; }
.badge-argent { background: #c0c0c015; color: #e2e8f0; border: 1px solid #c0c0c025; }
.badge-bronze { background: #cd7f3215; color: #e17055; border: 1px solid #cd7f3225; }
.badge-m { background: #3b82f615; color: #60a5fa; border: 1px solid #3b82f625; }
.badge-f { background: #ec489915; color: #f472b6; border: 1px solid #ec489925; }
.badge-cat { background: var(--cyan-bg); color: var(--cyan); border: 1px solid #22d3ee25; }
.badge-perf { background: var(--brand-subtle); color: var(--brand-light); border: 1px solid #7c6cf725; }

/* Text-shadow sur tous les badges pour ressortir contre le fond colore */
.badge,
.badge-or, .badge-argent, .badge-bronze,
.badge-m, .badge-f, .badge-cat, .badge-perf {
    text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 0 3px rgba(0,0,0,0.3);
    font-weight: 700;
}

/* === MODE CLAIR — badges (texte plus sombre + ombre douce) === */
body.p2-light .badge-m {
    background: #3b82f618;
    color: #1e40af;
    border-color: #3b82f640;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}
body.p2-light .badge-f {
    background: #ec489918;
    color: #9d174d;
    border-color: #ec489940;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}
body.p2-light .badge-cat {
    background: #0e749018;
    color: #155e75;
    border-color: #0e749040;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}
body.p2-light .badge-perf {
    background: #6c5ce718;
    color: #4c1d95;
    border-color: #6c5ce740;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}
body.p2-light .badge-or {
    background: #b4530918;
    color: #78350f;
    border-color: #b4530940;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}
body.p2-light .badge-argent {
    background: #71717a18;
    color: #3f3f46;
    border-color: #71717a40;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}
body.p2-light .badge-bronze {
    background: #92400e18;
    color: #7c2d12;
    border-color: #92400e40;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}

/* Badges inline avec couleurs hardcodees (age, nationalite, etc.) en mode clair */
/* Age badge (🎂 N ans) — vert original → vert sombre lisible */
body.p2-light .ath-card .badge[style*="background:#10b98120"] {
    background: #04785712 !important;
    border-color: #04785740 !important;
    color: #047857 !important;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6) !important;
}
/* Nationalite badge (FRA, etc.) — gris clair sur fond noir → cognac sur creme */
body.p2-light .ath-card .badge[style*="background:#ffffff08"] {
    background: #6b4f2c12 !important;
    border-color: #6b4f2c40 !important;
    color: #2a2418 !important;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5) !important;
}

/* =============================================
   FORMS
   ============================================= */
.search-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-md) 0;
}
.search-box input, .search-box select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin: 3px;
    transition: all var(--duration) var(--ease);
}
.search-box input:focus, .search-box select:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-glow);
}
.btn {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin: 3px;
    transition: all var(--duration) var(--ease);
}
.btn:hover {
    background: var(--brand-light);
    box-shadow: var(--shadow-brand);
    transform: translateY(-1px);
}
.btn-blue { background: #3b82f6; }
.btn-blue:hover { background: #60a5fa; box-shadow: 0 4px 20px #3b82f630; }

/* =============================================
   PAGINATION
   ============================================= */
.pager {
    margin: var(--space-md) 0;
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    flex-wrap: wrap;
}
.pager a, .pager span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: all .15s var(--ease);
}
.pager a {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.pager a:hover { background: var(--border); color: var(--text-white); }
.pager .current {
    background: var(--brand);
    color: #fff;
    border: none;
}
.pager .info { color: var(--text-secondary); }

/* =============================================
   PROFIL
   ============================================= */
.profil-header {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-md) 0;
    transition: border-color var(--duration) var(--ease);
}
.profil-header:hover { border-color: var(--border-light); }
.profil-header .name {
    font-size: 28px;
    color: var(--text-white);
    font-weight: 800;
    letter-spacing: -0.5px;
}
.profil-header .meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: var(--space-sm);
    line-height: 1.8;
}
.profil-header .meta b { color: var(--text-primary); }

.section-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin: var(--space-lg) 0 0;
    background: var(--bg-surface);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow-x: auto;
}
.section-tabs a {
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}
.section-tabs a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,.03);
}
.section-tabs a.active {
    color: var(--brand-light);
    border-bottom-color: var(--brand);
    background: var(--bg-card);
}
.section-tabs .count {
    background: var(--border);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
    color: var(--text-secondary);
}

.empty {
    color: var(--text-secondary);
    font-style: italic;
    padding: var(--space-lg);
    text-align: center;
}
.error {
    color: var(--red);
    background: rgba(239,68,68,.06);
    border: 1px solid rgba(239,68,68,.2);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

/* =============================================
   LIVE SEARCH
   ============================================= */
.live-search {
    position: relative;
    margin: var(--space-md) 0;
}
.live-search input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    font-size: 15px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: all var(--duration) var(--ease);
}
.live-search input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-glow), var(--shadow-md);
}
.live-search input::placeholder { color: var(--text-muted); }
.live-search .ls-icon {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    font-size: 18px; color: var(--text-muted); pointer-events: none;
}
.live-search .ls-status {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: var(--space-sm);
    min-height: 18px;
}
.live-search .ls-status.loading { color: var(--brand-light); }
.live-search .ls-status.error { color: var(--red); }
.live-search input.ls-loading {
    border-color: var(--brand-light) !important;
    animation: ls-pulse 1s ease-in-out infinite;
}
@keyframes ls-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(124,108,247,.12); }
    50% { box-shadow: 0 0 0 6px rgba(124,108,247,.2); }
}
.ls-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(124,108,247,.3); border-top-color: var(--brand);
    border-radius: var(--radius-full); animation: ls-spin .6s linear infinite;
}
@keyframes ls-spin { to { transform: rotate(360deg); } }
.ls-results { margin-top: var(--space-sm); }

/* Scrollable table wrapper */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 10px 0;
    border-radius: var(--radius-md);
}
.table-wrap table { margin: 0; }

/* Loading message */
.loading-msg {
    color: var(--text-secondary);
    text-align: center;
    padding: var(--space-xl);
    font-size: 14px;
}

/* =============================================
   ATHLETE CARDS GRID
   ============================================= */
.ath-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: var(--space-md) 0;
}
.ath-card {
    background: linear-gradient(160deg, #161b22 0%, #0d1117 100%);
    border: 1px solid #21262d;
    border-radius: 18px;
    padding: 28px 26px 22px;
    transition: all .35s cubic-bezier(.2,.8,.2,1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ath-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(162,155,254,0.5) 50%, transparent 100%);
    opacity: 0.5;
}
.ath-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(108,92,231,0.08), transparent 60%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.ath-card:hover {
    border-color: rgba(162,155,254,0.25);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(162,155,254,0.08);
}
.ath-card:hover::after { opacity: 1; }


/* Background tres leger par sexe (homme = bleu, femme = rose) */
.ath-card.ath-m {
    background: linear-gradient(160deg, rgba(59,130,246,0.08) 0%, rgba(59,130,246,0.03) 100%), linear-gradient(160deg, #161b22 0%, #0d1117 100%);
}
.ath-card.ath-f {
    background: linear-gradient(160deg, rgba(236,72,153,0.06) 0%, rgba(236,72,153,0.02) 100%), linear-gradient(160deg, #161b22 0%, #0d1117 100%);
}

/* Athletes anciens (pas d'activite recente) — visuel muted/sepia */
.ath-card.ath-old {
    background: linear-gradient(160deg, #1a1815 0%, #0f0d0b 100%);
    border-color: #3a322a;
    opacity: 0.85;
}
.ath-card.ath-old::before {
    background: linear-gradient(90deg, transparent 0%, rgba(245,158,11,0.4) 50%, transparent 100%);
}
.ath-card.ath-old .ath-name {
    color: #d4b896;
}
.ath-card.ath-old:hover {
    border-color: rgba(245,158,11,0.45);
    opacity: 1;
}
.ath-card.ath-old::after {
    background: radial-gradient(ellipse at top right, rgba(245,158,11,0.1), transparent 60%);
}

/* Numero rang en filigrane elegant */
.ath-card > div:first-child {
    margin-bottom: 14px !important;
}
.ath-card > div:first-child > span:first-child {
    font-family: 'Bodoni Moda', 'Didot', Georgia, serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6e7681 !important;
    letter-spacing: 2px !important;
    font-style: italic;
}

.ath-card .ath-name {
    font-family: 'Bodoni Moda', 'Didot', 'Playfair Display', Georgia, serif;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.018em;
    text-transform: uppercase;
    color: #f0f6fc;
    background: linear-gradient(180deg, #ffffff 25%, #c9d1d9 75%, #6e7681 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 30px rgba(108, 92, 231, 0.2);
    text-decoration: none;
    display: block;
    padding: 6px 0 4px;
    margin-bottom: 8px;
    word-break: break-word;
    transition: filter .3s ease;
    position: relative;
    z-index: 1;
}
.ath-card .ath-name:hover {
    filter: brightness(1.2) drop-shadow(0 0 12px rgba(162, 155, 254, 0.45));
}

/* Trait fin sous le nom */
.ath-card .ath-name + a.ath-club::before,
.ath-card .ath-name + span.ath-club::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, rgba(162,155,254,0.4), transparent);
    margin-bottom: 10px;
}

.ath-card .ath-club {
    font-family: 'Cormorant Garamond', 'Bodoni Moda', Georgia, serif;
    font-size: 15px;
    font-style: italic;
    font-weight: 400;
    color: #a29bfe;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: block;
    margin-bottom: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s;
}
.ath-card .ath-club:hover { color: #c4b5fd; }
.ath-card .ath-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(162,155,254,0.1);
}
.ath-card .ath-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 18px;
    border-radius: 0;
    overflow: visible;
    position: relative;
}
.ath-card .ath-kpis::before {
    content: '';
    position: absolute;
    left: 25%; top: 8px; bottom: 8px;
    width: 1px;
    background: rgba(162,155,254,0.12);
}
.ath-card .ath-kpis::after {
    content: '';
    position: absolute;
    left: 75%; top: 8px; bottom: 8px;
    width: 1px;
    background: rgba(162,155,254,0.12);
}
.ath-card .ath-kpi {
    text-align: center;
    padding: 4px 2px;
    background: transparent;
    border-radius: 0;
    border: none;
    position: relative;
}
.ath-card .ath-kpi:nth-child(2)::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 1px;
    background: rgba(162,155,254,0.12);
}
.ath-card .ath-kpi .kv {
    font-family: 'Bodoni Moda', 'Didot', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.ath-card .ath-kpi .kl {
    font-size: 9px;
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
    font-weight: 600;
}
.ath-card .ath-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}
.ath-card .ath-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}
.ath-card .ath-actions a, .ath-card .ath-actions button {
    flex: 1;
    padding: 11px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(162,155,254,0.2);
    background: transparent;
    color: #c9d1d9;
    cursor: pointer;
    transition: all .25s cubic-bezier(.2,.8,.2,1);
}
.ath-card .ath-actions a:hover {
    border-color: #a29bfe;
    color: #ffffff;
    background: rgba(162,155,254,0.08);
    transform: translateY(-1px);
}
.ath-card .ath-actions .btn-cmp-add {
    color: #fbbf24;
    border-color: rgba(251,191,36,.25);
}
.ath-card .ath-actions .btn-cmp-add:hover {
    background: rgba(251,191,36,0.08);
    border-color: #fbbf24;
    transform: translateY(-1px);
}
.ath-card .ath-actions .btn-cmp-add.added {
    color: #34d399;
    border-color: rgba(52,211,153,.35);
    background: rgba(52,211,153,0.06);
}
.ath-card .ath-specialty {
    font-family: 'Cormorant Garamond', 'Bodoni Moda', Georgia, serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 500;
    color: #a29bfe;
    padding: 8px 0;
    background: transparent;
    border-radius: 0;
    border-top: 1px solid rgba(162,155,254,0.1);
    border-bottom: 1px solid rgba(162,155,254,0.1);
    display: block;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 0.4px;
    line-height: 1.4;
}

/* === MODE CLAIR — Cards athlete (page Athletes) === */
body.p2-light .ath-card {
    background: linear-gradient(160deg, #faf6ec 0%, #f4ede0 100%);
    border-color: #c9bfa6;
}
body.p2-light .ath-card::before {
    background: linear-gradient(90deg, transparent 0%, rgba(107,79,44,0.4) 50%, transparent 100%);
}
body.p2-light .ath-card::after {
    background: radial-gradient(ellipse at top right, rgba(107,79,44,0.06), transparent 60%);
}
body.p2-light .ath-card:hover {
    border-color: rgba(107,79,44,0.35);
    box-shadow: 0 18px 40px rgba(58,42,12,0.12), 0 0 0 1px rgba(107,79,44,0.08);
}
/* Numero rang */
body.p2-light .ath-card > div:first-child > span:first-child {
    color: #8a7d63 !important;
}
/* Nom Vogue mode clair (deja partiellement defini ailleurs) */
body.p2-light .ath-card .ath-name {
    background: linear-gradient(180deg, #0a0805 25%, #2a2418 75%, #5a5040 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #0a0805;
    text-shadow: 0 2px 14px rgba(58,42,12,0.15);
}
body.p2-light .ath-card .ath-name:hover {
    filter: brightness(1.15) drop-shadow(0 0 8px rgba(107,79,44,0.3));
}
/* Trait sous le nom */
body.p2-light .ath-card .ath-name + a.ath-club::before,
body.p2-light .ath-card .ath-name + span.ath-club::before {
    background: linear-gradient(90deg, rgba(107,79,44,0.5), transparent);
}
/* Club (italique cognac) */
body.p2-light .ath-card .ath-club {
    color: #6b4f2c;
}
body.p2-light .ath-card .ath-club:hover {
    color: #4a3719;
}
/* Badges separator */
body.p2-light .ath-card .ath-badges {
    border-bottom-color: rgba(107,79,44,0.15);
}
/* KPIs separateurs */
body.p2-light .ath-card .ath-kpis::before,
body.p2-light .ath-card .ath-kpis::after,
body.p2-light .ath-card .ath-kpi:nth-child(2)::before {
    background: rgba(107,79,44,0.18);
}
body.p2-light .ath-card .ath-kpi .kl {
    color: #8a7d63;
}
/* Specialty (italique cognac) */
body.p2-light .ath-card .ath-specialty {
    color: #6b4f2c;
    border-top-color: rgba(107,79,44,0.18);
    border-bottom-color: rgba(107,79,44,0.18);
}
/* Actions (boutons pill cognac) */
body.p2-light .ath-card .ath-actions a,
body.p2-light .ath-card .ath-actions button {
    border-color: rgba(107,79,44,0.3);
    color: #2a2418;
    background: transparent;
}
body.p2-light .ath-card .ath-actions a:hover {
    border-color: #6b4f2c;
    color: #0a0805;
    background: rgba(107,79,44,0.08);
}
body.p2-light .ath-card .ath-actions .btn-cmp-add {
    color: #b45309;
    border-color: rgba(180,83,9,0.35);
}
body.p2-light .ath-card .ath-actions .btn-cmp-add:hover {
    background: rgba(180,83,9,0.08);
    border-color: #b45309;
}
body.p2-light .ath-card .ath-actions .btn-cmp-add.added {
    color: #047857;
    border-color: rgba(4,120,87,0.4);
    background: rgba(4,120,87,0.06);
}

/* Sort pills */
.sort-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: var(--space-md) 0;
    padding: var(--space-sm) 0;
}
.sort-bar .sort-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-right: 4px;
}
.sort-bar a {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all .15s var(--ease);
    white-space: nowrap;
}
.sort-bar a:hover { border-color: var(--brand); color: var(--brand-light); }
.sort-bar a.active {
    background: var(--brand);
    color: var(--text-white);
    border-color: var(--brand);
    box-shadow: 0 2px 8px var(--brand-glow);
}

/* Stats summary pills */
.stats-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-md);
}
.stats-pills .sp {
    flex: 1;
    min-width: 90px;
    text-align: center;
    padding: 10px 8px;
    border-radius: var(--radius-md);
    border: 1px solid;
}
.stats-pills .sp .sv {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}
.stats-pills .sp .sl {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Charts toggle */
.charts-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .15s var(--ease);
    margin-bottom: var(--space-md);
}
.charts-toggle:hover { border-color: var(--brand); color: var(--brand-light); }
.charts-toggle.open { color: var(--brand-light); border-color: var(--brand-glow); }

/* View mode toggle */
.view-toggle {
    display: inline-flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-left: auto;
}
.view-toggle button {
    padding: 6px 12px;
    background: var(--bg-card);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: all .15s var(--ease);
}
.view-toggle button:not(:last-child) { border-right: 1px solid var(--border); }
.view-toggle button.active { background: var(--brand); color: var(--text-white); }
.view-toggle button:hover:not(.active) { color: var(--text-secondary); background: var(--bg-card-hover); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .container { padding: var(--space-md) var(--space-sm); }
    nav { flex-wrap: wrap; padding: 0 var(--space-sm); }
    nav .logo { font-size: 18px; padding: 12px 14px 12px 0; }
    nav a { padding: 12px 10px; font-size: 12px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-sm); }
    .card { padding: var(--space-md); }
    .card .num { font-size: 26px; }
    .charts-row, .charts-row-3 { grid-template-columns: 1fr; }
    .chart-card { padding: var(--space-md); }
    .profil-header { flex-direction: column; gap: var(--space-md); padding: var(--space-md); }
    .profil-header .name { font-size: 22px; }
    .section-tabs a { padding: 10px 14px; font-size: 12px; }
    .search-box { padding: var(--space-md); }
    .search-box input, .search-box select { width: 100% !important; margin: 4px 0; }
    .btn { width: 100%; margin: 6px 0; }
    h1 { font-size: 24px; }
    .bk-table th, .bk-table td { padding: 12px 14px; font-size: 12px; white-space: nowrap; }
    .ath-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
    .ath-card { padding: var(--space-sm) var(--space-md); }
    .ath-card .ath-name { font-size: clamp(18px, 4.5vw, 24px); }
    .ath-card .ath-kpis { grid-template-columns: repeat(2, 1fr); }
    .sort-bar .sort-label { width: 100%; }
}

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .card { padding: var(--space-sm) var(--space-md); }
    .card .num { font-size: 22px; }
    nav a { padding: 10px 7px; font-size: 11px; }
    h1 { font-size: 20px; }
    .ath-grid { grid-template-columns: 1fr; }
    .ath-card .ath-kpis { grid-template-columns: repeat(4, 1fr); }
    .stats-pills { gap: 6px; }
    .stats-pills .sp { min-width: 70px; padding: 8px 4px; }
    .stats-pills .sp .sv { font-size: 16px; }
}

/* =============================================
   TUTORIEL ANIME
   ============================================= */
.tuto-container { max-width: 900px; margin: 0 auto; }
.tuto-progress { display: flex; align-items: center; gap: 0; margin-bottom: 32px; padding: 10px 10px; position: sticky; top: 0; z-index: 50; background: var(--bg-nav); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(26,34,64,.3); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.tuto-progress-step { flex: 1; height: 4px; background: var(--border); border-radius: 2px; transition: background .4s; position: relative; }
.tuto-progress-step.done { background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.tuto-progress-step.active { background: var(--brand-light); box-shadow: 0 0 8px rgba(124,108,247,.4); }
.tuto-progress-dot { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: var(--radius-full); background: var(--border); border: 2px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-secondary); font-weight: 700; transition: all .4s; }
.tuto-progress-step.done .tuto-progress-dot,
.tuto-progress-step.active .tuto-progress-dot { background: var(--brand); border-color: var(--brand-light); color: #fff; }

.tuto-step { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; margin-bottom: var(--space-2xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid rgba(26,34,64,.15); }
.tuto-step:last-of-type { border-bottom: none; }
.tuto-step.visible { opacity: 1; transform: translateY(0); }
.tuto-nav { display: none; }
.tuto-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.tuto-subtitle { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: var(--space-lg); }

/* Mock UI */
.tuto-mock { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-md); margin: var(--space-md) 0; overflow: hidden; position: relative; }
.tuto-mock::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(124,108,247,.03), transparent); animation: tutoShimmer 4s ease infinite; pointer-events: none; }
@keyframes tutoShimmer { 0% { left: -100%; } 100% { left: 200%; } }
.tuto-mock-nav { display: flex; gap: 12px; padding: 8px 14px; background: var(--bg-input); border-radius: var(--radius-sm); margin-bottom: 12px; }
.tuto-mock-nav span { padding: 6px 14px; border-radius: 6px; font-size: 12px; color: var(--text-secondary); }
.tuto-mock-nav span.hl { background: rgba(124,108,247,.18); color: var(--brand-light); font-weight: 700; animation: tutoPulse 1.5s ease infinite; }
.tuto-mock-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border-light); border-radius: var(--radius-md); margin: 10px 0; }
.tuto-mock-search .icon { font-size: 16px; }
.tuto-mock-search .text { color: var(--brand-light); font-size: 13px; font-family: var(--font-mono); }
.tuto-mock-panel { background: var(--bg-input); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 14px; margin: 10px 0; }
.tuto-mock-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tuto-mock-tabs span { padding: 5px 12px; border-radius: 6px; font-size: 11px; color: var(--text-secondary); background: var(--bg-surface); border: 1px solid var(--border); }
.tuto-mock-tabs span.active { background: rgba(124,108,247,.18); color: var(--brand-light); border-color: var(--brand); }
.tuto-mock-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(26,34,64,.1); font-size: 12px; color: var(--text-secondary); align-items: center; }
.tuto-mock-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; }

/* Tuto cards */
.tuto-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.tuto-card { text-align: center; padding: 20px 14px; background: linear-gradient(135deg, rgba(124,108,247,.06), var(--bg-surface)); border: 1px solid rgba(124,108,247,.12); border-radius: var(--radius-md); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tuto-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(124,108,247,.12); }
.tuto-card .num { font-size: 28px; font-weight: 800; color: var(--brand-light); }
.tuto-card .label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* Features */
.tuto-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.tuto-feature { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tuto-feature:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.tuto-feature .icon { font-size: 22px; flex-shrink: 0; }
.tuto-feature .title { color: var(--text-primary); font-weight: 700; font-size: 13px; }
.tuto-feature .desc { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }

/* Try & Next buttons */
.tuto-try { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 22px; background: var(--green); color: #fff; font-weight: 700; font-size: 13px; border-radius: var(--radius-md); text-decoration: none; transition: all .2s var(--ease); }
.tuto-try:hover { box-shadow: 0 0 20px rgba(52,211,153,.3); transform: translateY(-1px); }
.tuto-cursor { display: inline-block; width: 2px; height: 1em; background: var(--brand-light); animation: tutoBlink .7s step-end infinite; vertical-align: text-bottom; margin-left: 2px; }
.tuto-niv-demo { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tuto-niv-demo span { padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; transition: transform .2s var(--ease); }
.tuto-niv-demo span:hover { transform: scale(1.08); }

@keyframes tutoFadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tutoPulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 12px rgba(124,108,247,.3); } }
@keyframes tutoBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes tutoSlideRight { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.tuto-enter { animation: tutoSlideUp .5s cubic-bezier(.16,1,.3,1) both; }
@keyframes tutoSlideUp { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.tuto-enter .tuto-title { animation: tutoFadeSlide .5s ease .1s both; }
.tuto-enter .tuto-subtitle { animation: tutoFadeSlide .5s ease .2s both; }
.tuto-enter .tuto-cards { animation: tutoFadeSlide .5s ease .3s both; }
.tuto-enter .tuto-mock { animation: tutoFadeSlide .5s ease .25s both; }
.tuto-enter .tuto-features { animation: tutoFadeSlide .5s ease .3s both; }
.tuto-enter .tuto-live-search { animation: tutoFadeSlide .5s ease .2s both; }
.tuto-enter .tuto-inline-panel { animation: tutoFadeSlide .6s ease .3s both; }
.tuto-enter .tuto-niv-demo { animation: tutoFadeSlide .5s ease .3s both; }
.tuto-enter .tuto-next-btn { animation: tutoFadeSlide .4s ease .4s both; }
@keyframes tutoFadeSlide { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.tuto-skip-btn { position: fixed; bottom: 24px; right: 24px; z-index: 100; padding: 10px 22px; background: rgba(10,15,28,.9); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-secondary); font-size: 13px; font-weight: 500; cursor: pointer; transition: all .3s var(--ease); box-shadow: var(--shadow-md); }
.tuto-skip-btn:hover { background: rgba(30,42,58,.95); color: var(--text-primary); border-color: var(--brand); box-shadow: var(--shadow-brand); transform: translateY(-2px); }

.tuto-next-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--brand); color: #fff; border: none; border-radius: var(--radius-md); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .3s var(--ease); position: relative; overflow: hidden; }
.tuto-next-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.15), transparent); opacity: 0; transition: opacity .3s; }
.tuto-next-btn:not(:disabled):hover { box-shadow: 0 0 30px rgba(124,108,247,.35), var(--shadow-md); transform: translateY(-2px); }
.tuto-next-btn:not(:disabled):hover::before { opacity: 1; }
.tuto-next-btn:disabled { opacity: .35; cursor: not-allowed; }
.tuto-next-btn:not(:disabled):active { transform: translateY(0); }

.tuto-step.completed { border-left: 3px solid var(--green); }
.tuto-complete-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--green-bg); border: 1px solid rgba(52,211,153,.25); border-radius: var(--radius-md); color: var(--green); font-size: 13px; font-weight: 600; animation: tutoBadgeAppear .5s cubic-bezier(.16,1,.3,1) both, tutoBadgePulse 2s ease 1s infinite; }
@keyframes tutoBadgeAppear { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes tutoBadgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } 50% { box-shadow: 0 0 0 6px rgba(52,211,153,.12); } }

.tuto-club-result, .tuto-ath-result { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(26,34,64,.15); cursor: pointer; transition: all .25s var(--ease); border-left: 3px solid transparent; }
.tuto-club-result:hover, .tuto-ath-result:hover { background: linear-gradient(90deg, var(--brand-subtle), transparent); border-left-color: var(--brand); transform: translateX(4px); }
.tuto-club-result:first-child, .tuto-ath-result:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.tuto-club-result:last-child, .tuto-ath-result:last-child { border-bottom: none; border-radius: 0 0 var(--radius-md) var(--radius-md); }

.tuto-live-search { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: linear-gradient(135deg, var(--bg-input), var(--bg-surface)); border: 2px solid var(--border-light); border-radius: var(--radius-md); margin: 14px 0; transition: all .3s var(--ease); box-shadow: var(--shadow-sm); }
.tuto-live-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow), var(--shadow-md); }
.tuto-live-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-primary); font-size: 15px; }
.tuto-live-search input::placeholder { color: var(--text-muted); }

.tuto-live-results { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); max-height: 350px; overflow-y: auto; display: none; box-shadow: var(--shadow-lg); animation: tutoDropDown .3s ease both; }
@keyframes tutoDropDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.tuto-live-results::-webkit-scrollbar { width: 6px; }
.tuto-live-results::-webkit-scrollbar-track { background: transparent; }
.tuto-live-results::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

.tuto-highlight { animation: tutoHighlight 2s ease infinite; }
@keyframes tutoHighlight { 0%,100% { box-shadow: 0 0 0 0 rgba(124,108,247,0); } 50% { box-shadow: 0 0 0 5px rgba(124,108,247,.18), 0 0 20px rgba(124,108,247,.08); } }

.tuto-inline-panel { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; margin: 16px 0; overflow: hidden; box-shadow: var(--shadow-md); }
.tuto-inline-panel .club-detail-header { padding: 18px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, rgba(14,19,37,.5), rgba(18,24,42,.5)); }
.tuto-inline-panel .club-detail-tabs { padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg-input); }
.tuto-inline-panel .club-detail-content { padding: 16px; }

.tuto-progress-step.active .tuto-progress-dot { box-shadow: 0 0 12px rgba(124,108,247,.4), 0 0 4px var(--brand); }
.tuto-progress-step.done .tuto-progress-dot { box-shadow: 0 0 8px rgba(52,211,153,.3); }

.tuto-step .tuto-title::before { display: inline-block; font-size: 12px; font-weight: 700; color: var(--text-secondary); letter-spacing: 1px; margin-bottom: 6px; text-transform: uppercase; }
.tuto-step[data-step="1"] .tuto-title::before { content: "Étape 1/9"; display: block; }
.tuto-step[data-step="2"] .tuto-title::before { content: "Étape 2/9"; display: block; }
.tuto-step[data-step="3"] .tuto-title::before { content: "Étape 3/9"; display: block; }
.tuto-step[data-step="4"] .tuto-title::before { content: "Étape 4/9"; display: block; }
.tuto-step[data-step="5"] .tuto-title::before { content: "Étape 5/9"; display: block; }
.tuto-step[data-step="6"] .tuto-title::before { content: "Étape 6/9"; display: block; }
.tuto-step[data-step="7"] .tuto-title::before { content: "Étape 7/9"; display: block; }
.tuto-step[data-step="8"] .tuto-title::before { content: "Étape 8/9"; display: block; }
.tuto-step[data-step="9"] .tuto-title::before { content: "Étape 9/9"; display: block; }

.tuto-enter .tuto-feature:nth-child(1) { animation: tutoFadeSlide .4s ease .2s both; }
.tuto-enter .tuto-feature:nth-child(2) { animation: tutoFadeSlide .4s ease .3s both; }
.tuto-enter .tuto-feature:nth-child(3) { animation: tutoFadeSlide .4s ease .4s both; }
.tuto-enter .tuto-feature:nth-child(4) { animation: tutoFadeSlide .4s ease .5s both; }
.tuto-enter .tuto-feature:nth-child(5) { animation: tutoFadeSlide .4s ease .6s both; }
.tuto-enter .tuto-feature:nth-child(6) { animation: tutoFadeSlide .4s ease .7s both; }

@media (max-width: 700px) {
    .tuto-cards { grid-template-columns: repeat(2, 1fr); }
    .tuto-features { grid-template-columns: 1fr; }
    .tuto-title { font-size: 22px; }
    .tuto-skip-btn { bottom: 12px; right: 12px; padding: 8px 16px; font-size: 12px; }
    .tuto-step[data-step="6"] div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
