@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --hair: rgba(0, 0, 0, .1);
  --bg: #fff;
  --tile: #f5f5f7;
  --accent: #1f6b3a;
  --max: 1080px;
  --wide: 1320px;
  --pad: clamp(20px, 5vw, 40px);
  --gap: clamp(72px, 11vw, 150px);
  --r: 28px;
  --bar: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 24px); }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.53;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Typographie ---------- */
h1 { font-size: clamp(2.75rem, 7.4vw, 6rem); line-height: 1.04; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.07; letter-spacing: -.025em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.14; letter-spacing: -.018em; }
h4 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -.012em; }
.lead { font-size: clamp(1.3125rem, 2.3vw, 1.75rem); line-height: 1.28; letter-spacing: -.012em; font-weight: 500; color: var(--muted); text-wrap: balance; }
.prose { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.prose p + p { margin-top: 1.1em; }
.muted { color: var(--muted); }
.link { color: var(--accent); white-space: nowrap; }
.link::after { content: "\00a0›"; }
.link:hover { text-decoration: underline; text-underline-offset: .2em; }
.button { display: inline-block; padding: 12px 24px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 500; transition: background .2s; }
.button:hover { background: #17552d; }

/* ---------- Structure ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.wrap-wide { max-width: calc(var(--wide) + 2 * var(--pad)); }
.narrow { max-width: 760px; margin-inline: auto; }
.section { padding-block: var(--gap); }
.section[id], .block[id] { scroll-margin-top: calc(var(--bar) + 8px); }
.section-tile { background: var(--tile); }
.center { text-align: center; }
.head { max-width: 860px; margin-inline: auto; text-align: center; }
.head .lead { margin-top: 18px; }
.head + * { margin-top: clamp(40px, 6vw, 72px); }
.block { margin-top: clamp(64px, 9vw, 112px); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cols-top { align-items: start; }
.cols h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.cols-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.rule { height: 1px; margin: 0 auto; border: 0; max-width: var(--max); background: linear-gradient(90deg, transparent, var(--line) 50%, transparent); }
.photo { border-radius: var(--r); overflow: hidden; background: var(--tile); }
.photo img { width: 100%; }
.full { margin-top: clamp(40px, 6vw, 72px); }
.hero-media + .full { margin-top: 0; }
.full img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--r); }

/* ---------- Barre haute ---------- */
.bar { position: sticky; top: 0; z-index: 10; height: var(--bar); background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); }
.bar-in { height: 100%; max-width: calc(var(--wide) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: auto; height: 26px; }
.menu { margin-inline: auto; }
.menu ul { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.menu a, .bar-tel { font-size: .8125rem; color: rgba(0, 0, 0, .8); transition: color .2s; white-space: nowrap; }
.menu a:hover, .bar-tel:hover { color: #000; }
.menu a[aria-current] { color: #000; font-weight: 600; }
.bar-tel { font-variant-numeric: tabular-nums; }
.bar-toggle { display: none; }

@media (max-width: 960px) {
  .bar-in { gap: 8px; }
  .bar-tel { margin-left: auto; }
  .bar-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; background: none; cursor: pointer; }
  .bar-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s; }
  .bar.is-open .bar-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .bar.is-open .bar-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu { display: none; position: absolute; top: var(--bar); left: 0; right: 0; height: calc(100dvh - var(--bar)); margin: 0; padding: 24px var(--pad); background: #fff; }
  .bar.is-open { background: #fff; }
  .bar.is-open .menu { display: block; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu a { display: block; padding: 14px 0; font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); border-bottom: 1px solid var(--hair); }
}
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------- Pied de page ---------- */
.foot { border-top: 1px solid var(--hair); font-size: .8125rem; color: var(--muted); }
.foot-in { max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding: 28px var(--pad); display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a:hover { color: var(--ink); }

/* ---------- En-têtes de page ---------- */
.hero { padding-block: clamp(72px, 12vw, 168px) clamp(56px, 8vw, 104px); text-align: center; }
.hero .lead { max-width: 21em; margin: clamp(18px, 2.4vw, 28px) auto 0; }
.hero-media { padding-bottom: clamp(36px, 5vw, 64px); }

/* ---------- Accueil ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; align-items: center; padding: clamp(28px, 3.4vw, 44px) 24px 0; border-radius: var(--r); background: var(--tile); text-align: center; overflow: hidden; }
.tile h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.tile .link { margin-top: 8px; }
.tile-media { display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(260px, 30vw, 380px); margin-top: 20px; padding-bottom: clamp(28px, 3.4vw, 44px); }
.tile-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile:hover .link { text-decoration: underline; text-underline-offset: .2em; }

.statement h2 { font-size: clamp(1.875rem, 4.2vw, 3.25rem); }
.statement .prose { margin-top: clamp(28px, 4vw, 44px); }

.partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.partners figure > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.partners figcaption { display: grid; place-items: center; height: 76px; }
.partners figcaption img { width: auto; height: auto; max-width: min(120px, 72%); max-height: 34px; }

/* ---------- Listes ---------- */
.list li { padding: 15px 0; border-top: 1px solid var(--line); font-weight: 500; letter-spacing: -.01em; }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list-lg li { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); }
.label { margin-bottom: 14px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Logos ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px clamp(36px, 7vw, 88px); }
.logos img { width: auto; height: auto; max-height: 40px; max-width: 150px; }
.logos .lg-wrap img { max-height: 58px; max-width: 200px; }
.brandmark { width: auto; height: auto; max-height: 36px; max-width: 150px; }

/* ---------- Gamme (traitement de l'eau) ---------- */
.range-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.range-head h2 { max-width: 12em; }
.range-head img { width: auto; height: 30px; }
.lineup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.75fr); gap: 20px; margin-top: clamp(40px, 6vw, 72px); text-align: center; }
.lineup-media { display: flex; align-items: flex-end; justify-content: center; height: clamp(200px, 22vw, 280px); }
.lineup-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lineup h3 { margin-top: 28px; font-size: 1.5rem; }
.lineup .spec { margin-top: 10px; font-size: .9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.lineup .tag { margin-top: 10px; font-size: .9375rem; line-height: 1.4; color: var(--muted); }
.range-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin-top: clamp(40px, 5vw, 64px); }
.cutout { display: grid; place-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r); background: var(--tile); }
.cutout img { width: auto; max-height: clamp(300px, 38vw, 460px); object-fit: contain; }
.materials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.materials h3 { margin-bottom: 12px; }
.note { margin-top: 24px; font-size: .875rem; color: var(--muted); }

.panel { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 460px; border-radius: var(--r); overflow: hidden; background: #f3f7fb; }
.panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.panel-text { position: relative; grid-column: 2; align-self: center; padding: clamp(32px, 5vw, 64px); padding-left: 0; }
.panel-text h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.panel-text p { margin-top: 18px; }
.panel-text .button { margin-top: 28px; }

/* ---------- Biogaz ---------- */
.stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 24px; text-align: center; }
.stat-n { font-size: clamp(4rem, 10vw, 7.5rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat-l { margin-top: 10px; font-size: clamp(1.0625rem, 1.8vw, 1.3125rem); font-weight: 500; color: var(--muted); }
.stats img { width: 100%; max-width: 440px; margin-inline: auto; }

.band { padding-block: clamp(56px, 8vw, 96px); background: linear-gradient(#fff, var(--tile)); }
.rail { --edge: max(var(--pad), calc((100vw - var(--max)) / 2)); display: flex; gap: 20px; padding-inline: var(--edge); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card { flex: 0 0 clamp(250px, 27vw, 330px); scroll-snap-align: start; }
.card-media { overflow: hidden; border-radius: 24px; background: var(--line); }
.card-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.04); }
.card h3 { margin-top: 18px; padding-right: 12px; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -.015em; }
.rail-ctl { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.rail-ctl button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .08); color: var(--ink); cursor: pointer; transition: background .2s, opacity .2s; }
.rail-ctl button:hover { background: rgba(0, 0, 0, .14); }
.rail-ctl button:disabled { opacity: .35; cursor: default; }
.rail-ctl svg { width: 16px; height: 16px; }

.gallery { display: flex; gap: 16px; }
.gallery figure { flex: var(--ar) 1 0; min-width: 0; }
.gallery img { width: 100%; border-radius: 20px; }
.caption { margin-top: 20px; max-width: 46em; color: var(--muted); }
.brand-head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.brand-head img { width: auto; height: auto; max-height: 48px; max-width: 150px; }
.stack { display: grid; gap: 16px; }
.stack .photo { border-radius: 20px; }
.figlogo { margin-top: 22px; }
.figlogo img { width: auto; height: auto; max-height: 30px; max-width: 130px; }
.brand-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.brand-block .list { margin-top: 28px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.duo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.duo h3 { margin-top: 20px; text-align: center; }
.report { padding: clamp(20px, 3vw, 36px); border-radius: var(--r); background: var(--tile); }
.report h3 { margin-top: 24px; text-align: center; font-size: 1.3125rem; }
.report .gallery { gap: 10px; }
.report .gallery img { border-radius: 14px; }
.safe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 4vw, 48px); text-align: center; }
.safe svg { display: block; width: 44px; height: 44px; margin: 0 auto 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.safe svg text { fill: currentColor; stroke: none; font: 600 15px -apple-system, "Inter", sans-serif; }
.safe li { font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }

/* ---------- Air comprimé ---------- */
.intro-stat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro-stat .stat { text-align: center; }
.products { display: grid; gap: 20px; }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding: clamp(28px, 4.5vw, 56px); border-radius: var(--r); background: var(--tile); }
.product + .product-sub { margin-top: -20px; border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: inset 0 1px 0 var(--line); }
.product:has(+ .product-sub) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.product .kw { margin-top: 6px; font-size: 1.1875rem; font-weight: 500; color: var(--muted); }
.product .tagline { margin-top: 6px; font-size: 1.1875rem; font-weight: 500; color: var(--muted); }
.facts { margin-top: 20px; font-size: 1rem; }
.facts li + li { margin-top: 6px; }
.product h4 { margin-top: 28px; }
.product-media { display: grid; place-items: center; margin-top: 28px; }
.product-media img { width: auto; max-width: min(100%, 300px); max-height: 280px; object-fit: contain; mix-blend-mode: multiply; }
.product .button, .product .link { margin-top: 20px; display: inline-block; }
.table-wrap { overflow-x: auto; }
.specs { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.specs th, .specs td { padding: 11px 12px 11px 0; text-align: left; white-space: nowrap; }
.specs thead th { padding-bottom: 12px; font-size: .75rem; font-weight: 600; line-height: 1.3; vertical-align: bottom; }
.specs thead th span { display: block; font-weight: 400; color: var(--muted); }
.specs tbody tr { border-top: 1px solid var(--line); }
.specs tbody th { font-weight: 600; }

/* ---------- Contact ---------- */
.contact { display: grid; place-content: center; min-height: calc(100dvh - var(--bar) - 90px); padding-block: 72px; text-align: center; }
.contact .lead { margin-top: 20px; }
.contact-tel { display: inline-block; margin-top: clamp(40px, 6vw, 64px); font-size: clamp(2rem, 6.4vw, 4rem); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--accent); }
.contact-tel:hover { text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: 2px; }
.contact .label { margin: 0; color: var(--muted); font-weight: 500; }

/* ---------- Adaptation mobile ---------- */
@media (max-width: 860px) {
  .cols, .cols-7-5, .brand-block, .intro-stat, .product, .materials { grid-template-columns: minmax(0, 1fr); }
  .cols > .order-first { order: -1; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile-media { height: 300px; }
  .partners, .lineup { display: flex; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .partners::-webkit-scrollbar, .lineup::-webkit-scrollbar { display: none; }
  .partners figure { flex: 0 0 62%; scroll-snap-align: start; }
  .lineup > * { flex: 0 0 56%; scroll-snap-align: start; }
  .lineup > :last-child { flex-basis: 80%; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stats .stat-map { grid-column: 1 / -1; order: 3; }
  .panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .panel > img { position: static; height: 220px; }
  .panel-text { grid-column: 1; padding: 28px 24px 36px; }
  .safe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .product-media { margin-top: 20px; }
  .rail-ctl { display: none; }
}
@media (max-width: 600px) {
  :root { --r: 22px; }
  .gallery { flex-direction: column; }
  .report .gallery { flex-direction: row; }
  .duo { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
