:root {
  --ink: #17231f;
  --deep: #17231f;
  --forest: #f1f5fa;
  --lime: #065ddb;
  --cream: #fcfcfa;
  --paper: #fff;
  --muted: #465450;
  --line: #dce2e1;
  --display: Manrope, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 3.9vw, 4rem);
  --max: 86rem;
  background: var(--cream);
}

.site-header, .site-footer { color: var(--ink); background: var(--cream); }
.site-header { border: 0; }
.header-inner { min-height: 5.2rem; border-bottom: 1px solid #d5dad9; }
.brand { color: var(--ink); font-size: 1.65rem; font-weight: 650; letter-spacing: -.075em; gap: .55rem; }
.manager-link { color: var(--muted); }
.main-nav a, .manager-link, .site-footer nav a { font-weight: 640; }
.button { font-weight: 680; border-radius: .5rem; }
.button-lime, .button-primary, .button-dark { color: white; background: var(--lime); }
.button-lime:hover, .button-primary:hover, .button-dark:hover { color: white; background: #064ab3; }
.button-outline { color: var(--lime); border-color: var(--lime); }
.button-outline:hover { color: #053e9a; border-color: #053e9a; background: #eef5ff; }
h1, h2, h3, h4 { font-weight: 475; letter-spacing: -.065em; line-height: 1.12; }
h2 { font-size: clamp(2.2rem,4.4vw,4.1rem); }
h3 { font-size: clamp(1.35rem,2.4vw,2.1rem); }
.eyebrow { color: #325888; font-size: .79rem; letter-spacing: .075em; }
.text-link:hover { color: var(--lime); }

.screens { padding-block: clamp(3.2rem,7vw,6.2rem); }
.screens .section-lead h2 { margin-top: 0; }
.screens .section-lead > p { max-width: 29rem; }
.screen-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(.85rem,2.5vw,2rem); }
.product-screen { min-width: 0; }
.screen-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1rem,3.2vw,2.5rem);
  background: #f0f3f6;
  border: 1px solid #e1e6e9;
  border-radius: .7rem;
}
.screen-stage img { height: clamp(18rem,36vw,30rem); width: auto; object-fit: contain; border-radius: .75rem; }
.product-screen figcaption { margin-top: .85rem; }
.product-screen h3 { font-size: clamp(1.12rem,2vw,1.45rem); font-weight: 650; letter-spacing: -.035em; }
.product-screen figcaption p { margin-top: .3rem; color: var(--muted); font-size: .92rem; }
.screen-note { margin-top: .85rem; color: var(--muted); font-size: .79rem; }
.story { border-top: 1px solid var(--line); }
.evidence, .audit-sheet figcaption, .sheet-foot, .article-grid, .resource-card + .resource-card { border-color: var(--line); }
.evidence strong span { color: var(--lime); }
.workflow, .audit, .pilot, .blog-intro { color: var(--ink); background: #f2f5f8; }
.reference-note { margin-top: .6rem; font-size: .84rem; }

.pilot {
  background: #eaf2fe;
  border-top-color: #dce7f3;
}
.pilot-grid {
  grid-template-columns: minmax(0,1.01fr) minmax(0,.99fr);
  align-items: center;
  gap: clamp(2rem,7vw,7.2rem);
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .label-headline { animation: rise-in .64s cubic-bezier(.22,.74,.3,1) both; }
  .screen-grid.is-in-view .product-screen { animation: rise-in .55s cubic-bezier(.22,.74,.3,1) both; }
  .screen-grid.is-in-view .product-screen + .product-screen { animation-delay: .13s; }
}

@media (max-width: 48rem) {
  .screen-grid { padding: 1.18rem .66rem; }
  .screen-stage, .screen-stage:hover { width: min(100%,10rem); }
  .product-screen figcaption { margin-top: 1.12rem; }
  .product-screen figcaption p { font-size: .82rem; }
  .pilot-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

:focus-visible { outline-color: #065ddb; }
#accueil { --hero-frame: #172027; --frame-gap: clamp(.85rem,2.7vw,2.55rem); }
#accueil .site-header, .label-hero {
  width: min(calc(100% - 2 * var(--frame-gap)),92rem);
  margin-inline: auto;
  background: var(--hero-frame);
}
#accueil .site-header {
  margin-top: var(--frame-gap);
  border-radius: 1.65rem 1.65rem 0 0;
  color: #f5f8fc;
}
#accueil .header-inner {
  width: auto;
  margin-inline: clamp(1.2rem,4vw,3.8rem);
  min-height: 5.4rem;
  grid-template-columns: auto minmax(0,1fr) auto;
  column-gap: clamp(1.35rem,2.4vw,2.75rem);
  border: 0;
}
#accueil .header-inner .brand { color: #f9fbfd; }
#accueil .header-inner .manager-link { color: #c8d1d9; }
#accueil .nav-surface {
  --nav-surface: #fcfcfa;
  --nav-curve: 1.15rem;
  position: relative;
  align-self: end;
  display: flex;
  align-items: center;
  min-height: 4.15rem;
  padding-inline: clamp(.85rem,2.1vw,1.9rem);
  border-radius: 1.25rem 1.25rem 0 0;
  background: var(--nav-surface);
  color: var(--ink);
  z-index: 1;
}
#accueil .nav-surface::before, #accueil .nav-surface::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: var(--nav-curve);
  height: var(--nav-curve);
  pointer-events: none;
}
#accueil .nav-surface::before {
  right: 100%;
  background: radial-gradient(circle at 0 0,transparent calc(var(--nav-curve) - .5px),var(--nav-surface) var(--nav-curve));
}
#accueil .nav-surface::after {
  left: 100%;
  background: radial-gradient(circle at 100% 0,transparent calc(var(--nav-curve) - .5px),var(--nav-surface) var(--nav-curve));
}
#accueil .header-inner .main-nav {
  max-width: 100%;
  padding: .48rem clamp(.8rem,1.7vw,1.35rem);
  border: 1px solid #bdc9cc;
  border-radius: 2rem;
  gap: clamp(.85rem,2.1vw,2rem);
}
#accueil .header-inner .main-nav a:hover { color: #065ddb; }
#accueil .header-inner .manager-link:hover { color: #b7d7ff; }
#accueil .header-demo {
  color: #f5f8fc;
  background: transparent;
  border-color: #9eacb8;
  border-radius: 2rem;
  padding-inline: .95rem;
  font-weight: 640;
}
#accueil .header-demo:hover { border-color: #d3e6ff; background: #29415b; }
#accueil .header-inner .mobile-menu summary { color: #f5f8fc; }
.label-hero {
  overflow: visible;
  padding: 0 clamp(.55rem,1.25vw,1.15rem) clamp(.55rem,1.25vw,1.15rem);
  border-radius: 0 0 1.65rem 1.65rem;
  color: var(--ink);
}
.label-layout {
  width: 100%;
  min-height: clamp(34rem,45vw,45rem);
  display: grid;
  grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr);
  align-items: center;
  gap: clamp(1.3rem,3vw,3.1rem);
  padding: clamp(2.2rem,4.35vw,4.9rem) clamp(1.35rem,4.35vw,4.9rem);
  border-radius: .95rem .95rem 1.1rem 1.1rem;
  background: radial-gradient(ellipse at 86% 22%,#e1ebf8 0%,transparent 54%), #fcfcfa;
}
.label-headline h1 { font-size: clamp(2.94rem,5.25vw,6.12rem); font-weight: 400; letter-spacing: -.061em; }
.label-headline p { max-width: 32rem; margin: 1.4rem 0 1.8rem; color: var(--muted); font-size: clamp(1rem,1.32vw,1.22rem); }
.label-headline .button { padding-inline: 1.18rem; }

.hero-demo { min-width: 0; }
.hero-scene {
  display: grid;
  align-items: center;
  position: relative;
  min-height: clamp(22rem,31vw,30rem);
  isolation: isolate;
}
.rail-art {
  position: absolute;
  width: 113%;
  max-width: none;
  height: 110%;
  inset: -10% auto auto -5%;
  object-fit: contain;
  pointer-events: none;
  transform-origin: 50% 62%;
  transition: transform .75s cubic-bezier(.2,.7,.25,1);
}
.hero-demo[data-state="issue"] .rail-art { transform: translate(-2%, 1%) rotate(-2.2deg); }
.hero-demo[data-state="resolved"] .rail-art { transform: translate(2%,2%) rotate(2deg) scale(.96); }
.hero-insight {
  --state-color: #1459ac;
  align-self: end;
  justify-self: end;
  position: relative;
  z-index: 1;
  width: min(94%,20rem);
  padding: .68rem .95rem .88rem;
  border: 1px solid #dfe7ef;
  border-radius: .82rem;
  background: #fdfefd;
  box-shadow: 0 16px 38px -25px #243d5b70;
  font-variant-numeric: tabular-nums;
  container-type: inline-size;
}
.hero-demo[data-state="issue"] .hero-insight { --state-color: #983a32; }
.hero-demo[data-state="resolved"] .hero-insight { --state-color: #28664d; }
.hero-state { display: flex; align-items: center; gap: .52rem; color: var(--state-color); font-size: .82rem; font-weight: 720; line-height: 1.2; }
.hero-state-mark {
  display: grid;
  place-items: center;
  flex: 0 0 .99rem;
  height: .99rem;
  border: 1px solid currentColor;
  border-radius: .27rem;
}
.hero-state-mark::before { content: ""; width: .43rem; height: 1px; border-radius: 2px; background: currentColor; }
.hero-demo[data-state="issue"] .hero-state-mark::before { transform: rotate(90deg); }
.hero-demo[data-state="resolved"] .hero-state-mark::before {
  width: .43rem;
  height: .25rem;
  border: solid currentColor;
  border-width: 0 0 1px 1px;
  border-radius: 0;
  background: none;
  transform: translateY(-1px) rotate(-45deg);
}
.hero-prices { display: grid; padding: .24rem 0 .48rem; }
.hero-prices > div { display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: baseline; gap: .55rem; padding: .27rem 0; }
.hero-prices dt { color: #3e4c4a; font-size: .84rem; }
.hero-prices dd { font-size: clamp(1.12rem,2.4vw,1.58rem); font-weight: 650; letter-spacing: -.055em; line-height: 1.25; }
.hero-extracted {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(0,.68fr) minmax(0,1fr);
  align-items: start;
  gap: .46rem .58rem;
  padding: .53rem .62rem;
  border-radius: .41rem;
  background: #eef4fa;
}
.hero-extracted dt { color: #435361; font-size: .68rem; }
.hero-extracted dd { margin-top: .08rem; font-size: .77rem; font-weight: 650; line-height: 1.25; }
.extracted-ean dd { font-family: var(--mono); letter-spacing: -.023em; }
@container (max-width: 15rem) {
  .hero-extracted { grid-template-columns: 1fr 1fr; }
  .extracted-ean { grid-column: 1 / -1; }
}
.hero-example { margin-top: .38rem; text-align: right; color: var(--muted); font-size: .72rem; }
.scan-target {
  width: 31%;
  height: 20%;
  position: absolute;
  right: 12%;
  top: 21%;
  border-radius: .53rem;
  overflow: hidden;
  border: 1px solid #0573fe80;
  opacity: 0;
  pointer-events: none;
}
.scan-target span { position: absolute; inset: auto 0; height: 1px; background: #0573fe; box-shadow: 0 0 13px #0573fe; }
@keyframes reveal-prices {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scan-sweep {
  from { top: 0; opacity: 0; }
  21% { opacity: .8; }
  84% { opacity: .85; }
  to { top: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-prices:not([hidden]) { animation: reveal-prices .32s ease-out both; }
  .hero-demo[data-state="scan"][data-playing="true"] .scan-target { opacity: 1; }
  .hero-demo[data-state="scan"][data-playing="true"] .scan-target span { animation: scan-sweep 1.65s ease-in-out infinite; }
}
@media (min-width: 48.01rem) and (max-width: 56rem) {
  #accueil .header-inner { margin-inline: 1rem; column-gap: 1rem; }
  #accueil .nav-surface { padding-inline: .75rem; }
  #accueil .header-inner .main-nav { padding-inline: .75rem; gap: .8rem; }
}
@media (max-width: 48rem) {
  #accueil .site-header { border-radius: 1rem 1rem 0 0; }
  #accueil .header-inner { min-height: 3.65rem; }
  #accueil .nav-surface { display: none; }
  #accueil .mobile-menu summary {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
  }
  .menu-icon { position: relative; display: block; width: 1rem; height: .75rem; }
  .menu-icon i { position: absolute; inset: 0 0 auto; height: 1.5px; background: currentColor; border-radius: 2px; }
  .menu-icon i:nth-child(2) { top: calc(50% - .75px); }
  .menu-icon i:last-child { top: auto; bottom: 0; }
  .mobile-menu[open] .menu-icon i:first-child { top: calc(50% - .75px); transform: rotate(45deg); }
  .mobile-menu[open] .menu-icon i:nth-child(2) { opacity: 0; }
  .mobile-menu[open] .menu-icon i:last-child { top: calc(50% - .75px); bottom: auto; transform: rotate(-45deg); }
  #accueil .mobile-menu nav {
    width: 13.35rem;
    padding: .36rem;
    color: var(--ink);
    background: #f7faff;
    border: 1px solid #d7e3ef;
    border-radius: .74rem;
    box-shadow: 0 14px 34px -15px #172f51a0;
  }
  #accueil .mobile-menu nav a { border-radius: .42rem; font-weight: 660; }
  #accueil .mobile-menu nav a:hover, #accueil .mobile-menu nav a:focus-visible { color: #0654bc; background: #e8f0fd; }
  .label-hero { border-radius: 0 0 1rem 1rem; }
  .label-layout { grid-template-columns: 1fr; min-height: 0; gap: 1.55rem; padding: 2rem 1.05rem 1.15rem; }
  .label-headline h1 { font-size: clamp(2.4rem,7.8vw,4.55rem); }
  .label-headline p { margin: .84rem 0 1rem; font-size: .96rem; }
  .hero-scene { min-height: clamp(17.5rem,73vw,25rem); }
  .rail-art { width: 108%; height: 110%; left: -4%; top: -11%; }
  .hero-insight { width: min(100%,18rem); padding: .55rem .72rem .72rem; }
}
@media (max-width: 23rem) { .headline-break { display: none; } }

.rail-art { height: auto; inset: -6% auto auto -5%; }
.rail-art img { width: 100%; }
.rail-display {
  display: grid;
  align-content: center;
  justify-items: start;
  position: absolute;
  inset: 20% 11% 52% 62%;
  transform: rotate(-14deg);
  color: #233039;
  font-family: var(--mono);
  line-height: 1.16;
}
.rail-product { font-size: clamp(.55rem,1.05vw,.88rem); }
.rail-price-before, .rail-price-after { font-size: clamp(1.45rem,3.8vw,3.35rem); letter-spacing: -.09em; }
.rail-price-after { display: none; }
.hero-demo[data-state="resolved"] .rail-price-after { display: block; }
.hero-demo[data-state="resolved"] .rail-price-before { display: none; }
.scan-target { inset: -3% -1% -2% -8%; width: auto; height: auto; }
@media (max-width: 48rem) {
  .rail-art { width: 110%; height: auto; left: -5%; top: -7%; }
  .rail-price-before, .rail-price-after { font-size: clamp(1.25rem,5.25vw,2.4rem); }
  .rail-product { font-size: clamp(.48rem,1.6vw,.76rem); }
}
