/* Section principale */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  /* pleine hauteur de l'écran */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-first {
  width: 100%;
  height: 100%;
}

.hero-twoo {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-twoo img {
  width: 100%;
  padding-top: 82px;
  height: 100%;
  object-fit: cover;
  display: block;
}


.hero-twoo .content {
  position: absolute;
  top: 50%;
  border-radius: 50px;
  left: 50%;
  background-color: #0a0a0a83;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 2;
}

.hero-twoo .content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-twoo .content .btn {
  display: inline-block;
  padding: 12px 24px;
  background: #ff6600;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.hero-twoo .content .btn:hover {
  background: #e05500;
}


/* Tablettes */
@media (max-width: 992px) {
  .hero-twoo .content h2 {
    font-size: 2rem;
  }

  .hero-twoo .content .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Mobiles */
@media (max-width: 576px) {
  .hero {
    height: 70vh;
    /* réduire la hauteur sur mobile */
  }

  .hero-twoo .content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .hero-twoo .content .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .hero-twoo .content {
    top: 62%;
  }

  .hero-twoo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}


/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #4a90e2;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn:hover {
  background: #357abd;
}

/* ===== GALLERY ===== */
.team-gallery {
  padding: 60px 20px;
  text-align: center;
}

.team-gallery h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.team-gallery p {
  color: #666;
  margin-bottom: 40px;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* ===== MODAL ===== */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.gallery-modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== CTA ===== */
.cta {
  background: #4a90e2;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}

.cta h2 {
  margin-bottom: 20px;
}

.cta .btn {
  background: #fff;
  color: #4a90e2;
}

.cta .btn:hover {
  background: #e6e6e6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-item img {
    height: 160px;
  }
}