/* Global Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #e0e0e0;
    --text-muted: #6c757d;
    --border-color: #2c2c2c;
    --dark-bg: #1a1a1a;
    --darker-bg: #141414;
    --hover-bg: rgba(255, 255, 255, 0.05);
    --background-color: #1a1a1a;
    --background-darker: #141414;
    --text-light: #ffffff;
    --text-gray: #6c757d;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #00bfff 100%);
    --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', 'Montserrat', 'Segoe UI', Arial, sans-serif;
    background-color: #23252a;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px; /* Pour compenser la navbar fixe */
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: #181a20;
    box-sizing: border-box;
    min-height: 80px;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
}

.logo-text {
    display: flex;
    align-items: center;
    font-family: 'Poppins', 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    gap: 0.2rem;
}

.logo-text .sport {
    color: #fff;
}

.logo-text .analytics {
    color: #4a90e2;
    margin: 0 0.1rem;
}

.logo-text .threeD {
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #4a90e2;
}

.login-btn, .register-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #4a90e2;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-left: 0.5rem;
    background: transparent;
    color: #4a90e2;
    box-sizing: border-box;
    display: inline-block;
}

.login-btn:hover {
    background: #4a90e2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(74,144,226,0.2);
}

.register-btn {
    background: #4a90e2;
    color: #fff;
    border: 2px solid #4a90e2;
}

.register-btn:hover {
    background: #357abd;
    border-color: #357abd;
    color: #fff;
    box-shadow: 0 2px 8px rgba(53,122,189,0.2);
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.content-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-color);
}

/* Cards */
.card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--darker-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

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

.btn-primary:hover {
    background: #0056b3;
}

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

.btn-secondary:hover {
    background: #545b62;
}

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

.btn-danger:hover {
    background: #c82333;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.table th,
.table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.table th {
    background: var(--darker-bg);
    color: var(--text-color);
    font-weight: 600;
}

.table tr:hover {
    background: var(--hover-bg);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

/* Utilities */
.text-center {
    text-align: center;
}

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

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .card {
        padding: 1rem;
    }

    .table {
        display: block;
        overflow-x: auto;
    }

    .sidebar {
        position: fixed;
        left: -250px;
        width: 250px;
        transition: left 0.3s;
        z-index: 2000;
    }
    .sidebar.active {
        left: 0;
    }
    .main-content {
        margin-left: 0 !important;
        width: 100vw;
        padding: 1rem;
    }
    .sidebar-toggle {
        display: block !important;
        position: fixed;
        top: 1.2rem;
        left: 1.2rem;
        z-index: 2100;
        background: #181a20;
        color: #fff;
        border: none;
        font-size: 2.2rem;
        border-radius: 8px;
        padding: 0.2em 0.7em;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        cursor: pointer;
        transition: background 0.2s;
    }
    .sidebar-toggle:active,
    .sidebar-toggle:focus {
        background: #22242a;
        outline: none;
    }
}

.sidebar-toggle {
    display: none;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 5%;
    position: relative;
    overflow: hidden;
    background: var(--hero-gradient, #181a20);
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,123,255,0.15) 0%, rgba(7,10,18,0.95) 100%);
}

.shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0,123,255,0.15), rgba(0,191,255,0.15));
    animation: float 20s infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -250px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -200px;
    animation-delay: -5s;
}

.shape-3 {
    width: 600px;
    height: 600px;
    bottom: 50%;
    right: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeIn 1s ease-out;
    margin-top: 1.5rem;
}

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

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    display: block;
    background: linear-gradient(45deg, #ffffff, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 8s infinite;
}

@keyframes gradientText {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.hero-description {
    font-size: 1.4rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-container {
    position: relative;
    display: inline-block;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 2.5rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.4);
}

.cta-button i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.cta-button:hover i {
    transform: translateX(5px);
}

.cta-highlight {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover + .cta-highlight {
    opacity: 1;
}

/* Features Section */
.features {
    padding: 5rem 5%;
    background-color: var(--background-darker);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
}

/* Footer */
footer {
    background-color: var(--background-darker);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links a {
        margin-left: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1.5rem;
    }
    
    .footer-links a {
        margin: 0 1rem;
    }
}

/* --- Ajouté pour un responsive optimal sur mobile --- */
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    padding: 0.5rem 1rem;
    min-height: 60px;
  }
  .logo-text {
    font-size: 1.2rem;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: flex-start;
  }
  .main-content {
    padding: 0.5rem;
  }
  .card {
    padding: 0.5rem;
  }
  .features {
    padding: 2rem 2%;
  }
  .features h2 {
    font-size: 1.3rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-links a {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .cta-button {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
  .features-grid {
    gap: 1rem;
  }
  .feature-card {
    padding: 1rem;
  }
  .table th, .table td {
    padding: 0.4rem;
    font-size: 0.9rem;
  }
} 