/* H@CKERBOY — finition visuelle partagée
   Icônes SVG, typographie et états d’interaction cohérents sur toutes les pages. */
:root {
  --hb-icon-inline: 1.05em;
  --hb-icon-control: 18px;
  --hb-type-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  --hb-type-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { font-family: var(--hb-type-sans); font-kerning: normal; font-variant-ligatures: common-ligatures; font-optical-sizing: auto; font-synthesis: none; }
h1, h2, h3, h4 { font-family: var(--hb-type-sans); font-kerning: normal; text-wrap: balance; }
p, li { text-wrap: pretty; }
code, pre, kbd, samp, .console-body, .code-window, .terminal-output { font-family: var(--hb-type-mono); font-variant-ligatures: none; }
.hb-icon {
  display: inline-block; width: var(--hb-icon-inline); height: var(--hb-icon-inline);
  min-width: var(--hb-icon-inline); flex: 0 0 auto; vertical-align: -0.14em;
  overflow: visible; color: currentColor; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
:is(.button, .header-cta, .project-link, .text-link, .command-launch) > .hb-icon { width: 1em; height: 1em; min-width: 1em; }
:is(.proof-label, .project-meta, .project-status, .hb3d-project-top > span, .exploit-badge) > .hb-icon {
  width: .95em; height: .95em; min-width: .95em; margin-right: .42em; color: var(--accent);
}
:is(.expertise-item h3, .stack-group h3, .cv-section h2, .cv-side-card h2, .case-aside-card .footer-label) > .hb-icon {
  width: 1.08em; height: 1.08em; min-width: 1.08em; margin-right: .42em; color: var(--accent);
}
.icon-button > .hb-icon, .menu-button > .hb-icon {
  width: var(--hb-icon-control); height: var(--hb-icon-control); min-width: var(--hb-icon-control); vertical-align: middle;
}
#theme-toggle { display: grid; place-items: center; }
#theme-toggle .hb-icon { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
#theme-toggle:hover .hb-icon { transform: rotate(18deg); }
#theme-toggle.is-switching .hb-icon { animation: hb-theme-turn .42s cubic-bezier(.2,.8,.2,1); }
@keyframes hb-theme-turn { from { transform: rotate(-35deg) scale(.82); opacity: .55; } to { transform: rotate(0) scale(1); opacity: 1; } }
.social-icon svg, .social-icon .hb-icon { display: block; width: 19px; height: 19px; min-width: 19px; }
.social-arrow .hb-icon { width: 16px; height: 16px; }
.hb3d-project-arrow .hb-icon { width: 17px; height: 17px; }
.eyebrow, .proof-label, .project-meta, .case-kicker, .article-kicker, .cv-section-index, .footer-label { font-weight: 600; line-height: 1.4; }
.hero-text, .case-lead, .article-lead, .page-intro > p { max-width: 66ch; line-height: 1.72; letter-spacing: -.012em; }
.section-heading > p, .project-content > p, .card-body > p { line-height: 1.68; }
.portfolio-hero h1, .page-intro h1, .case-hero h1, .article-hero h1 { letter-spacing: -.065em; font-weight: 650; }
.portfolio-hero h1 em, .page-intro h1 em, .case-hero h1 em { font-style: normal; }
:is(.button, .header-cta, .icon-button, .menu-button, .filter-button, .smart-chip) { -webkit-tap-highlight-color: transparent; }
:is(.button, .header-cta, .icon-button, .menu-button):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hb3d-project .hb3d-project-preview img, .project-visual img, .card-image img { transition: transform .65s cubic-bezier(.2,.8,.2,1); }
  .hb3d-project:hover .hb3d-project-preview img, .project-card:hover .project-visual img, .post-card:hover .card-image img { transform: scale(1.025); }
}
@media (max-width: 720px) { :root { --hb-icon-control: 17px; } .hero-text, .case-lead, .article-lead, .page-intro > p { line-height: 1.65; } }
@media (prefers-reduced-motion: reduce) { #theme-toggle .hb-icon, .project-visual img, .card-image img { transition: none !important; animation: none !important; } }
