/* style.css */

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5 {
  font-weight: 600;
}

a {
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0d6efd;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.8rem;
  color: #0d6efd !important;
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: #0d6efd !important;
}
#hero-typing::after {
  content: "|";
  animation: blink 1s infinite;
  color: #fff;
  font-weight: bold;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(251, 174, 9, 0.6), rgba(35, 9, 229, 0.5)), url('../assets/images/bg/bg4.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero h1 {
  font-size: 4.5rem;
}

.hero p {
  font-size: 1.5rem;
  max-width: 600px;
}
.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border: 6px solid #0d6efd;
  border-radius: 20px;
  transition: transform 0.4s ease-in-out;
  transform: rotate(-2deg);
  max-width: 100%;
  height: auto;
}

.about-image-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.about-image-wrapper:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}


/* Services */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
  transition: all 0.3s ease;
}
.service-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid #e0e0e0;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2); /* bleu Bootstrap */
  z-index: 2;
}
.service-card i {
  transition: transform 0.3s ease-in-out, color 0.3s;
}

.service-card:hover i {
  transform: rotate(-5deg) scale(1.2);
  color: #0d6efd; /* Accent bleu */
}
#video-presentation {
  background-color: #111;
}

#video-presentation h2,
#video-presentation p {
  color: #fff;
}
#video-presentation video {
  max-height: 400px;
  object-fit: cover;
}

/* Machines */
.machine-item .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.machine-item .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.machine-item img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  border-bottom: 2px solid #eaeaea;
}
.btn-outline-primary {
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}
.card-img-top {
      height: 220px;
      object-fit: cover;
      border-bottom: 2px solid #eaeaea;
    }
    .machine-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    .machine-card {
      transition: all 0.3s ease;
    }
    .filter-btn.active {
      background-color: #0d6efd;
      color: #fff !important;
    }

/* Team */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-photo {
  height: 300px;
  width: 100%;
  object-fit: cover;
}
.card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease-in-out;
}
.card img {
  height: 220px;
  object-fit: cover;
}
#contact i {
  color: #0d6efd;
}
#contact input, #contact textarea {
  border-radius: .5rem;
}
/* Footer */
.social-icons a {
  transition: transform 0.3s ease, color 0.3s ease;
}
.social-icons a:hover {
  transform: scale(1.2);
  color: #ffc107; /* Jaune Empire */
}

.loader {
  width: 50px;
  height: 50px;
  border: 6px solid #0d6efd;
  border-top: 6px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animation rotation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}