cards · featured

Card featured grand format

Grande carte avec image plein cadre et contenu en surimpression. Pour mettre en avant UN projet phare, pas une liste.

Effets

Voir le code source
<style>
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600&display=swap');

.bn-card-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  max-width: 480px;
  min-height: 380px;
  padding: 2.5rem;

  font-family: 'Inter', sans-serif;
  background-size: cover;
  background-position: center;

  border-radius: 4px;
  overflow: hidden;

  --fx-shadow: none;
  --fx-glow: none;
  box-shadow: var(--fx-shadow), var(--fx-glow);
  transition: box-shadow 0.3s ease;
}

.bn-card-featured.fx-shadow {
  --fx-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

.bn-card-featured.fx-glow {
  --fx-glow: 0 0 90px 6px rgba(230, 228, 221, 0.15);
}

/* Voile sombre en dégradé pour garder le texte lisible, quelle que
   soit la clarté de l'image posée derrière */
.bn-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 8, 0.92), transparent 65%);
}

.bn-card-featured__kicker,
.bn-card-featured__title,
.bn-card-featured__text,
.bn-card-featured__btn {
  position: relative;
}

.bn-card-featured__kicker {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C7C1B7;
  margin-bottom: 0.6rem;
}

.bn-card-featured__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: #E6E4DD;
  margin: 0 0 0.75rem;
}

.bn-card-featured__text {
  color: #C7C1B7;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 340px;
  margin: 0 0 1.5rem;
}

.bn-card-featured__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;

  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(230, 228, 221, 0.4);
  border-radius: 999px;

  color: #E6E4DD;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;

  transition: border-color 0.2s ease, background 0.2s ease;
}

.bn-card-featured__btn:hover {
  border-color: #E6E4DD;
  background: rgba(230, 228, 221, 0.08);
}

</style>

<article class="bn-card-featured" data-fx-root style="background-image: url('https://placehold.co/900x600');">
  <span class="bn-card-featured__kicker">Projet phare</span>
  <h2 class="bn-card-featured__title">Horizons perdus</h2>
  <p class="bn-card-featured__text">
    Un voyage visuel au cœur de paysages oubliés, là où le temps semble suspendu.
  </p>
  <a href="#" class="bn-card-featured__btn">Explorer le projet →</a>
</article>