/* DMC Industrie — socle (tokens partagés site + manager) */
:root {
  --ink: #0b0c0d;
  --ink2: #121416;
  --steel: #16191c;
  --panel: #15181b;
  --line: #2a2f34;
  --line2: #3a4046;
  --mute: #8c949b;
  --soft: #c9ced3;
  --white: #f6f5f2;

  --paper: #f3f1ec;
  --paper2: #e9e6df;
  --card: #ffffff;
  --text: #121314;
  --text2: #5b6066;
  --rule: #dcd8cf;

  --accent: #e2701c;
  --accent2: #f08a3a;
  --accent-ink: #b5560f;

  --ok: #2f7a55;
  --ok-bg: #102119;
  --danger-bg: #1f1210;

  --radius: 10px;
  --radius-lg: 18px;
  --max: 1240px;

  --font-display: "Archivo", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
}
::selection { background: var(--accent); color: #fff; }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

/* Buttons */
.btn {
  --h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-dark { background: var(--text); color: #fff; border-color: var(--text); }
.btn-dark:hover { background: #2a2c2f; }
.btn-line { background: transparent; color: var(--text); border-color: var(--rule); }
.btn-line:hover { border-color: var(--text); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Badges (manager) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line2);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mute);
}
.badge-ok { color: #8fd0ad; border-color: #2f5a43; background: var(--ok-bg); }
.badge-new { color: #f0c08a; border-color: #6b3f16; background: #1a120c; }
.badge-warn { color: #e0c56a; border-color: #6a5718; background: #1a1608; }
.badge-danger { color: #e0a090; border-color: #6a2f28; background: var(--danger-bg); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Fields (manager, dark) */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: #d7dce0; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 46px;
  background: #0d1012;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  padding: 0 14px;
  outline: none;
  color: var(--white);
}
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 84px;
  color: #fff;
  transition: background .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.solid, .nav.always {
  background: rgba(11,12,13,.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-color: rgba(255,255,255,.08);
  height: 72px;
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: 17px;
  letter-spacing: .02em;
  line-height: 1.1;
}
.brand small {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  letter-spacing: .02em;
  margin-top: 2px;
}
.menu { display: flex; gap: 6px; }
.menu a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.78);
  transition: color .2s, background .2s;
}
.menu a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px;
  background: currentColor; transition: transform .25s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink);
  padding: 110px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-drawer a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 34px;
  letter-spacing: -0.02em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-drawer .btn { margin-top: 24px; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 72px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-stretch: 100%;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}
.footer a { display: block; margin: 9px 0; color: rgba(255,255,255,.78); transition: color .2s; }
.footer a:hover { color: var(--accent2); }
.footer-brand p { max-width: 34ch; margin: 16px 0 0; line-height: 1.7; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px; color: rgba(255,255,255,.4);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  .menu { display: none; }
  .nav-actions .btn { display: none; }
  .burger { display: inline-block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .brand small { display: none; }
}
