:root {
  --ink: #111c2c;
  --muted: #687487;
  --line: #dfe3e8;
  --paper: #ffffff;
  --surface: #f5f6f7;
  --accent: #f54845;
  --accent-dark: #cf302f;
  --shadow: 0 8px 28px rgba(17, 28, 44, .08);
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [role="button"]:focus-visible { outline: 3px solid #111c2c; outline-offset: 3px; }
.demo-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px clamp(24px, 5vw, 84px); color: #465469; background: #f5f6f7; border-bottom: 1px solid var(--line); font-size: 13px; }
.demo-banner a { color: var(--ink); font-weight: 700; white-space: nowrap; }
.demo-banner a:hover { color: var(--accent-dark); }
.demo-form-note { font-size: 13px; color: var(--muted); }

.site-header {
  height: 82px; padding: 0 clamp(24px, 5vw, 84px); display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: inline-flex; align-items: center; gap: 14px; width: max-content; }
.brand strong { display: block; font-size: 22px; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); margin-top: 2px; }
.brand-contact { font-size: 11px; white-space: nowrap; }
.brand-contact b { color: var(--ink); }
.brand-mark { width: 46px; height: 48px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; width: 15px; height: 42px; border-radius: 8px 8px 3px 3px; transform: rotate(38deg); }
.brand-mark i:first-child { background: linear-gradient(#ff5a58, var(--accent)); left: 9px; top: 0; }
.brand-mark i:last-child { background: #1d2938; right: 6px; bottom: 0; height: 28px; }
.main-nav { display: flex; align-items: stretch; height: 100%; gap: 38px; }
.main-nav a { display: grid; place-items: center; font-weight: 650; position: relative; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.language-switch { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; }
.language-switch button { border: 0; padding: 8px 9px; background: white; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 800; }
.language-switch button.active { background: #1d2938; color: white; }
.quote-header { border: 1px solid var(--accent); border-radius: 7px; padding: 10px 13px; color: var(--accent-dark); background: white; font-weight: 800; cursor: pointer; white-space: nowrap; }
.quote-header b { display: inline-grid; place-items: center; min-width: 21px; height: 21px; margin-left: 5px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: white; }
.quote-header.confirmed { color: white; background: var(--accent); }
.catalogue-button { padding: 15px 24px; background: #1d2938; color: white; border-radius: 7px; font-weight: 750; }
.catalogue-button span { margin-left: 12px; }

.hero {
  min-height: 210px; padding: 34px clamp(24px, 5vw, 84px); display: grid; grid-template-columns: minmax(430px, .9fr) minmax(520px, 1.1fr);
  align-items: center; gap: 42px; background: linear-gradient(105deg, #f4f6f8 0%, #fff 60%, #eef1f4 100%); position: relative;
}
.hero::after { content: ""; position: absolute; right: 4%; top: 10%; width: 230px; height: 180px; opacity: .12; background: repeating-radial-gradient(circle at 60% 45%, #233044 0 4px, transparent 5px 18px); }
.hero-copy, .search-wrap { position: relative; z-index: 1; }
.hero h1 { margin: 0; font-size: clamp(32px, 3vw, 50px); letter-spacing: -.035em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { margin: 9px 0 0; color: var(--muted); font-size: 20px; }
.search-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; border: 1px solid #d5dae0; border-radius: 12px; background: white; box-shadow: var(--shadow); }
.search-wrap > span { font-size: 30px; padding-left: 18px; color: var(--muted); transform: rotate(-20deg); }
.search-wrap input { min-width: 0; border: 0; outline: 0; padding: 20px 15px; font-size: 17px; background: transparent; }
.search-wrap button { border: 0; background: var(--accent); color: white; width: 66px; align-self: stretch; border-radius: 0 11px 11px 0; font-size: 28px; cursor: pointer; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: 360px; overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 45px rgba(17,28,44,.18); z-index: 20; }
.search-results a { display: block; padding: 12px 16px; border-bottom: 1px solid #edf0f2; }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: #fff4f3; }
.search-results strong, .search-results small { display: block; }
.search-results small { color: var(--muted); margin-top: 3px; }
.no-result { padding: 18px; color: var(--muted); }

.content-shell { width: min(1640px, calc(100% - 56px)); margin: 0 auto; }
.home-content { padding: 32px 0 56px; }
.interior { padding: 24px 0 64px; min-height: calc(100vh - 140px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { margin: 3px 0 0; font-size: 34px; letter-spacing: -.03em; }
.eyebrow { color: var(--accent-dark); font-size: 12px; font-weight: 850; letter-spacing: .1em; }
.muted { color: var(--muted); }

.family-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.family-card { min-width: 0; border: 1px solid var(--line); background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(17,28,44,.06); transition: transform .2s, box-shadow .2s; }
.family-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.family-title { min-height: 48px; display: flex; align-items: center; padding: 10px 14px; font-weight: 800; font-size: 17px; background: linear-gradient(90deg, #fff0ef, #f7f8fa); }
.family-card .machine-shot { border-radius: 0; height: auto; aspect-ratio: 1.43 / 1; }
.family-links { padding: 10px; display: grid; gap: 7px; }
.family-links a { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: white; }
.family-links a:hover { border-color: var(--accent); color: var(--accent-dark); background: #fff8f7; }
.family-links b { font-size: 20px; font-weight: 500; }

.machine-shot { position: relative; overflow: hidden; aspect-ratio: 1.43 / 1; background: linear-gradient(#fbfbfb, #f1f3f4); border-radius: 9px; }
.machine-shot img { position: absolute; max-width: none; height: auto; user-select: none; pointer-events: none; }
.crop-1 img { width: 360%; left: -19%; top: -86%; }
.crop-2 img { width: 373%; left: -135%; top: -89%; }
.crop-3 img { width: 362%; left: -239%; top: -87%; }

.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin: 2px 0 22px; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb b { color: #b4bbc4; font-weight: 400; }
.back-button { display: inline-flex; align-items: center; padding: 11px 17px; border: 1px solid #9ba5b2; border-radius: 8px; font-weight: 700; }
.back-button:hover { border-color: var(--accent); color: var(--accent-dark); }
.page-heading { text-align: center; margin: -36px auto 28px; }
.title-line { display: flex; justify-content: center; align-items: center; gap: 18px; }
.page-heading h1 { margin: 0; font-size: clamp(34px, 3.4vw, 54px); letter-spacing: -.04em; }
.page-heading p { color: var(--muted); font-size: 19px; margin: 9px 0 0; }
.count-pill, .demo-badge { display: inline-flex; padding: 7px 13px; border-radius: 999px; background: #ffebe9; color: var(--accent-dark); font-size: 13px; font-weight: 750; white-space: nowrap; }

.model-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.model-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 12px; box-shadow: 0 5px 18px rgba(17,28,44,.06); }
.model-card .machine-shot { width: 100%; }
.model-body h2 { margin: 14px 3px 4px; font-size: 21px; }
.model-body p { margin: 0 3px; color: #526075; font-size: 15px; }
.model-body small { display: block; margin: 8px 3px 13px; color: var(--muted); font-size: 13px; }
.card-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.primary-action, .secondary-action { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; padding: 10px 14px; font-weight: 800; text-align: center; }
.primary-action { color: white; background: linear-gradient(135deg, #fa4d49, #ef3f3d); border: 1px solid var(--accent); }
.primary-action:hover { background: var(--accent-dark); }
.secondary-action { background: white; border: 1px solid #26354a; }
.secondary-action:hover { color: var(--accent-dark); border-color: var(--accent); background: #fff8f7; }

.model-tabs { display: flex; justify-content: center; gap: 10px; margin: 0 0 22px; }
.model-tabs a { padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 750; }
.model-tabs a.active { color: white; background: #1d2938; border-color: #1d2938; }

.component-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 4px 0 18px; }
.component-intro h2 { margin: 4px 0 0; font-size: 28px; }
.component-intro p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.5; text-align: right; }
.component-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.component-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 5px 18px rgba(17,28,44,.06); }
.component-visual { min-height: 230px; display: grid; place-items: center; background: linear-gradient(145deg, #f8f9fa, #edf0f2); border-bottom: 1px solid var(--line); }
.component-visual svg { width: 88%; height: 200px; }
.component-visual g { fill: none; stroke: #27364a; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.component-visual.assembly-visual g { stroke: var(--accent-dark); }
.component-visual.unit-visual { background: linear-gradient(145deg, #f9fafb, #f1f3f5); }
.component-visual.unit-visual svg { width: 76%; }
.component-photo { height: 230px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, #f8f9fa, #edf0f2); border-bottom: 1px solid var(--line); }
.component-photo img { width: 100%; height: 100%; object-fit: cover; }
.component-card > .component-photo { height: auto; aspect-ratio: 1.34 / 1; padding: 10px; }
.component-card > .component-photo img { object-fit: contain; }
.component-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 14px; }
.component-kind { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: var(--accent-dark); background: #ffebe9; font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.component-kind.unit { color: #304157; background: #edf1f5; }
.component-body small { display: block; margin: 11px 0 0; color: var(--muted); font-weight: 750; }
.component-body h2 { margin: 10px 0 5px; font-size: 19px; line-height: 1.2; }
.component-body p { flex: 1; margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.component-body .primary-action, .component-body .secondary-action { width: 100%; }

.exploded-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(540px, 1fr); gap: 20px; align-items: stretch; }
.exploded-panel, .parts-panel, .document-machine, .document-list, .document-preview { border: 1px solid var(--line); background: white; border-radius: var(--radius); box-shadow: 0 5px 18px rgba(17,28,44,.06); }
.exploded-panel, .parts-panel { padding: 18px; }
.panel-title { min-height: 54px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel-title h2 { margin: 3px 0 0; font-size: 22px; }
.annotated-machine { position: relative; min-height: 510px; background: #f5f6f7; border-radius: 10px; overflow: hidden; }
.annotated-machine .machine-shot { height: 100%; min-height: 510px; aspect-ratio: auto; }
.annotated-machine .component-visual { width: 100%; height: 510px; border: 0; }
.annotated-machine .component-visual svg { width: 82%; height: 390px; }
.annotated-machine .component-photo { width: 100%; height: 510px; border: 0; }
.annotated-machine .component-photo img { object-fit: contain; }
.marker, .article-marker { position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: white; border: 3px solid white; box-shadow: 0 3px 9px rgba(0,0,0,.25); font-weight: 850; }
.marker { transition: transform .2s ease, box-shadow .2s ease; }
.marker.active { transform: scale(1.2); box-shadow: 0 0 0 9px rgba(245,72,69,.2), 0 5px 14px rgba(0,0,0,.3); }
.marker-1 { left: 16%; top: 24%; }.marker-2 { left: 44%; top: 18%; }.marker-3 { right: 20%; top: 29%; }
.marker-4 { left: 24%; bottom: 20%; }.marker-5 { left: 54%; bottom: 24%; }.marker-6 { right: 12%; bottom: 16%; }
.parts-scroll { height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { position: sticky; top: 0; background: #1d2938; color: white; z-index: 1; }
th { text-align: left; padding: 12px 10px; font-size: 12px; letter-spacing: .03em; }
td { padding: 13px 10px; border-bottom: 1px solid #e7eaed; vertical-align: middle; }
tbody tr:hover { background: #fff7f6; }
.part-row { cursor: pointer; transition: background .18s ease, box-shadow .18s ease; }
.part-row:focus-visible { outline: 3px solid rgba(245,72,69,.35); outline-offset: -3px; }
.part-row.selected { background: #ffe9e7; box-shadow: inset 4px 0 0 var(--accent); }
.part-row.selected:hover { background: #ffe9e7; }
.part-row.selected .repere { color: white; background: var(--accent); }
.part-preview-row[hidden] { display: none; }
.part-preview-row:hover { background: white; }
.part-preview-row > td { padding: 0; border-bottom: 1px solid #f2b8b4; background: white; }
.part-inline-preview { padding: 13px 14px 14px; border-left: 4px solid var(--accent); background: linear-gradient(90deg, #fff8f7, #fff); }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.preview-heading strong { font-size: 12px; color: var(--muted); }
.preview-variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; }
.preview-variant { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.preview-variant.current { border-color: #f2aaa6; background: #fff4f3; }
.preview-variant img { width: 58px; height: 58px; object-fit: contain; border-radius: 6px; background: #f2f4f5; }
.preview-variant div { min-width: 0; }
.preview-variant small, .preview-variant strong, .preview-variant span { display: block; }
.preview-variant small { color: var(--accent-dark); font-weight: 800; font-size: 11px; }
.preview-variant strong { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.preview-variant span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.preview-variant > a { grid-column: 1 / -1; padding-top: 6px; border-top: 1px solid #edf0f2; color: var(--accent-dark); font-size: 11px; font-weight: 850; }
td a { color: var(--accent-dark); font-weight: 800; }
.repere { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #eef1f4; font-weight: 800; }
.row-add { width: 30px; height: 30px; border: 1px solid var(--accent); border-radius: 7px; color: white; background: var(--accent); cursor: pointer; font-size: 20px; line-height: 1; }
.assembly-description { margin-top: 20px; padding: 26px 30px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: white; box-shadow: 0 5px 18px rgba(17,28,44,.05); }
.assembly-description h2 { margin: 5px 0 9px; }
.assembly-description p { max-width: 1200px; margin: 0; color: #526075; line-height: 1.7; }

.documentation-layout { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(600px, 1.28fr); gap: 20px; }
.document-machine { padding: 18px; align-self: start; }
.document-machine h2 { margin: 15px 2px 3px; font-size: 28px; }
.document-machine p { margin: 0 2px; color: var(--muted); }
.document-list { padding: 8px 18px; }
.document-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 22px 6px; border-bottom: 1px solid var(--line); }
.document-row:last-child { border-bottom: 0; }
.document-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: #fff0ef; color: var(--accent-dark); font-size: 25px; }
.document-row h2 { margin: 4px 0; font-size: 20px; }
.document-row small { color: var(--muted); }
.document-row > a { padding: 11px 15px; border: 1px solid #26354a; border-radius: 8px; font-weight: 800; }
.document-row > a:hover { color: var(--accent-dark); border-color: var(--accent); }
.documentation-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.documentation-index section { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.documentation-index h2 { margin: 0 0 10px; }
.documentation-index a { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid #edf0f2; }
.documentation-index a b { color: var(--accent-dark); }

.article-detail { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr); gap: 28px; margin-top: 24px; }
.article-image, .article-info, .article-description { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 22px; box-shadow: 0 5px 18px rgba(17,28,44,.06); }
.article-image { position: relative; }
.article-image .machine-shot { min-height: 430px; aspect-ratio: auto; }
.article-image .component-visual { height: 430px; border: 0; border-radius: 10px; }
.article-image .component-visual svg { width: 78%; height: 340px; }
.article-image .component-photo { height: 430px; border: 0; border-radius: 10px; }
.article-image .component-photo img { object-fit: contain; }
.article-marker { right: 10%; top: 12%; width: 46px; height: 46px; }
.article-info { display: flex; flex-direction: column; justify-content: center; }
.article-info h1 { margin: 7px 0 5px; font-size: 42px; }
.article-info h2 { margin: 0; color: #4e5c70; font-size: 24px; font-weight: 600; }
.price { margin: 24px 0; font-size: 38px; font-weight: 850; color: var(--accent-dark); }
.price small { font-size: 14px; color: var(--muted); }
dl { margin: 0; border-top: 1px solid var(--line); }
dl div { display: grid; grid-template-columns: 130px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); } dd { margin: 0; font-weight: 750; }
.article-description { grid-column: 1 / -1; }
.article-description h2 { margin-top: 0; }
.article-description p { color: #526075; line-height: 1.7; }
.article-quote { width: 100%; margin-top: 20px; border: 0; cursor: pointer; }

.quote-overlay { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; background: rgba(17,28,44,.45); }
.quote-panel { width: min(620px, 100%); height: 100%; overflow-y: auto; padding: 25px; background: white; box-shadow: -15px 0 45px rgba(0,0,0,.18); }
.quote-panel > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.quote-panel > header h2 { margin: 4px 0 0; font-size: 28px; }
.quote-panel > header button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #edf0f2; font-size: 26px; cursor: pointer; }
.quote-lines { margin: 16px 0 25px; }
.quote-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.quote-line span, .quote-line small { display: block; margin-top: 2px; }
.quote-line small { color: var(--muted); }
.quote-line label { color: var(--muted); font-size: 12px; }
.quote-line input { display: block; width: 62px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; }
.quote-line > button { width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--accent-dark); background: #ffebe9; cursor: pointer; }
.quote-empty { padding: 24px; border-radius: 9px; color: var(--muted); background: var(--surface); text-align: center; }
.quote-form { padding-top: 20px; border-top: 1px solid var(--line); }
.quote-form h3 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.quote-form label { display: block; margin-bottom: 13px; color: #465469; font-size: 13px; font-weight: 700; }
.quote-form input, .quote-form textarea { width: 100%; margin-top: 5px; padding: 11px; border: 1px solid #cfd5dc; border-radius: 7px; background: white; }
.quote-form textarea { resize: vertical; }
.quote-form .primary-action { width: 100%; border: 0; cursor: pointer; }
.quote-form .primary-action:disabled { opacity: .45; cursor: not-allowed; }
.privacy-note { color: var(--muted); font-size: 12px; text-align: center; }

.document-preview { max-width: 1000px; margin: 26px auto; padding: 36px 46px; }
.document-preview header { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.document-preview h1 { margin: 5px 0; font-size: 34px; }
.document-preview header p { margin: 0; color: var(--muted); }
.document-content { padding: 22px 0; line-height: 1.7; color: #465469; }
.document-content h2 { color: var(--ink); margin-top: 28px; }
.empty-state { min-height: 65vh; display: grid; place-content: center; text-align: center; }

.site-footer { min-height: 58px; padding: 16px clamp(24px, 5vw, 84px); display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exploded-layout, .documentation-layout { grid-template-columns: 1fr; }
  .article-detail { grid-template-columns: 1fr; }
  .documentation-index { grid-template-columns: 1fr; }
  .model-grid, .component-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue-button { display: none; }
}

@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 16px; }
  .brand strong { font-size: 17px; }.brand small { font-size: 11px; }.brand-mark { transform: scale(.82); margin-left: -4px; }
  .catalogue-button { padding: 12px 14px; font-size: 13px; }
  .brand-contact { display: none; }
  .quote-header { padding: 8px; font-size: 0; }
  .quote-header::before { content: "Devis"; font-size: 12px; }
  .language-switch button { padding: 7px 6px; }
  .hero { padding: 26px 18px; min-height: 0; }
  .hero h1 { font-size: 32px; }.hero p { font-size: 16px; }
  .search-wrap input { padding: 17px 8px; font-size: 14px; }
  .content-shell { width: calc(100% - 28px); }
  .home-content { min-width: 0; }
  .family-grid, .model-grid, .component-grid { min-width: 0; grid-template-columns: 1fr; }
  .section-heading { align-items: start; gap: 15px; }.section-heading h2 { font-size: 28px; }
  .page-heading { margin: 22px 0; }.page-heading h1 { font-size: 34px; }.page-heading p { font-size: 16px; }
  .title-line { flex-wrap: wrap; gap: 8px; }
  .breadcrumb { overflow-x: auto; white-space: nowrap; }
  .card-actions { grid-template-columns: 1fr; }
  .component-intro { display: block; }
  .component-intro p { margin-top: 10px; text-align: left; }
  .component-visual { min-height: 190px; }
  .component-photo { height: 200px; }
  .exploded-layout, .documentation-layout, .article-detail { display: block; }
  .parts-panel, .document-list, .article-info, .article-description { margin-top: 16px; }
  .annotated-machine, .annotated-machine .machine-shot { min-height: 300px; }
  .parts-scroll { height: 430px; overflow: auto; }
  table { min-width: 650px; }
  .document-row { grid-template-columns: auto 1fr; }
  .document-row > a { grid-column: 1 / -1; text-align: center; }
  .article-image .machine-shot { min-height: 300px; }
  .article-image .component-visual { height: 300px; }
  .article-image .component-photo { height: 300px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .document-preview { padding: 25px 20px; }.document-preview header { flex-direction: column; }
  .site-footer { flex-direction: column; gap: 5px; }
}

/* Five family cards per desktop row, without forcing a horizontal page scroll. */
@media (min-width: 1200px) {
  .family-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .model-grid, .component-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1199px) and (min-width: 761px) {
  .family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .site-header { height: auto; padding-top: 12px; padding-bottom: 0; row-gap: 8px; }
  .main-nav { display: flex; grid-column: 1 / -1; grid-row: 2; justify-content: center; min-height: 44px; gap: 30px; }
}
@media (max-width: 760px) {
  .demo-banner { padding: 10px 16px; align-items: flex-start; font-size: 12px; }
  .site-header { padding-top: 12px; }
  .main-nav { gap: 25px; font-size: 13px; }
  .brand { width: auto; min-width: 0; gap: 8px; }
  .brand-copy { min-width: 0; }
  .brand strong { font-size: 15px; }
  .header-actions { gap: 5px; }
  .section-heading { flex-wrap: wrap; }
  .search-wrap { grid-template-columns: auto minmax(0,1fr) auto; }
  .search-wrap button { width: 52px; }
  .search-wrap input { font-size: 16px; }
  .family-card .machine-shot { aspect-ratio: 1.7 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

@media (max-width: 420px) {
  .site-header { padding: 0 10px; gap: 8px; }
  .brand { gap: 6px; }
  .brand-mark { width: 32px; transform: scale(.68); transform-origin: left center; margin-right: -8px; }
  .brand strong { font-size: 14px; }
  .brand small { display: none; }
  .catalogue-button { padding: 10px 9px; font-size: 11px; }
  .catalogue-button span { display: none; }
}
