/* Ostrel Mécanique — concept de démonstration (entreprise fictive)
   Direction : atelier, photographie grand format, annotations de dessin technique.
   Polices : Archivo (axe de chasse condensée → normale) + IBM Plex Mono. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500.woff2') format('woff2');
}

:root {
  --graphite: #111315;
  --steel: #191d20;
  --panel: #22272b;
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .32);
  --text: #eeede8;
  --muted: #9ca2a6;
  --concrete: #e6e5df;
  --concrete-2: #d8d7d0;
  --ink: #121416;
  --ink-muted: #565b5f;
  --orange: #ff5b1a;
  --orange-deep: #e24a0c;

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; overflow-x: hidden;
  background: var(--graphite); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: var(--ink); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- En-tête ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top-h);
  background: linear-gradient(rgba(17, 19, 21, .72), rgba(17, 19, 21, 0));
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.top.is-solid { background: transparent; box-shadow: 0 1px 0 var(--line); }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(17, 19, 21, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .35s var(--ease); }
.top.is-solid::before, .top.menu-open::before { opacity: 1; }
.top__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__txt b { font-weight: 800; font-stretch: 75%; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.logo__txt span { margin-top: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 15px; font-weight: 500; text-decoration: none; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover::after { transform: scaleX(1); }
.nav__tel a { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.nav__tel a::after { display: none; }
.nav__tel a:hover { color: var(--text); }
.top__actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 30px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 0 20px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 15px; font-weight: 700; font-stretch: 85%; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: #ff7a45; }
.btn--orange:active { transform: translateY(1px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(17, 19, 21, .25); }
.btn--ghost:hover { border-color: var(--text); }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px); min-height: min(100vh, 980px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--top-h) + 40px);
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 19, 21, .92) 0%, rgba(17, 19, 21, .78) 34%, rgba(17, 19, 21, .18) 70%, rgba(17, 19, 21, .1) 100%),
    linear-gradient(0deg, rgba(17, 19, 21, .95) 0%, rgba(17, 19, 21, 0) 42%);
}
.hero__cote { position: absolute; z-index: 1; right: 7%; top: 20%; width: min(320px, 26vw); height: auto; overflow: visible; }
.cote-line, .cote-lead { fill: none; stroke: var(--orange); stroke-width: 1.5; }
.cote-arrow, .cote-dot { fill: var(--orange); }
.hero__tag {
  position: absolute; z-index: 1;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--text);
  background: rgba(17, 19, 21, .72); border: 1px solid var(--line-strong); padding: 6px 10px; backdrop-filter: blur(4px);
}
.hero__tag span { color: var(--orange); margin-right: 6px; }
.hero__tag--a { right: calc(7% - 14px); top: calc(20% - 34px); }
.hero__tag--b { right: calc(7% + min(320px, 26vw) * .17); top: calc(20% + min(320px, 26vw) * .68 + 14px); }

.corner { position: absolute; width: 22px; height: 22px; border-color: var(--orange); border-style: solid; border-width: 0; z-index: 1; pointer-events: none; }
.corner--tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.corner--br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.hero .corner--tl, .hero .corner--tr { top: calc(var(--top-h) + 14px); }

.hero__content { position: relative; z-index: 2; padding-bottom: clamp(28px, 4vw, 48px); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.hero__title {
  margin-top: 18px;
  font-weight: 800; font-stretch: 68%; text-transform: uppercase;
  font-size: clamp(3.1rem, 6.5vw, 7rem); line-height: .9; letter-spacing: -.005em;
}
.hero__title .l1 { display: block; }
.hero__title .o { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
@supports not (-webkit-text-stroke: 1px black) { .hero__title .o { color: var(--text); } }
.hero__lead { margin-top: 22px; max-width: 52ch; font-size: clamp(17px, 1.4vw, 19px); color: #d3d4d0; }
.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.specs {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 64px;
}
.specs > div { border-top: 1px solid var(--line-strong); padding: 14px 20px 0 0; }
.specs dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.specs dd { margin-top: 6px; font-size: 15px; line-height: 1.4; color: #dcdcd7; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 10vw, 140px); }
.section--light { background: var(--concrete); color: var(--ink); }
.section--steel { background: var(--steel); }

.head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.head__num {
  grid-column: 1 / -1; margin-bottom: 18px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.head__num span { color: var(--orange); }
.head__num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section--light .head__num { color: var(--ink-muted); }
.section--light .head__num::after { background: rgba(18, 20, 22, .18); }
.head__num--dark { color: var(--ink-muted); }
.head__num--dark::after { background: rgba(18, 20, 22, .18); }
.head__title {
  grid-column: 1 / 8;
  font-weight: 800; font-stretch: 70%; text-transform: uppercase;
  font-size: clamp(2.5rem, 5.4vw, 5.2rem); line-height: .92; letter-spacing: -.003em;
}
.head__intro { grid-column: 8 / 13; color: var(--muted); font-size: 17px; max-width: 46ch; }
.section--light .head__intro { color: var(--ink-muted); }

/* Savoir-faire */
.sf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 24px; }
.card--a { grid-column: 1 / 8; }
.card--b { grid-column: 8 / 13; }
.card--c { grid-column: 1 / 6; }
.card--d { grid-column: 6 / 13; }
.card--b, .card--c { margin-top: 0; }
.card__fig { position: relative; overflow: hidden; background: var(--panel); }
.card__fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85) contrast(1.05); }
.card--b .card__fig img, .card--c .card__fig img { aspect-ratio: 4 / 3; }
.card:hover .card__fig img { transform: scale(1.04); filter: saturate(1) contrast(1.05); }
.ticks { position: absolute; inset: 12px; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease), inset .5s var(--ease); }
.ticks::before, .ticks::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--orange); }
.ticks::before { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.ticks::after { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.card:hover .ticks { opacity: 1; inset: 18px; }
.card__body { padding-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr); }
.code { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--orange); text-transform: uppercase; }
.card__title { margin-top: 8px; font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: .95; }
.card__body > p:not(.code) { margin-top: 12px; color: #c9cbc8; max-width: 52ch; }
.card__specs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.card__specs li { font-family: var(--mono); font-size: 12.5px; padding: 5px 10px; border: 1px solid var(--line-strong); color: #dfe0dc; }

/* Fabrication */
.fab { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.gamme { grid-column: 1 / 7; border-top: 2px solid var(--ink); }
.op {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 20px;
  padding: 22px 0 24px; border-bottom: 1px solid rgba(18, 20, 22, .18);
  position: relative;
}
.op::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--orange);
  transition: width .6s var(--ease);
}
.op:hover::before, .op.is-active::before { width: 100%; }
.op__n { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--orange-deep); padding-top: 4px; }
.op__title { font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 24px; line-height: 1.05; letter-spacing: .005em; }
.op p:not(.op__n) { margin-top: 8px; color: var(--ink-muted); font-size: 16.5px; max-width: 54ch; }

.plan { grid-column: 8 / 13; position: sticky; top: calc(var(--top-h) + 32px); }
.plan__sheet {
  background:
    linear-gradient(rgba(18, 20, 22, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(18, 20, 22, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    #f3f2ed;
  border: 1px solid rgba(18, 20, 22, .35);
  padding: 18px 18px 0;
}
.plan__svg { width: 100%; height: auto; }
.plan__svg .axis path { fill: none; stroke: #8b8f92; stroke-width: 1; stroke-dasharray: 14 4 2 4; }
.plan__svg .draw circle, .plan__svg .draw rect { fill: none; stroke: var(--ink); stroke-width: 2; }
.plan__svg .draw rect[fill] { stroke-width: 2; }
.plan__svg .draw rect[fill="url(#hatch)"] { fill: url(#hatch); }
.plan__svg .draw rect[fill="#e6e5df"] { fill: #f3f2ed; }
.plan__svg .draw .pcd { stroke: #8b8f92; stroke-width: 1; stroke-dasharray: 10 4 2 4; }
.plan__svg .dim path { fill: none; stroke: var(--orange); stroke-width: 1.2; }
.plan__svg .txt text { font-family: var(--mono); font-size: 14px; fill: var(--ink); font-weight: 500; }
.plan__svg .txt .ra { fill: var(--orange-deep); }
.plan__cart {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; margin: 16px -18px 0;
  border-top: 1px solid rgba(18, 20, 22, .35);
  font-family: var(--mono); font-size: 11.5px; color: var(--ink);
}
.plan__cart span { padding: 9px 10px; border-left: 1px solid rgba(18, 20, 22, .35); }
.plan__cart span:first-child { border-left: 0; font-weight: 500; }
.plan figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-muted); }
.js .plan__svg .draw circle, .js .plan__svg .draw rect:not([fill]), .js .plan__svg .dim path {
  stroke-dasharray: 800; stroke-dashoffset: 800; transition: stroke-dashoffset 1.8s var(--ease);
}
.js .plan__svg .draw .pcd { stroke-dasharray: 10 4 2 4; stroke-dashoffset: 0; }
.js .plan.is-drawn .plan__svg .draw circle, .js .plan.is-drawn .plan__svg .draw rect:not([fill]), .js .plan.is-drawn .plan__svg .dim path { stroke-dashoffset: 0; }
.js .plan.is-drawn .plan__svg .draw .pcd { stroke-dasharray: 10 4 2 4; }

.wide { position: relative; margin-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 55%; }
.wide figcaption {
  position: absolute; left: 0; bottom: 0; max-width: 100%;
  background: var(--ink); color: var(--text); padding: 12px 16px; font-size: 15px;
  display: flex; gap: 12px; align-items: baseline;
}

/* Parc machines */
.parc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.parc__media { grid-column: 1 / 8; }
.parc__big { position: relative; }
.parc__big img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.parc__small { margin-top: 28px; }
.parc__small img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.85); }
.table-wrap { grid-column: 8 / 13; }
.machines { width: 100%; border-collapse: collapse; }
.machines thead th { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); text-align: left; padding: 0 10px 12px 0; border-bottom: 2px solid var(--text); }
.machines thead th:last-child, .machines td:last-child { text-align: right; padding-right: 0; }
.machines tbody th, .machines td { padding: 16px 10px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.machines tbody th { font-weight: 600; font-size: 16px; text-align: left; line-height: 1.3; }
.machines td { font-family: var(--mono); font-size: 13.5px; color: #c9cbc8; }
.machines td:last-child { font-size: 15px; color: var(--text); }
.machines tbody tr { transition: background-color .2s; }
.machines tbody tr:hover { background: rgba(255, 91, 26, .08); }
.machines tbody tr:hover th { color: var(--orange); }
.table-note { margin-top: 20px; font-size: 15px; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--orange); }

/* Secteurs */
.sectors { position: relative; isolation: isolate; padding-block: clamp(80px, 10vw, 140px); overflow: hidden; }
.sectors__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.1); }
.sectors::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 19, 21, .9), rgba(17, 19, 21, .78) 40%, rgba(17, 19, 21, .94)); }
.head--onimg .head__title { grid-column: 1 / 10; }
.sect-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.sect {
  padding: 28px 26px 30px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  background: rgba(17, 19, 21, .45); backdrop-filter: blur(2px);
  transition: background-color .3s var(--ease);
}
.sect:hover { background: rgba(255, 91, 26, .12); }
.sect svg { width: 34px; height: 34px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.sect:hover svg { transform: rotate(-8deg) scale(1.06); }
.sect h3 { margin-top: 18px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 24px; line-height: 1; }
.sect p { margin-top: 10px; color: #c4c6c2; font-size: 16px; }

/* Devis */
.quote-sec { background: var(--concrete); color: var(--ink); padding-block: clamp(80px, 10vw, 140px); }
.quote-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.quote-intro { grid-column: 1 / 5; position: sticky; top: calc(var(--top-h) + 32px); }
.quote-title { font-weight: 800; font-stretch: 68%; text-transform: uppercase; font-size: clamp(3rem, 6.4vw, 6rem); line-height: .88; }
.quote-lead { margin-top: 18px; font-size: 18px; color: var(--ink-muted); max-width: 36ch; }
.checklist { margin-top: 32px; border-top: 2px solid var(--ink); padding-top: 16px; }
.checklist__h, .direct__h { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
.checklist ul { margin-top: 12px; }
.checklist li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid rgba(18, 20, 22, .14); font-size: 16px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.direct { margin-top: 28px; }
.direct__tel { display: inline-flex; min-height: 44px; align-items: center; font-family: var(--mono); font-size: 26px; font-weight: 500; text-decoration: none; }
.direct__tel:hover { color: var(--orange-deep); }
.direct__hours { font-size: 15px; color: var(--ink-muted); }

.qform {
  grid-column: 6 / 13; background: #fff; padding: clamp(22px, 3vw, 40px);
  border-top: 6px solid var(--orange); box-shadow: 0 30px 60px -30px rgba(18, 20, 22, .35);
}
.qform__type { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.qform__type legend, .f label:not(.drop) { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 0; margin-bottom: 8px; display: block; }
.f label abbr { text-decoration: none; color: var(--orange-deep); }
.pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 10px;
  border: 1px solid rgba(18, 20, 22, .25); font-weight: 600; font-size: 15px; line-height: 1.15;
  transition: background-color .2s, border-color .2s, color .2s;
}
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); }
.pill input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.qform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.f--full { grid-column: 1 / -1; }
.f--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f input:not([type="checkbox"]):not([type="file"]), .f select, .f textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid rgba(18, 20, 22, .28); border-radius: 0; background: #fbfbf9; color: var(--ink);
  font-size: 16px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.f textarea { resize: vertical; min-height: 110px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(255, 91, 26, .35); }
.drop {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center;
  padding: 18px; border: 1.5px dashed rgba(18, 20, 22, .4); background: #fbfbf9; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.is-over { border-color: var(--orange); background: #fff6f1; }
.drop svg { grid-row: 1 / span 2; width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop__t { font-size: 15px; color: var(--ink-muted); }
.drop__t b { color: var(--ink); margin-right: 6px; }
.drop__file { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop__input:focus-visible + .drop, .f--full:focus-within .drop { outline: 2px solid var(--orange); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 20px; font-size: 14.5px; color: var(--ink-muted); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange-deep); }
.qform__submit { width: 100%; margin-top: 22px; min-height: 60px; font-size: 17px; }
.qform__done { margin-top: 16px; padding: 14px 16px; background: var(--ink); color: var(--text); font-size: 15px; border-left: 4px solid var(--orange); }
.qform__done b { color: var(--orange); }

/* Pied de page */
.footer { background: var(--graphite); padding-block: 72px 40px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.8fr; gap: 36px; }
.footer__brand p { margin-top: 18px; color: var(--muted); font-size: 15.5px; max-width: 34ch; }
.footer__h { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.footer p { font-size: 15.5px; }
.footer a { text-decoration: none; }
.footer p a:hover, .footer__links a:hover { color: var(--orange); }
.footer__cta { margin-top: 18px; }
.footer__links a { display: inline-flex; min-height: 36px; align-items: center; font-size: 15.5px; }
.credits__list { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.credits__list li + li { margin-top: 5px; }
.credits__list a { text-decoration: underline; text-underline-offset: 2px; color: #c9cbc8; }
.footer__legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__legal p { max-width: none; }

/* Mention de démonstration */
.demo-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 60;
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  background: rgba(238, 237, 232, .92); color: var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em; text-decoration: none;
  border-left: 3px solid var(--orange);
  transition: background-color .2s;
}
.demo-badge::before { content: ""; position: absolute; inset: -8px -4px; }
.demo-badge:hover { background: #fff; }

/* Apparition */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__tel { display: none; }
  .head__title { grid-column: 1 / -1; }
  .head__intro { grid-column: 1 / 9; margin-top: 18px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .specs > div { padding-bottom: 14px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 999px) {
  :root { --top-h: 64px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--top-h) 0 0; margin: 0; z-index: 49;
    background: var(--graphite); border-top: 1px solid var(--line);
    padding: 16px var(--gutter) 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { min-height: 64px; padding: 0; font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: 32px; }
  .nav__list a::after { display: none; }
  .nav__tel { display: block; }
  .nav__tel a { font-family: var(--mono); font-size: 18px; font-weight: 500; text-transform: none; color: var(--orange); }
  .top.menu-open { background: var(--graphite); }

  .sf-grid { grid-template-columns: 1fr; }
  .card--a, .card--b, .card--c, .card--d { grid-column: 1; }
  .card__fig img, .card--b .card__fig img, .card--c .card__fig img { aspect-ratio: 3 / 2; }
  .fab { display: block; }
  .plan { position: static; margin-top: 40px; }
  .parc { display: block; }
  .table-wrap { margin-top: 32px; }
  .quote-grid { display: block; }
  .quote-intro { position: static; }
  .qform { margin-top: 36px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hide-s { display: none; }
  .top__cta { min-height: 44px; padding: 0 14px; font-size: 14px; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__txt b { font-size: 23px; }
  .logo__txt span { font-size: 9.5px; }
  .hero { min-height: 0; padding-top: calc(var(--top-h) + 150px); }
  .hero__img { object-position: 66% 30%; height: 62%; }
  .hero__shade { background: linear-gradient(0deg, var(--graphite) 38%, rgba(17, 19, 21, .55) 62%, rgba(17, 19, 21, .25) 100%); }
  .hero__cote, .hero__tag--b, .hero .corner--tr { display: none; }
  .hero__tag--a { right: 16px; top: calc(var(--top-h) + 20px); font-size: 11.5px; }
  .hero .corner--tl { left: 10px; top: calc(var(--top-h) + 10px); }
  .hero__title { font-size: clamp(2.8rem, 13.6vw, 3.7rem); }
  .br-d { display: none; }
  .hero__lead { font-size: 16.5px; }
  .hero__actions .btn { width: 100%; }
  .specs { grid-template-columns: 1fr 1fr; padding-bottom: 40px; }
  .specs dd { font-size: 14px; }
  .head { display: block; }
  .head__intro { margin-top: 16px; }
  .op { grid-template-columns: 1fr; row-gap: 4px; }
  .plan__sheet { padding: 10px 10px 0; }
  .plan__cart { margin: 10px -10px 0; grid-template-columns: 1fr 1fr; }
  .plan__cart span:nth-child(3) { border-left: 0; }
  .plan__cart span:nth-child(n+3) { border-top: 1px solid rgba(18, 20, 22, .35); }
  .wide img { aspect-ratio: 4 / 3; }
  .wide figcaption { position: static; font-size: 14px; }
  .machines thead { display: none; }
  .machines tbody tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .machines tbody th, .machines td { border: 0; padding: 0; }
  .machines td:nth-of-type(1) { grid-column: 1; grid-row: 2; margin-top: 4px; }
  .machines td:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 18px; padding-left: 16px; }
  .sect-grid { grid-template-columns: 1fr; }
  .sect { padding: 22px 20px 24px; }
  .pills { grid-template-columns: 1fr 1fr; }
  .qform__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding-bottom: 64px; }
  .demo-badge {
    left: 0; right: 0; bottom: 0; justify-content: center; min-height: 30px; border-left: 0; border-top: 2px solid var(--orange);
    padding-bottom: env(safe-area-inset-bottom); font-size: 10.5px;
  }
  .demo-badge::before { inset: -14px 0 0; }
}

@media (min-width: 641px) and (max-width: 999px) {
  .card__body { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .plan__svg .draw circle, .js .plan__svg .draw rect:not([fill]), .js .plan__svg .dim path { stroke-dashoffset: 0; }
}

/* Ajustements fins */
.wide figcaption .code { white-space: nowrap; }
.qform__submit { white-space: normal; text-align: center; line-height: 1.2; }
@media (max-width: 640px) {
  .eyebrow { font-size: 11px; letter-spacing: .06em; }
  .eyebrow::before { width: 16px; margin-right: 8px; }
  .qform__submit { font-size: 15px; padding: 10px 18px; }
}

.logo { min-height: 44px; }
.footer__links a { min-height: 44px; }
