/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0a0a;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* Curseur personnalisé - Dot avec traînée scintillante */
.cursor-light {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff0000;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  box-shadow: 
    0 0 10px #ff0000,
    0 0 20px #ff0000,
    0 0 30px rgba(255, 0, 0, 0.5);
}

/* Particules de traînée scintillante */
.cursor-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff0000;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #ff0000;
  animation: sparkle 0.8s ease-out forwards;
}

@keyframes sparkle {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
}

/* Animation au clic */
.cursor-light.clicking {
  width: 8px;
  height: 8px;
  background: #ff3333;
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
header {
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

h1.glitch {
  font-size: 5rem;
  font-weight: 900;
  color: #ff0000;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
  animation: glitchAnimation 3s infinite;
  text-shadow: 
    0 0 10px #ff0000,
    0 0 20px #ff0000,
    0 0 30px #ff0000;
}

@keyframes glitchAnimation {
  0%, 90%, 100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-2px, 2px);
  }
  94% {
    transform: translate(2px, -2px);
  }
  96% {
    transform: translate(-2px, -2px);
  }
  98% {
    transform: translate(2px, 2px);
  }
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #00ffff;
  clip: rect(24px, 550px, 90px, 0);
  animation: glitchBefore 3s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #ff00ff;
  clip: rect(85px, 550px, 140px, 0);
  animation: glitchAfter 2.5s infinite linear alternate-reverse;
}

@keyframes glitchBefore {
  0% {
    clip: rect(65px, 9999px, 119px, 0);
  }
  25% {
    clip: rect(32px, 9999px, 87px, 0);
  }
  50% {
    clip: rect(93px, 9999px, 48px, 0);
  }
  75% {
    clip: rect(15px, 9999px, 134px, 0);
  }
  100% {
    clip: rect(71px, 9999px, 26px, 0);
  }
}

@keyframes glitchAfter {
  0% {
    clip: rect(85px, 9999px, 140px, 0);
  }
  25% {
    clip: rect(12px, 9999px, 98px, 0);
  }
  50% {
    clip: rect(51px, 9999px, 23px, 0);
  }
  75% {
    clip: rect(106px, 9999px, 67px, 0);
  }
  100% {
    clip: rect(44px, 9999px, 111px, 0);
  }
}

.subtitle {
  font-size: 1.5rem;
  color: #888;
  margin-top: 20px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Sections */
section {
  margin: 80px 0;
  padding: 40px;
  background: rgba(20, 20, 20, 0.5);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

section:hover {
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.2);
}

h2 {
  font-size: 2.5rem;
  color: #ff0000;
  margin-bottom: 30px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about p {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  color: #ccc;
}

/* Grille de compétences */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-card {
  background: rgba(30, 30, 30, 0.8);
  padding: 30px;
  border-radius: 10px;
  border: 2px solid rgba(255, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 0, 0, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: #ff0000;
  box-shadow: 0 10px 40px rgba(255, 0, 0, 0.3);
}

.skill-icon {
  font-size: 3rem;
  font-weight: bold;
  color: #ff0000;
  margin-bottom: 20px;
  font-family: 'Courier New', monospace;
}

.skill-card h3 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.skill-card p {
  color: #999;
  line-height: 1.6;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 0, 0, 0.2);
}

footer p {
  color: #666;
  font-size: 0.9rem;
}

/* Section Contact */
.contact {
  text-align: center;
}

.contact-intro {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 40px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.discord-btn {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  border: 2px solid rgba(88, 101, 242, 0.3);
  color: white;
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 10px;
  cursor: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.5);
  border-color: rgba(88, 101, 242, 0.6);
}

.discord-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.discord-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.copy-message {
  color: #4CAF50;
  font-weight: bold;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 10px;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 0, 0, 0.2);
}

footer p {
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1.glitch {
    font-size: 3rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .cursor-light {
    width: 300px;
    height: 300px;
  }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #ff0000;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #cc0000;
}