/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fff;
  color: #000;
  font-family: "Roboto Mono", sans-serif;
}

/* Fonts spécifiques */
h1,
h2,
h3,
h4,
nav,
a,
button {
  font-family: "Space Grotesk", sans-serif;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  display: flex;
  justify-content: space-between; /* espace entre logo et nav */
  align-items: center; /* aligne verticalement */
  padding: 1rem 2rem; /* marges internes */
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); /* optionnel pour le relief */
}

/* LOGO */
#btn-logo-nav {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #000;
  transition: transorm 0.9s ease; /* transition pour le hover */
}

#btn-logo-nav:hover {
  color: #20e20b;
}
/* NAVIGATION */
.nav-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-bar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-bar a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.nav-bar a:hover {
  color: #20e20b;
}

#btn-contact-nav {
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: transform 0.9s ease; /* transition pour le hover */
}

#btn-contact-nav:hover {
  background: #20e20b;
  color: #000;
  transform: scale(1.05);
}

/* FOOTER */
footer {
  background-color: #fff; /* même fond que la nav */
  color: #000;
  padding: 2rem 4rem;
  font-family: "Roboto Mono", monospace;
  border-top: 1px solid #ddd; /* ligne de séparation */
}

footer p {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Intro Footer */
.intro-footer {
  padding: 2rem 4rem;
  margin-bottom: 2rem;
  text-align: center;
  background-color: #21e20b50;
  border-radius: 12px;
}

.intro-footer a {
  text-decoration: none;
  background-color: #fff;
  color: #000;
  padding: 0.2rem;
}

.intro-footer a:hover {
  background-color: #20e20b;
  color: #f9f9f9;
}

/* Footer container - grid */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  justify-items: center;
  margin: 0 auto;
}

.footer-category h4 {
  padding-bottom: 0.5rem;
}

/* Footer categories */
.footer-category ul {
  list-style: none;
}

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

.footer-category ul li a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s;
}

.footer-category ul li a:hover {
  color: #20e20b;
}

/* p enfants direct du footer ( droits réservés ) */
footer > p {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

/* Section 1 - Introduction */
#introduction {
  display: flex;
  text-align: center;
  padding: 6rem 8rem;
}

.intro-meriton h2 {
  padding-bottom: 2rem;
}

#intro-recherche-stage {
  color: #3da531cb;
  border: 1px solid black;
}

.btn-intro-meriton {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
}

.btn-intro-meriton a {
  text-decoration: none;
}

#btn-intro-projets {
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: transform 0.9s ease; /* transition pour le hover */
}

#btn-intro-projets:hover {
  background: #555;
  color: #ffffff;
  transform: scale(1.05);
}

#btn-intro-contact {
  color: #000;
  border: 1px solid #55555545;
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

#btn-intro-contact:hover {
  background-color: #20e20b;
  color: #000;
  border: 1px solid black;
}

#langages-span {
  color: #3da531cb;
}

/* Acceuil -> projets */

#projets-acceuil {
  padding: 5rem 6rem;
  background-color: #f9f9f9;
}

#projets-acceuil h2 {
  padding-bottom: 1rem;
}

#projets-acceuil a {
  text-decoration: none;
  display: block;
  width: fit-content;
  margin: 0 auto;
  color: #000;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  border: 2px solid #20e20b;
  transition: all 0.3s ease;
}

#projets-acceuil a:hover {
  background-color: #20e20b;
  color: #000;
}

.projets-meriton {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  text-align: center;
  padding: 2rem 3rem;
  gap: 2rem;
}

.selection-projets-acceuil {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.selection-projets-acceuil:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px #20e20b;
}

.selection-projets-acceuil h3:hover {
  color: #20e20b;
}

.selection-projets-acceuil img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Mes disponibilités */

#disponible {
  padding: 5rem 6rem;
  text-align: center;
}

#disponible h2 {
  padding-bottom: 1rem;
}

.quel-stage {
  display: flex;
  padding: 1rem;
  margin: 1rem;
  gap: 2rem;
  text-align: center;
}

.convention-stage {
  padding: 1rem;
  border: 1px solid #20e20b;
  border-radius: 6px;
  background-color: #f9f9f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.convention-stage:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px #20e20b;
}

.convention-stage h4 {
  padding-bottom: 1rem;
}

.convention-stage h4:hover {
  color: #20e20b;
}

.btn-dispo {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
}

.btn-dispo a {
  text-decoration: none;
}

#btn-intro-projets {
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 2px solid #20e20b;
  transition: transform 0.9s ease; /* transition pour le hover */
}

#btn-intro-projets:hover {
  background: #20e20b;
  color: #000000;
  border: 2px solid #000000;
  transform: scale(1.05);
}

/* Burger */
#burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

#burger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Responsive sur tel */

@media (max-width: 768px) {
  /* BURGER */
  #burger {
    display: flex;
  }

  .nav-bar {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
    width: 100%;
  }

  .nav-bar.open {
    display: flex;
  }

  /* HEADER */
  header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  #btn-logo-nav {
    font-size: 1.3rem;
  }



  /* INTRODUCTION */
  #introduction {
    padding: 1.5rem 1rem;
  }

  .intro-meriton h2 {
    font-size: 1.3rem;
    padding-bottom: 1rem;
  }

  .intro-meriton p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  #intro-recherche-stage {
    display: block;
    margin-top: 1rem;
  }

  .btn-intro-meriton {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .btn-intro-meriton a {
    width: 100%;
    text-align: center;
  }

  /* PROJETS */
  #projets-acceuil {
    padding: 1.5rem 1rem;
  }

  #projets-acceuil h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .projets-meriton {
    grid-template-columns: 1fr;
    padding: 1rem 0;
    gap: 1.5rem;
  }

  .selection-projets-acceuil {
    padding: 1rem;
  }

  .selection-projets-acceuil h3 {
    font-size: 1.2rem;
  }

  .selection-projets-acceuil p {
    font-size: 0.9rem;
  }

  .selection-projets-acceuil img {
    margin-bottom: 0.8rem;
  }

  /* DISPONIBILITÉS */
  #disponible {
    padding: 1.5rem 1rem;
  }

  #disponible h2 {
    font-size: 1.5rem;
  }

  #disponible p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .quel-stage {
    flex-direction: column;
    padding: 0.5rem;
    margin: 0.5rem 0;
    gap: 1rem;
  }

  .convention-stage {
    padding: 1rem;
  }

  .convention-stage h4 {
    font-size: 1.1rem;
  }

  .convention-stage p {
    font-size: 0.85rem;
  }

  .btn-dispo {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .btn-dispo a {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
  }

  /* FOOTER */
  footer {
    padding: 1.5rem 1rem;
  }

  .intro-footer {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }

  .intro-footer h3 {
    font-size: 1.3rem;
  }

  .intro-footer p {
    font-size: 0.9rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-category h4 {
    font-size: 1.1rem;
  }

  .footer-category ul li {
    font-size: 0.9rem;
  }

  footer > p {
    font-size: 0.8rem;
  }
}
