* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #070b23;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
}

/* Animated background stars */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

.star:nth-child(1) {
  top: 20%;
  left: 20%;
  width: 2px;
  height: 2px;
  animation-delay: 0s;
}
.star:nth-child(2) {
  top: 30%;
  left: 80%;
  width: 3px;
  height: 3px;
  animation-delay: 1s;
}
.star:nth-child(3) {
  top: 50%;
  left: 10%;
  width: 1px;
  height: 1px;
  animation-delay: 2s;
}
.star:nth-child(4) {
  top: 70%;
  left: 70%;
  width: 2px;
  height: 2px;
  animation-delay: 0.5s;
}
.star:nth-child(5) {
  top: 10%;
  left: 50%;
  width: 3px;
  height: 3px;
  animation-delay: 1.5s;
}
.star:nth-child(6) {
  top: 80%;
  left: 30%;
  width: 2px;
  height: 2px;
  animation-delay: 2.5s;
}
.star:nth-child(7) {
  top: 40%;
  left: 90%;
  width: 1px;
  height: 1px;
  animation-delay: 0.8s;
}
.star:nth-child(8) {
  top: 60%;
  left: 5%;
  width: 3px;
  height: 3px;
  animation-delay: 1.8s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  padding-top: calc(1rem + 4px) !important;
  padding-bottom: calc(1rem + 4px) !important;
  background: rgba(7, 11, 35, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #c084fc;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4a4feb, #9d48e6);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Main content */
.container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* Hero section with animated profile */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem;
  position: relative;
  overflow: hidden; /* <--- masque tout débordement */
  z-index: 999;
  padding-top: 100px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

.hero-text {
  z-index: 10;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #c084fc;
  text-shadow: 0 0 5px #7f5af0, 0 0 5px #1e293b;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
  }
  to {
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.6));
  }
}

.hero-text .subtitle {
  font-size: 1.5rem;
  color: #667eea;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-text p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 2rem;
  line-height: 1.8;
}



/* Animated profile section - MISE À JOUR */
.profile-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-container {
  position: relative;
  width: 350px;
  height: 350px;
}

.profile-ring {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: rotate 10s linear infinite;
}

.profile-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  border-width: 3px;
}

.profile-ring:nth-child(2) {
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  border-width: 2px;
  animation-duration: 15s;
  animation-direction: reverse;
}

.profile-ring:nth-child(3) {
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  border-width: 1px;
  animation-duration: 20s;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.profile-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
  z-index: 5;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  transition: all 0.3s ease;
  /* Petit effet de couleur qui s'harmonise avec le thème */
}

.profile-image:hover img {
  transform: scale(1.05);
}

/* Effet de glow subtil autour de l'image */
.profile-image::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-color: #714f97;
  border-radius: 50%;
  z-index: -1;
}

/* Responsive pour l'image */
@media (max-width: 768px) {
  .profile-container {
    width: 250px;
    height: 250px;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .profile-image img {
    /* L'image s'adapte automatiquement */
  }
}

/* Skills section */
.skills-section {
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #c084fc;
  text-shadow: 0 0 5px #7f5af0, 0 0 5px #1e293b;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-icon {
  font-size: 2rem;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.skill-name {
  color: #ccc;
  font-weight: 500;
}

.skill-level {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-bar {
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 2px;
  transition: width 2s ease;
}

.skill-percentage {
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 35px;
  text-align: right;
}

/* Journey section */
.journey-section {
  padding: 4rem 2rem;
}

.journey-container {
  max-width: 1000px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #667eea, #764ba2, #f093fb);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -3rem;
  top: 2rem;
  width: 15px;
  height: 15px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.timeline-year {
  color: #f093fb;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-title {
  color: #667eea;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: #ccc;
  line-height: 1.6;
}

/* Values section */
.values-section {
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.2);
}

.values-container {
  max-width: 1200px;
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-title {
  font-size: 1.3rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.value-description {
  color: #ccc;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
  background: linear-gradient(45deg, #764ba2, #f093fb);
}

/* CTA Section */
.cta-section {
  padding-left: 4rem;
  padding-right: 4rem;
  padding-top: 4rem;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #c084fc;
  text-shadow: 0 0 5px #7f5af0, 0 0 5px #1e293b;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ccc;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 110; /* au-dessus du menu */
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #c084fc;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation croix */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .hero-text .subtitle {
    font-size: 1.2rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .profile-container {
    width: 250px;
    height: 250px;
    margin-bottom: 25px;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0px; /* hauteur du header */
    right: -100%;
    height: 100vh;
    width: 250px;
    background: rgba(7, 11, 35, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Place les liens en haut du container */
    gap: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 80px; /* Ajoute un espace sous le header */
  }

  .nav-links.active {
    right: 0;
  }

  .profile-image {
    width: 200px;
    height: 200px;
    font-size: 6rem;
  }

  .skills-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .section-title {
    font-size: 2.1rem;
    margin-bottom: 2rem;
  }

  .skills-grid {
    gap: 1.5rem;
  }

  .skill-category {
    padding: 1.2rem;
  }

  .skill-category h3 {
    font-size: 1.3rem;
  }

  .skill-icon {
    font-size: 2rem;
  }

  .journey-section {
    padding-top: 2rem;
    padding-bottom: 0rem;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline-item::before {
    content: none; /* pas de point du tout */
  }

  /* Values section */
  .values-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .values-grid {
    gap: 1rem;
    margin-top: 1rem;
  }

  .value-card {
    padding: 1.3rem;
  }

  .value-icon {
    font-size: 2.5rem;
  }

  .value-title {
    font-size: 1.3rem;
  }

  .value-description {
    line-height: 1.4;
  }

  .cta-section {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
    text-align: center;
  }

  .cta-section h2 {
    font-size: 2.1rem;
  }

  .cta-section p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

