/* ============================================================
   PIF GADGET - page actualités
   Commun (couleurs, header, bandeau de page, filtres, newsletter,
   pied de page) : assets/site.css.
   ============================================================ */

/* ---------- Pastilles de rubrique ---------- */

.cat {
  display: inline-block;
  font-family: var(--titre);
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  border: 2px solid transparent;
}

.cat--articles   { background: var(--encre); color: var(--blanc); }
.cat--jeux       { background: var(--jaune); color: var(--encre); border-color: var(--encre); }
.cat--evenements { background: var(--rouge); color: var(--blanc); }
.cat--interview  { background: var(--blanc); color: var(--encre); border-color: var(--encre); }
.cat--magazines  { background: var(--jaune); color: var(--encre); border-color: var(--rouge); }
.cat--autres     { background: #EEF1F5; color: var(--encre-60); border-color: var(--bord); }

/* ---------- À la une ---------- */

.alaune {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: var(--ombre);
}

.alaune__visuel img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 0 rgba(0,19,38,.10), 0 26px 44px -18px rgba(0,19,38,.5);
  rotate: -1.5deg;
}

.alaune__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 14px;
  font-family: var(--titre);
  font-size: .86rem;
  color: var(--encre-60);
}

.alaune h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
}

.alaune p { margin: 14px 0 0; max-width: 60ch; color: var(--encre-60); }

.alaune .btn { margin-top: 22px; padding: 11px 20px; font-size: .74rem; }

/* ---------- Grille d'actualités ---------- */

.actus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.actus li[hidden] { display: none; }

.actu {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform .14s ease;
}

.actu:hover { transform: translateY(-4px); }

.actu__media {
  aspect-ratio: 16 / 10;
  background: #EEF1F5;
  overflow: hidden;
}

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

/* visuel trop petit pour couvrir : on le pose entier sur fond blanc */
.actu__media--contient { background: var(--blanc); }
.actu__media--contient img { object-fit: contain; padding: 22px; }

/* sans visuel : une tuile de couleur au nom de la rubrique */
.actu__tuile {
  aspect-ratio: 16 / 10;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 20px;
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.1;
}

.actu__tuile small {
  display: block;
  font-family: var(--texte);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: .8;
}

.actu__tuile--jeux { background: var(--jaune); color: var(--encre); }
.actu__tuile--evenements { background: var(--rouge); color: var(--blanc); }
.actu__tuile--interview { background: var(--encre); color: var(--blanc); }

.actu__corps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px 18px 20px;
}

.actu__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-family: var(--titre);
  font-size: .8rem;
  color: var(--encre-60);
}

.actu__titre {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: pretty;
}

.actu__extrait { margin: 0; font-size: .92rem; color: var(--encre-60); }

.actu__lien {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--titre);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rouge);
}

.actus__compte {
  margin: 0;
  font-family: var(--titre);
  font-size: .86rem;
  color: var(--encre-60);
}

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(30px, 4vw, 44px);
}

.pagination a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--encre);
  background: var(--blanc);
  font-family: var(--titre);
  font-weight: 600;
  font-size: .86rem;
  transition: background-color .12s ease, color .12s ease;
}

.pagination a:hover,
.pagination a[aria-current] { background: var(--encre); color: var(--blanc); }

.pagination svg { width: 16px; height: 16px; }

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .alaune { grid-template-columns: 1fr; }
  .alaune__visuel img { width: min(70%, 260px); margin-inline: auto; }
  .section__tete { align-items: start; }
}

@media (max-width: 560px) {
  .actus { grid-template-columns: 1fr; gap: 14px; }
}
