* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0f;
  color: #e0e0e5;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

a { text-decoration: none; color: inherit; }

/* Loader plein écran */
#loader {
  position: fixed;
  inset: 0;
  background: #0f0f14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1.5s ease, visibility 1.5s;
}

/* Spinner rond */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.1);
  border-top: 6px solid #8a2be2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Animation disparition */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}


/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s ease;
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.92);
  box-shadow: 0 4px 25px rgba(0,0,0,0.4);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.accent { color: #6366f1; }

.nav a {
  margin-left: 2.2rem;
  font-weight: 500;
  color: #c7c7d4;
  transition: color 0.3s;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: white;
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: #6366f1;
  transition: width 0.35s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f1a 0%, #0a0a0f 100%);
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(
    90deg,
    #00f5ff,
    #8a2be2,
    #ff00c8,
    #00f5ff
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 6s ease infinite, float 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

/* Animation du gradient */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Petit effet flottant */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Sous-titre */
.subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
}

/*
.gradient-text {
  font-size: clamp(3.8rem, 12vw, 9rem);
  font-weight: 400;
  background: linear-gradient(90deg, #a5b4fc, #c084fc, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  line-height: 0.95;
  margin-bottom: 0.8rem;
}*/

.hero h2 {
  font-size: 2.4rem;
  font-weight: 500;
  color: #a0a0c0;
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: 1.35rem;
  color: #9ca3af;
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.35s ease;
  cursor: pointer;
}

.btn.primary {
  background: #6366f1;
  color: white;
  border: none;
}

.btn.primary:hover {
  background: #4f46e5;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

.btn.secondary {
  background: transparent;
  border: 1.5px solid #6366f1;
  color: #c7c7d4;
}

.btn.secondary:hover {
  background: rgba(99, 102, 241, 0.1);
  color: white;
  transform: translateY(-3px);
}

.btn.large {
  padding: 1.2rem 2.8rem;
  font-size: 1.2rem;
}

/* Shapes background */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  filter: blur(80px);
}

.shape1 { width: 600px; height: 600px; top: -15%; left: -15%; }
.shape2 { width: 500px; height: 500px; bottom: -10%; right: -20%; background: rgba(192, 132, 252, 0.08); }
.shape3 { width: 400px; height: 400px; top: 40%; right: 10%; background: rgba(244, 114, 182, 0.07); }

/* Sections */
.section {
  padding: 12rem 0 10rem;
}

.section-title {
  font-size: 3.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(90deg, #e0e0e5, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 1.15rem;
  color: #c0c0d0;
  margin-bottom: 1.6rem;
}

.highlight {
  color: #a5b4fc;
  font-weight: 500;
  font-style: italic;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.skill {
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Projects */
.projects-section {
  background: rgba(15, 15, 26, 0.5);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.2rem;
}

.project-card {
  background: rgba(20, 20, 35, 0.6);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: #6366f1;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-icon {
  font-size: 2.6rem;
  color: #a5b4fc;
  margin-bottom: 1.3rem;
}

.project-card h3 {
  font-size: 1.55rem;
  margin-bottom: 1rem;
  color: white;
}

.project-card p {
  color: #a0a0c0;
  margin-bottom: 1.5rem;
}

.project-card neriondiscord {
    color: #c8ff00;
    text-decoration: none;
    font-size: 0.9rem;
}

.project-card neriondiscord:hover {
    text-decoration: underline;
}

.discordnerion-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 300px;
}

.project-nerionmc-logo {
    width: 50px;        /* largeur du logo */
    height: 50px;       /* hauteur du logo */
    object-fit: contain; /* garde les proportions de l’image */
    display: block;
    margin: 0 auto 10px auto; /* centre le logo et ajoute un petit espace */
    border-radius: 10px; /* optionnel, coins arrondis */
}


.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tags span {
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  background: rgba(30, 30, 50, 0.8);
  border-radius: 50px;
  color: #c7d2fe;
}

/* Contact */
.contact-section {
  text-align: center;
  background: linear-gradient(to bottom, #0a0a0f, #11111a);
}

.contact-text {
  font-size: 1.3rem;
  color: #b0b0d0;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  padding: 4rem 0 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0a0a0f;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  font-size: 1.6rem;
  color: #a0a0c0;
  margin: 0 1.2rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: #6366f1;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .hero h2 { font-size: 2rem; }
  .section { padding: 8rem 0 6rem; }
  .section-title { font-size: 2.6rem; }
}

@media (max-width: 600px) {
  .hero-buttons { flex-direction: column; }
  .nav { display: none; } 
}