/* Général */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f7f7;
    color: #333;
  }
  
  /* Top navigation */
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .logo {
    height: 60px;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
  }
  
  nav a {
    text-decoration: none;
    color: #0a2f5c;
    font-weight: 600;
    font-size: 16px;
  }
  
  /* Hero Section */
  .hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
  }
  
  .hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 10px;
  }
  
  /* Sections */
  .section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
    background: white;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #0a2f5c;
  }
  
  /* Cards métiers */
  .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  
  .card {
    background-color: #f0f4f9;
    border-radius: 10px;
    overflow: hidden;
    width: 260px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .card h3 {
    margin: 15px 0 10px 0;
    color: #1e3a8a;
  }
  
  .card p {
    padding: 0 10px 20px 10px;
    font-size: 14px;
  }
  
  /* Galerie réalisations */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  /* Formulaire de contact */
  form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  form input,
  form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
  
  form button {
    padding: 15px;
    background-color: #1e3a8a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  form button:hover {
    background-color: #163374;
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    background-color: #0a2f5c;
    color: white;
  }

/* Bouton devis dans la nav */
.btn-devis {
  background-color: #1e3a8a;
  color: white !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}
.btn-devis:hover {
  background-color: #163374;
}

/* Bouton devis dans le hero (grand bouton call-to-action) */
.btn-devis-large {
  display: inline-block;
  margin-top: 20px;
  background-color: #007acc;
  color: white !important;
  padding: 14px 28px;
  font-size: 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.btn-devis-large:hover {
  background-color: #005ea3;
}

/* Responsive menu fix */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-left: 20px;
  }

  nav ul li {
    margin-bottom: 10px;
  }

  .btn-devis {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
  }

  .btn-devis-large {
    font-size: 16px;
    padding: 12px 24px;
  }
}


/* Menu hamburger */
.menu-icon {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #1e3a8a;
  margin-left: auto;
  padding-right: 20px;
}

#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .top-bar {
    flex-wrap: wrap;
    align-items: center;
  }

  .menu-icon {
    display: block;
  }

  nav ul.menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  #menu-toggle:checked + .menu-icon + nav ul.menu {
    display: flex;
  }

  nav ul.menu li {
    margin: 10px 0;
  }

  .btn-devis {
    font-size: 15px;
    padding: 10px 16px;
  }
}
