/* =========================================================
   PILOTEC · web pública
   Paleta industrial: grafit + groc de senyalització
   ========================================================= */
:root {
  --ink: #15181d;
  --ink-2: #2b3038;
  --steel: #5b636e;
  --muted: #6c737d;
  --line: #e2e3df;
  --bg: #ffffff;
  --bg-alt: #f4f4f1;
  --accent: #f5b419;
  --accent-ink: #15181d;
  --accent-dark: #d69a06;
  --danger: #c0392b;
  --ok: #1f7a4d;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(21, 24, 29, .06), 0 8px 24px rgba(21, 24, 29, .06);
  --shadow-lg: 0 20px 50px rgba(21, 24, 29, .18);
  --wrap: 1240px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Archivo", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); padding: 8px 14px; font-weight: 700; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--ink-2); }
.kicker {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .75rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
}
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--accent); }

/* ---------- Botons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.25em; border: 2px solid transparent; border-radius: var(--radius-sm);
  font: 700 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: .95em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; white-space: nowrap; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light { color: #fff; }

/* ---------- Topbar + capçalera ---------- */
.topbar { background: var(--ink); color: #c9cdd3; font-size: .82rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar__links { display: flex; gap: 22px; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { color: var(--accent); }

.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__mark { display: inline-flex; gap: 4px; align-items: flex-end; height: 30px; }
.brand__mark i { width: 8px; background: var(--ink); border-radius: 4px 4px 1px 1px; position: relative; }
.brand__mark i::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 3px; background: var(--accent); }
.brand__mark i:nth-child(1) { height: 30px; }
.brand__mark i:nth-child(2) { height: 22px; }
.brand__mark i:nth-child(3) { height: 14px; }
.brand__name { font: 800 1.45rem/1 var(--font-head); letter-spacing: .06em; }
.brand--light .brand__mark i { background: #fff; }
.brand--light { color: #fff; }

.nav { flex: 1; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .96rem; text-decoration: none; color: var(--ink-2); position: relative;
}
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--ink); }
.nav__item.is-active > .nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; background: var(--accent); border-radius: 2px;
}
.chev { transition: transform .2s; }
.nav__mobile-extra { display: none; }

.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 28px max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.has-mega:hover .chev, .has-mega.is-open .chev { transform: rotate(180deg); }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; }
.mega__head { display: block; font-weight: 800; text-decoration: none; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--accent); }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li a { display: block; padding: 4px 0; text-decoration: none; color: var(--steel); font-size: .94rem; }
.mega li a:hover, .mega__head:hover { color: var(--ink); text-decoration: underline; }
.mega__all { display: inline-block; margin-top: 22px; font-weight: 700; text-decoration: none; }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.search { display: flex; align-items: center; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 0 4px 0 14px; }
.search input { border: 0; background: transparent; font: inherit; font-size: .92rem; width: 170px; padding: 9px 0; outline: none; }
.search button { border: 0; background: none; cursor: pointer; padding: 8px; display: grid; place-items: center; color: var(--ink-2); }
.search--big { border-radius: var(--radius-sm); padding: 6px; max-width: 640px; margin-bottom: 32px; background: #fff; }
.search--big input { width: 100%; font-size: 1.05rem; padding: 10px 6px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(21,24,29,.92) 0%, rgba(21,24,29,.75) 45%, rgba(21,24,29,.25) 100%);
}
.hero__in { padding-block: clamp(72px, 12vw, 150px); max-width: var(--wrap); }
.hero .kicker { color: #e6e8eb; }
.hero__title { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 800; max-width: 15ch; margin-bottom: .35em; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; color: #dfe2e6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Avantatges ---------- */
.features { background: var(--ink-2); color: #fff; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { padding: 30px 26px; border-left: 1px solid rgba(255,255,255,.1); }
.feature:first-child { border-left: 0; padding-left: 0; }
.feature__num { font: 800 .85rem var(--font-head); color: var(--accent); letter-spacing: .1em; }
.feature__title { font-size: 1.12rem; margin: 8px 0 6px; }
.feature p { color: #b9bec6; font-size: .95rem; margin: 0; }

/* ---------- Seccions ---------- */
.section { padding-block: clamp(56px, 8vw, 100px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .kicker { color: #c9cdd3; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section__title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; margin: 0; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Famílies (home) */
.families { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.family {
  position: relative; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: #fff;
  background: var(--ink-2); display: flex; align-items: flex-end; isolation: isolate;
}
.family--big { grid-column: span 2; grid-row: span 2; }
.family img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.family::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,24,29,0) 30%, rgba(21,24,29,.88) 100%); }
.family:hover img { transform: scale(1.05); }
.family__body { padding: 20px 22px; display: grid; gap: 4px; }
.family__name { font: 800 1.25rem var(--font-head); display: flex; align-items: center; gap: 8px; }
.family__name::after { content: "→"; color: var(--accent); transition: transform .2s; }
.family:hover .family__name::after { transform: translateX(4px); }
.family--big .family__name { font-size: 1.7rem; }
.family__subs { font-size: .88rem; color: #d3d6db; }

/* Targetes */
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; position: relative;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__media { display: block; aspect-ratio: 4 / 3; background: #f0f0ec; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; mix-blend-mode: multiply; transition: transform .4s; }
.card--news .card__media img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card__eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); margin-bottom: 6px; }
.card__title { font-size: 1.12rem; margin: 0 0 6px; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text { color: var(--muted); font-size: .94rem; margin: 0 0 12px; }
.card__more { margin-top: auto; font-weight: 700; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.card__more svg { color: var(--accent-dark); transition: transform .2s; }
.card:hover .card__more svg { transform: translateX(4px); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-lg); }
.split__body .section__title { margin-bottom: 18px; }
.split__actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 26px; }

/* Tira de projectes */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.strip__item { margin: 0; scroll-snap-align: start; }
.strip__item img { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: var(--radius); }
.strip__item figcaption { font-size: .9rem; margin-top: 10px; font-weight: 600; }
.strip__item figcaption span { color: #9aa1aa; font-weight: 400; }

/* CTA */
.cta { background: var(--accent); }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 48px; flex-wrap: wrap; }
.cta__title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin-bottom: 6px; }
.cta p { margin: 0; max-width: 60ch; }
.cta__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta__phone { font: 800 1.25rem var(--font-head); text-decoration: none; }

/* ---------- Capçalera de pàgina ---------- */
.pagehead { background: var(--ink); color: #fff; padding-block: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.pagehead::before {
  content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 320px; z-index: -1; opacity: .9;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 18px, transparent 18px 36px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.pagehead__title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin: 0; max-width: 22ch; }
.pagehead__sub { color: #c9cdd3; font-size: 1.12rem; max-width: 62ch; margin: 12px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: #9aa1aa; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs--dark { color: var(--muted); padding-top: 22px; margin: 0; }
.crumbs--dark a:hover { color: var(--ink); }

/* Catàleg */
.catalog { display: grid; gap: 22px; }
.catfam { display: grid; grid-template-columns: 300px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.catfam__media { background: #f0f0ec; }
.catfam__media img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.catfam__body { padding: 26px 30px; }
.catfam__title { font-size: 1.6rem; margin-bottom: 8px; }
.catfam__title a { text-decoration: none; }
.catfam__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.catfam__body p { color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 600; }
.chip:hover { background: var(--accent); border-color: var(--accent); }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 30px; scrollbar-width: thin; }
.tab { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; background: #fff; }
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty { text-align: center; padding: 48px 24px; background: var(--bg-alt); border-radius: var(--radius); }
.empty p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* Fitxa de producte */
.product { padding-block: 24px clamp(40px, 6vw, 72px); }
.product__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery__main { background: #f0f0ec; border-radius: var(--radius); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb { width: 76px; height: 76px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #f0f0ec; cursor: pointer; overflow: hidden; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--accent); }
.product__info { position: sticky; top: calc(var(--header-h) + 20px); }
.product__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; margin-bottom: 6px; }
.product__code { color: var(--steel); font-weight: 600; font-size: .95rem; }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }
.product__h { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs__row { display: grid; grid-template-columns: 42% 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.specs dt { color: var(--muted); font-weight: 600; }
.specs dd { margin: 0; font-weight: 600; }

/* Prosa (contingut editable) */
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--accent-dark); }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.prose blockquote { margin: 1.2em 0; padding: 8px 20px; border-left: 4px solid var(--accent); color: var(--ink-2); }
.prose--intro { margin-bottom: 30px; }

.page-narrow { max-width: 860px; }
.page-split { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.page-split__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.page-split__aside > img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.aside-box { background: var(--ink); color: #fff; padding: 24px; border-radius: var(--radius); }
.aside-box h2 { font-size: 1.3rem; }
.aside-box p { color: #c9cdd3; font-size: .95rem; }
.aside-box__phone { display: block; text-align: center; margin-top: 14px; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.article__img { border-radius: var(--radius); margin-bottom: 26px; width: 100%; }

.grid--gallery { gap: 16px; }
.tile { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.tile img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.75)); }

/* Projectes */
.masonry { columns: 3 300px; column-gap: 18px; }
.masonry__item { margin: 0 0 18px; break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.masonry__item a { display: block; overflow: hidden; }
.masonry__item img { width: 100%; transition: transform .4s; }
.masonry__item a:hover img { transform: scale(1.03); }
.masonry__item figcaption { padding: 12px 16px 14px; display: grid; gap: 2px; font-size: .95rem; }
.masonry__item figcaption span { color: var(--muted); font-size: .86rem; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,12,15,.94); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--radius-sm); }
.lightbox p { color: #fff; text-align: center; margin-top: 12px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* Contacte */
.contact { display: grid; grid-template-columns: 360px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__info h2 { font-size: 1.5rem; }
.contact__list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact__list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.08rem; }
.contact__list span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__note { background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 16px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.contact__note p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.contact__jobs { margin-top: 20px; font-size: .95rem; color: var(--muted); }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 22px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field abbr { color: var(--danger); text-decoration: none; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfd2cc; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245,180,25,.35); }
.field input[readonly] { background: var(--bg-alt); font-weight: 600; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .86rem; font-weight: 600; }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--ink); }
.more { border: 1px dashed #cfd2cc; border-radius: var(--radius-sm); padding: 12px 14px; }
.more summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.more[open] summary { margin-bottom: 14px; }
.more .form-grid { margin-bottom: 0; }
.hp { position: absolute; left: -9999px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 0 0 20px; }
.alert--success { background: #e7f5ee; color: var(--ok); border: 1px solid #bfe3cf; }
.alert--error { background: #fbeceb; color: var(--danger); border: 1px solid #f1c6c2; }

.notfound { text-align: left; }
.notfound .search--big { margin: 26px 0; }

/* ---------- Peu ---------- */
.footer { background: #0f1115; color: #aab0b8; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 64px 40px; }
.footer__brand p { margin-top: 18px; max-width: 36ch; }
.footer__h { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__social { display: flex; gap: 16px; }
.footer__social a { color: var(--accent); font-weight: 700; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #23272e; padding-block: 20px; font-size: .85rem; }
.footer__legal span:last-child { display: flex; gap: 18px; flex-wrap: wrap; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .search input { width: 120px; }
  .nav__link { padding: 10px 9px; }
}

@media (max-width: 1024px) {
  .burger { display: block; }
  .header { backdrop-filter: none; background: #fff; }
  .header__cta, .search { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; overflow-y: auto;
    padding: 12px clamp(16px, 4vw, 32px) 40px; transform: translateX(100%); transition: transform .28s ease; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.1rem; }
  .nav__item.is-active > .nav__link::after { display: none; }
  .mega { position: static; box-shadow: none; border: 0; padding: 0 4px 16px; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: none; }
  .has-mega.is-open .mega { display: block; }
  .mega__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .nav__mobile-extra { display: grid; gap: 14px; margin-top: 24px; }
  .nav__phone { text-align: center; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
  body.nav-open { overflow: hidden; }

  .features__grid { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { border-left: 0; padding-left: 0; }
  .feature { border-top: 1px solid rgba(255,255,255,.1); }
  .feature:nth-child(-n+2) { border-top: 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .families { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .family--big { grid-row: span 1; }
  .product__grid, .page-split, .contact, .split { grid-template-columns: 1fr; }
  .product__info, .page-split__aside { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  :root { --header-h: 64px; }
  .topbar__tag { display: none; }
  .topbar__in { justify-content: center; }
  .topbar__links { gap: 16px; font-size: .8rem; }
  .brand__name { font-size: 1.25rem; }
  .features__grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(3) { border-left: 0; padding: 22px 0; }
  .feature:nth-child(2) { border-top: 1px solid rgba(255,255,255,.1); }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .families { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .family--big { grid-column: auto; }
  .catfam { grid-template-columns: 1fr; }
  .catfam__media img { aspect-ratio: 16/9; min-height: 0; }
  .catfam__body { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .mega__grid { grid-template-columns: 1fr; }
  .specs__row { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta__in { padding-block: 36px; }
  .pagehead::before { width: 140px; opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .header, .footer, .cta, .burger { display: none !important; }
}
