/* ========================================
   🎓 SKILLS SECTION V2 - Experience IT Theme
   ======================================== */

.skills-section-v2 {
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* ==========================================
   ✨ BACKGROUND ANIMÉ (identique à l'accueil)
   ========================================== */

/* Grille animée */
.skills-section-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Gradient radial central */
.skills-section-v2::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.08) 0%,
    rgba(123, 44, 191, 0.06) 40%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { 
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Overlay léger */
.skills-section-v2 > .container {
  position: relative;
  z-index: 10;
}

/* ==========================================
   📋 SECTION HEADER
   ========================================== */

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, #00d4ff, #7b2cbf);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   🎯 SKILLS NAVIGATOR
   ========================================== */

.skills-navigator {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 70px;
  padding: 25px;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 60px;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(0, 212, 255, 0.05);
  position: relative;
  z-index: 10;
}

.nav-skill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-skill-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00d4ff, #7b2cbf);
  border-radius: 50px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-skill-btn:hover,
.nav-skill-btn.active {
  border-color: #00d4ff;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 
    0 10px 30px rgba(0, 212, 255, 0.4),
    0 0 20px rgba(0, 212, 255, 0.3);
}

.nav-skill-btn.active::before {
  transform: translate(-50%, -50%) scale(1);
}

.nav-skill-btn i {
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ==========================================
   💳 SKILLS CARDS
   ========================================== */

.skills-masonry {
  margin-bottom: 90px;
  position: relative;
  z-index: 10;
}

.skill-item {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: scale(1);
}

.skill-item.hidden {
  opacity: 0;
  transform: scale(0.85);
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.skill-card-v2 {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 24px;
  padding: 35px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(0, 212, 255, 0.03);
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(0, 212, 255, 0.15) 20%,
    transparent 40%
  );
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
  animation: rotateGlow 8s linear infinite;
}

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

.skill-card-v2:hover .card-glow {
  opacity: 1;
}

/* Top gradient line */
.skill-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00d4ff, #7b2cbf, #00d4ff);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.skill-card-v2:hover {
  transform: translateY(-10px);
  border-color: #00d4ff;
  box-shadow: 
    0 20px 60px rgba(0, 212, 255, 0.3),
    0 0 40px rgba(0, 212, 255, 0.2),
    inset 0 0 40px rgba(0, 212, 255, 0.05);
}

.skill-card-v2:hover::before {
  transform: scaleX(1);
  animation: gradientSlide 2s ease infinite;
}

@keyframes gradientSlide {
  to { background-position: 200% 0; }
}

/* ==========================================
   🎨 SKILL HEADER
   ========================================== */

.skill-header-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.skill-icon-v2 {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.skill-icon-v2::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  padding: 3px;
  background: linear-gradient(135deg, #00d4ff, #7b2cbf);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card-v2:hover .skill-icon-v2::after {
  opacity: 1;
}

/* Couleurs par catégorie */
.skill-icon-v2.systems {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 212, 255, 0.1));
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.skill-icon-v2.network {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.25), rgba(0, 255, 170, 0.1));
  color: #00ffaa;
  text-shadow: 0 0 20px rgba(0, 255, 170, 0.6);
}

.skill-icon-v2.devops {
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.25), rgba(123, 44, 191, 0.1));
  color: #7b2cbf;
  text-shadow: 0 0 20px rgba(123, 44, 191, 0.6);
}

.skill-icon-v2.security {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.25), rgba(255, 107, 107, 0.1));
  color: #ff6b6b;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
}

.skill-icon-v2.dev {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.skill-card-v2:hover .skill-icon-v2 {
  transform: rotate(360deg) scale(1.15);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

/* ==========================================
   🏆 LEVEL BADGE
   ========================================== */

.skill-level {
  position: relative;
}

.level-badge {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.level-badge.expert {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.2), rgba(0, 255, 170, 0.1));
  color: #00ffaa;
  border: 2px solid rgba(0, 255, 170, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

.level-badge.avance {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 212, 255, 0.1));
  color: #00d4ff;
  border: 2px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.level-badge.intermediaire {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
  color: #ffd700;
  border: 2px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.level-badge.debutant {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ==========================================
   📝 SKILL CONTENT
   ========================================== */

.skill-name-v2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.skill-description-v2 {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   📊 SKILL PROGRESS
   ========================================== */

.skill-progress-v2 {
  margin-bottom: 25px;
  position: relative;
}

.progress-bar-v2 {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.progress-bar-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00d4ff, #7b2cbf);
  border-radius: 10px;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.progress-bar-v2.animated::before {
  width: var(--progress-width);
}

.progress-value-v2 {
  position: absolute;
  right: 0;
  top: -30px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #00d4ff;
  text-shadow: 
    0 0 10px rgba(0, 212, 255, 0.8),
    0 2px 5px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   🏷️ SKILL TAGS
   ========================================== */

.skill-tags-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-v2 {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tag-v2:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  color: #00d4ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* ==========================================
   🏅 CERTIFICATIONS SECTION
   ========================================== */

.certifications-section {
  padding: 60px 50px;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(0, 212, 255, 0.25);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 40px rgba(0, 212, 255, 0.05);
}

.certifications-section::before {
  content: '';
  position: absolute;
  top: -100%;
  right: -50%;
  width: 150%;
  height: 150%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(0, 212, 255, 0.08) 50%,
    transparent 100%
  );
  animation: certGlow 10s linear infinite;
  pointer-events: none;
}

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

.certifications-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 50px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.certifications-title i {
  font-size: 1.8rem;
  color: #00d4ff;
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8));
}

.cert-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 35px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cert-card:hover {
  transform: translateY(-8px);
  border-color: #00d4ff;
  box-shadow: 
    0 15px 45px rgba(0, 212, 255, 0.3),
    0 0 30px rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.08);
}

.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00d4ff, #7b2cbf);
  border-radius: 50%;
  font-size: 2.2rem;
  color: #ffffff;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 25px rgba(0, 212, 255, 0.4),
    0 0 30px rgba(0, 212, 255, 0.3);
}

.cert-card:hover .cert-icon {
  transform: rotateY(360deg) scale(1.1);
  box-shadow: 
    0 12px 35px rgba(0, 212, 255, 0.6),
    0 0 40px rgba(0, 212, 255, 0.5);
}

.cert-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cert-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   📱 RESPONSIVE
   ========================================== */

@media (max-width: 991.98px) {
  .skills-section-v2 {
    padding: 70px 0;
  }

  .section-title h2 {
    font-size: 2.5rem;
  }

  .skills-navigator {
    padding: 20px;
    max-width: 100%;
  }

  .nav-skill-btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .skill-card-v2 {
    padding: 30px;
  }
}

@media (max-width: 767.98px) {
  .skills-section-v2 {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .skills-navigator {
    border-radius: 25px;
    padding: 15px;
    gap: 10px;
  }

  .nav-skill-btn span {
    display: none;
  }

  .nav-skill-btn {
    padding: 12px;
    min-width: 48px;
    justify-content: center;
  }

  .skill-card-v2 {
    padding: 25px;
  }

  .skill-icon-v2 {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
  }

  .skill-name-v2 {
    font-size: 1.3rem;
  }

  .certifications-section {
    padding: 40px 30px;
  }

  .certifications-title {
    font-size: 1.7rem;
    margin-bottom: 35px;
  }

  .cert-icon {
    width: 70px;
    height: 70px;
    font-size: 1.9rem;
  }
}

@media (max-width: 575.98px) {
  .skills-section-v2 {
    padding: 50px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .skills-navigator {
    gap: 8px;
    padding: 12px;
  }

  .nav-skill-btn {
    padding: 10px;
  }

  .skill-card-v2 {
    padding: 20px;
  }

  .skill-name-v2 {
    font-size: 1.2rem;
  }

  .skill-description-v2 {
    font-size: 0.9rem;
  }

  .tag-v2 {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .certifications-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 10px;
  }

  .cert-card h4 {
    font-size: 1.1rem;
  }
}

/* ==========================================
   ♿ ACCESSIBILITÉ
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  .skills-section-v2::before,
  .skills-section-v2::after,
  .card-glow,
  .certifications-section::before {
    animation: none;
  }
}

/* ==========================================
   ✨ ANIMATIONS D'APPARITION
   ========================================== */

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

.skill-item {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }
