/* === STYLES GÉNÉRAUX === */
body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f7f7;
}

/* === EN-TÊTE === */
header {
  background: #0078d7;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
}

header p {
  margin-top: .5rem;
  font-size: 1.1rem;
}

/* === NAVIGATION === */
nav {
  background: #005fa3;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 1rem;
  transition: 0.3s;
}

nav a:hover {
  background: #004c82;
  border-radius: 5px;
}

/* === SECTIONS === */
section {
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

h2 {
  color: #0078d7;
  margin-bottom: 1rem;
}

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

.service {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.service h3 {
  color: #005fa3;
}

/* === SECTION CONTACT === */
.contact {
  background: #0078d7;
  color: white;
  border-radius: 10px;
  padding: 2rem 1rem;
}

.contact a {
  color: #fff;
  text-decoration: underline;
}

/* === PIED DE PAGE === */
footer {
  background: #004c82;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }

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

  .service {
    padding: 1rem;
  }

  section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.6rem;
  }

  header p {
    font-size: 1rem;
  }

  .services {
    grid-template-columns: 1fr;
  }
}
