/* N48 (job J134, Pixel PH20 of 22-11-2026): the Guides entry, the guides block, the Guides page. Additive, tokens only, no new colour, no new font.
   Rules 1 to 4 are Pixel's proposed CSS as given in the PH20 mock-up; rule 5 is the centred button (Fabrice's correction of 22-11-2026). */

/* 1. Guides entry in the black bar: it reuses a.nav like Blog. Between 769 and 816 px the three entries do not fit
      beside the logo and the language switch (overflow of up to 47 px), so those widths get a tighter bar. */
@media (min-width:769px) and (max-width:900px){
  .topbar .wrap{ padding-left:var(--space-9); padding-right:var(--space-9); gap:var(--space-7); }
  .topbar-nav{ gap:var(--space-3); }
}

/* 2. Phone sheet foot: two pills (Guides, Blog) on one line, the language switch below. */
@media (max-width:768px){
  body .gpcf-mobile-nav.dir-dark .gpcf-mobile-nav__foot{ flex-wrap:wrap; }
  body .gpcf-mobile-nav.dir-dark .gpcf-mobile-nav__pills{ display:flex; gap:var(--space-3); flex:1 1 100%; }
  body .gpcf-mobile-nav.dir-dark .gpcf-mobile-nav__pills a.gpcf-mobile-nav__blog{ flex:1 1 0; padding:0 var(--space-4); }
  body .gpcf-mobile-nav.dir-dark .gpcf-mobile-nav__foot .lang{ margin:0 auto; }
}

/* 3. The guides block of a rubrique page: a tinted panel, between the clients and the articles. */
.gpcf-guides{ margin:var(--space-14) 0; }
.gpcf-guides__panel{
  padding:var(--space-12) var(--space-12) var(--space-13);
  border-radius:var(--radius-card);
  background:var(--os-tint);
}
.gpcf-guides__head{ margin:0 0 var(--space-9); }
.gpcf-guides__head .eyebrow{ margin:0 0 var(--space-2); }
.gpcf-guides__head h2{ margin:0; }
.gpcf-guides__lead{ margin:var(--space-3) 0 0; font-family:var(--font-body); font-size:var(--size-lead); line-height:1.5; color:var(--os-text); }
.gpcf-guides__panel .cards{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-9); }
.gpcf-guides__more{ margin:var(--space-10) 0 0; }
.gpcf-guides__more .btn-secondary{ background-color:var(--os-link); color:var(--on-dark); }
.gpcf-guides__more .btn-secondary:hover{ background-color:var(--os-link-hover); color:var(--on-dark); }
@media (max-width:1024px){ .gpcf-guides__panel .cards{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:768px){
  .gpcf-guides__panel{ padding:var(--space-10) var(--space-9) var(--space-11); }
  .gpcf-guides__panel .cards{ grid-template-columns:1fr; gap:var(--space-6); }
  .gpcf-guides__more .btn-secondary{ display:flex; width:100%; }
}

/* 4. The Guides page: the cards use the same grid as the Blog. */
.gpcf-guides-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-9); margin-top:var(--space-10); }
@media (max-width:1024px){ .gpcf-guides-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:768px){ .gpcf-guides-grid{ grid-template-columns:1fr; gap:var(--space-6); } }

/* 5. The button sits under the middle of the row of cards actually shown (Fabrice, 22-11-2026): the set (cards and button) is as wide as the
      shown columns of the 3-column (or 2-column, up to 1024 px) grid, --n and --n2 being the number of cards capped at 3 and at 2. One card:
      the button is centred under that card, not at the left edge of the panel. Three or more cards: the whole panel. On the phone: one column. */
.gpcf-guides__panel .gpcf-guides__set{
  width:calc((100% - 2 * var(--space-9)) / 3 * var(--n, 3) + (var(--n, 3) - 1) * var(--space-9));
  max-width:100%;
}
.gpcf-guides__panel .gpcf-guides__set .cards{ grid-template-columns:repeat(var(--n, 3), minmax(0, 1fr)); }
.gpcf-guides__more{ text-align:center; }
@media (max-width:1024px){
  .gpcf-guides__panel .gpcf-guides__set{ width:calc((100% - var(--space-9)) / 2 * var(--n2, 2) + (var(--n2, 2) - 1) * var(--space-9)); }
  .gpcf-guides__panel .gpcf-guides__set .cards{ grid-template-columns:repeat(var(--n2, 2), minmax(0, 1fr)); }
}
@media (max-width:768px){
  .gpcf-guides__panel .gpcf-guides__set{ width:100%; }
  .gpcf-guides__panel .gpcf-guides__set .cards{ grid-template-columns:1fr; }
}
