/* Site pronetworking.be — mise en page (classes s-), construite sur les tokens et les composants pn- du
   Pronetworking Design System (tokens.css, bundle.css : copies intactes, à ne jamais modifier).
   Aucune couleur, police, rayon ou ombre en dur : uniquement les variables du design system.
   Référence visuelle : les maquettes du canevas « Site pronetworking.be » (docs/design/README.md). */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--space-4)); }
body.pn { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body.pn > main { flex: 1 0 auto; }
main:focus { outline: none; }
.pn img { max-width: 100%; }
.pn ul.s-list, .s-legal ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.pn ul.s-list li, .s-legal ul li { display: flex; gap: var(--space-3); align-items: baseline; }
.pn ul.s-list li::before, .s-legal ul li::before { content: ""; flex: none; width: 7px; height: 12px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transform: translateY(1px); }
.is-hidden { display: none !important; }
.s-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.s-todo { color: var(--ink-muted); font-style: italic; }
.s-muted { color: var(--ink-muted); }
.s-small { font-size: 14px; line-height: 22px; }
.s-lead { font-size: 20px; line-height: 30px; color: var(--ink-muted); }
.s-h3 { font-size: 24px; line-height: 30px; font-weight: 650; }
.s-h4 { font-size: 19px; line-height: 26px; font-weight: 600; }
.s-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.s-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--btn-bg); color: var(--on-btn); font-weight: 600; text-decoration: none; }
.s-skip:focus { top: var(--space-4); }

/* ---------- En-tête ---------- */
.s-header { position: sticky; top: 0; z-index: 50; }
.s-nav { padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.s-burger { display: none; padding-inline: 10px; }
.s-mobile-nav { background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--space-4) var(--gutter) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4); box-shadow: var(--shadow-raised); }
.s-mobile-nav[hidden] { display: none; }
.s-mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pn .s-mobile-nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--heading); font-weight: 600; text-decoration: none; }
.pn .s-mobile-nav ul a[aria-current="page"] { color: var(--accent-text); }

/* ---------- Sections ---------- */
.s-section { padding: var(--space-24) 0; }
.s-section--alt { background: var(--surface-alt); }
.s-stack { display: flex; flex-direction: column; gap: var(--space-12); }
.s-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; }
.s-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); align-items: center; }
.s-split--top { align-items: start; }
.s-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.s-prose { display: flex; flex-direction: column; gap: var(--space-4); max-width: var(--container-narrow); }
.s-prose--gap { gap: var(--space-8); }
.s-prose h2 { font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -0.01em; }
.s-prose .pn-tags { margin-top: var(--space-2); }
.pn-values .s-h4 { margin-bottom: var(--space-1); }
.s-service-static:hover { box-shadow: var(--shadow-card); border-color: var(--border); }

/* ---------- Photos : à côté du texte, couleurs naturelles légèrement désaturées ---------- */
.s-figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.s-photo { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-alt); border: 1px solid var(--border); }
.s-photo--wide { aspect-ratio: 16 / 9; }
.s-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); }
.s-credit { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* ---------- En-tête de page intérieure ---------- */
.s-pagehead { padding: var(--space-16) 0; }
.s-pagehead__inner { display: flex; flex-direction: column; gap: var(--space-4); max-width: 760px; }
.s-pagehead h1 { font-size: 48px; line-height: 54px; font-weight: 700; letter-spacing: -0.015em; }
.s-pagehead__lead { font-size: 20px; line-height: 30px; color: var(--on-band-muted); }
.s-crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 22px; color: var(--on-band-muted); }
.s-crumbs li + li::before { content: "/"; margin-right: var(--space-2); }
.pn .s-crumbs a { color: var(--on-band-muted); text-decoration: underline; text-underline-offset: 3px; }
.pn .s-crumbs a:hover { color: var(--on-band); }
.s-hero-404 { min-height: 60vh; display: flex; align-items: center; }

/* ---------- Services (page) ---------- */
.s-detail { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--space-12); padding: var(--space-12) 0; border-top: 1px solid var(--border); }
.s-detail:first-child { border-top: 0; padding-top: 0; }
.s-detail__head { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.s-detail__head h2 { font-size: 28px; line-height: 34px; font-weight: 700; }
.s-detail__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-8); align-content: start; }
.s-detail__item h3 { font-size: 17px; line-height: 24px; font-weight: 650; margin-bottom: var(--space-1); }
.s-detail__item p { color: var(--ink-muted); }

/* ---------- Cartes, blog ---------- */
.s-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.s-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.s-post { padding: 0; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.s-post__media { aspect-ratio: 16 / 9; background: var(--surface-alt); }
.s-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); }
.s-post__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }
.s-post__body .pn-btn--link { margin-top: auto; align-self: flex-start; }
.s-post__body .pn-btn--link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.s-post__title { font-size: 20px; line-height: 28px; font-weight: 650; }
.s-post:hover { box-shadow: var(--shadow-raised); border-color: var(--border-strong); }
.s-post--une { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.s-post--une .s-post__media { aspect-ratio: auto; min-height: 280px; }
.s-post--une .s-post__body { padding: var(--space-8); justify-content: center; }
.s-post--une .s-post__title { font-size: 28px; line-height: 34px; }
.s-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; margin: 0;
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.s-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.s-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.s-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); padding: var(--space-16) var(--space-6);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }

/* ---------- Article ---------- */
.s-article { max-width: var(--container-narrow); margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-4); }
.s-article > p, .s-article li { font-size: 18px; line-height: 30px; }
.s-article h2 { font-size: 28px; line-height: 34px; font-weight: 700; margin-top: var(--space-8); }
.s-article .s-figure { margin: var(--space-4) 0; }
.s-figure--wide { margin-top: 0; }
.s-quote { margin: var(--space-4) 0; padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.s-quote blockquote { margin: 0; font-size: 20px; line-height: 30px; color: var(--heading); }
.s-quote figcaption { margin-top: var(--space-3); font-size: 14px; color: var(--ink-muted); }
.s-article__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); }

/* ---------- Contact ---------- */
.s-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.s-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.s-contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); align-items: start; }
.s-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--band); color: var(--accent-on-band); }
.s-contact-list strong { display: block; font-size: 15px; line-height: 20px; color: var(--heading); }
.s-card--form { padding: var(--space-8); gap: var(--space-6); }
.s-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.s-full { grid-column: 1 / -1; }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.s-check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; line-height: 22px; color: var(--ink); cursor: pointer; }
.s-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
select.pn-input { appearance: auto; }
.s-form-error { margin: 0; padding: var(--space-3) var(--space-4); border: 1.5px solid var(--danger); border-radius: var(--radius-sm); color: var(--danger); font-weight: 600; }
.s-form-ok { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.s-captcha { display: flex; flex-direction: column; gap: var(--space-2); }
.s-map { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); text-align: center; padding: var(--space-6); overflow: hidden; }
.s-map__texte { max-width: 460px; }
.s-map .s-row { justify-content: center; }
.s-map.is-loaded { padding: 0; }
.s-map-frame { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pages légales ---------- */
.s-legal { max-width: var(--container-narrow); display: flex; flex-direction: column; gap: var(--space-4); }
.s-legal h2 { font-size: 24px; line-height: 30px; font-weight: 650; margin-top: var(--space-8); }
.s-legal h2:first-child { margin-top: 0; }
.s-legal dl { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-2) var(--space-6); margin: 0; }
.s-legal dt { color: var(--ink-muted); }
.s-legal dd { margin: 0; color: var(--heading); font-weight: 600; }

/* ---------- Pied de page ---------- */
.pn-footer .s-footer-title { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-on-band); margin-bottom: var(--space-4); }
.s-footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.pn .s-footer-legal a { color: var(--on-band-muted); text-decoration: underline; text-underline-offset: 3px; }
.pn .s-footer-legal a:hover { color: var(--on-band); }
.pn-footer__brand img { width: auto; }

/* ---------- Points de rupture du design system : tablette 960 px, mobile 600 px ---------- */
@media (max-width: 1100px) { .s-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .s-burger { display: inline-flex; }
  .s-nav-cta { margin-left: auto; }
  .s-split, .s-contact, .s-detail, .s-detail__body, .s-posts, .s-grid-3, .s-post--une { grid-template-columns: minmax(0, 1fr); }
  .s-split { gap: var(--space-8); }
  .s-detail { gap: var(--space-6); }
}
@media (max-width: 600px) {
  .s-section { padding: var(--space-16) 0; }
  .pn-container { padding-inline: 16px; }
  .s-nav { padding-inline: 16px; gap: var(--space-4); }
  .s-nav-cta { display: none; }
  .s-burger { margin-left: auto; }
  .s-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .s-pagehead h1 { font-size: 34px; line-height: 40px; }
  .s-pagehead__lead, .s-lead { font-size: 18px; line-height: 28px; }
  .s-prose h2 { font-size: 28px; line-height: 34px; }
  .s-form { grid-template-columns: minmax(0, 1fr); }
  .s-card--form { padding: var(--space-6); }
  .s-legal dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .s-legal dd { margin-bottom: var(--space-3); }
  .s-map { aspect-ratio: 4 / 5; }
  .s-post--une .s-post__media { min-height: 200px; }
}

/* Le chapeau de pn-section-head (20 px, ink-muted) ne doit pas s'appliquer au surtitre qu'il contient. */
.pn-section-head .pn-eyebrow { font-size: 12px; line-height: 16px; color: var(--accent-text); }
