/* Actualités — showcase immersif (accueil + page) */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

.news-showcase {
  --ns-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ns-rose: var(--rotaract-rose, #D41367);
  --ns-text: var(--dark-color, #1a1a1a);
  --ns-muted: var(--secondary-color, #5a6f80);
  position: relative;
  overflow: clip;
}

.news-showcase__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(212, 19, 103, 0.07), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(23, 69, 143, 0.05), transparent 50%);
}

.news-showcase--home {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
  background: linear-gradient(180deg, #fdf8fa 0%, #fff 100%);
}

.news-showcase--page {
  background: #f6f8fb;
  min-height: 60vh;
}

.news-showcase__hero {
  position: relative;
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(155deg, #0f1118 0%, #1a1228 50%, #2d0f3a 100%);
  color: #fff;
  overflow: hidden;
}

.news-showcase__hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}

.news-showcase__hero-orb--1 {
  width: 40vw;
  height: 40vw;
  max-width: 400px;
  top: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(212, 19, 103, 0.5), transparent 70%);
}

.news-showcase__hero-orb--2 {
  width: 30vw;
  height: 30vw;
  max-width: 300px;
  bottom: -15%;
  left: -5%;
  background: radial-gradient(circle, rgba(23, 69, 143, 0.4), transparent 70%);
}

.news-showcase__header {
  position: relative;
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.news-showcase__header--center {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.news-showcase__header--light .news-showcase__eyebrow { color: rgba(255, 255, 255, 0.65); }
.news-showcase__header--light .news-showcase__title { color: #fff; }
.news-showcase__header--light .news-showcase__title em { color: #f5c4d8; }
.news-showcase__header--light .news-showcase__lead { color: rgba(255, 255, 255, 0.78); }

.news-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ns-rose);
  margin-bottom: 0.75rem;
}

.news-showcase__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ns-text);
  margin-bottom: 0.75rem;
}

.news-showcase__title em {
  font-style: italic;
  color: var(--ns-rose);
}

.news-showcase__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ns-muted);
  margin: 0;
}

[data-ns-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ns-spring), transform 0.8s var(--ns-spring);
  transition-delay: var(--ns-delay, 0ms);
}

[data-ns-reveal].ns-visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Cards —— */
.news-showcase__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-showcase__grid--home {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-showcase__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(212, 19, 103, 0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(90, 111, 128, 0.07);
  transition: transform 0.45s var(--ns-spring), box-shadow 0.45s ease;
  height: 100%;
}

.news-showcase__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(90, 111, 128, 0.12);
}

.news-showcase__card--featured {
  grid-column: 1 / -1;
}

@media (min-width: 992px) {
  .news-showcase__card--featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 320px;
  }
}

.news-showcase__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-showcase__card--featured .news-showcase__card-link {
  flex-direction: row;
}

@media (max-width: 991px) {
  .news-showcase__card--featured .news-showcase__card-link {
    flex-direction: column;
  }
}

.news-showcase__card-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f2f5;
}

.news-showcase__card--featured .news-showcase__card-visual {
  aspect-ratio: auto;
  min-height: 220px;
}

.news-showcase__card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ns-spring);
}

.news-showcase__card:hover .news-showcase__card-visual img {
  transform: scale(1.05);
}

.news-showcase__card-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ns-rose);
  backdrop-filter: blur(8px);
}

.news-showcase__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.5rem 1.5rem;
}

.news-showcase__card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--ns-muted);
  margin-bottom: 0.65rem;
}

.news-showcase__card-meta i {
  color: var(--ns-rose);
}

.news-showcase__card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ns-text);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.news-showcase__card--featured .news-showcase__card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

.news-showcase__card:hover .news-showcase__card-title {
  color: var(--ns-rose);
}

.news-showcase__card-excerpt {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ns-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.news-showcase__card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ns-rose);
  margin-top: auto;
}

.news-showcase__footer {
  text-align: center;
  margin-top: 2.5rem;
}

.news-showcase__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--ns-rose);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.35s var(--ns-spring), box-shadow 0.35s ease;
}

.news-showcase__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 19, 103, 0.3);
  color: #fff !important;
}

/* —— Page layout —— */
.news-showcase__page-body {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(4rem, 8vw, 5rem);
}

.news-showcase__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .news-showcase__layout {
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
  }
}

.news-showcase__main-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-showcase__sidebar {
  position: sticky;
  top: calc(var(--site-chrome-height, 0px) + 1rem);
}

.news-showcase__search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.news-showcase__search input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  font-size: 0.92rem;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-showcase__search input:focus {
  outline: none;
  border-color: var(--ns-rose);
  box-shadow: 0 0 0 3px rgba(212, 19, 103, 0.12);
}

.news-showcase__search button {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--ns-rose);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.news-showcase__panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.15rem;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(90, 111, 128, 0.05);
}

.news-showcase__panel h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ns-text);
}

.news-showcase__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.news-showcase__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(212, 19, 103, 0.15);
  background: #fff;
  color: var(--ns-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-showcase__cat:hover,
.news-showcase__cat.is-active {
  background: var(--ns-rose);
  border-color: var(--ns-rose);
  color: #fff;
}

.news-showcase__cat .badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.news-showcase__cat.is-active .badge {
  background: rgba(255, 255, 255, 0.25);
}

.news-showcase__recent-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.news-showcase__recent-item:last-child {
  border-bottom: none;
}

.news-showcase__recent-item:hover {
  opacity: 0.8;
}

.news-showcase__recent-thumb {
  width: 4rem;
  height: 4rem;
  border-radius: 0.65rem;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f2f5;
}

.news-showcase__recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-showcase__recent-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ns-text);
  margin-bottom: 0.25rem;
}

.news-showcase__recent-date {
  font-size: 0.75rem;
  color: var(--ns-muted);
}

.news-showcase__empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ns-muted);
  background: #fff;
  border-radius: 1.15rem;
  border: 1px dashed rgba(212, 19, 103, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  [data-ns-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .news-showcase__card:hover { transform: none; }
}
