
       
/* ============================================================================
   NOTIFICATIONS CARD FIX
   ============================================================================ */
.notifications-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px; /* ajuste selon ton design */
    padding: var(--space-4);
}

/* Améliorer le style des états vides */
.notifications-card .empty-state {
    padding: var(--space-8);
    color: var(--text-muted);
    font-size: var(--text-sm);
}



/* Styles spÃ©cifiques pour le header du dashboard */
        .dashboard-header {
            background: linear-gradient(135deg, #192935 0%, #17BEBB 100%);
            border-radius: var(--radius-2xl);
            padding: var(--space-8);
            margin-bottom: var(--space-8);
            color: white;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-xl);
        }

        .dashboard-header::before {
            content: '';
            position: absolute;
            top: 0;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
        }

        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: var(--space-6);
            position: relative;
            z-index: 2;
        }

        .comite-info {
            display: flex;
            align-items: center;
            gap: var(--space-4);
        }

        .comite-badge {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: var(--radius-full);
            padding: var(--space-2) var(--space-4);
            display: flex;
            align-items: center;
            gap: var(--space-2);
            font-weight: 600;
            font-size: var(--text-sm);
            color: white;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .comite-badge svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .status-widget {
            display: flex;
            align-items: center;
            gap: var(--space-2);
        }

        .status-badge {
            display: flex;
            align-items: center;
            gap: var(--space-2);
            padding: calc(var(--space-2) + 2px) var(--space-5);
            border-radius: var(--radius-full);
            font-size: var(--text-sm);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border: 1px solid transparent;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .status-badge.success {
            background: linear-gradient(135deg, #1cc88a, #12835b);
            color: #ffffff;
            border-color: rgba(18, 131, 91, 0.65);
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
            box-shadow: 0 14px 30px rgba(18, 131, 91, 0.35);
        }

        .status-badge.error {
            background: linear-gradient(135deg, #f24c58, #c81e3a);
            color: #ffffff;
            border-color: rgba(200, 30, 58, 0.65);
            text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
            box-shadow: 0 14px 30px rgba(200, 30, 58, 0.35);
        }

        .status-badge.warning {
            background: linear-gradient(135deg, #ffd15c, #f49b20);
            color: #3a2a00;
            border-color: rgba(244, 155, 32, 0.65);
            box-shadow: 0 14px 30px rgba(244, 155, 32, 0.25);
        }

        .status-badge svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
        }

        .header-content {
            position: relative;
            z-index: 2;
        }

        .dashboard-title {
            font-size: var(--text-4xl);
            font-weight: 800;
            margin: 0;
            margin-bottom: var(--space-2);
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .dashboard-subtitle {
            font-size: var(--text-lg);
            opacity: 0.9;
            font-weight: 500;
            margin: 0;
        }

        .comite-details {
            margin-top: var(--space-4);
            font-size: var(--text-base);
            opacity: 0.8;
        }

        /* Messages de feedback amÃ©liorÃ©s */
        .message-success,
        .message-erreur {
            border-radius: var(--radius-lg);
            padding: var(--space-4) var(--space-5);
            margin-bottom: var(--space-6);
            display: flex;
            align-items: center;
            gap: var(--space-3);
            font-weight: 500;
            animation: slideInDown 0.4s ease-out;
        }

        .message-success {
            background: rgba(6, 214, 160, 0.1);
            border: 1px solid rgba(6, 214, 160, 0.3);
            color: #065f46;
        }

        .message-erreur {
            background: rgba(239, 71, 111, 0.1);
            border: 1px solid rgba(239, 71, 111, 0.3);
            color: #991b1b;
        }

        @keyframes slideInDown {
            0% {
                opacity: 0;
                transform: translateY(-20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Styles pour les sections notifications et modifications */
        .card .notifications-header,
        .card .modifications-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: var(--space-6);
            padding-bottom: var(--space-4);
            border-bottom: 2px solid var(--border-primary);
        }

        .card .notifications-header h2,
        .card .modifications-header h2 {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            font-size: var(--text-xl);
            font-weight: 700;
            color: var(--primary-color);
            margin: 0;
        }

        .section-icon-container {
            background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-sport);
        }

        .section-icon-container.sport {
            background: linear-gradient(135deg, var(--orange-sport), #ff8555);
        }

        .section-icon {
            width: 20px;
            height: 20px;
        }

        .btn-plus {
            background: var(--secondary-color);
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: var(--text-xl);
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: var(--shadow);
        }

        .btn-plus:hover {
            transform: scale(1.1);
            box-shadow: var(--shadow-lg);
        }

        .notification-count {
            background: var(--error);
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: var(--text-xs);
            font-weight: 700;
        }

        .notification-item,
        .modification-item {
            display: flex;
            align-items: flex-start;
            gap: var(--space-3);
            padding: var(--space-4);
            background: var(--bg-tertiary);
            border-radius: var(--radius-lg);
            margin-bottom: var(--space-4);
            position: relative;
            transition: var(--transition);
        }

        .notification-item:hover,
        .modification-item:hover {
            background: var(--bg-secondary);
            transform: translateX(4px);
        }

        .notification-icon {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
        }

        .notification-content,
        .modification-content {
            flex: 1;
        }

        .notification-title {
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: var(--space-1);
        }

        .notification-message {
            color: var(--text-secondary);
            line-height: var(--leading-relaxed);
            margin-bottom: var(--space-2);
        }

        .notification-meta {
            font-size: var(--text-xs);
            color: var(--text-muted);
        }

        .btn-delete {
            position: absolute;
            top: var(--space-2);
            right: var(--space-2);
            background: var(--error);
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: var(--text-lg);
            cursor: pointer;
            transition: var(--transition);
            opacity: 0.7;
        }

        .btn-delete:hover {
            opacity: 1;
            transform: scale(1.1);
        }

        .modification-details {
            display: flex;
            flex-direction: column;
            gap: var(--space-2);
        }

        .modification-arbitre {
            font-weight: 700;
            color: var(--primary-color);
        }

        .modification-changes {
            color: var(--text-secondary);
            font-size: var(--text-sm);
        }

        .modif-field {
            font-weight: 600;
            color: var(--secondary-color);
        }

        .old-value {
            text-decoration: line-through;
            color: var(--text-muted);
        }

        .modification-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: var(--text-xs);
            color: var(--text-muted);
        }

        .modification-date {
            display: flex;
            align-items: center;
            gap: var(--space-1);
        }

        .btn-mark-read {
            background: var(--success);
            border: none;
            border-radius: var(--radius);
            padding: var(--space-1) var(--space-2);
            color: white;
            font-size: var(--text-xs);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: var(--space-1);
            transition: var(--transition);
        }

        .btn-mark-read:hover {
            background: var(--success);
            filter: brightness(1.1);
        }

        .modification-icon {
            width: 20px;
            height: 20px;
            color: var(--secondary-color);
            margin-right: var(--space-2);
        }

        .empty-state,
        .error-state {
            text-align: center;
            padding: var(--space-8);
            color: var(--text-muted);
        }

        .empty-state-icon {
            width: 48px;
            height: 48px;
            margin: 0 auto var(--space-4);
            color: var(--text-muted);
        }

        .section-footer {
            text-align: center;
            padding-top: var(--space-4);
            border-top: 1px solid var(--border-primary);
        }

        .link-view-all {
            color: var(--secondary-color);
            text-decoration: none;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: var(--space-2);
            transition: var(--transition);
        }

        .link-view-all:hover {
            text-decoration: underline;
        }

        /* Modal styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-overlay);
            backdrop-filter: blur(4px) saturate(180%);
            z-index: var(--z-modal);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: var(--space-4);
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: var(--bg-secondary);
            border: 1px solid var(--border-primary);
            border-radius: var(--radius-2xl);
            padding: 0;
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: var(--shadow-2xl);
            transform: scale(0.95) translateY(20px);
            transition: var(--transition);
            position: relative;
        }

        .modal-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
        }

        .modal-overlay.active .modal-content {
            transform: scale(1) translateY(0);
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: var(--space-6);
            border-bottom: 1px solid var(--border-primary);
            background: var(--bg-tertiary);
        }

        .modal-title {
            color: var(--text-primary);
            font-size: var(--text-xl);
            font-weight: 700;
            margin: 0;
            display: flex;
            align-items: center;
            gap: var(--space-3);
        }

        .modal-close {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            font-size: var(--text-xl);
            padding: var(--space-2);
            border-radius: var(--radius);
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
        }

        .modal-close:hover {
            color: var(--text-primary);
            background: var(--bg-secondary);
        }

        .modal-content form {
            padding: var(--space-6);
        }

        .form-checkbox-container {
            display: flex;
            align-items: center;
            gap: var(--space-3);
            margin-bottom: var(--space-6);
            padding: var(--space-4);
            background: var(--bg-tertiary);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-primary);
        }

        .form-checkbox-label {
            display: flex;
            align-items: center;
            gap: var(--space-2);
            cursor: pointer;
            font-weight: 500;
            color: var(--text-primary);
        }

        .modal-buttons {
            display: flex;
            gap: var(--space-3);
            justify-content: flex-end;
            margin-top: var(--space-6);
        }

        .btn-secondary,
        .btn-primary {
            padding: var(--space-3) var(--space-6);
            border: 2px solid transparent;
            border-radius: var(--radius-sport);
            font-size: var(--text-sm);
            font-weight: 700;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: var(--transition-bounce);
            display: inline-flex;
            align-items: center;
            gap: var(--space-2);
            position: relative;
            overflow: hidden;
        }

        .btn-secondary {
            background: transparent;
            color: var(--text-secondary);
            border-color: var(--border-primary);
        }

        .btn-secondary:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
            transform: translateY(-2px);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
            color: var(--text-inverse);
            box-shadow: var(--shadow-sport);
        }

        .btn-primary:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(23, 190, 187, 0.4);
        }

        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }

        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid transparent;
            border-radius: 50%;
            border-top-color: currentColor;
            animation: spin 0.8s linear infinite;
        }

        .spinner-sm {
            width: 12px;
            height: 12px;
            border-width: 1px;
        }

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

        /* Responsive */
        @media (max-width: 768px) {
            .dashboard-header {
                padding: var(--space-6);
            }

            .header-top {
                flex-direction: column;
                gap: var(--space-4);
                align-items: stretch;
            }

            .comite-info {
                justify-content: center;
            }

            .status-widget {
                justify-content: center;
            }

            .dashboard-title {
                font-size: var(--text-3xl);
                text-align: center;
            }

            .dashboard-subtitle {
                text-align: center;
            }

            .grid-cols-2 {
                grid-template-columns: 1fr;
            }

            .grid-cols-3 {
                grid-template-columns: 1fr;
            }

            .modal-content {
                margin: var(--space-4);
                max-width: none;
                width: calc(100vw - 2rem);
            }

            .modal-buttons {
                flex-direction: column;
                gap: var(--space-2);
            }
        }


 /* Style pour le bouton plus des notifications */
        .btn-plus {
            background: #192935;
            border: none;
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            font-size: 1.4rem;
            font-weight: bold;
            transition: all 0.2s ease;
            box-shadow: 0 3px 10px rgba(25, 41, 53, 0.3);
            margin-left: auto;
        }
        
        .btn-plus:hover {
            background: #243441;
            transform: scale(1.1);
            box-shadow: 0 5px 15px rgba(25, 41, 53, 0.4);
        }
        
        .btn-plus:active {
            transform: scale(0.95);
        }
        
        /* Header des notifications amélioré */
        .notifications-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--border-primary);
        }
        
        .section-icon-container {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
            border-radius: 0.625rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            flex-shrink: 0;
        }
        
        .section-icon {
            width: 20px;
            height: 20px;
        }
        
        .notifications-header h2 {
            font-size: 1.25rem;
            font-weight: bold;
            color: var(--primary-color);
            margin: 0;
            flex-grow: 1;
        }
        
        .notification-item {
            padding: 1rem;
            border-bottom: 1px solid var(--border-primary);
            transition: background-color 0.2s;
            position: relative;
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }
        
        .notification-item:last-child {
            border-bottom: none;
        }
        
        .notification-icon {
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            margin-top: 2px;
        }
        
        .notification-content {
            flex: 1;
        }
        
        .notification-title {
            font-weight: 600;
            margin-bottom: 0.25rem;
            color: var(--text-primary);
        }
        
        .notification-message {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }
        
        .notification-meta {
            font-size: 0.75rem;
            color: var(--text-muted);
        }
        
        .empty-state {
            text-align: center;
            padding: 2rem;
            color: var(--text-muted);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }
        
        .empty-state-icon {
            width: 48px;
            height: 48px;
            opacity: 0.3;
        }
        
        /* Bouton de suppression pour notifications */
        .btn-delete {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: #ef476f;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: bold;
            transition: all 0.2s ease;
            opacity: 0.7;
        }
        
        .btn-delete:hover {
            opacity: 1;
            background: #d73655;
            transform: scale(1.1);
        }
        
        /* Bouton marquer comme vu pour modifications */
        .btn-mark-read {
            background: #17BEBB;
            border: none;
            border-radius: 4px;
            padding: 4px 8px;
            color: white;
            cursor: pointer;
            font-size: 0.7rem;
            font-weight: 600;
            transition: all 0.2s ease;
            margin-top: 0.5rem;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        
        .btn-mark-read:hover {
            background: #139a97;
            transform: translateY(-1px);
        }
        
        .modif-field {
            display: inline-block;
            padding: 2px 6px;
            background: rgba(23, 190, 187, 0.1);
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #17BEBB;
            margin-right: 4px;
        }
        
        /* Modal styles complets */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
        }
        
        .modal-content {
            background: white;
            border-radius: 1rem;
            padding: 2rem;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            position: relative;
            transform: scale(0.95);
            transition: all 0.3s ease;
        }
        
        .modal-overlay.active .modal-content {
            transform: scale(1);
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--border-primary);
        }
        
        .modal-title {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary-color);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-muted);
            padding: 0.25rem;
            border-radius: 4px;
            transition: all 0.2s;
        }
        
        .modal-close:hover {
            background: var(--bg-tertiary);
            color: var(--text-primary);
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-label {
            display: block;
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        .form-input {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid var(--border-secondary);
            border-radius: 0.5rem;
            font-size: 1rem;
            box-sizing: border-box;
            transition: border-color 0.2s;
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(23, 190, 187, 0.1);
        }
        
        .form-textarea {
            width: 100%;
            padding: 0.75rem;
            border: 2px solid var(--border-secondary);
            border-radius: 0.5rem;
            font-size: 1rem;
            resize: vertical;
            box-sizing: border-box;
            transition: border-color 0.2s;
            font-family: inherit;
        }
        
        .form-textarea:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(23, 190, 187, 0.1);
        }
        
        .form-checkbox-container {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem;
            background: rgba(23, 190, 187, 0.05);
            border: 2px solid rgba(23, 190, 187, 0.2);
            border-radius: 0.5rem;
            margin-bottom: 1.5rem;
        }
        
        .form-checkbox {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }
        
        .form-checkbox-label {
            font-weight: 600;
            color: var(--primary-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .btn-secondary {
            padding: 0.75rem 1.5rem;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-primary);
            border-radius: 0.5rem;
            cursor: pointer;
            font-weight: 600;
            color: var(--text-primary);
            transition: all 0.2s;
        }
        
        .btn-secondary:hover {
            background: var(--border-secondary);
        }
        
        .btn-primary {
            padding: 0.75rem 1.5rem;
            background: var(--secondary-color);
            color: white;
            border: none;
            border-radius: 0.5rem;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .btn-primary:hover {
            background: var(--secondary-light);
            transform: translateY(-1px);
        }
        
        .modal-buttons {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
        }
        
        /* Messages de feedback */
        .message-success {
            background: rgba(6, 214, 160, 0.15);
            border: 2px solid #06d6a0;
            color: #065f46;
            padding: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .message-erreur {
            background: rgba(239, 71, 111, 0.15);
            border: 2px solid #ef476f;
            color: #991b1b;
            padding: 1rem;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        /* Icônes dans les sections de modifications */
        .modification-item {
            padding: 1rem;
            border-left: 3px solid #ff6b35;
            background: rgba(255, 107, 53, 0.1);
            border-radius: 0 0.375rem 0.375rem 0;
            margin-bottom: 0.5rem;
        }
        
        .modification-content {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }
        
        .modification-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            margin-top: 2px;
            color: #ff6b35;
        }
    






















:root {
    /* Couleurs principales OFFICIO */
    --primary-color: #192935;
    --secondary-color: #17BEBB;
    --primary-light: #243441;
    --primary-dark: #0f1a23;
    --secondary-light: #20d4d0;
    --secondary-dark: #139a97;
    
    /* Couleurs neutres */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Couleurs sport/basketball */
    --orange-sport: #ff6b35;
    --yellow-sport: #ffd23f;
    --green-sport: #06d6a0;
    --red-sport: #ef476f;
    --blue-sport: #118ab2;
    --purple-sport: #7209b7;
    
    /* Couleurs fonctionnelles */
    --success: var(--green-sport);
    --warning: var(--yellow-sport);
    --error: var(--red-sport);
    --info: var(--blue-sport);
    
    /* Couleurs de fond */
    --bg-primary: var(--gray-50);
    --bg-secondary: var(--white);
    --bg-tertiary: var(--gray-100);
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-glass: rgba(255, 255, 255, 0.1);
    
    /* Couleurs de texte */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-inverse: var(--white);
    
    /* Couleurs de bordure */
    --border-primary: var(--gray-200);
    --border-secondary: var(--gray-300);
    --border-focus: var(--secondary-color);
    
    /* Espacements */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Rayons */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    --radius-sport: 0.625rem;
    
    /* Ombres */
    --shadow-none: none;
    --shadow-xs: 0 1px 2px rgba(25, 41, 53, 0.05);
    --shadow-sm: 0 2px 4px rgba(25, 41, 53, 0.08);
    --shadow: 0 4px 8px rgba(25, 41, 53, 0.12);
    --shadow-md: 0 8px 16px rgba(25, 41, 53, 0.15);
    --shadow-lg: 0 12px 24px rgba(25, 41, 53, 0.18);
    --shadow-xl: 0 16px 32px rgba(25, 41, 53, 0.20);
    --shadow-2xl: 0 24px 48px rgba(25, 41, 53, 0.25);
    --shadow-sport: 0 6px 20px rgba(23, 190, 187, 0.25);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    /* Transitions */
    --transition-none: none;
    --transition-fast: all 0.15s ease-in-out;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s ease-in-out;
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Typography */
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    --font-family-display: 'Inter Display', var(--font-family-sans);
    
    /* Tailles de police */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Hauteurs de ligne */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Z-index */
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    
    /* Largeurs */
    --width-xs: 20rem;
    --width-sm: 24rem;
    --width-md: 28rem;
    --width-lg: 32rem;
    --width-xl: 36rem;
    --width-2xl: 42rem;
    --width-3xl: 48rem;
    --width-4xl: 56rem;
    --width-5xl: 64rem;
    --width-6xl: 72rem;
    --width-7xl: 80rem;
    
    /* Hauteurs */
    --height-xs: 1.5rem;
    --height-sm: 2rem;
    --height-md: 2.5rem;
    --height-lg: 3rem;
    --height-xl: 3.5rem;
    --height-2xl: 4rem;
}

/* ============================================================================
   VARIABLES CSS - THÃˆME SOMBRE
   ============================================================================ */
[data-theme="dark"] {
    /* Couleurs principales inversÃ©es */
    --primary-color: #17BEBB;
    --secondary-color: #192935;
    --primary-light: #20d4d0;
    --primary-dark: #139a97;
    --secondary-light: #243441;
    --secondary-dark: #0f1a23;
    
    /* Couleurs neutres inversÃ©es */
    --white: #0f172a;
    --black: #ffffff;
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;
    
    /* Couleurs sport adaptÃ©es au dark */
    --orange-sport: #ff8555;
    --yellow-sport: #ffe066;
    --green-sport: #20d6a0;
    --red-sport: #ff6b8a;
    --blue-sport: #3db8e0;
    --purple-sport: #9333ea;
    
    /* Couleurs de fond dark */
    --bg-primary: var(--gray-100);
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-200);
    --bg-overlay: rgba(255, 255, 255, 0.1);
    --bg-glass: rgba(0, 0, 0, 0.3);
    
    /* Couleurs de texte dark */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-inverse: var(--gray-50);
    
    /* Couleurs de bordure dark */
    --border-primary: var(--gray-300);
    --border-secondary: var(--gray-400);
    --border-focus: var(--primary-color);
    
    /* Ombres adaptÃ©es au dark */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.8);
    --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.9);
    --shadow-sport: 0 6px 20px rgba(23, 190, 187, 0.4);
    --shadow-inner: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   RESET ET BASE
   ============================================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family-sans);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    line-height: var(--leading-normal);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition);
}

/* Background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(23, 190, 187, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(25, 41, 53, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: var(--z-0);
}

/* ============================================================================
   TOGGLE THEME
   ============================================================================ */
.theme-toggle {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: var(--z-tooltip);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    padding: var(--space-2);
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow);
    width: 60px;
    height: 32px;
    display: flex;
    align-items: center;
    position: relative;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.theme-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-xs);
}

[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(28px);
    background: var(--secondary-color);
}

/* ============================================================================
   LAYOUT
   ============================================================================ */
.container {
    max-width: var(--width-7xl);
    margin: 0 auto;
    padding: 0 var(--space-4);
    width: 100%;
}

.container-sm { max-width: var(--width-sm); }
.container-md { max-width: var(--width-md); }
.container-lg { max-width: var(--width-lg); }
.container-xl { max-width: var(--width-xl); }
.container-2xl { max-width: var(--width-2xl); }
.container-3xl { max-width: var(--width-3xl); }
.container-4xl { max-width: var(--width-4xl); }
.container-5xl { max-width: var(--width-5xl); }
.container-6xl { max-width: var(--width-6xl); }

.container-fluid {
    width: 100%;
    padding: 0 var(--space-4);
}

/* ============================================================================
   GRILLES
   ============================================================================ */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ============================================================================
   FLEXBOX
   ============================================================================ */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col-reverse { flex-direction: column-reverse; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }

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

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================================================
   GAPS
   ============================================================================ */
.gap-0 { gap: var(--space-0); }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }
.gap-20 { gap: var(--space-20); }

/* ============================================================================
   HEADER
   ============================================================================ */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--space-4) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(10px) saturate(180%);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.logo {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: var(--radius-sport);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: 700;
    box-shadow: var(--shadow-sport);
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.nav-menu {
    display: flex;
    gap: var(--space-2);
    list-style: none;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sport);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(23, 190, 187, 0.1), transparent);
    transition: var(--transition);
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover,
.nav-item.active {
    color: var(--secondary-color);
    background: rgba(23, 190, 187, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    background: var(--secondary-color);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sport);
}

/* Navigation mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--text-primary);
    font-size: var(--text-xl);
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-overlay);
    z-index: var(--z-modal);
}

.nav-mobile-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-2xl);
    padding: var(--space-6);
    transform: translateX(100%);
    transition: var(--transition);
}

.nav-mobile.active .nav-mobile-content {
    transform: translateX(0);
}

.nav-mobile .nav-menu {
    flex-direction: column;
    gap: var(--space-2);
}

/* ============================================================================
   USER INFO
   ============================================================================ */
.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.user-name {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--text-sm);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: var(--transition);
}

.avatar:hover::before {
    transform: translateX(100%);
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: var(--text-sm);
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: var(--text-lg);
}

.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: var(--text-xl);
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */
.main-content {
    padding: var(--space-8) 0;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-8);
    text-align: center;
    line-height: var(--leading-tight);
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-radius: var(--radius-sm);
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    text-align: center;
}

/* ============================================================================
   CARTES
   ============================================================================ */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.card-sport {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid transparent;
    background-clip: padding-box;
}

.card-sport:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 32px rgba(23, 190, 187, 0.2);
}

.card-flat {
    box-shadow: none;
    border: 1px solid var(--border-primary);
}

.card-bordered {
    border: 2px solid var(--border-primary);
}

.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-primary);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-2);
    line-height: var(--leading-tight);
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
}

.card-body {
    padding: 0;
}

.card-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-primary);
}

/* ============================================================================
   WIDGETS STATISTIQUES
   ============================================================================ */
.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23, 190, 187, 0.1), transparent);
    transform: translateY(-50%);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px) rotate(1deg);
    box-shadow: 0 12px 32px rgba(23, 190, 187, 0.2);
    border-color: var(--secondary-color);
}

.stat-card:hover::after {
    right: -20px;
    background: radial-gradient(circle, rgba(23, 190, 187, 0.2), transparent);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--leading-none);
    position: relative;
    z-index: 2;
    font-family: var(--font-family-mono);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-top: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    margin-top: var(--space-3);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
    width: fit-content;
    position: relative;
    z-index: 2;
}

.stat-change.positive { 
    background: rgba(6, 214, 160, 0.1);
    color: var(--success);
}

.stat-change.negative { 
    background: rgba(239, 71, 111, 0.1);
    color: var(--error);
}

/* Variantes de couleurs */
.stat-card.primary::before { 
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.stat-card.secondary::before { 
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
}

.stat-card.success::before { 
    background: linear-gradient(90deg, var(--success), #20d6a0);
}

.stat-card.warning::before { 
    background: linear-gradient(90deg, var(--warning), #ffe066);
}

.stat-card.error::before { 
    background: linear-gradient(90deg, var(--error), #ff6b8a);
}

.stat-card.sport::before { 
    background: linear-gradient(90deg, var(--orange-sport), #ff8555);
}

/* ============================================================================
   BOUTONS
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: 2px solid transparent;
    border-radius: var(--radius-sport);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-family: inherit;
    line-height: var(--leading-none);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Variantes de boutons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-inverse);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(25, 41, 53, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--text-inverse);
    box-shadow: var(--shadow-sport);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(23, 190, 187, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #20d6a0);
    color: var(--text-inverse);
    box-shadow: var(--shadow);
}

.btn-success:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #ffe066);
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.btn-warning:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 210, 63, 0.4);
}

.btn-error {
    background: linear-gradient(135deg, var(--error), #ff6b8a);
    color: var(--text-inverse);
    box-shadow: var(--shadow);
}

.btn-error:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(239, 71, 111, 0.4);
}

.btn-sport {
    background: linear-gradient(135deg, var(--orange-sport), #ff8555);
    color: var(--text-inverse);
    box-shadow: var(--shadow);
}

.btn-sport:hover {
    transform: translateY(-2px) scale(1.05) rotate(2deg);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background: var(--secondary-color);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid transparent;
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-link {
    background: none;
    border: none;
    color: var(--secondary-color);
    text-decoration: underline;
    text-transform: none;
    letter-spacing: normal;
    padding: 0;
}

.btn-link:hover {
    color: var(--secondary-light);
    text-decoration: none;
}

/* Tailles de boutons */
.btn-xs {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn-full {
    width: 100%;
}

.btn-square {
    width: var(--height-md);
    height: var(--height-md);
    padding: 0;
}

.btn-circle {
    border-radius: 50%;
    width: var(--height-md);
    height: var(--height-md);
    padding: 0;
}

/* ============================================================================
   GROUPES DE BOUTONS
   ============================================================================ */
.btn-group {
    display: inline-flex;
    border-radius: var(--radius-sport);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--radius-sport);
    border-bottom-left-radius: var(--radius-sport);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--radius-sport);
    border-bottom-right-radius: var(--radius-sport);
    border-right: none;
}

.btn-group .btn:only-child {
    border-radius: var(--radius-sport);
}

/* ============================================================================
   TABLEAUX
   ============================================================================ */
.table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.table th {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-primary));
    padding: var(--space-4) var(--space-6);
    text-align: left;
    font-weight: 700;
    color: var(--primary-color);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--secondary-color);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: var(--z-10);
}

.table td {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    vertical-align: middle;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(23, 190, 187, 0.05), rgba(25, 41, 53, 0.05));
    transform: scale(1.005);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table-striped tbody tr:nth-child(even) {
    background: var(--bg-tertiary);
}

.table-bordered {
    border: 1px solid var(--border-primary);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-primary);
}

.table-borderless th,
.table-borderless td {
    border: none;
}

.table-sm th,
.table-sm td {
    padding: var(--space-2) var(--space-3);
}

.table-lg th,
.table-lg td {
    padding: var(--space-6) var(--space-8);
}

/* ============================================================================
   BADGES
   ============================================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sport);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: var(--leading-none);
}

.badge-primary {
    background: linear-gradient(135deg, rgba(25, 41, 53, 0.1), rgba(25, 41, 53, 0.15));
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.badge-secondary {
    background: linear-gradient(135deg, rgba(23, 190, 187, 0.1), rgba(23, 190, 187, 0.15));
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.badge-success {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), rgba(6, 214, 160, 0.15));
    color: var(--success);
    border-color: var(--success);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(255, 210, 63, 0.1), rgba(255, 210, 63, 0.15));
    color: var(--warning);
    border-color: var(--warning);
}

.badge-error {
    background: linear-gradient(135deg, rgba(239, 71, 111, 0.1), rgba(239, 71, 111, 0.15));
    color: var(--error);
    border-color: var(--error);
}

.badge-info {
    background: linear-gradient(135deg, rgba(17, 138, 178, 0.1), rgba(17, 138, 178, 0.15));
    color: var(--info);
    border-color: var(--info);
}

.badge-sport {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.15));
    color: var(--orange-sport);
    border-color: var(--orange-sport);
}

.badge-outline {
    background: transparent;
}

.badge-solid {
    border: none;
}

.badge-solid.badge-primary {
    background: var(--primary-color);
    color: var(--text-inverse);
}

.badge-solid.badge-secondary {
    background: var(--secondary-color);
    color: var(--text-inverse);
}

.badge-solid.badge-success {
    background: var(--success);
    color: var(--text-inverse);
}

.badge-solid.badge-warning {
    background: var(--warning);
    color: var(--primary-color);
}

.badge-solid.badge-error {
    background: var(--error);
    color: var(--text-inverse);
}

.badge-solid.badge-info {
    background: var(--info);
    color: var(--text-inverse);
}

.badge-solid.badge-sport {
    background: var(--orange-sport);
    color: var(--text-inverse);
}

/* Tailles de badges */
.badge-xs {
    padding: var(--space-1) var(--space-2);
    font-size: 0.625rem;
}

.badge-sm {
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
}

.badge-lg {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.badge-xl {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
}

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

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 700;
    color: var(--primary-color);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-label-required::after {
    content: ' *';
    color: var(--error);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-secondary);
    border-radius: var(--radius-sport);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    font-family: inherit;
    line-height: var(--leading-normal);
    transition: var(--transition-bounce);
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(23, 190, 187, 0.1);
    transform: translateY(-2px);
}

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

.form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-tertiary);
}

.form-input[readonly],
.form-input.form-input--readonly {
    background: var(--bg-tertiary);
    cursor: not-allowed;
    color: var(--text-muted);
}

.form-input[readonly]:focus,
.form-input.form-input--readonly:focus {
    border-color: var(--border-secondary);
    box-shadow: none;
    transform: none;
}

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

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2317BEBB' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: var(--leading-relaxed);
}

.form-checkbox,
.form-radio {
    width: 20px;
    height: 20px;
    margin-right: var(--space-2);
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.form-switch {
    appearance: none;
    width: 48px;
    height: 24px;
    background: var(--border-secondary);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.form-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 50%;
    transition: var(--transition);
}

.form-switch:checked {
    background: var(--secondary-color);
}

.form-switch:checked::before {
    transform: translateX(24px);
}

.form-range {
    width: 100%;
    height: 8px;
    background: var(--border-secondary);
    border-radius: var(--radius-full);
    outline: none;
    appearance: none;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
}

/* Tailles de formulaires */
.form-input-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.form-input-lg {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
}

.form-input-xl {
    padding: var(--space-5) var(--space-6);
    font-size: var(--text-lg);
}

/* Ã‰tats de validation */
.form-input.is-valid {
    border-color: var(--success);
}

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

.form-feedback {
    margin-top: var(--space-1);
    font-size: var(--text-xs);
    font-weight: 500;
}

.form-feedback.valid-feedback {
    color: var(--success);
}

.form-feedback.invalid-feedback {
    color: var(--error);
}

/* Groupes d'inputs */
.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group .form-input {
    border-radius: 0;
    border-right: none;
    z-index: 1;
}

.input-group .form-input:first-child {
    border-top-left-radius: var(--radius-sport);
    border-bottom-left-radius: var(--radius-sport);
}

.input-group .form-input:last-child {
    border-top-right-radius: var(--radius-sport);
    border-bottom-right-radius: var(--radius-sport);
    border-right: 2px solid var(--border-secondary);
}

.input-group .form-input:focus {
    z-index: 2;
    border-right: 2px solid var(--border-focus);
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-secondary);
    border-radius: var(--radius-sport);
    white-space: nowrap;
}

.input-group .input-group-text:first-child {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .input-group-text:last-child {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ============================================================================
   ALERTES
   ============================================================================ */
.alert {
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.alert-success {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), rgba(6, 214, 160, 0.05));
    border-color: var(--success);
    color: #065f46;
}

.alert-success::before {
    background: var(--success);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 210, 63, 0.1), rgba(255, 210, 63, 0.05));
    border-color: var(--warning);
    color: #92400e;
}

.alert-warning::before {
    background: var(--warning);
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 71, 111, 0.1), rgba(239, 71, 111, 0.05));
    border-color: var(--error);
    color: #991b1b;
}

.alert-error::before {
    background: var(--error);
}

.alert-info {
    background: linear-gradient(135deg, rgba(17, 138, 178, 0.1), rgba(17, 138, 178, 0.05));
    border-color: var(--info);
    color: #0c4a6e;
}

.alert-info::before {
    background: var(--info);
}

.alert-primary {
    background: linear-gradient(135deg, rgba(25, 41, 53, 0.1), rgba(25, 41, 53, 0.05));
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.alert-primary::before {
    background: var(--primary-color);
}

.alert-secondary {
    background: linear-gradient(135deg, rgba(23, 190, 187, 0.1), rgba(23, 190, 187, 0.05));
    border-color: var(--secondary-color);
    color: var(--secondary-dark);
}

.alert-secondary::before {
    background: var(--secondary-color);
}

.alert-dismissible {
    padding-right: var(--space-12);
}

.alert-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    font-size: var(--text-lg);
    opacity: 0.7;
    transition: var(--transition);
    padding: var(--space-1);
    border-radius: var(--radius);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.alert-title {
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: currentColor;
}

.alert-content {
    flex: 1;
}

.alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    margin-top: 2px;
}

/* ============================================================================
   PROGRESS BARS
   ============================================================================ */
.progress {
    background: var(--border-secondary);
    border-radius: var(--radius-sport);
    height: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-inner);
}

.progress-bar {
    height: 100%;
    border-radius: var(--radius-sport);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar.primary { 
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.progress-bar.secondary { 
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
}

.progress-bar.success { 
    background: linear-gradient(90deg, var(--success), #20d6a0);
}

.progress-bar.warning { 
    background: linear-gradient(90deg, var(--warning), #ffe066);
}

.progress-bar.error { 
    background: linear-gradient(90deg, var(--error), #ff6b8a);
}

.progress-bar.info { 
    background: linear-gradient(90deg, var(--info), #3db8e0);
}

.progress-bar.sport { 
    background: linear-gradient(90deg, var(--orange-sport), #ff8555);
}

/* Tailles de progress */
.progress-sm {
    height: 6px;
}

.progress-lg {
    height: 16px;
}

.progress-xl {
    height: 24px;
}

/* Progress avec texte */
.progress-text {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--text-xs);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Progress circulaire */
.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--secondary-color) 0deg, var(--border-secondary) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: var(--bg-secondary);
}

.progress-circle-text {
    position: relative;
    z-index: 1;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================================================
   MODALES
   ============================================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px) saturate(180%);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-2xl);
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.95) translateY(20px);
    transition: var(--transition);
    position: relative;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.modal-title {
    color: var(--text-primary);
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--text-xl);
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.modal-body {
    padding: var(--space-6);
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    padding: var(--space-6);
    border-top: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

/* Tailles de modales */
.modal-sm {
    max-width: 300px;
}

.modal-lg {
    max-width: 800px;
}

.modal-xl {
    max-width: 1200px;
}

.modal-fullscreen {
    max-width: none;
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
}

/* ============================================================================
   DROPDOWNS
   ============================================================================ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-secondary);
    border-radius: var(--radius-sport);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-focus);
    transform: translateY(-1px);
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: auto;
    vertical-align: 0.255em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: var(--transition);
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: var(--z-dropdown);
    display: none;
    min-width: 160px;
    padding: var(--space-2) 0;
    margin: var(--space-1) 0 0;
    font-size: var(--text-sm);
    color: var(--text-primary);
    text-align: left;
    list-style: none;
    background: var(--bg-secondary);
    background-clip: padding-box;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px) saturate(180%);
}

.dropdown.show .dropdown-menu {
    display: block;
    animation: dropdown-enter 0.15s ease-out;
}

@keyframes dropdown-enter {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: var(--space-2) var(--space-4);
    clear: both;
    font-weight: 500;
    color: var(--text-primary);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.dropdown-item:active {
    color: var(--text-inverse);
    background: var(--secondary-color);
}

.dropdown-item.disabled {
    color: var(--text-muted);
    pointer-events: none;
    background: transparent;
}

.dropdown-item.active {
    color: var(--text-inverse);
    background: var(--secondary-color);
}

.dropdown-divider {
    height: 0;
    margin: var(--space-2) 0;
    overflow: hidden;
    border-top: 1px solid var(--border-primary);
}

.dropdown-header {
    display: block;
    padding: var(--space-2) var(--space-4);
    margin-bottom: 0;
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ============================================================================
   TOOLTIPS
   ============================================================================ */
.tooltip {
    position: absolute;
    z-index: var(--z-tooltip);
    display: block;
    margin: 0;
    font-family: var(--font-family-sans);
    font-style: normal;
    font-weight: 400;
    line-height: var(--leading-normal);
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    white-space: normal;
    line-break: auto;
    font-size: var(--text-sm);
    word-wrap: break-word;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.tooltip.show {
    opacity: 0.9;
}

.tooltip-inner {
    max-width: 200px;
    padding: var(--space-2) var(--space-3);
    color: var(--text-inverse);
    text-align: center;
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-xs);
    font-weight: 500;
}

.tooltip-arrow {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
}

.tooltip.top .tooltip-arrow {
    bottom: -5px;
    left: 50%;
    margin-left: -5px;
    border-top: 5px solid var(--primary-color);
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

.tooltip.bottom .tooltip-arrow {
    top: -5px;
    left: 50%;
    margin-left: -5px;
    border-bottom: 5px solid var(--primary-color);
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

/* ============================================================================
   ACCORDIONS
   ============================================================================ */
.accordion {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: var(--shadow);
}

.accordion-item {
    border-bottom: 1px solid var(--border-primary);
}

.accordion-item:last-child {
    border-bottom: 0;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--space-5) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    background: var(--bg-secondary);
    border: 0;
    border-radius: 0;
    overflow-anchor: none;
    transition: var(--transition);
    cursor: pointer;
}

.accordion-button:not(.collapsed) {
    color: var(--secondary-color);
    background: var(--bg-tertiary);
    box-shadow: inset 0 -1px 0 var(--border-primary);
}

.accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: '';
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23334155'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    transition: var(--transition);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2317BEBB'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.accordion-collapse {
    border-top: 1px solid var(--border-primary);
}

.accordion-body {
    padding: var(--space-5) var(--space-6);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    line-height: var(--leading-relaxed);
}

/* ============================================================================
   TABS
   ============================================================================ */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
    border-bottom: 2px solid var(--border-primary);
    gap: var(--space-2);
}

.nav-tabs .nav-link {
    display: block;
    padding: var(--space-3) var(--space-5);
    margin-bottom: -2px;
    background: none;
    border: 2px solid transparent;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-tabs .nav-link:hover {
    border-color: var(--border-primary);
    isolation: isolate;
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-tabs .nav-link:hover::before {
    width: 80%;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: var(--secondary-color);
    background: var(--bg-secondary);
    border-color: var(--border-primary) var(--border-primary) var(--bg-secondary);
    box-shadow: var(--shadow-sm);
}

.nav-tabs .nav-link.active::before {
    width: 100%;
}

.nav-tabs .nav-link.disabled {
    color: var(--text-muted);
    background: transparent;
    border-color: transparent;
    cursor: not-allowed;
}

.tab-content {
    padding: var(--space-6);
    border: 1px solid var(--border-primary);
    border-top: none;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    background: var(--bg-secondary);
    box-shadow: var(--shadow);
}

.tab-pane {
    display: none;
    animation: tab-enter 0.3s ease-out;
}

.tab-pane.active {
    display: block;
}

@keyframes tab-enter {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   PAGINATION
   ============================================================================ */
.pagination {
    display: flex;
    list-style: none;
    border-radius: var(--radius-lg);
    gap: var(--space-1);
    padding: 0;
    margin: 0;
}

.page-item {
    display: block;
}

.page-link {
    position: relative;
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    transition: var(--transition);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius);
    min-width: 40px;
    text-align: center;
}

.page-link:hover {
    z-index: 2;
    color: var(--secondary-color);
    background: var(--bg-tertiary);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.page-item.active .page-link {
    z-index: 3;
    color: var(--text-inverse);
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sport);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    pointer-events: none;
    background: var(--bg-tertiary);
    border-color: var(--border-primary);
    opacity: 0.6;
}

.page-link.page-prev,
.page-link.page-next {
    padding: var(--space-2) var(--space-4);
}

/* ============================================================================
   BREADCRUMB
   ============================================================================ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: var(--space-3) 0;
    margin-bottom: var(--space-6);
    list-style: none;
    background: transparent;
    border-radius: var(--radius-lg);
    gap: var(--space-2);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: var(--text-sm);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: var(--space-2);
    color: var(--text-muted);
    content: ">";
    font-weight: 700;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
}

.breadcrumb-item a:hover {
    color: var(--secondary-light);
    background: var(--bg-tertiary);
    text-decoration: underline;
}

/* ============================================================================
   TOASTS
   ============================================================================ */
.toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    max-width: 350px;
    pointer-events: none;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-3);
    overflow: hidden;
    transform: translateX(100%);
    transition: var(--transition);
    pointer-events: auto;
    position: relative;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
}

.toast.show {
    transform: translateX(0);
    animation: toast-enter 0.3s ease-out;
}

@keyframes toast-enter {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast-header {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
    gap: var(--space-2);
}

.toast-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: var(--text-sm);
    flex: 1;
}

.toast-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}

.toast-body {
    padding: var(--space-4);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: var(--text-lg);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Variantes de toasts */
.toast.toast-success::before {
    background: var(--success);
}

.toast.toast-warning::before {
    background: var(--warning);
}

.toast.toast-error::before {
    background: var(--error);
}

.toast.toast-info::before {
    background: var(--info);
}

/* ============================================================================
   LOADING STATES
   ============================================================================ */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(23, 190, 187, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-secondary);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 0.8s linear infinite;
}

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

.spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 1px;
}

.spinner-lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.spinner-xl {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-text {
    margin-top: var(--space-4);
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--text-sm);
}

/* ============================================================================
   SKELETON LOADING
   ============================================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

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

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-text.skeleton-text-sm {
    height: 0.875em;
}

.skeleton-text.skeleton-text-lg {
    height: 1.25em;
}

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

.skeleton-button {
    height: 38px;
    width: 100px;
    border-radius: var(--radius-sport);
}

.skeleton-card {
    height: 200px;
    border-radius: var(--radius-xl);
}

/* ============================================================================
   COMPOSANTS SPÃ‰CIAUX BASKETBALL
   ============================================================================ */
.player-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.player-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(23, 190, 187, 0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition);
}

.player-card:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 16px 40px rgba(23, 190, 187, 0.2);
    border-color: var(--secondary-color);
}

.player-card:hover::before {
    top: -25%;
    right: -25%;
}

.player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--text-2xl);
    font-weight: 900;
    margin: 0 auto var(--space-4);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sport);
}

.player-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--space-1);
}

.player-position {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    position: relative;
    z-index: 2;
}

.player-stat {
    text-align: center;
}

.player-stat-value {
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--secondary-color);
    line-height: var(--leading-none);
    font-family: var(--font-family-mono);
}

.player-stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: var(--space-1);
}

.team-stats {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-inverse);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.team-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2317BEBB' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.team-stats-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    position: relative;
    z-index: 2;
}

.team-stat {
    text-align: center;
}

.team-stat-value {
    font-size: var(--text-2xl);
    font-weight: 900;
    line-height: var(--leading-none);
    margin-bottom: var(--space-1);
    font-family: var(--font-family-mono);
}

.team-stat-label {
    font-size: var(--text-sm);
    opacity: 0.8;
    font-weight: 500;
}

/* ============================================================================
   COURT DE BASKETBALL
   ============================================================================ */
.basketball-court {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: var(--orange-sport);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    margin: var(--space-6) auto;
    box-shadow: var(--shadow-lg);
}

.basketball-court::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.basketball-court::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--white);
    transform: translateY(-50%);
}

.court-hoop {
    position: absolute;
    top: 20%;
    width: 40px;
    height: 20px;
    border: 3px solid var(--white);
    border-radius: var(--radius);
    background: transparent;
}

.court-hoop.left {
    left: 10px;
}

.court-hoop.right {
    right: 10px;
}

/* ============================================================================
   MATCH SCOREBOARD
   ============================================================================ */
.scoreboard {
    background: var(--primary-color);
    color: var(--text-inverse);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.scoreboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--yellow-sport), var(--secondary-color));
}

.scoreboard-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.scoreboard-team {
    text-align: center;
}

.scoreboard-team-name {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scoreboard-score {
    font-size: var(--text-5xl);
    font-weight: 900;
    line-height: var(--leading-none);
    font-family: var(--font-family-mono);
    color: var(--yellow-sport);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scoreboard-vs {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.scoreboard-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-4);
}

.scoreboard-time {
    font-weight: 700;
    font-family: var(--font-family-mono);
}

.scoreboard-quarter {
    font-weight: 600;
}

/* ============================================================================
   ANIMATIONS SPORT
   ============================================================================ */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }
    70% {
        transform: scale(0.95) translateY(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(23, 190, 187, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(23, 190, 187, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.animate-bounce-in { animation: bounce-in 0.6s ease-out; }
.animate-slide-in-right { animation: slide-in-right 0.5s ease-out; }
.animate-slide-in-left { animation: slide-in-left 0.5s ease-out; }
.animate-fade-in-up { animation: fade-in-up 0.5s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s infinite; }
.animate-shake { animation: shake 0.5s ease-in-out; }

/* Delays d'animation */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* ============================================================================
   UTILITIES
   ============================================================================ */

/* Spacing */
.m-0 { margin: var(--space-0); }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.m-10 { margin: var(--space-10); }
.m-12 { margin: var(--space-12); }

.mt-0 { margin-top: var(--space-0); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: var(--space-0); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.ml-0 { margin-left: var(--space-0); }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.ml-3 { margin-left: var(--space-3); }
.ml-4 { margin-left: var(--space-4); }
.ml-auto { margin-left: auto; }

.mr-0 { margin-right: var(--space-0); }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-4 { margin-right: var(--space-4); }
.mr-auto { margin-right: auto; }

.mx-0 { margin-left: var(--space-0); margin-right: var(--space-0); }
.mx-1 { margin-left: var(--space-1); margin-right: var(--space-1); }
.mx-2 { margin-left: var(--space-2); margin-right: var(--space-2); }
.mx-3 { margin-left: var(--space-3); margin-right: var(--space-3); }
.mx-4 { margin-left: var(--space-4); margin-right: var(--space-4); }
.mx-auto { margin-left: auto; margin-right: auto; }

.my-0 { margin-top: var(--space-0); margin-bottom: var(--space-0); }
.my-1 { margin-top: var(--space-1); margin-bottom: var(--space-1); }
.my-2 { margin-top: var(--space-2); margin-bottom: var(--space-2); }
.my-3 { margin-top: var(--space-3); margin-bottom: var(--space-3); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-6 { margin-top: var(--space-6); margin-bottom: var(--space-6); }

.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.pt-0 { padding-top: var(--space-0); }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }

.pb-0 { padding-bottom: var(--space-0); }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }

.pl-0 { padding-left: var(--space-0); }
.pl-1 { padding-left: var(--space-1); }
.pl-2 { padding-left: var(--space-2); }
.pl-3 { padding-left: var(--space-3); }
.pl-4 { padding-left: var(--space-4); }

.pr-0 { padding-right: var(--space-0); }
.pr-1 { padding-right: var(--space-1); }
.pr-2 { padding-right: var(--space-2); }
.pr-3 { padding-right: var(--space-3); }
.pr-4 { padding-right: var(--space-4); }

.px-0 { padding-left: var(--space-0); padding-right: var(--space-0); }
.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

.py-0 { padding-top: var(--space-0); padding-bottom: var(--space-0); }
.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

.leading-none { line-height: var(--leading-none); }
.leading-tight { line-height: var(--leading-tight); }
.leading-snug { line-height: var(--leading-snug); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Colors */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-info { color: var(--info); }
.text-sport { color: var(--orange-sport); }

.text-white { color: var(--white); }
.text-black { color: var(--black); }
.text-gray-50 { color: var(--gray-50); }
.text-gray-100 { color: var(--gray-100); }
.text-gray-200 { color: var(--gray-200); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }
.bg-error { background-color: var(--error); }
.bg-info { background-color: var(--info); }
.bg-sport { background-color: var(--orange-sport); }

.bg-white { background-color: var(--white); }
.bg-black { background-color: var(--black); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-300 { background-color: var(--gray-300); }
.bg-transparent { background-color: transparent; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Position */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

/* Z-index */
.z-0 { z-index: var(--z-0); }
.z-10 { z-index: var(--z-10); }
.z-20 { z-index: var(--z-20); }
.z-30 { z-index: var(--z-30); }
.z-40 { z-index: var(--z-40); }
.z-50 { z-index: var(--z-50); }

/* Sizing */
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-fit { width: fit-content; }

.h-auto { height: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-fit { height: fit-content; }

.min-w-0 { min-width: 0; }
.min-w-full { min-width: 100%; }
.min-h-0 { min-height: 0; }
.min-h-full { min-height: 100%; }
.min-h-screen { min-height: 100vh; }

.max-w-none { max-width: none; }
.max-w-xs { max-width: var(--width-xs); }
.max-w-sm { max-width: var(--width-sm); }
.max-w-md { max-width: var(--width-md); }
.max-w-lg { max-width: var(--width-lg); }
.max-w-xl { max-width: var(--width-xl); }
.max-w-2xl { max-width: var(--width-2xl); }
.max-w-3xl { max-width: var(--width-3xl); }
.max-w-4xl { max-width: var(--width-4xl); }
.max-w-5xl { max-width: var(--width-5xl); }
.max-w-6xl { max-width: var(--width-6xl); }
.max-w-7xl { max-width: var(--width-7xl); }
.max-w-full { max-width: 100%; }

.max-h-full { max-height: 100%; }
.max-h-screen { max-height: 100vh; }

/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

/* Cursor */
.cursor-auto { cursor: auto; }
.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }
.cursor-wait { cursor: wait; }
.cursor-text { cursor: text; }
.cursor-move { cursor: move; }
.cursor-not-allowed { cursor: not-allowed; }

/* User select */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }
.select-auto { user-select: auto; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Border radius */
.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }
.rounded-sport { border-radius: var(--radius-sport); }

/* Box shadow */
.shadow-none { box-shadow: var(--shadow-none); }
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-sport { box-shadow: var(--shadow-sport); }
.shadow-inner { box-shadow: var(--shadow-inner); }

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 1200px) {
    .container {
        max-width: var(--width-6xl);
    }
    
    .grid-cols-5 { 
        grid-template-columns: repeat(3, 1fr); 
    }
    
    .grid-cols-4 { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* Grilles responsive */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-5,
    .grid-cols-6 {
        grid-template-columns: 1fr;
    }
    
    /* Flexbox responsive */
    .flex-between {
        flex-direction: column;
        gap: var(--space-4);
        align-items: stretch;
    }
    
    /* Typography responsive */
    .page-title {
        font-size: var(--text-3xl);
    }
    
    .section-title {
        font-size: var(--text-xl);
    }
    
    .stat-number {
        font-size: var(--text-3xl);
    }
    
    /* Cards responsive */
    .card,
    .stat-card,
    .player-card {
        padding: var(--space-4);
    }
    
    /* Table responsive */
    .table th,
    .table td {
        padding: var(--space-3);
        font-size: var(--text-xs);
    }
    
    /* Modal responsive */
    .modal {
        margin: var(--space-4);
        max-width: none;
        width: calc(100vw - 2rem);
    }
    
    .modal-footer {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    /* Toast responsive */
    .toast-container {
        top: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
        max-width: none;
    }
    
    /* Scoreboard responsive */
    .scoreboard-score {
        font-size: var(--text-4xl);
    }
    
    .scoreboard-teams {
        gap: var(--space-2);
    }
    
    /* Basketball court responsive */
    .basketball-court {
        height: 200px;
    }
}

@media (max-width: 480px) {
    /* Container responsive */
    .container {
        padding: 0 var(--space-3);
    }
    
    /* Typography trÃ¨s petit Ã©cran */
    .page-title {
        font-size: var(--text-2xl);
    }
    
    .stat-number {
        font-size: var(--text-2xl);
    }
    
    /* Cards trÃ¨s petit Ã©cran */
    .card,
    .stat-card {
        padding: var(--space-3);
    }
    
    /* Buttons responsive */
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }
    
    .btn-lg {
        padding: var(--space-3) var(--space-5);
        font-size: var(--text-sm);
    }
    
    /* Form responsive */
    .form-input {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }
    
    /* Player card responsive */
    .player-avatar {
        width: 60px;
        height: 60px;
        font-size: var(--text-lg);
    }
    
    .player-stats {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    /* Team stats responsive */
    .team-stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    /* Scoreboard responsive */
    .scoreboard {
        padding: var(--space-4);
    }
    
    .scoreboard-score {
        font-size: var(--text-3xl);
    }
    
    .scoreboard-team-name {
        font-size: var(--text-base);
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */
@media print {
    /* Masquer les Ã©lÃ©ments non imprimables */
    .theme-toggle,
    .nav-toggle,
    .modal-overlay,
    .toast-container,
    .btn:not(.btn-print),
    .dropdown-menu {
        display: none !important;
    }
    
    /* Styles d'impression */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .card,
    .stat-card,
    .table-container {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        break-inside: avoid;
        background: white !important;
    }
    
    .page-title,
    .section-title {
        color: black !important;
        border-bottom: 2px solid #000;
        padding-bottom: 0.5rem;
    }
    
    .table {
        border-collapse: collapse;
    }
    
    .table th,
    .table td {
        border: 1px solid #000 !important;
        background: white !important;
        color: black !important;
    }
}

/* ============================================================================
   ACCESSIBILITÃ‰
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-primary: #000;
        --border-secondary: #000;
        --shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
        --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.8);
    }
    
    .card,
    .stat-card,
    .btn {
        border-width: 2px;
    }
}

/* ============================================================================
   DARK THEME ADJUSTMENTS
   ============================================================================ */
[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2317BEBB' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

[data-theme="dark"] .table tbody tr:hover {
    background: linear-gradient(135deg, rgba(23, 190, 187, 0.1), rgba(25, 41, 53, 0.1));
}

[data-theme="dark"] .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cbd5e1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

[data-theme="dark"] .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2317BEBB'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

[data-theme="dark"] .tooltip-inner {
    background: var(--gray-100);
    color: var(--text-primary);
}

[data-theme="dark"] .loading-overlay {
    background: rgba(0, 0, 0, 0.8);
}

/* ============================================================================
   CUSTOM SCROLLBAR
   ============================================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: var(--radius);
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

::-webkit-scrollbar-corner {
    background: var(--bg-tertiary);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-secondary) var(--bg-tertiary);
}

/* ============================================================================
   Ã‰TAT LOADING POUR BOUTONS
   ============================================================================ */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================================================
   EFFET GLASSMORPHISM
   ============================================================================ */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   MASQUES ET GRADIENTS
   ============================================================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.gradient-bg-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
}

.gradient-bg-sport {
    background: linear-gradient(135deg, var(--orange-sport), var(--yellow-sport));
}

/* ============================================================================
   DIVIDERS
   ============================================================================ */
.divider {
    height: 1px;
    background: var(--border-primary);
    margin: var(--space-6) 0;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: var(--border-primary);
    margin: 0 var(--space-4);
}

.divider-gradient {
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}

.divider-text {
    position: relative;
    text-align: center;
    margin: var(--space-6) 0;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-primary);
}

.divider-text span {
    background: var(--bg-primary);
    padding: 0 var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   STEPS / STEPPER
   ============================================================================ */
.steps {
    display: flex;
    align-items: center;
    margin: var(--space-6) 0;
}

.step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 60px;
    height: 2px;
    background: var(--border-primary);
    transform: translateY(-1px);
}

.step.active:not(:last-child)::after,
.step.completed:not(:last-child)::after {
    background: var(--secondary-color);
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: var(--space-3);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step.active .step-icon {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.step.completed .step-icon {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.step.active .step-title {
    color: var(--secondary-color);
}

.step-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ============================================================================
   TIMELINE
   ============================================================================ */
.timeline {
    position: relative;
    padding: var(--space-6) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-primary);
}

.timeline-item {
    position: relative;
    padding-left: var(--space-12);
    margin-bottom: var(--space-8);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid var(--bg-primary);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
}

.timeline-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.timeline-time {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-3);
    font-weight: 500;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ============================================================================
   RATING / Ã‰TOILES
   ============================================================================ */
.rating {
    display: inline-flex;
    gap: var(--space-1);
}

.rating-star {
    color: var(--border-secondary);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: var(--transition);
}

.rating-star.active,
.rating-star:hover {
    color: var(--yellow-sport);
}

.rating-star.active {
    transform: scale(1.1);
}

.rating-readonly .rating-star {
    cursor: default;
}

/* ============================================================================
   AVATARS GROUPÃ‰S
   ============================================================================ */
.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group .avatar {
    margin-left: -8px;
    border: 2px solid var(--bg-primary);
    z-index: 1;
    position: relative;
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

.avatar-group .avatar:hover {
    z-index: 2;
    transform: scale(1.1);
}

.avatar-group-count {
    background: var(--bg-tertiary);
    border: 2px solid var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 700;
    margin-left: -8px;
}

/* ============================================================================
   CHATBOX / MESSAGES
   ============================================================================ */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chat-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.chat-message.own {
    flex-direction: row-reverse;
}

.chat-message-avatar {
    flex-shrink: 0;
}

.chat-message-content {
    background: var(--bg-tertiary);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    max-width: 70%;
    word-wrap: break-word;
}

.chat-message.own .chat-message-content {
    background: var(--secondary-color);
    color: var(--white);
}

.chat-message-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.chat-input {
    padding: var(--space-4);
    border-top: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    display: flex;
    gap: var(--space-3);
}

.chat-input input {
    flex: 1;
}

/* ============================================================================
   CALENDAR / CALENDRIER
   ============================================================================ */
.calendar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.calendar-header {
    padding: var(--space-4);
    background: var(--bg-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-primary);
}

.calendar-title {
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-nav {
    display: flex;
    gap: var(--space-2);
}

.calendar-nav button {
    background: none;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    padding: var(--space-2);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-nav button:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
    padding: var(--space-3);
    text-align: center;
    font-weight: 600;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.calendar-day {
    padding: var(--space-3);
    text-align: center;
    border-right: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    cursor: pointer;
    transition: var(--transition);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.calendar-day:hover {
    background: var(--bg-tertiary);
}

.calendar-day.today {
    background: var(--secondary-color);
    color: var(--white);
    font-weight: 700;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: var(--white);
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange-sport);
    transform: translateX(-50%);
}

/* ============================================================================
   PRICING CARDS
   ============================================================================ */
.pricing-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    position: relative;
    transition: var(--transition-bounce);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-2xl);
    border-color: var(--secondary-color);
}

.pricing-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.08);
}

.pricing-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--secondary-color);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.pricing-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.pricing-price {
    margin-bottom: var(--space-6);
}

.pricing-amount {
    font-size: var(--text-5xl);
    font-weight: 900;
    color: var(--secondary-color);
    line-height: var(--leading-none);
    font-family: var(--font-family-mono);
}

.pricing-period {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-8);
}

.pricing-feature {
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pricing-feature::before {
    content: 'âœ“';
    color: var(--success);
    font-weight: 700;
    font-size: var(--text-lg);
}

.pricing-feature.not-included {
    color: var(--text-muted);
    opacity: 0.6;
}

.pricing-feature.not-included::before {
    content: 'âœ—';
    color: var(--error);
}

/* ============================================================================
   TESTIMONIALS
   ============================================================================ */
.testimonial {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    position: relative;
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    font-size: var(--text-5xl);
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.testimonial-title {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ============================================================================
   FAQ / ACCORDION SPÃ‰CIALISÃ‰
   ============================================================================ */
.faq {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: var(--space-5);
    background: var(--bg-secondary);
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-icon {
    color: var(--secondary-color);
    transition: var(--transition);
}

.faq.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    border-top: 1px solid var(--border-primary);
    display: none;
}

.faq.open .faq-answer {
    display: block;
    animation: faq-expand 0.3s ease-out;
}

@keyframes faq-expand {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   FEATURE FLAGS / TOGGLES
   ============================================================================ */
.feature-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
}

.feature-info {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.feature-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.feature-switch {
    margin-left: var(--space-4);
}

/* ============================================================================
   STATS COMPARISON
   ============================================================================ */
.stats-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin: var(--space-6) 0;
}

.stats-team {
    text-align: center;
}

.stats-team-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-list {
    list-style: none;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-primary);
}

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

.stats-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-value {
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-family-mono);
}

.stats-winner {
    color: var(--secondary-color);
}

/* ============================================================================
   MATCH PREVIEW
   ============================================================================ */
.match-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    margin: var(--space-4) 0;
}

.match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.match-team {
    text-align: center;
}

.match-team-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-xl);
    font-weight: 900;
    margin: 0 auto var(--space-3);
    box-shadow: var(--shadow-sport);
}

.match-team-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.match-team-record {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-family: var(--font-family-mono);
}

.match-vs {
    font-size: var(--text-2xl);
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    border-top: 1px solid var(--border-primary);
}

.match-time {
    color: var(--text-secondary);
    font-weight: 600;
}

.match-venue {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ============================================================================
   LEADERBOARD
   ============================================================================ */
.leaderboard {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.leaderboard-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: var(--space-6);
    text-align: center;
}

.leaderboard-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.leaderboard-subtitle {
    opacity: 0.8;
    font-weight: 500;
}

.leaderboard-list {
    list-style: none;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-primary);
    transition: var(--transition);
}

.leaderboard-item:hover {
    background: var(--bg-tertiary);
}

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

.leaderboard-rank {
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--secondary-color);
    margin-right: var(--space-4);
    min-width: 40px;
    text-align: center;
    font-family: var(--font-family-mono);
}

.leaderboard-rank.first {
    color: #ffd700;
}

.leaderboard-rank.second {
    color: #c0c0c0;
}

.leaderboard-rank.third {
    color: #cd7f32;
}

.leaderboard-avatar {
    margin-right: var(--space-3);
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.leaderboard-team {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.leaderboard-score {
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--secondary-color);
    font-family: var(--font-family-mono);
}

/* ============================================================================
   FIN DU SYSTÃˆME CSS COMPLET OFFICIO
   ============================================================================ */



/* ============================================================================
   FIX PACK — Notifications & Modals (override at end of file)
   ============================================================================ */

/* Notifications container (safe defaults even if class isn't present) */
.notifications-card,
.card.notifications,
.card:has(.notification-item) {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notifications-list {
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: 420px;
  padding: var(--space-4);
}

.notifications-card .empty-state,
.card .empty-state {
  padding: var(--space-8);
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

/* --- Modal unification (support .modal and .modal-content markup) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-overlay.active { display: flex; }

.modal,
.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-2xl);
  width: min(520px, 92vw);
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transform: scale(0.98);
  transition: var(--transition);
}

.modal-overlay.active .modal,
.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-primary);
  background: var(--bg-tertiary);
}

.modal-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: var(--text-xl);
  padding: var(--space-2);
  border-radius: var(--radius);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  max-height: calc(90vh - 140px);
}

.modal-footer {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  padding: var(--space-6);
  border-top: 1px solid var(--border-primary);
  background: var(--bg-tertiary);
}

/* When modal is open, prevent background scroll (add .overlay-open to <body>) */
body.overlay-open {
  overflow: hidden;
}

/* Form spacing inside modals */
.modal-body .form-group {
  margin-bottom: var(--space-5);
}

/* Ensure any background widgets never appear above the modal */
.stat-card, .header, .nav, .card {
  z-index: 1;
  position: relative;
}
