/* ==========================================================================
   PAGE: ACTUALITÉS — maquette 520:569 « ACTU » (1280×2752, 1vw = 12,8px) :
   fond orange #FF5C00 ; aucune titre de page dessiné. Première actualité
   « mise en avant » : image de 1183×660 à (48, 132), titre Plaak 44B de 48px
   28px sous l'image, texte 28px sous le titre. Puis des rangées de trois
   colonnes de 386px de x = 38 à 1242 (image, titre Plaak 44B 48px, texte
   bref), 28px entre image et titre et entre titre et texte. Mobile 391:618
   (393px) : une colonne, marges de 17px, titres de 35px, 15px entre image,
   titre et texte, 43px entre deux actualités.
   ========================================================================== */

body.template-actualites {
  --bg: #FF5C00;
  --fg: #050505;
  --muted: #050505;
}

/* Titre et introduction pour les lecteurs d'écran : la maquette n'en dessine pas */
.news-page-header {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.news-page {
  /* l'image mise en avant commence sous le logo du site (Q2) */
  padding: max(10.31vw, calc(var(--logo-height) + var(--gap) + 8px)) 0 4.4vw;
  color: #050505;
}

.news-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-link:focus-visible {
  outline: 2px solid #050505;
  outline-offset: 4px;
}

.news-media {
  position: relative;
  overflow: hidden;
  background: #050505;
}

.news-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-title {
  margin: 2.19vw 0 0;
  font-family: 'Plaak44B', var(--font-title);
  font-size: 3.75vw;
  line-height: 1;
  letter-spacing: 0;
  font-variant-ligatures: none;
  text-transform: uppercase;
  overflow-wrap: break-word;
  color: #050505;
}

.news-text {
  margin-top: 2.19vw;
  color: #050505;
}

.news-text p {
  margin: 0;
}

.news-featured {
  padding: 0 3.75vw;
}

.news-media-featured {
  aspect-ratio: 1183 / 660;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.8vw;
  row-gap: 5.3vw;
  align-items: start;
  margin-top: 2.97vw;
  padding: 0 2.97vw;
}

.news-card {
  min-width: 0;
}

.news-card-landscape .news-media { aspect-ratio: 386 / 238; }
.news-card-square .news-media    { aspect-ratio: 332 / 329; }
.news-card-portrait .news-media  { aspect-ratio: 360 / 446; }

@media (max-width: 959px) {
  .news-page {
    padding: calc(var(--logo-height) + var(--gap) + 8px) 0 48px;
  }

  .news-featured,
  .news-grid {
    padding: 0 4.33vw;
  }

  .news-media-featured {
    aspect-ratio: 364 / 262;
  }

  .news-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 43px;
    margin-top: 43px;
  }

  /* « Taille de texte fixe pour tous les titres… le titre passe
     automatiquement sur plusieurs lignes si besoin » */
  .news-title {
    margin-top: 15px;
    font-size: 35px;
  }

  .news-text {
    margin-top: 15px;
  }
}
