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

/* ===== BASE ===== */
body {
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  padding: 0;
  color: #ffffff;
  text-align: center;
  overflow-x: hidden;
  background: radial-gradient(circle at top, #060606 0%, #000000 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ===== Canvas animé ===== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ===== Titres néon doux ===== */
.neon-title {
  font-size: 3em;
  font-weight: 700;
  text-shadow:
    0 0 5px #00eaff,
    0 0 10px rgba(255, 0, 230, 0.7);
  animation: flicker 4s infinite alternate;
}

.neon-subtitle {
  color: #b5eaff;
  font-size: 1.2em;
  text-shadow: 0 0 4px #00eaff;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

/* ===== Barre de recherche ===== */
.search {
  margin: 30px 0;
}

.search input {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid #00fff7;
  border-radius: 10px;
  padding: 10px 15px;
  color: #fff;
  font-size: 1em;
  width: 240px;
  text-align: center;
  transition: all 0.3s ease;
}

.search input:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(255, 0, 230, 0.5);
}

.search button {
  background: linear-gradient(45deg, #00fff7, #ff00e6);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  color: #000;
  font-weight: 700;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 0, 230, 0.5);
}

/* ===== Section projets ===== */
.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0 80px;
  max-width: 1000px;
}

/* Animation d’apparition douce */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Cartes ===== */
.card {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin: 15px;
  padding: 20px;
  width: 250px;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
  animation: fadeIn 0.8s ease both;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(255, 0, 230, 0.4), 0 0 30px rgba(0, 255, 255, 0.3);
}

.card h3 {
  font-size: 1.3em;
  color: #7ef9ff;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95em;
  color: #d0d0d0;
  min-height: 50px;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  color: #ff80ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card a:hover {
  text-shadow: 0 0 6px #00fff7, 0 0 12px #ff00e6;
}

/* ===== Stats repo ===== */
.repo-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.repo-stats span {
  font-size: 1.05em;
  color: #b3eaff;
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.repo-stats span:hover {
  color: #ffb8ff;
}

/* ===== Footer ===== */
footer {
  padding: 20px;
  font-size: 0.9em;
  color: #aaa;
  background: rgba(0, 0, 0, 0.3);
  width: 100%;
  text-align: center;
}
