@layer base {
  /* Définir 1rem à 10px */
  html {
    font-size: 62.5%;
    /* 62.5% de 16px = 10px */
  }

  /* 1. Réinitialisation des marges et des espacements */
  *,
  *::before,
  *::after {
    margin: 0;
    /* Supprime les marges par défaut */
    padding: 0;
    /* Supprime les espacements par défaut */
    box-sizing: border-box;
    /* Inclut le padding et la bordure dans les dimensions de l'élément */
  }

  /* 2. Définition des styles de base */
html, body {
  height: auto;
  min-height: 100%;
}

body {
  position: relative;
  font-family: 'Rajdhani', sans-serif;
  background: radial-gradient(circle at center, #050505, #000);
  color: #0ff;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* garde le footer en bas s’il y a peu de contenu */
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; /* ✅ fixé à la fenêtre mais couvrant toute la page visible */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #0ff2, #111);
  z-index: -1;
  pointer-events: none; /* pour ne pas bloquer les clics */
}


  /* 3. Réinitialisation des titres */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
    /* Supprime les marges par défaut des titres */
  }

  /* 4. Réinitialisation des listes */
  ul,
  ol {
    list-style: none;
    /* Supprime les puces et les numéros */
  }

  /* 5. Réinitialisation des liens */
  a {
    text-decoration: none;
    /* Supprime le soulignement par défaut des liens */
    color: inherit;
    /* Hérite de la couleur du texte */
  }

  /* 6. Réinitialisation des images */
  img {
    max-width: 100%;
    /* Rendre les images réactives */
    height: auto;
    /* Maintenir les proportions des images */
  }

  /* 7. Réinitialisation des tableaux */
  table {
    border-collapse: collapse;
    /* Supprime les espaces entre les cellules */
    width: 100%;
    /* Rendre les tables réactives */
  }

  /* 8. Réinitialisation des boutons */
  button {
    background: none;
    /* Supprime les styles par défaut des boutons */
    border: none;
    /* Supprime les bordures par défaut des boutons */
    cursor: pointer;
    /* Change le curseur au survol */
  }
}

main {
  flex: 1;
}

/* Particules */
.particle {
  position: absolute;
  background: rgba(0, 255, 255, 0.332);
  border-radius: 50%;
  opacity: 0;
  animation: move 10s linear infinite;
}

.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

@keyframes move {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(var(--x-move));
    opacity: 0;
  }
}

/* Particules */

/* Nom neon */

#blocName {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 80%;
  top: 40%;
  left: 50%;
  text-align: center;
  font-size: clamp(2.5rem, 3.4vw + 1.7rem, 5.8rem);

  color: #0ff;
  text-shadow: 0 0 5px rgb(0, 255, 255), 0 0 10px #0ff, 0 0 20px #0ff,
    0 0 40px #0ff, 0 0 80px #0ff;
  letter-spacing: 10px;
  animation: pulse 2s infinite;
}

#blocName2 {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 80%;
  top: 50%;
  left: 50%;
  text-align: center;
  font-size: clamp(2.5rem, 3.4vw + 1.7rem, 5.8rem);

  color: #0ff;
  text-shadow: 0 0 5px rgb(0, 255, 255), 0 0 10px #0ff, 0 0 20px #0ff,
    0 0 40px #0ff, 0 0 80px #0ff;
  letter-spacing: 10px;
  animation: pulse 4s infinite;
}

@keyframes pulse {
  0%,
  100% {
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff,
      0 0 80px #0ff;
  }
  50% {
    text-shadow: 0 0 2px #0ff, 0 0 4px #0ff, 0 0 8px #0ff, 0 0 16px #0ff,
      0 0 32px #0ff;
  }
}

.typing::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 5px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 50%);
    pointer-events: none;
  }
  99% {
    pointer-events: none;
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
}

/* Nom neon */

/* navbar */
header{
  display: flex;
  justify-content: space-evenly;

}
.navbar {
  background-color: transparent;
  display: flex;
  gap: 5rem;
  padding: clamp(1.5rem, 2.3vw, 2rem);
  position: fixed;
  transition: transform 0.9s ease, color 0.9s ease, background-color 0.9s ease;
  transform: translateY(-100%);
}

.navbar a {
  text-decoration: none;
  color: rgba(0, 255, 255, 0.8);
  display: block;
  text-align: center;
}

.navbar a p {
  font-size: clamp(1.6rem, 2.4vw + 0.3rem, 2.5rem);
  margin: 0;
  transition: transform 0.6s ease, color 0.6s ease, background-color 0.6s ease;
}

.navbar a p:hover {
  text-shadow: 0 0 10px rgb(0, 255, 255);
  color: white;
}
.navbar a p.active {
  color: white;
}


/* navbar */

/* Bio */
.bio {
  color: #0ff;
  position: absolute;
  transform: translate(-50%,-50%);
  top: 50%;
  left: 50%;
  width: 80%;

}
.bio__content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bio__picture {
  width: clamp(200px,20vw,400px);
  object-fit: cover;
  aspect-ratio: 1/1;
  border-radius: 20px;
}

.bio__paragraph {
    display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(1.5rem,2vw,2.5rem);

  margin: 0 5%;
}

@media (max-width:425px){
  .bio__content{
    flex-direction: column;

  }
  .bio__paragraph {
    margin-top: 5%;
    text-align: center;
}
}

/* Bio */


/* Projet */

.projet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  /* padding: 12rem 2rem; */
  color: #0ff;
  text-align: center;
  border-radius: 20px;
  /* max-width: 1200px; */
  margin: 0 auto;
  /* font-size: 20rem; */
}

.projet h1 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  text-align: center;
  margin-bottom: 1rem;
}

.projet_card_img1,
.projet_card_img2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  /* padding: 2rem; */
  overflow: hidden;
}

.projet_card_img1 img,
.projet_card_img2 img {
  width: 50%;
  border-radius: 10px;
  object-fit: cover;
  /* filter: brightness(50%); */

}

.projet_card_img1 img::before{
  content: "";
  width: 50%;
  height: 50%;
  background-color: blue;
}

.projet_card_img1 p,
.projet_card_img2 p {
  flex: 1;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: #0ff;
  text-align: left;
}

.projet_card_img1 p a,
.projet_card_img2 p a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.projet_card_img1 p a:hover,
.projet_card_img2 p a:hover {
  color: #0ff;
  border-color: #0ff;
}

/* --- inversion du sens pour la 2e carte --- */
.projet_card_img2 {
  flex-direction: row-reverse;
  text-align: right;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .projet_card_img1,
  .projet_card_img2 {
    flex-direction: column;
    text-align: center;
  }

  .projet_card_img1 img,
  .projet_card_img2 img {
    width: 80%;
  }
}


/* Projet */

/* contact */

.contact {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: clamp(20px, 5vw, 40px);
  border-radius: 15px;
  background-color: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
  color: #0ff;
  text-align: center;
  max-width: clamp(300px, 80vw, 400px);
  width: 90%;
  z-index: 1000;
}


.contact h1 {
  margin-bottom: 10px;
font-size: clamp(1.8rem, 4vw, 3.5rem);
}

.contact p {
font-size: clamp(1rem, 2.5vw, 1.6rem);
  margin-bottom: 20px;
}

.contact-button {
  display: inline-block;
  background-color: #0ff;
  color: #111;
  padding: clamp(10px, 2vw, 12px) clamp(16px, 4vw, 20px);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  transition: background-color 0.3s ease;
}

.contact-button i {
  margin-right: 8px;
}

.contact-button:hover {
  background-color: #00cccc;
}



/* contact */



/* footer */
footer {
  font-size: clamp(1rem, 2.4vw + 0.3rem, 2rem);
  padding: clamp(1.2rem, 2vw, 2rem);
  color: #0ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

footer p {
  flex: 1 1 100%;
  margin: 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex: 1 1 100%;
}

.social-icons a i {
  font-size: clamp(1.4rem, 2vw + 0.5rem, 2.2rem);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.9);
  transition: color 0.5s ease, transform 0.3s ease, background-color 3s ease;
  padding: 0.6rem;
  border-radius: 50%;
}

.social-icons a:hover i {
  color: #ffffff;
  transform: scale(1.2);
}
/* footer */

/* 404 */

.error {
  color: #0ff;
  height: 100vh;
  display: flex;
  font-size: clamp(2rem, 3vw + 1.7rem, 5rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error_link {
  border: 2px solid rgb(0, 255, 255);
  border-radius: 20px;
  padding: clamp(0.5rem, 2vw, 1rem);
  font-size: 35%;
  font-weight: 900;
  transition: transform 0.6s ease, color 0.6s ease, background-color 0.6s ease;
}

.error_link:hover {
  background-color: rgb(0, 255, 255);
  color: black;
}

/* 404 */
