/* --- Header --- */
header.blockhead {
  padding-top: 10rem;
  padding-bottom: calc(10rem - 4.5rem);
  background: linear-gradient(to bottom, rgba(92, 77, 66, 0.8) 0%, rgba(92, 77, 66, 0.8) 100%), url("../assets/img/blockchain.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
header.blockhead h1, header.blockhead .h1 {
  font-size: 2.25rem;
}

/* --- Cartes presse (style clair et image de fond) --- */
.press-card {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.press-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(16, 24, 40, .1);
}

/* Image de fond */
.press-media {
  position: relative;
  height: 220px;
  background-image: var(--press-bg);
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
}

/* Voile sombre (réglable) */
.press-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--press-overlay, 0.45));
  z-index: 0;
}

/* Titre + date + tags */
.press-top {
  position: relative;
  z-index: 1;
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.press-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #0a2540;
  border: 1px solid rgba(2, 60, 187, 0.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.press-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
  max-width: 85%;
}

.press-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.press-tag {
  background: #eef4ff;
  color: #1f51ff;
  border: 1px solid rgba(31, 81, 255, .18);
  padding: 4px 8px;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 600;
}

/* Corps de carte */
.press-body {
  padding: 16px 18px 18px;
  border-top: 1px solid #eef2f6;
  background: #fafcff;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}
.press-desc {
  color: #475467;
  margin: 6px 0 16px;
}
.press-btn {
  align-self: flex-start;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

/* Responsive douce */
@media (min-width: 992px) {
  .press-col { display: flex; }
  .press-card { width: 100%; }
}
