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

body {
  font-family: 'Poppins', sans-serif;
  background: #f9fafc;
  color: #222;
  scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s ease;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 800;
  font-size: 2rem;
  color: white;
  letter-spacing: 2px;
}

nav a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #00b3ff;
}

/* HERO */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  background: url("img.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

/* Dégradé bas */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #f9fafc 100%);
}

.hero-content {
  position: relative;
  color: white;
  max-width: 750px;
  animation: fadeIn 1.5s ease forwards;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.3rem;
  margin: 1rem 0;
}

.hero button {
  padding: 14px 28px;
  border: none;
  background: linear-gradient(90deg, #0099ff, #00ccff);
  color: white;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.hero button:hover {
  transform: scale(1.05);
}

/* SECTIONS */
.section {
  padding: 120px 20px;
  text-align: center;
}

.section:first-of-type {
  margin-top: -80px; /* remonte légèrement sous le dégradé */
}

.section.light {
  background: #eef3f8;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 280px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  border: none;
}

footer {
  padding: 25px;
  background: #111;
  color: white;
  text-align: center;
}

/* Animation */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  gap: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.menu-toggle .bar {
  width: 22px;
  height: 2px;
  background: white;
  display: block;
  border-radius: 2px;
}

/* Responsive rules */
@media (max-width: 900px) {
  .logo {
    font-size: 1.3rem;
  }

  .navbar {
    padding: 0.8rem 1rem;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    background: rgba(0,0,0,0.9);
    padding: 12px 16px;
    border-radius: 8px;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  }

  .navbar.open nav {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    height: 60vh;
    min-height: 320px;
    padding: 0 12px;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 80px 16px;
  }

  .cards {
    gap: 18px;
  }

  .map-container iframe {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.6rem 0.8rem;
  }
  .logo {
    font-size: 1rem;
  }

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

  .hero-content {
    padding: 0 8px;
  }

  .card {
    width: 100%;
    padding: 20px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }
}