
html {
  scroll-behavior: smooth;
}

/* ================================================
   CONTENEUR GÉNÉRAL
   ================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================================
   HERO – fond plein écran avec overlay sombre
   ================================================ */
.hero-savoirfaire {
  background:
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url("../assets/images/img/background__projects.jpg") center/cover no-repeat;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}
.hero-savoirfaire h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-savoirfaire .hero-subtitle {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  margin-bottom: 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-savoirfaire .hero-text {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ================================================
   SERVICES
   ================================================ */
/* ================================================
   SERVICES – Flexbox pour centrer la 2ᵉ rangée
   ================================================ */
.services.container {

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 4rem auto;
}

.service-card {
  flex: 0 1 250px;
  max-width: 300px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.service-card img {
  width: 60px;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
  color: #333;
}
.service-card p {
  font-size: .95rem;
  color: #555;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.service-card .btn {
  background: #f5a623;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  align-self: center;
}

/* ================================================
   PROJETS RÉCENTS
   ================================================ */
.projects {
  margin: 4rem auto;
  max-width: 1200px;
  text-align: center;
}
.projects h2 {
  position: relative;
  display: inline-block;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.projects h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #f5a623;
  margin: 0.5rem auto 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}
.project-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.project-card h3 {
  font-size: 1.25rem;
  margin: 1rem;
}
.project-card p {
  font-size: .95rem;
  color: #555;
  margin: 0 1rem 1rem;
}
@media (max-width: 767px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   TÉMOIGNAGES
   ================================================ */
.testimonials {
  margin: 4rem auto;
  max-width: 1200px;
  text-align: center;
  background: #f9f9f9;
  padding: 2rem 0;
}
.testimonials h2 {
  position: relative;
  display: inline-block;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.testimonials h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #f5a623;
  margin: 0.5rem auto 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
}
.testimonial {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #f5a623;
}
.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial footer {
  text-align: right;
  font-weight: bold;
  color: #333;
}

@media (max-width: 767px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   CTA FINAL
   ================================================ */
.cta-final {
  background: #fff7f0;
  text-align: center;
  padding: 3rem 0;
  margin: 4rem 0 0;
}
.cta-final h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cta-final .btn-contact {
  background: #f5a623;
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background .3s;
}
.cta-final .btn-contact:hover {
  background: #d48f17;
}

@media (max-width: 767px) {
  .services.container,
  .projects-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
