/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global */
body {
  font-family: 'Arial', sans-serif;
  background: #f4f6f9;
  color: #222;
  scroll-behavior: smooth;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 20px 40px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  height: 60px;
}

.nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-weight: bold;
  color: #000;
  white-space: nowrap;
}

.nav a:hover {
  color: #007BFF;
}

/* Hero */
.hero {
  position: relative;
  height: 80vh;
  background: url('Escaliers suspendus.jpeg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  padding: 50px;
  text-align: center;
  color: white;
  border-radius: 10px;
}

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

.hero-buttons {
  margin-top: 20px;
}

.btn {
  padding: 12px 24px;
  margin: 10px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid #007BFF;
  transition: 0.3s ease;
}

.btn.white {
  background-color: #007BFF;
  color: white;
}

.btn.white:hover {
  background-color: transparent;
  color: white;
}

.btn.outline {
  background-color: #007BFF;
  color: white;
}

.btn.outline:hover {
  background-color: transparent;
  color: white;
}

/* Sections */
section {
  padding: 80px 20px;
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Services */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.grid span {
  background: #eef2f7;
  padding: 15px;
  border-radius: 10px;
}

/* Réalisations */
.grid.images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.grid.images div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  padding: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 300px;
  margin: 0 auto;
}

.grid.images div:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.grid.images img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
}

.grid.images p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #222;
  margin: 0;
}

/* À propos */
#apropos {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

#apropos h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#apropos p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #222;
  margin: 0 auto 1.5rem auto;
  max-width: 1000px;
}

/* Formulaire */
form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

form button {
  background-color: #007BFF;
  color: white;
  padding: 12px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #0056b3;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  font-size: 16px;
  text-align: center;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-line i {
  font-size: 18px;
  color: #007BFF;
}

.contact-line a {
  color: #007BFF;
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

/* Carte Google */
.map-container {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Avis clients */
#avis {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 20px;
}

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

.avis-grid blockquote {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  font-style: italic;
  color: #333;
  transition: transform 0.3s ease;
}

.avis-grid blockquote:hover {
  transform: translateY(-5px);
}

/* Footer */
.footer {
  background: #f5f5f5;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  color: #333;
}

.footer nav {
  margin-top: 10px;
}

.footer nav a {
  color: #007BFF;
  text-decoration: none;
  margin: 0 8px;
}

.footer nav a:hover {
  text-decoration: underline;
}

.footer .socials {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer .socials a {
  font-size: 28px;
  color: #0056b3;
  transition: transform 0.2s ease, color 0.3s ease;
}

.footer .socials a:hover {
  transform: scale(1.2);
  color: #007bff;
}

/* Bouton retour haut */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #007BFF;
  color: white;
  padding: 12px 14px;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: background 0.3s ease;
  z-index: 999;
  display: none;
}

.back-to-top:hover {
  background: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
  }

  .logo {
    height: 50px;
  }

  .nav {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
    align-items: center;
  }

  .hero {
    height: auto;
    padding: 60px 20px;
    text-align: center;
  }

  .hero-overlay {
    padding: 30px 15px;
  }

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

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  section {
    padding: 50px 15px;
  }

  .grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .grid.images {
    padding: 1.5rem 0;
  }

  #apropos p {
    text-align: center;
  }

  .contact-info {
    font-size: 15px;
    text-align: left;
    padding: 0 10px;
  }

  .footer nav {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .footer .socials {
    margin-top: 15px;
  }

  .avis-grid blockquote {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* === MENU HAMBURGER === */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 22px;
  justify-content: center;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-top: 10px;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-top: 15px;
  }

  .nav.nav-active {
    display: flex;
  }
}
