/* ===================================================== */
/* ================= PAGE PARTENAIRES =================== */
/* ===================================================== */

/* ===== HERO ===== */

.hero-partenaires {
  position: relative;
  background-image: url("../images/partenaire.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 520px;
  padding: 0 20px;
  margin-bottom: 50px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-partenaires::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(59, 47, 47, 0.65),
    rgba(59, 47, 47, 0.45)
  );
}

.hero-partenaires-contenu {
  position: relative;
  max-width: 900px;
  animation: fadeInUp 0.9s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-partenaires h1 {
  font-size: 2.8em;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

.hero-partenaires p {
  color: #f5f1eb;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}


/* ===== SECTION ===== */

.partners-section {
  margin-top: 20px;
}


/* ===== BLOC LOGOS PREMIUM ===== */

.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;

  margin-top: 30px;
  padding: 40px;

  background: linear-gradient(#ffffff, #f5f1eb);
  border-radius: 14px;
  border: 1px solid #ebe3d7;

  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ===== CARTE LOGO ===== */

.partner-card {
  background: white;
  border-radius: 12px;
  padding: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  height: 110px;

  border: 1px solid #ebe3d7;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

/* ===== LOGO DANS CARTE ===== */

.partner-card img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;

  filter: grayscale(100%);
  opacity: 0.7;

  transition: all 0.25s ease;
}

/* ===== HOVER ===== */

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
/* ===== TITRE ===== */

section h2 {
  position: relative;
  margin-bottom: 25px;
}

section h2::after {
  content: "";
  width: 50px;
  height: 3px;
  background: #cbbba5;
  position: absolute;
  bottom: -8px;
  left: 0;
}


/* ===== TEXTE ===== */

section p {
  max-width: 800px;
}


/* ===== NOTE LEGALE ===== */

.partners-note {
  margin-top: 30px;
  font-size: 0.85em;
  color: #6b6b6b;
}


/* ===================================================== */
/* ======================== MOBILE ====================== */
/* ===================================================== */

@media (max-width: 768px) {

  .hero-partenaires {
    min-height: 320px;
  }

  .hero-partenaires h1 {
    font-size: 1.9em;
  }

  .hero-partenaires p {
    font-size: 1em;
  }

  .partners-logos {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding: 25px;
  }

.partner-card {
  height: 90px;
  padding: 15px;
}

.partner-card img {
  max-height: 55px;
}

}
