
/**
 * Hello Pomelo – Section Dernières Actualités
 * File: src/css/hp-news.css
 *
 * Grid layout: featured card (left) + secondary cards (right)
 * Responsive: 2 columns desktop → 1 column mobile
 */

:root {
  --hp-pink:    #d4215e;
  --hp-pink-dk: #b81c52;
  --hp-txt:     #1a1a1a;
  --hp-grey:    #e8e8e8;
  --hp-grey-lt: #f5f5f5;
}

/* ── Section ────────────────────────────────── */
.hp-news {
  padding: 72px 24px;
  background: #fff;
}

.hp-news .px-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Header ─────────────────────────────────── */
.hp-news__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.hp-news__header-left {
  flex: 1;
}

.hp-news__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Fustat", sans-serif;
  font-size: var(--space-14, 14px);
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  color: var(--greyscale-grey-800, #272726);
  margin-bottom: 10px;
}

.hp-news__label-icon {
  font-size: 0.8rem;
}

/* .hp-news__title {
  font-family: "Fustat", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--hp-txt);
  margin: 0;
  line-height: 1.2;
} */

.hp-news__header-cta {
  flex-shrink: 0;
  display: inline-block;
  background: var(--hp-pink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.hp-news__header-cta:hover {
  background: var(--hp-pink-dk);
}

/* ── Grille ─────────────────────────────────── */
.hp-news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px;
}

/* ── Carte générique ────────────────────────── */
.hp-news-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}

/* Image wrap */
.hp-news-card__img-link {
  display: block;
  text-decoration: none;
}

.hp-news-card__img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--hp-grey-lt);
  height: 400px;
  width: 100%;
}

.hp-news-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 8px;
}

.hp-news-card__img-link:hover .hp-news-card__img {
  transform: scale(1.04);
}

/* Badge catégorie */
.hp-news-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 1;
}

/* Body */
.hp-news-card__body {
  padding: 20px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Meta (type · date · temps) */
.hp-news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.hp-news-card__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Fustat", sans-serif;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
    background: var(--primary-pink-50, #FFF8FA);
    font-size: var(--space-12, 0.75rem);
    /* blur/blur-100 */
    backdrop-filter: blur(22px);
    color: var(--primary-pink-500, #D9306B);
  border-radius: var(--space-4, 4px);
  padding: 8px;
  white-space: nowrap;
}

.hp-news-card__type > span[aria-hidden],
.hp-news-card__type > span[aria-hidden] svg path{
  stroke: var(--primary-pink-500, #D9306B);
}

.hp-news-card__date,
.hp-news-card__time {
  font-size: 0.875rem;
  color: var(--blue-blue-40, rgba(17, 24, 33, 0.40));
}

.hp-news-card__time {
  display: flex;
  align-items: center;
  gap: var(--space-4, 4px);
  white-space: nowrap;
}

.hp-news-card__time svg {
  display: block;
}

/* Titre */
.hp-news-card__heading {
  font-family: "Fustat", sans-serif;
  font-weight: 500;
  line-height: 100%;
  margin: 0;
  color: var(--greyscale-grey-900, #090A0C);
}

.hp-news-card__heading a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
    font-family: Fustat;
    font-size: var(--space-24, 1.5rem);
}

.hp-news-card__heading a:hover {
  color: var(--hp-pink);
}

.hp-news-card--small .hp-news-card__link{
    color: var(--primary-pink-500, #D9306B);
    font-size: 1rem;
}

.hp-news-card--small .hp-news-card__link:hover{
    text-decoration: underline;
}

/* Extrait (featured seulement) */
.hp-news-card__excerpt {
  font-family: "Fustat", sans-serif;
  font-size: var(--space-16, 16px);
  font-weight: 400;
  line-height: 100%;
  color: var(--greyscale-grey-500, #747472);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lien */
.hp-news-card--featured .hp-news-card__link {
  font-family: "Fustat", sans-serif;
  font-size: var(--space-16, 16px);
  font-weight: 500;
  line-height: 100%;
    color: var(--primary-pink-300, #E883A6);
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.hp-news-card--featured a.hp-news-card__link {
    color: var(--primary-pink-300, #E883A6);
}

.hp-news-card--featured .hp-news-card__link:hover {
  text-decoration: underline;
}

/* ── Carte featured (grande) ────────────────── */
.hp-news-card--featured {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-self: stretch;
  min-height: 560px;
  height: 100%;
  background: #0b0c10;
}

.hp-news-card--featured::after {
  content: '';
  position: absolute;
  inset: 0;
    border-radius: 8px;
    background: linear-gradient(0deg, var(--pink-pink-10, rgba(217, 48, 107, 0.10)) 0%, var(--pink-pink-10, rgba(217, 48, 107, 0.10)) 100%), linear-gradient(270deg, rgba(17, 24, 33, 0.00) 0%, rgba(17, 24, 33, 0.40) 79.83%), linear-gradient(0deg, var(--blue-blue-40, rgba(17, 24, 33, 0.40)) 0%, var(--blue-blue-40, rgba(17, 24, 33, 0.40)) 100%);
    backdrop-filter: blur(7px);
  z-index: 1;
  pointer-events: none;
}

.hp-news-card--featured .hp-news-card__img-link {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
}

.hp-news-card--featured .hp-news-card__img-wrap {
  height: 100%;
  aspect-ratio: auto;
}

.hp-news-card--featured .hp-news-card__img {
  height: 100%;
}

.hp-news-card--featured .hp-news-card__body {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 32px;
  gap: 12px;
}

.hp-news-card--featured .hp-news-card__meta {
  gap: 8px;
}

.hp-news-card--featured .hp-news-card__meta .hp-news-card__type {
    border-radius: var(--space-4, 4px);
    background: rgba(217, 48, 107, 0.10);
    font-size: 0.875rem !important;
    /* blur/blur-100 */
    backdrop-filter: blur(22px);
    color: var(--primary-pink-300, #E883A6);
}

.hp-news-card--featured .hp-news-card__type svg path{
    fill: var(--primary-pink-300, #E883A6);

}

.hp-news-card--featured .hp-news-card__date,
.hp-news-card--featured .hp-news-card__time {
    color: var(--white-white-60, rgba(255, 255, 255, 0.60));
    font-size: var(--space-14, 0.875rem);
}

.hp-news-card--featured .hp-news-card__heading {
  font-size: var(--space-32, 32px);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.32);
}

.hp-news-card--featured .hp-news-card__heading a{
    font-size: var(--space-32, 2rem);
}

.hp-news-card--featured .hp-news-card__heading a:hover {
  color: #fff;
}

.hp-news-card--featured .hp-news-card__excerpt {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}

.hp-news-card--featured .hp-news-card__link {
  color: #fff;
}

/* ── Colonne secondaire ─────────────────────── */
.hp-news__secondary {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hp-news-card--small {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: stretch;
  flex-direction: row;
  gap: 16px;
}

.hp-news-card--small:last-child {
  border-bottom: none;
}

.hp-news-card--small .hp-news-card__img-link {
  flex-shrink: 0;
}

.hp-news-card--small .hp-news-card__img-wrap {
  width: 211px;
  height: 200px;
  border-radius: 8px;
  aspect-ratio: auto;
}

.hp-news-card--small .hp-news-card__img {
  width: 211px;
  height: 200px;
}

.hp-news-card--small .hp-news-card__body {
  padding: 0;
  gap: 16px 24px;
}

.hp-news-card--small .hp-news-card__heading {
  font-size: var(--space-24, 24px);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .hp-news__grid {
    gap: 20px;
  }

  .hp-news__header {
    gap: 20px;
    margin-bottom: 32px;
  }
}

@media (max-width: 768px) {
  .hp-news {
    padding: 40px 24px;
  }

  /* Header : label + titre en colonne, CTA pleine largeur */
  .hp-news__header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .hp-news__header-cta {
    width: 100%;
    text-align: center;
  }

  /* Grille : colonne unique */
  .hp-news__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Carte featured : image pleine largeur avec ratio */
  .hp-news-card--featured {
    min-height: 460px;
  }

  .hp-news-card--featured .hp-news-card__img-wrap {
    height: auto;
    aspect-ratio: auto;
  }

  .hp-news-card--featured .hp-news-card__body {
    padding: 24px;
  }

  .hp-news-card--featured .hp-news-card__heading {
    font-size: var(--space-24, 24px);
  }

  /* Petites cartes : passage en colonne, image pleine largeur */
  .hp-news-card--small {
    flex-direction: column;
    gap: 0;
  }

  .hp-news-card--small .hp-news-card__img-link {
    width: 100%;
  }

  .hp-news-card--small .hp-news-card__img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
  }

  .hp-news-card--small .hp-news-card__img {
    width: 100%;
    height: 100%;
  }

  .hp-news-card--small .hp-news-card__body {
    padding: 16px 0 0;
    gap: 10px;
  }

  .hp-news-card--small .hp-news-card__heading {
    font-size: var(--space-20, 20px);
  }

  /* Image générique pleine largeur */
  .hp-news-card__img-wrap {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
