/* Styles généraux */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  color: #343a40;
  line-height: 1.6;
  overflow-x: hidden; /* Empêche le débordement horizontal */
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.home {
  padding: 100px 20px;
  margin: auto;
  text-align: center;
}

/* Style Accueil */
#home {
  background: url("images/hero-bg.jpg") no-repeat center center/cover;
  height: 100vh;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 24px;
  margin-bottom: 40px;
}

.btn {
  background-color: #007bff;
  color: white;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-back {
  background-color: #6c757d;
  color: white;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-back:hover {
  background-color: #5a6268;
}

.btn:hover {
  background-color: #0056b3;
}

/* Style Projets */
#projects .section-header h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 10px;
}

#projects .section-header p {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 50px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.project-item h3 {
  font-size: 24px;
  padding: 20px;
}

.project-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Style Contact */
#contact .section-header h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 10px;
}

#contact .section-header p {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 30px;
}

.contact-content p {
  font-size: 18px;
  color: #007bff;
}

.contact-content a {
  font-weight: 600;
  color: #007bff;
}

.contact-content a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #343a40;
  color: white;
  padding: 20px;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 14px;
}

/* Styles Responsives */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 16px;
  }

  .section {
    padding: 60px 20px;
  }

  #projects .section-header h2 {
    font-size: 28px;
  }

  #projects .section-header p {
    font-size: 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-item h3 {
    font-size: 20px;
    padding: 15px;
  }

  .contact-content p {
    font-size: 16px;
  }

  .contact-content a {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .section {
    padding: 40px 20px;
  }

  #projects .section-header h2 {
    font-size: 24px;
  }

  #projects .section-header p {
    font-size: 14px;
  }

  .projects-grid {
    gap: 15px;
  }

  .project-item h3 {
    font-size: 18px;
    padding: 10px;
  }

  .contact-content p {
    font-size: 14px;
  }

  .contact-content a {
    font-size: 14px;
  }
}
