/* ProNetworking — composants. Charger après tokens.css (qui déclare les @font-face Archivo et JetBrains Mono).
   Préfixe de classe : pn-. Patrons HTML + CSS, sans JavaScript. */

.pn { font-family: var(--font-sans); font-size: 16px; line-height: 26px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.pn *, .pn *::before, .pn *::after { box-sizing: border-box; }
.pn h1, .pn h2, .pn h3, .pn h4 { font-family: var(--font-sans); color: var(--heading); margin: 0; text-wrap: balance; }
.pn p { margin: 0; }
.pn a:not([class]) { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pn a:not([class]):hover { text-decoration-thickness: 2px; }
.pn :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.pn-icon { width: 20px; height: 20px; flex: none; display: block; }
.pn-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Losange — le cœur du logo, réutilisé comme puce et marqueur (proportions du losange du logo : 1 × 1,73) */
.pn-diamond { display: inline-block; width: 8px; height: 14px; background: var(--accent); flex: none;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* Bouton */
.pn-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 20px; border: 1.5px solid transparent; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: var(--btn-bg); color: var(--on-btn); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.pn-btn:hover { background: var(--btn-bg-hover); }
.pn-btn .pn-icon { width: 18px; height: 18px; transition: transform .15s; }
.pn-btn:hover .pn-icon--arrow { transform: translateX(2px); }
.pn-btn--accent { background: var(--accent); color: var(--on-accent); }
.pn-btn--accent:hover { background: var(--signal-500); }
.pn-btn--secondary { background: transparent; color: var(--heading); border-color: var(--border-strong); }
.pn-btn--secondary:hover { background: var(--surface-alt); border-color: var(--heading); }
.pn-btn--on-band { background: transparent; color: var(--on-band); border-color: var(--on-band-muted); }
.pn-btn--on-band:hover { background: var(--on-band); color: var(--graphite-900); border-color: var(--on-band); }
.pn-btn--link { background: transparent; color: var(--accent-text); padding-inline: 0; min-height: 0; border: 0; }
.pn-btn--link:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.pn-btn--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.pn-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.pn-btn[disabled], .pn-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Étiquette de technologie */
.pn-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.pn-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  font-family: var(--font-mono); font-size: 13px; line-height: 18px; font-weight: 500; }
.pn-tag--accent { border-color: transparent; background: var(--signal-100); color: var(--graphite-900); }
[data-theme="dark"] .pn-tag--accent { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--signal-300); }
.pn-band .pn-tag { background: transparent; border-color: color-mix(in srgb, var(--on-band) 22%, transparent); color: var(--on-band); }

/* Surtitre et en-tête de section */
.pn-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.pn-band .pn-eyebrow { color: var(--accent-on-band); }
.pn-section-head { display: flex; flex-direction: column; gap: var(--space-4); max-width: var(--container-narrow); }
.pn-section-head--center { margin-inline: auto; text-align: center; align-items: center; }
.pn-section-head h2 { font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -0.01em; }
.pn-section-head p { font-size: 20px; line-height: 30px; color: var(--ink-muted); }
@media (max-width: 600px) { .pn-section-head h2 { font-size: 28px; line-height: 34px; } .pn-section-head p { font-size: 18px; line-height: 28px; } }

/* Barre de navigation */
.pn-nav { display: flex; align-items: center; gap: var(--space-8); min-height: var(--header-height); padding: 0 var(--gutter);
  background: var(--surface); border-bottom: 1px solid var(--border); }
.pn-nav__home { display: block; flex: none; border-radius: var(--radius-sm); }
.pn-nav__logo { height: 32px; width: auto; display: block; }
.pn-logo--dark { display: none; }
[data-theme="dark"] .pn-logo--light { display: none; }
[data-theme="dark"] .pn-logo--dark { display: block; }
.pn-nav__links { display: flex; gap: var(--space-1); list-style: none; margin: 0 0 0 auto; padding: 0; }
.pn .pn-nav__links a { display: block; padding: 8px 12px; border-radius: var(--radius-md); font-size: 15px; line-height: 20px; font-weight: 600;
  color: var(--ink-muted); text-decoration: none; }
.pn .pn-nav__links a:hover { color: var(--heading); background: var(--surface-alt); }
.pn .pn-nav__links a[aria-current="page"] { color: var(--heading); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
@media (max-width: 960px) { .pn-nav__links { display: none; } .pn-nav .pn-btn { margin-left: auto; } }

/* Bandeau sombre (hero, appel à l'action, pied de page) et motif de facettes */
.pn-band { position: relative; isolation: isolate; overflow: hidden; background: var(--band); color: var(--on-band); }
.pn-band h1, .pn-band h2, .pn-band h3, .pn-band h4 { color: var(--on-band); }
.pn-facets { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(60deg, transparent 0 119px, color-mix(in srgb, var(--on-band) 7%, transparent) 119px 120px),
    repeating-linear-gradient(-60deg, transparent 0 119px, color-mix(in srgb, var(--on-band) 7%, transparent) 119px 120px);
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%); mask-image: linear-gradient(100deg, transparent 35%, #000 85%); }

/* Hero */
.pn-hero { padding: var(--space-24) 0; }
.pn-hero__inner { display: flex; flex-direction: column; gap: var(--space-6); max-width: 760px; }
.pn-hero__title { font-size: 64px; line-height: 68px; font-weight: 700; letter-spacing: -0.02em; }
.pn-hero__title em { font-style: normal; color: var(--accent-on-band); }
.pn-hero__lead { font-size: 20px; line-height: 30px; color: var(--on-band-muted); max-width: 620px; }
.pn-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.pn-hero .pn-tags { margin-top: var(--space-4); }
@media (max-width: 600px) { .pn-hero { padding: var(--space-16) 0; } .pn-hero__title { font-size: 40px; line-height: 44px; } .pn-hero__lead { font-size: 18px; line-height: 28px; } }

/* Carte de service */
.pn-grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pn-service { position: relative; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8) var(--space-6);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  transition: box-shadow .15s, transform .15s, border-color .15s; }
.pn-service__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--band); color: var(--accent-on-band); }
.pn-service__icon .pn-icon { width: 24px; height: 24px; }
.pn-service h3 { font-size: 24px; line-height: 30px; font-weight: 650; }
.pn-service p { color: var(--ink-muted); flex: 1; }
.pn-service .pn-btn--link { align-self: flex-start; }
.pn-service .pn-btn--link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.pn-service:hover { box-shadow: var(--shadow-raised); border-color: var(--border-strong); }

/* Liste de valeurs numérotée */
.pn-values { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.pn-values li { display: grid; grid-template-columns: 64px 1fr; gap: var(--space-4); padding: var(--space-6) 0; border-bottom: 1px solid var(--border); }
.pn-values__num { font-family: var(--font-mono); font-size: 14px; line-height: 26px; font-weight: 500; color: var(--accent-text); }
.pn-values h4 { font-size: 19px; line-height: 26px; font-weight: 600; margin-bottom: var(--space-1); }
.pn-values p { color: var(--ink-muted); }

/* Bandeau d'appel à l'action */
.pn-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-6);
  padding: var(--space-12) var(--space-12); border-radius: var(--radius-lg); }
.pn-cta__text { display: flex; flex-direction: column; gap: var(--space-2); max-width: 560px; }
.pn-cta h2 { font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -0.01em; }
.pn-cta p { color: var(--on-band-muted); font-size: 18px; line-height: 28px; }
.pn-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 600px) { .pn-cta { padding: var(--space-8) var(--space-6); } .pn-cta h2 { font-size: 28px; line-height: 34px; } }

/* Champ de formulaire */
.pn-field { display: flex; flex-direction: column; gap: 6px; }
.pn-field__label { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--heading); }
.pn-field__label small { font-weight: 400; color: var(--ink-muted); font-size: 14px; }
.pn-input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font-sans); }
.pn-input::placeholder { color: var(--ink-muted); opacity: 1; }
.pn-input:hover { border-color: var(--heading); }
.pn-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
textarea.pn-input { min-height: 120px; resize: vertical; }
.pn-field__help { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.pn-field--invalid .pn-input { border-color: var(--danger); }
.pn-field__error { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 22px; font-weight: 600; color: var(--danger); }
.pn-field__error .pn-icon { width: 16px; height: 16px; }

/* Pied de page */
.pn-footer { padding: var(--space-16) 0 var(--space-8); }
.pn-footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-8); }
.pn-footer__brand { display: flex; flex-direction: column; gap: var(--space-4); max-width: 320px; }
.pn-footer__brand img { height: 32px; width: auto; align-self: flex-start; }
.pn-footer__brand p { color: var(--on-band-muted); font-size: 14px; line-height: 22px; }
.pn-footer h4 { 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); }
.pn-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.pn .pn-footer ul a, .pn-footer ul span { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--on-band-muted); font-size: 15px; line-height: 22px; text-decoration: none; }
.pn .pn-footer ul a:hover { color: var(--on-band); }
.pn-footer ul .pn-icon { width: 16px; height: 16px; }
.pn-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid color-mix(in srgb, var(--on-band) 14%, transparent); font-size: 14px; line-height: 22px; color: var(--on-band-muted); }
@media (max-width: 960px) { .pn-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pn-footer__top { grid-template-columns: 1fr; } }
