/* Hallmark · shape: Index-First (the newest piece on top, then the archive as cards) · genre: modern-minimal · theme: brand (OptSolution), material from Coral as on the landing (DESIGN.md) · redesign: full (layout recomposed, content and wiring kept)
 * paper: --color-paper · accent: --color-accent · display: Montserrat 700 · body: Inter 400/600 · hero: the page head split like the landing's section heads, the featured article as one large card in the first screen · nav: discreet banner over a retracting bar (shared) · footer: mast (shared) · job: read the news, then request a demo
 * axes: light/geometric-sans/cool · posture: restrained · imagery: the articles' own pictures, fixed ratio, cover · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: E, three real articles today; the page reads full through the featured card and a two-up grid rather than invented filler */
/* Hallmark · dropped the counters strip (Articles, Catégories, Ce mois) · it read "0 catégories" and "0 ce mois", a dashboard device on a reading page */
/* Hallmark · dropped the category chips and the side column's category list · the news table has no category column, every filter but "Tous" led to an empty list; a category still shows on a card if one is ever stored */
/* Hallmark · dropped the side column "Les plus lus" · it repeated the same three articles beside the list; the sort keeps "Plus lus" and "Plus discutés" */
/* Hallmark · dropped the author name and the view and comment counters on the cards · the author is the admin account ("Administrateur"), not a byline; the date and the reading time are the facts a reader uses */
/* Hallmark · replaced the numbered pagination with "Afficher plus d'articles" · nine cards per step, focus moves to the first new card */
/* Hallmark · waive 77 · section.actu-fin, a head and one sentence beside the action · the owner asked for a discreet closing call to the demo, not a band with mass */
/* Hallmark · waive 78 · section heads render at 39px under a 64px page head · the rank-modulated hierarchy of DESIGN.md (--text-hero, --text-h2), the same waiver as the landing */
/* Hallmark · dismissed 77 · 4 sections, hero and footer included · a news index (head with the featured article, the archive, a closing invitation), not a landing strip */
/* Hallmark · answered F4 · one primary per screen: the closing "Demander une démo"; the nav button, "Afficher plus" and the state buttons are the cotton .btn--card */
/* Hallmark · answered F7 · the cards are stock on paper-2 in the articles band and on paper in the head, the inputs paper with the muted rule, as the landing's form */

/* ════════════════════════════════════════════════
   ACTUALITÉS (actualites.html) - même système que l'accueil (DESIGN.md)
   Jetons : css/brand.css → css/vitrine-tokens.css ; chrome : css/vitrine-base.css ;
   fiches : css/actualites-cartes.css. Les articles viennent de la base
   (lang="fr") : jamais traduits.
   ════════════════════════════════════════════════ */

#main-content { display: block; padding-top: calc(var(--banniere-h) + var(--barre-h)); }
#main-content:focus { outline: none; }

/* Rythme des sections : le pas de l'accueil, fonds alternés. */
.section { padding-block: var(--section-pad); }
.section--papier { background: var(--color-paper-2); border-top: 1px solid var(--color-rule); }
.section + .section:not(.section--papier) { border-top: 1px solid var(--color-rule); }

/* ════════════════════════════════════════════════
   TÊTE DE PAGE : titre à gauche, phrase à droite (comme les têtes fendues de
   l'accueil), puis la fiche « À la une »
   ════════════════════════════════════════════════ */
.actu-tete { padding-block: var(--space-xl) var(--space-2xl); }
.actu-tete-grille {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap-columns); row-gap: var(--space-md); align-items: end;
  margin-bottom: var(--space-xl);
}
.actu-tete-grille .fil-ariane { grid-column: 1 / -1; }
.actu-tete-grille h1 {
  grid-column: 1 / span 7; max-width: 16ch;
  font-size: var(--text-hero); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.actu-tete-texte { grid-column: 8 / -1; justify-self: end; display: grid; gap: var(--space-xs); max-width: 44ch; }
.actu-tete-texte .lead { max-width: none; }
.note-langue { font-size: var(--text-sm); color: var(--color-muted); }

/* ════════════════════════════════════════════════
   TOUS LES ARTICLES : titre et compte à gauche, recherche et tri à droite
   ════════════════════════════════════════════════ */
.actu-barre {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: var(--space-lg) var(--space-xl); margin-bottom: var(--space-xl);
}
.actu-barre-titre { display: grid; gap: var(--space-2xs); }
.actu-barre h2 { font-size: var(--text-h2); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.actu-compte { min-height: 1lh; font-size: var(--text-sm); color: var(--color-muted); }

.actu-outils { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Filtre par catégorie : boutons bascule (aria-pressed), affichés seulement
   si des articles ont une catégorie (rendreFiltres, actualites.html). */
.actu-filtres { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: calc(var(--space-md) * -1) 0 var(--space-xl); }
.actu-filtres[hidden] { display: none; }
.actu-filtre {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md);
  border: 1px solid var(--color-rule-2); border-radius: 999px; background: var(--color-paper);
  color: var(--color-ink-2); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.actu-filtre span { font-weight: 400; color: var(--color-muted); }
.actu-filtre:hover { border-color: var(--color-ink-2); color: var(--color-ink); }
.actu-filtre:active { transform: translateY(1px); }
.actu-filtre:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.actu-filtre[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.actu-filtre[aria-pressed="true"] span { color: inherit; opacity: 0.75; }
@media (prefers-reduced-motion: reduce) { .actu-filtre { transition: none; } .actu-filtre:active { transform: none; } }
.champ-recherche, .champ-tri { position: relative; min-width: 0; }
.champ-recherche { width: 22rem; max-width: 100%; }
.ico-champ { position: absolute; left: var(--space-md); top: 50%; transform: translateY(-50%); color: var(--color-muted); pointer-events: none; }
.ico-champ--tri { left: auto; right: var(--space-md); color: var(--color-ink-2); }
.champ-recherche input, .champ-tri select {
  width: 100%; min-height: 48px;
  border: 1px solid var(--color-muted); border-radius: var(--radius-input);
  background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md);
  transition: border-color var(--dur-micro) var(--ease-out);
}
.champ-recherche input { padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-xl); }
.champ-recherche input::placeholder { color: var(--color-muted); }
.champ-tri select { padding: 0 var(--space-xl) 0 var(--space-md); cursor: pointer; appearance: none; -webkit-appearance: none; }
.champ-recherche input:hover, .champ-tri select:hover { border-color: var(--color-ink-2); }
.champ-recherche input:focus-visible, .champ-tri select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }

.actu-plus { display: flex; justify-content: center; margin-top: var(--space-2xl); }
.actu-plus:has(> [hidden]) { display: none; }

/* ─── États : aucun résultat, aucune actualité, erreur, sans JavaScript ─── */
.etat-actu {
  display: grid; justify-items: center; gap: var(--space-sm);
  padding: var(--space-2xl) var(--space-lg); text-align: center;
  border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule);
}
.etat-actu h3 { max-width: 32ch; font-family: var(--font-body); font-weight: 600; font-size: var(--text-xl); line-height: 1.3; letter-spacing: -0.01em; }
.etat-actu p { color: var(--color-ink-2); max-width: 52ch; }
.etat-actu .btn { margin-top: var(--space-xs); }
.etat-actu--sansjs { display: block; }

/* ════════════════════════════════════════════════
   FIN DE PAGE : une invitation sobre, la seule action primaire de la page
   ════════════════════════════════════════════════ */
.actu-fin-grille {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap-columns); row-gap: var(--space-lg); align-items: start;
}
.actu-fin-grille h2 { grid-column: 1 / span 6; max-width: 18ch; font-size: var(--text-h2); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.actu-fin-texte { grid-column: 7 / -1; display: grid; gap: var(--space-lg); }
.actu-fin-texte .lead { max-width: 46ch; }
.actu-fin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }

/* ════════════════════════════════════════════════
   ADAPTATION AUX ÉCRANS
   ════════════════════════════════════════════════ */
@media (max-width: 60rem) {
  .actu-tete-grille h1, .actu-tete-texte { grid-column: 1 / -1; justify-self: start; }
  .actu-tete-grille { margin-bottom: var(--space-xl); }
  .actu-fin-grille h2, .actu-fin-texte { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .actu-tete { padding-top: var(--space-lg); }
  .actu-barre { margin-bottom: var(--space-lg); }
  .actu-outils, .champ-recherche { width: 100%; }
  .champ-recherche { flex: 1 1 100%; }
  .champ-tri { flex: 1 1 100%; }
  .actu-fin-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .champ-recherche input, .champ-tri select { transition: none; }
}
