/* Reset de quelques styles par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    background: #f0f0f0;
    color: #333;
    overflow-x: hidden;
    /* The default cursor will be used outside the hero section */
    cursor: auto;
  }
  
  /* Background animé pour l'en-tête violet */
  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  .hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    /* Hide the default cursor only within hero */
    cursor: none;
  }
  
  .hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
  }
  
  /* Hiragana container and letters */
  .hiragana-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
  }
  
  .hiragana-letter {
    position: absolute;
    top: 100vh; /* Commence en bas de la vue */
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
    pointer-events: none;
    animation: hiraganaMove linear forwards;
  }
  
  @keyframes hiraganaMove {
    0% {
      transform: translateY(0);
      opacity: 1;
    }
    100% {
      transform: translateY(-110vh);
      opacity: 0;
    }
  }
  
  /* Navbar */
  .navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: transform 0.3s ease;
  }
  
  .nav-links a:hover {
    transform: scale(1.1);
  }
  
  .logo {
    font-size: 2rem;
  }
  
  /* Hero Content */
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  .hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
  }
  
  .hero-content p {
    font-size: 1.5rem;
    max-width: 80%;
    margin: 0 auto;
  }
  
  /* Typewriter Effect */
  .typewriter {
    overflow: hidden;
    border-right: .15em solid #fff;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: typing 4s steps(40, end), blink-caret .75s step-end infinite;
  }
  
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #fff }
  }
  
  /* Sections */
  section {
    padding: 100px 50px;
    text-align: center;
    background: #fff;
    margin: 30px auto;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }
  
  .section-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    position: relative;
  }
  
  .section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #667eea;
    margin: 10px auto 0;
  }
  
  /* Logos de Compétences */
  .tech-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
  }
  
  .tech-logos img {
    width: 100px;
    height: 100px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease, filter 0.5s ease;
    cursor: pointer;
  }
  
  .tech-logos img:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(4px 8px 12px rgba(0, 0, 0, 0.2));
  }
  
  /* Projets */
  .projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }
  
  .project-item {
    background: #fafafa;
    padding: 30px;
    width: 320px;
    border-radius: 10px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
  }
  
  .project-item::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(103,126,234,0.2), transparent);
    transform: rotate(45deg);
    transition: opacity 0.5s ease;
    opacity: 0;
  }
  
  .project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
  }
  
  .project-item:hover::before {
    opacity: 1;
  }

  .project-link {
    text-decoration: none; /* Supprime le soulignement */
    color: inherit; /* Garde la couleur du texte */
    display: block; /* Permet d'englober toute la div */
  }
  
  
  /* À propos */
  .about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.7;
    text-align: left;
  }
  
  /* Footer */
  .footer {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
  }
  
  /* Animations personnalisées */
  @keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
  }
  
  /* CUSTOM CURSOR */
  /* White circle that follows the mouse pointer within the hero */
  .cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.2s ease;
  }
  
  /* Triangle trail element */
  .trail-triangle {
    position: fixed;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid #fff;
    opacity: 0.8;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .navbar {
      padding: 20px;
    }
    .hero-content h2 {
      font-size: 2.8rem;
    }
    .hero-content p {
      font-size: 1.2rem;
    }
    .tech-logos img {
      width: 80px;
      height: 80px;
    }
    section {
      padding: 80px 20px;
    }
  }

