*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #111827;
  padding-top: 80px; /* espace pour la navbar fixe */
}

/* CONTAINER GÉNÉRAL */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e40af;
}

.logo span {
  color: #2563eb;
}

/* Liens navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #4b5563;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* Boutons */
.btn-primary,
.btn-secondary,
.btn-demande {
  display: inline-block;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.btn-primary {
  background: #f97316;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.btn-secondary:hover {
  opacity: 0.9;
}

.btn-demande {
  background: #f97316;
  color: #ffffff;
}

/* SECTIONS GÉNÉRALES */
.section {
  padding: 3.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-alt {
  background: #ffffff;
}

/* TITRES */
.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  margin-bottom: 1.5rem;
  color: #4b5563;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
}

.hero-content {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-phone {
  font-size: 0.95rem;
}

.hero-phone span {
  font-weight: 700;
}

/* Carte urgence */
.hero-card {
  background: #ffffff;
  color: #111827;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.hero-card h2 {
  margin-bottom: 0.75rem;
}

/* ABOUT */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: flex-start;
}

.about-highlight {
  background: #eff6ff;
  border-radius: 0.9rem;
  padding: 1.25rem;
}

.about-highlight ul {
  list-style: none;
}

.about-highlight li {
  margin-bottom: 0.6rem;
}

.about-highlight li::before {
  content: "✔";
  margin-right: 0.5rem;
  color: #16a34a;
}

/* SERVICES */
/* Conteneur des cartes */
.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  background: #fff;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* Image moitié gauche */
.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: .8rem;
}

/* Zone texte moitié droite */
.service-text {
  display: flex;
  flex-direction: column;
}

.service-text h3 {
  margin-bottom: .4rem;
  font-size: 1.2rem;
}

.service-text p {
  color: #4b5563;
  font-size: .95rem;
  line-height: 1.5;
}


/* .services-grid { */
/*   display: grid; */
/*   grid-template-columns: repeat(4, minmax(0, 1fr)); */
/*   gap: 1.5rem; */
/* } */

/* .service-card { */
/*   background: #ffffff; */
/*   border-radius: 0.9rem; */
/*   padding: 1.3rem; */
/*   box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); */
/*   transition: transform 0.15s ease, box-shadow 0.15s ease; */
/* } */


/* .service-card h3 { */
/*   margin-bottom: 0.6rem; */
/*   font-size: 1.05rem; */
/* } */

/* .service-card p { */
/*   font-size: 0.9rem; */
/*   color: #4b5563; */
/* } */

/* .service-card:hover { */
/*   transform: translateY(-4px); */
/*   box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16); */
/* } */

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.contact-note {
  background: #eff6ff;
  border-radius: 0.9rem;
  padding: 1.25rem;
}

/* FORMULAIRE DEMANDE */
.form-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb20;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #4b5563;
}

/* FOOTER */
.footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 1rem 0;
}

.footer-content {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content,
  .about-content,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-content {
    gap: 0.75rem;
    padding: 0 1rem;
  }
}

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

  .nav-content {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0.6rem 1rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .btn-demande {
    align-self: flex-end;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

.navbar.hide {
  transform: translateY(-100%);
  transition: transform .3s ease;
}
