/* Suniia — Carte vedette éditoriale (bureau uniquement, mobile masquée) */

/* Masqué par défaut (mobile-first) */
.s-featured-card {
  display: none;
  margin-bottom: 2rem;
}

@media (min-width: 62.5rem) {
  .s-featured-card {
    display: block;
  }

  .s-featured-card__link {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(var(--color-champagne-rgb), 0.12);
    box-shadow: var(--shadow-level-2);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .s-featured-card__link:hover {
    border-color: rgba(var(--color-champagne-rgb), 0.28);
    box-shadow: var(--shadow-level-3);
  }

  /* Image pleine largeur 21:9 */
  .s-featured-card__image {
    width: 100%;
    aspect-ratio: 21 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--color-charcoal);
  }

  /* Fond de secours sans image */
  .s-featured-card__image--no-img {
    background: linear-gradient(
      135deg,
      rgba(var(--color-magenta-rgb), 0.15) 0%,
      rgba(var(--color-charcoal-rgb), 0.80) 60%,
      rgba(var(--color-champagne-rgb), 0.08) 100%
    );
  }

  /* Overlay texte en bas */
  .s-featured-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 2.5rem;
    background: linear-gradient(
      to top,
      rgba(var(--color-obsidian-rgb), 0.92) 0%,
      rgba(var(--color-obsidian-rgb), 0.55) 55%,
      transparent 100%
    );
  }

  .s-featured-card__meta {
    margin-bottom: 0.5rem;
  }

  /* Badge "Featured" */
  .s-featured-card__label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-champagne);
  }

  /* Nom de catégorie */
  .s-featured-card__cat {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 400;
    color: rgba(var(--color-pearl-rgb), 0.50);
    margin-left: 0.75rem;
  }

  .s-featured-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-pearl);
  }

  .s-featured-card__excerpt {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: rgba(var(--color-pearl-rgb), 0.60);
    line-height: 1.55;
    max-width: 620px;
  }

  .s-featured-card__cta {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(var(--color-champagne-rgb), 0.75);
    transition: color 0.2s ease;
  }

  .s-featured-card__link:hover .s-featured-card__cta {
    color: var(--color-champagne);
  }
}
