.facultes-instituts {
  padding: 60px 20px;
  background-image: url('img/bg.jpg'); /* facultatif */
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
}

.fac-wrapper {
  background-color: rgba(255, 255, 255, 0.92); /* ✅ Fond blanc transparent */
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 1300px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.fac-header-box {
  margin-bottom: 40px;
}

.fac-header-box h2 {
  font-size: 36px;
  color: #111;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.fac-subtitle {
  color: #555;
  font-size: 16px;
  text-align: center;
}

.fac-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.fac-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.905);
  width: 270px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}

.fac-box:hover {
  transform: translateY(-6px);
}

.fac-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.fac-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #eaf1ff;
  color: #0047ab;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 15px;
}

.fac-info {
  padding: 20px;
  text-align: left;
}

.fac-info h3 {
  font-size: 18px;
  color: #111;
  margin-bottom: 8px;
}

.fac-info p {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.fac-info a {
  font-size: 14px;
  color: #1a4cc6;
  font-weight: 600;
  text-decoration: none;
}

.fac-info a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .fac-box {
    width: 45%;
  }
}
@media (max-width: 600px) {
  .fac-box {
    width: 100%;
  }
}
