/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
  }
  
  @keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
  }
  
  .animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
  }
  
  .animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out 0.3s forwards;
    opacity: 0;
  }
  
  .terminal-cursor {
    animation: blink 1s infinite;
    color: #22c55e;
  }
  
  /* ========== SCROLL ANIMATIONS ========== */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ========== NAV LINKS ========== */
  .nav-link {
    color: #9ca3af;
    transition: color 0.3s;
    position: relative;
  }
  
  .nav-link:hover,
  .nav-link.active {
    color: #ffffff;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s;
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  .nav-link-mobile {
    color: #9ca3af;
    display: block;
    padding: 8px 0;
    transition: color 0.3s;
  }
  
  .nav-link-mobile:hover {
    color: #ffffff;
  }
  
  /* ========== SECTION TITLE ========== */
  .section-title {
    position: relative;
    display: inline-block;
    width: 100%;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3b82f6;
    margin: 12px auto 0;
    border-radius: 2px;
  }
  
  /* ========== CARDS ========== */
  .timeline-item {
    border-left: 3px solid #2563eb;
    padding-left: 24px;
    padding-bottom: 8px;
  }
  
  .activity-card {
    background: #1a2235;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
  }
  
  .activity-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
  }
  
  .cert-card {
    background: #0a0f1a;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
  }
  
  .cert-card:hover {
    transform: translateY(-4px);
  }
  
  .tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background-color: #1a2235;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    color: #fff;
    font-weight: 500;
  }
  .tool-card:hover {
    transform: translateY(-5px);
    border-color: #2563eb;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.3);
  }
  .tool-card img {
    transition: transform 0.3s ease;
  }
  .tool-card:hover img {
    transform: scale(1.15) rotate(-5deg);
  }  
  
  .project-card {
    background: #0a0f1a;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  }
  
  .project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.2);
  }
  
  /* ========== SOCIAL & CONTACT ========== */
  .social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a2235;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #9ca3af;
    transition: background 0.3s, color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .social-link:hover {
    background: #2563eb;
    color: #ffffff;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: #0a0f1a;
    border-radius: 12px;
    color: #d1d5db;
    transition: background 0.3s, transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .contact-item:hover {
    background: #1a2235;
    transform: translateX(8px);
  }
  
  .gallery-item {
    transition: transform 0.3s;
  }
  
  .gallery-item:hover {
    transform: scale(1.05);
  }
  
  /* ========== SCROLLBAR ========== */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #0a0f1a;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
  }
  
  /* ========== SMOOTH SCROLL ========== */
  html {
    scroll-behavior: smooth;
  }
  
/* Particules container */
#tsparticles {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
  }
  
  /* Assurer que le contenu est au-dessus */
  nav, section, footer {
    position: relative;
    z-index: 10;
  }
  
  .swiper-button-next, .swiper-button-prev {
    color: #2563eb !important;
  }
  .swiper-pagination-bullet-active {
    background: #2563eb !important;
  }
  .swiper-slide img {
    transition: transform 0.3s ease;
  }
  .swiper-slide img:hover {
    transform: scale(1.05);
  }
  