/* tradeinfra.io — feuille partagée (accueil + pages légales)
   Direction « fiche produit » : gris froid, une seule couleur vive (orange),
   filets noirs fins, grotesque + mono. Pas d'ombres, pas de dégradés. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e2e6ec;
  --bg-2: #d4d9e0;
  --paper: #f2f4f7;
  --ink: #111214;
  --ink-2: #373a3f;
  --ink-3: #555960;
  --rule: #111214;
  --rule-soft: #b4bbc5;
  --accent: #ff4f00;
  --accent-ink: #111214;
  --accent-text: #a83600;
  --focus: #c24100;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-text); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; margin: 0; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent-text); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; }
.label { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }

/* Accessibilité */
.skip {
  position: absolute; left: 12px; top: 12px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px;
  font-family: var(--font-mono); font-size: 13px;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { clip-path: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }

/* Bouton : orange plein, texte foncé, coins droits */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 18px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font: 500 13.5px/1 var(--font-mono); text-decoration: none; text-transform: lowercase;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* En-tête : barre de référence mono + navigation */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; font-family: var(--font-mono); font-size: 12.5px;
}
.site-header .brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-header .brand img { height: 26px; width: auto; }
.site-header .ref { color: var(--ink-3); }
.site-header nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav a { padding: 14px 10px; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: var(--accent-text); }
.lang { display: flex; border: 1px solid var(--rule); }
.lang button {
  min-width: 44px; min-height: 36px; border: 0; background: transparent; color: var(--ink);
  font: 500 12px var(--font-mono); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--rule); margin-top: 96px; padding: 28px 0 40px; font-size: 13px; color: var(--ink-2); }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: var(--font-mono); font-size: 12.5px; }
.site-footer nav a { display: inline-block; padding: 8px 0; }

/* Pages légales */
.legal { max-width: 760px; padding-top: 56px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal .updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); margin-bottom: 40px; }
.legal section { border-top: 1px solid var(--rule); padding: 20px 0 8px; display: grid; grid-template-columns: 200px 1fr; gap: 8px 32px; }
.legal h2 { font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.3; }
.legal ul { margin: 0 0 1em; padding-left: 1.1em; }
@media (max-width: 1060px) {
  html { scroll-padding-top: 112px; }
  .site-header .bar { flex-wrap: wrap; gap: 0 16px; padding-top: 6px; }
  .site-header nav { order: 3; width: 100%; margin: 0 -10px; border-top: 1px solid var(--rule-soft); }
}
@media (max-width: 640px) {
  .legal section { grid-template-columns: 1fr; }
  .site-header .ref { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
