/* Import de la police */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

/* En-tête */
/* Style du header */
header {
  background-color: #222;
  color: #fff;
  padding: 1em 0;
  font-size: 20px;
  text-align: center;
}

/* Centrer l'image + taille fixe */
header img {
  display: block;
  margin: 0 auto;   /* centre horizontalement */
  width: 120px;
  height: 120px;
  object-fit: contain; /* garde le bon ratio sans déformation */
}

header .logo {
  margin: 0;
  font-size: 1.5em;
}

h1 {
  text-align: center;
}

/* Conteneur général */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* en dessous du H1 */
.sous-titre {
  margin-top: 5px;
  font-size: 1rem;
  color: #ddd;
  font-weight: 400;
}



nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 1.5em;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* Section Hero */
.hero {
  background: url('fond_container1.png') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

.btn {
  background: #e67e22;
  color: white;
  padding: 0.8em 1.5em;
  text-decoration: none;
  border-radius: 5px;
}

/* Sections */
section {
  padding: 60px 0;
}

.about,
.services,
.projects,
.contact {
  background: #f9f9f9;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
}

/* Cartes de service */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: white;
  padding: 20px;
  flex: 1 1 250px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Galerie */
.projects img {
  width: 100%;
  max-width: 300px;
  object-fit: cover;
  border-radius: 5px;
}

/* Formulaire */
form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 500px;
  margin: auto;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* Pied de page */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-end;
  }

  .hero {
    padding: 60px 20px;
  }

  .grid {
    flex-direction: column;
    align-items: center;
  }
  
  header img {
    max-width: 180px;   /* Taille réduite sur tablette/mobile */
  }
}

@media (max-width: 480px) {
  header img {
    max-width: 140px;   /* Taille encore plus réduite sur smartphone */
  }
}