/* ---- Général ---- */
body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, rgba(5, 20, 35, 0.95), rgba(20, 40, 60, 0.95)),
      url('https://pixeljoint.com/files/icons/full/nebula2_02.gif');
      /* url('https://www.transparenttextures.com/patterns/3px-tile.png'); */
  background-size: auto;
  background-blend-mode: overlay;
  color: #f0f0f0;
  scroll-behavior: smooth;
}

/* ---- 🌸 Navbar 🌸 ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 97%;
  background: transparent;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  box-shadow: 0 3px 8px rgba(107, 106, 106, 0.15);
  /* box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); */
  backdrop-filter: blur(2px);
}

.logo {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  color: #fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-links a:hover {
  color: #ff4fa3;
  text-decoration: none;
  transform: scale(1.1);
}

/* ---- 🌸 Header 🌸 ---- */
header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 20px;
}

h1 {
  font-family: 'Press Start 2P', cursive;
  font-size: 2rem;
  color: #ff4fa3;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

h2 {
  font-size: 1.5rem;
  color: #fff;
}

/* ---- 🌸 A propos 🌸 ---- */
section {
  padding: 10px 20px;
  text-align: center;
}

.section-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5rem;
  color: #ffd166;
  /* color: #ffee00; jaune vif */
  margin-bottom: 40px;
}

.section-subtitle {
  color: #ffbdde;
  font-weight: bold;
  font-size: 0.8rem;
  margin: 10px 0;
  text-align: center;
  font-family: 'Press Start 2P', cursive;
}

h3 {

  font-size: 0.9rem;
  color: #FFEFA7;
  margin-bottom: 10px;
}

#about-text {
  width: 60%;
}

ul {
  padding-left: 0;
}

li {
  text-align: center;
  margin-left: 0;
  list-style-type: none;
}

/* Puces */
li.fade-in::before {
  content: "▸";
  color: #ff4fa3;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}


/* ---- 🌸 Partie formation 🌸 ---- */
#formation .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 20px;
}

#formation .project-card {
  min-height: 100px;
  background: transparent;
  border: 1px solid #ff4fa3;
  border-radius: 150px;
  box-shadow: none;
  text-align: center;
  padding: 10px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#formation .project-card:hover {
  transform: translateY(-2px);
  border-color: #ff69b4;
}

#formation .project-card img.project-img {
  width: 50px;
  height: 50px;
  margin: 10px auto;
}

#formation .project-card h4 {
  margin: 5px 0 3px 3px;
  font-size: 0.85rem;
  color: #fff;
}

#formation .project-card p {
  font-size: 0.75rem;
  color: #ddd;
  margin: 2px 0;
}

#formation .project-card a {
  font-family: nunito, sans-serif;
  font-size: 0.8rem;
  color: #ff4fa3;
  background-color: transparent;
  border: none;
  align-items: center;
}

#formation .project-card a:hover {
  color: #FFEFA7;
  text-decoration: none;
}

#formation {
  margin: 70px 0 90px 0;
}

#formation .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 20px;
}

/* ---- Slider images ---- */
.slider {
    width: 50px;
    height: 50px;
    overflow: hidden;
    position: relative;
    margin: 10px auto;
}

.slider img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: opacity 1s ease-in-out;
}



/* ---- 🌸 Projets 🌸 ---- */
h4 {
  color: #333;
  font-size: 1.3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 20px;
}

.project-card {
  min-height: 400px;
  background: #F7F4EA;
  border-radius: 16px;
  border: 3px solid #ff4fa3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: rgba(255, 20, 147, 0.4) 0px 3px 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 15px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.project-card h3 {
  margin: 15px 0 10px;
  font-size: 1.2rem;
}

.project-card p {
  padding: 0 15px;
  font-size: 0.95rem;
  color: #555;
}

.project-card a {
  background: #ff69b4;
  border: 2px solid #ff4fa3;
  border-radius: 4px;
  padding: 8px 14px;
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: #fff;

}

.project-card a:hover {
  background: #ff4fa3;
  transform: scale(1.05);
  text-decoration: none;
}

/* ---- Liens ---- */
a {
  color: #F4A9A8;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}


/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  /* width: 60%; */
  margin: 0 auto;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.icons {
  display: flex;
  gap: 15px;
  margin: 35px 0 35px 0;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.icons img {
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.icons img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0px 0px 5px #ff4fa3);
}


/* ---- 🌸 Contact 🌸 ---- */
.contact-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 20px;
}

.contact-link {
  text-decoration: none;
  font-size: 1.2rem;
  color: #fff;
  transition: all 0.3s ease;
}

.contact-link i {
  margin-right: 8px;
  font-size: 1.5rem;
}

.contact-link:hover {
  color: #ff69b4;
  transform: scale(1.1);
  text-decoration: none;
}


/* ---- 🌸 Footer 🌸 ---- */
footer {
  background: transparent;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  box-shadow: 0 -8px 20px rgba(107, 106, 106, 0.15);
  /* box-shadow: 0 -8px 20px rgba(107, 106, 106, 0.15); */
}


/* ---- Navbar mobile ---- */
.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-right: 30px;
}

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


/* Séparateurs */
.separator {
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.5s ease;
  animation: float 3s ease-in-out infinite alternate;
  margin: 90px 0 90px 0;
}


/* Animations séparateurs */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-5px) rotate(-2deg);
  }

  100% {
    transform: translateY(0) rotate(2deg);
  }
}


/* Version mobile */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 28, 0.6);
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .navbar {
    backdrop-filter: blur(2px);
  }

  #formation .projects-grid {
    grid-template-columns: 1fr;
  }

  #formation .project-card img.project-img {
    width: 70px;
    height: 70px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  #about-text {
    width: 100%;
  }

  .contact-link {
    font-size: 1rem;
  }

}
