/* Custom Cursor */
html {
  cursor: none;
}


.cursor {
  /* Remplacer le style existant */
  width: 10px;
  height: 20px;
  background-color: #00ff41;
  mix-blend-mode: difference;
  animation: matrixBlink 0.5s infinite alternate;
}

@keyframes matrixBlink {
  0% { opacity: 0.8; }
  100% { opacity: 0.2; }
}
.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(108, 92, 231, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-active .cursor {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: rgba(108, 92, 231, 0.8);
}

.cursor-active .cursor-follower {
  width: 20px;
  height: 20px;
  border-color: rgba(108, 92, 231, 0.8);
}


/* Dark Theme Styles */
    :root {
      --primary: #6c5ce7;
      --primary-dark: #5649c0;
      --secondary: #00cec9;
      --dark: #1a1a2e;
      --darker: #16213e;
      --darkest: #0f0f1a;
      --light: #e2e2e2;
      --lighter: #f1f1f1;
      --gray: #4a4a68;
      --success: #00b894;
      --danger: #d63031;
      --warning: #fdcb6e;
      --info: #0984e3;
    }

    /* Reset et styles de base */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Poppins', sans-serif;
      line-height: 1.6;
      color: var(--light);
      background-color: var(--dark);
      overflow-x: hidden;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    /* Préchargeur */
    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: var(--darkest);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.5s ease;
    }

    #preloader.loaded {
      opacity: 0;
      pointer-events: none;
    }

    .spinner {
      width: 70px;
      height: 70px;
      position: relative;
      margin-bottom: 20px;
    }

    .double-bounce1, .double-bounce2 {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background-color: var(--primary);
      opacity: 0.6;
      position: absolute;
      top: 0;
      left: 0;
      animation: bounce 2.0s infinite ease-in-out;
    }

    .double-bounce2 {
      animation-delay: -1.0s;
    }

    @keyframes bounce {
      0%, 100% { 
        transform: scale(0.0);
      } 50% { 
        transform: scale(1.0);
      }
    }

    #preloader p {
      margin-top: 20px;
      font-size: 1.2rem;
      color: var(--primary);
    }

    /* Bouton retour en haut */
    #scrollToTop {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 50px;
      height: 50px;
      background-color: var(--primary);
      color: white;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: none;
      justify-content: center;
      align-items: center;
      font-size: 1.2rem;
      z-index: 99;
      box-shadow: 0 2px 15px rgba(108, 92, 231, 0.4);
      transition: all 0.3s ease;
    }

    #scrollToTop:hover {
      background-color: var(--primary-dark);
      transform: translateY(-3px);
      box-shadow: 0 4px 20px rgba(108, 92, 231, 0.6);
    }

    /* Navigation */
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      background-color: rgba(26, 26, 46, 0.95);
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
      transition: all 0.3s ease;
      border-bottom: 1px solid var(--gray);
    }

    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 5%;
      max-width: 1400px;
      margin: 0 auto;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--light);
      display: flex;
      flex-direction: column;
    }

    .logo span:first-child {
      color: var(--primary);
    }

    .nav-links {
      display: flex;
      list-style: none;
    }

    .nav-links li {
      margin-left: 2rem;
    }

    .nav-link {
      color: var(--light);
      text-decoration: none;
      font-weight: 500;
      font-size: 1rem;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      position: relative;
    }

    .nav-link i {
      margin-right: 8px;
      font-size: 0.9rem;
    }

    .nav-link:hover, .nav-link.active {
      color: var(--primary);
    }

    .nav-link::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--primary);
      transition: width 0.3s ease;
    }

    .nav-link:hover::after, .nav-link.active::after {
      width: 100%;
    }

    .burger {
      display: none;
      cursor: pointer;
      z-index: 1001;
    }

    .burger div {
      width: 25px;
      height: 3px;
      background-color: var(--light);
      margin: 5px;
      transition: all 0.3s ease;
    }

    /* Styles pour les pages */
    .page {
      display: none;
      padding: 100px 5% 50px;
      min-height: 100vh;
    }

    .page.active {
      display: block;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-title {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      text-align: center;
      position: relative;
      padding-bottom: 15px;
      color: var(--lighter);
    }

    .section-title span {
      color: var(--primary);
    }

    .section-title::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 3px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      border-radius: 3px;
    }

    .section-subtitle {
      text-align: center;
      color: var(--gray);
      margin-bottom: 3rem;
      font-size: 1.1rem;
    }

    /* Page Accueil */
    #page-accueil {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 150px 5% 50px;
      background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    }

    .hero {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
    }

    .hero-content {
      flex: 1;
      text-align: left;
      padding-right: 2rem;
    }

  .hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.image-container {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

    .hero-title {
      font-size: 3rem;
      margin-bottom: 1rem;
      color: var(--lighter);
      line-height: 1.2;
    }

    .hero-subtitle {
      font-size: 1.5rem;
      margin-bottom: 1.5rem;
      color: var(--gray);
      font-weight: 400;
    }

    .hero-text {
      font-size: 1.1rem;
      margin-bottom: 2rem;
      color: var(--light);
      max-width: 600px;
      line-height: 1.8;
    }

    .hero-buttons {
      display: flex;
      gap: 1rem;
    }

    .cta-button {
      display: inline-block;
      padding: 0.8rem 1.8rem;
      background-color: var(--primary);
      color: white;
      border-radius: 30px;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s ease;
      border: 2px solid var(--primary);
      box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
      position: relative;
      overflow: hidden;
      z-index: 1;
    }


.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    var(--primary), 
    var(--secondary), 
    var(--primary));
  background-size: 200% 200%;
  z-index: -1;
  transition: all 0.5s ease;
  opacity: 0;
}

.cta-button:hover::before {
  opacity: 1;
  animation: gradientBG 3s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
    .cta-button:hover {
      background-color: transparent;
      color: var(--primary);
      transform: translateY(-3px);
      box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
    }

    .cta-button.secondary {
      background-color: transparent;
      color: var(--primary);
      border: 2px solid var(--primary);
    }

    .cta-button.secondary:hover {
      background-color: var(--primary);
      color: white;
    }

    .image-container {
      position: relative;
      width: 350px;
      height: 350px;
      border-radius: 50%;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      transition: all 0.5s ease;
    }

    .image-container:hover {
      transform: scale(1.05);
    }

    .profile-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .image-border {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 5px solid rgba(108, 92, 231, 0.3);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
        opacity: 0.5;
      }
      50% {
        transform: scale(1.05);
        opacity: 0.8;
      }
      100% {
        transform: scale(1);
        opacity: 0.5;
      }
    }

    .social-links {
      display: flex;
      gap: 1.5rem;
      margin-top: 3rem;
    }

    .social-link {
      color: var(--light);
      font-size: 1.5rem;
      transition: all 0.3s ease;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: rgba(255, 255, 255, 0.1);
    }

    .social-link:hover {
      color: var(--primary);
      transform: translateY(-3px);
      background-color: rgba(108, 92, 231, 0.2);
      box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
    }

    /* Page À Propos */
    .about-content {
      display: flex;
      gap: 3rem;
      margin-top: 3rem;
    }

    .about-text {
      flex: 1;
    }

    .intro-text {
      font-size: 1.1rem;
      margin-bottom: 2rem;
      line-height: 1.8;
      color: var(--light);
    }

    .personal-info {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .info-item {
      display: flex;
      align-items: center;
    }

    .info-label {
      font-weight: 600;
      margin-right: 10px;
      color: var(--primary);
    }

    .info-label i {
      margin-right: 8px;
    }

    .info-value {
      color: var(--light);
    }

    .about-buttons {
      display: flex;
      gap: 1rem;
      margin-top: 2rem;
    }

    .skills-chart {
      flex: 1;
      background-color: var(--darker);
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
      border: 1px solid var(--gray);
    }

    .skills-title {
      font-size: 1.5rem;
      margin-bottom: 1.5rem;
      color: var(--lighter);
      text-align: center;
    }

    .chart-item {
      margin-bottom: 1.5rem;
    }

    .chart-info {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.5rem;
    }

    .chart-info span {
      color: var(--light);
    }

    .chart-bar {
      height: 10px;
      background-color: var(--darkest);
      border-radius: 5px;
      overflow: hidden;
    }

    .chart-progress {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      border-radius: 5px;
      transition: width 1.5s ease;
      position: relative;
    }

    .chart-progress::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(90deg, 
                  rgba(255,255,255,0.1) 0%, 
                  rgba(255,255,255,0.3) 50%, 
                  rgba(255,255,255,0.1) 100%);
      background-size: 200% 100%;
      animation: shimmer 2s infinite;
      border-radius: 5px;
    }

    @keyframes shimmer {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }

    /* Page Formation */
    .timeline {
      position: relative;
      max-width: 800px;
      margin: 3rem auto 0;
    }

    .timeline::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 2px;
      height: 100%;
      background: linear-gradient(to bottom, var(--primary), var(--secondary));
    }

    .timeline-item {
      display: flex;
      justify-content: flex-end;
      padding-right: 30px;
      position: relative;
      margin: 0 0 2rem 0;
      width: 50%;
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.5s ease;
    }

    .timeline-item.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .timeline-item:nth-child(odd) {
      align-self: flex-end;
      justify-content: flex-start;
      padding-left: 30px;
      padding-right: 0;
    }

    .timeline-date {
      position: absolute;
      top: 0;
      left: 0;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      color: white;
      padding: 0.5rem 1rem;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 500;
      box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
    }

    .timeline-item:nth-child(odd) .timeline-date {
      left: auto;
      right: 0;
    }

    .timeline-content {
      background-color: var(--darker);
      padding: 1.5rem;
      border-radius: 10px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
      width: 100%;
      border: 1px solid var(--gray);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .timeline-item:hover .timeline-content {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .timeline-content h3 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: var(--primary);
    }

    .timeline-content h4 {
      font-size: 1rem;
      margin-bottom: 1rem;
      color: var(--gray);
      font-weight: 500;
    }

    .timeline-details {
      list-style: none;
    }

    .timeline-details li {
      margin-bottom: 0.5rem;
      position: relative;
      padding-left: 1.5rem;
      color: var(--light);
    }

    .timeline-details li i {
      position: absolute;
      left: 0;
      top: 3px;
      color: var(--primary);
      font-size: 0.8rem;
    }

    /* Page Compétences */
    .skills-container {
      margin-top: 3rem;
    }

    .skills-category {
      margin-bottom: 3rem;
    }

    .skills-category-title {
      font-size: 1.5rem;
      margin-bottom: 1.5rem;
      color: var(--lighter);
      display: flex;
      align-items: center;
    }

    .skills-category-title i {
      margin-right: 10px;
      color: var(--primary);
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.5rem;
    }

    .skill-item {
      background-color: var(--darker);
      padding: 1.5rem;
      border-radius: 10px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
      transition: all 0.3s ease;
      border: 1px solid var(--gray);
    }

    .skill-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      border-color: var(--primary);
    }

    .skill-icon {
      font-size: 2rem;
      color: var(--primary);
      margin-bottom: 1rem;
    }

    .skill-name {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: var(--lighter);
    }

    .skill-description {
      color: var(--gray);
      font-size: 0.9rem;
    }


    .skill-item {
  /* ... styles existants ... */
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  position: relative;
}

.skill-item:hover {
  transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 206, 201, 0.1) 100%);
  transform: translateZ(-1px);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-item:hover::before {
  opacity: 1;
}

    /* Page Portfolio */
    .portfolio-filter {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin: 2rem 0 3rem;
    }

 .filter-btn {
  /* ... styles existants ... */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: -1;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.5s ease;
}

.filter-btn:hover::before, .filter-btn.active::before {
  clip-path: circle(100% at 50% 50%);
}

.filter-btn:hover, .filter-btn.active {
  border-color: transparent;
}

    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 2rem;
    }

    .project-card {
      background-color: var(--darker);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
      transition: all 0.3s ease;
      cursor: pointer;
      border: 1px solid var(--gray);
    }

    .project-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      border-color: var(--primary);
    }

    .project-image {
      height: 250px;
      overflow: hidden;
      position: relative;
    }

    .project-image::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to bottom, rgba(26, 26, 46, 0.1), rgba(26, 26, 46, 0.7));
    }

    .project-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .project-card:hover .project-image img {
      transform: scale(1.05);
    }

    .project-info {
      padding: 1.5rem;
    }

    .project-info h3 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: var(--lighter);
    }

    .project-info p {
      color: var(--gray);
      font-size: 0.9rem;
      margin-bottom: 0.5rem;
    }

    .project-category {
      display: inline-block;
      padding: 0.3rem 0.8rem;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      color: white;
      border-radius: 20px;
      font-size: 0.7rem;
      font-weight: 500;
    }

    /* Page Contact */
    .contact-container {
      display: flex;
      gap: 3rem;
      margin-top: 3rem;
    }

    .contact-info {
      flex: 1;
      background-color: var(--darker);
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
      border: 1px solid var(--gray);
    }

    .contact-item {
      display: flex;
      align-items: flex-start;
      margin-bottom: 1.5rem;
    }

    .contact-icon {
      font-size: 1.2rem;
      color: var(--primary);
      margin-right: 1rem;
      margin-top: 3px;
    }

    .contact-text h3 {
      font-size: 1.1rem;
      margin-bottom: 0.3rem;
      color: var(--lighter);
    }

    .contact-text p {
      color: var(--gray);
      font-size: 0.9rem;
    }

    .contact-social {
      display: flex;
      gap: 1rem;
      margin-top: 2rem;
    }

    .contact-form {
      flex: 2;
      background-color: var(--darker);
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
      border: 1px solid var(--gray);
    }

    .form-group {
      margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 0.8rem 1rem;
      border: 1px solid var(--gray);
      border-radius: 5px;
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      transition: all 0.3s ease;
      background-color: var(--dark);
      color: var(--light);
    }

    .form-group input:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
    }

    .form-group textarea {
      resize: vertical;
      min-height: 150px;
    }

    /* Modaux */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.9);
      z-index: 1001;
      overflow-y: auto;
      padding: 50px 5%;
    }

    .modal-content {
      background-color: var(--darker);
      border-radius: 10px;
      max-width: 900px;
      margin: 0 auto;
      padding: 2rem;
      position: relative;
      animation: modalFadeIn 0.3s ease;
      border: 1px solid var(--gray);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    @keyframes modalFadeIn {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .close {
      position: absolute;
      top: 20px;
      right: 20px;
      font-size: 1.5rem;
      color: var(--gray);
      cursor: pointer;
      transition: color 0.3s ease;
      z-index: 1;
    }

    .close:hover {
      color: var(--primary);
    }

    .modal-header {
      margin-bottom: 2rem;
      text-align: center;
    }

    .modal-header h2 {
      font-size: 2rem;
      color: var(--lighter);
    }

    .modal-subtitle {
      color: var(--gray);
      font-size: 1.1rem;
    }

    .modal-body {
      display: flex;
      gap: 2rem;
    }

    .modal-image {
      flex: 1;
      border-radius: 5px;
      overflow: hidden;
    }

    .modal-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .modal-image:hover img {
      transform: scale(1.02);
    }

    .modal-details {
      flex: 1;
    }

    .modal-details h3 {
      font-size: 1.3rem;
      margin-bottom: 1rem;
      color: var(--primary);
    }

    .technologies-list, .results-list {
      list-style: none;
      margin-bottom: 2rem;
    }

    .technologies-list li, .results-list li {
      margin-bottom: 0.5rem;
      padding-left: 1.5rem;
      position: relative;
      color: var(--light);
    }

    .technologies-list li::before, .results-list li::before {
      content: '•';
      position: absolute;
      left: 0;
      color: var(--primary);
      font-weight: bold;
    }

    /* Footer */
    footer {
      background-color: var(--darkest);
      color: white;
      padding: 3rem 0 0;
      border-top: 1px solid var(--gray);
    }

    .footer-content {
      display: flex;
      justify-content: space-between;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 5% 3rem;
      flex-wrap: wrap;
      gap: 2rem;
    }

    .footer-about {
      flex: 1;
      min-width: 300px;
    }

    .footer-about h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: var(--primary);
    }

    .footer-about p {
      color: var(--gray);
      font-size: 0.9rem;
      line-height: 1.6;
    }

    .footer-links {
      flex: 1;
      min-width: 200px;
    }

    .footer-links h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: var(--primary);
    }

    .footer-links ul {
      list-style: none;
    }

    .footer-links li {
      margin-bottom: 0.5rem;
    }

    .footer-links a {
      color: var(--gray);
      text-decoration: none;
      font-size: 0.9rem;
      transition: color 0.3s ease;
    }

    .footer-links a:hover {
      color: var(--primary);
    }

    .footer-contact {
      flex: 1;
      min-width: 250px;
    }

    .footer-contact h3 {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: var(--primary);
    }

    .footer-contact ul {
      list-style: none;
    }

    .footer-contact li {
      margin-bottom: 0.8rem;
      display: flex;
      align-items: center;
      color: var(--gray);
    }

    .footer-contact i {
      margin-right: 10px;
      color: var(--primary);
      width: 20px;
      text-align: center;
    }

    .footer-bottom {
      background-color: rgba(0, 0, 0, 0.2);
      padding: 1.5rem 5%;
      text-align: center;
      border-top: 1px solid var(--gray);
    }

    .footer-bottom p {
      color: var(--gray);
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }

    .footer-social {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
    }

    .footer-social a {
      color: var(--gray);
      font-size: 1.2rem;
      transition: color 0.3s ease;
    }

    .footer-social a:hover {
      color: var(--primary);
    }

    /* Responsive */
    @media (max-width: 992px) {
      .hero {
        flex-direction: column;
        text-align: center;
      }
      
      .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
      }
      
      .hero-buttons {
        justify-content: center;
      }
      
      .about-content {
        flex-direction: column;
      }
      
      .contact-container {
        flex-direction: column;
      }
      
      .modal-body {
        flex-direction: column;
      }
    }

    @media (max-width: 768px) {
      .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 80px);
        background-color: var(--darker);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 0;
        transition: right 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        border-left: 1px solid var(--gray);
      }
      
      .nav-links.active {
        right: 0;
      }
      
      .nav-links li {
        margin: 1rem 0;
      }
      
      .burger {
        display: block;
      }
      
      .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
      }
      
      .burger.active .line2 {
        opacity: 0;
      }
      
      .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
      }
      
      .timeline::before {
        left: 30px;
      }
      
      .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
      }
      
      .timeline-item:nth-child(odd) {
        align-self: flex-start;
        padding-left: 70px;
      }
      
      .timeline-date {
        left: 0;
        right: auto;
      }
    }

    @media (max-width: 576px) {
      .hero-title {
        font-size: 2.2rem;
      }
      
      .hero-subtitle {
        font-size: 1.2rem;
      }
      
      .section-title {
        font-size: 2rem;
      }
      
      .portfolio-grid {
        grid-template-columns: 1fr;
      }
      
      .personal-info {
        grid-template-columns: 1fr;
      }
      
      .about-buttons, .hero-buttons {
        flex-direction: column;
      }
      
      .filter-btn {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
      }
    }

    /* Theme Switcher */
.theme-switcher {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 2px 15px rgba(108, 92, 231, 0.4);
}

.theme-switcher i {
  position: absolute;
  transition: all 0.3s ease;
}

.theme-switcher .fa-sun {
  opacity: 0;
}

body.light-mode {
  --dark: #f1f1f1;
  --darker: #e2e2e2;
  --darkest: #ffffff;
  --light: #333333;
  --lighter: #222222;
  --gray: #888888;
}

body.light-mode .theme-switcher .fa-moon {
  opacity: 0;
}

body.light-mode .theme-switcher .fa-sun {
  opacity: 1;
}

/* Reading Progress */
.progress-container {
  width: 100%;
  height: 4px;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.progress-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  transition: width 0.1s ease;
}

/* Form Success Message */
.form-success {
  background-color: var(--success);
  color: white;
  padding: 1.5rem;
  border-radius: 5px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  animation: fadeIn 0.5s ease;
  transition: opacity 0.3s ease;
}

.form-success i {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.form-success p {
  margin: 0;
}

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

#particlesCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.15;
}

/* Wave Animation */
.wave-animation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%236c5ce7" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%236c5ce7" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%236c5ce7"/></svg>');
  background-repeat: repeat no-repeat;
  background-position: 0 bottom;
  transform-origin: center bottom;
  animation: wave 15s linear infinite;
}

.wave1 {
  opacity: 0.5;
  animation-delay: 0s;
  bottom: 0;
}

.wave2 {
  opacity: 0.3;
  animation-delay: -5s;
  bottom: 10px;
}

.wave3 {
  opacity: 0.1;
  animation-delay: -2s;
  bottom: 15px;
}

@keyframes wave {
  0% { transform: translateX(0) translateZ(0) scaleY(1); }
  50% { transform: translateX(-25%) translateZ(0) scaleY(0.5); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

/* Bookmark Button */
.bookmark-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(26, 26, 46, 0.7);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.bookmark-btn:hover, .bookmark-btn.bookmarked {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.7);
}

.project-card {
  position: relative;
}


/* Audio Presentation */
.audio-presentation {
  margin-top: 2rem;
}

#audioToggle {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#audioToggle:hover {
  background: var(--primary);
  color: white;
}

#audioToggle.playing {
  background: var(--primary);
  color: white;
}

#audioToggle.playing i::before {
  content: "\f28b"; /* pause icon */
}

/* Glitch Effect */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

.hero-title {
  animation: glitch 0.5s linear 2;
}

/* Notification System */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 15px 25px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification.show {
  opacity: 1;
}

.notification i {
  font-size: 1.2rem;
}

body {
  transition: background-color 0.5s ease, color 0.5s ease;
}

[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
[data-tooltip]:hover::after {
  opacity: 1;
}

/* Mode Focus */
.focus-mode {
  --primary: #3a86ff;
  --dark: #0a192f;
  --light: #e6f1ff;
}

.focus-toggle {
  position: fixed;
  bottom: 100px;
  left: 30px;
  z-index: 99;
}

/* Ajouter à la fin */
.notification.error {
  background-color: var(--danger);
}

.notification-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,0.5);
  animation: progress linear forwards;
}

@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}

.contact-map {
  width: 100%;
  height: 300px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  margin-top: 20px;
}
.skill-item:hover {
  position: relative;
  overflow: hidden;
}

.skill-item:hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(108, 92, 231, 0.1),
    rgba(0, 206, 201, 0.1),
    rgba(108, 92, 231, 0.1)
  );
  transform: rotate(30deg);
  animation: hologram 3s linear infinite;
}

@keyframes hologram {
  0% { transform: rotate(30deg) translateY(0); }
  100% { transform: rotate(30deg) translateY(-50%); }
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.tag {
  background: rgba(108, 92, 231, 0.2);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
}
/* Ajoutez ceci à votre fichier styles.css */
body {
  position: relative;
  z-index: 1;
}

#particleNetwork {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Place le canvas derrière tout le contenu */
  opacity: 0.5; /* Ajustez l'opacité selon vos besoins */
}
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2; /* Encore plus en arrière-plan */
  background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
}
/* Curseur personnalisé - à placer dans styles.css */
html {
  cursor: none; /* Conservez cette ligne */
}

.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background-color: #00ff41;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 9999; /* Augmentez le z-index */
  transform: translate(-50%, -50%);
  animation: matrixBlink 0.5s infinite alternate;
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(108, 92, 231, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998; /* Juste en dessous du curseur principal */
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Ajoutez ces styles */
.cursor-active .cursor {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: rgba(108, 92, 231, 0.8);
}

.cursor-active .cursor-follower {
  width: 20px;
  height: 20px;
  border-color: rgba(108, 92, 231, 0.8);
}