/* Mise en page : un bon de travail d'imprimeur. Colonne de marge étroite pour les repères
   (étape, client), colonne de contenu large, filets fins, traits de coupe autour de l'illustration. */
:root {
  --ink: #0E2236;
  --paper: #FFFFFF;
  --stock: #F2F5F9;
  --rule: #D6DEE8;
  --muted: #56687C;
  --blue: #0057A3;
  --blue-deep: #003F7A;
  --lime: #7AB929;
  --on-ink: #FFFFFF;
  --on-ink-muted: #A9BACB;
  --ink-rule: #2A3E55;

  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
sup { font-size: .45em; vertical-align: super; line-height: 0; letter-spacing: .02em; font-weight: 500; }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); max-width: 38em; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .875rem; letter-spacing: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--rule); }
.band { background: var(--stock); }
.stack { display: grid; gap: 1.25rem; }
.skip { position: absolute; left: -9999px; }
.hp { display: none !important; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95rem 1.4rem; border-radius: var(--radius);
  background: var(--blue); color: var(--on-ink); border: 1px solid var(--blue);
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--on-ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; }
.arrow-link::after { content: "\2192"; transition: transform .15s; }
.arrow-link:hover::after { transform: translateX(3px); }

/* En-tête */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 76px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .lang { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }
.nav .btn { padding: .75rem 1.1rem; font-size: .95rem; color: var(--on-ink); text-decoration: none; }
.nav .btn:hover { color: var(--on-ink); }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  font: 600 .95rem var(--f-body); color: var(--ink); padding: .55rem .85rem; cursor: pointer;
}

/* Héro */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 1.6rem; min-width: 0; }
.product-mark { height: 46px; width: auto; }
.hero-text h1 { max-width: 13em; }

/* Traits de coupe : les repères d'un imprimeur autour de l'illustration */
.crop { position: relative; margin: 0; padding: 28px; }
.crop .cm { position: absolute; width: 22px; height: 22px; }
.crop .cm::before, .crop .cm::after { content: ""; position: absolute; background: var(--ink); }
.crop .cm::before { width: 22px; height: 1px; }
.crop .cm::after { width: 1px; height: 22px; }
.crop .tl { top: 0; left: 0; } .crop .tl::before { top: 12px; left: -10px; } .crop .tl::after { left: 12px; top: -10px; }
.crop .tr { top: 0; right: 0; } .crop .tr::before { top: 12px; right: -10px; } .crop .tr::after { right: 12px; top: -10px; }
.crop .bl { bottom: 0; left: 0; } .crop .bl::before { bottom: 12px; left: -10px; } .crop .bl::after { left: 12px; bottom: -10px; }
.crop .br { bottom: 0; right: 0; } .crop .br::before { bottom: 12px; right: -10px; } .crop .br::after { right: 12px; bottom: -10px; }
.crop figcaption { position: absolute; left: 28px; bottom: 2px; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }

/* Faits */
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 1.6rem 1.5rem 1.7rem; border-left: 1px solid var(--rule); display: grid; gap: .35rem; align-content: start; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { font-family: var(--f-display); font-size: 2rem; line-height: 1; color: var(--blue); font-weight: 700; letter-spacing: -.02em; }
.fact span { color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* Grille marge + contenu */
.ticket { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
.ticket > * { min-width: 0; }
.margin-note { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); border-top: 2px solid var(--ink); padding-top: .8rem; align-self: start; }
.prose { display: grid; gap: 1.2rem; max-width: 40em; }

/* Suivi de commande */
.tracker-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; margin-bottom: 2.75rem; }
.tracker-head p { max-width: 34em; margin-top: 1rem; color: var(--muted); }
.rail-wrap { position: relative; }
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.rail::before, .rail-wrap .fill { content: ""; position: absolute; top: 11px; left: calc(100% / 14); height: 2px; background: var(--rule); right: calc(100% / 14); }
.rail-wrap .fill { background: var(--blue); right: auto; width: 0; transition: width .35s ease; z-index: 1; }
.rail li { position: relative; }
.rail button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; justify-items: center; gap: .65rem; text-align: center; padding: 0 .25rem .5rem;
}
.rail .dot {
  width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule);
  display: grid; place-items: center; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); position: relative; z-index: 2;
  transition: border-color .2s, background-color .2s, color .2s;
}
.rail .lbl { font-size: .88rem; line-height: 1.3; color: var(--muted); font-weight: 500; }
.rail button:hover .lbl { color: var(--ink); }
.rail button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius); }
.rail .done .dot { border-color: var(--blue); background: var(--blue); color: var(--on-ink); }
.rail .current .dot { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.rail .current .lbl { color: var(--ink); font-weight: 600; }
.stage {
  margin-top: 2.5rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center;
}
.stage-text { padding: clamp(24px, 4vw, 52px); display: grid; gap: 1rem; border-right: 1px solid var(--rule); align-self: stretch; align-content: center; }
.stage-text .mono { color: var(--muted); }
.stage-text p { font-size: 1.2rem; line-height: 1.55; }
.stage-nav { display: flex; gap: .5rem; margin-top: .75rem; }
.stage-nav button { font: 600 .9rem var(--f-body); background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: .55rem .9rem; color: var(--ink); cursor: pointer; }
.stage-nav button:hover:not(:disabled) { border-color: var(--ink); }
.stage-nav button:disabled { opacity: .4; cursor: default; }
.stage-img { padding: clamp(16px, 3vw, 36px); display: grid; place-items: center; min-height: 340px; }
.stage-img img { max-height: 400px; width: auto; }

/* Clients */
.clients-head { display: grid; gap: 1rem; max-width: 46em; margin-bottom: 3rem; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.quote { margin: 0; padding: 2rem 2rem 0 0; display: grid; gap: 1.25rem; align-content: start; }
.quote + .quote { padding-left: 2rem; border-left: 1px solid var(--rule); }
.quote img { height: 60px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.quote figcaption { font-weight: 600; font-size: .95rem; }
.client-list { margin-top: 4rem; display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
.client-list ul { list-style: none; margin: 0; padding: 0; columns: 3 14rem; column-gap: 2.5rem; }
.client-list li { padding: .5rem 0; border-bottom: 1px solid var(--rule); break-inside: avoid; font-size: .97rem; }

/* Murs de logos : images rognées à leur contenu, centrées dans des cases de hauteur fixe */
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.logo-wall.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.logo-wall li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; height: 128px; padding: 0 1rem; min-width: 0; background: var(--paper); }
.logo-wall img { width: auto; height: auto; max-height: 60px; max-width: 76%; }
.logo-wall.clients { margin-top: 3rem; }
.partners { padding-block: clamp(48px, 7vw, 80px); border-top: 1px solid var(--rule); }
.partners h2 { font-size: 1.35rem; letter-spacing: -.01em; margin-bottom: 1.75rem; }
.partners .logo-wall li { height: 104px; }
.partners .logo-wall img { max-height: 48px; max-width: 80%; }

/* Bloc démonstration */
.demo { background: var(--ink); color: var(--on-ink); padding-block: clamp(64px, 9vw, 112px); }
.demo .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.demo h2 { color: var(--on-ink); font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.demo-text { display: grid; gap: 1.4rem; }
.demo-text p { color: var(--on-ink-muted); font-size: 1.12rem; max-width: 30em; }
.demo-contact { border-top: 1px solid var(--ink-rule); padding-top: 1.4rem; display: grid; gap: .3rem; color: var(--on-ink-muted); font-size: .97rem; }
.demo-contact a { color: var(--on-ink); text-decoration: none; font-weight: 600; }
.demo-contact a:hover { color: var(--on-ink); text-decoration: underline; }

/* Formulaires */
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: 400 1rem var(--f-body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 3px; padding: .8rem .85rem; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 87, 163, .15); }
.form .btn { justify-self: start; }
.form-note { font-size: .92rem; color: var(--muted); }
.form-note[data-state="ok"] { color: var(--blue-deep); font-weight: 600; }
.form.bordered { border: 1px solid var(--rule); }

/* Pages intérieures */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; gap: 1.6rem; }
.page-head h1 { max-width: 16em; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.checklist li { display: flex; gap: .9rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.checklist li::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--lime); transform: translateY(-1px); }

.module { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.module + .module { margin-top: clamp(56px, 8vw, 104px); }
.module:nth-child(even) .module-img { order: 2; }
.module-text { display: grid; gap: 1.3rem; }
.module-text ul { list-style: none; margin: 0; padding: 0; }
.module-text li { padding: .7rem 0 .7rem 1.4rem; border-top: 1px solid var(--rule); position: relative; }
.module-text li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 7px; height: 7px; background: var(--blue); }
.module-img img { margin-inline: auto; max-height: 440px; width: auto; }

.org-grid { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.org-grid li { padding: 1.4rem 1.5rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; line-height: 1.3; }

.testimony { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding-block: 2.5rem; border-top: 1px solid var(--rule); }
.testimony:last-child { border-bottom: 1px solid var(--rule); }
.testimony > * { min-width: 0; }
.testimony .who { display: grid; gap: .9rem; align-content: start; }
.testimony .who img { height: 64px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.testimony .who strong { font-size: .97rem; }
.testimony blockquote { margin: 0; display: grid; gap: 1rem; max-width: 42em; }
.testimony blockquote p:first-child { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.timeline .yr { font-family: var(--f-mono); font-size: .9rem; color: var(--blue); padding-top: .15rem; }

.contact-lines { display: grid; gap: 2rem; }
.contact-lines h2 { font-size: 1.35rem; letter-spacing: -.01em; }
.contact-lines .big { font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-decoration: none; display: inline-block; margin-top: .35rem; }
.contact-lines .big:hover { color: var(--blue); }
.contact-lines > div { display: grid; gap: .3rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }

.legal { display: grid; gap: 1.1rem; max-width: 46em; }
.legal h2 { font-size: 1.4rem; letter-spacing: -.01em; margin-top: 1.6rem; scroll-margin-top: 100px; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.legal .short { font-weight: 600; }
.toc { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); font-size: .95rem; }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: block; padding: .6rem 0; text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--blue); }
.sticky-col { position: sticky; top: 100px; }

/* Pied de page */
.site-footer { background: var(--stock); border-top: 1px solid var(--rule); padding-block: 64px 32px; font-size: .97rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.foot-grid > div { display: grid; gap: .45rem; align-content: start; }
.foot-grid h2 { font-family: var(--f-body); font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-bottom: .35rem; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--blue); text-decoration: underline; }
.foot-logo { height: 34px; width: auto; margin-bottom: .6rem; }
.foot-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .9rem; }
.foot-bottom a { color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { text-underline-offset: 6px; }
  .nav .btn { margin-top: 1rem; border-bottom: 0; padding: .95rem 1rem; }
  .hero .wrap, .demo .wrap, .split, .module { grid-template-columns: minmax(0, 1fr); }
  .module:nth-child(even) .module-img { order: 0; }
  .module-img img { max-height: 320px; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote, .quote + .quote { padding: 2rem 0; border-left: 0; }
  .quote + .quote { border-top: 1px solid var(--rule); }
  .ticket, .client-list, .testimony { grid-template-columns: minmax(0, 1fr); }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .stage-text { border-right: 0; border-bottom: 1px solid var(--rule); order: 2; border-bottom: 0; border-top: 1px solid var(--rule); }
  .stage-img { min-height: 0; }
  .stage-img img { max-height: 280px; }
  .org-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-col { position: static; }
  .tracker-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .rail::before, .rail-wrap .fill { display: none; }
  .rail { gap: 6px; }
  .rail .lbl { display: none; }
  .rail .dot { width: 100%; height: 40px; border-radius: var(--radius); font-size: .85rem; }
}
@media (max-width: 560px) {
  .form .row, .org-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-wall, .logo-wall.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-wall.five li:last-child { grid-column: span 2; }
  .logo-wall li, .partners .logo-wall li { height: 96px; }
  .logo-wall img, .partners .logo-wall img { max-height: 44px; }
  .facts .wrap { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact:nth-child(3) { border-left: 0; padding-left: 0; padding-right: 0; }
  .fact + .fact { border-top: 1px solid var(--rule); }
  .brand img { height: 30px; }
  .crop { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
