/* Dacker — jeux de polices. Le jeu actif est porté par <html data-police="…"> (réglage `police` de content/site.yaml). */
:root {
  --wordmark:'Space Grotesk','DM Sans',Arial,sans-serif;
  --display-weight:500;
  --display-tracking:-.055em;
  --sub-tracking:-.035em;
  --eyebrow-font:inherit
}
/* Le mot-symbole « Dacker. » ne change pas avec le jeu de polices. */
.logo>span,.footer-wordmark { font-family:var(--wordmark) }
h1,h2 { font-weight:var(--display-weight); letter-spacing:var(--display-tracking) }
h3,.link-card strong,.entry-card strong,.glossary-entry dt a,.hub-card h3,.info-card h3,.choice h3,.resource-col h3 { font-weight:var(--display-weight); letter-spacing:var(--sub-tracking) }
.eyebrow { font-family:var(--eyebrow-font) }

/* Sobre : Inter Tight + Inter */
html[data-police="sobre"] {
  --font:'Inter',Arial,sans-serif;
  --display:'Inter Tight','Inter',Arial,sans-serif;
  --display-weight:500;
  --display-tracking:-.035em;
  --sub-tracking:-.02em
}

/* Éditorial : Instrument Serif + Inter */
html[data-police="editorial"] {
  --font:'Inter',Arial,sans-serif;
  --display:'Instrument Serif',Georgia,serif;
  --display-weight:400;
  --display-tracking:-.015em;
  --sub-tracking:-.005em
}
html[data-police="editorial"] h1 { font-size:clamp(60px,7.6vw,104px); line-height:1.02 }
html[data-police="editorial"] .page-hero h1 { font-size:clamp(56px,7vw,96px) }
html[data-police="editorial"] .page-hero--content h1 { font-size:clamp(46px,5.6vw,78px) }
html[data-police="editorial"] h2 { font-size:clamp(40px,4.7vw,62px) }
html[data-police="editorial"] .bloc-head h2 { font-size:clamp(34px,3.7vw,50px) }
html[data-police="editorial"] h3 { font-size:28px }
html[data-police="editorial"] :is(.info-card,.choice,.resource-col,.method-step) h3 { font-size:25px }
html[data-police="editorial"] :is(.link-card strong,.entry-card strong) { font-size:24px }
html[data-police="editorial"] h1 em,html[data-police="editorial"] h2 em { font-style:italic }
html[data-police="editorial"] :is(.nav-list a,.menu-trigger,.stack-label,.hub-card-tags,.step-number,.row-index,.info-card .row-index,.compare-table thead th,.glossary-letters a) { font-family:var(--font) }
html[data-police="editorial"] .figure-row strong,html[data-police="editorial"] .manifesto-stats strong { font-weight:400; letter-spacing:-.02em }

/* Ingénierie : IBM Plex Sans + IBM Plex Mono */
html[data-police="ingenierie"] {
  --font:'IBM Plex Sans',Arial,sans-serif;
  --display:'IBM Plex Sans',Arial,sans-serif;
  --display-weight:500;
  --display-tracking:-.035em;
  --sub-tracking:-.02em;
  --eyebrow-font:'IBM Plex Mono',ui-monospace,monospace
}
html[data-police="ingenierie"] .eyebrow { font-weight:500; letter-spacing:.09em }
html[data-police="ingenierie"] :is(.step-number,.row-index,.info-card .row-index,.stack-label,.hub-card-tags) { font-family:'IBM Plex Mono',ui-monospace,monospace }

/* Caractère : Bricolage Grotesque + DM Sans */
html[data-police="caractere"] {
  --display:'Bricolage Grotesque','DM Sans',Arial,sans-serif;
  --display-weight:600;
  --display-tracking:-.04em;
  --sub-tracking:-.025em
}

/* Sélecteur de polices (préproduction uniquement) */
.police-switch { position:fixed; left:16px; bottom:16px; z-index:200; display:flex; align-items:center; gap:4px; padding:6px; background:#16181d; border-radius:999px; box-shadow:0 10px 30px #0003; font:500 12px/1 system-ui,-apple-system,'Segoe UI',sans-serif }
.police-switch>span { color:#a9adb8; padding:0 8px 0 10px; letter-spacing:.02em }
.police-switch button { border:0; background:transparent; color:#e9eaee; padding:8px 12px; border-radius:999px; font:inherit; cursor:pointer }
.police-switch button:hover { background:#2a2d36 }
.police-switch button[aria-pressed=true] { background:#fff; color:#16181d }
@media(max-width:680px) {
  .police-switch { left:8px; right:8px; bottom:8px; overflow-x:auto; border-radius:14px }
  .police-switch>span { display:none }
  .police-switch button { padding:8px 10px; white-space:nowrap }
}
html[data-police="editorial"] .hero-copy h1 { font-size:clamp(50px,6vw,86px) }
html[data-police="editorial"] .hero-signature { font-family:var(--font); font-size:16px; letter-spacing:0 }
