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

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

/* Fonts spécifiques */
h1,
h2,
h3,
h4,
nav,
a,
button {
  font-family: "Outfit", 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: #e20b0b;
}
.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: #e20b0b;
}

#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: #e20b0b;
  color: #000;
  transform: scale(1.05);
}

/* FOOTER */
footer {
  background-color: #fff;
  color: #000;
  padding: 2rem 4rem;
  border-top: 1px solid #ddd;
}

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

.intro-footer a {
  text-decoration: none;
  background-color: #fff;
  color: #000;
  padding: 0.2rem;
  margin-top: 0.5rem;
  display: inline-block;
}

.intro-footer a:hover {
  background-color: #e20b0b;
  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; /* centre chaque colonne horizontalement */
  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: #e20b0b;
}

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

/* Mes 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 #e20b0b;
  transition: all 0.3s ease;
}

#projets-acceuil a:hover {
  background-color: #e20b0b;
  color: #fff;
}

.projets-meriton {
  display: grid;
  grid-template-columns: repeat(3, 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 #e20b0b;
}
.selection-projets-acceuil h3 {
  padding: 1rem;
}

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

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

/* 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;
  }



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

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

  #projets-acceuil a {
    font-size: 0.9rem;
  }

  .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;
    padding: 0.5rem;
  }

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

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

  /* 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;
    padding-bottom: 0.8rem;
  }

  .intro-footer a {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }

  .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;
  }
}
