  @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :root {
    --primary: #ff6b35;
    --secondary: #004e89;
    --accent: #ffd23f;
    --dark: #0d1321;
    --darker: #0a0f1c;
    --light: #f4f3ee;
    --gray: #748cab;
  }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(0, 78, 137, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 40% 60%, rgba(255, 210, 63, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
  }

  .header {
    background: rgba(13, 19, 33, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 107, 53, 0.2);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
  }

  .logo::after {
    content: '●';
    color: var(--accent);
    animation: blink 2s infinite;
    margin-left: 8px;
  }

  @keyframes blink {

    0%,
    50% {
      opacity: 1;
    }

    51%,
    100% {
      opacity: 0;
    }
  }

  .status-badge {
background: linear-gradient(135deg, #ff7136, #3e3e3e);
    border: 1px solid var(--accent);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
  }

  .status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 63, 0.3), transparent);
    animation: scan 3s infinite;
  }

  @keyframes scan {
    0% {
      left: -100%;
    }

    100% {
      left: 100%;
    }
  }

  /* NOUVELLE NAVBAR */
  .navbar {
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.15);
    padding: 1rem 0;
    position: sticky;
    top: 98px;
    /* Juste en dessous du header */
    z-index: 99;
  }

  .navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .nav-links {
    display: flex;
    gap: 0.5rem;
    background: rgba(13, 19, 33, 0.6);
    padding: 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
  }

  .nav-link {
    text-decoration: none;
    padding: 1rem 0.8rem;
    border-radius: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid transparent;
  }

  .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
  }

  .nav-link:hover {
    color: var(--light);
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
  }

  .nav-link:hover::before {
    left: 100%;
  }

  .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    transform: translateY(-3px);
  }

  .nav-link.active::before {
    display: none;
  }

  /* Game Icons */

  /*
  .nav-link::after {
    content: '';
    margin-left: 8px;
    font-size: 1.1rem;
  }

   .nav-link[href*="https://playercount"]::after {
    content: '🏠';
  }

  .nav-link[href*="valorant"]::after {
    content: '🔫';
  }

  .nav-link[href*="league-of-legends"]::after {
    content: '⚔️';
  }

  .nav-link[href*="destiny"]::after {
    content: '🚀';
  }

  .nav-link[href*="wow"]::after {
    content: '🗡️';
  }
    */
  /* Responsive navbar */
  @media (max-width: 768px) {
    .navbar {
      top: 90px;
    }

    .nav-links {
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.3rem;
    }

    .nav-link {
      padding: 0.8rem 1.2rem;
      font-size: 0.8rem;
      min-width: 140px;
      text-align: center;
    }
  }

  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
  }

  .hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
  }

  .hero h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  .hero p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
  }

  .stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .stat-card {
    background: linear-gradient(135deg, rgba(13, 19, 33, 0.8), rgba(10, 15, 28, 0.9));
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }

    .footer a {
            color: white;
            text-decoration: none;
        }
        

  .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
  }

  .stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
  }

  .stat-card:hover::before {
    transform: scaleX(1);
  }

  .stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark);
  }

  .stat-trend {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
  }

  .stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
  }

  .stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 210, 63, 0.3);
  }

  .stat-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
  }

  .chart-section {
    background: linear-gradient(135deg, rgba(13, 19, 33, 0.9), rgba(10, 15, 28, 0.95));
    border: 1px solid rgba(0, 78, 137, 0.3);
    border-radius: 25px;
    padding: 3rem;
    margin-bottom: 4rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
  }

  .chart-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(45deg, transparent 40%, rgba(255, 107, 53, 0.03) 50%, transparent 60%),
      linear-gradient(-45deg, transparent 40%, rgba(0, 78, 137, 0.03) 50%, transparent 60%);
    pointer-events: none;
  }

  .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
  }

  .chart-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  .time-controls {
    display: flex;
    gap: 0.5rem;
    background: rgba(13, 19, 33, 0.5);
    padding: 0.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
  }

  .time-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
  }

  .time-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  }

  .time-btn:hover:not(.active) {
    color: var(--light);
    background: rgba(255, 107, 53, 0.1);
  }

  .chart {
    position: relative;
    height: 500px;
    margin: 2rem 0;
    z-index: 1;
  }

  .chart-canvas {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    cursor: crosshair;
  }

  /* Tooltip simple et efficace */
  .tooltip {
    position: absolute;
    background: rgba(13, 19, 33, 0.95);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--light);
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
  }

  .tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .tooltip-date {
    color: var(--accent);
    font-weight: bold;
  }

  .tooltip-value {
    color: var(--primary);
    font-weight: bold;
    margin-top: 2px;
  }

  .insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
  }

  .insight-card {
    background: linear-gradient(135deg, rgba(0, 78, 137, 0.1), rgba(255, 107, 53, 0.1));
    border: 1px solid rgba(255, 210, 63, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    transition: all 0.3s ease;
  }

  .insight-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
  }

  .insight-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .insight-text {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
  }

  .footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    margin-top: 4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--gray);
    background: rgba(13, 19, 33, 0.3);
  }

  @media (max-width: 768px) {
    .container {
      padding: 2rem 1rem;
    }

    .chart-header {
      flex-direction: column;
      align-items: stretch;
    }

    .time-controls {
      justify-content: space-between;
    }

    .time-btn {
      flex: 1;
      padding: 0.8rem 1rem;
    }

    .stat-card {
      padding: 2rem;
    }
  }

  /* Animations d'entrée */
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(60px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .stat-card {
    animation: slideInUp 0.8s ease-out forwards;
  }

  .stat-card:nth-child(1) {
    animation-delay: 0.1s;
  }

  .stat-card:nth-child(2) {
    animation-delay: 0.2s;
  }

  .stat-card:nth-child(3) {
    animation-delay: 0.3s;
  }

  .stat-card:nth-child(4) {
    animation-delay: 0.4s;
  }

  .chart-section {
    animation: slideInUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
  }



   .phoenix-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .nebula-hero {
            text-align: center;
            margin-bottom: 50px;
            padding: 40px 0;
        }

        .quantum-brand {
            font-size: 3.5rem;
            font-weight: bold;
            margin-bottom: 10px;
            background: linear-gradient(45deg, #ff6b6b, #ffd93d);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }

        .cosmic-tagline {
            font-size: 1.3rem;
            opacity: 0.9;
            margin-bottom: 30px;
        }

        .arcade-matrix {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin: 60px 0;
        }

        .nexus-tile {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(15px);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .nexus-tile:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
            border-color: rgba(255, 255, 255, 0.4);
            text-decoration: none;
            color: inherit;
        }

        .nexus-tile::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            transition: left 0.5s;
        }

        .nexus-tile:hover::before {
            left: 100%;
        }

        .pixel-emblem {
            font-size: 4rem;
            margin-bottom: 20px;
            display: block;
        }

        .realm-name {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .mystic-desc {
            opacity: 0.8;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .echo-chamber {
            text-align: center;
            margin: 50px 0;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 30px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .echo-chamber h3 {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: #ffd93d;
        }

        .echo-chamber p {
            font-size: 1.1rem;
            opacity: 0.9;
            line-height: 1.6;
        }

        .vortex-rankings {
            margin-top: 60px;
            text-align: center;
        }

        .stellar-headline {
            font-size: 2.2rem;
            margin-bottom: 30px;
            color: #ffd93d;
        }

        .crown-collection {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .throne-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 20px;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .dynasty-rank {
            font-size: 2rem;
            font-weight: bold;
            color: #ff6b6b;
        }

        .legend-title {
            font-size: 1.2rem;
            margin: 10px 0;
        }

        .spirit-count {
            font-size: 1.5rem;
            font-weight: bold;
            color: #4ade80;
        }

        @media (max-width: 768px) {
            .arcade-matrix {
                grid-template-columns: 1fr;
            }
            
            .quantum-brand {
                font-size: 2.5rem;
            }
            
            .phoenix-wrapper {
                padding: 10px;
            }
        }