:root {
  --ink: #171918;
  --secondary: #626662;
  --rule: #c8cbc7;
  --rule-soft: #f3f3f0;
  --paper: #fff;
  --error: #b34708;
  --side: clamp(24px, 4.45vw, 64px);
  --header: 88px;
  --service-section-gap: 128px;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Inter Tight Variable', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1.0625rem; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--secondary); }
.text-link { text-decoration: underline; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
a, button, input, textarea { transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease; }
h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.container { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--side); }
.skip-link { position: fixed; z-index: 100; inset: 8px auto auto 8px; background: white; padding: 12px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; }
.brand img { display: block; height: 20px; width: auto; overflow: visible; }
.desktop-nav, .header-actions { display: flex; align-items: center; gap: 40px; }
.header-actions { justify-content: flex-end; gap: 32px; }
.site-header nav a, .site-header button, .header-actions a, .local-nav a, .footer a, .fallback-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-header a, .site-header button { font-size: 15px; }
.site-header button, .mobile-menu-top button { border: 0; padding: 0; background: transparent; }
.locale { color: var(--secondary); min-width: 44px; justify-content: flex-end; }
.nav-group { position: relative; }
.nav-panel { position: absolute; inset: 100% auto auto 0; width: 304px; border: 1px solid var(--rule); padding: 8px 24px; background: white; }
.nav-panel a { display: flex !important; min-height: 48px !important; font-size: 16px; }
.nav-panel a + a { border-top: 1px solid var(--rule-soft); }
.site-header :is(a, button):hover, [aria-current=page], [data-dropdown][aria-expanded=true] { text-decoration: underline; text-underline-offset: 6px; }
.local-nav { display: flex; align-items: center; gap: 32px; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; font-size: 14px; color: var(--secondary); }
.local-nav [aria-current=page] { color: var(--ink); }
.mobile-menu, .site-header .mobile-toggle { display: none; }
.fallback-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.cta { display: inline-flex; align-items: center; justify-content: center; height: auto; min-height: 56px; border: 0; padding: 12px 32px; background: var(--ink); color: white; font-size: 17px; font-weight: 500; line-height: 1.35; text-align: center; }
.cta:hover { background: #3a3d3b; color: white; }
.cta:active { background: #000; }
html[data-page=PageA] .hero { min-height: calc(100svh - var(--header)); }
html:is([data-page^=Sub], [data-page^=Sector]) .hero {
  min-height: calc(100svh - var(--header) - 44px);
  justify-content: space-between;
}
html[data-page=About] .hero {
  min-height: calc(100svh - var(--header));
  justify-content: space-between;
}
.footer { display: flex; flex-direction: column; gap: 32px; padding-block: 64px 24px; color: var(--secondary); font-size: 13px; line-height: 1.5; }
.footer-logo { display: block; width: 100%; height: auto; overflow: visible; }
.footer p { margin: 8px 0 0; }
.footer-bottom, .footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.footer-bottom { justify-content: space-between; }
.contact-form { display: grid; gap: 24px; max-width: 600px; }
html[data-page=Contact] main a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
.form-field { display: grid; gap: 8px; font-size: 15px; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid #8b8e8a; border-radius: 0; background: white; color: inherit; padding: 12px 16px; font: inherit; font-size: 17px; }
.form-field input { height: 56px; }
.form-field textarea { min-height: 200px; resize: vertical; }
.form-field :is(input, textarea):focus { outline: 1px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.form-field [aria-invalid=true] { border-color: var(--error); }
.field-error, .form-status { color: var(--error); }
.form-status, .preview-note { margin: 0; padding: 12px 16px; background: var(--rule-soft); }
.form-status, .contact-success h2, .form-field { scroll-margin-top: calc(var(--header) + 16px); }
#message-hint, .form-actions small { color: var(--secondary); font-size: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.form-actions small { flex: 1 1 240px; }
.form-actions a { text-decoration: underline; }
.subject-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; border-block: 1px solid var(--ink); }
.subject-row button, .subject-picker-options button { min-height: 44px; background: white; border: 0; padding: 0 10px; }
.subject-row button { text-decoration: underline; text-underline-offset: 6px; }
.subject-picker { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); overflow: hidden; }
.subject-picker[open] { display: flex; flex-direction: column; }
.subject-picker:focus { outline: none; }
html.subject-open, html.subject-open body { overflow: hidden; }
.subject-picker-options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 16px; }
.subject-picker-options button { display: block; width: 100%; padding: 10px 0; text-align: left; line-height: 1.4; border-top: 1px solid var(--rule-soft); overflow-wrap: anywhere; }
.subject-picker::backdrop { background: rgb(23 25 24 / 24%); }
.diagram-svg { display: block; width: 100%; max-width: 600px; height: auto; }
.diagram-svg[width="528"] { max-width: 528px; }
.diagram-mobile { display: none; }
.service-process { padding-bottom: 0; }
.service-process > h2 + div { align-items: stretch; }
.service-process > h2 + div > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.service-example { padding-top: var(--service-section-gap); }
.accordion-button, .example-toggle { display: none; }
.diagram-enlarge { display: none; }
.diagram-viewer { width: min(900px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--rule); color: var(--ink); background: var(--paper); overflow: hidden; }
.diagram-viewer[open] { display: flex; flex-direction: column; }
.diagram-viewer:focus { outline: none; }
html.diagram-open, html.diagram-open body { overflow: hidden; }
.diagram-viewer::backdrop { background: rgb(23 25 24 / 35%); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; padding: 8px 16px; border-bottom: 1px solid var(--rule); }
.dialog-header h2 { min-width: 0; margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.dialog-header button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.diagram-viewer-content { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 24px; }
.diagram-viewer-content .diagram-svg { width: 600px; min-width: 600px; max-width: none; height: auto; }
.diagram-viewer-hint { margin: 0; padding: 8px 16px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.4; }
@media (min-width: 768px) {
  .content-section { padding-block: 64px; row-gap: 48px; }
  .home-work, .home-method { row-gap: 48px; }
  .service-process.content-section { padding-bottom: 0; }
  .service-example.content-section { padding-top: var(--service-section-gap); }
  .contact-band > div { padding-block: 64px; row-gap: 48px; }
  .section-spacer { display: none; }
}
@media (max-width: 1199px) {
  main .hero div, main p { white-space: normal; }
}
@media (max-width: 899px) {
  .hero h1 br { display: none; }
}
@media (max-width: 767px) {
  :root { --side: 24px; --header: 64px; --service-section-gap: 80px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .brand img { height: 17px; }
  .desktop-nav, .header-actions .desktop-contact, .hero a.cta { display: none; }
  .site-header .mobile-toggle { display: inline-flex; width: 44px; justify-content: center; border-radius: 50%; }
  .header-actions { gap: 8px; }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .mobile-menu[open] { display: flex; flex-direction: column; position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: var(--paper); color: var(--ink); }
  .mobile-menu:focus { outline: none; }
  .mobile-menu-top { flex: 0 0 auto; padding-top: 0; background: var(--paper); }
  .mobile-menu-top button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; }
  .mobile-menu-top button:focus-visible { outline-offset: 0; }
  .mobile-menu-top .locale { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
  .mobile-group-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; border: 0; padding: 0; color: var(--ink); background: transparent; text-align: left; font-size: 22px; }
  .mobile-group-toggle span { font-size: 24px; font-weight: 300; }
  .mobile-group-links { padding: 4px 0 12px 16px; }
  .mobile-group-links a { padding-block: 8px; }
  .mobile-menu-links { display: grid; align-content: start; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; gap: 16px; padding-top: 8px; padding-bottom: max(32px, env(safe-area-inset-bottom, 0px)); padding-left: max(var(--side), env(safe-area-inset-left, 0px)); padding-right: max(var(--side), env(safe-area-inset-right, 0px)); }
  .mobile-menu-links p { margin: 0; color: var(--secondary); font-size: 14px; }
  .mobile-menu-links a { display: flex; align-items: center; min-height: 44px; font-size: 22px; }
  .cta { width: 100%; }
  main .hero { padding-top: 32px; gap: 32px; }
  .hero h1 { font-size: clamp(44px, 13.8vw, 56px); line-height: 1; }
  html[data-page=PageA] .hero { min-height: calc(100svh - var(--header)); padding-block: clamp(1.25rem, 4svh, 2.5rem); justify-content: flex-start; gap: clamp(1.25rem, 3svh, 2rem); }
  html[data-page=PageA] .hero { --hero-height-boost: max(0px, calc(8svh - 41.6px)); }
  html[data-page=PageA] .hero h1 { font-size: clamp(2.75rem, min(calc(.25rem + 2vw + 8.3svh + var(--hero-height-boost)), 19.4vw), 6rem); overflow-wrap: anywhere; hyphens: manual; }
  html[data-page=PageA][lang=fr] .hero h1 { font-size: clamp(2.75rem, min(calc(.25rem + 1vw + 8.3svh + var(--hero-height-boost)), 19vw), 6rem); }
  .hero-automation, .hero-compact-phrase { font-size: .82em; hyphens: none; }
  .hero-word-join { white-space: pre; }
  html[data-page=PageA] .hero > div { gap: 20px; }
  html[data-page=PageA] .hero nav { display: none; }
  .home-services { padding: 32px var(--side); }
  .home-services a { min-height: 56px; height: auto; padding-block: 12px; font-size: 19px; line-height: 1.3; }
  html[data-page=PageA] .hero p { font-size: clamp(1.125rem, calc(1rem + .75vw), 1.25rem); line-height: 1.45; }
  html[data-page=PageA] main, .mobile-menu-links a { overflow-wrap: anywhere; }
  .home-situations > div, .home-work, .home-method, .home-contact > div { padding-block: 32px; }
  .home-work, .home-contact > div { gap: 32px; }
  .home-method { gap: 40px; }
  .content-section { padding-block: 32px; gap: 32px; }
  .service-process.content-section { padding-bottom: 0; }
  .service-example.content-section { padding-top: 64px; }
  .service-example > div > div:last-child { padding-bottom: 0; }
  .contact-band > div { padding-block: 32px; gap: 32px; }
  .section-spacer { display: none; }
  .hero > div { gap: 24px; }
  html:is([data-page^=Sub], [data-page^=Sector], [data-page=About]) .hero {
    min-height: calc(100svh - var(--header));
    justify-content: flex-start;
    gap: 32px;
  }
  /* Keep the long English title in two meaningful lines on narrow screens. */
  html[data-page=SubAuto][lang=en] .hero h1 { font-size: clamp(42px, 13.1vw, 56px); }
  .hero > div > div > div { min-height: 44px; font-size: 17px; }
  .local-nav { display: none; }
  .footer { padding-block: 40px 24px; gap: 20px; }
  .footer-bottom { display: block; }
  .footer nav { gap: 0 16px; }
  .diagram-desktop { display: none; }
  .diagram-mobile { display: block; }
  main { overflow-wrap: anywhere; }
  .diagram-enlarge { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; padding: 0; margin-top: 12px; border: 0; background: transparent; text-align: left; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; }
  .accordion-button, .example-toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; width: 100%; border: 0; padding: 0; text-align: left; background: transparent; }
  .accordion-button::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--secondary); }
  .accordion-button[aria-expanded=true]::after { content: '−'; }
  .example-toggle { text-decoration: underline; text-underline-offset: 5px; }
}
@media (max-width: 359px) {
  .hero h1 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.contact-band .cta { background: white; color: var(--ink); }
.contact-band .cta:hover { background: #e4e6e2; color: var(--ink); }
.contact-band .cta:focus-visible { outline-color: white; }
.diagram-mobile .diagram-svg { max-width: 300px; }
.diagram-option { display: flex; flex-direction: column; gap: 16px; max-width: 300px; }
.diagram-option + .diagram-option { border-top: 1px solid var(--rule); margin-top: 24px; padding-top: 24px; }
.diagram-caption { margin: 0; font-size: 17px; line-height: 1.4; }
.example-extra { display: grid; gap: 14px; }
@media (max-width: 767px) {
  .accordion-static { display: none; }
  .deliverable-row:has(.accordion-button) { padding-block: 8px; }
  .steps-grid:has(.accordion-button) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps-grid > div:has(.accordion-button) { padding-top: 12px; gap: 4px; }
  .accordion-button { font-size: 19px; }
}
@media (min-width: 768px) and (max-height: 850px) {
  html[data-page=PageA] .hero { gap: 24px; padding-bottom: 32px; }
  html[data-page=PageA] .hero h1 {
    font-size: clamp(48px, min(9.45vw, calc((100svh - 420px) / 2.94)), 136px);
  }
}

@media (768px <= width < 900px) and (max-height: 850px) {
  html[data-page=PageA] .hero h1 { font-size: 62px; }
  html[data-page=PageA] .hero > div { gap: 24px; }
  html[data-page=PageA] .hero nav a { height: 48px; }
}

.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-success { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 600px; padding-top: 20px; border-top: 1px solid var(--ink); }
.contact-success h2 { margin: 0; font-size: clamp(32px, 3.4vw, 48px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.contact-success p { margin: 0; font-size: 20px; line-height: 1.5; }
.contact-success a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 6px; }
.cta:disabled { cursor: wait; opacity: .65; }
.contact-hero { padding-top: 32px; row-gap: 48px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 24px; align-items: start; }
.contact-form-slot { grid-column: 2; grid-row: 1; min-width: 0; }
.contact-copy { grid-column: 1; grid-row: 1; min-width: 0; }
.contact-hero .contact-form { gap: 16px; }
.contact-hero .form-field input { height: auto; min-height: 48px; padding-block: 10px; line-height: 1.4; }
.contact-hero .form-field textarea { min-height: 120px; }
@media (768px <= width < 1024px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .contact-form-slot, .contact-copy { grid-column: 1; grid-row: auto; }
}
@media (max-width: 767px) {
  .contact-hero { row-gap: 32px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .contact-form-slot, .contact-copy { grid-column: 1; grid-row: auto; }
  html[data-page=Contact] .hero > .contact-layout { gap: 64px; }
}

/* A narrow CSS viewport can result from browser page zoom. */
@media (max-width: 280px) {
  :root { --side: 16px; }
  .header-inner { gap: 8px; }
  .brand { min-width: 0; }
  .brand img { width: clamp(64px, 35vw, 88px); height: auto; }
  .header-actions { gap: 0; }
  .header-actions :is(.locale, .mobile-toggle, [data-close-menu]) { width: 28px; min-width: 28px; flex-basis: 28px; }
  html[data-page=PageA] main { overflow-wrap: anywhere; }
}
