/* ==========================================================================
   Tizipedia — Page Actualités & ressources (D-35)
   Une (deux colonnes sur desktop) puis grille des autres articles.
   ========================================================================== */

/* Signature éditoriale agrandie (D-36) : élément graphique du hero. */
.news-intro__motto {
  position: relative;
  max-width: 30ch;
  margin-top: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  padding-left: var(--space-5);
  color: var(--color-green-stronger);
  font-family: var(--font-heading);
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.news-intro__motto::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--color-green), var(--color-blue));
}

/* --- Hero : composition éditoriale à droite (couvertures existantes) ----- */
.news-intro .page-intro__decor {
  display: none;
}

.news-intro .page-intro__inner {
  display: grid;
  column-gap: clamp(2.5rem, 1rem + 4vw, 5rem);
  align-items: center;
}

.news-intro .breadcrumbs {
  grid-column: 1 / -1;
}

.news-hero-visual {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto 0;
  aspect-ratio: 6 / 5;
}

.news-hero-visual__shape {
  position: absolute;
  z-index: 0;
  inset: 10% 2% 6% 14%;
  border-radius: 40px;
  background: linear-gradient(140deg, rgb(10 182 46 / 0.16), rgb(1 91 153 / 0.14));
  transform: rotate(-3deg);
}

.news-hero-visual__img {
  position: absolute;
  object-fit: cover;
  border: 5px solid var(--color-surface);
  box-shadow: var(--shadow-lift);
}

.news-hero-visual__img--main {
  z-index: 2;
  top: 18%;
  left: 0;
  width: 66%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
}

.news-hero-visual__img--top {
  z-index: 1;
  top: 0;
  right: 0;
  width: 44%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  transform: rotate(3deg);
}

.news-hero-visual__img--bottom {
  z-index: 3;
  right: 6%;
  bottom: 0;
  width: 46%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  transform: rotate(-2deg);
}

@media (min-width: 60em) {
  .news-intro .page-intro__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 32rem);
  }

  .news-hero-visual {
    margin-top: 0;
  }
}

/* --- À la une ------------------------------------------------------------ */
.news-featured-slot {
  margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.news-featured {
  position: relative;
  display: grid;
  gap: var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  background: linear-gradient(120deg, #ffffff 0%, #ffffff 55%, var(--color-mist-blue) 100%);
  box-shadow: var(--shadow-soft);
}

/* Illustration affichée au plus à sa taille native (480 px). */
.news-featured__media {
  overflow: hidden;
  width: 100%;
  max-width: 30rem;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--color-mist-blue);
}

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

.news-featured__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 0 var(--space-2) var(--space-2);
}

.news-featured__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-blue);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 750;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.news-featured__label::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-green);
}

.news-featured__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.news-featured__excerpt {
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.news-featured__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--fs-small);
}

.news-featured__cta {
  position: static;
  margin-top: var(--space-2);
}

/* Toute la carte est une seule zone de navigation : le lien « Lire l'article »
   (unique lien de la carte) est étiré sur l'ensemble du bloc (D-36). */
.news-featured__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius-panel);
}

.news-featured {
  transition: box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}

.news-featured:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

/* Pas de transform sur le bouton : un transform ferait du bouton le bloc
   conteneur de la zone étirée (::after), qui rétrécirait au clic. */
.news-featured:hover .news-featured__cta,
.news-featured__cta:active {
  --btn-bg: var(--color-blue-strong);
  transform: none;
}

.news-featured:has(.news-featured__cta:focus-visible) {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

.news-featured__media img {
  transition: transform var(--duration-reveal) var(--ease-out);
}

.news-featured:hover .news-featured__media img {
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .news-featured:hover,
  .news-featured:hover .news-featured__media img {
    transform: none;
  }
}

.news-page__title {
  margin-bottom: var(--space-6);
  font-size: var(--fs-h3);
}

/* Grille (D-37) : 3 colonnes desktop, 2 tablette, 1 mobile (composant .news__grid). */

@media (min-width: 60em) {
  .news-featured {
    grid-template-columns: 30rem minmax(0, 1fr);
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: center;
    padding: var(--space-5);
  }

  .news-featured__body {
    padding: var(--space-4) var(--space-4) var(--space-4) 0;
  }
}
