/* === STYLES GLOBAUX === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  color: #222;
  background-color: #f5f8fc;
  line-height: 1.6;
}

/* === HEADER === */
.header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  max-width: 1100px;
  margin: auto;
}

.logo {
  height: 55px;
  width: auto;
}

.nav a {
  margin: 0 12px;
  text-decoration: none;
  color: #003366;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: #e60000;
}

.btn {
  background: #003366;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
}

.btn:hover {
  background: #0055aa;
}

#nav-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #003366;
}

/* === HERO SECTION === */
.hero {
  background: url('../images/bg-clim.jpg') center/cover no-repeat;
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 35, 82, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.btn-primary {
  background: #e60000;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: #ff3333;
}

/* === FEATURES / CARDS === */
.features, .services-detail, .projects, .about, .contact {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

h2, h1 {
  text-align: center;
  color: #003366;
  margin-bottom: 25px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* === FORMULAIRE CONTACT === */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 10px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form button {
  margin-top: 20px;
  cursor: pointer;
  border: none;
}

/* === FOOTER === */
.footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 25px 10px;
  margin-top: 40px;
}

.footer a {
  color: #ffcccc;
  text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav a {
    margin: 10px;
    display: block;
  }

  #nav-toggle {
    display: block;
  }

  .nav.show {
    display: flex;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}
