@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');
    @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&display=swap');

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

    :root {
      --primary: #ff00ea;
      --primary-dark: #4f46e5;
      --secondary: #21aafa;
      --accent: #c377f5;
      --bg-dark: #0f172a;
      --bg-darker: #020617;
      --bg-card: #1e293b;
      --text-primary: #f8fafc;
      --text-secondary: #cbd5e1;
      --text-muted: #94a3b8;
      --border: #334155;
      --shadow: rgba(0, 0, 0, 0.5);
      --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      --gradient-2: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg-darker);
      color: var(--text-primary);
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* Navigation */
    .nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      background: rgba(15, 23, 42, 0.8);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 1rem 0;
      transition: all 0.3s ease;
    }

    .nav.scrolled {
      background: rgba(15, 23, 42, 0.95);
      box-shadow: 0 4px 20px var(--shadow);
    }

    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: 900;
      font-family: 'Montserrat', sans-serif;
      background: var(--gradient-1);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: -1px;
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--text-secondary);
      text-decoration: none;
      font-weight: 500;
      transition: color 0.3s ease;
      position: relative;
    }

    .nav-links a:after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--gradient-1);
      transition: width 0.3s ease;
    }

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

    .nav-links a:hover:after {
      width: 100%;
    }

      /* Navigation Mobile */
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.3s ease;
    z-index: 999;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.mobile-active a {
    font-size: 1.2rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }

  .mobile-menu-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
  }

  .mobile-menu-btn.active {
    transform: rotate(90deg);
  }

  /* Responsive */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
    }

    .mobile-menu-btn {
      display: flex;
    }

    .hero {
      padding-top: 6rem;
    }

    .about-content {
      grid-template-columns: 1fr;
    }

    .stats-container {
      gap: 2rem;
    }

    .social-card {
      flex-direction: column;
      text-align: center;
    }

    .social-card:hover {
      transform: translateY(-10px) translateX(0);
    }
  }

    /* Hero Section */
    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 8rem 2rem 4rem;
      overflow: hidden;
    }

    .hero:before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
      pointer-events: none;
    }

    .hero-content {
      max-width: 1200px;
      margin: 0 auto;
      text-align: center;
      z-index: 1;
    }

    .profile-image-wrapper {
      width: 200px;
      height: 200px;
      margin: 0 auto 2rem;
      position: relative;
      animation: float 6s ease-in-out infinite;
    }

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

    .profile-image-wrapper:before {
      content: '';
      position: absolute;
      inset: -4px;
      background: var(--gradient-1);
      border-radius: 50%;
      z-index: -1;
      animation: rotate 8s linear infinite;
    }

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

    .profile-image {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid var(--bg-darker);
    }

    .hero-title {
      font-size: clamp(2.5rem, 8vw, 5rem);
      font-weight: 900;
      font-family: 'Montserrat', sans-serif;
      margin-bottom: 1rem;
      background: var(--gradient-1);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      letter-spacing: -2px;
    }

    .hero-subtitle {
      font-size: clamp(1.2rem, 3vw, 1.5rem);
      color: var(--text-secondary);
      margin-bottom: 1rem;
      font-weight: 300;
    }

    .hero-description {
      font-size: 1.1rem;
      color: var(--text-muted);
      max-width: 600px;
      margin: 0 auto 2rem;
    }

    .stats-container {
      display: flex;
      gap: 2rem;
      justify-content: center;
      margin: 2rem 0;
      flex-wrap: nowrap;
    }

    .stat {
      text-align: center;
      min-width: 100px;
      flex-shrink: 0;
    }

    .stat-number {
      font-size: 2rem;
      font-weight: 900;
      background: var(--gradient-2);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      display: block;
      white-space: nowrap;
    }

    .stat-label {
      color: var(--text-muted);
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      white-space: nowrap;
    }

    .cta-buttons {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 2rem;
    }

    /* Responsive pour mobile */
    @media (max-width: 768px) {
      .stats-container {
        gap: 1.5rem;
      }
      
      .stat {
        min-width: 80px;
      }
      
      .stat-number {
        font-size: 1.5rem;
      }
      
      .stat-label {
        font-size: 0.75rem;
      }
    }

    /* Pour très petits écrans, passer en 2 colonnes */
    @media (max-width: 480px) {
      .stats-container {
        gap: 1rem;
        max-width: 50%;
        margin: 2rem auto;
      }
      
      .stat {
        flex: 0 0 calc(50% - 0.5rem);
      }
    }

    .btn {
      padding: 1rem 2rem;
      border-radius: 50px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      cursor: pointer;
      border: none;
      font-size: 1rem;
    }

    .btn-primary {
      background: var(--gradient-1);
      color: white;
      box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    }

    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
    }

    .btn-secondary {
      background: var(--bg-card);
      color: var(--text-primary);
      border: 2px solid var(--border);
    }

    .btn-secondary:hover {
      background: var(--bg-dark);
      border-color: var(--primary);
      transform: translateY(-3px);
    }

    /* YouTube Banner Section - Version Améliorée */
      .youtube-banner {
      padding: 7rem 1rem 2rem 1rem; /* Décalage top pour nav + bottom */
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      box-sizing: border-box;
    }

    .banner-container {
      width: 100%;
      max-width: 2000px;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 10px 40px rgba(0,0,0,0.2);
      display: flex;
      justify-content: center;
      align-items: center;
      aspect-ratio: 16/5; /* Ratio YouTube classique */
      transition: transform 0.5s ease;
    }

    .banner-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: transform 0.5s ease;
      transform: scale(1.05);
      object-position: 20% 0%;
    }

    /* --------------------------
      Responsive adjustments
    -------------------------- */
    @media (max-width: 1024px) {
      .youtube-banner {
        padding: 4rem 1rem 1.5rem 1rem;
      }

      .banner-container {
        aspect-ratio: 16/5;
        transform: scale(1.04);
      }

      .banner-image {
        transform: scale(1.03);
      }
    }

    @media (max-width: 768px) {
      .youtube-banner {
        padding: 3.5rem 1rem 1rem 1rem;
      }

      .banner-container {
        aspect-ratio: 16/6; /* Légèrement plus haut pour mobile */
        border-radius: 16px;
        transform: scale(1.03);
      }

      .banner-image {
        transform: scale(1.02);
      }
    }

    @media (max-width: 480px) {
      .youtube-banner {
        padding: 3rem 0.5rem 0.5rem 0.5rem;
      }

      .banner-container {
        aspect-ratio: 16/7; /* Plus vertical pour petits écrans */
        border-radius: 12px;
        transform: scale(1.02);
      }

      .banner-image {
        transform: scale(1.02);
      }
    }


    /* Section Styles */
    section {
      padding: 5rem 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-title {
      font-size: clamp(2rem, 5vw, 3rem);
      font-weight: 900;
      font-family: 'Montserrat', sans-serif;
      margin-bottom: 3rem;
      text-align: center;
      position: relative;
    }

    .section-title:after {
      content: '';
      display: block;
      width: 80px;
      height: 4px;
      background: var(--gradient-1);
      margin: 1rem auto 0;
      border-radius: 2px;
    }

    /* About Section */
    .about-content {
      display: grid;
      grid-template-columns: 1fr; /* une seule colonne, texte au-dessus de la grille */
      gap: 2.5rem; /* espace entre texte et grille */
      align-items: start; /* alignement en haut */
    }

    /* Texte centré */
    .about-text {
      text-align: center;
      max-width: 800px;
      margin: 0 auto;
    }
    
    /* Texte centré et responsive */
    .about-text p {
      color: var(--text-secondary);
      margin-bottom: 1rem;
      font-size: 1.1rem;
    }

    .about-text strong {
      color: var(--primary);
    }

    /* Responsive : texte au-dessus sur tablettes et mobiles */
    @media (max-width: 1024px) {
      .about-content {
        grid-template-columns: 1fr; /* une seule colonne */
        gap: 2rem;
      }

      .about-text {
        text-align: center; /* centre le texte */
        max-width: 800px;
        margin: 0 auto;
      }
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 1rem;
    }

    .skill-badge {
      background: var(--bg-card);
      padding: 1rem;
      border-radius: 12px;
      text-align: center;
      border: 1px solid var(--border);
      transition: all 0.3s ease;
    }

    .skill-badge:hover {
      transform: translateY(-5px);
      border-color: var(--primary);
      box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    }

    .skill-icon {
      font-size: 2rem;
      margin-bottom: 0.5rem;
    }

    .skill-name {
      font-weight: 600;
      color: var(--text-primary);
      white-space: normal; /* permet le retour à la ligne */
      line-height: 1.3;   /* espace entre les lignes */
      text-align: center;
      
    }

    /* Games Grid */
    .games-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 2rem;
    }

  .draw-card {
      background: var(--bg-card);
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--border);
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      cursor: pointer;
      text-decoration: none;
      display: block;
      position: relative;
      transform-style: preserve-3d;
    }

     .draw-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
      border-color: var(--primary);
    }

    
    .draw-card::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 ease;
      z-index: 1;
      pointer-events: none;
    }

    .draw-card:hover::before {
      left: 100%;
    }

    .draw-image {
      width: 100%;
      height: 400px;
      object-fit: cover;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      transition: transform 0.4s ease;
       transform: scale(1.2);
    }

    .draw-card:hover .draw-image {
      transform: scale(1.16);
    }


    .game-card {
      background: var(--bg-card);
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--border);
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      cursor: pointer;
      text-decoration: none;
      display: block;
      position: relative;
      transform-style: preserve-3d;
    }

    .game-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
      border-color: var(--primary);
    }

    .game-card::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 ease;
      z-index: 1;
      pointer-events: none;
    }

    .game-card:hover::before {
      left: 100%;
    }

    .game-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      transition: transform 0.4s ease;
    }

    .game-card:hover .game-image {
      transform: scale(1.08);
    }

    .game-content {
      padding: 1.5rem;
      position: relative;
    }

    .game-title {
      font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: var(--text-primary);
      transition: color 0.3s ease;
    }

    .game-card:hover .game-title {
      color: var(--primary);
    }

    .game-platform {
      display: inline-block;
      padding: 0.25rem 0.75rem;
      background: rgba(99, 102, 241, 0.2);
      color: var(--primary);
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 1rem;
      transition: all 0.3s ease;
    }

    .game-card:hover .game-platform {
      background: var(--primary);
      color: white;
      transform: translateX(5px);
    }

    @media (hover: none) {
      .game-card:active {
        transform: scale(0.98);
      }
    }

    @media (hover: none) {
      .draw-card:active {
        transform: scale(0.98);
      }
    }

    @media (max-width: 768px) {
      .games-grid {
    
        grid-template-columns: repeat(2, 1fr);
        
        gap: 1.5rem;
      }
      .draw-card {
       width: 100%;
       max-width: 100%;
      }

    }

  @media (max-width: 500px) {
    .games-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.6rem;
    }

    .game-card {
      border-radius: 10px;
    }

    .game-image {
      max-height: 90px;
    }

    .game-content {
      padding: 0.5rem;
    }

    .game-title {
      font-size: 0.75rem;
      line-height: 1.2;
      margin-bottom: 0.3rem;
    }

    .game-platform {
      font-size: 0.55rem;
      padding: 0.15rem 0.4rem;
      margin-bottom: 0;
    }
  }

  @media (max-width: 500px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .draw-card {
    border-radius: 10px;
  }

  .draw-image {
    height: 120px;
    object-fit: cover;
  }
}

    /* Social Links */
    .social-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }

    .social-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2rem;
      display: flex;
      align-items: center;
      gap: 1.5rem;
      text-decoration: none;
      transition: all 0.3s ease;
    }

    .social-card:hover {
      transform: translateX(10px);
      border-color: var(--primary);
      box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    }

    .social-icon {
      width: 60px;
      height: 60px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .social-icon img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 8px;
    }

    .social-info h3 {
      color: var(--text-primary);
      margin-bottom: 0.25rem;
      font-size: 1.2rem;
    }

    .social-info p {
      color: var(--text-muted);
      font-size: 0.9rem;
    }

    /* Contact Section */ 
     .contact-content {
      text-align: center;
      max-width: 800px;
      margin: 0 auto;
    }

    .contact-intro {
      color: var(--text-secondary);
      font-size: 1.1rem;
      margin-bottom: 3rem;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .contact-card {
      background: var(--bg-card);
      border: 2px solid var(--border);
      border-radius: 20px;
      padding: 2rem;
      transition: all 0.3s ease;
      text-align: center;
    }

    .contact-card:hover {
      transform: translateY(-10px);
      border-color: var(--primary);
      box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    }

    .contact-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
      display: block;
    }

    .contact-label {
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      margin-bottom: 0.5rem;
      font-weight: 600;
    }

    .contact-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 1rem;
    }

    .contact-description {
      color: var(--text-secondary);
      font-size: 0.95rem;
      margin-bottom: 1.5rem;
      line-height: 1.6;
    }

    .contact-email {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1.5rem;
      background: var(--gradient-1);
      color: white;
      text-decoration: none;
      border-radius: 50px;
      font-weight: 600;
      font-size: 0.95rem;
      transition: all 0.3s ease;
      box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    }

    .contact-email:hover {
      transform: scale(1.05);
      box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    }

    .contact-email.secondary {
      background: var(--bg-dark);
      border: 2px solid var(--primary);
      color: var(--text-primary);
      box-shadow: none;
    }

    .contact-email.secondary:hover {
      background: rgba(99, 102, 241, 0.1);
      border-color: var(--secondary);
    }

    .contact-note {
      color: var(--text-muted);
      margin-top: 3rem;
      font-size: 0.95rem;
    }

    .divider {
      height: 1px;
      background: linear-gradient(to right, transparent, var(--border), transparent);
      margin: 2rem 0;
    }

    @media (max-width: 768px) {
      .contact-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Footer */
    footer {
      background: var(--bg-darker);
      border-top: 1px solid var(--border);
      padding: 3rem 2rem;
      text-align: center;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-links {
      display: flex;
      gap: 2rem;
      justify-content: center;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    .footer-links a {
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.3s ease;
    }

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

    .copyright {
      color: var(--text-muted);
      font-size: 0.9rem;
    }

    .copyright a {
      color: var(--primary);
      text-decoration: none;
    }

    /* Animations */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .fade-in {
      animation: fadeIn 0.8s ease forwards;
    }

    /* Scroll Reveal */
    .scroll-reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease;
    }

    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }

    /* Responsive */
    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .mobile-menu-btn {
        display: block;
      }

      .hero {
        padding-top: 6rem;
      }

      .about-content {
        grid-template-columns: 1fr;
      }

      .stats-container {
        gap: 2rem;
      }

      .social-card {
        flex-direction: column;
        text-align: center;
      }

      .social-card:hover {
        transform: translateY(-10px) translateX(0);
      }
    }

    /* Loading Animation */
    .loading-screen {
      position: fixed;
      inset: 0;
      background: var(--bg-darker);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      transition: opacity 0.5s ease;
    }

    .loading-screen.hidden {
      opacity: 0;
      pointer-events: none;
    }

    .loader {
      width: 50px;
      height: 50px;
      border: 4px solid var(--border);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }

     /* Game Jam Grid */
    .gamejam-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .gamejam-card {
      background: var(--bg-card);
      border-radius: 20px;
      overflow: hidden;
      border: 2px solid var(--border);
      transition: all 0.3s ease;
      position: relative;
    }

    .gamejam-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
      border-color: var(--primary);
    }

    /* Status Badge */
    .jam-status {
      position: absolute;
      top: 1rem;
      right: 1rem;
      padding: 0.5rem 1rem;
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      z-index: 10;
      backdrop-filter: blur(10px);
    }

    .jam-status.live {
      background: rgba(16, 185, 129, 0.2);
      color: var(--success);
      border: 2px solid var(--success);
      animation: pulse 2s ease-in-out infinite;
    }

    .jam-status.upcoming {
      background: rgba(245, 158, 11, 0.2);
      color: var(--warning);
      border: 2px solid var(--warning);
    }

    .jam-status.ended {
      background: rgba(148, 163, 184, 0.2);
      color: var(--text-muted);
      border: 2px solid var(--text-muted);
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.6; }
    }

    /* Game jam */
    .jam-header {
      position: relative;
      height: 180px;
      background: var(--gradient-1);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .jam-header::before {
      content: '🎮';
      font-size: 5rem;
      opacity: 0.3;
      position: absolute;
    }

    .jam-icon {
      font-size: 4rem;
      z-index: 1;
    }

    /* Content */
    .jam-content {
      padding: 1.5rem;
    }

    .jam-title {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: var(--text-primary);
    }

    .jam-theme {
      color: var(--primary);
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 1rem;
      font-style: italic;
    }

    .jam-description {
      color: var(--text-secondary);
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }

    /* Dates */
    .jam-dates {
      display: flex;
      gap: 1rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }

    .date-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    .date-icon {
      font-size: 1.2rem;
    }

    /* Countdown */
    .jam-countdown {
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid var(--primary);
      border-radius: 12px;
      padding: 1rem;
      margin-bottom: 1rem;
    }

    .countdown-label {
      font-size: 0.85rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 0.5rem;
    }

    .countdown-timer {
      display: flex;
      gap: 1rem;
      justify-content: space-around;
    }

    .countdown-unit {
      text-align: center;
    }

    .countdown-value {
      font-size: 1.8rem;
      font-weight: 900;
      background: var(--gradient-1);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      display: block;
      font-family: 'Montserrat', sans-serif;
    }

    .countdown-unit-label {
      font-size: 0.75rem;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    /* Actions */
    .jam-actions {
      display: flex;
      gap: 0.75rem;
    }

    .jam-btn {
      flex: 1;
      padding: 0.75rem 1rem;
      border-radius: 12px;
      font-weight: 600;
      text-decoration: none;
      text-align: center;
      transition: all 0.3s ease;
      font-size: 0.9rem;
      border: none;
      cursor: pointer;
    }

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

    .jam-btn-primary:hover {
      transform: scale(1.05);
      box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    }

    .jam-btn-secondary {
      background: var(--bg-dark);
      color: var(--text-primary);
      border: 2px solid var(--border);
    }

    .jam-btn-secondary:hover {
      border-color: var(--primary);
      background: rgba(99, 102, 241, 0.1);
    }

    /* Empty State */
    .empty-state {
      text-align: center;
      padding: 4rem 2rem;
      color: var(--text-muted);
      grid-column: 1 / -1;
    }

    .empty-icon {
      font-size: 4rem;
      margin-bottom: 1rem;
      opacity: 0.5;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .gamejam-grid {
        grid-template-columns: 1fr;
      }

      .countdown-timer {
        gap: 0.5rem;
      }

      .countdown-value {
        font-size: 1.5rem;
      }
    }

      /* Modal pour Game Jam */
    .jam-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1000;
      animation: fadeIn 0.3s ease;
    }

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

    .jam-modal-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(10px);
    }

    .jam-modal-content {
      position: relative;
      background: var(--bg-card);
      border: 2px solid var(--border);
      border-radius: 24px;
      max-width: 700px;
      width: 90%;
      max-height: 85vh;
      overflow-y: auto;
      z-index: 1001;
      animation: slideUp 0.4s ease;
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    }

    .jam-modal-close {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      background: rgba(255, 255, 255, 0.1);
      border: 2px solid var(--border);
      color: var(--text-primary);
      font-size: 2rem;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    .jam-modal-close:hover {
      background: var(--primary);
      border-color: var(--primary);
      transform: rotate(90deg);
    }

    .jam-modal-header {
      position: relative;
      height: 200px;
      background: var(--gradient-1);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      border-radius: 22px 22px 0 0;
    }

    .jam-modal-header::before {
      content: '🎮';
      font-size: 8rem;
      opacity: 0.2;
      position: absolute;
    }

    .jam-modal-icon {
      font-size: 5rem;
      z-index: 1;
      animation: float 3s ease-in-out infinite;
    }

    .jam-modal-status {
      position: absolute;
      top: 1.5rem;
      left: 1.5rem;
      padding: 0.6rem 1.2rem;
      border-radius: 50px;
      font-size: 0.9rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      backdrop-filter: blur(10px);
    }

    /* Status Badge pour Modal */
    .jam-modal-status.live {
      background: rgba(16, 185, 129, 0.2);
      color: var(--success);
      border: 2px solid var(--success);
      animation: pulse 2s ease-in-out infinite;
    }

    .jam-modal-status.upcoming {
      background: rgba(245, 158, 11, 0.2);
      color: var(--warning);
      border: 2px solid var(--warning);
    }

    .jam-modal-status.ended {
      background: rgba(148, 163, 184, 0.2);
      color: var(--text-muted);
      border: 2px solid var(--text-muted);
    }

    .jam-modal-body {
      padding: 2rem;
    }

    .jam-modal-title {
      font-size: 2rem;
      font-weight: 800;
      margin-bottom: 0.5rem;
      color: var(--text-primary);
    }

    .jam-modal-theme {
      color: var(--primary);
      font-size: 1.2rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      font-style: italic;
    }

    .jam-modal-description {
      color: var(--text-secondary);
      font-size: 1rem;
      line-height: 1.8;
      margin-bottom: 2rem;
    }

    .jam-modal-info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .jam-info-item {
      background: rgba(99, 102, 241, 0.05);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.2rem;
    }

    .jam-info-label {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.85rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 0.5rem;
    }

    .jam-info-value {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text-primary);
    }

    .jam-modal-countdown {
      background: rgba(99, 102, 241, 0.1);
      border: 2px solid var(--primary);
      border-radius: 16px;
      padding: 1.5rem;
      margin-bottom: 2rem;
    }

    .jam-modal-actions {
      display: flex;
      gap: 1rem;
      margin-top: 2rem;
    }

    .jam-modal-btn {
      flex: 1;
      padding: 1rem 1.5rem;
      border-radius: 12px;
      font-weight: 700;
      text-decoration: none;
      text-align: center;
      transition: all 0.3s ease;
      font-size: 1rem;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    .jam-modal-btn-primary {
      background: var(--gradient-1);
      color: white;
    }

    .jam-modal-btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    }

    .jam-modal-btn-secondary {
      background: var(--bg-dark);
      color: var(--text-primary);
      border: 2px solid var(--border);
    }

    .jam-modal-btn-secondary:hover {
      border-color: var(--primary);
      background: rgba(99, 102, 241, 0.1);
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

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

    /* Responsive Modal */
    @media (max-width: 768px) {
      .jam-modal-content {
        width: 95%;
        max-height: 90vh;
      }

      .jam-modal-body {
        padding: 1.5rem;
      }

      .jam-modal-title {
        font-size: 1.5rem;
      }

      .jam-modal-info-grid {
        grid-template-columns: 1fr;
      }

      .jam-modal-actions {
        flex-direction: column;
      }
    }

    /* Empêcher le scroll du body quand le modal est ouvert */
    body.modal-open {
      overflow: hidden;
    }


    /* =========================
   TIMELINE TREE
========================= */

.timeline-section {
  position: relative;
  padding: 6rem 2rem;
}

.tree {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 0;
}

/* Tronc principal */
.tree::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    var(--primary),
    var(--secondary)
  );
  border-radius: 10px;
  box-shadow: 0 0 20px var(--primary);
}

/* Naissance */
.tree-start {
  position: relative;
  text-align: center;
  margin-bottom: 5rem;
}

.tree-circle {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 0 20px var(--primary);
}

.tree-label {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Chaque projet */
.tree-item {
  position: relative;
  width: 50%;
  margin-bottom: 5rem;
}

.tree-item.left {
  left: 0;
  padding-right: 4rem;
}

.tree-item.right {
  left: 50%;
  padding-left: 4rem;
}

/* Branche */
.branch {
  position: absolute;
  top: 40px;
  width: 60px;
  height: 4px;
  background: var(--secondary);
}

.left .branch {
  right: 0;
}

.right .branch {
  left: 0;
}

/* Carte */
.tree-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: 0.3s ease;
  position: relative;
}

.tree-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99,102,241,0.25);
}

.tree-date {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: rgba(99,102,241,0.2);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.tree-card h3 {
  margin-bottom: 0.7rem;
  color: var(--text-primary);
}

.tree-card p {
  color: var(--text-secondary);
}

/* Point sur le tronc */
.tree-item::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
  z-index: 2;
}

.tree-item.left::before {
  right: -10px;
}

.tree-item.right::before {
  left: -10px;
}

/* Responsive */
@media (max-width: 768px) {

  .tree::before {
    left: 20px;
  }

  .tree-item {
    width: 100%;
    padding-left: 4rem;
    padding-right: 0;
    left: 0 !important;
  }

  .tree-item.left,
  .tree-item.right {
    padding-left: 4rem;
  }

  .tree-item::before {
    left: 10px !important;
  }

  .branch {
    left: 20px !important;
    width: 30px;
  }
}