:root {
  --primary: #ffffff;
  --secondary: #000000;
  --accent: #ffffff;
  --text-light: #f0f0f0;
  --text-white: #ffffff;
  --bg-dark: #0a0a0a;
  --border-color: rgba(255, 255, 255, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
  font-display: swap;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000000;
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}


/* ===== FOND PARTICULES ===== */
#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== BARRE PROGRESSION ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #ffffff;
  z-index: 1000;
  width: 0%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 999;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-white);
  animation: slideInLeft 0.6s ease-out;
}

.logo span {
  color: var(--primary);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  user-select: none;
  -webkit-user-select: none;
}

.burger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(10px, 10px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  margin-top: 60px;
  z-index: 2;
  background: #000000;
}

.eye-logo {
  width: 600px;
  max-width: 90vw;
  margin-bottom: 3rem;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.eye-logo svg {
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  user-select: none;
  -webkit-user-select: none;
}

.eye-logo .pupil,
.eye-logo .iris {
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  color: var(--text-white);
  animation: slideInDown 0.8s ease-out;
  user-select: none;
  -webkit-user-select: none;
}

.highlight {
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-content h2 {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: var(--primary);
  margin-bottom: 1.5rem;
  animation: slideInUp 0.8s ease-out 0.2s both;
  font-weight: 400;
  letter-spacing: 1px;
  user-select: none;
  -webkit-user-select: none;
}

.visit-counter {
  position: absolute;
  left: 180px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeIn 0.6s ease-in;
}

.visit-counter #counter {
  font-weight: bold;
  color: #00ff88;
  text-shadow: 0 0 10px #00ff88;
}

@media (max-width: 768px) {
  .visit-counter {
    font-size: 12px;
    padding: 6px 12px;
    right: 10px;
  }
}

.typed {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-out 0.4s both;
  letter-spacing: 0.5px;
  min-height: 1.5rem;
  font-weight: 300;
  user-select: none;
  -webkit-user-select: none;
}

.typed::after {
  content: '';
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.btn-glow {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
  animation: slideInUp 0.8s ease-out 0.6s both;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
  background: #000000;
  color: #ffffff;
}

.btn-glow:active {
  transform: translateY(-1px);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTIONS ===== */
section {
  position: relative;
  padding: 5rem 2rem;
  z-index: 2;
  scroll-margin-top: 60px;
  background: #000000;
  user-select: none;
  -webkit-user-select: none;
}

section h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 3rem;
  text-align: center;
  color: #ffffff;
  animation: slideInDown 0.8s ease-out;
  text-transform: uppercase;
  letter-spacing: 2px;
  user-select: none;
  -webkit-user-select: none;
}

/* ===== À PROPOS ===== */
#about {
  background: #000000;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  text-align: center;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  animation: fadeIn 1s ease-out;
  user-select: text;
  -webkit-user-select: text;
}

/* ===== SERVICES ===== */
#services {
  background: #000000;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease-out forwards;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: #ffffff;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.service-icon svg {
  width: 40px;
  height: 40px;
}

.service-card:hover .service-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 1rem;
  user-select: text;
  -webkit-user-select: text;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
  user-select: text;
  -webkit-user-select: text;
}

/* ===== SERVICE LINK (En savoir plus) — NOUVEAU DESIGN ===== */
.service-link,
.service-card a {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.6rem 1.5rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.service-link:hover,
.service-card a:hover {
  background: #ffffff;
  color: #000000;
  transform: translateX(5px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* ===== EXPERIENCE ===== */
#experience {
  background: #000000;
}

.experience-container {
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.section-subtitle {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: left;
  text-transform: capitalize;
  letter-spacing: 1px;
  animation: slideInLeft 0.8s ease-out;
  user-select: text;
  -webkit-user-select: text;
}

/* ===== SKILLS GRID ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out forwards;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.15s; }
.skill-card:nth-child(3) { animation-delay: 0.2s; }
.skill-card:nth-child(4) { animation-delay: 0.25s; }
.skill-card:nth-child(5) { animation-delay: 0.3s; }
.skill-card:nth-child(6) { animation-delay: 0.35s; }
.skill-card:nth-child(7) { animation-delay: 0.4s; }
.skill-card:nth-child(8) { animation-delay: 0.45s; }
.skill-card:nth-child(9) { animation-delay: 0.5s; }
.skill-card:nth-child(10) { animation-delay: 0.55s; }

.skill-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  transform: translateY(-5px);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-header h3 {
  font-size: 1.1rem;
  color: #ffffff;
  user-select: text;
  -webkit-user-select: text;
}

.level {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 600;
  user-select: none;
  -webkit-user-select: none;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  user-select: text;
  -webkit-user-select: text;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.6));
  border-radius: 10px;
  transition: width 0.6s ease;
}

.skill-card:hover .skill-fill {
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* ===== FRAMEWORKS GRID ===== */
.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.framework-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out forwards;
  user-select: none;
  -webkit-user-select: none;
}

.framework-badge:nth-child(1) { animation-delay: 0.1s; }
.framework-badge:nth-child(2) { animation-delay: 0.15s; }
.framework-badge:nth-child(3) { animation-delay: 0.2s; }
.framework-badge:nth-child(4) { animation-delay: 0.25s; }
.framework-badge:nth-child(5) { animation-delay: 0.3s; }
.framework-badge:nth-child(6) { animation-delay: 0.35s; }
.framework-badge:nth-child(7) { animation-delay: 0.4s; }
.framework-badge:nth-child(8) { animation-delay: 0.45s; }
.framework-badge:nth-child(9) { animation-delay: 0.5s; }
.framework-badge:nth-child(10) { animation-delay: 0.55s; }
.framework-badge:nth-child(11) { animation-delay: 0.6s; }
.framework-badge:nth-child(12) { animation-delay: 0.65s; }

.framework-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* ===== TIMELINE EXPERIENCE ===== */
.timeline-exp {
  position: relative;
  padding-left: 2rem;
}

.timeline-exp::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.3));
}

.exp-item {
  position: relative;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out forwards;
}

.exp-item::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 50%;
  left: -9px;
  top: 5px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.exp-item:nth-child(1) { animation-delay: 0.1s; }
.exp-item:nth-child(2) { animation-delay: 0.2s; }
.exp-item:nth-child(3) { animation-delay: 0.3s; }
.exp-item:nth-child(4) { animation-delay: 0.4s; }

.exp-date {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  user-select: text;
  -webkit-user-select: text;
}

.exp-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.exp-content:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  transform: translateX(10px);
}

.exp-content h3 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  user-select: text;
  -webkit-user-select: text;
}

.exp-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  user-select: text;
  -webkit-user-select: text;
}

/* ===== CONTACT ===== */
#contact {
  background: #000000;
  text-align: center;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-out;
  user-select: text;
  -webkit-user-select: text;
}

/* ===== FOOTER ===== */
footer {
  background: #000000;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
  z-index: 2;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

footer p {
  margin-bottom: 1rem;
  user-select: text;
  -webkit-user-select: text;
}

.social {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  user-select: none;
  -webkit-user-select: none;
}

.social a:hover {
  opacity: 0.7;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {
  header {
    height: 50px;
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  nav {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    flex-direction: column;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    justify-content: flex-start;
    padding-top: 2rem;
    gap: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  nav.active {
    transform: translateX(0);
  }

  .burger {
    display: flex;
  }

  section {
    padding: 3rem 1rem;
  }

  section h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
  }

  .hero {
    min-height: auto;
    margin-top: 50px;
  }

  .eye-logo {
    width: 350px;
    margin-bottom: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .frameworks-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .section-subtitle {
    font-size: 1.3rem;
  }

  nav a {
    font-size: 1rem;
  }

  footer {
    padding: 1.5rem 1rem;
  }

  .social {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .eye-logo {
    width: 250px;
  }

  .btn-glow {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .frameworks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}