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

body {
  background-color: #0d0e15;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Cadre principal (violet néon) */
.portfolio-container {
  width: 100%;
  max-width: 1100px;
  background-color: #0d0e15;
  border-radius: 12px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  border: 2px solid #5b21b6;
  box-shadow: 0 0 20px rgba(91, 33, 182, 0.6),
              inset 0 0 20px rgba(91, 33, 182, 0.3);
}

.main-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.8),
               0 0 20px rgba(168, 85, 247, 0.4);
  text-align: center;
}

/* Conteneur des sections */
.projects-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Sections (Projets École / Projets Jeux) */
.category {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.category + .category {
  padding-top: 40px;
  border-top: 1px dashed rgba(168, 85, 247, 0.4);
}

/* Titres de sections : violet comme le titre et le cadre du portfolio */
.category-title {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 1px;
  color: #a855f7;
  padding: 10px 36px;
  border: 2px solid #5b21b6;
  border-radius: 999px;
  background-color: rgba(91, 33, 182, 0.12);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.8),
               0 0 20px rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 15px rgba(91, 33, 182, 0.6),
              inset 0 0 12px rgba(91, 33, 182, 0.3);
}

/* Carte de projet (rouge par défaut = Street Racer Bros) */
.project-card {
  --c: #ff2a4b;
  --c-rgb: 255, 42, 75;
  width: 100%;
  max-width: 850px;
  background-color: #0b0c10;
  border-radius: 12px;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid var(--c);
  box-shadow: 0 0 15px rgba(var(--c-rgb), 0.5),
              inset 0 0 15px rgba(var(--c-rgb), 0.2);
}

/* Neon Strike : vert clair néon */
.project-card.green {
  --c: #7dff5a;
  --c-rgb: 125, 255, 90;
}

/* Projets école : bleu cyan néon */
.project-card.cyan {
  --c: #22d3ee;
  --c-rgb: 34, 211, 238;
}

.project-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--c);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(var(--c-rgb), 0.8),
               0 0 25px rgba(var(--c-rgb), 0.5);
}

.project-subtitle {
  font-size: 1.1rem;
  color: #a0a5b5;
  margin-bottom: 35px;
}

.play-btn {
  display: inline-block;
  text-decoration: none;
  background-color: var(--c);
  color: #ffffff;
  font-weight: bold;
  font-size: 1.3rem;
  padding: 14px 45px;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(var(--c-rgb), 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 30px;
}

.green .play-btn,
.cyan .play-btn {
  color: #0d0e15;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(var(--c-rgb), 1);
}

.play-btn:active {
  transform: scale(0.98);
}

.play-btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.project-controls {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Mobile */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .portfolio-container {
    padding: 28px 12px;
    gap: 28px;
  }

  .main-title {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.3rem;
    padding: 8px 24px;
  }

  .project-card {
    padding: 32px 18px;
  }

  .project-title {
    font-size: 1.8rem;
  }

  .project-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .play-btn {
    font-size: 1.15rem;
    padding: 12px 38px;
  }
}