/* ============================================================
   OzixSoft — site vitrine
   Direction : « acier peint + ambre indicateur »
   L'ambre (--indicator) est RESERVE a l'afficheur de pesage.
   Ne pas l'utiliser ailleurs : c'est la signature du site.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --steel-900: #16191d;
  --steel-800: #1f242a;
  --steel-700: #2b3138;
  --steel-500: #5a636d;
  --steel-400: #838d98;
  --steel-200: #c8cdd3;
  --steel-100: #e4e7ea;
  --paper: #f7f6f3;
  --white: #fff;

  --indicator: #ffb000;
  --indicator-dim: #3a2c07;
  --signal: #0b6e4f;
  --signal-soft: #e6f2ed;

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", "SF Mono", monospace;

  /* Echelle typographique — ratio ~1.28 */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.25rem;
  --t-3xl: clamp(2.5rem, 5vw, 3.75rem);
  --t-4xl: clamp(3rem, 7vw, 5rem);

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  --wrap: 1180px;
  --radius: 3px;
  --line: 1px solid var(--steel-200);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--steel-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Primitives ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Un enfant de grille vaut min-width:auto par defaut : la piste refuse
   alors de descendre sous la largeur intrinseque de son contenu. Un seul
   element en nowrap (la formule du hero) suffit a pousser toute la page
   et a creer un defilement horizontal sur mobile. On libere les pistes ;
   c'est aussi ce qui rend leur overflow-x:auto operant. */
.hero__grid > *,
.phero__grid > *,
.pick__grid > *,
.contact__grid > *,
.prods > *,
.feats > *,
.chain > *,
.ftr__grid > * { min-width: 0; }

/* Le poids est annonce aux lecteurs d'ecran, que l'afficheur ne peut pas rendre */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-500);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--steel-200);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--steel-900);
  text-wrap: balance;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-lg); letter-spacing: -0.015em; }
p { text-wrap: pretty; }

.lede { font-size: var(--t-md); color: var(--steel-500); max-width: 62ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--steel-900);
  border-radius: var(--radius);
  background: var(--steel-900);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--steel-700); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--steel-900); }
.btn--ghost:hover { background: var(--steel-900); color: var(--paper); }
.btn--wa { background: var(--signal); border-color: var(--signal); }
.btn--wa:hover { background: #095c42; }

/* ---------- Bande de specs (device structurel) ----------
   Reprend les libelles d'un ticket de pesee. Chaque ligne
   porte une vraie donnee technique, jamais du decor.        */
.specs { border-top: var(--line); margin-top: var(--sp-4); }
.specs__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--sp-3);
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--steel-200);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
}
/* --steel-400 ne donne que 3,2:1 sur fond clair : sous le seuil AA.
   Les etiquettes portent du sens, elles doivent se lire. */
.specs__k { color: var(--steel-500); letter-spacing: 0.06em; }
.specs__v { color: var(--steel-700); }

/* ---------- Header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: var(--line);
}
.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo__mark { width: 26px; height: 26px; flex: none; }
.logo__txt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--steel-900);
}
.logo__txt b { font-weight: 700; }
.logo__txt span { font-weight: 400; color: var(--steel-500); }

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav__list { display: flex; gap: var(--sp-6); list-style: none; padding: 0; }
.nav__list a {
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--steel-700);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.nav__list a:hover { color: var(--steel-900); border-bottom-color: var(--steel-900); }
.nav__list a[aria-current="page"] { color: var(--steel-900); border-bottom-color: var(--steel-900); }

.lang {
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang a {
  padding: 0.3rem 0.55rem;
  text-decoration: none;
  color: var(--steel-500);
  background: var(--white);
  transition: background 0.15s;
}
.lang a:hover { background: var(--steel-100); }
.lang a[aria-current="true"] { background: var(--steel-900); color: var(--paper); }

.burger {
  display: none;
  background: none;
  border: var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}
.burger svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { padding: var(--sp-16) 0 var(--sp-12); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.hero h1 { margin: var(--sp-6) 0 var(--sp-4); }
.hero__formula {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--steel-500);
  background: var(--white);
  border: var(--line);
  border-left: 3px solid var(--steel-900);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-6) 0;
  overflow-x: auto;
  white-space: nowrap;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* ---------- SIGNATURE : l'afficheur d'indicateur ---------- */
.panel {
  background: var(--steel-900);
  border-radius: 6px;
  padding: var(--sp-6);
  box-shadow: 0 1px 0 var(--steel-700) inset, 0 24px 50px -20px rgba(22, 25, 29, 0.5);
}
.panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--steel-400);
  margin-bottom: var(--sp-4);
}

.readout {
  background: #0b0d10;
  border: 1px solid #000;
  border-radius: 4px;
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-4);
  box-shadow: 0 0 0 1px var(--steel-700), 0 4px 16px rgba(255, 176, 0, 0.06) inset;
}
.readout__digits { display: flex; gap: 4px; align-items: flex-end; }
.digit { width: 34px; height: 58px; flex: none; }
.digit .seg { fill: var(--indicator-dim); transition: fill 0.06s linear; }
.digit .seg.on { fill: var(--indicator); filter: drop-shadow(0 0 4px rgba(255, 176, 0, 0.55)); }
.readout__unit {
  font-family: var(--font-mono);
  font-size: var(--t-md);
  color: var(--indicator);
  opacity: 0.75;
  padding-bottom: 4px;
}

.flags { display: flex; gap: var(--sp-4); margin-top: var(--sp-3); justify-content: flex-end; }
.flag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--steel-700);
  transition: color 0.2s, text-shadow 0.2s;
}
.flag.on { color: var(--indicator); text-shadow: 0 0 8px rgba(255, 176, 0, 0.5); }

/* Le ticket qui « sort » de l'imprimante */
.ticket {
  margin-top: var(--sp-6);
  background: var(--paper);
  border-radius: 2px;
  padding: var(--sp-4) var(--sp-4) var(--sp-6);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--steel-700);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 96% 100%, 92% calc(100% - 6px), 88% 100%, 84% calc(100% - 6px), 80% 100%, 76% calc(100% - 6px), 72% 100%, 68% calc(100% - 6px), 64% 100%, 60% calc(100% - 6px), 56% 100%, 52% calc(100% - 6px), 48% 100%, 44% calc(100% - 6px), 40% 100%, 36% calc(100% - 6px), 32% 100%, 28% calc(100% - 6px), 24% 100%, 20% calc(100% - 6px), 16% 100%, 12% calc(100% - 6px), 8% 100%, 4% calc(100% - 6px), 0 100%);
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.ticket.is-out { opacity: 1; transform: translateY(0); }
.ticket__hd {
  text-align: center;
  border-bottom: 1px dashed var(--steel-400);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.1em;
  color: var(--steel-900);
  font-weight: 600;
}
.ticket__line { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 1px 0; }
.ticket__line dt { color: var(--steel-500); }
.ticket__line dd { margin: 0; color: var(--steel-800); }
.ticket__net {
  border-top: 1px dashed var(--steel-400);
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  font-weight: 700;
  color: var(--steel-900);
}
.ticket__net dd { font-weight: 700; }

/* ---------- Sections ---------- */
.sec { padding: var(--sp-16) 0; }
.sec--dark { background: var(--steel-900); color: var(--steel-200); }
.sec--dark h2 { color: var(--paper); }
.sec--dark .eyebrow { color: var(--steel-400); }
.sec--dark .eyebrow::after { background: var(--steel-700); }

/* Les couleurs de texte par defaut sont calibrees pour le fond papier.
   Sur fond sombre il faut les inverser explicitement, sinon --steel-800
   (#1f242a) se retrouve sur --steel-900 (#16191d) : illisible. */
.sec--dark .lede { color: var(--steel-400); }
.sec--dark .fiche td { color: var(--steel-200); }
.sec--dark .fiche th,
.sec--dark .fiche td { border-bottom-color: var(--steel-700); }
.sec__hd { margin-bottom: var(--sp-8); }
.sec__hd h2 { margin-top: var(--sp-4); }
.sec__hd .lede { margin-top: var(--sp-3); }

/* ---------- Grille produits ---------- */
.prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.prod {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: var(--sp-6);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.prod:hover {
  border-color: var(--steel-900);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -14px rgba(22, 25, 29, 0.3);
}
.prod__ico { width: 34px; height: 34px; margin-bottom: var(--sp-4); }
.prod h3 { margin-bottom: var(--sp-2); }
.prod__p { font-size: var(--t-sm); color: var(--steel-500); flex: 1; }
.prod .specs { margin-top: var(--sp-4); }
.prod__go {
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--steel-900);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.prod:hover .prod__go span { transform: translateX(3px); }
.prod__go span { transition: transform 0.15s; display: inline-block; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  background: var(--signal-soft);
  color: var(--signal);
  margin-bottom: var(--sp-3);
}

/* ---------- Selecteur « Quel outil de pesee ? » ---------- */
.pick__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  border-bottom: 1px solid var(--steel-700);
  margin-bottom: var(--sp-8);
}
.pick__tab {
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-400);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, background 0.15s;
}
.pick__tab:hover { color: var(--steel-200); }
.pick__tab[aria-selected="true"] {
  color: var(--steel-900);
  background: var(--paper);
  border-color: var(--steel-700);
}
.pick__panel[hidden] { display: none; }
.pick__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-8); align-items: start; }
.pick__panel h3 { color: var(--paper); font-size: var(--t-xl); margin-bottom: var(--sp-3); }
.pick__panel p { color: var(--steel-400); }
.pick__for {
  margin-top: var(--sp-6);
  padding-left: var(--sp-4);
  border-left: 2px solid var(--indicator);
}
.pick__for dt {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--steel-400);
  margin-bottom: var(--sp-1);
}
.pick__for dd { margin: 0 0 var(--sp-4); color: var(--paper); }
.pick__panel .specs { border-top-color: var(--steel-700); }
.pick__panel .specs__row { border-bottom-color: var(--steel-700); }
.pick__panel .specs__v { color: var(--steel-200); }

/* ---------- Chaine « De la bascule a la facture » ---------- */
.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: var(--sp-8); }
.chain__step {
  position: relative;
  padding: var(--sp-6);
  background: var(--white);
  border: var(--line);
}
.chain__step + .chain__step { border-left: none; }
.chain__step h3 { font-size: var(--t-base); margin-bottom: var(--sp-2); }
.chain__step p { font-size: var(--t-sm); color: var(--steel-500); }
.chain__n {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--steel-500);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--sp-3);
}

/* ---------- Page produit ---------- */
.phero { padding: var(--sp-12) 0 var(--sp-8); border-bottom: var(--line); }
.phero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-12); align-items: center; }
.phero h1 { margin: var(--sp-4) 0; }
.phero .btn { margin-top: var(--sp-6); }

.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8) var(--sp-12); }
.feat h3 { font-size: var(--t-base); margin-bottom: var(--sp-2); }
.feat p { font-size: var(--t-sm); color: var(--steel-500); }
.feat__k {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  color: var(--steel-500);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: var(--line);
}

.fiche { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: var(--t-sm); }
.fiche th, .fiche td { text-align: left; padding: 0.7rem var(--sp-4); border-bottom: var(--line); vertical-align: top; }
.fiche th { color: var(--steel-500); font-weight: 400; letter-spacing: 0.06em; width: 34%; white-space: nowrap; }
.fiche td { color: var(--steel-800); }
.fiche-scroll { overflow-x: auto; }

.mockup { width: 100%; height: auto; border: var(--line); border-radius: var(--radius); background: var(--white); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: start; }
.contact__card {
  background: var(--white);
  border: var(--line);
  border-radius: var(--radius);
  padding: var(--sp-8);
}
.contact__list { list-style: none; padding: 0; margin: var(--sp-6) 0 0; }
.contact__list li { padding: var(--sp-4) 0; border-top: var(--line); }
.contact__list dt {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  color: var(--steel-500);
  margin-bottom: var(--sp-1);
}
.contact__list dd { margin: 0; font-size: var(--t-md); }
.contact__list a { color: var(--steel-900); text-decoration-color: var(--steel-200); text-underline-offset: 3px; }
.contact__list a:hover { text-decoration-color: var(--steel-900); }
/* Placeholder « a remplir » — remplace par contact.js. Doit rester
   lisible : sur fond clair steel-400 tombe a 3,4:1. */
.ph { color: var(--steel-500); font-style: italic; }
.ftr .ph { color: var(--steel-400); }

/* ---------- Footer ---------- */
.ftr { background: var(--steel-900); color: var(--steel-400); padding: var(--sp-16) 0 var(--sp-8); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-8); }
.ftr h4 {
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--steel-400);
  margin-bottom: var(--sp-4);
}
.ftr ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.ftr a { color: var(--steel-200); text-decoration: none; font-size: var(--t-sm); }
.ftr a:hover { color: var(--indicator); }
.ftr .logo__txt { color: var(--paper); }
.ftr .logo__txt span { color: var(--steel-500); }
.ftr__p { font-size: var(--t-sm); margin-top: var(--sp-4); max-width: 34ch; }
.ftr__btm {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--steel-700);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
}

/* ---------- CTA bandeau ---------- */
.cta-band { text-align: center; padding: var(--sp-16) 0; border-top: var(--line); }
.cta-band h2 { margin-bottom: var(--sp-4); }
.cta-band .lede { margin: 0 auto var(--sp-8); }
.cta-band__btns { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid, .phero__grid, .pick__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__grid { gap: var(--sp-8); }
  .prods, .chain { grid-template-columns: repeat(2, 1fr); }
  .chain__step + .chain__step { border-left: var(--line); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: 1fr; gap: var(--sp-6); }
}

@media (max-width: 680px) {
  .hero { padding: var(--sp-8) 0; }
  .sec { padding: var(--sp-12) 0; }
  .prods, .chain, .ftr__grid { grid-template-columns: 1fr; }
  .chain__step + .chain__step { border-left: var(--line); border-top: none; }
  .burger { display: block; }
  .nav__list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: var(--line);
    padding: var(--sp-2) 1.25rem var(--sp-4);
  }
  .nav__list.is-open { display: flex; }
  .nav__list li { border-top: var(--line); }
  .nav__list a { display: block; padding: var(--sp-4) 0; border-bottom: none; }
  .hdr__in { position: relative; }
  .panel { padding: var(--sp-4); }
  .readout { padding: var(--sp-3); gap: var(--sp-2); }
  .digit { width: 26px; height: 44px; }
  .readout__digits { gap: 2px; }
}
