/* ═══════════════════════════════════════════════════════════
   JudoPresence — Design moderne v2
   Thème : Bleu clair moderne
═══════════════════════════════════════════════════════════ */

/* ─── Reset & variables ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:       #0ea5e9;
    --primary-dark:  #0369a1;
    --primary-mid:   #0284c7;
    --primary-light: #f0f9ff;
    --primary-glow:  rgba(14, 165, 233, 0.18);

    /* Alias --red pour compatibilité interne */
    --red:         var(--primary);
    --red-dark:    var(--primary-dark);
    --red-mid:     var(--primary-mid);
    --red-light:   var(--primary-light);
    --red-glow:    var(--primary-glow);

    --white:       #ffffff;
    --black:       #0f0f0f;
    --text:        #1e1e2e;
    --bg:          #f4f5f7;
    --gray-100:    #f8f9fb;
    --gray-200:    #eaedf2;
    --gray-300:    #d1d5de;
    --gray-400:    #9ca3af;
    --gray-600:    #6b7280;
    --gray-700:    #374151;

    --green:       #10b981;
    --green-dark:  #059669;
    --green-light: #ecfdf5;
    --blue:        #3b82f6;
    --blue-light:  #eff6ff;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
    --shadow:    0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10), 0 16px 48px rgba(0,0,0,0.08);
    --shadow-primary: 0 4px 20px rgba(14, 165, 233, 0.30);

    --radius:    16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;

    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 60%, #38bdf8 100%);
    color: white;
    box-shadow: 0 2px 20px rgba(3, 105, 161, 0.40);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo-icon { font-size: 1.4rem; }
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
    color: rgba(255,255,255,0.80);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,0.15); color: white; text-decoration: none; }
.nav-link.active { background: rgba(255,255,255,0.20); color: white; font-weight: 600; }
.nav-logout { opacity: 0.65; margin-left: 0.25rem; border: 1px solid rgba(255,255,255,0.25); }
.nav-logout:hover { opacity: 1; background: rgba(0,0,0,0.15); border-color: transparent; }

/* ─── Main & Footer ──────────────────────────────────────── */
.site-main { flex: 1; padding: 2rem 1.5rem; display: flex; flex-direction: column; }
.site-footer {
    background: var(--black);
    color: var(--gray-600);
    text-align: center;
    padding: 1.25rem;
    font-size: 0.8rem;
}

/* ─── Page container ─────────────────────────────────────── */
.page-container { max-width: 100%; }
.page-narrow    { max-width: 720px; margin: 0 auto; }
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.page-header h1 { font-size: 1.75rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.page-subtitle { color: var(--gray-600); margin-top: 0.3rem; font-size: 0.9rem; }

/* ─── Boutons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font);
    letter-spacing: -0.1px;
}
.btn:hover  { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary));
    color: white;
    box-shadow: 0 2px 8px var(--primary-glow);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary-mid)); box-shadow: var(--shadow-primary); }

.btn-outline {
    background: white;
    color: var(--primary);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-xs);
}
.btn-outline:hover  { border-color: var(--primary); background: var(--primary-light); box-shadow: none; }
.btn-outline.active { background: var(--primary); color: white; border-color: var(--primary); }

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    box-shadow: 0 2px 8px rgba(220,38,38,0.25);
}
.btn-danger:hover { background: linear-gradient(135deg, #b91c1c, #dc2626); }

.btn-sm   { padding: 0.35rem 0.85rem; font-size: 0.8rem; border-radius: var(--radius-xs); }
.btn-lg   { padding: 0.8rem 2.25rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Alertes ────────────────────────────────────────────── */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid transparent;
}
.alert-success { background: var(--green-light); color: #065f46; border-color: #a7f3d0; }
.alert-error   { background: #fff0f1; color: #c1121f; border-color: #fecaca; }

/* ─── Formulaires ────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    color: var(--gray-700);
    letter-spacing: 0.1px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    background: white;
    transition: all var(--transition);
    color: var(--text);
    box-shadow: var(--shadow-xs);
}
.form-group input:hover,
.form-group select:hover { border-color: var(--gray-300); }
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ─── Hero (accueil) ─────────────────────────────────────── */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(14,165,233,0.09) 0%, transparent 70%),
        radial-gradient(circle at 10% 90%, rgba(14,165,233,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.hero-content { text-align: center; position: relative; z-index: 1; }
.hero-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1.5px;
    margin-bottom: 0.6rem;
    line-height: 1.1;
}
.hero-content h1 span { color: var(--primary); }
.hero-subtitle { font-size: 1.1rem; color: var(--gray-600); margin-bottom: 3rem; }
.hero-cards    { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.hero-card {
    background: white;
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
    width: 250px;
    box-shadow: var(--shadow-md);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    color: var(--text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    border: 1.5px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}
.hero-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-mid), var(--primary));
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.hero-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
    text-decoration: none;
    color: var(--text);
}
.hero-card:hover::after { transform: scaleX(1); }
.hero-card .card-icon { font-size: 2.75rem; }
.hero-card h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.2px; }
.hero-card p  { font-size: 0.83rem; color: var(--gray-600); text-align: center; line-height: 1.5; }
.card-btn {
    margin-top: 0.75rem;
    background: linear-gradient(135deg, var(--primary-mid), var(--primary));
    color: white;
    padding: 0.45rem 1.4rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* ─── Auth ───────────────────────────────────────────────── */
.auth-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(14,165,233,0.09) 0%, transparent 70%),
        radial-gradient(circle at 10% 90%, rgba(14,165,233,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.auth-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2.75rem;
    width: 100%;
    max-width: 460px;
    border: 1.5px solid var(--gray-200);
    position: relative;
    z-index: 1;
}
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--gray-200);
}
.auth-icon { font-size: 2.75rem; margin-bottom: 0.75rem; display: block; animation: float 3s ease-in-out infinite; }
.auth-header h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; letter-spacing: -0.5px; }
.auth-header p  { color: var(--gray-600); font-size: 0.9rem; }
.auth-form .form-group { margin-bottom: 1.1rem; }
.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-600);
}
.auth-footer a { color: var(--primary); font-weight: 500; }

/* ─── Présences professeur ───────────────────────────────── */
.date-nav { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.date-current {
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.badge-today {
    background: linear-gradient(135deg, var(--primary-mid), var(--primary));
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.presence-stats { display: flex; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.stat-box {
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 110px;
    flex: 1;
    border: 1.5px solid var(--gray-200);
    transition: all var(--transition);
}
.stat-box:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); }
.stat-num {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}
.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-600);
    margin-top: 0.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-present .stat-num { color: var(--green); }
.stat-absent .stat-num  { color: #ef4444; }
.stat-pct .stat-num     { color: var(--primary); }

.presence-actions-top { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.judoka-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.75rem; }

.judoka-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    border: 1.5px solid var(--gray-200);
    transition: all var(--transition);
    user-select: none;
}
.judoka-row:hover { border-color: var(--gray-300); box-shadow: var(--shadow-md); }
.judoka-row.present {
    border-color: #a7f3d0;
    background: linear-gradient(135deg, #f0fdf9, #ecfdf5);
    box-shadow: 0 1px 3px rgba(16,185,129,0.10), 0 4px 16px rgba(16,185,129,0.07);
}

.judoka-info { display: flex; align-items: center; gap: 1rem; }
.judoka-name { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.1px; }
.judoka-grade {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Toggle switch */
.judoka-toggle { display: flex; align-items: center; gap: 0.75rem; }
.judoka-toggle input[type="checkbox"] { display: none; }
.toggle-label { font-size: 0.82rem; font-weight: 600; }
.present-label { color: var(--green-dark); display: none; }
.absent-label  { color: #ef4444; }
.judoka-row.present .present-label { display: inline; }
.judoka-row.present .absent-label  { display: none; }

.judoka-toggle::before {
    content: '';
    width: 46px;
    height: 26px;
    background: var(--gray-300);
    border-radius: 13px;
    display: block;
    transition: background var(--transition);
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
.judoka-row.present .judoka-toggle::before {
    background: var(--green);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 3px rgba(16,185,129,0.15);
}

/* ─── Tableau judokas ────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
}
.data-table th {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 1rem 1.1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.data-table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover td { background: var(--gray-100); }
.td-nom     { font-weight: 700; }
.td-actions { display: flex; gap: 0.4rem; align-items: center; }
.text-muted { color: var(--gray-400); font-size: 0.82rem; font-style: italic; }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.badge-jour { background: var(--gray-200); color: var(--gray-700); }
.jours-list { display: flex; flex-wrap: wrap; gap: 0.3rem; }

/* Grades judo */
.grade-badge { color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.grade-blanche     { background: #9ca3af; color: #fff; text-shadow: none; }
.grade-demi_jaune  { background: linear-gradient(90deg, #9ca3af 50%, #eab308 50%); color: #1a1a1a; text-shadow: none; }
.grade-jaune       { background: #eab308; color: #1a1a1a; text-shadow: none; }
.grade-demi_orange { background: linear-gradient(90deg, #eab308 50%, #f97316 50%); color: #fff; }
.grade-orange      { background: #f97316; }
.grade-demi_verte  { background: linear-gradient(90deg, #f97316 50%, #16a34a 50%); color: #fff; }
.grade-verte       { background: #16a34a; }
.grade-demi_bleue  { background: linear-gradient(90deg, #16a34a 50%, #2563eb 50%); color: #fff; }
.grade-bleue       { background: #2563eb; }
.grade-marron      { background: #92400e; }
.grade-noire_1,
.grade-noire_2,
.grade-noire_3,
.grade-noire_4,
.grade-noire_5     { background: #111827; }

/* ─── Formulaire judoka ──────────────────────────────────── */
.judoka-form {
    background: white;
    border-radius: var(--radius);
    padding: 2.25rem;
    box-shadow: var(--shadow);
    border: 1.5px solid var(--gray-200);
}
.jours-checkboxes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    background: white;
    transition: all var(--transition);
    user-select: none;
    color: var(--gray-700);
    box-shadow: var(--shadow-xs);
}
.checkbox-card input { display: none; }
.checkbox-card:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.checkbox-card.checked {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ─── Empty state ────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--gray-600);
    background: white;
    border-radius: var(--radius);
    border: 1.5px dashed var(--gray-300);
}
.empty-icon   { font-size: 3.5rem; margin-bottom: 1.25rem; display: block; }
.empty-state h2 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text); font-weight: 700; }
.empty-state p  { margin-bottom: 1.75rem; font-size: 0.9rem; }
.empty-small    { padding: 2.5rem; }

/* ─── Présences parents ──────────────────────────────────── */
.annual-summary {
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1.5px solid var(--gray-200);
}
.annual-summary h2 {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.annual-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
}
@media (max-width: 768px) { .annual-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .annual-grid { grid-template-columns: repeat(3, 1fr); } }

.month-card {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: white;
}
.month-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    text-decoration: none;
    transform: translateY(-1px);
}
.month-card.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.month-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.month-stat { font-size: 0.85rem; font-weight: 800; }
.month-bar  { height: 4px; background: var(--gray-200); border-radius: 2px; overflow: hidden; }
.month-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-dark), var(--green));
    border-radius: 2px;
}

.month-detail {
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border: 1.5px solid var(--gray-200);
}
.month-detail-header { margin-bottom: 1.5rem; }
.month-nav { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.month-nav h2 { flex: 1; text-align: center; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.3px; }

.month-stats-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.month-stats-row .stat-box { flex: 1; min-width: 80px; }

.presence-detail-list { display: flex; flex-direction: column; gap: 0.4rem; }
.presence-detail-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    font-size: 0.875rem;
    transition: all var(--transition);
}
.presence-detail-row.present { background: linear-gradient(135deg, #f0fdf9, #ecfdf5); border-color: #a7f3d0; }
.presence-detail-row.absent  { background: #fff0f1; border-color: #fecaca; }
.detail-day  { font-weight: 800; width: 30px; color: var(--gray-600); font-size: 0.75rem; text-transform: uppercase; }
.detail-date { font-weight: 600; flex: 1; }
.status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 0.2px;
}
.status-present { background: var(--green); color: white; }
.status-absent  { background: #ef4444;       color: white; }

.year-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ─── Barre de filtres ───────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    border: 1.5px solid var(--gray-200);
}
.filter-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0 0.9rem;
    background: var(--gray-100);
    transition: all var(--transition);
}
.filter-search:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.filter-icon { font-size: 0.95rem; color: var(--gray-400); flex-shrink: 0; }
.filter-search input {
    border: none;
    background: transparent;
    padding: 0.6rem 0;
    font-size: 0.875rem;
    width: 100%;
    outline: none;
    color: var(--text);
    font-family: var(--font);
}
.filter-selects { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-selects select {
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font);
    background: var(--gray-100);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    appearance: auto;
    font-weight: 500;
}
.filter-selects select:hover { border-color: var(--gray-300); }
.filter-selects select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.filter-count {
    font-size: 0.78rem;
    color: var(--gray-600);
    font-weight: 700;
    white-space: nowrap;
    background: var(--gray-100);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
}
.filter-empty {
    text-align: center;
    padding: 2.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    background: white;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .form-grid       { grid-template-columns: 1fr; }
    .page-header     { flex-direction: column; align-items: flex-start; }
    .hero-content h1 { font-size: 2.25rem; }
    .hero-cards      { flex-direction: column; align-items: center; }
    .presence-stats  { flex-direction: row; }
    .td-actions      { flex-direction: column; }
    .header-inner    { flex-wrap: wrap; height: auto; padding: 0.75rem 1rem; gap: 0.5rem; }
    .main-nav        { gap: 0.25rem; }
    .nav-link        { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
    .auth-card       { padding: 1.75rem; }
    .judoka-form     { padding: 1.5rem; }
    .filter-bar      { gap: 0.5rem; }
}
