/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f7f9fb;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background-color: #003366;
  padding: 1rem 2rem;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #ffcc00;
}
.logo {
  height: 50px;
}
.tel {
  font-weight: bold;
  color: #ffd700;
  margin-top: 10px;
}

/* Jumbotron */
.jumbotron {
  position: relative;
  text-align: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #001f3f;
}
.jumbotron-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: 1;
}
.jumbotron-content {
  position: relative;
  z-index: 2;
  color: white;
}
.jumbotron-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.jumbotron-content p {
  font-size: 1.25rem;
}

/* Sections */
.services-section,
.galerie,
.contact-section,
.rgpd {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #003366;
}

/* Travaux */
.service-bloc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  gap: 2rem;
}
.service-bloc.reverse {
  flex-direction: row-reverse;
}
.service-text {
  flex: 1 1 50%;
}
.service-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #005288;
}
.service-text p {
  font-size: 1rem;
}
.service-img {
  flex: 1 1 45%;
  text-align: center;
}
.service-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Galerie */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.gallery-grid figure {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}
.gallery-grid img {
  width: 100%;
  border-radius: 6px;
}
.gallery-grid figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #333;
}

/* Contact */
.contact-section form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-section input,
.contact-section textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.contact-section .btn {
  background: #0066cc;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}
.contact-section .btn:hover {
  background: #004c99;
}

/* Scroll to top */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #438fdb;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: none;
  z-index: 1000;
}
#scrollToTopBtn:hover {
  background: #004999;
}

/* Footer */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Fade-in animation */
.fade-in {
  animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .service-bloc {
    flex-direction: column;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .jumbotron-content h1 {
    font-size: 2rem;
  }
  .jumbotron-content p {
    font-size: 1rem;
  }
}
