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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9fafb;
}

/* Header */
header {
  background: rgba(36, 36, 36, 0.532);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Logo */
.logo img {
  width: 130px;
  margin: -40px 0;
  display: block;
}

/* Navigation links (Desktop) */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fdda5a;
}

/* Hamburger menu (Mobile) */
.hamburger {
  display: none; 
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #fff; 
  margin: 4px 0;
  transition: 0.4s;
}

/* Sections */
.section {
  padding: 6rem 2rem;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section h1, .section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

.section p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #555;
}

#home {
  background-image: url('assets/home.png');
  background-size: cover;
  background-repeat: no-repeat; 
  color: #fff;
  padding: 8rem 2rem;
  margin-top: -100px;
}

#home h1 {
  font-size: 3.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.812); /* Ombre portée */
}

#home p {
  font-size: 1.2rem;
  color: #ecf0f1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.812); /* Ombre portée */
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: #fdda5a;
  color: #242424;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #fdda5aae;
}

/* Services Section */
#services {
  background-color: #f8f9fa;
  padding: 4rem 0;
}

#services .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

#services h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

#services h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 4px;
  background-color: #3c3c3c;
  margin: 0.5rem auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.service::before {
  content: '✔';
  display: block;
  font-size: 2rem;
  color: #140ac1;
  margin-bottom: 1rem;
}

/* Why Choose Us Section */
#why-choose-us {
  background-color: #ffffff;
  padding: 6rem 0;
  overflow: hidden;
}

#why-choose-us .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

#why-choose-us h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 3rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

#why-choose-us h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 4px;
  background-color: #3c3c3c;
  margin: 0.5rem auto 0;
}

#why-choose-us .features-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

#why-choose-us .feature {
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#why-choose-us .feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: #140ac1;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

#why-choose-us .feature:hover::before {
  transform: scaleY(1);
}

#why-choose-us .feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#why-choose-us .feature-icon {
  width: 60px;
  height: 60px;
  background-color: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

#why-choose-us .feature-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}


#why-choose-us .feature-content h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

#why-choose-us .feature-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Animation au défilement */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#why-choose-us .feature {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

#why-choose-us .feature:nth-child(1) {
  animation-delay: 0.2s;
}
#why-choose-us .feature:nth-child(2) {
  animation-delay: 0.4s;
}
#why-choose-us .feature:nth-child(3) {
  animation-delay: 0.6s;
}
#why-choose-us .feature:nth-child(4) {
  animation-delay: 0.8s;
}
#why-choose-us .feature:nth-child(5) {
  animation-delay: 1s;
}



/* Contact Section */
#contact {
  background-color: #2e2e2e;
  color: #fff;
  padding: 6rem 2rem;
  text-align: center;
}

#contact h2 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

#contact .contact-intro {
  font-size: 1.1rem;
  color: #b9b9b9;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

#contact .contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

#contact .contact-info,
#contact .contact-form {
  flex: 1;
  min-width: 280px;
}

#contact .contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

#contact .contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#contact .contact-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#contact .contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

#contact .contact-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

#contact .contact-item:hover .contact-icon {
  background: linear-gradient(135deg, #0056b3, #003d80);
}

#contact .contact-details {
  text-align: left;
}

#contact .contact-details p {
  font-size: 1rem;
  color: #b9b9b9;
  margin: 0;
  line-height: 1.6;
}

#contact .contact-details a {
  color: #fdda5a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

#contact .contact-details a:hover {
  color: #fdda5aae;
}

#contact .contact-form {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#contact .contact-form h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

#contact .form-group {
  margin-bottom: 1.5rem;
}

#contact .form-group input,
#contact .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact .form-group input:focus,
#contact .form-group textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
  outline: none;
}

#contact .form-group textarea {
  resize: vertical;
  min-height: 150px;
}

#contact .btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

#contact .btn:hover {
  background: linear-gradient(135deg, #0056b3, #003d80);
  transform: translateY(-2px);
}

#contact .contact-map {
  margin-top: 3rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#contact .contact-outro {
  font-size: 1.1rem;
  color: #b9b9b9;
  max-width: 800px;
  margin: 2rem auto 0;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  #contact .contact-content {
    flex-direction: column;
  }

  #contact .contact-item {
    flex-direction: column;
    text-align: center;
  }

  #contact .contact-details {
    text-align: center;
  }
}



/* Footer */
footer {
  background-color: #ffffff;
  color: #2e2e2e;
  text-align: center;
  padding: 1.5rem 0;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {

  #home {
    margin-top: -90px;
  }

  #home h1 {
    font-size: 45px;
  }


  nav ul {
      flex-direction: column;
      align-items: center;
  }

  .section h1, .section h2 {
      font-size: 2rem;
  }

  .service {
      margin: 1rem 0;
  }

  #why-choose-us .feature {
    flex-direction: column;
    text-align: center;
  }

  #why-choose-us .feature-icon {
    margin-bottom: 1rem;
  }

  #contact .contact-item {
    flex-direction: column;
    text-align: center;
  }

  #contact .contact-icon {
    margin-bottom: 1rem;
  }

  #contact .contact-content {
    flex-direction: column;
  }

  #contact .contact-item {
    flex-direction: column;
    text-align: center;
  }

  #contact .contact-icon {
    margin-bottom: 1rem;
  }

  .hamburger {
    display: flex; /* Affiche le bouton hamburger en mode mobile */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Cache le menu hors de l'écran */
    height: 100vh;
    width: 60%;
    background-color: rgba(36, 36, 36, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: right 0.3s ease-in-out;
    z-index: 999;
  }

  .nav-links.active {
    right: 0; /* Fait glisser le menu vers l'intérieur */
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .nav-links a {
    color: #fff;
    font-size: 1.2rem;
  }

  /* Animation pour transformer le hamburger en croix */
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-10px, 5px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-10px, -5px);
  }
}
