/* ============================================================================
   MAINJOBTODO — Design system v4 « Atelier de précision »
   Nuit d'atelier #0C0D12 · Papier technique #F4F3EF · Orange machine #E85C00
   Archivo variable (display étendu) · JetBrains Mono (cotes & données)
   Signatures : chanfreins, réticules ✛, règles graduées, cotations, grain.
   ============================================================================ */

/* ---------- 0. Polices auto-hébergées --------------------------------------
   Sous-ensembles latins (Archivo variable réduit à wdth 100–125 / wght 300–900).
   Les fichiers latin-ext ne sont téléchargés que si une page en a besoin.
   ⚠ Les faces d'une même famille doivent avoir des descripteurs IDENTIQUES
   (weight, stretch) : sinon le navigateur en retient une seule et ignore l'autre. */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 300 900; font-stretch: 100% 125%; font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 300 900; font-stretch: 100% 125%; font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+0178, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+0178, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens & reset -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --night:    #0C0D12;
  --night-2:  #11131A;
  --steel:    #171A23;
  --steel-2:  #1E222D;
  --paper:    #F4F3EF;
  --paper-2:  #ECEAE3;
  --card:     #FFFFFF;
  --ink:      #14161C;
  --ink-2:    #3A3E47;
  --muted:    #6B6E76;
  --on-night:       #EDEDEA;
  --on-night-muted: #9A9DA6;
  --orange:   #E85C00;
  --orange-2: #FF7A1A;
  --orange-deep: #C44D00;
  --orange-ink: #B34700;   /* petit texte orange sur fond clair (contraste AA) */
  --line-d:      rgba(237, 237, 234, .13);
  --line-d-soft: rgba(237, 237, 234, .07);
  --line-l:      rgba(20, 22, 28, .14);
  --line-l-soft: rgba(20, 22, 28, .07);
  --glow: 0 0 40px rgba(232, 92, 0, .35);

  --f: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --w: min(94vw, 1360px);
  --w-wide: min(96vw, 1560px);
  --w-slim: min(94vw, 860px);
  --chamfer: 12px;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--f);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }

/* Grain photographique très léger */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .028;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 2. Typographie ------------------------------------------------ */
h1, h2, h3, h4 { line-height: 1.04; letter-spacing: -.02em; }
.d-xl, .d-lg, .d-md {
  font-weight: 830;
  font-variation-settings: 'wdth' 115;
  text-transform: none;
  letter-spacing: -.015em;
}
.d-xl { font-size: clamp(42px, 6.6vw, 92px); line-height: .98; }
.d-lg { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.02; }
.d-md { font-size: clamp(24px, 3vw, 40px); line-height: 1.08; }

.hl { color: var(--orange); position: relative; }
.on-dark .hl { color: var(--orange-2); }

p { max-width: 64ch; }
.lead { font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.75; color: var(--ink-2); }
.on-dark .lead, .on-dark p { color: var(--on-night-muted); }

.mono { font-family: var(--f-mono); }

/* Surtitre technique : ✛ + mono */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 22px;
}
.eyebrow::before { content: '✛'; font-size: 12px; font-weight: 400; }
.eyebrow .idx { color: var(--muted); font-weight: 400; }
.on-dark .eyebrow .idx { color: var(--on-night-muted); }

/* ---------- 3. Structure -------------------------------------------------- */
.container { width: var(--w); margin-inline: auto; }
.container-wide { width: var(--w-wide); margin-inline: auto; }
.container-slim { width: var(--w-slim); margin-inline: auto; }

.sec { padding-block: clamp(72px, 9vw, 136px); position: relative; }
.sec-sm { padding-block: clamp(48px, 6vw, 84px); position: relative; }

.sec-night {
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(232, 92, 0, .09), transparent 58%),
    radial-gradient(700px 440px at 4% 108%, rgba(72, 96, 140, .10), transparent 55%),
    var(--night);
  color: var(--on-night);
}
/* Trame « plan technique » sur fond nuit */
.sec-night.grid-bg::before, .hero-wrap::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(237, 237, 234, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 237, 234, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 20%, transparent 75%);
}
.sec-paper2 { background: var(--paper-2); }
.sec-white { background: var(--card); }

.sec-head { max-width: 820px; margin-bottom: clamp(40px, 5.2vw, 70px); }
.sec-head p { margin-top: 18px; color: var(--muted); }
.on-dark .sec-head p { color: var(--on-night-muted); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center p { margin-inline: auto; }
.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  margin-bottom: clamp(36px, 4.6vw, 60px);
}

/* Filets & règles graduées */
.rule { border: 0; border-top: 1px solid var(--line-l); }
.ruler {
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      var(--line-l) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg,
      var(--line-l) 0 1px, transparent 1px 60px);
  background-size: auto 7px, auto 14px;
  background-repeat: repeat-x;
  background-position: bottom left, bottom left;
  opacity: .8;
}
.on-dark .ruler, .sec-night .ruler {
  background:
    repeating-linear-gradient(90deg, var(--line-d) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, var(--line-d) 0 1px, transparent 1px 60px);
  background-size: auto 7px, auto 14px;
  background-repeat: repeat-x;
  background-position: bottom left, bottom left;
}

/* Réticules d'angle (sur conteneur position:relative) */
.crosshairs::before, .crosshairs::after {
  content: '✛';
  position: absolute;
  font-size: 11px;
  color: var(--orange);
  opacity: .55;
  line-height: 1;
}
.crosshairs::before { top: 10px; left: 12px; }
.crosshairs::after { bottom: 10px; right: 12px; }

/* ---------- 4. Boutons ---------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  padding: 16px 30px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .015em;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
  transition: transform .35s var(--ease), box-shadow .35s, filter .35s;
  white-space: nowrap;
  isolation: isolate;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  opacity: 0;
  transition: opacity .35s;
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 24px rgba(232, 92, 0, .38)); }
.btn:hover::before { opacity: 1; }
.btn .arr { transition: transform .35s var(--ease); font-weight: 400; }
.btn:hover .arr { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-l);
}
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--paper); filter: none; box-shadow: none; }
.on-dark .btn-ghost, .btn-ghost.light {
  color: var(--on-night);
  box-shadow: inset 0 0 0 1.5px var(--line-d);
}
.on-dark .btn-ghost::before, .btn-ghost.light::before { background: var(--on-night); }
.on-dark .btn-ghost:hover, .btn-ghost.light:hover { color: var(--night); }

.btn-sm { padding: 11px 20px; font-size: 13px; --chamfer: 9px; }
/* Variantes héritées encore présentes dans quelques gabarits repris */
.btn.btn-outline-white { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1.5px var(--line-d); }
.btn.btn-outline-white::before { background: var(--on-night); }
.btn.btn-outline-white:hover { color: var(--night); filter: none; }
.btn.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-l); }
.btn.btn-outline::before { background: var(--ink); }
.btn.btn-outline:hover { color: var(--paper); filter: none; }
.btn-lg { padding: 19px 38px; font-size: 15px; }

.link-tech {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(232, 92, 0, .35);
  transition: gap .3s var(--ease), border-color .3s, color .3s;
}
.link-tech:hover { gap: 15px; border-color: var(--orange); }
.on-dark .link-tech { color: var(--orange-2); }

/* ---------- 5. Topbar + Navigation ---------------------------------------- */
.topbar {
  background: var(--night);
  border-bottom: 1px solid var(--line-d-soft);
  color: var(--on-night-muted);
  position: relative; z-index: 1002;
}
.topbar-inner {
  width: var(--w-wide); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-block: 7px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.topbar-inner a { color: var(--orange-2); }
.topbar-inner a:hover { text-decoration: underline; }

.nav {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(12, 13, 18, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-d-soft);
  transition: transform .4s var(--ease), background-color .3s;
  color: var(--on-night);
}
.nav.hidden { transform: translateY(-110%); }
.nav-inner {
  width: var(--w-wide); margin-inline: auto;
  display: flex; align-items: center; gap: 26px;
  height: var(--nav-h);
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-weight: 860;
  font-size: 15px;
  font-variation-settings: 'wdth' 110;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text-name { font-weight: 830; font-variation-settings: 'wdth' 112; font-size: 15.5px; letter-spacing: .04em; }
.logo-text-sub { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-night-muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px;
  font-size: 13.5px; font-weight: 600;
  color: var(--on-night-muted);
  transition: color .25s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--on-night); }
.nav-link.active::after {
  content: '';
  position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  background: var(--orange);
}

/* Dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: var(--night-2);
  border: 1px solid var(--line-d);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
  padding: 10px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease-soft), transform .3s var(--ease), visibility .25s;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
/* Ouverture pilotée par site-v4.js (.open : survol avec tolérance, clavier, tactile) ;
   :hover ne sert qu'en l'absence de JS. Le pont ::after évite la fermeture en
   traversant l'espace entre le lien et le menu. */
.nav-dropdown::after { content: ''; position: absolute; left: -8px; right: -8px; top: 100%; height: 14px; }
html:not(.js) .nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  transition: opacity .25s var(--ease-soft), transform .3s var(--ease), visibility 0s;
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-mega .nav-dropdown-menu { min-width: 640px; padding: 18px; }
.nav-mega-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.nav-mega-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-night-muted);
  padding: 4px 10px 10px;
}
.nav-dropdown-inner { display: flex; flex-direction: column; }
.nav-dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  transition: background-color .2s;
}
.nav-dropdown-item:hover, .nav-dropdown-item:focus-visible { background: rgba(237, 237, 234, .05); }
.nav-dropdown-item.is-current { background: rgba(232, 92, 0, .07); }
.nav-dropdown-item.is-current .nav-dropdown-name { color: var(--orange-2); }
.nav-mega-all {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 10px 10px 2px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-2);
  transition: gap .3s var(--ease);
}
.nav-mega-all:hover { gap: 13px; }
.nav-dropdown-letter {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-family: var(--f-mono);
  font-weight: 700; font-size: 13px;
  color: var(--orange-2);
  background: rgba(232, 92, 0, .1);
  border: 1px solid rgba(232, 92, 0, .22);
}
.nav-dropdown-name { display: block; font-size: 13.5px; font-weight: 700; color: var(--on-night); line-height: 1.25; }
.nav-dropdown-sub { display: block; font-size: 11.5px; color: var(--on-night-muted); margin-top: 1px; }
.nav-mega-right { display: flex; flex-direction: column; gap: 10px; }
.nav-mega-cta {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px;
  background: rgba(232, 92, 0, .08);
  border: 1px solid rgba(232, 92, 0, .2);
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
  position: relative;
}
.nav-mega-cta:hover { background: rgba(232, 92, 0, .14); border-color: rgba(232, 92, 0, .45); transform: translateX(3px); }
.nav-mega-cta-badge {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--orange);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.nav-mega-cta-title { font-weight: 700; font-size: 14px; color: var(--on-night); }
.nav-mega-cta-sub { font-size: 11.5px; color: var(--on-night-muted); max-width: 200px; }

.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-tel {
  font-family: var(--f-mono);
  font-size: 13px; font-weight: 600;
  color: var(--on-night-muted);
  transition: color .25s;
  white-space: nowrap;
}
.nav-tel:hover { color: var(--orange-2); }
.nav-portal-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600;
  color: var(--on-night-muted);
  padding: 8px 12px;
  border: 1px solid var(--line-d);
  transition: color .25s, border-color .25s;
  white-space: nowrap;
}
.nav-portal-btn:hover { color: var(--on-night); border-color: var(--on-night-muted); }

/* Lang switch */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; }
.lang-switch-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 21px;
  opacity: .4;
  transition: opacity .2s;
  position: relative;
}
.lang-switch-btn .lang-flag { display: block; width: 21px; height: 15px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.lang-switch-btn .lang-code { display: none; }
.lang-switch-btn:hover { opacity: .8; }
.lang-switch-btn.active { opacity: 1; }
.lang-switch-btn.active::after {
  content: '';
  position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 14px; height: 2px;
  background: var(--orange);
}

.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--on-night); transition: transform .35s var(--ease), opacity .25s; }
body.drawer-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.drawer-open .burger span:nth-child(2) { opacity: 0; }
body.drawer-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Drawer mobile */
.mob-drawer { position: fixed; inset: 0; z-index: 1200; pointer-events: none; }
.mob-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 6, 9, .6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s;
}
.mob-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(400px, 92vw);
  background: var(--night-2);
  color: var(--on-night);
  border-left: 1px solid var(--line-d);
  transform: translateX(102%);
  transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mob-drawer.open { pointer-events: auto; }
.mob-drawer.open .mob-drawer-backdrop { opacity: 1; }
.mob-drawer.open .mob-drawer-panel { transform: none; }
/* Fermé : hors de l'ordre de tabulation (visibility après la fin du glissement) */
.mob-drawer:not(.open) .mob-drawer-panel { visibility: hidden; transition: transform .45s var(--ease), visibility 0s linear .45s; }
.mob-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-d-soft);
}
.mob-drawer-brand { display: flex; align-items: center; gap: 10px; }
.mob-drawer-brand .lm {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--orange); color: #fff; font-weight: 860; font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.mob-drawer-brand .lt { font-weight: 830; font-variation-settings: 'wdth' 112; font-size: 14px; letter-spacing: .04em; }
.mob-drawer-close { font-size: 30px; line-height: 1; color: var(--on-night-muted); padding: 4px 10px; }
.mob-drawer-body { flex: 1; padding: 10px 20px 20px; }
.mob-nav-section { border-bottom: 1px solid var(--line-d-soft); }
.mob-nav-toggle, .mob-nav-link {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 2px;
  font-size: 15.5px; font-weight: 700;
  color: var(--on-night);
  text-align: left;
}
.mob-nav-toggle .chev { transition: transform .3s var(--ease); color: var(--on-night-muted); }
.mob-nav-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--orange-2); }
.mob-nav-toggle.active, .mob-nav-link.active { color: var(--orange-2); }
.mob-nav-sub { display: none; padding: 2px 0 12px; }
.mob-nav-toggle[aria-expanded="true"] + .mob-nav-sub { display: block; }
.mob-nav-sub a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 2px;
  font-size: 14px;
  color: var(--on-night-muted);
}
.mob-nav-sub a:hover { color: var(--on-night); }
.mob-nav-sub a[aria-current="page"] { color: var(--on-night); font-weight: 600; }
.mob-nav-sub a[aria-current="page"] .l { background: var(--orange); border-color: var(--orange); color: #fff; }
.mob-nav-sub .l {
  flex: none; width: 26px; height: 26px;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  color: var(--orange-2);
  background: rgba(232, 92, 0, .09);
  border: 1px solid rgba(232, 92, 0, .2);
}
.mob-drawer-foot {
  padding: 16px 20px 22px;
  border-top: 1px solid var(--line-d-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.mob-drawer-foot .row { display: flex; gap: 10px; }
.mob-drawer-foot .row > a { flex: 1; }
.mob-drawer-foot .lang-switch { align-self: flex-start; }
.mob-drawer-foot .lang-switch-btn { width: auto; height: 34px; padding: 0 12px; gap: 7px; opacity: .6; border: 1px solid var(--line-d); }
.mob-drawer-foot .lang-switch-btn .lang-code { display: inline; font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.mob-drawer-foot .lang-switch-btn.active { opacity: 1; border-color: var(--orange); }
.mob-drawer-foot .lang-switch-btn.active::after { display: none; }
body.no-scroll { overflow: hidden; }

/* ---------- 6. Ticker « règle graduée » ----------------------------------- */
.ticker-wrap {
  background: var(--night-2);
  border-bottom: 1px solid var(--line-d-soft);
  overflow: hidden;
  position: relative;
  padding-block: 9px;
}
.ticker-wrap::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--line-d) 0 1px, transparent 1px 10px);
  opacity: .5;
}
.ticker { display: flex; gap: 44px; width: max-content; animation: tickScroll 36s linear infinite; }
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.tick-item {
  font-family: var(--f-mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-night-muted);
  white-space: nowrap;
  display: flex; align-items: center; gap: 44px;
}
.tick-item::after { content: '✛'; color: var(--orange); font-size: 11px; }
@keyframes tickScroll { to { transform: translateX(-50%); } }

/* ---------- 7. Héro home --------------------------------------------------- */
.hero-wrap {
  position: relative;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
}
/* z-index 0 : le diaporama (Swiper, z-index 1) reste sous le voile et la grille */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .swiper, .hero-media .swiper-wrapper, .hero-media .swiper-slide { height: 100%; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media .hero-poster { opacity: .5; transition: opacity 1.2s var(--ease-soft); }
/* La vidéo (grand écran uniquement) se fond par-dessus l'affiche une fois lancée */
.hero-media .hero-video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-soft); }
.hero-media .hero-video.is-playing { opacity: .5; }
/* … et l'affiche s'efface en même temps : toutes deux à moitié transparentes,
   l'affiche fixe restait visible à travers la vidéo (double image) */
.hero-media .swiper-slide:has(.hero-video.is-playing) .hero-poster { opacity: 0; }
/* Lent travelling sur l'affiche active (remplace la vidéo sur mobile) */
.hero-media .swiper-slide-active .hero-poster { animation: heroDrift 14s linear both; }
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 22% 45%, rgba(12, 13, 18, .88) 0%, rgba(12, 13, 18, .45) 60%, transparent 100%),
    linear-gradient(180deg, rgba(12, 13, 18, .85) 0%, rgba(12, 13, 18, .25) 30%, rgba(12, 13, 18, .45) 75%, var(--night) 100%);
}
/* Quadrillage décoratif retiré (24/10/2026, demande de Thomas) : caché sous la vidéo
   jusque-là, il se voyait une fois le voile et la grille passés au-dessus. */
.hero-grid-lines { display: none; }
.hero-inner {
  position: relative; z-index: 3;
  width: var(--w); margin-inline: auto;
  min-height: calc(100svh - var(--nav-h) - 76px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(30px, 4vw, 70px);
  padding-block: clamp(50px, 7vh, 90px);
}
.hero-copy { max-width: 640px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-night-muted);
  border: 1px solid var(--line-d);
  padding: 8px 14px;
  margin-bottom: 26px;
}
.hero-kicker .dot { width: 7px; height: 7px; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.hero-title { font-size: clamp(40px, 5.6vw, 78px); font-weight: 850; font-variation-settings: 'wdth' 116; line-height: .99; letter-spacing: -.02em; }
.hero-title-main { display: block; }
.hero-title-sub {
  display: block;
  margin-top: .42em;
  font-size: max(.4em, 19px);
  font-weight: 700;
  font-variation-settings: 'wdth' 104;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--on-night);
  opacity: .78;
  max-width: 24ch;
}
.hero-sub { margin-top: 24px; font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.75; color: var(--on-night-muted); max-width: 54ch; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero-trust {
  margin-top: 38px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  font-size: 13px; color: var(--on-night-muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--orange-2); flex: none; }

/* Vitrine machine à droite : détouré + cotations */
.hero-stage { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.hero-stage-glow {
  position: absolute; inset: 12% 4%;
  background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(232, 92, 0, .17), transparent 70%);
  filter: blur(8px);
}
.hero-stage img.cutout {
  position: relative; z-index: 2;
  max-height: min(56vh, 520px);
  width: auto; max-width: 100%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55));
}
.hero-dim {
  position: absolute; z-index: 3;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .08em;
  color: var(--on-night-muted);
  display: flex; align-items: center; gap: 8px;
}
.hero-dim .line { height: 1px; background: var(--on-night-muted); opacity: .6; flex: 1; min-width: 40px; position: relative; }
.hero-dim .line::before, .hero-dim .line::after {
  content: ''; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--on-night-muted);
}
.hero-dim .line::before { left: 0; } .hero-dim .line::after { right: 0; }
.hero-slide-meta {
  position: absolute; right: 0; bottom: 6%;
  z-index: 4;
  text-align: right;
}
.hero-slide-meta .b {
  display: inline-block;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange-2);
  border: 1px solid rgba(232, 92, 0, .4);
  padding: 4px 9px; margin-bottom: 8px;
}
.hero-slide-meta .n { font-weight: 830; font-variation-settings: 'wdth' 112; font-size: clamp(20px, 2vw, 28px); }

/* Bande chiffres sous héro */
.hero-stats {
  position: relative; z-index: 3;
  border-top: 1px solid var(--line-d-soft);
  background: rgba(12, 13, 18, .6);
  backdrop-filter: blur(6px);
}
.hero-stats-inner {
  width: var(--w); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hero-stat {
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px 10px;
  position: relative;
}
.hero-stat + .hero-stat::before {
  content: ''; position: absolute; left: -8px; top: 22%; bottom: 22%;
  width: 1px; background: var(--line-d-soft);
}
.hero-stat .v {
  font-family: var(--f-mono); font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--on-night);
}
.hero-stat .v em { font-style: normal; color: var(--orange-2); }
.hero-stat .l { font-size: 11.5px; letter-spacing: .05em; color: var(--on-night-muted); margin-top: 2px; }

/* ---------- 8. Bande logos / confiance -------------------------------------- */
.logo-strip { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3.5vw, 54px); flex-wrap: wrap; }
.logo-strip .cap {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  flex: none;
}
.logo-strip .logos { display: flex; align-items: center; gap: clamp(22px, 3.4vw, 48px); flex-wrap: wrap; flex: 1; justify-content: center; }
.logo-strip img { height: 20px; width: auto; max-width: 100%; object-fit: contain; opacity: .5; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.logo-strip img:hover { opacity: .9; filter: none; }
.logo-strip img.tall { height: 30px; }

/* ---------- 9. Panneaux séries ---------------------------------------------- */
.series-deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.series-panel {
  position: relative;
  background: linear-gradient(160deg, var(--steel) 0%, var(--night-2) 100%);
  border: 1px solid var(--line-d-soft);
  color: var(--on-night);
  overflow: hidden;
  min-height: 330px;
  display: flex; flex-direction: column;
  padding: 24px 24px 20px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: border-color .4s, transform .45s var(--ease), box-shadow .45s;
}
.series-panel:hover { transform: translateY(-6px); border-color: rgba(232, 92, 0, .4); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(232, 92, 0, .15); }
.series-panel .big-letter {
  position: absolute; right: 6px; top: -14px;
  font-weight: 870; font-variation-settings: 'wdth' 120;
  font-size: 130px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 237, 234, .1);
  pointer-events: none;
  transition: -webkit-text-stroke-color .4s;
}
.series-panel:hover .big-letter { -webkit-text-stroke-color: rgba(232, 92, 0, .35); }
.series-panel .sp-badge {
  align-self: flex-start;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange-2);
  border: 1px solid rgba(232, 92, 0, .35);
  padding: 4px 9px;
  margin-bottom: 10px;
}
.series-panel h3 { font-size: 23px; font-weight: 820; font-variation-settings: 'wdth' 112; position: relative; z-index: 2; }
.series-panel .sp-sub { font-size: 13px; color: var(--on-night-muted); margin-top: 4px; position: relative; z-index: 2; }
.series-panel .sp-visual {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  margin: 8px -6px 10px;
  min-height: 150px;
}
.series-panel .sp-visual img {
  max-height: 185px; width: auto; max-width: 100%;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .55));
  transition: transform .5s var(--ease);
}
.series-panel:hover .sp-visual img { transform: scale(1.05) translateY(-4px); }
/* Les photos produit ont souvent un fond noir : « lighten » le fond dans le
   panneau sombre (le noir prend la teinte du panneau, la machine reste intacte). */
.sp-visual img { mix-blend-mode: lighten; }
.series-panel .sp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line-d-soft);
  padding-top: 13px;
}
.series-panel .sp-count { font-family: var(--f-mono); font-size: 11px; color: var(--on-night-muted); letter-spacing: .08em; }
.series-panel .sp-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--orange-2);
  transition: gap .3s var(--ease);
}
.series-panel:hover .sp-cta { gap: 13px; }

/* ---------- 10. Cartes machine ----------------------------------------------- */
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.machine-card {
  position: relative;
  display: flex; flex-direction: column;
  color: var(--ink);   /* posée dans une section sombre, la carte garde son encre */
  background: var(--card);
  border: 1px solid var(--line-l-soft);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.machine-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 92, 0, .35);
  box-shadow: 0 24px 50px -22px rgba(20, 22, 28, .25);
}
.machine-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(rgba(20, 22, 28, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 28, .04) 1px, transparent 1px),
    linear-gradient(180deg, #FAFAF8, #F0EFEA);
  background-size: 28px 28px, 28px 28px, auto;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.machine-img img { max-height: 86%; width: auto; max-width: 92%; object-fit: contain; transition: transform .5s var(--ease); }
.machine-card:hover .machine-img img { transform: scale(1.05); }
.machine-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .5) 50%, transparent 58%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-soft);
  pointer-events: none;
}
.machine-card:hover .machine-img::after { transform: translateX(120%); }
.machine-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--night); color: var(--orange-2);
  padding: 5px 9px;
}
.machine-body { padding: 18px 20px 16px; display: flex; flex-direction: column; flex: 1; }
.machine-series-lbl { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 5px; }
.machine-name { font-size: 21px; font-weight: 830; font-variation-settings: 'wdth' 110; letter-spacing: -.01em; }
.machine-desc { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.machine-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-l-soft);
  border: 1px solid var(--line-l-soft);
  margin-top: 14px;
}
.mspec { background: var(--paper); padding: 8px 11px; }
.mspec-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mspec-v { font-family: var(--f-mono); font-size: 12.5px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.machine-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 14px;
}
.machine-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--orange); transition: gap .3s var(--ease); }
.machine-card:hover .machine-cta { gap: 13px; }
.machine-acc { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

/* ---------- 11. USP / services / cartes génériques ---------------------------- */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.t-card {
  position: relative;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-l-soft);
  padding: clamp(20px, 2.2vw, 30px);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
  display: flex; flex-direction: column;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.t-card:hover { transform: translateY(-4px); border-color: rgba(232, 92, 0, .3); box-shadow: 0 20px 44px -24px rgba(20, 22, 28, .22); }
.t-card .ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(232, 92, 0, .09);
  border: 1px solid rgba(232, 92, 0, .18);
  color: var(--orange);
  margin-bottom: 16px;
  font-size: 20px;
}
.t-card h3 { font-size: 18.5px; font-weight: 800; }
.t-card .kick { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 7px; }
.t-card p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.65; }
.t-card ul { list-style: none; margin-top: 10px; }
.t-card li { position: relative; font-size: 13.5px; color: var(--ink-2); padding: 6px 0 6px 20px; }
.t-card li::before { content: '✛'; position: absolute; left: 0; top: 7px; font-size: 11px; color: var(--orange); }
.t-card .cta-line { margin-top: auto; padding-top: 16px; }
.t-card.dark {
  background: linear-gradient(160deg, var(--steel), var(--night-2));
  border-color: var(--line-d-soft);
  color: var(--on-night);
}
.t-card.dark h3 { color: var(--on-night); }
.t-card.dark p { color: var(--on-night-muted); }
.t-card.dark li { color: var(--on-night-muted); }

/* Grilles à 3 colonnes : la dernière ligne ne laisse plus de trou.
   Deux éléments restants se partagent la largeur ; un élément seul est centré. */
@media (min-width: 1021px) {
  .series-deck, .card-grid-3, .sect-grid:not(:has(.sect-card--lg)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .series-deck > *, .card-grid-3 > *, .sect-grid:not(:has(.sect-card--lg)) > * { grid-column: span 2; }
  .series-deck > :nth-last-child(2):nth-child(3n+1), .series-deck > :last-child:nth-child(3n+2),
  .card-grid-3 > :nth-last-child(2):nth-child(3n+1), .card-grid-3 > :last-child:nth-child(3n+2),
  .sect-grid:not(:has(.sect-card--lg)) > :nth-last-child(2):nth-child(3n+1),
  .sect-grid:not(:has(.sect-card--lg)) > :last-child:nth-child(3n+2) { grid-column: span 3; }
  .series-deck > :last-child:nth-child(3n+1):not(:first-child),
  .card-grid-3 > :last-child:nth-child(3n+1):not(:first-child) { grid-column: 3 / span 2; }
  /* Cartes élargies avec visuel : image à gauche, texte à droite (pas d'image deux fois plus haute) */
  .card-grid-3 > .t-card:nth-last-child(2):nth-child(3n+1):has(> div:first-child > img),
  .card-grid-3 > .t-card:last-child:nth-child(3n+2):has(> div:first-child > img) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 26px; align-content: start;
  }
  .card-grid-3 > .t-card:nth-last-child(2):nth-child(3n+1) > div:first-child:has(> img),
  .card-grid-3 > .t-card:last-child:nth-child(3n+2) > div:first-child:has(> img) {
    grid-column: 1; grid-row: 1 / span 6; margin: 0 !important; aspect-ratio: auto !important; min-height: 220px;
  }
  .card-grid-3 > .t-card:nth-last-child(2):nth-child(3n+1):has(> div:first-child > img) > :not(:first-child),
  .card-grid-3 > .t-card:last-child:nth-child(3n+2):has(> div:first-child > img) > :not(:first-child) { grid-column: 2; }
}

/* ---------- 12. Chiffres (compteurs) ------------------------------------------ */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.counter {
  text-align: left;
  border-left: 2px solid var(--orange);
  padding: 6px 0 6px 22px;
}
.counter .v {
  font-family: var(--f-mono); font-weight: 700;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1;
  color: var(--on-night);
  display: flex; align-items: baseline; gap: 2px;
}
.counter .v .suf { color: var(--orange-2); font-size: .62em; }
.counter .l { margin-top: 9px; font-size: 13px; color: var(--on-night-muted); line-height: 1.45; }
.sec-paper2 .counter .v, .sec-white .counter .v, .counters.on-light .counter .v { color: var(--ink); }
.counters.on-light .counter .l { color: var(--muted); }

/* ---------- 13. Secteurs mosaïque ---------------------------------------------- */
.sect-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 14px; }
.sect-card {
  position: relative;
  overflow: hidden;
  display: block;
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.sect-card--lg { grid-row: span 2; }
.sect-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.68) saturate(.85);
  transition: transform .6s var(--ease), filter .5s;
}
.sect-card:hover img { transform: scale(1.06); filter: brightness(.5) saturate(1); }
.sect-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5, 6, 9, .85) 0%, rgba(5, 6, 9, .2) 45%, transparent 100%);
}
.sect-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; z-index: 2; }
.sect-tag { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-2); }
.sect-title { font-size: clamp(17px, 1.7vw, 21px); font-weight: 820; font-variation-settings: 'wdth' 110; margin-top: 3px; }
.sect-desc { font-size: 12.5px; color: rgba(255, 255, 255, .6); margin-top: 3px; }
.sect-card::after {
  content: '→';
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--orange); color: #fff;
  font-size: 15px;
  opacity: 0; transform: translate(-6px, 6px) rotate(-45deg);
  transition: opacity .35s, transform .4s var(--ease);
}
.sect-card:hover::after { opacity: 1; transform: none; }

/* ---------- 14. Parcours / process --------------------------------------------- */
.steps-rail { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.steps-rail::before {
  content: '';
  position: absolute; left: 2%; right: 2%; top: 23px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-l) 0 8px, transparent 8px 16px);
}
.step {
  position: relative;
  padding-top: 58px;
}
.step .num {
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--night); color: var(--orange-2);
  font-family: var(--f-mono); font-weight: 700; font-size: 15px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  z-index: 2;
}
.step h3 { font-size: 18px; font-weight: 800; }
.step p { font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.6; }
.step .meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-top: 10px; display: block; }

/* ---------- 14 bis. Swiper — noyau + fondu ----------------------------------------
   Seules règles de swiper-bundle.min.css utilisées ici (la feuille complète, 18 Ko,
   n'est plus chargée). Le JS Swiper n'est chargé que sur les pages à carrousel. */
.swiper { margin-inline: auto; position: relative; overflow: hidden; list-style: none; padding: 0; z-index: 1; display: block; }
.swiper-wrapper {
  position: relative; width: 100%; height: 100%; z-index: 1;
  display: flex;
  transition-property: transform;
  transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
  box-sizing: content-box;
  transform: translate3d(0px, 0, 0);
}
.swiper-horizontal { touch-action: pan-y; }
.swiper-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; transition-property: transform; display: block; }
.swiper-backface-hidden .swiper-slide { transform: translateZ(0); backface-visibility: hidden; }
.swiper-fade .swiper-slide { pointer-events: none; transition-property: opacity; }
.swiper-fade .swiper-slide-active { pointer-events: auto; }
.swiper-button-lock { display: none; }

/* ---------- 15. Témoignages (Swiper) --------------------------------------------- */
.testi-swiper { overflow: hidden; position: relative; }
.testi-card {
  background: var(--card);
  border: 1px solid var(--line-l-soft);
  padding: clamp(22px, 2.4vw, 34px);
  height: auto;
  display: flex; flex-direction: column;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.testi-stars { color: var(--orange); font-size: 13px; letter-spacing: 3px; margin-bottom: 14px; }
.testi-text { font-size: 15px; line-height: 1.75; color: var(--ink-2); flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-l-soft); }
.testi-avatar {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--night); color: var(--orange-2);
  font-family: var(--f-mono); font-weight: 700; font-size: 13px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.testi-name { font-weight: 700; font-size: 14px; }
.testi-role { font-size: 12px; color: var(--muted); }
.swiper-nav-row { display: flex; align-items: center; gap: 10px; }
.swiper-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-l);
  color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.swiper-btn:hover { background: var(--night); color: var(--orange-2); border-color: var(--night); }
.swiper-btn.swiper-button-disabled { opacity: .3; pointer-events: none; }
.on-dark .swiper-btn { border-color: var(--line-d); color: var(--on-night); }
.on-dark .swiper-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ---------- 16. Bande CTA ----------------------------------------------------------- */
.cta-panel {
  position: relative;
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(232, 92, 0, .16), transparent 60%),
    linear-gradient(160deg, var(--steel), var(--night));
  border: 1px solid var(--line-d-soft);
  color: var(--on-night);
  padding: clamp(36px, 5vw, 70px);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.cta-panel .grid-deco {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(237, 237, 234, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 237, 234, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 90% at 80% 20%, #000, transparent 70%);
}
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 60px); flex-wrap: wrap; position: relative; z-index: 2; }
.cta-row h2 { font-size: clamp(26px, 3.4vw, 46px); font-weight: 840; font-variation-settings: 'wdth' 114; max-width: 18ch; }
.cta-row p { color: var(--on-night-muted); margin-top: 12px; max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 17. Page-hero intérieur -------------------------------------------------- */
.phero {
  position: relative;
  background:
    radial-gradient(900px 440px at 80% -20%, rgba(232, 92, 0, .11), transparent 60%),
    var(--night);
  color: var(--on-night);
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5.5vw, 76px);
  overflow: hidden;
}
.phero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(237, 237, 234, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 237, 234, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 100% at 70% 0%, #000 10%, transparent 75%);
}
.phero .container { position: relative; z-index: 2; }
.phero h1 { font-size: clamp(34px, 4.8vw, 66px); font-weight: 850; font-variation-settings: 'wdth' 115; line-height: 1; letter-spacing: -.02em; max-width: 20ch; }
.phero .sub { margin-top: 18px; font-size: clamp(15.5px, 1.3vw, 18px); color: var(--on-night-muted); max-width: 60ch; line-height: 1.75; }
.phero .phero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .06em;
  color: var(--on-night-muted);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--on-night-muted); transition: color .25s; }
.breadcrumb a:hover { color: var(--orange-2); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .cur { color: var(--on-night); }

/* ---------- 18. Tableaux de specs ------------------------------------------------------ */
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line-l-soft); background: var(--card); }
.spec-table th, .spec-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line-l-soft); font-size: 13.5px; }
.spec-table th { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.spec-table td.k { font-family: var(--f-mono); font-size: 12px; color: var(--muted); width: 40%; }
.spec-table td.v { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.spec-table tr:hover td { background: rgba(232, 92, 0, .03); }

/* ---------- 19. Galerie machine (Swiper) ------------------------------------------------ */
/* Héro fiche machine : texte + galerie. Les colonnes en minmax(0, …) et le
   min-width:0 de la galerie sont indispensables : sans eux, Swiper mesure sa
   largeur sur son propre contenu et s'étire à l'infini (33 M px). */
.mdhero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(26px, 3.6vw, 54px);
  align-items: start;
}
.mdhero-split > * { min-width: 0; }
.mgal { position: relative; min-width: 0; }
.swiper { max-width: 100%; }
.mgal .swiper { overflow: hidden; background: var(--card); border: 1px solid var(--line-l-soft); }
.mgal-slide {
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(rgba(20, 22, 28, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 28, .035) 1px, transparent 1px),
    linear-gradient(180deg, #FBFBF9, #F1F0EB);
  background-size: 32px 32px, 32px 32px, auto;
}
.mgal-slide img { max-height: 92%; max-width: 94%; object-fit: contain; }
.mgal-slide video { width: 100%; height: 100%; object-fit: cover; }
.mgal-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mgal-thumb {
  width: 76px; height: 58px;
  border: 1.5px solid var(--line-l-soft);
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .25s;
  overflow: hidden;
  position: relative;
}
.mgal-thumb img { max-height: 90%; max-width: 90%; object-fit: contain; }
.mgal-thumb.active, .mgal-thumb:hover { border-color: var(--orange); }
.mgal-thumb .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--steel), var(--night));
  color: var(--orange-2); font-size: 14px;
}
.mgal-thumb img + .play { background: rgba(12, 13, 18, .5); color: #fff; }
/* Barre d'ancres de la fiche machine : liens défilables horizontalement */
.md-anchor-links { min-width: 0; scrollbar-width: none; }
.md-anchor-links::-webkit-scrollbar { display: none; }
.md-anchor-links .nav-link { flex: none; }
@media (max-width: 760px) {
  /* Vignettes de galerie : une seule rangée qui défile, au lieu d'un mur de vignettes */
  .mgal-thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .mgal-thumbs::-webkit-scrollbar { display: none; }
  .mgal-thumb { flex: none; width: 64px; height: 50px; }
}

/* ---------- 20. Formulaires -------------------------------------------------------------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line-l-soft);
  padding: clamp(24px, 3vw, 40px);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.f-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.f-input, .f-select, .f-textarea, input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: 400 15px var(--f);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-l);
  padding: 13px 15px;
  border-radius: 0;
  transition: border-color .25s, box-shadow .25s;
}
.f-input:focus, .f-select:focus, .f-textarea:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 92, 0, .12);
}
textarea { min-height: 130px; resize: vertical; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-group { margin-bottom: 18px; }
.f-help { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.f-error { color: #C0392B; font-size: 13px; margin-top: 6px; }
.form-success {
  background: rgba(34, 139, 34, .08);
  border: 1px solid rgba(34, 139, 34, .3);
  color: #1E7A1E;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 18px;
}

/* ---------- 21. Prose (pages CMS, blog) ---------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 830; font-variation-settings: 'wdth' 112; margin: 44px 0 16px; }
.prose h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 800; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; line-height: 1.8; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; line-height: 1.7; }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border: 1px solid var(--line-l-soft); margin: 22px 0; }
.prose blockquote {
  border-left: 3px solid var(--orange);
  background: var(--paper-2);
  padding: 16px 22px;
  margin: 22px 0;
  font-style: italic;
  color: var(--ink-2);
}
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.prose th, .prose td { border: 1px solid var(--line-l); padding: 10px 14px; font-size: 14px; text-align: left; }
.prose th { background: var(--paper-2); font-weight: 700; }
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--paper-2); padding: 2px 6px; }

/* ---------- 22. Footer ---------------------------------------------------------------------- */
.footer {
  background: var(--night);
  color: var(--on-night-muted);
  border-top: 1px solid var(--line-d-soft);
  padding-top: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: 'MAINJOBTODO';
  position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%);
  font-weight: 870; font-variation-settings: 'wdth' 122;
  font-size: clamp(90px, 13vw, 210px);
  letter-spacing: .02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 237, 234, .05);
  pointer-events: none; user-select: none;
  white-space: nowrap;
}
.footer-logostrip {
  display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3vw, 36px); flex-wrap: wrap;
  padding-bottom: 36px; margin-bottom: 40px;
  border-bottom: 1px solid var(--line-d-soft);
}
.footer-logostrip img { opacity: .45; transition: opacity .3s; }
.footer-logostrip img:hover { opacity: .85; }
.footer-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(var(--cols, 5), minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer-brand p { font-size: 13.5px; line-height: 1.7; margin-top: 16px; max-width: 32ch; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-d);
  color: var(--on-night-muted);
  transition: color .25s, border-color .25s, background-color .25s;
}
.footer-socials a:hover { color: #fff; border-color: var(--orange); background: rgba(232, 92, 0, .15); }
.footer-col-title {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange-2);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a, .footer-links span { font-size: 13.5px; color: var(--on-night-muted); transition: color .25s; }
.footer-links a:hover { color: var(--on-night); }
.footer-links a[aria-current="page"] { color: var(--on-night); }
.footer-bottom-links .to-top { color: var(--orange-2); }
.footer-seo { border-top: 1px solid var(--line-d-soft); padding-top: 22px; position: relative; z-index: 2; }
.footer-seo p { font-size: 11.5px; line-height: 1.75; color: rgba(237, 237, 234, .55); max-width: 920px; }
.footer-seo strong { color: rgba(237, 237, 234, .72); font-weight: 600; }
.footer-bottom {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line-d-soft);
  margin-top: 26px;
  padding: 20px 0 26px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: rgba(237, 237, 234, .62);   /* contraste AA sur fond nuit */
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--on-night); }

/* Catalogue : gamme mise en avant (texte + image), sur une colonne au téléphone */
.series-panel--feat { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 300px; margin-bottom: clamp(14px, 1.6vw, 22px); }
@media (max-width: 760px) {
  .series-panel--feat { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  /* Fiche machine : la photo avant le texte et les boutons */
  .mdhero-split > .mgal { order: -1; }
}

/* Sticky CTA mobile */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-d);
  border-top: 1px solid var(--line-d);
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px;
  font-size: 14px; font-weight: 700;
  background: var(--night);
  color: var(--on-night);
}
.sticky-cta .sticky-msg { background: var(--orange-deep); color: #fff; clip-path: none; }   /* blanc sur orange foncé : contraste AA */
/* Masquée : hors écran et hors du parcours clavier (visibility après la transition) */
.sticky-cta { transition: transform .35s var(--ease), visibility 0s; }
.sticky-cta.is-hidden { transform: translateY(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }

/* ---------- 23. Blog ------------------------------------------------------------------------ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.post-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-l-soft);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(232, 92, 0, .3); box-shadow: 0 20px 44px -22px rgba(20, 22, 28, .2); }
.post-card .im { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.post-card .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .im img { transform: scale(1.05); }
.post-card .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.post-meta .cat { color: var(--orange); font-weight: 700; }
.post-card h3 { font-size: 18px; font-weight: 800; line-height: 1.3; }
.post-card p { font-size: 13.5px; color: var(--muted); margin-top: 8px; flex: 1; }

/* ---------- 24. Utilitaires divers ----------------------------------------------------------- */
.center { text-align: center; }
.mt-cta { margin-top: clamp(36px, 4.6vw, 60px); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 3000; background: var(--night); color: #fff; padding: 10px 16px; font-size: 14px; }
.skip-link:focus { left: 0; }
.badge-tech {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(232, 92, 0, .3);
  background: rgba(232, 92, 0, .06);
  padding: 6px 12px;
}
.on-dark .badge-tech { color: var(--orange-2); }
.img-frame { border: 1px solid var(--line-l-soft); background: var(--card); padding: 8px; }
.img-frame img { width: 100%; height: auto; }
.video-frame { position: relative; border: 1px solid var(--line-d-soft); background: var(--night-2); overflow: hidden; }
.video-frame video { display: block; width: 100%; height: auto; }

/* Révélations (pilotées par GSAP). Masquées seulement si le JS tourne (html.js) ;
   si site-v4.js ne prend pas la main (html.rv-ready absent), elles réapparaissent
   d'elles-mêmes après 2,5 s. */
html.js [data-rv], html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js [data-rv="clip"] { transform: none; clip-path: inset(0 0 100% 0); opacity: 1; }
html.js:not(.rv-ready):not(.rv-off) [data-rv],
html.js:not(.rv-ready):not(.rv-off) .reveal { animation: rvFallback .6s ease-out 2.5s forwards; }
@keyframes rvFallback { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
html.rv-off [data-rv], html.rv-off .reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ---------- 25. Responsive -------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-links { gap: 0; }
  .nav-link { padding: 9px 10px; font-size: 13px; }
  .nav-tel { display: none; }
}
@media (max-width: 1020px) {
  .nav-links, .nav-portal-btn, .nav-right .lang-switch, .nav-right .btn { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-stage { min-height: 0; margin-top: 6px; justify-content: flex-start; }
  .hero-slide-meta { position: static; text-align: left; }
  .hero-stage img.cutout { max-height: 300px; }
  .hero-copy { max-width: 100%; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .series-deck, .machine-grid, .card-grid-3, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .steps-rail { grid-template-columns: repeat(2, 1fr); gap: 30px 22px; }
  .steps-rail::before { display: none; }
  .sect-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .topbar { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .series-deck, .machine-grid, .card-grid-3, .card-grid-4, .blog-grid { grid-template-columns: 1fr; }
  .sect-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .sect-card--lg { grid-row: auto; }
  .f-row { grid-template-columns: 1fr; }
  .hero-stats-inner { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { width: 100%; }
  .counters { grid-template-columns: 1fr; }
  .steps-rail { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .sticky-cta { display: grid; }
  body:has(> .sticky-cta) { padding-bottom: 52px; }
  /* Héro d'accueil : surtitre plus discret pour remonter le titre */
  .hero-kicker { font-size: 11px; letter-spacing: .14em; padding: 6px 10px; margin-bottom: 18px; }
  .hero-inner { padding-block: 34px 40px; }
  .hero-trust { margin-top: 26px; gap: 10px 18px; }
  /* Bande « composants embarqués » : légende au-dessus, logos en grille */
  .logo-strip { flex-direction: column; align-items: flex-start; gap: 18px; }
  .logo-strip .logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; width: 100%; justify-items: center; }
  .logo-strip img { height: 16px; }
  .logo-strip img.tall { height: 24px; }
  .footer { padding-bottom: 0; }
}

/* Grilles posées en ligne dans les gabarits (accueil, série, fiche machine) : leur
   version mobile doit être connue dès le premier affichage, donc ici et non en fin
   de page (sinon le héro s'affiche sur deux colonnes puis bascule : saut de page). */
details > summary::-webkit-details-marker { display: none; }
@media (max-width: 1020px) {
  .founder-split, .cfg-split, .ec-split, .cdl-split, .cta-split,
  .sphero-split, .brochure-split, .mdhero-split, .specs-split { grid-template-columns: minmax(0, 1fr) !important; }
  .md-anchors .mono { display: none; }
}
@media (max-width: 640px) {
  .pdf-gate-row { flex-direction: column; }
}

/* Contraste : le petit texte orange passe à --orange-ink sur fond clair ;
   sur fond sombre il reste à l'orange vif (--orange-2). Boutons et grands titres inchangés. */
.eyebrow, .link-tech, .t-card .kick, .machine-series-lbl, .machine-cta, .post-meta .cat,
.doc-toc-title, .guide-card h3, .toc-n, .cert-mark, .base-head span, .duo-row .kick, .tl-k, .req,
.faqd-a a, .link-inline, .prose a, .guide-sec a, .f-disclaimer a, .art-pager-link span,
.interpret-card .n, .art-author-pill, .fact-v em, .post-badge, .gal-tab span, .finder-count { color: var(--orange-ink); }
.post-badge, .gal-tab[aria-pressed="true"] span, .gal-tab[aria-selected="true"] span { color: var(--orange-2); }
.on-dark .eyebrow, .sec-night .eyebrow, .phero .eyebrow, .hero-wrap .eyebrow, .cta-panel .eyebrow,
.on-dark .link-tech, .sec-night .link-tech, .cta-panel .link-tech, .art-side-cta .link-tech, .spot-body .link-tech,
.t-card.dark .kick, .on-dark .link-inline, .on-dark .faqd-a a { color: var(--orange-2); }
.finder-count { color: var(--muted); }
:root { --muted: #5F626A; }

/* ---------- 26. Accessibilité & mouvement réduit ----------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  html.js [data-rv], html.js .reveal { opacity: 1; transform: none; clip-path: none; }
  .ticker { animation: none; }
  .hero-media .hero-poster { animation: none !important; }
}

/* ---------- 27. Pages intérieures : documents, 404, liens rapides ------------------------------ */
.phero-compact { padding: clamp(44px, 6vw, 84px) 0 clamp(34px, 4.5vw, 60px); }
.phero-compact h1 { font-size: clamp(30px, 4vw, 54px); }
.phero-meta { margin-top: 16px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-muted); }

.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.doc-toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  border-left: 2px solid var(--line-l);
  padding: 4px 0 4px 18px;
  max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto;
}
.doc-toc-title { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 12px; }
.doc-toc ol { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc-toc li.lvl-3 { padding-left: 12px; }
.doc-toc a { font-size: 13px; line-height: 1.4; color: var(--muted); transition: color .2s; }
.doc-toc a:hover, .doc-toc a.is-active { color: var(--ink); }
.doc-body { max-width: 760px; }
.doc-body h2, .doc-body h3 { scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc-body > :first-child { margin-top: 0; }
.doc-siblings { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.doc-siblings .eyebrow { margin-bottom: 0; }
.doc-siblings-links { display: flex; flex-wrap: wrap; gap: 14px 28px; }

.err-hero { padding: clamp(60px, 9vw, 120px) 0; }
.err-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.err-code {
  font-weight: 870; font-variation-settings: 'wdth' 122;
  font-size: clamp(110px, 17vw, 240px); line-height: .85;
  color: transparent; -webkit-text-stroke: 1.5px rgba(232, 92, 0, .55);
  letter-spacing: -.02em;
}
a.t-card { color: inherit; }
a.t-card h3 { transition: color .25s; }
a.t-card:hover h3 { color: var(--orange); }

/* Utilitaires formulaires */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req { color: var(--orange); }
.f-input[aria-invalid="true"], .f-textarea[aria-invalid="true"], .f-select[aria-invalid="true"],
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.f-errors {
  background: rgba(192, 57, 43, .07); border: 1px solid rgba(192, 57, 43, .3); color: #9E2B1F;
  padding: 12px 16px; font-size: 13.5px; margin: 4px 0 16px;
}
.f-errors ul { margin: 6px 0 0 18px; }
.f-disclaimer { font-size: 12px; color: var(--muted); margin-top: 14px; max-width: none; }
.f-disclaimer a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 28. Contact ---------------------------------------------------------------------- */
.contact-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.contact-trust li, .contact-trust a { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--on-night-muted); }
.contact-trust svg { color: var(--orange-2); flex: none; }
.contact-trust a:hover { color: var(--on-night); }
.contact-main { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.form-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line-l-soft); }
.form-card-head h2 { font-size: 22px; font-weight: 820; font-variation-settings: 'wdth' 110; }
.form-card-head p { font-size: 12.5px; color: var(--muted); }
.form-submit { width: 100%; margin-top: 4px; }
.form-done { text-align: center; padding: clamp(20px, 4vw, 48px) 8px; outline: none; }
.form-done-ic { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(34, 139, 34, .1); color: #1E7A1E; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.form-done h2 { font-size: 24px; font-weight: 820; font-variation-settings: 'wdth' 110; }
.form-done p { margin: 12px auto 0; color: var(--muted); max-width: 52ch; }
.form-done-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.contact-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }
.contact-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-l-soft);
  padding: 22px 22px 20px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.contact-card h2 { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.contact-card h2 svg { color: var(--orange); }
.contact-card > p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.contact-card.on-dark { background: linear-gradient(160deg, var(--steel), var(--night)); border-color: var(--line-d-soft); color: var(--on-night); }
.contact-card.on-dark h2 { margin-bottom: 16px; }
.contact-lines { display: flex; flex-direction: column; gap: 10px; }
.contact-line {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-d);
  transition: border-color .25s, background-color .25s;
}
.contact-line:hover { border-color: var(--orange); background: rgba(232, 92, 0, .08); }
.contact-line .ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: rgba(232, 92, 0, .15); color: var(--orange-2); }
.contact-line .k { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-muted); }
.contact-line .v { display: block; font-weight: 700; font-size: 14.5px; word-break: break-all; }
.contact-facts { list-style: none; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-d-soft); display: flex; flex-direction: column; gap: 8px; }
.contact-facts li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--on-night-muted); }
.contact-facts svg { flex: none; opacity: .7; }
#rappel { scroll-margin-top: calc(var(--nav-h) + 24px); }
.callback-form { display: flex; gap: 8px; }
.callback-form .f-input { flex: 1; min-width: 0; }
.callback-form .btn { padding-inline: 18px; flex: none; }
.callback-feedback { font-size: 13px; margin-top: 8px; min-height: 0; }
.callback-feedback.is-ok { color: #1E7A1E; }
.callback-feedback.is-error { color: #9E2B1F; }
.next-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; }
.next-steps .n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: var(--night); color: var(--orange-2); font-size: 11px; font-weight: 700; }
.next-steps strong { display: block; font-size: 14px; }
.next-steps span:not(.n) { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.contact-config { display: flex; align-items: center; gap: 14px; color: var(--ink); transition: border-color .25s, transform .3s var(--ease); }
.contact-config:hover { border-color: rgba(232, 92, 0, .4); transform: translateY(-2px); }
.contact-config .ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: rgba(232, 92, 0, .09); color: var(--orange); }
.contact-config strong { display: block; font-size: 14px; }
.contact-config span span { display: block; font-size: 12.5px; color: var(--muted); }
.contact-config .arr { margin-left: auto; color: var(--orange); }

/* ---------- 29. À propos : fondateur, manifeste, parcours ----------------------------------- */
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.about-hero .sub + .sub { margin-top: 14px; }
.on-strong { color: var(--on-night); font-weight: 700; }
.founder-card {
  position: relative;
  background: linear-gradient(160deg, var(--steel), var(--night-2));
  border: 1px solid var(--line-d);
  padding: clamp(26px, 3vw, 40px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  display: flex; flex-direction: column; gap: 22px;
}
.founder-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(237, 237, 234, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(237, 237, 234, .035) 1px, transparent 1px);
  background-size: 36px 36px;
}
.founder-mono {
  position: relative;
  font-weight: 870; font-variation-settings: 'wdth' 122;
  font-size: clamp(88px, 10vw, 150px); line-height: .85;
  color: transparent; -webkit-text-stroke: 1.5px var(--orange-2);
  letter-spacing: -.02em;
}
.founder-id { position: relative; display: flex; flex-direction: column; gap: 4px; }
.founder-id .eyebrow { margin-bottom: 6px; }
.founder-id strong { font-size: 22px; font-weight: 820; font-variation-settings: 'wdth' 110; color: var(--on-night); }
.founder-id span:last-child { font-size: 13.5px; color: var(--on-night-muted); }
.founder-badge {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: rgba(232, 92, 0, .09); border: 1px solid rgba(232, 92, 0, .25); color: var(--orange-2);
}
.founder-badge span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--on-night-muted); }
.founder-badge strong { font-size: 14px; color: var(--on-night); }

.duo-list { display: flex; flex-direction: column; gap: 14px; max-width: 1080px; margin-inline: auto; }
.duo-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch;
  background: var(--card); border: 1px solid var(--line-l-soft);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.duo-a, .duo-b { padding: clamp(20px, 2.4vw, 30px); }
.duo-a { background: rgba(232, 92, 0, .035); }
.duo-row h3 { font-size: 17px; font-weight: 800; margin: 6px 0 8px; }
.duo-row p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.duo-row .kick { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.duo-row .duo-b .kick { color: var(--muted); }
.duo-row .idx { color: var(--muted); margin-right: 4px; }
.duo-arrow { display: grid; place-items: center; width: 44px; color: var(--orange); font-size: 18px; border-inline: 1px solid var(--line-l-soft); }

.tl { max-width: 980px; }
.tl { list-style: none; position: relative; border-left: 1px solid var(--line-l); margin-left: 8px; }
.tl li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 0 0 34px 30px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before {
  content: ''; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px;
  background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); box-shadow: 0 0 0 4px var(--card);
}
.tl-k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); padding-top: 2px; }
.tl h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.tl p { font-size: 14.5px; color: var(--muted); line-height: 1.7; max-width: 70ch; }
.tl p strong { color: var(--ink); }
.about-counters { margin-top: clamp(30px, 4vw, 48px); }

/* ---------- 30. Composants partagés des pages reprises : FAQ, comparatif, liens ---------------- */
.link-inline { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.on-dark .link-inline { color: var(--orange-2); }

.faqd { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.faqd-item { background: var(--card); border: 1px solid var(--line-l-soft); transition: border-color .25s; }
.faqd-item[open] { border-color: rgba(232, 92, 0, .3); }
.faqd-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 17px 20px; font-weight: 700; font-size: 15.5px; color: var(--ink);
}
.faqd-item summary::-webkit-details-marker { display: none; }
.faqd-item summary svg { flex: none; color: var(--orange); transition: transform .3s var(--ease); }
.faqd-item[open] summary svg { transform: rotate(180deg); }
.faqd-item summary:hover { color: var(--orange); }
.faqd-a { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.75; max-width: 76ch; }
.faqd-a p + p { margin-top: 10px; }
.faqd-a a { color: var(--orange); text-decoration: underline; }
.on-dark .faqd-item { background: rgba(237, 237, 234, .03); border-color: var(--line-d-soft); }
.on-dark .faqd-item summary { color: var(--on-night); }
.on-dark .faqd-a { color: var(--on-night-muted); }

.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-l-soft); background: var(--card); }
.cmp-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-l-soft); font-size: 14px; vertical-align: top; }
.cmp-table thead th { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.cmp-table tbody th { font-weight: 700; color: var(--ink); width: 24%; }
.cmp-table td { color: var(--ink-2); }
.cmp-table .is-us { background: rgba(232, 92, 0, .055); color: var(--ink); }
.cmp-table thead .is-us { background: var(--night); color: var(--orange-2); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table .yes, .cmp-table .no { display: inline-flex; vertical-align: -2px; margin-right: 7px; }
.cmp-table .yes { color: #1E7A1E; }
.cmp-table .no { color: #B03A2E; }

/* ---------- 31. Pourquoi MainJobToDo ------------------------------------------------------------ */
.pq-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(30px, 5vw, 80px); align-items: center; }
.pq-logos { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; margin-top: 30px; }
.pq-logos img { width: auto; opacity: .55; filter: grayscale(1) brightness(2.6); transition: opacity .3s, filter .3s; }
.pq-logos img:hover { opacity: 1; filter: none; }
.pq-brand {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 30px 34px; border: 1px solid var(--line-d); background: rgba(237, 237, 234, .03);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.pq-brand img { width: 160px; height: auto; }
.pq-brand span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-muted); }
.pq-stats { background: var(--night-2); border-block: 1px solid var(--line-d-soft); color: var(--on-night); }
.pq-stats-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pq-stat { padding: 26px 18px; display: flex; flex-direction: column; gap: 4px; }
.pq-stat + .pq-stat { border-left: 1px solid var(--line-d-soft); }
.pq-stat .v { font-family: var(--f-mono); font-weight: 700; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.05; color: var(--on-night); }
.pq-stat .v em { font-style: normal; color: var(--orange-2); }
.pq-stat .l { font-size: 12.5px; color: var(--on-night-muted); letter-spacing: .03em; }
.pq-ai {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px;
  margin-top: clamp(14px, 1.6vw, 22px);
  padding: clamp(22px, 2.6vw, 32px);
  background: radial-gradient(600px 200px at 100% 100%, rgba(232, 92, 0, .14), transparent 70%), linear-gradient(160deg, var(--steel), var(--night));
  border: 1px solid var(--line-d-soft); color: var(--on-night);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: border-color .3s;
}
.pq-ai:hover { border-color: rgba(232, 92, 0, .5); }
.pq-ai .ic { width: 52px; height: 52px; display: grid; place-items: center; background: rgba(232, 92, 0, .15); color: var(--orange-2); }
.pq-ai-txt { display: flex; flex-direction: column; gap: 6px; }
.pq-ai-txt .kick { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-2); }
.pq-ai-txt strong { font-size: clamp(16px, 1.5vw, 19px); font-weight: 800; }
.pq-ai-txt > span:last-child { font-size: 14px; color: var(--on-night-muted); }
.pq-ai-txt b { color: var(--orange-2); }
.pq-ai .link-tech { color: var(--orange-2); white-space: nowrap; }
@media (max-width: 640px) {
  .pq-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pq-stat, .pq-stat + .pq-stat { border-left: 0; border-top: 1px solid var(--line-d-soft); padding: 18px 12px; }
  .pq-stat:nth-child(even) { border-left: 1px solid var(--line-d-soft); }
  .pq-ai { grid-template-columns: minmax(0, 1fr); }
  .pq-ai .link-tech { grid-column: 1; }
  .callback-form { flex-direction: column; }
}

/* ---------- 32. L'usine : chiffres, étapes, sites, galerie, visionneuse -------------------------- */
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-l-soft); border: 1px solid var(--line-l-soft); }
.fact { background: var(--card); padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.fact-v { font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; color: var(--ink); }
.fact-v em { font-style: normal; font-size: .55em; color: var(--orange); }
.fact-t { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.usine-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.comp-panel { background: var(--card); border: 1px solid var(--line-l-soft); padding: clamp(22px, 2.6vw, 34px); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.comp-panel-title { display: block; font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.comp-panel > p { font-size: 13.5px; color: var(--muted); }
.comp-logos { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-l-soft); border: 1px solid var(--line-l-soft); margin-top: 18px; }
.comp-logos li { background: var(--card); padding: 16px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 10px; }
.comp-logos .lg { height: 24px; display: flex; align-items: center; }
.comp-logos img { width: auto; max-width: 120px; }

.proc-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line-l-soft); border: 1px solid var(--line-l-soft); }
.proc-card { background: var(--card); padding: 22px 20px 24px; position: relative; transition: background-color .3s; }
.proc-card:hover { background: #FFFDFB; }
.proc-n { display: block; font-size: 30px; font-weight: 700; color: var(--orange); line-height: 1; margin-bottom: 14px; }
.proc-card h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.proc-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.lb-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; overflow: hidden; }
.lb-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lb-open:hover img { transform: scale(1.04); }
.usine-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(30px, 4vw, 48px); }
.usine-fig { background: rgba(237, 237, 234, .03); border: 1px solid var(--line-d-soft); }
.usine-fig .lb-open { aspect-ratio: 16 / 10; }
.usine-fig figcaption { padding: 16px 18px 18px; font-size: 13px; color: var(--on-night-muted); }
.usine-fig figcaption strong { display: block; color: var(--on-night); font-size: 14.5px; margin-bottom: 4px; }

.base-card { background: var(--card); border: 1px solid var(--line-l-soft); display: flex; flex-direction: column; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.base-img { aspect-ratio: 16 / 9; }
.base-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.base-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.base-head h3 { font-size: 18px; font-weight: 800; }
.base-head span { font-size: 13px; font-weight: 700; color: var(--orange); white-space: nowrap; }
.base-body p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.base-body p strong { color: var(--ink); }
.base-range { font-size: 13px !important; }
.base-co { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-l-soft); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.gal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(26px, 3vw, 40px) 0 20px; }
.gal-tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border: 1px solid var(--line-l); background: var(--card);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  transition: border-color .25s, background-color .25s, color .25s;
}
.gal-tab span { font-size: 11px; color: var(--muted); }
.gal-tab:hover { border-color: var(--orange); }
.gal-tab[aria-selected="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.gal-tab[aria-selected="true"] span { color: var(--orange-2); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 10px; }
.gal-item { aspect-ratio: 4 / 3; background: var(--paper-2); }
.gal-grid.is-video .gal-item { aspect-ratio: 16 / 10; }
.gal-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; display: grid; place-items: center; background: rgba(232, 92, 0, .92); color: #fff; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); transition: transform .3s var(--ease); }
.gal-item:hover .gal-play { transform: scale(1.08); }
.gal-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(0deg, rgba(5, 6, 9, .85), transparent); color: #fff; font-size: 12.5px; font-weight: 600; text-align: left; }

.cert-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.cert { border: 1px solid var(--line-l-soft); padding: 22px 20px; background: var(--paper); }
.cert-mark { display: inline-grid; place-items: center; min-width: 52px; height: 40px; padding: 0 10px; font-family: var(--f-mono); font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--orange); border: 1.5px solid rgba(232, 92, 0, .45); margin-bottom: 14px; }
.cert h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.cert p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.lb { position: fixed; inset: 0; z-index: 2500; background: rgba(5, 6, 9, .94); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: 24px 12px; }
.lb[hidden] { display: none; }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; background: #000; }
.lb-stage figcaption { color: rgba(255, 255, 255, .7); font-size: 13px; text-align: center; font-family: var(--f-mono); letter-spacing: .04em; }
.lb-close { position: absolute; top: 14px; right: 18px; width: 46px; height: 46px; font-size: 32px; line-height: 1; color: #fff; }
.lb-nav { width: 52px; height: 52px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .2); transition: background-color .25s, border-color .25s; }
.lb-nav:hover { background: var(--orange); border-color: var(--orange); }

/* ---------- 33. Secteurs (liste) + formulaire express -------------------------------------------- */
.sect-grid--hub { grid-auto-rows: 260px; }
.sect-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sect-chips li { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; padding: 4px 9px; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .78); background: rgba(5, 6, 9, .25); }
.sect-grid--hub .sect-title { font-size: clamp(19px, 1.9vw, 24px); }
.sect-grid--hub .sect-desc { max-width: 46ch; font-size: 13px; color: rgba(255, 255, 255, .72); }
.big-num { display: block; font-size: 30px; font-weight: 700; color: var(--orange); margin-bottom: 4px; line-height: 1.1; }
.seo-note { margin-top: clamp(30px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line-l-soft); }
.seo-note p { max-width: 110ch; font-size: 13.5px; line-height: 1.85; color: var(--muted); }
.cta-split-v4 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); position: relative; z-index: 2; }
.quick-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.quick-form .qf-full { grid-column: 1 / -1; }
.qf-feedback { font-size: 14px; min-height: 0; }
.qf-feedback.is-ok { color: #7ED47E; }
.qf-feedback.is-error { color: #FF9A8A; }
@media (max-width: 1020px) {
  .cta-split-v4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 34. Blog : héro, sélection, filtres, auteurs ------------------------------------------ */
.blog-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.blog-intents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.blog-intent {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px; border: 1px solid var(--line-d); color: var(--on-night);
  font-size: 13px; font-weight: 600; transition: border-color .25s, background-color .25s;
}
.blog-intent span { font-size: 11px; color: var(--orange-2); }
.blog-intent:hover { border-color: var(--orange); background: rgba(232, 92, 0, .1); }
.blog-latest {
  display: flex; align-items: center; gap: 14px; margin-top: 26px; max-width: 560px;
  padding: 14px 16px; border: 1px solid var(--line-d-soft); background: rgba(237, 237, 234, .03); color: var(--on-night);
  transition: border-color .25s;
}
.blog-latest:hover { border-color: rgba(232, 92, 0, .5); }
.blog-latest-badge { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; background: var(--orange); color: #fff; }
.blog-latest-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.blog-latest-body strong { font-size: 14px; line-height: 1.35; }
.blog-latest-body span { font-size: 12px; color: var(--on-night-muted); }
.blog-latest .arr { margin-left: auto; color: var(--orange-2); }

.spot { position: relative; border: 1px solid var(--line-d); background: var(--night-2); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.spot-lbl { position: absolute; top: 14px; left: 14px; z-index: 3; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: rgba(5, 6, 9, .7); padding: 5px 9px; }
.spot-stage { position: relative; aspect-ratio: 16 / 11; }
.spot-slide { position: absolute; inset: 0; display: block; color: #fff; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease-soft), visibility .8s; }
.spot-slide.is-active { opacity: 1; visibility: visible; }
.spot-slide img { width: 100%; height: 100%; object-fit: cover; }
.spot-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 6, 9, .92) 0%, rgba(5, 6, 9, .35) 55%, rgba(5, 6, 9, .05) 100%); }
.spot-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.spot-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); }
.spot-body strong { font-size: clamp(17px, 1.6vw, 21px); font-weight: 800; line-height: 1.25; }
.spot-body .link-tech { color: var(--orange-2); align-self: flex-start; }
.spot-dots { display: flex; gap: 8px; padding: 12px 22px 16px; }
.spot-dot { width: 22px; height: 4px; background: rgba(237, 237, 234, .25); transition: background-color .3s, width .3s var(--ease); }
.spot-dot.is-active { width: 38px; background: var(--orange); }

.finder-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.finder-count { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.finder-tabs { margin: 20px 0 26px; }
.gal-tab[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.gal-tab[aria-pressed="true"] span { color: var(--orange-2); }
.finder-empty { text-align: center; padding: 40px 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.post-card { color: inherit; }
.post-card[hidden] { display: none; }
.post-card .im { position: relative; }
.post-badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--night); color: var(--orange-2); padding: 5px 9px; }
.post-card h3 { transition: color .25s; }
.post-card:hover h3 { color: var(--orange); }
.post-cta { margin-top: 14px; align-self: flex-start; }
.post-card.is-tool { border-color: rgba(232, 92, 0, .22); }

.authors { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.authors-mark {
  width: 84px; height: 84px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep)); color: #fff;
  font-weight: 870; font-variation-settings: 'wdth' 118; font-size: 28px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.authors h2 { margin-bottom: 12px; }
.authors p { color: var(--muted); max-width: 78ch; }
.authors-links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 18px; }

@media (max-width: 1020px) {
  .blog-hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 36. Guide d'achat ------------------------------------------------------------------- */
.guide { min-width: 0; max-width: 820px; }
.guide-sec { position: relative; padding: 0 0 clamp(36px, 4vw, 54px); margin-bottom: clamp(36px, 4vw, 54px); border-bottom: 1px solid var(--line-l-soft); scroll-margin-top: calc(var(--nav-h) + 20px); }
.guide-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.guide-n { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--night); padding: 4px 9px; margin-bottom: 14px; }
.guide-sec h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 830; font-variation-settings: 'wdth' 110; margin-bottom: 16px; }
.guide-sec > p { font-size: 16px; line-height: 1.8; color: var(--ink-2); margin-bottom: 14px; max-width: 72ch; }
.guide-sec a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.guide-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.guide-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.guide-card { background: var(--card); border: 1px solid var(--line-l-soft); padding: 20px; }
.guide-card h3 { font-size: 16px; font-weight: 800; color: var(--orange-ink); margin-bottom: 10px; }
.guide-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.guide-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.guide-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.guide-list svg { flex: none; color: var(--orange); margin-top: 3px; }
.guide-questions { margin: 6px 0 18px; }
.guide-tip { max-width: none !important; margin-top: 18px !important; padding: 16px 20px; background: rgba(232, 92, 0, .06); border-left: 3px solid var(--orange); font-size: 14.5px !important; }
.guide-table { margin-top: 18px; }
.guide-table .cmp-table { min-width: 520px; }
.guide-table td a { font-weight: 700; }
.guide-dl { display: flex; flex-direction: column; border-top: 1px solid var(--line-l-soft); margin-top: 8px; }
.guide-dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line-l-soft); }
.guide-dl dt { font-weight: 800; color: var(--orange-ink); font-size: 15px; }
.guide-dl dd { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.toc-n { color: var(--orange-ink); font-size: 11px; margin-right: 4px; }
.pdf-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.pdf-box p { color: var(--on-night-muted); margin-top: 12px; }
.pdf-form { display: flex; gap: 8px; }
.pdf-form .f-input { flex: 1; min-width: 0; }
.pdf-note { font-size: 12.5px; color: var(--on-night-muted); margin-top: 12px; }
.pdf-note.is-ok { color: #7ED47E; font-weight: 600; }
.pdf-note.is-error { color: #FF9A8A; }
@media (max-width: 1020px) {
  .pdf-box { grid-template-columns: minmax(0, 1fr); }
  .guide-trio { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .guide-duo { grid-template-columns: minmax(0, 1fr); }
  .guide-dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pdf-form { flex-direction: column; }
}

/* ---------- 35. Article de blog ----------------------------------------------------------------- */
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 1300; pointer-events: none; }
.read-progress-bar { height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-2)); transform: scaleX(0); transform-origin: left; }
.art-hero-inner { max-width: 900px; }
.art-hero-inner .badge-tech { margin-bottom: 20px; }
.art-hero h1 { max-width: 24ch; font-size: clamp(30px, 4.2vw, 56px); }
.art-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font-size: 13px; color: var(--on-night-muted); }
.art-meta li { display: inline-flex; align-items: center; gap: 8px; }
.art-meta svg { color: var(--orange-2); }
.art-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.art-action { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line-d); color: var(--on-night-muted); font-size: 12.5px; font-weight: 600; transition: color .25s, border-color .25s; }
.art-action:hover { color: var(--on-night); border-color: var(--on-night-muted); }
.art-cover { background: linear-gradient(180deg, var(--night) 0 50%, var(--paper) 50% 100%); }
.art-cover img { width: 100%; height: auto; aspect-ratio: 1400 / 613; object-fit: cover; border: 1px solid var(--line-l-soft); }
.art-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(30px, 4vw, 64px); align-items: start; }
.art-side { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; }
.art-toc { position: static; max-height: none; }
.art-side-cta { background: var(--night); color: var(--on-night); padding: 20px; display: flex; flex-direction: column; gap: 10px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.art-side-cta .kick { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); }
.art-side-cta strong { font-size: 15px; line-height: 1.35; }
.art-side-cta p { font-size: 12.5px; color: var(--on-night-muted); }
.art-side-cta .btn { align-self: flex-start; }
.art-side-cta .link-tech { color: var(--orange-2); font-size: 11px; align-self: flex-start; }
.article-main { min-width: 0; max-width: 780px; }
.art-toc-mobile { display: none; border: 1px solid var(--line-l); background: var(--card); margin-bottom: 26px; }
.art-toc-mobile summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 14px; }
.art-toc-mobile ol { list-style: none; padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.art-toc-mobile a { font-size: 13.5px; color: var(--muted); }

.interpret { margin-top: 48px; padding: clamp(22px, 3vw, 34px); background: var(--paper-2); border: 1px solid var(--line-l-soft); }
.interpret-sub { color: var(--muted); margin-top: 10px; font-size: 14.5px; }
.interpret-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.interpret-card { background: var(--card); border: 1px solid var(--line-l-soft); padding: 18px; }
.interpret-card .n { display: block; color: var(--orange-ink); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.interpret-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.interpret-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.interpret-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-l); font-size: 13.5px; color: var(--ink-2); }
.interpret-cta span { max-width: 60ch; }

.art-author { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; margin-top: 48px; padding: 24px; background: var(--card); border: 1px solid var(--line-l-soft); }
.art-author .authors-mark { width: 64px; height: 64px; font-size: 22px; }
.art-author strong { font-size: 16px; }
.art-author-pill { display: inline-block; margin-left: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-ink); border: 1px solid rgba(232, 92, 0, .3); padding: 3px 8px; vertical-align: 2px; }
.art-author p { font-size: 14px; color: var(--muted); margin-top: 8px; }
.art-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.art-proof li::before { content: '✛'; color: var(--orange); margin-right: 7px; font-size: 11px; }
.art-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.art-pager-link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line-l-soft); background: var(--card); transition: border-color .25s; }
.art-pager-link:hover { border-color: rgba(232, 92, 0, .4); }
.art-pager-link span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-ink); }
.art-pager-link strong { font-size: 14.5px; line-height: 1.35; }
.art-pager-link.is-next { text-align: right; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 2600; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--night); color: #fff; padding: 12px 18px; font-size: 13.5px; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1020px) {
  .art-grid { grid-template-columns: minmax(0, 1fr); }
  .art-side { display: none; }
  .art-toc-mobile:not([hidden]) { display: block; }
  .interpret-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .art-pager { grid-template-columns: minmax(0, 1fr); }
  .art-author { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .topbar, .nav, .mob-drawer, .art-side, .art-actions, .read-progress, .footer, .sticky-cta, .cta-panel, .art-pager { display: none !important; }
  .phero { background: none !important; color: #000 !important; padding: 0 !important; }
  .phero::before { display: none; }
  .art-grid { display: block; }
  /* Guide d'achat « Enregistrer en PDF » : le contenu seul, sur une colonne */
  .doc-toc, #pdf, .phero-ctas, .skip-link { display: none !important; }
  .doc-layout { display: block !important; }
  .phero h1, .phero .sub, .phero li, .phero .eyebrow { color: #000 !important; }
}
@media (max-width: 640px) {
  /* Filtres et onglets : un bandeau qui défile plutôt que cinq lignes de boutons */
  .gal-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--w) * 0 - 3vw); padding-inline: 3vw; scroll-padding-inline: 3vw; }
  .gal-tabs::-webkit-scrollbar { display: none; }
  .gal-tab { flex: none; }
  .blog-intents { display: none; }
  .authors { grid-template-columns: minmax(0, 1fr); }
  .authors-mark { width: 60px; height: 60px; font-size: 20px; }
}
@media (max-width: 640px) {
  .sect-grid--hub { grid-auto-rows: 230px; }
  .quick-form { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1020px) {
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usine-split { grid-template-columns: minmax(0, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 16px 4px; }
  .lb-nav { width: 40px; height: 40px; }
}
@media (max-width: 640px) {
  .proc-grid { grid-template-columns: minmax(0, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 18px 16px; }
  .fact-v { font-size: 22px; }
  .usine-figs { grid-template-columns: minmax(0, 1fr); }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comp-logos { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1020px) {
  .pq-hero { grid-template-columns: minmax(0, 1fr); }
  .pq-brand { display: none; }
  .pq-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pq-stat:nth-child(4) { border-left: 0; }
  .pq-stat:nth-child(n+4) { border-top: 1px solid var(--line-d-soft); }
  .pq-ai { grid-template-columns: auto minmax(0, 1fr); }
  .pq-ai .link-tech { grid-column: 2; justify-self: start; }
  .about-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .duo-row { grid-template-columns: minmax(0, 1fr); }
  .duo-arrow { display: none; }
  .duo-b { border-top: 1px solid var(--line-l-soft); }
  .tl li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { position: static; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); padding: 16px 0; }
  .err-wrap { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================================
   Compatibilité héritée — blocs de contenu conservés des anciens gabarits
   ============================================================================ */
:root {
  --gray-50: #F4F3EF; --gray-100: #ECEAE3; --gray-200: #E0DED6; --gray-300: #C9C6BD;
  --gray-400: #8A8D94; --gray-500: #6B6E76; --gray-600: #4A4D55; --gray-700: #33363E;
  --gray-800: #23262D; --gray-900: #14161C; --white: #FFFFFF;
  --border: rgba(20, 22, 28, .12);
  --font-h: var(--f); --font-m: var(--f-mono); --font-mono: var(--f-mono);
}
.section { padding-block: clamp(60px, 8vw, 108px); position: relative; }
.h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 830; font-variation-settings: 'wdth' 112; letter-spacing: -.02em; line-height: 1.08; }
.orange { color: var(--orange); }
.tag.mono {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.tag.mono::before { content: '✛'; font-size: 11px; }
.section-header { margin-bottom: 28px; }
.container-slim { width: var(--w-slim); margin-inline: auto; }

/* Machine — présentation & avantages */
.md-desc-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 4vw, 60px); align-items: start; }
.md-desc-text { font-size: 15.5px; line-height: 1.85; color: var(--ink-2); max-width: 70ch; }
.md-desc-text p { margin-bottom: 14px; }
.md-desc-text h3 { font-size: 19px; font-weight: 800; margin: 22px 0 10px; }
.md-advantages {
  background: var(--card);
  border: 1px solid var(--line-l-soft);
  padding: clamp(20px, 2.4vw, 30px);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.md-adv-title { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.md-adv-list { display: flex; flex-direction: column; gap: 14px; }
.md-adv-item { display: flex; gap: 13px; align-items: flex-start; }
.md-adv-icon {
  flex: none; width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(232, 92, 0, .09);
  border: 1px solid rgba(232, 92, 0, .2);
  color: var(--orange);
}
.md-adv-item strong { display: block; font-size: 14px; font-weight: 700; }
.md-adv-item p { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.55; }
@media (max-width: 1020px) { .md-desc-grid, .mdhero-split { grid-template-columns: minmax(0, 1fr); } }

/* FAQ générique (machine + pages) */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq-item { background: var(--card); border: 1px solid var(--line-l-soft); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  font-weight: 700; font-size: 15px;
  text-align: left;
  color: var(--ink);
}
.faq-q svg { flex: none; transition: transform .3s var(--ease); color: var(--orange); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--orange); text-decoration: underline; }
/* Vars héritées supplémentaires (configurateur, espace client) */
:root { --dark: #0C0D12; --font-b: var(--f); --orange-l: #FF7A1A; --orange-pale: rgba(232, 92, 0, .1); }

/* ---------- 37. Formulaire express « Décrire mon projet » (partial quick-quote) ------------------- */
.qq { position: relative; z-index: 2; }
.qq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 14px; }
.qq-full { grid-column: 1 / -1; }
.qq-l {
  display: block; margin-bottom: 7px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-night-muted);
}
.qq-opt { text-transform: none; letter-spacing: 0; opacity: .75; }
.qq .f-input, .qq .f-select, .qq .f-textarea { font-size: 15px; padding: 12px 14px; }
.qq .f-textarea { min-height: 96px; }
.qq-submit { width: 100%; margin-top: 18px; }
.qq-legal { margin: 12px 0 0; max-width: none; font-size: 12px; color: var(--on-night-muted); text-align: center; }
.qq-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.qq-errors { margin-top: 14px; padding: 11px 14px; font-size: 13.5px; background: rgba(192, 57, 43, .14); border: 1px solid rgba(255, 140, 120, .35); color: #FFB4A6; }
.qq-done { padding: clamp(22px, 4vw, 44px) 8px; text-align: center; outline: none; }
.qq-done-ic {
  width: 58px; height: 58px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: rgba(126, 212, 126, .14); color: #7ED47E;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.qq-done-t { font-size: 22px; font-weight: 820; font-variation-settings: 'wdth' 110; color: var(--on-night); max-width: none; }
.qq-done-p { margin: 10px auto 0; color: var(--on-night-muted); max-width: 46ch; }
/* Variante sur fond clair */
.qq--light .qq-l { color: var(--ink-2); }
.qq--light .qq-legal { color: var(--muted); }
.qq--light .qq-errors { background: rgba(192, 57, 43, .07); border-color: rgba(192, 57, 43, .3); color: #9E2B1F; }
.qq--light .qq-done-ic { background: rgba(34, 139, 34, .1); color: #1E7A1E; }
.qq--light .qq-done-t { color: var(--ink); }
.qq--light .qq-done-p { color: var(--muted); }
@media (max-width: 600px) {
  .qq-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ---------- 38. Fiche secteur ------------------------------------------------------------------- */
.sx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(30px, 5vw, 76px); align-items: center; }
.sx-hero h1 { max-width: 20ch; font-size: clamp(32px, 4.3vw, 60px); }
.sx-hero h1 .orange, .phero .orange, .cta-panel .orange { color: var(--orange-2); }
.hero-kpis { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin-top: 34px; border-top: 1px solid var(--line-d); max-width: 920px; }
.hero-kpis li { padding: 16px 16px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.hero-kpis li + li { padding-left: 16px; border-left: 1px solid var(--line-d-soft); }
.hero-kpi-v { font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; color: var(--orange-2); letter-spacing: -.01em; line-height: 1.1; }
.hero-kpi-l { font-size: 12.5px; color: var(--on-night-muted); line-height: 1.45; }
.sx-hero-media {
  position: relative; margin: 0;
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--steel);
  border: 1px solid var(--line-d);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.sx-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.04); }
.sx-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 13, 18, .55)); pointer-events: none; }
.sx-hero-media figcaption {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night);
}
.sx-hero-media figcaption span { color: var(--orange-2); margin-right: 6px; }
.sx-hero-media.crosshairs::before, .sx-hero-media.crosshairs::after { z-index: 3; }

.sx-logos { border-bottom: 1px solid var(--line-l-soft); padding-block: 26px; }

.sx-need-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.sx-need-top .ic { margin-bottom: 12px; }
.sx-need-n { font-size: 12px; color: var(--muted); letter-spacing: .1em; }

.sx-recs { display: flex; flex-direction: column; gap: 18px; }
.sx-rec {
  position: relative;
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0;
  background: var(--card);
  border: 1px solid var(--line-l-soft);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: border-color .35s, transform .4s var(--ease), box-shadow .4s;
}
.sx-rec:hover { border-color: rgba(232, 92, 0, .3); transform: translateY(-3px); box-shadow: 0 22px 46px -26px rgba(20, 22, 28, .25); }
.sx-rec.is-top { border-color: rgba(232, 92, 0, .4); box-shadow: inset 3px 0 0 var(--orange); }
.sx-rec-media {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 230px; padding: 22px; overflow: hidden;
  background:
    linear-gradient(rgba(20, 22, 28, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 22, 28, .045) 1px, transparent 1px),
    linear-gradient(180deg, #FAFAF8, #EFEEE8);
  background-size: 26px 26px, 26px 26px, auto;
  border-right: 1px solid var(--line-l-soft);
}
.sx-rec-media img { max-height: 210px; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; position: relative; z-index: 1; transition: transform .5s var(--ease); }
.sx-rec:hover .sx-rec-media img { transform: scale(1.04); }
.sx-rec-letter {
  position: absolute; left: 12px; top: 2px;
  font-size: 92px; font-weight: 870; font-variation-settings: 'wdth' 120; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(20, 22, 28, .1);
}
.sx-rec-body { padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; align-items: flex-start; }
.sx-rec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; width: 100%; margin-bottom: 6px; }
.sx-rec .kick { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); }
.sx-rec-badge {
  font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 9px; border: 1px solid var(--line-l); color: var(--muted);
}
.sx-rec-badge.is-top { background: var(--night); border-color: var(--night); color: var(--orange-2); }
.sx-rec h3 { font-size: clamp(20px, 2vw, 25px); font-weight: 830; font-variation-settings: 'wdth' 110; letter-spacing: -.01em; }
.sx-rec h3 a { transition: color .25s; }
.sx-rec h3 a:hover { color: var(--orange-ink); }
.sx-rec p { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.sx-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sx-chips li { font-family: var(--f-mono); font-size: 11px; padding: 5px 10px; background: var(--paper); border: 1px solid var(--line-l-soft); color: var(--ink-2); }
.sx-models { width: 100%; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-l); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sx-models-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex: none; }
.sx-models ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sx-models a {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 6px 10px; border: 1px solid var(--line-l); background: var(--card);
  font-size: 13px; transition: border-color .25s, color .25s, background-color .25s;
}
.sx-models a strong { font-weight: 750; }
.sx-models a span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.sx-models a:hover { border-color: var(--orange); color: var(--orange-ink); background: rgba(232, 92, 0, .04); }
.sx-rec .link-tech { margin-top: 18px; }

.sx-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.sx-faq .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.sx-faq-ask { margin-top: 22px; }
.sx-faq .d-lg { font-size: clamp(28px, 3.3vw, 46px); }
/* Rangée de boutons hors héro (sections sombres, panneaux) */
.phero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.sx-cta-title { margin-top: 18px; }
.sx-cta-sub { margin-top: 14px; color: var(--on-night-muted); line-height: 1.75; }
.sx-cta-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.sx-cta-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--on-night); }
.sx-cta-list li::before { content: '✛'; position: absolute; left: 0; top: 1px; font-size: 11px; color: var(--orange-2); }
.sx-cta-alt { margin-top: 26px; display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }

.sect-grid.sx-others { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; }
.sect-grid.sx-others > * { grid-column: auto !important; }

@media (max-width: 1020px) {
  .sx-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .sx-hero-media { aspect-ratio: 16 / 9; }
  .sx-faq { grid-template-columns: minmax(0, 1fr); }
  .sx-faq .sec-head { position: static; }
}
@media (max-width: 760px) {
  .sx-rec { grid-template-columns: minmax(0, 1fr); }
  .sx-rec-media { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line-l-soft); }
  .sx-rec-media img { max-height: 170px; }
}
@media (max-width: 640px) {
  .hero-kpis { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .hero-kpis li, .hero-kpis li + li { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line-d-soft); flex-direction: row; align-items: baseline; gap: 12px; }
  .hero-kpi-v { min-width: 8.5ch; }
  .sect-grid.sx-others { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 150px; }
  .sx-hero .eyebrow .idx { display: none; }
}

/* ---------- 39. Maquette de l'Assistant IA (partial ai-chat) ---------------------------------- */
.aichat { background: var(--night-2); border: 1px solid var(--line-d); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.aichat-head { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-bottom: 1px solid var(--line-d-soft); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); }
.aichat-dot { width: 9px; height: 9px; border-radius: 50%; background: #2ECC71; box-shadow: 0 0 8px #2ECC71; flex: none; }
.aichat-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.aichat-q { align-self: flex-end; max-width: 85%; background: rgba(232, 92, 0, .14); border: 1px solid rgba(232, 92, 0, .3); padding: 11px 14px; font-size: 13.5px; color: var(--on-night); }
.aichat-a { align-self: flex-start; max-width: 92%; background: rgba(237, 237, 234, .05); border: 1px solid var(--line-d-soft); padding: 11px 14px; font-size: 13.5px; line-height: 1.6; color: var(--on-night-muted); }
.aichat-a strong { color: var(--on-night); }
.aichat-src { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--orange-2); }
.aichat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 4px 8px; }
.aichat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--on-night-muted); animation: pulseDot 1.2s ease-in-out infinite; }
.aichat-typing span:nth-child(2) { animation-delay: .2s; }
.aichat-typing span:nth-child(3) { animation-delay: .4s; }

/* ---------- 40. Contrats / formules (services) ------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  color: var(--ink);
  background: var(--card); border: 1px solid var(--line-l-soft);
  padding: clamp(22px, 2.4vw, 32px);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.plan.is-featured { background: linear-gradient(160deg, var(--steel), var(--night)); border-color: rgba(232, 92, 0, .45); color: var(--on-night); }
.plan-flag { align-self: flex-start; margin-bottom: 14px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 5px 9px; background: var(--orange); color: #fff; }
.plan h3 { font-size: 24px; font-weight: 840; font-variation-settings: 'wdth' 112; }
.plan-for { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; min-height: 3.2em; }
.plan.is-featured .plan-for { color: var(--on-night-muted); }
.plan-list { list-style: none; margin: 18px 0 24px; padding-top: 16px; border-top: 1px solid var(--line-l-soft); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan.is-featured .plan-list { border-top-color: var(--line-d-soft); }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.plan.is-featured .plan-list li { color: var(--on-night); }
.plan-list svg { flex: none; margin-top: 3px; color: var(--orange); }
.plan-list li.is-off { color: var(--muted); opacity: .75; }
.plan-list li.is-off svg { color: var(--muted); }
.plan.is-featured .plan-list li.is-off { color: var(--on-night-muted); }
.plan .btn { width: 100%; }
.plans-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 18px; background: var(--paper-2); border-left: 3px solid var(--orange); font-size: 13.5px; color: var(--ink-2); }
.plans-note svg { flex: none; color: var(--orange); margin-top: 2px; }

/* Bande d'engagements (4 cellules) */
.commit-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-l-soft); background: var(--card); }
.commit-strip > div { padding: 24px 22px; border-left: 1px solid var(--line-l-soft); }
.commit-strip > div:first-child { border-left: 0; }
.commit-v { font-family: var(--f-mono); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; color: var(--orange-ink); line-height: 1; }
.commit-l { margin-top: 10px; font-weight: 750; font-size: 14.5px; }
.commit-s { margin-top: 3px; font-size: 13px; color: var(--muted); }
@media (max-width: 1020px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .commit-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commit-strip > div:nth-child(3) { border-left: 0; }
  .commit-strip > div:nth-child(n+3) { border-top: 1px solid var(--line-l-soft); }
}
@media (max-width: 360px) {
  .commit-strip { grid-template-columns: minmax(0, 1fr); }
  .commit-strip > div { border-left: 0; }
  .commit-strip > div + div { border-top: 1px solid var(--line-l-soft); }
}

/* Deux colonnes texte + visuel (sections sombres) */
.split-2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 1020px) { .split-2 { grid-template-columns: minmax(0, 1fr); } }
.mini-kpis { display: flex; gap: 14px 30px; flex-wrap: wrap; margin-top: 24px; list-style: none; }
.mini-kpis li { display: flex; flex-direction: column; gap: 2px; }
.mini-kpis .v { font-family: var(--f-mono); font-size: 20px; font-weight: 700; color: var(--orange-2); }
.mini-kpis .l { font-size: 12px; color: var(--on-night-muted); }

/* ---------- 41. Services ------------------------------------------------------------------------ */
.svc2-title { max-width: 21ch; }
.svc2-ic svg { width: 22px; height: 22px; }
.svc2-pillars .t-card ul { margin-top: 12px; }

/* En-têtes de section avec lien : empilés sur mobile (le lien ne s'écrase plus en colonne) */
@media (max-width: 640px) {
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .commit-strip > div { padding: 18px 16px; }
}

/* ---------- 42. Financement : simulateur, solutions, aides ------------------------------------- */
.fin2-title { max-width: 19ch; }
.fin2-calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); border: 1px solid var(--line-l-soft); background: var(--card); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.fin2-inputs { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 26px; }
.fin2-field { border: 0; min-width: 0; }
.fin2-field legend { padding: 0; }
.fin2-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fin2-price { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; color: var(--ink); }
.fin2-range { width: 100%; margin-top: 14px; accent-color: var(--orange); height: 28px; cursor: pointer; }
.fin2-range-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }
.fin2-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.fin2-seg-btn { padding: 11px 6px; border: 1px solid var(--line-l); background: var(--paper); font-weight: 650; font-size: 13.5px; transition: border-color .2s, background-color .2s, color .2s; }
.fin2-seg-btn:hover { border-color: var(--orange); }
.fin2-seg-btn[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.fin2-sols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fin2-sol { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 13px 14px; border: 1px solid var(--line-l); background: var(--paper); text-align: left; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.fin2-sol strong { font-size: 14px; }
.fin2-sol span { font-size: 11px; color: var(--muted); }
.fin2-sol:hover { border-color: var(--orange); }
.fin2-sol[aria-pressed="true"] { border-color: var(--orange); background: rgba(232, 92, 0, .06); box-shadow: inset 0 0 0 1px var(--orange); }
.fin2-sol[aria-pressed="true"] strong { color: var(--orange-ink); }
.fin2-result {
  padding: clamp(22px, 3vw, 40px);
  background: radial-gradient(600px 300px at 90% 0%, rgba(232, 92, 0, .16), transparent 60%), linear-gradient(160deg, var(--steel), var(--night));
  color: var(--on-night);
  display: flex; flex-direction: column;
}
.fin2-result-k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-muted); }
.fin2-monthly { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; max-width: none; }
.fin2-monthly .mono { font-size: clamp(44px, 5vw, 64px); font-weight: 700; color: var(--orange-2); line-height: 1; letter-spacing: -.02em; }
.fin2-unit { font-size: 16px; color: var(--on-night-muted); }
.fin2-result-ht { font-size: 12px; color: var(--on-night-muted); margin-top: 6px; }
.fin2-break { margin: 22px 0 24px; padding-top: 16px; border-top: 1px solid var(--line-d-soft); display: flex; flex-direction: column; gap: 10px; }
.fin2-break div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.fin2-break dt { color: var(--on-night-muted); }
.fin2-break dd { font-weight: 700; text-align: right; }
.fin2-cta { width: 100%; white-space: normal; text-align: center; }
.fin2-disclaimer { margin-top: 14px; font-size: 11.5px; line-height: 1.6; color: var(--on-night-muted); max-width: none; }
.fin2-tag { align-self: flex-start; margin-bottom: 14px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line-l); color: var(--muted); }
.fin2-ex strong { white-space: nowrap; }
.fin2-ex { margin-top: auto; padding: 12px 14px; background: var(--paper); border-left: 3px solid var(--orange); font-size: 13px; color: var(--ink-2); max-width: none; }
.plan.is-featured .fin2-ex { background: rgba(237, 237, 234, .06); color: var(--on-night); }
.fin2-sols-grid .plan-list { flex: none; margin-bottom: 20px; }
.fin2-aids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.fin2-aids .t-card .fin2-ex { margin-top: 16px; }
@media (max-width: 1020px) {
  .fin2-calc { grid-template-columns: minmax(0, 1fr); }
  .fin2-aids { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .fin2-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fin2-sols { grid-template-columns: minmax(0, 1fr); }
  .fin2-sol { flex-direction: row; justify-content: space-between; align-items: baseline; }
}
/* Tableaux comparatifs : 1re colonne figée pendant le défilement horizontal (mobile) */
.cmp-table tbody th, .cmp-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
.cmp-table thead th:first-child { background: var(--paper-2); }
.cmp-hint { display: none; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
@media (max-width: 760px) {
  .cmp-hint { display: block; }
  .cmp-table tbody th { box-shadow: 1px 0 0 var(--line-l-soft); }
}

/* ---------- 43. Configurateur : un seul bloc (titre, progression, une question à la fois) ------- */
.cfg3 { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); padding-bottom: clamp(56px, 7vw, 100px); }
.cfg3-bg { position: absolute; left: 0; right: 0; top: 0; height: clamp(300px, 46vw, 520px); }
.cfg3-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.cfg3-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 13, 18, .62) 0%, rgba(12, 13, 18, .35) 40%, rgba(12, 13, 18, .88) 78%, var(--night) 100%); }
.cfg3-inner { position: relative; z-index: 2; padding-top: 22px; }
.cfg3-head { text-align: center; max-width: 820px; margin: clamp(46px, 7vw, 96px) auto 0; }
.cfg3-head .eyebrow { background: rgba(12, 13, 18, .6); padding: 6px 12px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cfg3 h1 { font-size: clamp(34px, 5vw, 68px); font-weight: 850; font-variation-settings: 'wdth' 116; line-height: 1; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0, 0, 0, .55); }
.cfg3 h1 .hl { color: var(--orange-2); }
.cfg3-sub { margin: 16px auto 0; max-width: 58ch; font-size: clamp(15.5px, 1.3vw, 18px); color: rgba(237, 237, 234, .82); text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }

.cfg3-app { max-width: 1000px; margin: clamp(28px, 4vw, 44px) auto 0; }
.cfg3-progress { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.cfg3-prog-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-align: left;
  background: rgba(237, 237, 234, .04); border: 1px solid var(--line-d-soft); color: var(--on-night-muted);
  transition: border-color .25s, background-color .25s, color .25s;
}
.cfg3-prog-btn:disabled { cursor: default; opacity: .7; }
.cfg3-prog-n { flex: none; width: 26px; height: 26px; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1px solid var(--line-d); }
.cfg3-prog-txt { display: flex; flex-direction: column; min-width: 0; max-width: 100%; line-height: 1.25; }
.cfg3-prog-label { font-size: 12.5px; font-weight: 650; }
.cfg3-prog-ans { display: block; max-width: 100%; font-size: 11px; color: var(--orange-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cfgr-prog-step.active .cfg3-prog-btn { border-color: var(--orange); color: var(--on-night); background: rgba(232, 92, 0, .1); }
.cfgr-prog-step.active .cfg3-prog-n { background: var(--orange); border-color: var(--orange); color: #fff; }
.cfgr-prog-step.done .cfg3-prog-btn { color: var(--on-night); }
.cfgr-prog-step.done .cfg3-prog-n { background: rgba(232, 92, 0, .16); border-color: var(--orange); color: var(--orange-2); }
.cfgr-prog-step.done:not(.active) .cfg3-prog-btn:hover { border-color: rgba(232, 92, 0, .6); }

.cfg3-card, .cfg3-gate, .cfg3-results {
  background: rgba(17, 19, 26, .82); border: 1px solid var(--line-d);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: clamp(22px, 3.4vw, 42px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.cfg3-results { background: transparent; border: 0; padding: 26px 0 0; clip-path: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cfgr-step { display: none; }
.cfgr-step.active { display: block; animation: cfgStepIn .4s var(--ease); }
@keyframes cfgStepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cfg3-q { font-size: clamp(22px, 2.5vw, 31px); font-weight: 830; font-variation-settings: 'wdth' 110; line-height: 1.15; color: var(--on-night); outline: none; }
.cfg3-q .hl { color: var(--orange-2); }
.cfg3-hint { margin-top: 8px; font-size: 14.5px; color: var(--on-night-muted); max-width: 70ch; }
.cfg3-opts { display: grid; gap: 12px; margin-top: 24px; }
.cfg3-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cfg3-opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cfgr-opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  min-height: 118px; padding: 18px 40px 16px 18px; text-align: left;
  background: rgba(237, 237, 234, .045); border: 1px solid var(--line-d); color: var(--on-night);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: border-color .2s, background-color .2s, transform .25s var(--ease);
}
.cfgr-opt:hover { border-color: rgba(232, 92, 0, .6); background: rgba(232, 92, 0, .07); transform: translateY(-2px); }
.cfgr-opt.selected { border-color: var(--orange); background: rgba(232, 92, 0, .14); box-shadow: inset 0 0 0 1px var(--orange); }
.cfg3-opt-icon { color: var(--on-night-muted); margin-bottom: 6px; transition: color .2s; }
.cfgr-opt:hover .cfg3-opt-icon, .cfgr-opt.selected .cfg3-opt-icon { color: var(--orange-2); }
.cfg3-opt-label { font-weight: 760; font-size: 16px; line-height: 1.25; }
.cfg3-opt-sub { font-size: 12.5px; line-height: 1.5; color: var(--on-night-muted); }
.cfg3-opt-badge { margin-top: auto; padding-top: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); }
.cfg3-opt-check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--line-d); color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.cfgr-opt.selected .cfg3-opt-check { background: var(--orange); border-color: var(--orange); color: #fff; }
.cfg3-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-d-soft); min-height: 24px; }
.cfg3-back { font-size: 13.5px; font-weight: 650; color: var(--on-night-muted); transition: color .2s; }
.cfg3-back:hover { color: var(--on-night); }
.cfg3-tip { font-size: 12.5px; color: var(--on-night-muted); }
.cfg3-count { font-size: 11px; letter-spacing: .12em; color: var(--on-night-muted); }

.cfg3-gate #cfgrGateForm { margin-top: 20px; }
.cfg3-done { margin-top: 10px; padding: 10px 14px; border-left: 3px solid #7ED47E; background: rgba(126, 212, 126, .08); color: var(--on-night); font-size: 14px; max-width: none; }
.cfg3-results .machine-grid { margin-top: 24px; }
.cfg3-rcard .machine-name a { color: inherit; }
.cfg3-rcard.is-top { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.cfg3-rcard.is-top .machine-badge { background: var(--orange); color: #fff; }
.cfg3-match { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--orange-ink); }
.cfg3-why { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.cfg3-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.cfg3-empty { grid-column: 1 / -1; text-align: center; color: var(--on-night-muted); padding: 30px; }

@media (max-width: 1020px) {
  .cfg3-opts--3, .cfg3-opts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cfg3-head { margin-top: 30px; }
  .cfg3-progress { gap: 4px; }
  .cfg3-prog-btn { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; min-width: 0; overflow: hidden; }
  .cfg3-prog-label { font-size: 11px; }
  .cfg3-prog-ans { font-size: 11px; max-width: 100%; }
  .cfg3-opts--3, .cfg3-opts--4 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cfgr-opt { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 2px; padding: 14px 42px 14px 14px; }
  .cfg3-opt-icon { margin: 0; }
  .cfg3-opt-icon svg { width: 22px; height: 22px; }
  .cfg3-opt-sub { flex-basis: 100%; }
  .cfg3-opt-badge { display: none; }
}

/* ---------- 44. Fiche machine : titre, maillage, galeries -------------------------------------- */
.md-h1 { font-variation-settings: 'wdth' 112; }
.md-h1-cat { display: block; margin-top: 12px; font-size: clamp(15px, 1.5vw, 19px); font-weight: 600; font-variation-settings: 'wdth' 100; letter-spacing: 0; line-height: 1.3; color: var(--on-night-muted); }
.md-more { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-l-soft); }
.md-more-k { display: block; margin: 12px 0 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.md-more-k:first-child { margin-top: 0; }
.md-more-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.md-more-chips a { display: inline-block; padding: 5px 10px; border: 1px solid var(--line-l); font-size: 13px; font-weight: 600; transition: border-color .2s, color .2s; }
.md-more-chips a:hover { border-color: var(--orange); color: var(--orange-ink); }
.md-more-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.md-more-list a { position: relative; display: block; padding-left: 18px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.md-more-list a::before { content: '→'; position: absolute; left: 0; color: var(--orange); }
.md-more-list a:hover { color: var(--orange-ink); }
.md-adv-config-link { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-l-soft); font-weight: 700; font-size: 14px; color: var(--orange-ink); }
.md-adv-config-link svg { flex: none; }
.md-adv-config-link:hover { color: var(--orange); }
.md-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.md-part { aspect-ratio: 1; overflow: hidden; }
.md-part img { width: 100%; height: 100%; object-fit: cover; }

/* Rails horizontaux sur mobile : listes de cartes ou de photos à faire défiler du doigt */
@media (max-width: 640px) {
  .rail-m {
    display: grid !important; grid-template-columns: none !important;
    grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc((100vw - var(--w)) / -2); padding-inline: calc((100vw - var(--w)) / 2);
    scroll-padding-inline: calc((100vw - var(--w)) / 2);
    scrollbar-width: none;
  }
  .rail-m::-webkit-scrollbar { display: none; }
  .rail-m > * { scroll-snap-align: start; }
  .md-parts.rail-m { grid-auto-columns: 62%; }
}

/* ---------- 45. Page série : chiffres clés, comparatif ----------------------------------------- */
.series-kpis { list-style: none; display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; margin-top: 26px; }
.series-kpis li { display: flex; flex-direction: column; gap: 2px; padding: 2px 22px; border-left: 1px solid var(--line-d); }
.series-kpis li:first-child { padding-left: 0; border-left: 0; }
.series-kpis .mono { font-size: 22px; font-weight: 700; color: var(--orange-2); line-height: 1.2; }
.series-kpis span:not(.mono) { font-size: 11.5px; color: var(--on-night-muted); }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-l-soft); }
.spec-table--cmp { min-width: 720px; border: 0; }
.spec-table--cmp th, .spec-table--cmp td { white-space: nowrap; }
.spec-table--cmp tbody th { position: sticky; left: 0; z-index: 1; background: var(--card); font-size: 14px; font-weight: 750; text-transform: none; letter-spacing: 0; font-family: var(--f); color: var(--ink); }
.spec-table--cmp tbody th a { color: var(--orange-ink); }
.spec-table--cmp tbody th a:hover { text-decoration: underline; }
.spec-table--cmp thead th:first-child { position: sticky; left: 0; z-index: 2; }
@media (max-width: 640px) {
  .series-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .series-kpis li, .series-kpis li:first-child { padding: 0 0 0 14px; border-left: 2px solid var(--orange); }
  .series-kpis .mono { font-size: 18px; }
  .spec-table--cmp tbody th { box-shadow: 1px 0 0 var(--line-l-soft); }
}

/* ---------- 46. Comparateur du catalogue ------------------------------------------------------- */
.mf-filters { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px; }
.mf-types { display: flex; flex-wrap: wrap; gap: 8px; }
.mf-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid var(--line-l); background: var(--card); font-size: 13.5px; font-weight: 650; color: var(--ink);
  transition: border-color .2s, background-color .2s, color .2s;
}
.mf-chip span { font-size: 11px; color: var(--muted); }
.mf-chip:hover { border-color: var(--orange); }
.mf-chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.mf-chip[aria-pressed="true"] span { color: var(--orange-2); }
.mf-selects { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.mf-sel { display: flex; flex-direction: column; min-width: 190px; }
.mf-sel .f-label { margin-bottom: 6px; }
.mf-sel .f-select { padding: 10px 12px; font-size: 14px; background-color: var(--card); }
.mf-count { margin-left: auto; font-size: 12px; color: var(--muted); padding-bottom: 10px; }
.mf-count strong { color: var(--ink); font-size: 15px; }
.mf-wrap { border: 1px solid var(--line-l-soft); background: var(--card); }
.mf-table { width: 100%; border-collapse: collapse; }
.mf-table thead th { position: sticky; top: 0; z-index: 1; padding: 12px 14px; text-align: left; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); border-bottom: 1px solid var(--line-l-soft); }
.mf-table tbody th, .mf-table td { padding: 10px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-l-soft); font-size: 13.5px; color: var(--ink-2); }
.mf-table td.mono { font-size: 12.5px; white-space: nowrap; }
.mf-table tbody tr { transition: background-color .2s; }
.mf-table tbody tr:hover { background: rgba(232, 92, 0, .035); }
.mf-table tbody tr:last-child th, .mf-table tbody tr:last-child td { border-bottom: 0; }
.mf-model { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.mf-model strong { display: block; font-size: 15px; font-weight: 780; font-variation-settings: 'wdth' 108; }
.mf-model:hover strong { color: var(--orange-ink); }
.mf-series { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.mf-thumb { flex: none; width: 72px; height: 54px; display: grid; place-items: center; background: linear-gradient(180deg, #FAFAF8, #EFEEE8); }
.mf-thumb img { max-width: 92%; max-height: 92%; width: auto; height: auto; mix-blend-mode: multiply; }
.mf-go { text-align: right; white-space: nowrap; }
.mf-go .link-tech { font-size: 11px; }
.mf-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.mf-more { padding: 18px; text-align: center; border-top: 1px solid var(--line-l-soft); }
.mf-table tbody tr.mf-over { display: none; }
@media (max-width: 900px) {
  .mf-table thead { display: none; }
  .mf-table, .mf-table tbody { display: block; }
  .mf-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; padding: 14px; border-bottom: 1px solid var(--line-l-soft); }
  .mf-table tbody tr[hidden] { display: none; }
  .mf-table tbody th, .mf-table td { padding: 0; border: 0; font-size: 13px; }
  .mf-table tbody th { grid-column: 1 / -1; margin-bottom: 6px; }
  .mf-table td[data-k]::before { content: attr(data-k); display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .mf-table td.mono { white-space: normal; }
  .mf-go, .mf-c-type, .mf-c-cone { display: none; }
  .mf-table tbody tr { padding: 12px 14px; }
  .mf-table tbody th { margin-bottom: 4px; }
  .mf-count { margin-left: 0; padding-bottom: 0; width: 100%; }
}
@media (max-width: 640px) {
  .mf-types { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc((100vw - var(--w)) / -2); padding-inline: calc((100vw - var(--w)) / 2); scrollbar-width: none; }
  .mf-types::-webkit-scrollbar { display: none; }
  .mf-chip { flex: none; }
  .mf-sel { min-width: 0; flex: 1 1 140px; }
}
/* Arrivée sur une ancre depuis une autre page : la section n'est plus masquée par la navigation */
section[id], #cfgrProgress { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* ---------- 40. Accueil en 7 blocs (lot 2) ---------------------------------------------------- */
/* Sous les gammes : encart configurateur | catalogue PDF (réglages « Section Configurateur »
   et « Section Téléchargement catalogue » de l'admin) */
.home-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line-d);
  background: linear-gradient(160deg, var(--steel), var(--night-2));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.home-band-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: clamp(24px, 3vw, 38px); }
.home-band-col + .home-band-col { border-left: 1px solid var(--line-d-soft); }
.home-band-title { font-size: clamp(21px, 2vw, 27px); font-weight: 800; line-height: 1.2; color: var(--on-night); max-width: 26ch; }
.home-band-title .hl { color: var(--orange-2); }
.home-band-text { font-size: 14.5px; line-height: 1.7; color: var(--on-night-muted); max-width: 52ch; }
.home-band-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; font-size: 11.5px; color: var(--on-night-muted); }
.home-band-col > .btn, .home-band-dl { margin-top: auto; }
.home-band-dl { width: 100%; }
.home-band-dl > summary { display: inline-flex; list-style: none; cursor: pointer; }
.home-band-dl > summary::-webkit-details-marker { display: none; }
.home-band-dl[open] > summary { margin-bottom: 16px; }
.home-band-form .qq-grid { gap: 12px; }
@media (max-width: 760px) {
  .home-band { grid-template-columns: minmax(0, 1fr); }
  .home-band-col + .home-band-col { border-left: 0; border-top: 1px solid var(--line-d-soft); }
}

/* Accompagnement : titre du parcours + citation du fondateur, puis les étapes */
.journey-head {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 64px); align-items: end;
  margin-bottom: clamp(40px, 5.2vw, 70px);
}
.journey-head .sec-head { margin-bottom: 0; }
.home-founder {
  margin: 0; padding: clamp(24px, 3vw, 34px);
  background: var(--night); color: var(--on-night);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.home-founder blockquote { margin: 16px 0 0; font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; line-height: 1.45; }
.home-founder blockquote .hl { color: var(--orange-2); }
.home-founder-bio { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--on-night-muted); }
.home-founder figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; }
.home-founder figcaption strong { font-size: 15px; }
.home-founder figcaption .mono { font-size: 11.5px; letter-spacing: .08em; color: var(--on-night-muted); }
.home-founder .btn { margin-top: 18px; }
@media (max-width: 1020px) {
  .journey-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* Téléphone : gammes, atouts et secteurs en carrousels (au lieu de cartes empilées) */
@media (max-width: 640px) {
  .series-deck.rail-m { grid-auto-columns: 74%; }
  .card-grid-4.rail-m, .card-grid-3.rail-m { grid-auto-columns: 82%; }
  .sect-grid.rail-m { grid-auto-columns: 80%; grid-auto-rows: 240px; }
  .sect-grid.rail-m > .sect-card--lg { grid-row: auto; }
}

/* ---------- 41. Passage d'une page à l'autre ---------------------------------------------------- */
/* Fondu court entre deux pages du site (navigateurs récents, sans effet ailleurs) ;
   la barre de navigation reste en place au lieu de clignoter. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
#mainNav { view-transition-name: site-nav; }

/* ---------- 42. Titres sobres (lot 3) ---------------------------------------------------------- */
/* Plus de mot orange dans les titres de section : l'orange reste au titre de page,
   aux boutons, aux chiffres et aux liens. (Les titres saisis avec **mot** dans l'admin
   gardent leur balisage : retirer cette règle suffit pour revenir en arrière.) */
:is(h2, h3) :is(.hl, .orange) { color: inherit !important; }

/* ---------- 43. Retouches du lot 3 (relecture DA) ----------------------------------------------- */
@media (max-width: 640px) {
  /* Téléphone : le texte sous la photo plutôt que dessus */
  .sect-grid.rail-m { grid-auto-rows: auto; }
  .sect-grid.rail-m .sect-card { display: flex; flex-direction: column; background: var(--steel); }
  .sect-grid.rail-m .sect-card img { height: 150px; flex: none; filter: none; }
  .sect-grid.rail-m .sect-overlay { display: none; }
  .sect-grid.rail-m .sect-content { position: static; padding: 14px 16px 16px; }
}
/* Usine : étiquette des distinctions, à la hauteur des pastilles CE / ISO */
.cert-kick { display: flex; align-items: center; min-height: 40px; margin-bottom: 14px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
/* Logos des composants : une seule teinte et une même hauteur visuelle */
.logo-strip img, .logo-strip img:hover { filter: brightness(0); }
.logo-strip img { height: 18px; opacity: .55; }
.logo-strip img:hover { opacity: .85; }
.logo-strip img[alt="Renishaw"] { height: 15px; }
.logo-strip img[alt="THK"] { height: 22px; }
.footer-logostrip img { height: 14px; width: auto; filter: brightness(0) invert(1); opacity: .5; }
.footer-logostrip img[alt="Baofeng"] { height: 30px; }
.footer-logostrip img[alt="Renishaw"] { height: 12px; }
.footer-logostrip img[alt="THK"] { height: 17px; }
.footer-logostrip-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .1); }
/* Pages gamme : 4 modèles sur une rangée (au lieu de 3 + 1 orphelin) */
@media (min-width: 1021px) { .machine-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 44. Espace client : page de connexion ------------------------------------------ */
.portal-login { padding-bottom: clamp(48px, 6vw, 90px); }
.portal-login-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.portal-login-facts { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; padding: 0; list-style: none; font-size: 14px; color: var(--on-night-muted); }
.portal-login-facts li { display: flex; align-items: center; gap: 10px; }
.portal-login-facts svg { flex: none; color: var(--orange-2); }
.portal-login-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--night-2); border: 1px solid var(--line-d);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.portal-login-card h2 { margin-bottom: 20px; font-size: 22px; font-weight: 800; color: var(--on-night); }
.portal-login-card .qq-f + .qq-f { margin-top: 14px; }
.portal-login-card .qq-submit { width: 100%; margin-top: 20px; }
.portal-login-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 16px; }
.portal-login-links button { padding: 4px 0; background: none; border: 0; font: inherit; font-size: 13px; color: rgba(237, 237, 234, .75); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.portal-login-links button:hover { color: #fff; }
.portal-login-info { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line-d); background: rgba(237, 237, 234, .03); font-size: 13px; line-height: 1.6; color: var(--on-night-muted); }
.portal-login-info strong { color: var(--on-night); }
.portal-login-info p + p { margin-top: 8px; }
.portal-login-info a { color: var(--orange-2); }
.portal-login-alert { margin-bottom: 16px; padding: 12px 14px; border: 1px solid; font-size: 13.5px; }
.portal-login-alert.is-error { color: #FFB4A8; border-color: rgba(255, 120, 100, .35); background: rgba(255, 90, 70, .08); }
.portal-login-alert.is-ok { color: #9EE2B4; border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); }
@media (max-width: 1020px) { .portal-login-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 45. Pages gamme : la photo du haut fondue dans la page ------------------------------ */
/* Ces photos ont un fond noir opaque : sur le bleu nuit et la lueur orange, il dessinait un rectangle.
   « lighten » garde le plus clair des deux (la machine reste, le noir prend la teinte de la page) ;
   pour que le fond de page compte dans le calcul, le contenu du héro ne crée pas sa propre couche. */
.phero--gamme .container { z-index: auto; }
.sphero-img-fond {
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 52%, #000 62%, transparent 100%), linear-gradient(#000 80%, transparent 99%);
  mask-image: radial-gradient(ellipse 75% 80% at 50% 52%, #000 62%, transparent 100%), linear-gradient(#000 80%, transparent 99%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;   /* les deux masques ensemble : bords et reflet du sol fondus */
}

/* ---------- 46. Configurateur : les machines du haut de page dégagées -------------------------- */
/* Retour de Thomas (04/11) : le texte couvrait les machines. Titre compact au-dessus d'elles,
   phrase d'accroche en dessous (avec les étapes), voile allégé sur la rangée de machines. */
.cfg3 .cfg3-app > .cfg3-sub { margin: 0 auto 20px; text-align: center; }
.cfg3-head .eyebrow { color: var(--orange-2); background: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }   /* sur fond nuit, hors des machines */
@media (min-width: 1021px) {
  .cfg3-bg { height: clamp(380px, 35vw, 520px); }
  .cfg3-bg img { object-position: center top; }
  .cfg3-bg::after { background: linear-gradient(180deg, rgba(12, 13, 18, .6) 0%, rgba(12, 13, 18, .16) 22%, rgba(12, 13, 18, .04) 46%, rgba(12, 13, 18, .5) 80%, var(--night) 100%); }
  .cfg3-head { max-width: 1100px; margin-top: clamp(12px, 1.2vw, 20px); }
  .cfg3 h1 { font-size: clamp(28px, 3vw, 44px); }
  .cfg3 h1 br { display: none; }
  .cfg3-app { margin-top: clamp(180px, 21vw, 310px); }
  .cfg3 .cfg3-app > .cfg3-sub { margin-bottom: 14px; }
}
/* 1021-1199 px (tablette en paysage, petit portable) : la rangée descend un peu sous le titre */
@media (min-width: 1021px) and (max-width: 1199px) {
  .cfg3-bg { top: 24px; }
}
/* Tablette et téléphone : la rangée de machines passe sous le titre, en bandeau */
@media (max-width: 1020px) {
  .cfg3-bg::after { background: linear-gradient(180deg, var(--night) 0%, rgba(12, 13, 18, .08) 20%, rgba(12, 13, 18, .08) 72%, var(--night) 100%); }
  .cfg3-head { margin-top: 14px; }
}
@media (min-width: 761px) and (max-width: 1020px) {
  .cfg3-bg { top: 120px; height: 380px; }
  .cfg3-bg img { object-position: center 40%; }
  .cfg3 h1 { font-size: clamp(28px, 4vw, 38px); }
  .cfg3-app { margin-top: 300px; }
}
@media (max-width: 760px) {
  .cfg3-bg { top: 150px; height: 250px; }
  .cfg3-bg img { object-position: center 42%; }
  .cfg3 h1 { font-size: clamp(26px, 7.4vw, 32px); }
  .cfg3-app { margin-top: 230px; }
}

/* ---------- 47. Accueil : dialogue en direct de l'assistant IA ---------------------------------- */
/* Retour de Thomas (04/11) : l'animation d'un vrai dialogue (version de mai) revient, aux couleurs v4.
   Hauteurs fixes (fil et champ de saisie) : rien ne bouge dans la page pendant l'animation. */
.aia-chat { background: var(--night-2); border: 1px solid var(--line-d); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.aia-chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-d-soft); }
.aia-chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #2ECC71; box-shadow: 0 0 8px #2ECC71; }
.aia-chat-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); }
.aia-chat-stream { height: 336px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; padding: 18px 16px 14px; transition: opacity .4s; }
.aia-chat-stream.is-fading { opacity: .3; }
.aia-msg { max-width: 90%; padding: 11px 14px; font-size: 13.5px; line-height: 1.55; animation: aiaIn .45s cubic-bezier(.2, .7, .2, 1) both; }
.aia-msg--user { align-self: flex-end; max-width: 85%; background: rgba(232, 92, 0, .14); border: 1px solid rgba(232, 92, 0, .3); color: var(--on-night); }
.aia-msg--ai { align-self: flex-start; background: rgba(237, 237, 234, .05); border: 1px solid var(--line-d-soft); color: var(--on-night-muted); }
.aia-msg--ai strong { color: var(--on-night); }
.aia-src { display: block; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--orange-2); }
.aia-typing { align-self: flex-start; display: flex; gap: 4px; padding: 6px 8px; }
.aia-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--on-night-muted); animation: pulseDot 1.2s ease-in-out infinite; }
.aia-typing span:nth-child(2) { animation-delay: .2s; }
.aia-typing span:nth-child(3) { animation-delay: .4s; }
.aia-chat-input { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 9px 10px 9px 12px; border: 1px solid var(--line-d-soft); background: rgba(237, 237, 234, .03); }
/* Une seule ligne, comme un vrai champ : le texte glisse vers la gauche (transform, sans décaler la page) */
.aia-chat-input-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 13px; line-height: 1.45; color: var(--on-night); }
.aia-in { display: inline-block; white-space: nowrap; }
.aia-in.is-placeholder { display: block; overflow: hidden; text-overflow: ellipsis; color: rgba(237, 237, 234, .6); }
.aia-caret { display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--orange-2); animation: aiaCaret 1s steps(1) infinite; }
.aia-chat-send { flex: none; display: grid; place-items: center; width: 28px; height: 28px; background: var(--orange); color: #fff; transition: transform .2s; }
.aia-chat-send.is-pulse { transform: scale(.85); }
@keyframes aiaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes aiaCaret { 50% { opacity: 0; } }
@media (max-width: 640px) {
  .aia-chat-stream { height: 372px; padding: 14px 12px 12px; }
  .aia-msg { font-size: 13px; }
  .aia-chat-input { margin: 0 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .aia-msg, .aia-typing span, .aia-caret { animation: none; }
}

/* ---------- 48. Page des secteurs : texte lisible sur les images colorées ----------------------- */
/* Beaucoup de texte sur la photo (étiquette, titre, description, pastilles) : voile plus dense en bas,
   le haut de l'image garde ses couleurs. */
.sect-grid--hub .sect-overlay { background: linear-gradient(0deg, rgba(5, 6, 9, .94) 0%, rgba(5, 6, 9, .8) 50%, rgba(5, 6, 9, .35) 80%, rgba(5, 6, 9, .1) 100%); }
@media (max-width: 640px) {
  .sect-grid--hub .sect-overlay { background: linear-gradient(0deg, rgba(5, 6, 9, .92), rgba(5, 6, 9, .7)); }
}

/* ---------- 50. Photos de machines fondues : planche technique des fiches, cartes de modèles ---- */
/* Fiche machine : la photo du constructeur s'imprime dans un papier quadrillé (son blanc disparaît),
   et un cartouche de plan, sous la photo, reprend le modèle, les courses, la table et la charge. */
.mdhero-split .mgal .swiper {
  background-color: #EFEDE6; border: 0;
  background-image: linear-gradient(rgba(20, 22, 28, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 22, 28, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.mdhero-split .mgal-slide { background: transparent; }
.mdhero-split .mgal-slide img { mix-blend-mode: multiply; }
.mdhero-split .mgal-thumb { background: #EFEDE6; }
.mdhero-split .mgal-thumb img { mix-blend-mode: multiply; }
.mgal-cartouche {
  display: flex; flex-wrap: wrap; align-items: stretch;
  background: #EFEDE6; color: #14161C; border-top: 1.5px solid #14161C;
}
.mgal-cartouche > * { padding: 7px 11px; border-right: 1px solid rgba(20, 22, 28, .28); display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; }
.mgal-cartouche > :last-child { border-right: 0; }
.mgal-cartouche .mgal-triedre { padding: 4px 8px; flex: none; color: var(--orange-ink); box-sizing: content-box; width: 46px; height: 34px; }
.mgal-cartouche .c-t b { font-weight: 800; font-variation-settings: 'wdth' 118; font-size: 14px; letter-spacing: .01em; }
.mgal-cartouche .c-t > span, .mgal-cartouche .c-v > span { font-size: 11.5px; color: #4A4E57; }
.mgal-cartouche .c-v b { font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) {
  .mgal-cartouche .mgal-triedre { display: none; }
  .mgal-cartouche .c-t { flex-basis: 100%; border-right: 0; border-bottom: 1px solid rgba(20, 22, 28, .28); }
  .mgal-cartouche > * { padding: 6px 10px; }
}
/* Cartes de modèles (pages gamme) et rangée « Gamme » des fiches : plus de rectangle blanc */
#machines-grid img, #related img { mix-blend-mode: multiply; }

/* ---------- 51. Fiche machine : « Votre pièce rentre-t-elle ? » -------------------------------- */
.piece-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.piece-lead { margin: 14px 0 0; color: var(--ink-2); line-height: 1.6; max-width: 46ch; }
.piece-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 24px 0 18px; }
.piece-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.piece-fields label i { font-style: normal; font-weight: 400; color: var(--muted); }
.piece-fields input {
  width: 100%; padding: 11px 13px; border: 1px solid rgba(20, 22, 28, .32); background: #fff; color: var(--ink);
  font: 600 19px/1.2 var(--f-mono); font-variant-numeric: tabular-nums;
}
.piece-fields input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.piece-verdict { font-size: 15.5px; line-height: 1.55; padding: 13px 16px; border-left: 3px solid var(--line-l); margin: 0 0 10px; color: var(--ink); min-height: 76px; }
.piece-verdict b { font-weight: 700; }
.piece-verdict a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.piece-verdict.ok { border-color: #2E7D4F; background: rgba(46, 125, 79, .09); }
.piece-verdict.ko { border-color: #C0392B; background: rgba(192, 57, 43, .08); }
.piece-note { font-size: 13px; color: var(--muted); max-width: 52ch; margin: 0 0 22px; line-height: 1.55; }
.piece-dessin {
  margin: 0; background-color: #F7F6F2; border: 1px solid var(--line-l);
  background-image: linear-gradient(rgba(20, 22, 28, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 22, 28, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.piece-dessin svg { display: block; width: 100%; height: auto; }
.piece-dessin figcaption { font-size: 12.5px; color: var(--muted); padding: 0 16px 12px; }
@media (max-width: 1020px) {
  .piece-grid { grid-template-columns: 1fr; }
  .piece-form { display: contents; }               /* le dessin vient juste après les champs */
  .piece-grid > .piece-dessin { order: 1; }
  .piece-grid .piece-form .piece-verdict, .piece-grid .piece-form .piece-note, .piece-grid .piece-form #piece-cta { order: 2; }
  .piece-grid .piece-form #piece-cta { justify-self: start; }
}

/* ---------- 52. La machine en grand et dès le premier écran ------------------------------------ */
/* Cartes de gammes (accueil, catalogue) : machine plus grande, lettre plus discrète, course X */
.series-panel .sp-visual { min-height: 190px; }
.series-panel .sp-visual img { max-height: 232px; }
.series-panel .big-letter { -webkit-text-stroke-color: rgba(237, 237, 234, .06); }
.series-panel .sp-data { font-size: 13px; color: var(--on-night-muted); margin-top: 6px; position: relative; z-index: 2; }
.series-panel .sp-data b { color: var(--on-night); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Pages gamme sur téléphone : la machine d'abord, juste sous le fil d'Ariane */
@media (max-width: 600px) {
  .sphero-split > div:last-child { order: -1; min-height: 0 !important; margin: 4px 0 8px; }
  .sphero-split > div:last-child img { max-height: 170px !important; }
}
/* Titres longs (à propos, usine, assistant IA) : 3 à 4 lignes au plus sur un portable 1366 × 768,
   pour que le bouton principal reste dans le premier écran */
/* Titres de héros : coupures équilibrées à toutes les largeurs */
.phero h1, .about-hero h1, .pq-hero h1, .ecp-hero-title { text-wrap: balance; }
.phero--compact h1 .hl { display: block; }
/* Écrans peu hauts seulement (portable 1366 × 768) : titres longs ramenés à 3-4 lignes, une seule
   taille pour les pages sœurs ; en 1920, les titres gardent leur présence d'origine */
@media (min-width: 1021px) and (max-height: 860px) {
  .about-hero h1, .pq-hero h1, .phero--compact h1 { font-size: clamp(32px, 3.4vw, 46px); max-width: none; }
  .ecp-hero .ecp-hero-title { font-size: clamp(32px, 3.4vw, 46px) !important; }
  .about-hero h1 br { display: none; }
  .about-hero-grid > div:first-child { display: flex; flex-direction: column; }
  .about-hero-grid > div:first-child > .eyebrow { align-self: flex-start; }
  .about-hero-grid > div:first-child > .phero-ctas { order: 1; }
  .about-hero-grid > div:first-child > .sub ~ .sub { order: 2; margin-top: 22px; }
}
/* Secteurs : héro compact, la mosaïque commence dans le premier écran ; voile limité au bas des cartes */
.phero--compact { padding-bottom: clamp(18px, 2.5vw, 34px); }
.phero--compact + .sec-sm { padding-top: clamp(12px, 2vw, 24px); }
.sect-grid--hub .sect-overlay { background: linear-gradient(0deg, rgba(5, 6, 9, .93) 0%, rgba(5, 6, 9, .8) 55%, rgba(5, 6, 9, .25) 75%, rgba(5, 6, 9, 0) 85%); }
}

/* ---------- 53. Formulaires rapides sur fond sombre : champs sombres ---------------------------- */
/* Les rectangles blancs étaient la zone la plus claire de la page et écrasaient le bouton orange.
   Bord à .42 : contraste d'au moins 3:1 avec le fond (règle des composants d'interface). */
.qq:not(.qq--light) :is(.f-input, .f-select, .f-textarea) {
  background: rgba(237, 237, 234, .045); color: var(--on-night);
  border-color: rgba(237, 237, 234, .42);
}
.qq:not(.qq--light) :is(.f-input, .f-textarea)::placeholder { color: rgba(237, 237, 234, .55); }
.qq:not(.qq--light) :is(.f-input, .f-select, .f-textarea):focus { border-color: var(--orange-2); background: rgba(237, 237, 234, .08); }
.qq:not(.qq--light) .f-select option { color: var(--ink); background: #fff; }

/* ---------- 54. Finitions (revue design du 10/11/2026) ---------------------------------------- */
/* Pages gamme : les 4 chiffres du haut sur une ligne (la 4e passait à la ligne sur DC et T) */
@media (min-width: 1021px) {
  .series-kpis { flex-wrap: nowrap; }
  .series-kpis li { padding: 2px 16px; }
  .series-kpis .mono { font-size: clamp(17px, 1.45vw, 22px); white-space: nowrap; }
}
/* Logos des fournisseurs dans les héros de gamme et de fiche : une seule teinte */
.phero :is(img[alt="Fanuc"], img[alt="Siemens"], img[alt="Heidenhain"], img[alt="Hiwin"]) { filter: brightness(0) invert(1) !important; }
/* Liens en capitales : jamais coupés (« TOUT LE / CATALOGUE ») */
.link-tech { white-space: nowrap; }

/* ---------- 55. Épure : moins de décor de gabarit (proposition 8 de la revue du 10/11/2026) ------ */
/* Les sur-titres qui répètent le titre de la section disparaissent, ceux des héros aussi quand le
   fil d'Ariane situe déjà la page ; restent ceux qui informent (série, badge, étape, durée). */
.eyebrow::before { content: none; }
:is(.sec-head, .sec-head-row) .eyebrow:has(+ h2) { display: none; }
.phero > .container > .eyebrow, .about-hero .eyebrow, .pq-hero .eyebrow { display: none; }
/* Une flèche sur le bouton principal seulement */
.btn-ghost .arr, .link-tech > span, .sp-cta > span { display: none; }
/* La chasse fixe reste la voix de la commande numérique (cotes, références, codes, sources) ;
   liens, compteurs et libellés de formulaire passent en Archivo */
.link-tech { font-family: var(--f); text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 650; }
.series-panel .sp-count, .sp-count { font-family: var(--f); letter-spacing: 0; text-transform: none; font-size: 13px; }
.qq-l { font-family: var(--f); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
/* Tableaux de caractéristiques : libellés en Archivo, valeurs en chasse fixe (on lit les chiffres) */
.spec-table td.k { font-family: var(--f); font-size: 13.5px; color: var(--ink-2); }

/* ---------- 56. Retouches de la relecture DA du lot (10/11/2026) -------------------------------- */
/* Cartouche : la dernière case remplit la ligne ; sur téléphone, une seule rangée (le modèle est déjà le titre) */
.mgal-cartouche > :last-child { flex: 1; }
@media (max-width: 760px) {
  .mgal-cartouche .c-t { display: none; }
  .mgal-cartouche > * { padding: 6px 10px; flex: 1 1 auto; }
  /* courses sur toute la largeur, table et charge côte à côte dessous : deux rangées pleines */
  .mgal-cartouche > .c-v:nth-child(3) { flex-basis: 100%; border-right: 0; border-bottom: 1px solid rgba(20, 22, 28, .28); }
  .mgal-cartouche .c-v > span { font-size: 11px; }
  .mgal-cartouche .c-v b { font-size: 12px; }
}
/* « Voir détails » : plus de flèche, comme « Explorer » */
.machine-cta > span { display: none; }
/* Cartes V et VP : même course X, le guidage les distingue */
.series-panel .sp-data + .sp-data { margin-top: 2px; }
/* Boutons secondaires : contour dessiné sous le même découpage que le bouton (l'ombre interne
   s'arrêtait aux deux coins coupés et le chanfrein paraissait cassé) */
.btn-ghost, .on-dark .btn-ghost, .btn-ghost.light { box-shadow: none; }
.btn-ghost::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--line-l);
  clip-path: polygon(evenodd,
    0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)), 0 0,
    1.5px 1.5px, 1.5px calc(100% - var(--chamfer) - 1px), calc(var(--chamfer) + 1px) calc(100% - 1.5px), calc(100% - 1.5px) calc(100% - 1.5px),
    calc(100% - 1.5px) calc(var(--chamfer) + 1px), calc(100% - var(--chamfer) - 1px) 1.5px, 1.5px 1.5px);
}
.on-dark .btn-ghost::after, .btn-ghost.light::after { background: var(--line-d); }

/* ---------- 57. Retours de Thomas après la mise en ligne (10/11/2026) -------------------------- */
/* Configurateur : « 4 questions, 2 minutes… » et la suite un peu plus bas, sous les machines */
@media (min-width: 1021px) {
  .cfg3-app { margin-top: calc(clamp(180px, 21vw, 310px) + 44px); }
}
/* Accueil, « De votre besoin à la production série » (retour de Thomas, 10/11 : « trop vide, mal
   réparti ») : la carte du fondateur faisait 440 px de haut à côté d'un titre de 200 px. Désormais
   titre à gauche et phrase à droite sur une ligne, carte du fondateur en bandeau horizontal
   (citation et signature à gauche, parcours et bouton à droite), puis les 5 étapes. */
@media (min-width: 761px) {
  .journey-head { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: clamp(28px, 3vw, 40px); margin-bottom: clamp(40px, 4.4vw, 60px); }
  .journey-head .sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: clamp(24px, 4vw, 64px); max-width: none; }
  .journey-head .sec-head h2 { margin: 0; }
  .journey-head .sec-head p { margin: 0 0 6px; font-size: 17px; line-height: 1.65; max-width: 48ch; }
  .home-founder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 64px); row-gap: 0; align-items: start; }
  .home-founder > .badge-tech { grid-column: 1; grid-row: 1; justify-self: start; }
  .home-founder > blockquote { grid-column: 1; grid-row: 2; font-size: clamp(18px, 1.65vw, 23px); }
  .home-founder > figcaption { grid-column: 1; grid-row: 3; }
  .home-founder > .home-founder-bio { grid-column: 2; grid-row: 1 / span 2; margin-top: 2px; font-size: 14px; }
  .home-founder > .btn { grid-column: 2; grid-row: 3; justify-self: start; align-self: end; }
}

/* ---------- 58. Lot 2 : une machine (ou l'usine) dans le haut des pages de contenu ------------- */
/* Services, financement, guide d'achat, contact, pourquoi Baofeng, usine : la moitié droite était vide
   ou portait un petit logo gris. Ordinateur seulement ; le téléphone garde sa mise en page. */
.hero-visuel { display: none; }
@media (min-width: 1021px) {
  .phero--visuel .container { z-index: auto; position: relative; }   /* sinon le fondu ne voit pas le fond */
  .phero--visuel .hero-visuel { display: block; pointer-events: none; }
  .phero--visuel .hero-visuel img { display: block; width: 100%; height: auto; }
  /* pages à une colonne : visuel posé à droite, texte limité à gauche */
  .phero--visuel .container:not(:has(.pq-hero)) { padding-right: min(40vw, 600px); }
  .phero--visuel .container:not(:has(.pq-hero)) > .hero-visuel { position: absolute; right: 0; top: 50%; transform: translateY(-48%); width: min(38vw, 580px); }
  /* pages à deux colonnes (pourquoi Baofeng, usine) */
  .phero--visuel .pq-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(20px, 3vw, 48px); }
  .phero--visuel .pq-hero h1 { font-size: clamp(34px, 3.9vw, 56px); max-width: 22ch; }
  .phero--visuel .pq-hero .hero-visuel { justify-self: end; width: 118%; max-width: 640px; margin-right: -4%; }
  /* rendus sur fond noir : fondus comme sur les pages gamme */
  .hero-visuel--rendu img {
    mix-blend-mode: lighten;
    -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 52%, #000 62%, transparent 100%), linear-gradient(#000 80%, transparent 99%);
    mask-image: radial-gradient(ellipse 75% 80% at 50% 52%, #000 62%, transparent 100%), linear-gradient(#000 80%, transparent 99%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  /* photo d'usine : fondue vers la gauche et vers le bas, dans la nuit de la page */
  .hero-visuel--photo img {
    -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 98%), linear-gradient(#000 70%, transparent 100%);
    mask-image: linear-gradient(to left, #000 50%, transparent 98%), linear-gradient(#000 70%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}

/* ---------- 59. Lot 2 : finitions des pages de contenu (10/11/2026) ---------------------------- */
/* Guide d'achat : listes en bloc (en flex, chaque morceau de texte devenait un élément : « détachées   en France   ? ») */
.guide-list li { display: block; position: relative; padding-left: 26px; }
.guide-list li > svg:first-child { position: absolute; left: 0; top: 3px; margin: 0; }
/* Articles : lignes de liste à 68 caractères au plus */
.blog-content :is(ul, ol) { max-width: 68ch; }
/* Blog : les étiquettes ne recouvrent plus le texte écrit dans les vignettes ; points du carrousel cliquables */
.post-badge { top: auto; bottom: 12px; left: 12px; }
.spot-lbl { top: auto; bottom: 14px; }
.spot-dot { position: relative; }
.spot-dot::after { content: ''; position: absolute; inset: -10px -4px; }
/* Pourquoi Baofeng : logos d'une seule teinte et de même poids ; chiffres jamais coupés */
.pq-logos img { filter: brightness(0) invert(1); opacity: .66; }
.pq-stat > :first-child { white-space: nowrap; }
/* Usine : logos des composants d'une seule teinte (ils étaient en couleur) */
.comp-logos img { filter: grayscale(1) brightness(0); opacity: .62; }
.on-dark .comp-logos img, .sec-night .comp-logos img { filter: brightness(0) invert(1); opacity: .66; }
/* Blocs de fin : le sur-titre a partout la même étiquette encadrée */
.cta-panel .eyebrow { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--orange-2); border: 1px solid rgba(232, 92, 0, .4); padding: 5px 10px; }
/* Fiches sur téléphone : barre d'ancres défilante, bouton à part ; puces des listes dans l'écran */
@media (max-width: 760px) {
  .md-anchors .container > .mono:first-child { display: none; }
  .md-anchor-links { flex: 1; min-width: 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .md-anchor-links::-webkit-scrollbar { display: none; }
  .md-anchors .container > :last-child { flex: none; }
  .md-desc-grid :is(ul, ol) { padding-left: 1.25em; }
}
/* Comparatifs sur téléphone : le tableau défile dans son cadre, une ombre à droite l'indique */
@media (max-width: 760px) {
  .cmp-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
    background: linear-gradient(to right, var(--paper) 30%, transparent), linear-gradient(to left, var(--paper) 30%, transparent) right, radial-gradient(farthest-side at 100% 50%, rgba(20, 22, 28, .18), transparent) right;
    background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%; background-attachment: local, local, scroll; }
}
